From 03bc64ad138ef0f019e432348171928ca6e8ed5f Mon Sep 17 00:00:00 2001 From: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> Date: Sun, 8 Sep 2024 17:38:17 +0100 Subject: [PATCH] R&D Rework PT1 - The network refactor (#26420) * R&D Rework PT1 * Give robotics access too * Run prettier * More lints * This is INCREDIBLY ironic * Re-add blacklisting * Oops * Review changes * Some fixes * Fix outstanding issues * Warriorstar fixes * Tiny tweak --- .../SpaceRuins/telecomns_returns.dmm | 48 +- _maps/map_files/generic/centcomm.dmm | 15 +- _maps/map_files/stations/boxstation.dmm | 30 +- _maps/map_files/stations/cerestation.dmm | 16 +- _maps/map_files/stations/deltastation.dmm | 38 +- _maps/map_files/stations/metastation.dmm | 24 +- code/__HELPERS/global_lists.dm | 4 + code/_globalvars/lists/misc_lists.dm | 3 + code/controllers/subsystem/SSresearch.dm | 39 ++ .../game/machinery/computer/buildandrepair.dm | 22 +- code/game/mecha/mech_fabricator.dm | 159 +++++-- code/game/objects/items.dm | 2 +- .../objects/items/weapons/storage/boxes.dm | 1 + code/modules/admin/admin_verbs.dm | 34 +- .../mission_code/ruins/oldstation.dm | 1 + code/modules/research/backup_console.dm | 297 ++++++++++++ .../research/designs/comp_board_designs.dm | 18 +- code/modules/research/designs/misc_designs.dm | 11 + code/modules/research/experimentor.dm | 5 +- code/modules/research/rdconsole.dm | 246 +++++----- code/modules/research/rdmachines.dm | 1 + code/modules/research/research.dm | 21 +- .../research/rnd_network_controller.dm | 327 ++++++++++++++ code/modules/research/server.dm | 427 ++++-------------- icons/obj/computer.dmi | Bin 82942 -> 140646 bytes paradise.dme | 3 + .../tgui/interfaces/ExosuitFabricator.js | 107 ++++- .../tgui/interfaces/RndBackupConsole.js | 117 +++++ .../tgui/interfaces/RndConsole/LinkMenu.js | 42 ++ .../interfaces/RndConsole/SettingsMenu.js | 26 +- .../tgui/interfaces/RndConsole/index.js | 6 + .../tgui/interfaces/RndNetController.js | 169 +++++++ tgui/packages/tgui/interfaces/RndServer.js | 78 ++++ tgui/public/tgui.bundle.js | 160 +++---- 34 files changed, 1773 insertions(+), 724 deletions(-) create mode 100644 code/controllers/subsystem/SSresearch.dm create mode 100644 code/modules/research/backup_console.dm create mode 100644 code/modules/research/rnd_network_controller.dm create mode 100644 tgui/packages/tgui/interfaces/RndBackupConsole.js create mode 100644 tgui/packages/tgui/interfaces/RndConsole/LinkMenu.js create mode 100644 tgui/packages/tgui/interfaces/RndNetController.js create mode 100644 tgui/packages/tgui/interfaces/RndServer.js diff --git a/_maps/map_files/RandomRuins/SpaceRuins/telecomns_returns.dmm b/_maps/map_files/RandomRuins/SpaceRuins/telecomns_returns.dmm index d1560fdd818..513e8ff077b 100644 --- a/_maps/map_files/RandomRuins/SpaceRuins/telecomns_returns.dmm +++ b/_maps/map_files/RandomRuins/SpaceRuins/telecomns_returns.dmm @@ -1213,17 +1213,6 @@ }, /turf/simulated/floor/plasteel, /area/ruin/space/telecomms/computer) -"tW" = ( -/obj/machinery/power/grounding_rod, -/turf/simulated/floor/plasteel{ - dir = 1; - icon_state = "vault"; - name = "Mainframe floor"; - nitrogen = 400; - oxygen = 0; - temperature = 80 - }, -/area/ruin/space/telecomms/chamber) "tY" = ( /obj/structure/cable{ d1 = 1; @@ -1897,6 +1886,17 @@ }, /turf/simulated/floor/catwalk/airless, /area/space/nearstation) +"CG" = ( +/obj/machinery/power/grounding_rod, +/turf/simulated/floor/plasteel{ + dir = 1; + icon_state = "vault"; + name = "Mainframe floor"; + nitrogen = 400; + oxygen = 0; + temperature = 80 + }, +/area/ruin/space/telecomms/chamber) "CI" = ( /obj/structure/displaycase/dvoraks_treat, /turf/simulated/floor/plasteel{ @@ -2507,17 +2507,6 @@ temperature = 80 }, /area/ruin/space/telecomms/chamber) -"LC" = ( -/obj/machinery/doppler_array, -/turf/simulated/floor/plasteel{ - dir = 1; - icon_state = "vault"; - name = "Mainframe floor"; - nitrogen = 400; - oxygen = 0; - temperature = 80 - }, -/area/ruin/space/telecomms/chamber) "LK" = ( /obj/structure/cable{ d1 = 4; @@ -3057,6 +3046,17 @@ }, /turf/simulated/floor/catwalk/airless, /area/space/nearstation) +"TT" = ( +/obj/machinery/doppler_array, +/turf/simulated/floor/plasteel{ + dir = 1; + icon_state = "vault"; + name = "Mainframe floor"; + nitrogen = 400; + oxygen = 0; + temperature = 80 + }, +/area/ruin/space/telecomms/chamber) "TU" = ( /obj/machinery/atmospherics/pipe/manifold/visible{ dir = 1 @@ -7232,7 +7232,7 @@ bJ Sr cz il -tW +CG EM Zu EO @@ -7324,7 +7324,7 @@ bJ Tw eE il -LC +TT EM Zu uM diff --git a/_maps/map_files/generic/centcomm.dmm b/_maps/map_files/generic/centcomm.dmm index 72cf3c632d9..724323e057e 100644 --- a/_maps/map_files/generic/centcomm.dmm +++ b/_maps/map_files/generic/centcomm.dmm @@ -6863,17 +6863,6 @@ }, /turf/simulated/floor/plasteel, /area/admin) -"xg" = ( -/obj/machinery/computer/rdservercontrol{ - badmin = 1; - name = "Master R&D Server Controller" - }, -/turf/simulated/floor/plasteel, -/area/admin) -"xk" = ( -/obj/machinery/r_n_d/server/centcom, -/turf/simulated/floor/plasteel, -/area/admin) "xl" = ( /obj/structure/table, /obj/item/card/id/silver{ @@ -69417,7 +69406,7 @@ vH lZ wR wk -xg +lZ lZ lZ lZ @@ -69674,7 +69663,7 @@ lZ lZ lZ wk -xk +lZ lZ lZ lZ diff --git a/_maps/map_files/stations/boxstation.dmm b/_maps/map_files/stations/boxstation.dmm index 94831feeea4..41acd29526a 100644 --- a/_maps/map_files/stations/boxstation.dmm +++ b/_maps/map_files/stations/boxstation.dmm @@ -28190,7 +28190,7 @@ }, /area/station/science/robotics/chargebay) "bNj" = ( -/obj/machinery/mecha_part_fabricator, +/obj/machinery/mecha_part_fabricator/station, /turf/simulated/floor/plasteel{ dir = 1; icon_state = "darkpurple" @@ -28894,7 +28894,7 @@ }, /area/station/science/server) "bPy" = ( -/obj/machinery/mecha_part_fabricator, +/obj/machinery/mecha_part_fabricator/station, /turf/simulated/floor/plasteel{ icon_state = "dark" }, @@ -29353,7 +29353,7 @@ /turf/simulated/floor/carpet, /area/station/supply/qm) "bRp" = ( -/obj/machinery/computer/rdconsole/robotics{ +/obj/machinery/computer/rdconsole/core{ dir = 8 }, /turf/simulated/floor/plasteel{ @@ -64176,6 +64176,10 @@ d2 = 4; icon_state = "0-4" }, +/obj/machinery/computer/rnd_backup/station{ + dir = 4 + }, +/obj/item/disk/rnd_backup_disk, /turf/simulated/floor/plasteel{ icon_state = "dark" }, @@ -84476,9 +84480,6 @@ }, /area/station/hallway/primary/starboard/west) "tIl" = ( -/obj/machinery/computer/rdservercontrol{ - dir = 4 - }, /obj/machinery/light_switch{ dir = 1; name = "south bump"; @@ -84487,6 +84488,9 @@ /obj/effect/turf_decal/stripes/corner{ dir = 1 }, +/obj/machinery/computer/rnd_network_controller/station{ + dir = 4 + }, /turf/simulated/floor/plasteel{ icon_state = "dark" }, @@ -87515,16 +87519,6 @@ icon_state = "whiteblue" }, /area/station/medical/medbay2) -"vns" = ( -/obj/machinery/r_n_d/server/robotics, -/obj/machinery/atmospherics/pipe/simple/heat_exchanging{ - dir = 4 - }, -/obj/effect/turf_decal/delivery/white/hollow, -/turf/simulated/floor/plasteel{ - icon_state = "darkbluefull" - }, -/area/station/science/server/coldroom) "vnw" = ( /obj/machinery/light/small, /obj/machinery/atmospherics/pipe/simple/hidden/cyan{ @@ -88389,11 +88383,11 @@ /turf/simulated/floor/plasteel, /area/station/supply/storage) "vIO" = ( -/obj/machinery/r_n_d/server/core, /obj/machinery/atmospherics/pipe/simple/heat_exchanging{ dir = 4 }, /obj/effect/turf_decal/delivery/white/hollow, +/obj/machinery/r_n_d/server/station, /turf/simulated/floor/plasteel{ icon_state = "darkbluefull" }, @@ -139482,7 +139476,7 @@ ten mMB vwC cbd -vns +vIO ukV crR vIO diff --git a/_maps/map_files/stations/cerestation.dmm b/_maps/map_files/stations/cerestation.dmm index 79ee60ed51b..33eab00e4e1 100644 --- a/_maps/map_files/stations/cerestation.dmm +++ b/_maps/map_files/stations/cerestation.dmm @@ -42,10 +42,10 @@ }, /area/station/hallway/primary/port/east) "aar" = ( -/obj/machinery/r_n_d/server/core, /obj/machinery/atmospherics/pipe/simple/heat_exchanging{ dir = 6 }, +/obj/machinery/r_n_d/server/station, /turf/simulated/floor/plasteel/dark/telecomms{ icon_state = "bcircuit" }, @@ -32154,6 +32154,10 @@ }, /area/station/hallway/primary/fore/west) "dNS" = ( +/obj/machinery/computer/rnd_backup/station{ + dir = 8 + }, +/obj/item/disk/rnd_backup_disk, /turf/simulated/floor/plasteel{ icon_state = "darkyellowcorners" }, @@ -58815,10 +58819,10 @@ /obj/effect/turf_decal/stripes/line{ dir = 5 }, -/obj/machinery/mecha_part_fabricator, /obj/machinery/light{ dir = 1 }, +/obj/machinery/mecha_part_fabricator/station, /turf/simulated/floor/plasteel/white, /area/station/science/robotics) "lRJ" = ( @@ -62966,10 +62970,10 @@ }, /area/station/hallway/primary/aft/west) "nfq" = ( -/obj/machinery/r_n_d/server/robotics, /obj/machinery/atmospherics/pipe/simple/heat_exchanging{ dir = 5 }, +/obj/machinery/r_n_d/server/station, /turf/simulated/floor/plasteel/dark/telecomms{ icon_state = "bcircuit" }, @@ -64173,7 +64177,7 @@ /obj/effect/turf_decal/stripes/line{ dir = 9 }, -/obj/machinery/mecha_part_fabricator, +/obj/machinery/mecha_part_fabricator/station, /turf/simulated/floor/plasteel/white, /area/station/science/robotics) "nzI" = ( @@ -78619,7 +78623,7 @@ }, /area/station/hallway/secondary/exit) "rYW" = ( -/obj/machinery/computer/rdservercontrol{ +/obj/machinery/computer/rnd_network_controller/station{ dir = 8 }, /turf/simulated/floor/plasteel/dark/telecomms, @@ -88534,11 +88538,11 @@ }, /area/station/hallway/primary/starboard/south) "uRn" = ( -/obj/machinery/computer/rdconsole/robotics, /obj/machinery/camera{ c_tag = "Robotics North"; network = list("SS13","RD") }, +/obj/machinery/computer/rdconsole/core, /turf/simulated/floor/plasteel{ dir = 1; icon_state = "darkpurple" diff --git a/_maps/map_files/stations/deltastation.dmm b/_maps/map_files/stations/deltastation.dmm index 444e36e09a4..abcc8835691 100644 --- a/_maps/map_files/stations/deltastation.dmm +++ b/_maps/map_files/stations/deltastation.dmm @@ -30795,6 +30795,13 @@ "bLt" = ( /turf/simulated/floor/carpet, /area/station/security/detective) +"bLu" = ( +/obj/machinery/computer/med_data{ + dir = 8 + }, +/obj/machinery/requests_console/directional/east, +/turf/simulated/floor/carpet, +/area/station/security/detective) "bLv" = ( /obj/structure/disposalpipe/segment{ dir = 4 @@ -58005,8 +58012,8 @@ /turf/simulated/floor/plasteel/white, /area/station/science/robotics) "dsL" = ( -/obj/machinery/mecha_part_fabricator, /obj/effect/turf_decal/delivery, +/obj/machinery/mecha_part_fabricator/station, /turf/simulated/floor/plasteel/white, /area/station/science/robotics) "dsM" = ( @@ -58652,13 +58659,13 @@ /area/station/science/server) "dwj" = ( /obj/machinery/alarm/directional/west, -/obj/machinery/computer/rdservercontrol{ - dir = 4 - }, /obj/item/radio/intercom{ name = "north bump"; pixel_y = 28 }, +/obj/machinery/computer/rnd_network_controller/station{ + dir = 4 + }, /turf/simulated/floor/plasteel/dark, /area/station/science/server) "dwk" = ( @@ -59371,10 +59378,10 @@ /turf/simulated/floor/plasteel/airless, /area/station/science/toxins/test) "dBd" = ( -/obj/machinery/r_n_d/server/core, /obj/machinery/atmospherics/pipe/simple/heat_exchanging{ dir = 5 }, +/obj/machinery/r_n_d/server/station, /turf/simulated/floor/bluegrid{ icon_state = "gcircuit"; name = "Mainframe Floor"; @@ -59397,10 +59404,10 @@ }, /area/station/science/server) "dBf" = ( -/obj/machinery/r_n_d/server/robotics, /obj/machinery/atmospherics/pipe/simple/heat_exchanging{ dir = 9 }, +/obj/machinery/r_n_d/server/station, /turf/simulated/floor/bluegrid{ icon_state = "gcircuit"; name = "Mainframe Floor"; @@ -61688,13 +61695,13 @@ /obj/structure/window/reinforced/polarized{ id = "RoboSurgery" }, -/obj/machinery/computer/rdconsole/robotics{ - dir = 1 - }, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ dir = 4 }, /obj/effect/turf_decal/stripes/line, +/obj/machinery/computer/rdconsole/core{ + dir = 1 + }, /turf/simulated/floor/plasteel, /area/station/science/robotics) "dOd" = ( @@ -63221,13 +63228,6 @@ icon_state = "cult" }, /area/station/service/chapel/office) -"dUf" = ( -/obj/machinery/computer/med_data{ - dir = 8 - }, -/obj/machinery/requests_console/directional/east, -/turf/simulated/floor/carpet, -/area/station/security/detective) "dUi" = ( /obj/item/kirbyplants, /obj/structure/cable{ @@ -63807,6 +63807,10 @@ network = list("Research","SS13"); pixel_y = -22 }, +/obj/machinery/computer/rnd_backup/station{ + dir = 4 + }, +/obj/item/disk/rnd_backup_disk, /turf/simulated/floor/plasteel{ dir = 8; icon_state = "whitepurple" @@ -148508,7 +148512,7 @@ aaa bLn bHP dMA -dUf +bLu bNu nXf bLn diff --git a/_maps/map_files/stations/metastation.dmm b/_maps/map_files/stations/metastation.dmm index 9bc2a5c6c9f..cd6c7a7a701 100644 --- a/_maps/map_files/stations/metastation.dmm +++ b/_maps/map_files/stations/metastation.dmm @@ -19557,9 +19557,6 @@ }, /area/station/command/bridge) "bub" = ( -/obj/structure/filingcabinet/chestdrawer{ - pixel_y = 3 - }, /obj/machinery/alarm/directional/west, /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 6 @@ -19577,6 +19574,8 @@ d2 = 4; icon_state = "2-4" }, +/obj/machinery/computer/rnd_backup/station, +/obj/item/disk/rnd_backup_disk, /turf/simulated/floor/plasteel{ dir = 9; icon_state = "darkblue" @@ -52596,7 +52595,6 @@ /turf/simulated/floor/plating, /area/station/engineering/control) "hdR" = ( -/obj/machinery/r_n_d/server/robotics, /obj/machinery/atmospherics/pipe/simple/heat_exchanging{ dir = 10 }, @@ -52604,6 +52602,7 @@ /obj/effect/turf_decal/siding{ dir = 8 }, +/obj/machinery/r_n_d/server/station, /turf/simulated/floor/bluegrid/telecomms/server, /area/station/science/server/coldroom) "heq" = ( @@ -54012,9 +54011,6 @@ }, /area/station/service/hydroponics) "hGS" = ( -/obj/machinery/computer/rdservercontrol{ - dir = 4 - }, /obj/machinery/atmospherics/unary/vent_pump/on{ dir = 4 }, @@ -54023,6 +54019,9 @@ icon_state = "0-4" }, /obj/machinery/power/apc/directional/west, +/obj/machinery/computer/rnd_network_controller/station{ + dir = 4 + }, /turf/simulated/floor/plasteel{ icon_state = "dark" }, @@ -56179,13 +56178,11 @@ }, /area/station/medical/medbay) "iAO" = ( -/obj/machinery/mecha_part_fabricator{ - output_dir = 4 - }, /obj/effect/turf_decal/delivery, /obj/effect/turf_decal/stripes/line{ dir = 4 }, +/obj/machinery/mecha_part_fabricator/station, /turf/simulated/floor/plasteel, /area/station/science/robotics) "iAS" = ( @@ -69406,7 +69403,7 @@ }, /area/station/legal/magistrate) "oco" = ( -/obj/machinery/computer/rdconsole/robotics{ +/obj/machinery/computer/rdconsole/core{ dir = 1 }, /turf/simulated/floor/plasteel, @@ -74738,13 +74735,13 @@ }, /area/station/aisat) "qub" = ( -/obj/machinery/r_n_d/server/core, /obj/machinery/atmospherics/pipe/simple/heat_exchanging{ dir = 6 }, /obj/effect/turf_decal/siding{ dir = 4 }, +/obj/machinery/r_n_d/server/station, /turf/simulated/floor/bluegrid/telecomms/server, /area/station/science/server/coldroom) "quh" = ( @@ -85447,6 +85444,9 @@ name = "south bump"; pixel_y = -24 }, +/obj/structure/filingcabinet/chestdrawer{ + pixel_y = 3 + }, /turf/simulated/floor/plasteel{ dir = 6; icon_state = "darkblue" diff --git a/code/__HELPERS/global_lists.dm b/code/__HELPERS/global_lists.dm index 50618189a48..b17e430f0f8 100644 --- a/code/__HELPERS/global_lists.dm +++ b/code/__HELPERS/global_lists.dm @@ -157,6 +157,10 @@ crit = new path() GLOB.tilt_crits[path] = crit + for(var/path in subtypesof(/datum/tech)) + var/datum/tech/T = path + GLOB.rnd_tech_id_to_name[initial(T.id)] = initial(T.name) + /* // Uncomment to debug chemical reaction list. /client/verb/debug_chemical_list() diff --git a/code/_globalvars/lists/misc_lists.dm b/code/_globalvars/lists/misc_lists.dm index f12c6a8271f..3221135d5d1 100644 --- a/code/_globalvars/lists/misc_lists.dm +++ b/code/_globalvars/lists/misc_lists.dm @@ -70,3 +70,6 @@ GLOBAL_LIST_EMPTY(tilt_crits) /// Stores a list of the cached seed icons. Used in the seed extractor and the gene modder GLOBAL_LIST_EMPTY(seeds_cached_base64_icons) + +/// Assoc list of all RND techs with ID to name +GLOBAL_LIST_EMPTY(rnd_tech_id_to_name) diff --git a/code/controllers/subsystem/SSresearch.dm b/code/controllers/subsystem/SSresearch.dm new file mode 100644 index 00000000000..2f41ef20f54 --- /dev/null +++ b/code/controllers/subsystem/SSresearch.dm @@ -0,0 +1,39 @@ +SUBSYSTEM_DEF(research) + name = "Research" + flags = SS_NO_INIT + runlevels = RUNLEVELS_DEFAULT | RUNLEVEL_LOBBY // ALL THE THINGS + wait = 60 SECONDS + cpu_display = SS_CPUDISPLAY_LOW + offline_implications = "Ingame R&D will no longer have an OOC backup. No immediate action is needed." + /// List of R&D backups - Key = datum ID, value = /datum/rnd_backup + var/list/backups = list() + +/datum/controller/subsystem/research/get_stat_details() + return "C:[length(backups)]" + +/datum/controller/subsystem/research/fire() + for(var/obj/machinery/computer/rnd_network_controller/RNC in GLOB.rnd_network_managers) + var/rnc_uid = RNC.UID() + if(!(rnc_uid in backups)) + backups[rnc_uid] = new /datum/rnd_backup + + var/datum/rnd_backup/B = backups[rnc_uid] + B.last_name = RNC.network_name + B.last_timestamp = time2text(ROUND_TIME, "hh:mm:ss") + B.levels.Cut() + for(var/tech_id in RNC.research_files.known_tech) + var/datum/tech/T = RNC.research_files.known_tech[tech_id] + B.levels[tech_id] = T.level + +/datum/rnd_backup + /// Name of last network + var/last_name + /// Timestamp of last backup + var/last_timestamp + /// List of levels + var/list/levels = list() + +/datum/rnd_backup/proc/to_backup_disk(turf/T) + var/obj/item/disk/rnd_backup_disk/D = new(T) + D.stored_tech_assoc = levels + D.last_backup_time = last_timestamp diff --git a/code/game/machinery/computer/buildandrepair.dm b/code/game/machinery/computer/buildandrepair.dm index 304d71066c1..0afa4efbcf3 100644 --- a/code/game/machinery/computer/buildandrepair.dm +++ b/code/game/machinery/computer/buildandrepair.dm @@ -362,12 +362,8 @@ desc = "Swipe a Scientist level ID or higher to reconfigure." icon_state = "science" build_path = /obj/machinery/computer/rdconsole/core - req_access = list(ACCESS_TOX) // This is for adjusting the type of computer we're building - in case something messes up the pre-existing robotics console - var/list/access_types = list("R&D Core", "Robotics", "E.X.P.E.R.I-MENTOR", "Public") - -/obj/item/circuitboard/rdconsole/robotics - board_name = "RD Console - Robotics" - build_path = /obj/machinery/computer/rdconsole/robotics + req_access = list(ACCESS_TOX) // This is for adjusting the type of computer we're building + var/list/access_types = list("R&D Core", "E.X.P.E.R.I-MENTOR", "Public") /obj/item/circuitboard/rdconsole/experiment board_name = "RD Console - E.X.P.E.R.I-MENTOR" @@ -382,10 +378,15 @@ icon_state = "science" build_path = /obj/machinery/computer/mecha -/obj/item/circuitboard/rdservercontrol - board_name = "RD Server Control" +/obj/item/circuitboard/rnd_network_controller + board_name = "R&D Network Controller" icon_state = "science" - build_path = /obj/machinery/computer/rdservercontrol + build_path = /obj/machinery/computer/rnd_network_controller + +/obj/item/circuitboard/rnd_backup_console + board_name = "R&D Backup Console" + icon_state = "science" + build_path = /obj/machinery/computer/rnd_backup /obj/item/circuitboard/crew board_name = "Crew Monitoring Computer" @@ -539,9 +540,6 @@ if("R&D Core") board_name = "RD Console" build_path = /obj/machinery/computer/rdconsole/core - if("Robotics") - board_name = "RD Console - Robotics" - build_path = /obj/machinery/computer/rdconsole/robotics if("E.X.P.E.R.I-MENTOR") board_name = "RD Console - E.X.P.E.R.I-MENTOR" build_path = /obj/machinery/computer/rdconsole/experiment diff --git a/code/game/mecha/mech_fabricator.dm b/code/game/mecha/mech_fabricator.dm index 86a5576160b..c4dffba2612 100644 --- a/code/game/mecha/mech_fabricator.dm +++ b/code/game/mecha/mech_fabricator.dm @@ -31,10 +31,6 @@ var/time_coeff = 1 /// Resource efficiency multiplier. A lower value means less resources consumed. Updated by [CheckParts()][/atom/proc/CheckParts]. var/component_coeff = 1 - /// Holds the locally known R&D designs. - var/datum/research/local_designs = null - /// Whether a R&D sync is currently in progress. - var/syncing = FALSE /// The currently selected category. var/selected_category = null /// The design that is being currently being built. @@ -47,13 +43,16 @@ var/list/datum/design/build_queue = null /// Whether the queue is currently being processed. var/processing_queue = FALSE + /// ID to autolink to, used in mapload + var/autolink_id = null + /// UID of the network that we use + var/network_manager_uid = null /obj/machinery/mecha_part_fabricator/Initialize(mapload) - . = ..() + ..() // Set up some datums var/datum/component/material_container/materials = AddComponent(/datum/component/material_container, list(MAT_METAL, MAT_GLASS, MAT_SILVER, MAT_GOLD, MAT_DIAMOND, MAT_PLASMA, MAT_URANIUM, MAT_BANANIUM, MAT_TRANQUILLITE, MAT_TITANIUM, MAT_BLUESPACE), 0, FALSE, /obj/item/stack, CALLBACK(src, PROC_REF(can_insert_materials)), CALLBACK(src, PROC_REF(on_material_insert))) materials.precise_insertion = TRUE - local_designs = new /datum/research(src) // Components component_parts = list() @@ -84,10 +83,34 @@ "Misc" ) + return INITIALIZE_HINT_LATELOAD + +/obj/machinery/mecha_part_fabricator/LateInitialize() + for(var/obj/machinery/computer/rnd_network_controller/RNC as anything in GLOB.rnd_network_managers) + if(RNC.network_name == autolink_id) + network_manager_uid = RNC.UID() + RNC.mechfabs += UID() + +/obj/machinery/mecha_part_fabricator/proc/get_files() + if(!network_manager_uid) + return null + + var/obj/machinery/computer/rnd_network_controller/RNC = locateUID(network_manager_uid) + if(!RNC) + network_manager_uid = null + return null + + return RNC.research_files + /obj/machinery/mecha_part_fabricator/Destroy() var/datum/component/material_container/materials = GetComponent(/datum/component/material_container) materials.retrieve_all() - QDEL_NULL(local_designs) + + var/obj/machinery/computer/rnd_network_controller/RNC = locateUID(network_manager_uid) + if(RNC) + // Unlink us + RNC.mechfabs -= UID() + return ..() /obj/machinery/mecha_part_fabricator/multitool_act(mob/user, obj/item/I) @@ -172,7 +195,13 @@ */ /obj/machinery/mecha_part_fabricator/proc/build_design(datum/design/D) . = FALSE - if(!local_designs.known_designs[D.id] || !(D.build_type & allowed_design_types)) + + var/datum/research/files = get_files() + if(!files) + atom_say("Error - No research network linked.") + return + + if(!files.known_designs[D.id] || !(D.build_type & allowed_design_types)) return if(being_built) atom_say("Error: Something is already being built!") @@ -239,27 +268,6 @@ SStgui.update_uis(src) -/** - * Syncs the R&D designs from the first [/obj/machinery/computer/rdconsole] in the area. - */ -/obj/machinery/mecha_part_fabricator/proc/sync() - addtimer(CALLBACK(src, PROC_REF(sync_timer_finish)), 3 SECONDS) - syncing = TRUE - -/** - * Called when the timer for syncing finishes. - */ -/obj/machinery/mecha_part_fabricator/proc/sync_timer_finish() - syncing = FALSE - var/area/A = get_area(src) - for(var/obj/machinery/computer/rdconsole/RDC in A) // These computers should have their own global.. - if(!RDC.sync) - continue - RDC.files.push_data(local_designs) - atom_say("Successfully synchronized with R&D servers.") - break - SStgui.update_uis(src) - /** * Called by [/datum/component/material_container] when material sheets are inserted in the machine. * @@ -334,11 +342,35 @@ /obj/machinery/mecha_part_fabricator/ui_data(mob/user) var/list/data = list() - data["syncing"] = syncing + + var/datum/research/files = get_files() + if(!files) + data["linked"] = FALSE + + var/list/controllers = list() + for(var/obj/machinery/computer/rnd_network_controller/RNC as anything in GLOB.rnd_network_managers) + controllers += list(list("addr" = RNC.UID(), "net_id" = RNC.network_name)) + data["controllers"] = controllers + + return data + + data["linked"] = TRUE data["processingQueue"] = processing_queue data["categories"] = categories data["curCategory"] = selected_category + var/list/tech_levels = list() + for(var/tech_id in files.known_tech) + var/datum/tech/T = files.known_tech[tech_id] + if(T.level <= 0) + continue + var/list/this_tech_list = list() + this_tech_list["name"] = T.name + this_tech_list["level"] = T.level + this_tech_list["desc"] = T.desc + tech_levels[++tech_levels.len] = this_tech_list + data["tech_levels"] = tech_levels + // Materials var/datum/component/material_container/materials = GetComponent(/datum/component/material_container) var/list/mats = list() @@ -369,8 +401,8 @@ // Current category if(selected_category) var/list/category_designs = list() - for(var/v in local_designs.known_designs) - var/datum/design/D = local_designs.known_designs[v] + for(var/tech_id in files.known_designs) + var/datum/design/D = files.known_designs[tech_id] if(!(D.build_type & allowed_design_types) || !(selected_category in D.category) || length(D.reagents_list)) continue var/list/design_out = list("id" = D.id, "name" = D.name, "cost" = get_design_cost(D), "time" = get_design_build_time(D)) @@ -396,6 +428,41 @@ if(..()) return + // We switch these actions first because they can be done without files + switch(action) + if("unlink") + if(!network_manager_uid) + return + var/choice = tgui_alert(usr, "Are you SURE you want to unlink this fabricator?\nYou wont be able to re-link without the network manager password", "Unlink","Yes","No") + if(choice == "Yes") + unlink() + + return TRUE + + // You should only be able to link if its not linked, to prevent weirdness + if("linktonetworkcontroller") + if(network_manager_uid) + return + var/obj/machinery/computer/rnd_network_controller/C = locateUID(params["target_controller"]) + if(istype(C, /obj/machinery/computer/rnd_network_controller)) + var/user_pass = tgui_input_text(usr, "Please enter network password", "Password Entry") + // Check the password + if(user_pass == C.network_password) + network_manager_uid = C.UID() + to_chat(usr, "Successfully linked to [C.network_name].") + else + to_chat(usr, "ERROR: Password incorrect.") + else + to_chat(usr, "ERROR: Controller not found. Please file an issue report.") + + return TRUE + + + var/datum/research/files = get_files() + if(!files) + to_chat(usr, "Error - No research network linked.") + return + . = TRUE switch(action) if("category") @@ -405,23 +472,23 @@ selected_category = new_cat if("build") var/id = params["id"] - var/datum/design/D = local_designs.known_designs[id] + var/datum/design/D = files.known_designs[id] if(!D) return build_design(D) if("queue") var/id = params["id"] - if(!(id in local_designs.known_designs)) + if(!(id in files.known_designs)) return - var/datum/design/D = local_designs.known_designs[id] + var/datum/design/D = files.known_designs[id] if(!(D.build_type & allowed_design_types) || length(D.reagents_list)) return LAZYADD(build_queue, D) process_queue() if("queueall") LAZYINITLIST(build_queue) - for(var/v in local_designs.known_designs) - var/datum/design/D = local_designs.known_designs[v] + for(var/tech_id in files.known_designs) + var/datum/design/D = files.known_designs[tech_id] if(!(D.build_type & allowed_design_types) || !(selected_category in D.category) || length(D.reagents_list)) continue build_queue += D @@ -448,10 +515,6 @@ if("process") processing_queue = !processing_queue process_queue() - if("sync") - if(syncing) - return - sync() if("withdraw") var/id = params["id"] var/datum/component/material_container/materials = GetComponent(/datum/component/material_container) @@ -466,6 +529,10 @@ return FALSE add_fingerprint(usr) +/obj/machinery/mecha_part_fabricator/proc/unlink() + network_manager_uid = null + SStgui.update_uis(src) + /** * # Exosuit Fabricator (upgraded) * @@ -484,14 +551,8 @@ component_parts += new /obj/item/stack/sheet/glass(null) RefreshParts() -/** - * # Robotic Fabricator - * - * Cyborgs-only variant of [/obj/machinery/mecha_part_fabricator]. - */ -/obj/machinery/mecha_part_fabricator/robot - name = "robotic fabricator" - categories = list("Cyborg") +/obj/machinery/mecha_part_fabricator/station + autolink_id = "station_rnd" #undef EXOFAB_BASE_CAPACITY #undef EXOFAB_CAPACITY_PER_RATING diff --git a/code/game/objects/items.dm b/code/game/objects/items.dm index 333473ed977..57030db9478 100644 --- a/code/game/objects/items.dm +++ b/code/game/objects/items.dm @@ -279,7 +279,7 @@ GLOBAL_DATUM_INIT(welding_sparks, /mutable_appearance, mutable_appearance('icons msg += "Testing potentials:
" var/list/techlvls = params2list(origin_tech) for(var/T in techlvls) //This needs to use the better names. - msg += "Tech: [CallTechName(T)] | Magnitude: [techlvls[T]]
" + msg += "Tech: [GLOB.rnd_tech_id_to_name[T]] | Magnitude: [techlvls[T]]
" else msg += "No tech origins detected.
" diff --git a/code/game/objects/items/weapons/storage/boxes.dm b/code/game/objects/items/weapons/storage/boxes.dm index 4287c96cc65..4b8f576413f 100644 --- a/code/game/objects/items/weapons/storage/boxes.dm +++ b/code/game/objects/items/weapons/storage/boxes.dm @@ -1113,6 +1113,7 @@ new /obj/item/circuitboard/destructive_analyzer(src) new /obj/item/circuitboard/circuit_imprinter(src) new /obj/item/circuitboard/rdconsole/public(src) + new /obj/item/circuitboard/rnd_network_controller(src) /obj/item/storage/box/stockparts display_contents_with_number = TRUE diff --git a/code/modules/admin/admin_verbs.dm b/code/modules/admin/admin_verbs.dm index e570dcc5c64..f918c262d01 100644 --- a/code/modules/admin/admin_verbs.dm +++ b/code/modules/admin/admin_verbs.dm @@ -66,7 +66,8 @@ GLOBAL_LIST_INIT(admin_verbs_admin, list( /client/proc/start_vote, /client/proc/ping_all_admins, /client/proc/show_watchlist, - /client/proc/debugstatpanel + /client/proc/debugstatpanel, + /client/proc/create_rnd_restore_disk )) GLOBAL_LIST_INIT(admin_verbs_ban, list( /client/proc/ban_panel, @@ -1229,3 +1230,34 @@ GLOBAL_LIST_INIT(view_runtimes_verbs, list( vis.set_content(ui_dat.Join("")) vis.open(FALSE) + +/client/proc/create_rnd_restore_disk() + set name = "Create RnD Backup Restore Disk" + set category = "Event" // Im putting this in event because the name is long and will offset everything + + if(!check_rights(R_ADMIN)) + return + + var/list/targets = list() + + for(var/rnc_uid in SSresearch.backups) + var/datum/rnd_backup/B = SSresearch.backups[rnc_uid] + + targets["[B.last_name] - [B.last_timestamp]"] = rnc_uid + + var/choice = input(src, "Select a backup to restore", "RnD Backup Restore") as null|anything in targets + if(!choice || !(choice in targets)) + return + + var/actual_target = targets[choice] + if(!(actual_target in SSresearch.backups)) + return + + var/datum/rnd_backup/B = SSresearch.backups[actual_target] + var/confirmation = alert("Are you sure you want to restore this RnD backup? The disk will spawn below your character.", "Are you sure?", "Yes", "No") + + if(confirmation != "Yes") + return + + B.to_backup_disk(get_turf(usr)) + diff --git a/code/modules/awaymissions/mission_code/ruins/oldstation.dm b/code/modules/awaymissions/mission_code/ruins/oldstation.dm index c8e4989baab..b5d06699246 100644 --- a/code/modules/awaymissions/mission_code/ruins/oldstation.dm +++ b/code/modules/awaymissions/mission_code/ruins/oldstation.dm @@ -395,6 +395,7 @@ new /obj/item/circuitboard/destructive_analyzer(src) new /obj/item/circuitboard/protolathe(src) new /obj/item/circuitboard/rdconsole/public(src) + new /obj/item/circuitboard/rnd_network_controller(src) new /obj/item/reagent_containers/glass/beaker(src) new /obj/item/reagent_containers/glass/beaker(src) new /obj/item/reagent_containers/glass/beaker(src) diff --git a/code/modules/research/backup_console.dm b/code/modules/research/backup_console.dm new file mode 100644 index 00000000000..2a3c50c8e5d --- /dev/null +++ b/code/modules/research/backup_console.dm @@ -0,0 +1,297 @@ +/// R&D backup console - just saves tech levels +/obj/machinery/computer/rnd_backup + name = "R&D backup console" + desc = "Can be used to backup an R&D network's research data." + icon_screen = "comm_logs" // looks good enough + circuit = /obj/item/circuitboard/rnd_backup_console + /// ID to autolink to, used in mapload + var/autolink_id = null + /// UID of the network that we use + var/network_manager_uid = null + /// Inserted disk + var/obj/item/disk/rnd_backup_disk/inserted_disk + + +/obj/machinery/computer/rnd_backup/station + autolink_id = "station_rnd" + + +/obj/machinery/computer/rnd_backup/Initialize(mapload) + ..() + return INITIALIZE_HINT_LATELOAD + + +/obj/machinery/computer/rnd_backup/LateInitialize() + for(var/obj/machinery/computer/rnd_network_controller/RNC in GLOB.rnd_network_managers) + if(RNC.network_name == autolink_id) + network_manager_uid = RNC.UID() + RNC.backupconsoles += UID() + +/obj/machinery/computer/rnd_backup/Destroy() + unlink() + eject_disk() + return ..() + + +/obj/machinery/computer/rnd_backup/proc/unlink() + network_manager_uid = null + SStgui.update_uis(src) + + +/obj/machinery/computer/rnd_backup/attackby(obj/item/O, mob/user, params) + if(istype(O, /obj/item/disk/rnd_backup_disk) && istype(user, /mob/living/carbon/human)) + var/mob/living/carbon/human/H = user + if(!H.unEquip(O)) + return TRUE + + O.forceMove(src) + inserted_disk = O + to_chat(user, "You insert [O] into [src].") + SStgui.update_uis(src) + return TRUE + + return ..() + + +/obj/machinery/computer/rnd_backup/proc/eject_disk() + if(!inserted_disk) + return + + inserted_disk.forceMove(get_turf(src)) + inserted_disk = null + + +/obj/machinery/computer/rnd_backup/attack_hand(mob/user) + add_fingerprint(user) + if(stat & (BROKEN|NOPOWER)) + return + ui_interact(user) + + +/obj/machinery/computer/rnd_backup/ui_data(mob/user) + var/list/data = list() + var/has_network = FALSE + var/list/tech_assoc_temp = list() + + data["has_disk"] = FALSE + + if(network_manager_uid) + var/obj/machinery/computer/rnd_network_controller/RNC = locateUID(network_manager_uid) + if(RNC) + var/datum/research/files = RNC.research_files + has_network = TRUE + + data["linked"] = TRUE + data["network_name"] = RNC.network_name + + for(var/tech_id in files.known_tech) + if(!(tech_id in tech_assoc_temp)) + tech_assoc_temp[tech_id] = list() + + var/datum/tech/T = files.known_tech[tech_id] + var/list/tech_data = tech_assoc_temp[tech_id] + tech_data["name"] = T.name + tech_data["network_level"] = T.level + else + network_manager_uid = null + + if(inserted_disk) + data["has_disk"] = TRUE + data["disk_name"] = inserted_disk.name + data["last_timestamp"] = inserted_disk.last_backup_time || "None" + for(var/tech_id in inserted_disk.stored_tech_assoc) + if(!(tech_id in tech_assoc_temp)) + tech_assoc_temp[tech_id] = list() + + var/tech_name = GLOB.rnd_tech_id_to_name[tech_id] + var/list/tech_data = tech_assoc_temp[tech_id] + tech_data["name"] = tech_name + tech_data["disk_level"] = inserted_disk.stored_tech_assoc[tech_id] + + if(!has_network) + data["linked"] = FALSE + var/list/controllers = list() + for(var/obj/machinery/computer/rnd_network_controller/RNC in GLOB.rnd_network_managers) + controllers += list(list("addr" = RNC.UID(), "net_id" = RNC.network_name)) + + data["controllers"] = controllers + + data["techs"] = tech_assoc_temp + + return data + + +/obj/machinery/computer/rnd_backup/ui_act(action, list/params, datum/tgui/ui, datum/ui_state/state) + if(..()) + return + + . = TRUE + + switch(action) + if("unlink") + if(!network_manager_uid) + return FALSE + var/choice = tgui_alert(usr, "Are you SURE you want to unlink this backup console?\nYou won't be able to re-link without the network manager password", "Unlink", list("Yes", "No")) + if(choice == "Yes") + unlink() + + if("eject_disk") + eject_disk() + + if("savetech2network") + if(!network_manager_uid) + return FALSE + + if(!inserted_disk) + return FALSE + + var/tech = params["tech"] + + var/obj/machinery/computer/rnd_network_controller/RNC = locateUID(network_manager_uid) + if(!RNC) + network_manager_uid = null + return FALSE + + var/datum/tech/T = RNC.research_files.known_tech[tech] + if(!T) + return + + var/choice = tgui_alert(usr, "Do you want to import this level to the network (Network level: [T.level] | Disk level: [inserted_disk.stored_tech_assoc[tech]])", "Data Import", "Yes", "No") + if(choice != "Yes") + return FALSE + + T.level = inserted_disk.stored_tech_assoc[tech] + + if("savetech2disk") + if(!network_manager_uid) + return FALSE + + if(!inserted_disk) + return FALSE + + var/tech = params["tech"] + + var/obj/machinery/computer/rnd_network_controller/RNC = locateUID(network_manager_uid) + if(!RNC) + network_manager_uid = null + return FALSE + + var/datum/tech/T = RNC.research_files.known_tech[tech] + if(!T) + return + + var/choice = tgui_alert(usr, "Do you want to export this tech data to the disk (Network level: [T.level] | Disk level: [inserted_disk.stored_tech_assoc[tech]])", "Data Export", "Yes", "No") + if(choice != "Yes") + return FALSE + + inserted_disk.stored_tech_assoc[tech] = T.level + inserted_disk.last_backup_time = time2text(ROUND_TIME, "hh:mm:ss") + + if("saveall2network") + if(!network_manager_uid) + return FALSE + + if(!inserted_disk) + return FALSE + + var/obj/machinery/computer/rnd_network_controller/RNC = locateUID(network_manager_uid) + if(!RNC) + network_manager_uid = null + return FALSE + + var/choice = tgui_alert(usr, "Are you SURE you want to import all the data on the disk to the network?", "Data Import", "Yes", "No") + if(choice != "Yes") + return FALSE + + var/datum/research/files = RNC.research_files + for(var/tech_id in files.known_tech) + var/datum/tech/T = files.known_tech[tech_id] + T.level = inserted_disk.stored_tech_assoc[tech_id] + + if("saveall2disk") + if(!network_manager_uid) + return FALSE + + if(!inserted_disk) + return FALSE + + var/obj/machinery/computer/rnd_network_controller/RNC = locateUID(network_manager_uid) + if(!RNC) + network_manager_uid = null + return FALSE + + var/choice = tgui_alert(usr, "Are you SURE you want to export all the data on the network to the disk?", "Data Export", "Yes", "No") + if(choice != "Yes") + return FALSE + + var/datum/research/files = RNC.research_files + for(var/tech_id in files.known_tech) + var/datum/tech/T = files.known_tech[tech_id] + inserted_disk.stored_tech_assoc[tech_id] = T.level + + inserted_disk.last_backup_time = time2text(ROUND_TIME, "hh:mm:ss") + + if("linktonetworkcontroller") + if(network_manager_uid) + return FALSE + + var/obj/machinery/computer/rnd_network_controller/C = locateUID(params["target_controller"]) + if(istype(C, /obj/machinery/computer/rnd_network_controller)) + var/user_pass = tgui_input_text(usr, "Please enter network password", "Password Entry") + // Check the password + if(user_pass == C.network_password) + network_manager_uid = C.UID() + to_chat(usr, "Successfully linked to [C.network_name].") + + else + to_chat(usr, "ERROR: Password incorrect.") + + else + to_chat(usr, "ERROR: Controller not found. Please file an issue report.") + + +/obj/machinery/computer/rnd_backup/ui_interact(mob/user, datum/tgui/ui = null) + ui = SStgui.try_update_ui(user, src, ui) + if(!ui) + ui = new(user, src, "RndBackupConsole", name) + ui.open() + +// The disk itself - does nothing other than exist to hold variables. +/obj/item/disk/rnd_backup_disk + name = "rnd backup disk" + desc = "A disk for storing technology data for backup purposes." + icon_state = "datadisk2" + materials = list(MAT_METAL = 30, MAT_GLASS = 10) + /// Assoc list of tech levels. Key is tech ID, value is tech level + var/list/stored_tech_assoc = list() + /// Text of last backup time + var/last_backup_time + + +/obj/item/disk/rnd_backup_disk/Initialize(mapload) + . = ..() + pixel_x = rand(-5, 5) + pixel_y = rand(-5, 5) + // Level it all out + for(var/tech_id in GLOB.rnd_tech_id_to_name) + stored_tech_assoc[tech_id] = 0 + + +/obj/item/disk/rnd_backup_disk/examine(mob/user) + . = ..() + if(last_backup_time) + . += "The timestamp label reads '[last_backup_time]'." + else + . += "The timestamp label is empty." + + +/obj/item/disk/rnd_backup_disk/admin + name = "admin rnd backup disk" + desc = "You shouldnt have this." + + +/obj/item/disk/rnd_backup_disk/admin/Initialize(mapload) + . = ..() + // Just make it 10 on everything - who cares + for(var/tech_id in GLOB.rnd_tech_id_to_name) + stored_tech_assoc[tech_id] = 10 diff --git a/code/modules/research/designs/comp_board_designs.dm b/code/modules/research/designs/comp_board_designs.dm index 9c8bcdd0fa1..fcd0f85d07e 100644 --- a/code/modules/research/designs/comp_board_designs.dm +++ b/code/modules/research/designs/comp_board_designs.dm @@ -243,13 +243,23 @@ category = list("Computer Boards") /datum/design/rdservercontrol - name = "Console Board (R&D Server Control Console)" - desc = "The circuit board for a R&D Server Control Console" - id = "rdservercontrol" + name = "Console Board (R&D Network Controller)" + desc = "The circuit board for a R&D Network Controller Console" + id = "rdnetworkcontrol" req_tech = list("programming" = 3) build_type = IMPRINTER materials = list(MAT_GLASS = 1000) - build_path = /obj/item/circuitboard/rdservercontrol + build_path = /obj/item/circuitboard/rnd_network_controller + category = list("Computer Boards") + +/datum/design/rdbackup + name = "Console Board (R&D Backup)" + desc = "The circuit board for a R&D Backup Console" + id = "rdbackup" + req_tech = list("programming" = 3) + build_type = IMPRINTER + materials = list(MAT_GLASS = 1000) + build_path = /obj/item/circuitboard/rnd_backup_console category = list("Computer Boards") /datum/design/robocontrol diff --git a/code/modules/research/designs/misc_designs.dm b/code/modules/research/designs/misc_designs.dm index 46189864ab0..bf76b0c4ad3 100644 --- a/code/modules/research/designs/misc_designs.dm +++ b/code/modules/research/designs/misc_designs.dm @@ -51,6 +51,17 @@ build_path = /obj/item/disk/tech_disk category = list("Miscellaneous") +/datum/design/backup_disk + name = "Technology Backup Disk" + desc = "Produce additional backup disks for storing technology data." + id = "backup_disk" + req_tech = list("programming" = 1) + build_type = PROTOLATHE | AUTOLATHE + materials = list(MAT_METAL = 300, MAT_GLASS = 100) + build_path = /obj/item/disk/rnd_backup_disk + category = list("Miscellaneous") + + /datum/design/training_disk name = "Training Authentification Disk" desc = "Replacement authentication disk for the nuclear training bomb." diff --git a/code/modules/research/experimentor.dm b/code/modules/research/experimentor.dm index edadddf3648..2a0827d75a1 100644 --- a/code/modules/research/experimentor.dm +++ b/code/modules/research/experimentor.dm @@ -574,8 +574,11 @@ if(dotype != FAIL) if(process && process.origin_tech) var/list/temp_tech = ConvertReqString2List(process.origin_tech) + var/datum/research/F = linked_console.get_files() + if(!F) + return for(var/T in temp_tech) - linked_console.files.UpdateTech(T, temp_tech[T]) + F.UpdateTech(T, temp_tech[T]) updateUsrDialog() return diff --git a/code/modules/research/rdconsole.dm b/code/modules/research/rdconsole.dm index 8fb23d543d2..f88ccf14e03 100644 --- a/code/modules/research/rdconsole.dm +++ b/code/modules/research/rdconsole.dm @@ -65,13 +65,20 @@ won't update every console in existence) but it's more of a hassle to do. Also, icon_keyboard = "rd_key" light_color = LIGHT_COLOR_FADEDPURPLE circuit = /obj/item/circuitboard/rdconsole - var/datum/research/files //Stores all the collected research data. - var/obj/item/disk/tech_disk/t_disk = null //Stores the technology disk. - var/obj/item/disk/design_disk/d_disk = null //Stores the design disk. - - var/obj/machinery/r_n_d/destructive_analyzer/linked_destroy = null //Linked Destructive Analyzer - var/obj/machinery/r_n_d/protolathe/linked_lathe = null //Linked Protolathe - var/obj/machinery/r_n_d/circuit_imprinter/linked_imprinter = null //Linked Circuit Imprinter + /// Holder for our inserted technology disk + var/obj/item/disk/tech_disk/t_disk = null + /// Holder for the inserted design disk + var/obj/item/disk/design_disk/d_disk = null + /// Linked destructive analyser + var/obj/machinery/r_n_d/destructive_analyzer/linked_destroy = null + /// Linked protolathe + var/obj/machinery/r_n_d/protolathe/linked_lathe = null + /// Linked circuit imprinter + var/obj/machinery/r_n_d/circuit_imprinter/linked_imprinter = null + /// ID to autolink to, used in mapload + var/autolink_id = null + /// UID of the network that we use + var/network_manager_uid = null /// The ID of the top-level menu, such as protolathe, analyzer, etc. var/menu = MENU_MAIN @@ -81,22 +88,24 @@ won't update every console in existence) but it's more of a hassle to do. Also, var/submenu_imprinter = SUBMENU_PRINTER_MAIN var/wait_message = 0 var/wait_message_timer = 0 - - var/id = 0 //ID of the computer (for server restrictions). - var/sync = TRUE //If sync if FALSE, it doesn't show up on Server Control Console ///Range to search for rnd devices in proximity to console var/range = 3 - req_access = list(ACCESS_TOX) //Data and setting manipulation requires scientist access. + req_one_access = list(ACCESS_TOX, ACCESS_ROBOTICS) var/selected_category var/list/datum/design/matching_designs = list() //for the search function -/proc/CallTechName(ID) //A simple helper proc to find the name of a tech with a given ID. - for(var/T in subtypesof(/datum/tech)) - var/datum/tech/tt = T - if(initial(tt.id) == ID) - return initial(tt.name) +/obj/machinery/computer/rdconsole/proc/get_files() + if(!network_manager_uid) + return null + + var/obj/machinery/computer/rnd_network_controller/RNC = locateUID(network_manager_uid) + if(!RNC) + network_manager_uid = null + return null + + return RNC.research_files /proc/CallMaterialName(return_name) switch(return_name) @@ -134,27 +143,19 @@ won't update every console in existence) but it's more of a hassle to do. Also, linked_imprinter = D D.linked_console = src -//Have it automatically push research to the centcom server so wild griffins can't fuck up R&D's work --NEO -/obj/machinery/computer/rdconsole/proc/griefProtection() - for(var/obj/machinery/r_n_d/server/centcom/C in GLOB.machines) - files.push_data(C.files) - -/obj/machinery/computer/rdconsole/proc/Maximize() - for(var/datum/tech/T in files.possible_tech) - files.known_tech[T.id] = T - for(var/v in files.known_tech) - var/datum/tech/KT = files.known_tech[v] - KT.level = 8 - files.RefreshResearch() - /obj/machinery/computer/rdconsole/Initialize(mapload) . = ..() - files = new /datum/research(src) //Setup the research data holder. matching_designs = list() SyncRDevices() + return INITIALIZE_HINT_LATELOAD + +/obj/machinery/computer/rdconsole/LateInitialize() + for(var/obj/machinery/computer/rnd_network_controller/RNC in GLOB.rnd_network_managers) + if(RNC.network_name == autolink_id) + network_manager_uid = RNC.UID() + RNC.consoles += UID() /obj/machinery/computer/rdconsole/Destroy() - QDEL_NULL(files) QDEL_NULL(t_disk) QDEL_NULL(d_disk) matching_designs.Cut() @@ -168,16 +169,16 @@ won't update every console in existence) but it's more of a hassle to do. Also, linked_imprinter.linked_console = null linked_imprinter = null + var/obj/machinery/computer/rnd_network_controller/RNC = locateUID(network_manager_uid) + if(RNC) + // Unlink us + RNC.consoles -= UID() + if(wait_message_timer) deltimer(wait_message_timer) wait_message_timer = 0 return ..() -/* Instead of calling this every tick, it is only being called when needed -/obj/machinery/computer/rdconsole/process() - griefProtection() -*/ - /obj/machinery/computer/rdconsole/attackby(obj/item/D as obj, mob/user as mob, params) //Loading a disk into it. @@ -202,8 +203,8 @@ won't update every console in existence) but it's more of a hassle to do. Also, /obj/machinery/computer/rdconsole/emag_act(user as mob) if(!emagged) - playsound(src.loc, 'sound/effects/sparks4.ogg', 75, 1) - req_access = list() + playsound(get_turf(src), 'sound/effects/sparks4.ogg', 75, 1) + req_one_access = list() emagged = TRUE to_chat(user, "You disable the security protocols") return TRUE @@ -230,6 +231,9 @@ won't update every console in existence) but it's more of a hassle to do. Also, /obj/machinery/computer/rdconsole/proc/update_from_disk() clear_wait_message() + var/datum/research/files = get_files() + if(!files) + return if(d_disk && d_disk.blueprint) files.AddDesign2Known(d_disk.blueprint) else if(t_disk && t_disk.tech_id) @@ -237,36 +241,6 @@ won't update every console in existence) but it's more of a hassle to do. Also, if(!isnull(tech)) tech.level = t_disk.tech_level SStgui.update_uis(src) - griefProtection() //Update centcom too - -/obj/machinery/computer/rdconsole/proc/sync_research() - if(!sync) - return - var/list/temp_unblacklist = files.unblacklisted_designs - files.unblacklisted_designs = list() //Remove this asap, else it will stick around - clear_wait_message() - for(var/obj/machinery/r_n_d/server/S in GLOB.machines) - var/server_processed = FALSE - - if((id in S.id_with_upload) || istype(S, /obj/machinery/r_n_d/server/centcom)) - S.files.blacklisted_designs -= temp_unblacklist - files.push_data(S.files) - server_processed = TRUE - - if(((id in S.id_with_download) && !istype(S, /obj/machinery/r_n_d/server/centcom))) - S.files.push_data(files) - server_processed = TRUE - - if(!istype(S, /obj/machinery/r_n_d/server/centcom) && server_processed) - S.produce_heat(100) - - SStgui.update_uis(src) - -/obj/machinery/computer/rdconsole/proc/reset_research() - qdel(files) - files = new /datum/research(src) - clear_wait_message() - SStgui.update_uis(src) /obj/machinery/computer/rdconsole/proc/find_devices() SyncRDevices() @@ -285,6 +259,10 @@ won't update every console in existence) but it's more of a hassle to do. Also, to_chat(user, "[linked_destroy] appears to be empty.") return + var/datum/research/files = get_files() + if(!files) + return + var/list/temp_tech = linked_destroy.ConvertReqString2List(linked_destroy.loaded_item.origin_tech) var/pointless = FALSE @@ -322,6 +300,10 @@ won't update every console in existence) but it's more of a hassle to do. Also, if(!linked_destroy || !temp_tech) return + var/datum/research/files = get_files() + if(!files) + return + if(!linked_destroy.loaded_item) to_chat(user, "[linked_destroy] appears to be empty.") else @@ -357,6 +339,10 @@ won't update every console in existence) but it's more of a hassle to do. Also, to_chat(usr, "No linked device detected.") return + var/datum/research/files = get_files() + if(!files) + return + var/is_lathe = istype(machine, /obj/machinery/r_n_d/protolathe) var/is_imprinter = istype(machine, /obj/machinery/r_n_d/circuit_imprinter) @@ -469,6 +455,44 @@ won't update every console in existence) but it's more of a hassle to do. Also, add_fingerprint(ui.user) + // We switch these actions first because they can be done without files + switch(action) + if("unlink") + if(!network_manager_uid) + return + var/choice = tgui_alert(usr, "Are you SURE you want to unlink this console?\nYou won't be able to re-link without the network manager password", "Unlink", list("Yes", "No")) + if(choice == "Yes") + unlink() + + return TRUE + + // You should only be able to link if its not linked, to prevent weirdness + if("linktonetworkcontroller") + if(network_manager_uid) + return + var/obj/machinery/computer/rnd_network_controller/C = locateUID(params["target_controller"]) + if(istype(C, /obj/machinery/computer/rnd_network_controller)) + if(!atoms_share_level(C, src)) + return + var/user_pass = input(usr, "Please enter network password", "Password Entry") + // Check the password + if(user_pass == C.network_password) + network_manager_uid = C.UID() + to_chat(usr, "Successfully linked to [C.network_name].") + else + to_chat(usr, "ERROR: Password incorrect.") + else + to_chat(usr, "ERROR: Controller not found. Please file an issue report.") + + return TRUE + + // Now we do a files check + var/datum/research/files = get_files() + if(!files) + to_chat(usr, "Error - No research network linked.") + return + + switch(action) if("nav") //Switches menu screens. Converts a sent text string into a number. Saves a LOT of code. var/next_menu = text2num(params["menu"]) @@ -573,29 +597,9 @@ won't update every console in existence) but it's more of a hassle to do. Also, linked_destroy.loaded_item = null linked_destroy.icon_state = "d_analyzer" - if("maxresearch") - if(!check_rights(R_ADMIN)) - return - if(tgui_alert(ui.user, "Are you sure you want to maximize research levels?", "Confirmation", list("Yes", "No")) != "Yes") - return - log_admin("[key_name(ui.user)] has maximized the research levels.") - message_admins("[key_name_admin(ui.user)] has maximized the research levels.") - Maximize() - griefProtection() //Update centcomm too - if("deconstruct") //Deconstruct the item in the destructive analyzer and update the research holder. start_destroyer(ui.user) - if("sync") //Sync the research holder with all the R&D consoles in the game that aren't sync protected. - if(!sync) - to_chat(ui.user, "You must connect to the network first!") - else - add_wait_message("Syncing Database...", SYNC_RESEARCH_DELAY) - addtimer(CALLBACK(src, PROC_REF(sync_research)), SYNC_RESEARCH_DELAY) - - if("togglesync") //Prevents the console from being synced by other consoles. Can still send data. - sync = !sync - if("build") //Causes the Protolathe to build something. start_machine(linked_lathe, params["id"], text2num(params["amount"])) @@ -645,13 +649,6 @@ won't update every console in existence) but it's more of a hassle to do. Also, linked_imprinter = null submenu_imprinter = SUBMENU_PRINTER_MAIN - if("reset") //Reset the R&D console's database. - griefProtection() - var/choice = tgui_alert(ui.user, "Are you sure you want to reset the R&D console's database? Data lost cannot be recovered.", "R&D Console Database Reset", list("Continue", "Cancel")) - if(choice == "Continue") - add_wait_message("Resetting Database...", RESET_RESEARCH_DELAY) - addtimer(CALLBACK(src, PROC_REF(reset_research)), RESET_RESEARCH_DELAY) - if("search") //Search for designs with name matching pattern var/query = params["to_search"] var/compare @@ -683,8 +680,35 @@ won't update every console in existence) but it's more of a hassle to do. Also, selected_category = "Search Results for '[query]'" + + if("unlink") + if(!network_manager_uid) + return + var/choice = alert(usr, "Are you SURE you want to unlink this console?\nYou wont be able to re-link without the network manager password", "Unlink","Yes","No") + if(choice == "Yes") + unlink() + + // You should only be able to link if its not linked, to prevent weirdness + if("linktonetworkcontroller") + if(network_manager_uid) + return + var/obj/machinery/computer/rnd_network_controller/C = locateUID(params["target_controller"]) + if(istype(C, /obj/machinery/computer/rnd_network_controller)) + var/user_pass = input(usr, "Please enter network password", "Password Entry") + // Check the password + if(user_pass == C.network_password) + network_manager_uid = C.UID() + to_chat(usr, "Successfully linked to [C.network_name].") + else + to_chat(usr, "ERROR: Password incorrect.") + else + to_chat(usr, "ERROR: Controller not found. Please file an issue report.") + return TRUE // update uis +/obj/machinery/computer/rdconsole/proc/unlink() + network_manager_uid = null + SStgui.update_uis(src) /obj/machinery/computer/rdconsole/attack_hand(mob/user) if(..()) @@ -798,6 +822,20 @@ won't update every console in existence) but it's more of a hassle to do. Also, /obj/machinery/computer/rdconsole/ui_data(mob/user) var/list/data = list() + var/datum/research/files = get_files() + // If we have no linked files, dont even process anything else, just get a link up + if(!files) + data["linked"] = FALSE + + var/list/controllers = list() + for(var/obj/machinery/computer/rnd_network_controller/RNC in GLOB.rnd_network_managers) + if(atoms_share_level(RNC, src)) + controllers += list(list("addr" = RNC.UID(), "net_id" = RNC.network_name)) + data["controllers"] = controllers + + return data + + data["linked"] = TRUE files.RefreshResearch() data["menu"] = menu @@ -809,8 +847,6 @@ won't update every console in existence) but it's more of a hassle to do. Also, data["linked_destroy"] = linked_destroy ? 1 : 0 data["linked_lathe"] = linked_lathe ? 1 : 0 data["linked_imprinter"] = linked_imprinter ? 1 : 0 - data["sync"] = sync - data["admin"] = check_rights(R_ADMIN, FALSE, user) data["disk_type"] = d_disk ? "design" : (t_disk ? "tech" : null) data["disk_data"] = null data["loaded_item"] = null @@ -943,27 +979,17 @@ won't update every console in existence) but it's more of a hassle to do. Also, /obj/machinery/computer/rdconsole/core name = "core R&D console" desc = "A console used to interface with R&D tools." - id = 1 - -/obj/machinery/computer/rdconsole/robotics - name = "robotics R&D console" - desc = "A console used to interface with R&D tools." - id = 2 - req_access = list(ACCESS_ROBOTICS) - circuit = /obj/item/circuitboard/rdconsole/robotics + autolink_id = "station_rnd" /obj/machinery/computer/rdconsole/experiment name = "\improper E.X.P.E.R.I-MENTOR R&D console" - desc = "A console used to interface with R&D tools." - id = 3 + autolink_id = "station_rnd" range = 5 circuit = /obj/item/circuitboard/rdconsole/experiment /obj/machinery/computer/rdconsole/public name = "public R&D console" - desc = "A console used to interface with R&D tools." - id = 5 - req_access = list() + req_one_access = list() circuit = /obj/item/circuitboard/rdconsole/public #undef TECH_UPDATE_DELAY diff --git a/code/modules/research/rdmachines.dm b/code/modules/research/rdmachines.dm index f51b323b7a7..fe2c5ba202b 100644 --- a/code/modules/research/rdmachines.dm +++ b/code/modules/research/rdmachines.dm @@ -8,6 +8,7 @@ anchored = TRUE var/busy = FALSE var/obj/machinery/computer/rdconsole/linked_console + // Why is this scoped here???????? var/obj/item/loaded_item = null var/datum/component/material_container/materials //Store for hyper speed! var/efficiency_coeff = 1 diff --git a/code/modules/research/research.dm b/code/modules/research/research.dm index 29440ffdd81..ae5b48cb7d0 100644 --- a/code/modules/research/research.dm +++ b/code/modules/research/research.dm @@ -44,16 +44,21 @@ research holder datum. ** Includes all the helper procs and basic tech processing. ** ***************************************************************/ -/// Holder for all the existing, archived, and known tech. Individual to console. +/// Holder for all the existing, archived, and known tech. Individual to each network controller. /datum/research + // These lists hold datum/tech - //Datum/tech go here. - // Possible is a list of direct datum references - // known is a list of id -> datum mappings - var/list/possible_tech = list() //List of all tech in the game that players have access to (barring special events). - var/list/known_tech = list() //List of locally known tech. - var/list/possible_designs = list() //List of all designs - var/list/known_designs = list() //List of available designs + + // Possible is a list of direct datum references known is a list of id -> datum mappings + var/list/possible_tech = list() + /// List of locally known tech. + var/list/known_tech = list() + + + /// List of all designs + var/list/possible_designs = list() + /// List of available designs + var/list/known_designs = list() /// List of designs that have been blacklisted by the server controller var/list/blacklisted_designs = list() /// Used during the rnd sync system, to ensure that blacklists are reverted, then cleared. diff --git a/code/modules/research/rnd_network_controller.dm b/code/modules/research/rnd_network_controller.dm new file mode 100644 index 00000000000..390204e3f30 --- /dev/null +++ b/code/modules/research/rnd_network_controller.dm @@ -0,0 +1,327 @@ +GLOBAL_LIST_EMPTY(rnd_network_managers) + +/obj/machinery/computer/rnd_network_controller + // Dont call this R&D, you break tooltips from the & + name = "\improper RnD network manager" + desc = "Use this to manage an R&D network and its connected servers" + icon_screen = "rnd_netmanager" + icon_keyboard = "rd_key" + light_color = LIGHT_COLOR_FADEDPURPLE + circuit = /obj/item/circuitboard/rnd_network_controller + + /// List of R&D servers connected. Soft-refs only. + var/list/servers = list() + /// List of R&D consoles connected. Soft-refs only. + var/list/consoles = list() + /// List of mechfabs connected. Soft-refs only. + var/list/mechfabs = list() + /// List of backup consoles. Soft-refs only. + var/list/backupconsoles = list() + /// The files for all the research data on this system + var/datum/research/research_files + /// The link ID of this console, used for map purposes + var/network_name = null + /// The network password for this device + var/network_password + +/obj/machinery/computer/rnd_network_controller/Initialize() + . = ..() + GLOB.rnd_network_managers += src + research_files = new + network_password = GenerateKey() + + // Make sure that name isnt already in use + if(network_name) + network_name = trim(network_name) + + if(name_check(network_name)) + var/myuid = UID() + stack_trace("[src] at [x],[y],[z] tried to init with a network name of [network_name] when its already in use. Name has been randomised to [myuid]") + network_name = myuid + + if(!network_name) + network_name = UID() + +/** + * Name sanity check + * + * Makes sure the target network name isnt already in use. Returns TRUE or FALSE depending on that criteria. + * Arguments: + * * pending_name - The name to check + */ +/obj/machinery/computer/rnd_network_controller/proc/name_check(pending_name) + var/list/all_names = list() + + for(var/obj/machinery/computer/rnd_network_controller/RNC in GLOB.rnd_network_managers) + if(RNC == src) + continue + all_names += RNC.network_name + + return (pending_name in all_names) + +/obj/machinery/computer/rnd_network_controller/Destroy() + GLOB.rnd_network_managers -= src + + // Inform admins - this is kinda round impacting + if(usr) + message_admins("[key_name_admin(usr)] destroyed [src] at [src ? "[get_location_name(src, TRUE)] [COORD(src)]" : "nonexistent location"] [ADMIN_JMP(src)]. If this was a non-antag please investigate as it has major round implications.") + + // Unlink all attached servers + for(var/server_uid in servers) + var/obj/machinery/r_n_d/server/S = locateUID(server_uid) + if(!S) + continue + + S.unlink() + + // Unlink all attached consoles + for(var/console_uid in consoles) + var/obj/machinery/computer/rdconsole/RDC = locateUID(console_uid) + if(!RDC) + continue + + RDC.unlink() + + // Unlink all attached mechfabs + for(var/mechfab_uid in mechfabs) + var/obj/machinery/mecha_part_fabricator/MF = locateUID(mechfab_uid) + if(!MF) + continue + + MF.unlink() + + // Unlink all attached backup consoles + for(var/backupconsoles_uid in backupconsoles) + var/obj/machinery/computer/rnd_backup/BC = locateUID(backupconsoles_uid) + if(!BC) + continue + + BC.unlink() + + QDEL_NULL(research_files) + + return ..() + + +/obj/machinery/computer/rnd_network_controller/screwdriver_act(mob/user, obj/item/I) + var/areyousure = tgui_alert(user, "Disassembling this console will wipe its network's RnD progress from this round. If you are doing this as a non-antag, expect a bollocking.\n\nAre you sure?", "Think for a moment", list("Yes", "No")) + if(areyousure != "Yes") + return TRUE // Dont attack the console, pretend we did something + + return ..() + + +/obj/machinery/computer/rnd_network_controller/attack_hand(mob/user) + ui_interact(user) + + +/obj/machinery/computer/rnd_network_controller/ui_interact(mob/user, datum/tgui/ui = null) + ui = SStgui.try_update_ui(user, src, ui) + if(!ui) + ui = new(user, src, "RndNetController", name) + ui.open() + + +/obj/machinery/computer/rnd_network_controller/ui_data(mob/user) + var/list/data = list() + + data["network_password"] = network_password + data["network_name"] = network_name + + var/list/devices = list() + + for(var/server_uid in servers) + var/obj/machinery/r_n_d/server/S = locateUID(server_uid) + if(!S) + servers -= server_uid + continue + devices += list(list("name" = S.name, "id" = S.UID(), "dclass" = "SRV")) + + + for(var/console_uid in consoles) + var/obj/machinery/computer/rdconsole/RDC = locateUID(console_uid) + if(!RDC) + consoles -= console_uid + continue + devices += list(list("name" = RDC.name, "id" = RDC.UID(), "dclass" = "RDC")) + + + for(var/mechfab_uid in mechfabs) + var/obj/machinery/mecha_part_fabricator/MF = locateUID(mechfab_uid) + if(!MF) + mechfabs -= mechfab_uid + continue + devices += list(list("name" = MF.name, "id" = MF.UID(), "dclass" = "MFB")) + + for(var/backup_uid in backupconsoles) + var/obj/machinery/computer/rnd_backup/RB = locateUID(backup_uid) + if(!RB) + backupconsoles -= backup_uid + continue + devices += list(list("name" = RB.name, "id" = RB.UID(), "dclass" = "BCK")) + + data["devices"] = devices + + var/list/designs = list() + + // Handle design blacklisting and unblacklisting + for(var/datum/design/D in research_files.possible_designs) + if(!(D.id in research_files.known_designs) && !(D.id in research_files.blacklisted_designs)) + continue + + var/list/design_data = list() + design_data["name"] = D.name + design_data["id"] = D.id + design_data["blacklisted"] = (D.id in research_files.blacklisted_designs) + design_data["uid"] = D.UID() + + designs += list(design_data) + + data["designs"] = designs + + return data + + +/obj/machinery/computer/rnd_network_controller/ui_act(action, list/params) + if(..()) + return + + . = TRUE + + switch(action) + // Set network name + if("network_name") + var/new_name = tgui_input_text(usr, "Please enter a new network ID", "Network ID", network_name) + if(!Adjacent(usr) || !new_name) + return + + new_name = trim(new_name) + + if(length(new_name) == 0) + return + + if(name_check(new_name)) + to_chat(usr, "Error, network name [new_name] already in use.") + return + + to_chat(usr, "Network name changed from [network_name] to [new_name].") + network_name = new_name + + if("blacklist_design") + var/design_uid = params["d_uid"] + var/datum/design/D = locateUID(design_uid) + + // If null design, ignore + if(!istype(D)) + return + + // If not one of our designs, disallow + if(!(D.id in research_files.known_designs)) + return + + message_admins("[key_name_admin(usr)] blacklisted [D.name] from the R&D network [network_name].") + log_game("[key_name(usr)] blacklisted [D.name] from the R&D network [network_name].") + research_files.known_designs -= D.id + research_files.blacklisted_designs += D.id + research_files.RefreshResearch() + + if("unblacklist_design") + var/design_uid = params["d_uid"] + var/datum/design/D = locateUID(design_uid) + + // If null design, ignore + if(!istype(D, /datum/design)) + return + + // If not one of our designs, disallow + if(!(D.id in research_files.blacklisted_designs)) + return + + message_admins("[key_name_admin(usr)] unblacklisted [D.name] from the R&D network [network_name].") + log_game("[key_name(usr)] unblacklisted [D.name] from the R&D network [network_name].") + research_files.unblacklisted_designs += D.id + research_files.blacklisted_designs -= D.id + research_files.RefreshResearch() + + // Set network password + if("network_password") + var/new_password = tgui_input_text(usr, "Please enter a new network ID", "Network ID", network_password) + if(!Adjacent(usr)) + return + to_chat(usr, "Network password changed from [network_password] to [new_password].") + network_password = new_password + + // Remove a device + if("unlink_device") + switch(params["dclass"]) + if("SRV") + if(!(params["uid"] in servers)) + message_admins("[key_name_admin(usr)] attempted a href exploit with [src]") + return + + var/choice = tgui_alert(usr, "Are you SURE you want to unlink this device?", "Unlink", list("Yes", "No")) + if(choice != "Yes" || !Adjacent(usr)) + return + + var/obj/machinery/r_n_d/server/S = locateUID(params["uid"]) + servers -= params["uid"] + if(S) + S.unlink() + to_chat(usr, "Successfully unlinked [S.name] from the network [network_name]") + return + + if("RDC") + if(!(params["uid"] in consoles)) + message_admins("[key_name_admin(usr)] attempted a href exploit with [src]") + return + + var/choice = tgui_alert(usr, "Are you SURE you want to unlink this device?", "Unlink", list("Yes", "No")) + if(choice != "Yes" || !Adjacent(usr)) + return + + var/obj/machinery/computer/rdconsole/RDC = locateUID(params["uid"]) + consoles -= params["uid"] + if(RDC) + RDC.unlink() + to_chat(usr, "Successfully unlinked [RDC.name] from the network [network_name]") + return + + if("MFB") + if(!(params["uid"] in mechfabs)) + message_admins("[key_name_admin(usr)] attempted a href exploit with [src]") + return + + var/choice = tgui_alert(usr, "Are you SURE you want to unlink this device?", "Unlink", list("Yes", "No")) + if(choice != "Yes" || !Adjacent(usr)) + return + + var/obj/machinery/mecha_part_fabricator/MPF = locateUID(params["uid"]) + mechfabs -= params["uid"] + if(MPF) + MPF.unlink() + to_chat(usr, "Successfully unlinked [MPF.name] from the network [network_name]") + return + + if("BCK") + if(!(params["uid"] in backupconsoles)) + message_admins("[key_name_admin(usr)] attempted a href exploit with [src]") + return + + var/choice = tgui_alert(usr, "Are you SURE you want to unlink this device?", "Unlink", list("Yes", "No")) + if(choice != "Yes" || !Adjacent(usr)) + return + + var/obj/machinery/computer/rnd_backup/RB = locateUID(params["uid"]) + backupconsoles -= params["uid"] + if(RB) + RB.unlink() + to_chat(usr, "Successfully unlinked [RB.name] from the network [network_name]") + return + + +// Presets +/obj/machinery/computer/rnd_network_controller/station + network_name = "station_rnd" + +/obj/machinery/computer/rnd_network_controller/golems + network_name = "golems_rnd" diff --git a/code/modules/research/server.dm b/code/modules/research/server.dm index 7cad823802a..bf0a268eabb 100644 --- a/code/modules/research/server.dm +++ b/code/modules/research/server.dm @@ -1,48 +1,33 @@ +// These currently dont actually do anything +// They will serve a purpose once the R&D rework is done + /obj/machinery/r_n_d/server - name = "R&D Server" + name = "\improper R&D Server" icon = 'icons/obj/machines/research.dmi' icon_state = "RD-server-off" - var/datum/research/files - var/health = 100 - var/list/id_with_upload = list() //List of R&D consoles with upload to server access. - var/list/id_with_download = list() //List of R&D consoles with download from server access. - var/id_with_upload_string = "" //String versions for easy editing in map editor. - var/id_with_download_string = "" - var/server_id = 0 - var/heat_gen = 100 - var/heating_power = 40000 - var/delay = 10 - req_access = list(ACCESS_RD) //Only the R&D can change server settings. - var/plays_sound = 0 + /// ID to autolink to, used in mapload + var/autolink_id = null + /// UID of the network that we use + var/network_manager_uid = null + /obj/machinery/r_n_d/server/Initialize(mapload) - . = ..() + ..() component_parts = list() component_parts += new /obj/item/circuitboard/rdserver(null) component_parts += new /obj/item/stock_parts/scanning_module(null) component_parts += new /obj/item/stack/cable_coil(null,1) component_parts += new /obj/item/stack/cable_coil(null,1) RefreshParts() - initialize_serv(); //Agouri // fuck you agouri + return INITIALIZE_HINT_LATELOAD -/obj/machinery/r_n_d/server/upgraded/Initialize(mapload) - . = ..() - component_parts = list() - component_parts += new /obj/item/circuitboard/rdserver(null) - component_parts += new /obj/item/stock_parts/scanning_module/phasic(null) - component_parts += new /obj/item/stack/cable_coil(null,1) - component_parts += new /obj/item/stack/cable_coil(null,1) - RefreshParts() -/obj/machinery/r_n_d/server/Destroy() - griefProtection() - return ..() +/obj/machinery/r_n_d/server/LateInitialize() + for(var/obj/machinery/computer/rnd_network_controller/RNC in GLOB.rnd_network_managers) + if(RNC.network_name == autolink_id) + network_manager_uid = RNC.UID() + RNC.servers += UID() -/obj/machinery/r_n_d/server/RefreshParts() - var/tot_rating = 0 - for(var/obj/item/stock_parts/SP in src) - tot_rating += SP.rating - heat_gen /= max(1, tot_rating) /obj/machinery/r_n_d/server/update_icon_state() if(stat & NOPOWER) @@ -50,341 +35,113 @@ else icon_state = "RD-server-on" + /obj/machinery/r_n_d/server/power_change() if(!..()) return update_icon(UPDATE_ICON_STATE) -/obj/machinery/r_n_d/server/proc/initialize_serv() - if(!files) - files = new /datum/research(src) - var/list/temp_list - if(!length(id_with_upload)) - temp_list = list() - temp_list = splittext(id_with_upload_string, ";") - for(var/N in temp_list) - id_with_upload += text2num(N) - if(!length(id_with_download)) - temp_list = list() - temp_list = splittext(id_with_download_string, ";") - for(var/N in temp_list) - id_with_download += text2num(N) - -/obj/machinery/r_n_d/server/process() - if(prob(3) && plays_sound) - playsound(loc, "computer_ambience", 10, TRUE, ignore_walls = FALSE) - - var/turf/T = get_turf(src) - var/datum/gas_mixture/environment = T.get_readonly_air() - switch(environment.temperature()) - if(0 to T0C) - health = min(100, health + 1) - if(T0C to (T20C + 20)) - health = clamp(health, 0, 100) - if((T20C + 20) to INFINITY) - health = max(0, health - 1) - if(health <= 0) - /*griefProtection() This seems to get called twice before running any code that deletes/damages the server or it's files anwyay. - refreshParts and the hasReq procs that get called by this are laggy and do not need to be called by every server on the map every tick */ - var/updateRD = 0 - files.known_designs = list() - for(var/v in files.known_tech) - var/datum/tech/tech = files.known_tech[v] - // Slowly decrease research if health drops below 0 - if(prob(1)) - updateRD++ - tech.level-- - if(updateRD) - files.RefreshResearch() - if(delay) - delay-- - else - produce_heat(heat_gen) - delay = initial(delay) - -/obj/machinery/r_n_d/server/emp_act(severity) - griefProtection() - ..() - - -/obj/machinery/r_n_d/server/ex_act(severity) - griefProtection() - return ..() - -/obj/machinery/r_n_d/server/blob_act(obj/structure/blob/B) - griefProtection() - return ..() - -// Backup files to CentComm to help admins recover data after griefer attacks -/obj/machinery/r_n_d/server/proc/griefProtection() - for(var/obj/machinery/r_n_d/server/centcom/C in GLOB.machines) - files.push_data(C.files) - -/obj/machinery/r_n_d/server/proc/produce_heat(heat_amt) - var/datum/milla_safe/rnd_server_heat/milla = new() - milla.invoke_async(src, heat_amt) - -/datum/milla_safe/rnd_server_heat - -/datum/milla_safe/rnd_server_heat/on_run(obj/machinery/r_n_d/server/server, heat) - var/turf/T = get_turf(server) - var/datum/gas_mixture/env = get_turf_air(T) - - if(server.stat & (NOPOWER|BROKEN)) - return - if(env.temperature() >= (heat + T0C)) - return - - var/transfer_moles = 0.25 * env.total_moles() - - var/datum/gas_mixture/removed = env.remove(transfer_moles) - if(!removed) - return - - var/heat_capacity = removed.heat_capacity() - if(heat_capacity == 0 || heat_capacity == null) - heat_capacity = 1 - removed.set_temperature(min((removed.temperature() * heat_capacity + server.heating_power) / heat_capacity, 1000)) - env.merge(removed) /obj/machinery/r_n_d/server/crowbar_act(mob/living/user, obj/item/I) if(!panel_open) return . = TRUE - griefProtection() default_deconstruction_crowbar(user, I) + /obj/machinery/r_n_d/server/screwdriver_act(mob/living/user, obj/item/I) default_deconstruction_screwdriver(user, "RD-server-on_t", "RD-server-on", I) return TRUE -/obj/machinery/r_n_d/server/centcom - name = "CentComm. Central R&D Database" - server_id = -1 +/obj/machinery/r_n_d/server/proc/unlink() + network_manager_uid = null + SStgui.update_uis(src) -/obj/machinery/r_n_d/server/centcom/Initialize() - . = ..() - var/list/no_id_servers = list() - var/list/server_ids = list() - for(var/obj/machinery/r_n_d/server/S in GLOB.machines) - switch(S.server_id) - if(-1) - continue - if(0) - no_id_servers += S - else - server_ids += S.server_id - - for(var/obj/machinery/r_n_d/server/S in no_id_servers) - var/num = 1 - while(!S.server_id) - if(num in server_ids) - num++ - else - S.server_id = num - server_ids += num - no_id_servers -= S - -/obj/machinery/r_n_d/server/centcom/process() - return PROCESS_KILL //don't need process() +/obj/machinery/r_n_d/server/attack_hand(mob/user) + ui_interact(user) -/obj/machinery/computer/rdservercontrol - name = "\improper R&D server controller" - icon_screen = "rdcomp" - icon_keyboard = "rd_key" - light_color = LIGHT_COLOR_FADEDPURPLE - circuit = /obj/item/circuitboard/rdservercontrol - var/screen = 0 - var/obj/machinery/r_n_d/server/temp_server - var/list/servers = list() - var/list/consoles = list() - var/badmin = 0 +/obj/machinery/r_n_d/server/ui_interact(mob/user, datum/tgui/ui = null) + ui = SStgui.try_update_ui(user, src, ui) + if(!ui) + ui = new(user, src, "RndServer", name) + ui.open() -/obj/machinery/computer/rdservercontrol/Topic(href, href_list) + +/obj/machinery/r_n_d/server/ui_data(mob/user) + var/list/data = list() + + var/obj/machinery/computer/rnd_network_controller/RNC + if(network_manager_uid) + RNC = locateUID(network_manager_uid) + + if(!network_manager_uid || !RNC) + network_manager_uid = null + data["network_name"] = null + + var/list/controllers = list() + for(var/obj/machinery/computer/rnd_network_controller/RNC2 in GLOB.rnd_network_managers) + if(atoms_share_level(RNC2, src)) + controllers += list(list("addr" = "\ref[RNC2]", "netname" = RNC2.network_name)) + + data["controllers"] = controllers + + return data // Short circuit here, we aint linked + + // Network metadata + data["network_name"] = RNC.network_name + data["linked_core_addr"] = "\ref[RNC]" + + return data + + +/obj/machinery/r_n_d/server/ui_act(action, list/params) + // Check against href exploits if(..()) return - add_fingerprint(usr) - usr.set_machine(src) - if(!src.allowed(usr) && !emagged) - to_chat(usr, "You do not have the required access level") - return + . = TRUE - if(href_list["main"]) - screen = 0 - - else if(href_list["access"] || href_list["data"] || href_list["transfer"]) - temp_server = null - consoles = list() - servers = list() - for(var/obj/machinery/r_n_d/server/S in GLOB.machines) - if(istype(S, /obj/machinery/r_n_d/server/centcom) && !badmin) - continue - if(!atoms_share_level(get_turf(src), get_turf(S)) && !badmin) - continue - if(S.server_id == text2num(href_list["access"]) || S.server_id == text2num(href_list["data"]) || S.server_id == text2num(href_list["transfer"])) - temp_server = S - break - if(href_list["access"]) - screen = 1 - for(var/obj/machinery/computer/rdconsole/C in GLOB.machines) - if(C.sync) - consoles += C - else if(href_list["data"]) - screen = 2 - else if(href_list["transfer"]) - screen = 3 - for(var/obj/machinery/r_n_d/server/S in GLOB.machines) - if(S == src) - continue - servers += S - - else if(href_list["upload_toggle"]) - var/num = text2num(href_list["upload_toggle"]) - for(var/obj/machinery/computer/rdconsole/C in consoles) - if(C.id != num) - continue - - if(!atoms_share_level(get_turf(src), get_turf(C)) && !badmin) - to_chat(usr, "Unable to modify upload protocols of this console; is it in the same sector?") + switch(action) + if("unlink") + if(!network_manager_uid) return - if(num in temp_server.id_with_upload) - temp_server.id_with_upload -= num - else - temp_server.id_with_upload += num + var/choice = tgui_alert(usr, "Are you SURE you want to unlink this server?\nYou won't be able to re-link without the network password", "Unlink", list("Yes", "No")) + if(choice == "Yes") + // To the person who asks "Why not call unlink() here" + // Well, all it does is null the network manager UID and update the ui + // and we already update the UI at the end of this + var/obj/machinery/computer/rnd_network_controller/RNC = locateUID(network_manager_uid) + if(RNC) + RNC.servers -= UID() + network_manager_uid = null - else if(href_list["download_toggle"]) - var/num = text2num(href_list["download_toggle"]) - if(num in temp_server.id_with_download) - temp_server.id_with_download -= num - else - temp_server.id_with_download += num + // You should only be able to link if its not linked, to prevent weirdness + if("link") + if(network_manager_uid) + return - else if(href_list["reset_tech"]) - var/choice = tgui_alert(usr, "Technology Data Reset", "Are you sure you want to reset this technology to its default data? Data lost cannot be recovered.", list("Continue", "Cancel")) - if(choice == "Continue") - for(var/I in temp_server.files.known_tech) - var/datum/tech/T = temp_server.files.known_tech[I] - if(T.id == href_list["reset_tech"]) - T.level = 1 - break - temp_server.files.RefreshResearch() + var/obj/machinery/computer/rnd_network_controller/RNC = locate(params["addr"]) + if(istype(RNC, /obj/machinery/computer/rnd_network_controller)) + // No linking unless were on the same Z + if(!atoms_share_level(RNC, src)) + return - else if(href_list["reset_design"]) - var/choice = tgui_alert(usr, "Design Data Deletion", "Are you sure you want to blacklist this design? Ensure you sync servers after this decision.", list("Continue", "Cancel")) - if(choice == "Continue") - for(var/I in temp_server.files.known_designs) - var/datum/design/D = temp_server.files.known_designs[I] - if(D.id == href_list["reset_design"]) - temp_server.files.known_designs -= D.id - temp_server.files.blacklisted_designs += D.id - message_admins("[key_name_admin(usr)] blacklisted [D.name] from the rnd server controler.") - log_game("[key_name(usr)] blacklisted [D.name] from the rnd server controler.") - break - temp_server.files.RefreshResearch() - - else if(href_list["restore_design"]) - var/choice = tgui_alert(usr, "Design Data Restoration", "Are you sure you want to restore this design? Ensure you sync servers after this decision.", list("Continue", "Cancel")) - if(choice == "Continue") - temp_server.files.blacklisted_designs -= href_list["restore_design"] - temp_server.files.unblacklisted_designs += href_list["restore_design"] - message_admins("[key_name_admin(usr)] unblacklisted [href_list["restore_design"]] from the rnd server controler.") - log_game("[key_name(usr)] unblacklisted [href_list["restore_design"]] from the rnd server controler.") - temp_server.files.RefreshResearch() - - updateUsrDialog() - return - -/obj/machinery/computer/rdservercontrol/attack_hand(mob/user as mob) - if(stat & (BROKEN|NOPOWER)) - return - user.set_machine(src) - var/dat = "" - - switch(screen) - if(0) //Main Menu - dat += "Connected Servers:

" - - for(var/obj/machinery/r_n_d/server/S in GLOB.machines) - if(istype(S, /obj/machinery/r_n_d/server/centcom) && !badmin) - continue - if(!atoms_share_level(get_turf(src), get_turf(S)) && !badmin) - continue - dat += "[S.name] || " - dat += "Access Rights | " - dat += "Data Management" - if(badmin) dat += " | Server-to-Server Transfer" - dat += "
" - - if(1) //Access rights menu - dat += "[temp_server.name] Access Rights

" - dat += "Consoles with Upload Access
" - for(var/obj/machinery/computer/rdconsole/C in consoles) - var/turf/console_turf = get_turf(C) - dat += "* [console_turf.loc]" //FYI, these are all numeric ids, eventually. - if(C.id in temp_server.id_with_upload) - dat += " (Remove)
" + var/wifi_pass = tgui_input_text(usr, "Please enter network password","Password Entry") // ayo whats your wifi pass + // Check the password + if(wifi_pass == RNC.network_password) + network_manager_uid = RNC.UID() + RNC.servers += UID() + to_chat(usr, "Successfully linked to [RNC.network_name].") else - dat += " (Add)
" - dat += "Consoles with Download Access
" - for(var/obj/machinery/computer/rdconsole/C in consoles) - var/turf/console_turf = get_turf(C) - dat += "* [console_turf.loc]" - if(C.id in temp_server.id_with_download) - dat += " (Remove)
" - else - dat += " (Add)
" - dat += "
Main Menu" + to_chat(usr, "ERROR: Password incorrect.") - if(2) //Data Management menu - dat += "[temp_server.name] Data Management

" - dat += "Known Technologies
" - for(var/I in temp_server.files.known_tech) - var/datum/tech/T = temp_server.files.known_tech[I] - if(T.level <= 0) - continue - dat += "* [T.name] " - dat += "(Reset)
" //FYI, these are all strings. - dat += "Known Designs
" - for(var/I in temp_server.files.known_designs) - var/datum/design/D = temp_server.files.known_designs[I] - dat += "* [D.name] " - dat += "(Blacklist)
" - if(length(temp_server.files.blacklisted_designs)) - dat += "Blacklisted Designs
" - for(var/I in temp_server.files.blacklisted_designs) - dat += "* [I] " - dat += "(Restore design)
" - dat += "
Main Menu" + else + to_chat(usr, "ERROR: Network manager not found. Please file an issue report.") - if(3) //Server Data Transfer - dat += "[temp_server.name] Server to Server Transfer

" - dat += "Send Data to what server?
" - for(var/obj/machinery/r_n_d/server/S in servers) - dat += "[S.name] (Transfer)
" - dat += "
Main Menu" - user << browse("R&D Server Control
[dat]", "window=server_control;size=575x400") - onclose(user, "server_control") - return -/obj/machinery/computer/rdservercontrol/emag_act(user as mob) - if(!emagged) - playsound(loc, 'sound/effects/sparks4.ogg', 75, TRUE) - emagged = TRUE - to_chat(user, "You you disable the security protocols") - return TRUE - src.updateUsrDialog() -/obj/machinery/r_n_d/server/core - name = "Core R&D Server" - id_with_upload_string = "1;3" - id_with_download_string = "1;3" - server_id = 1 - plays_sound = 1 +// PRESETS // -/obj/machinery/r_n_d/server/robotics - name = "Robotics R&D Server" - id_with_upload_string = "1;2;4" - id_with_download_string = "1;2;4" - server_id = 2 +/obj/machinery/r_n_d/server/station + autolink_id = "station_rnd" diff --git a/icons/obj/computer.dmi b/icons/obj/computer.dmi index f941804dacadff70e3cb761cc7f5f70af52bc121..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;N0PpBiw-wJoY^_6Pgn>`da{w`dnlah zfI1tg>|jXh%g5|+L_S>;i_azicuxg(*9UUrwYUSG;Wzka2R;&;}mU146Pw%Gs-U#a)=lh6$B-5IcKGMFpaRZ`Rq!V`v z;V=Q*ZjaaA1<+_T5pa&~Vc|9V3@?=pt3j@|BMjrZuNi#Tfk< zfls-WUC?5H|DE8n6zT@y`%?|gI9IF~4ge~$*#zOKq(VClr)4bqA?6>;P@dzjh|Lw- Th|-L;vquk|Jea>9ANs!l98FJ@ diff --git a/paradise.dme b/paradise.dme index 9c247ecfd6a..b20533985ff 100644 --- a/paradise.dme +++ b/paradise.dme @@ -325,6 +325,7 @@ #include "code\controllers\subsystem\SSprofiler.dm" #include "code\controllers\subsystem\SSradiation.dm" #include "code\controllers\subsystem\SSredis.dm" +#include "code\controllers\subsystem\SSresearch.dm" #include "code\controllers\subsystem\SSrunechat.dm" #include "code\controllers\subsystem\SSsecurity_level.dm" #include "code\controllers\subsystem\SSshuttles.dm" @@ -2705,6 +2706,7 @@ #include "code\modules\redis\callbacks\dev_callback.dm" #include "code\modules\redis\callbacks\msay_callback.dm" #include "code\modules\redis\callbacks\server_messages_callback.dm" +#include "code\modules\research\backup_console.dm" #include "code\modules\research\circuitprinter.dm" #include "code\modules\research\designs.dm" #include "code\modules\research\destructive_analyzer.dm" @@ -2715,6 +2717,7 @@ #include "code\modules\research\rdconsole.dm" #include "code\modules\research\rdmachines.dm" #include "code\modules\research\research.dm" +#include "code\modules\research\rnd_network_controller.dm" #include "code\modules\research\server.dm" #include "code\modules\research\strange_objects.dm" #include "code\modules\research\anomaly\anomaly.dm" diff --git a/tgui/packages/tgui/interfaces/ExosuitFabricator.js b/tgui/packages/tgui/interfaces/ExosuitFabricator.js index d961ff2d8ff..4b707025c40 100644 --- a/tgui/packages/tgui/interfaces/ExosuitFabricator.js +++ b/tgui/packages/tgui/interfaces/ExosuitFabricator.js @@ -1,7 +1,20 @@ import { classes } from '../../common/react'; import { createSearch } from '../../common/string'; import { useBackend, useLocalState } from '../backend'; -import { Box, Button, Divider, Dropdown, Icon, Input, ProgressBar, Section, Stack } from '../components'; +import { + Box, + Button, + Divider, + Dropdown, + Icon, + Input, + ProgressBar, + Section, + Stack, + Table, + Modal, + LabeledList, +} from '../components'; import { Countdown } from '../components/Countdown'; import { Window } from '../layouts'; @@ -15,10 +28,16 @@ const iconNameOverrides = { export const ExosuitFabricator = (properties, context) => { const { act, data } = useBackend(context); - const { building } = data; + const { building, linked } = data; + + if (!linked) { + return ; + } + return ( + @@ -102,6 +121,7 @@ const Designs = (properties, context) => { return design.name; }); const filteredDesigns = designs.filter(searcher); + const [showLevelsModal, setShowLevelsModal] = useLocalState(context, 'levelsModal', false); return (

{ buttons={
+ +
+ + + Tech Name + Network Level + Disk Level + Actions + + {Object.keys(techs).map( + (t) => + !(techs[t]['network_level'] > 0 || techs[t]['disk_level'] > 0) || ( + + {techs[t]['name']} + {techs[t]['network_level'] || 'None'} + {techs[t]['disk_level'] || 'None'} + +
+
+
+ + + ); +}; + +export const LinkMenu = (properties, context) => { + const { act, data } = useBackend(context); + + const { controllers } = data; + + return ( +
+ + + Network Address + Network ID + Link + + {controllers.map((c) => ( + + {c.addr} + {c.net_id} + +
+
+ ); +}; diff --git a/tgui/packages/tgui/interfaces/RndConsole/LinkMenu.js b/tgui/packages/tgui/interfaces/RndConsole/LinkMenu.js new file mode 100644 index 00000000000..948add585be --- /dev/null +++ b/tgui/packages/tgui/interfaces/RndConsole/LinkMenu.js @@ -0,0 +1,42 @@ +import { useBackend } from '../../backend'; +import { Window } from '../../layouts'; +import { Section, Table, Button } from '../../components'; + +export const LinkMenu = (properties, context) => { + const { act, data } = useBackend(context); + + const { controllers } = data; + + return ( + + +
+ + + Network Address + Network ID + Link + + {controllers.map((c) => ( + + {c.addr} + {c.net_id} + +
+
+
+
+ ); +}; diff --git a/tgui/packages/tgui/interfaces/RndConsole/SettingsMenu.js b/tgui/packages/tgui/interfaces/RndConsole/SettingsMenu.js index 355178435dd..f7316a2a19b 100644 --- a/tgui/packages/tgui/interfaces/RndConsole/SettingsMenu.js +++ b/tgui/packages/tgui/interfaces/RndConsole/SettingsMenu.js @@ -16,35 +16,13 @@ const MainSettings = (props, context) => {
); diff --git a/tgui/packages/tgui/interfaces/RndConsole/index.js b/tgui/packages/tgui/interfaces/RndConsole/index.js index beea03e3ed6..afb709b825e 100644 --- a/tgui/packages/tgui/interfaces/RndConsole/index.js +++ b/tgui/packages/tgui/interfaces/RndConsole/index.js @@ -4,6 +4,7 @@ import { Box, Button, Icon, LabeledList, NoticeBox, Section, Table, Tabs } from import { classes } from 'common/react'; import { DataDiskMenu } from './DataDiskMenu'; import { LatheMenu } from './LatheMenu'; +import { LinkMenu } from './LinkMenu'; import { SettingsMenu } from './SettingsMenu'; import { DeconstructionMenu } from './DeconstructionMenu'; @@ -52,6 +53,11 @@ const ConsoleTab = (props, context) => { export const RndConsole = (properties, context) => { const { act, data } = useBackend(context); + + if (!data.linked) { + return ; + } + const { menu, linked_destroy, linked_lathe, linked_imprinter, wait_message } = data; return ( diff --git a/tgui/packages/tgui/interfaces/RndNetController.js b/tgui/packages/tgui/interfaces/RndNetController.js new file mode 100644 index 00000000000..07e850628ea --- /dev/null +++ b/tgui/packages/tgui/interfaces/RndNetController.js @@ -0,0 +1,169 @@ +import { createSearch } from 'common/string'; +import { Fragment } from 'inferno'; +import { useBackend, useLocalState } from '../backend'; +import { Button, LabeledList, Box, Section, NoticeBox, Tabs, Icon, Table, Input } from '../components'; +import { Window } from '../layouts'; + +export const RndNetController = (props, context) => { + const { act, data } = useBackend(context); + const { ion } = data; + const [tabIndex, setTabIndex] = useLocalState(context, 'mainTabIndex', 0); + + const PickTab = (index) => { + switch (index) { + case 0: + return ; + case 1: + return ; + default: + return 'SOMETHING WENT VERY WRONG PLEASE AHELP'; + } + }; + + return ( + + + + setTabIndex(0)}> + Network Management + + setTabIndex(1)}> + Design Management + + + {PickTab(tabIndex)} + + + ); +}; + +const NetworkPage = (_properties, context) => { + const { act, data } = useBackend(context); + + const [filterType, setFilterType] = useLocalState(context, 'filterType', 'ALL'); + + const { network_password, network_name, devices } = data; + + let filters = []; + filters.push(filterType); + + if (filterType === 'MSC') { + filters.push('BCK'); + filters.push('PGN'); + } + + const filtered_devices = filterType === 'ALL' ? devices : devices.filter((x) => filters.indexOf(x.dclass) > -1); + + return ( + <> +
+ + +
+ +
+ + setFilterType('ALL')} + icon="network-wired" + > + All Devices + + + setFilterType('SRV')} icon="server"> + R&D Servers + + + setFilterType('RDC')} + icon="desktop" + > + R&D Consoles + + + setFilterType('MFB')} icon="industry"> + Exosuit Fabricators + + + setFilterType('MSC')} icon="microchip"> + Miscellaneous Devices + + + + + + Device Name + Device ID + Unlink + + {filtered_devices.map((d) => ( + + {d.name} + {d.id} + +
+
+ + ); +}; + +const DesignPage = (_properties, context) => { + const { act, data } = useBackend(context); + const { designs } = data; + const [searchText, setSearchText] = useLocalState(context, 'searchText', ''); + + return ( +
+ setSearchText(value)} /> + {designs + .filter( + createSearch(searchText, (entry) => { + return entry.name; + }) + ) + .map((entry) => ( + act(entry.blacklisted ? 'unblacklist_design' : 'blacklist_design', { d_uid: entry.uid })} + /> + ))} +
+ ); +}; diff --git a/tgui/packages/tgui/interfaces/RndServer.js b/tgui/packages/tgui/interfaces/RndServer.js new file mode 100644 index 00000000000..249b88218b3 --- /dev/null +++ b/tgui/packages/tgui/interfaces/RndServer.js @@ -0,0 +1,78 @@ +import { useBackend } from '../backend'; +import { toFixed } from 'common/math'; +import { Button, LabeledList, Box, AnimatedNumber, Section, Table } from '../components'; +import { Window } from '../layouts'; + +export const RndServer = (props, context) => { + const { act, data } = useBackend(context); + const { active, network_name } = data; + + return ( + + +
+ + +
+ {network_name === null ? : } +
+
+ ); +}; + +const LinkedView = (_properties, context) => { + const { act, data } = useBackend(context); + const { network_name } = data; + return ( +
+ + {network_name} + +
+ ); +}; + +const UnlinkedView = (_properties, context) => { + const { act, data } = useBackend(context); + const { controllers } = data; + return ( +
+ + + Network ID + Link + + {controllers.map((c) => ( + + {c.netname} + +
+
+ ); +}; diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js index 20d6ba3533f..a131d9b5b34 100644 --- a/tgui/public/tgui.bundle.js +++ b/tgui/public/tgui.bundle.js @@ -1,26 +1,26 @@ -(function(){(function(){var Qt={96376:function(w,r,n){"use strict";r.__esModule=!0,r.createPopper=void 0,r.popperGenerator=m;var e=h(n(74758)),a=h(n(28811)),t=h(n(98309)),o=h(n(44896)),f=h(n(33118)),b=h(n(10579)),k=h(n(56500)),S=h(n(17633));r.detectOverflow=S.default;var y=n(75573);function h(u){return u&&u.__esModule?u:{default:u}}var c={placement:"bottom",modifiers:[],strategy:"absolute"};function i(){for(var u=arguments.length,s=new Array(u),l=0;l0&&(0,a.round)(h.width)/k.offsetWidth||1,i=k.offsetHeight>0&&(0,a.round)(h.height)/k.offsetHeight||1);var m=(0,e.isElement)(k)?(0,t.default)(k):window,d=m.visualViewport,u=!(0,o.default)()&&y,s=(h.left+(u&&d?d.offsetLeft:0))/c,l=(h.top+(u&&d?d.offsetTop:0))/i,v=h.width/c,N=h.height/i;return{width:v,height:N,top:l,right:s+v,bottom:l+N,left:s,x:s,y:l}}},49035:function(w,r,n){"use strict";r.__esModule=!0,r.default=N;var e=n(46206),a=u(n(87991)),t=u(n(79752)),o=u(n(98309)),f=u(n(44896)),b=u(n(40600)),k=u(n(16599)),S=n(75573),y=u(n(37786)),h=u(n(57819)),c=u(n(4206)),i=u(n(12972)),m=u(n(81666)),d=n(63618);function u(C){return C&&C.__esModule?C:{default:C}}function s(C,p){var g=(0,y.default)(C,!1,p==="fixed");return g.top=g.top+C.clientTop,g.left=g.left+C.clientLeft,g.bottom=g.top+C.clientHeight,g.right=g.left+C.clientWidth,g.width=C.clientWidth,g.height=C.clientHeight,g.x=g.left,g.y=g.top,g}function l(C,p,g){return p===e.viewport?(0,m.default)((0,a.default)(C,g)):(0,S.isElement)(p)?s(p,g):(0,m.default)((0,t.default)((0,b.default)(C)))}function v(C){var p=(0,o.default)((0,h.default)(C)),g=["absolute","fixed"].indexOf((0,k.default)(C).position)>=0,V=g&&(0,S.isHTMLElement)(C)?(0,f.default)(C):C;return(0,S.isElement)(V)?p.filter(function(I){return(0,S.isElement)(I)&&(0,c.default)(I,V)&&(0,i.default)(I)!=="body"}):[]}function N(C,p,g,V){var I=p==="clippingParents"?v(C):[].concat(p),B=[].concat(I,[g]),L=B[0],T=B.reduce(function(A,x){var E=l(C,x,V);return A.top=(0,d.max)(E.top,A.top),A.right=(0,d.min)(E.right,A.right),A.bottom=(0,d.min)(E.bottom,A.bottom),A.left=(0,d.max)(E.left,A.left),A},l(C,L,V));return T.width=T.right-T.left,T.height=T.bottom-T.top,T.x=T.left,T.y=T.top,T}},74758:function(w,r,n){"use strict";r.__esModule=!0,r.default=c;var e=y(n(37786)),a=y(n(13390)),t=y(n(12972)),o=n(75573),f=y(n(79697)),b=y(n(40600)),k=y(n(10798)),S=n(63618);function y(i){return i&&i.__esModule?i:{default:i}}function h(i){var m=i.getBoundingClientRect(),d=(0,S.round)(m.width)/i.offsetWidth||1,u=(0,S.round)(m.height)/i.offsetHeight||1;return d!==1||u!==1}function c(i,m,d){d===void 0&&(d=!1);var u=(0,o.isHTMLElement)(m),s=(0,o.isHTMLElement)(m)&&h(m),l=(0,b.default)(m),v=(0,e.default)(i,s,d),N={scrollLeft:0,scrollTop:0},C={x:0,y:0};return(u||!u&&!d)&&(((0,t.default)(m)!=="body"||(0,k.default)(l))&&(N=(0,a.default)(m)),(0,o.isHTMLElement)(m)?(C=(0,e.default)(m,!0),C.x+=m.clientLeft,C.y+=m.clientTop):l&&(C.x=(0,f.default)(l))),{x:v.left+N.scrollLeft-C.x,y:v.top+N.scrollTop-C.y,width:v.width,height:v.height}}},16599:function(w,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(95115));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return(0,e.default)(o).getComputedStyle(o)}},40600:function(w,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(75573);function a(t){return(((0,e.isElement)(t)?t.ownerDocument:t.document)||window.document).documentElement}},79752:function(w,r,n){"use strict";r.__esModule=!0,r.default=k;var e=b(n(40600)),a=b(n(16599)),t=b(n(79697)),o=b(n(43750)),f=n(63618);function b(S){return S&&S.__esModule?S:{default:S}}function k(S){var y,h=(0,e.default)(S),c=(0,o.default)(S),i=(y=S.ownerDocument)==null?void 0:y.body,m=(0,f.max)(h.scrollWidth,h.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),d=(0,f.max)(h.scrollHeight,h.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),u=-c.scrollLeft+(0,t.default)(S),s=-c.scrollTop;return(0,a.default)(i||h).direction==="rtl"&&(u+=(0,f.max)(h.clientWidth,i?i.clientWidth:0)-m),{width:m,height:d,x:u,y:s}}},3073:function(w,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}},28811:function(w,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(37786));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),b=o.offsetWidth,k=o.offsetHeight;return Math.abs(f.width-b)<=1&&(b=f.width),Math.abs(f.height-k)<=1&&(k=f.height),{x:o.offsetLeft,y:o.offsetTop,width:b,height:k}}},12972:function(w,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e?(e.nodeName||"").toLowerCase():null}},13390:function(w,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(43750)),a=f(n(95115)),t=n(75573),o=f(n(3073));function f(k){return k&&k.__esModule?k:{default:k}}function b(k){return k===(0,a.default)(k)||!(0,t.isHTMLElement)(k)?(0,e.default)(k):(0,o.default)(k)}},44896:function(w,r,n){"use strict";r.__esModule=!0,r.default=c;var e=S(n(95115)),a=S(n(12972)),t=S(n(16599)),o=n(75573),f=S(n(87031)),b=S(n(57819)),k=S(n(35366));function S(i){return i&&i.__esModule?i:{default:i}}function y(i){return!(0,o.isHTMLElement)(i)||(0,t.default)(i).position==="fixed"?null:i.offsetParent}function h(i){var m=/firefox/i.test((0,k.default)()),d=/Trident/i.test((0,k.default)());if(d&&(0,o.isHTMLElement)(i)){var u=(0,t.default)(i);if(u.position==="fixed")return null}var s=(0,b.default)(i);for((0,o.isShadowRoot)(s)&&(s=s.host);(0,o.isHTMLElement)(s)&&["html","body"].indexOf((0,a.default)(s))<0;){var l=(0,t.default)(s);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||m&&l.willChange==="filter"||m&&l.filter&&l.filter!=="none")return s;s=s.parentNode}return null}function c(i){for(var m=(0,e.default)(i),d=y(i);d&&(0,f.default)(d)&&(0,t.default)(d).position==="static";)d=y(d);return d&&((0,a.default)(d)==="html"||(0,a.default)(d)==="body"&&(0,t.default)(d).position==="static")?m:d||h(i)||m}},57819:function(w,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(12972)),a=o(n(40600)),t=n(75573);function o(b){return b&&b.__esModule?b:{default:b}}function f(b){return(0,e.default)(b)==="html"?b:b.assignedSlot||b.parentNode||((0,t.isShadowRoot)(b)?b.host:null)||(0,a.default)(b)}},24426:function(w,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(57819)),a=f(n(10798)),t=f(n(12972)),o=n(75573);function f(k){return k&&k.__esModule?k:{default:k}}function b(k){return["html","body","#document"].indexOf((0,t.default)(k))>=0?k.ownerDocument.body:(0,o.isHTMLElement)(k)&&(0,a.default)(k)?k:b((0,e.default)(k))}},87991:function(w,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(95115)),a=f(n(40600)),t=f(n(79697)),o=f(n(89331));function f(k){return k&&k.__esModule?k:{default:k}}function b(k,S){var y=(0,e.default)(k),h=(0,a.default)(k),c=y.visualViewport,i=h.clientWidth,m=h.clientHeight,d=0,u=0;if(c){i=c.width,m=c.height;var s=(0,o.default)();(s||!s&&S==="fixed")&&(d=c.offsetLeft,u=c.offsetTop)}return{width:i,height:m,x:d+(0,t.default)(k),y:u}}},95115:function(w,r){"use strict";r.__esModule=!0,r.default=n;function n(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var a=e.ownerDocument;return a&&a.defaultView||window}return e}},43750:function(w,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(95115));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),b=f.pageXOffset,k=f.pageYOffset;return{scrollLeft:b,scrollTop:k}}},79697:function(w,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(37786)),a=o(n(40600)),t=o(n(43750));function o(b){return b&&b.__esModule?b:{default:b}}function f(b){return(0,e.default)((0,a.default)(b)).left+(0,t.default)(b).scrollLeft}},75573:function(w,r,n){"use strict";r.__esModule=!0,r.isElement=t,r.isHTMLElement=o,r.isShadowRoot=f;var e=a(n(95115));function a(b){return b&&b.__esModule?b:{default:b}}function t(b){var k=(0,e.default)(b).Element;return b instanceof k||b instanceof Element}function o(b){var k=(0,e.default)(b).HTMLElement;return b instanceof k||b instanceof HTMLElement}function f(b){if(typeof ShadowRoot=="undefined")return!1;var k=(0,e.default)(b).ShadowRoot;return b instanceof k||b instanceof ShadowRoot}},89331:function(w,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(35366));function a(o){return o&&o.__esModule?o:{default:o}}function t(){return!/^((?!chrome|android).)*safari/i.test((0,e.default)())}},10798:function(w,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(16599));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),b=f.overflow,k=f.overflowX,S=f.overflowY;return/auto|scroll|overlay|hidden/.test(b+S+k)}},87031:function(w,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(12972));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return["table","td","th"].indexOf((0,e.default)(o))>=0}},98309:function(w,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(24426)),a=f(n(57819)),t=f(n(95115)),o=f(n(10798));function f(k){return k&&k.__esModule?k:{default:k}}function b(k,S){var y;S===void 0&&(S=[]);var h=(0,e.default)(k),c=h===((y=k.ownerDocument)==null?void 0:y.body),i=(0,t.default)(h),m=c?[i].concat(i.visualViewport||[],(0,o.default)(h)?h:[]):h,d=S.concat(m);return c?d:d.concat(b((0,a.default)(m)))}},46206:function(w,r){"use strict";r.__esModule=!0,r.write=r.viewport=r.variationPlacements=r.top=r.start=r.right=r.reference=r.read=r.popper=r.placements=r.modifierPhases=r.main=r.left=r.end=r.clippingParents=r.bottom=r.beforeWrite=r.beforeRead=r.beforeMain=r.basePlacements=r.auto=r.afterWrite=r.afterRead=r.afterMain=void 0;var n=r.top="top",e=r.bottom="bottom",a=r.right="right",t=r.left="left",o=r.auto="auto",f=r.basePlacements=[n,e,a,t],b=r.start="start",k=r.end="end",S=r.clippingParents="clippingParents",y=r.viewport="viewport",h=r.popper="popper",c=r.reference="reference",i=r.variationPlacements=f.reduce(function(I,B){return I.concat([B+"-"+b,B+"-"+k])},[]),m=r.placements=[].concat(f,[o]).reduce(function(I,B){return I.concat([B,B+"-"+b,B+"-"+k])},[]),d=r.beforeRead="beforeRead",u=r.read="read",s=r.afterRead="afterRead",l=r.beforeMain="beforeMain",v=r.main="main",N=r.afterMain="afterMain",C=r.beforeWrite="beforeWrite",p=r.write="write",g=r.afterWrite="afterWrite",V=r.modifierPhases=[d,u,s,l,v,N,C,p,g]},95996:function(w,r,n){"use strict";r.__esModule=!0;var e={popperGenerator:!0,detectOverflow:!0,createPopperBase:!0,createPopper:!0,createPopperLite:!0};r.popperGenerator=r.detectOverflow=r.createPopperLite=r.createPopperBase=r.createPopper=void 0;var a=n(46206);Object.keys(a).forEach(function(k){k==="default"||k==="__esModule"||Object.prototype.hasOwnProperty.call(e,k)||k in r&&r[k]===a[k]||(r[k]=a[k])});var t=n(39805);Object.keys(t).forEach(function(k){k==="default"||k==="__esModule"||Object.prototype.hasOwnProperty.call(e,k)||k in r&&r[k]===t[k]||(r[k]=t[k])});var o=n(96376);r.popperGenerator=o.popperGenerator,r.detectOverflow=o.detectOverflow,r.createPopperBase=o.createPopper;var f=n(83312);r.createPopper=f.createPopper;var b=n(2473);r.createPopperLite=b.createPopper},19975:function(w,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=t(n(12972)),a=n(75573);function t(k){return k&&k.__esModule?k:{default:k}}function o(k){var S=k.state;Object.keys(S.elements).forEach(function(y){var h=S.styles[y]||{},c=S.attributes[y]||{},i=S.elements[y];!(0,a.isHTMLElement)(i)||!(0,e.default)(i)||(Object.assign(i.style,h),Object.keys(c).forEach(function(m){var d=c[m];d===!1?i.removeAttribute(m):i.setAttribute(m,d===!0?"":d)}))})}function f(k){var S=k.state,y={popper:{position:S.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(S.elements.popper.style,y.popper),S.styles=y,S.elements.arrow&&Object.assign(S.elements.arrow.style,y.arrow),function(){Object.keys(S.elements).forEach(function(h){var c=S.elements[h],i=S.attributes[h]||{},m=Object.keys(S.styles.hasOwnProperty(h)?S.styles[h]:y[h]),d=m.reduce(function(u,s){return u[s]="",u},{});!(0,a.isHTMLElement)(c)||!(0,e.default)(c)||(Object.assign(c.style,d),Object.keys(i).forEach(function(u){c.removeAttribute(u)}))})}}var b=r.default={name:"applyStyles",enabled:!0,phase:"write",fn:o,effect:f,requires:["computeStyles"]}},52744:function(w,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=h(n(83104)),a=h(n(28811)),t=h(n(4206)),o=h(n(44896)),f=h(n(41199)),b=n(28595),k=h(n(43286)),S=h(n(81447)),y=n(46206);function h(u){return u&&u.__esModule?u:{default:u}}var c=function(){function u(s,l){return s=typeof s=="function"?s(Object.assign({},l.rects,{placement:l.placement})):s,(0,k.default)(typeof s!="number"?s:(0,S.default)(s,y.basePlacements))}return u}();function i(u){var s,l=u.state,v=u.name,N=u.options,C=l.elements.arrow,p=l.modifiersData.popperOffsets,g=(0,e.default)(l.placement),V=(0,f.default)(g),I=[y.left,y.right].indexOf(g)>=0,B=I?"height":"width";if(!(!C||!p)){var L=c(N.padding,l),T=(0,a.default)(C),A=V==="y"?y.top:y.left,x=V==="y"?y.bottom:y.right,E=l.rects.reference[B]+l.rects.reference[V]-p[V]-l.rects.popper[B],P=p[V]-l.rects.reference[V],j=(0,o.default)(C),M=j?V==="y"?j.clientHeight||0:j.clientWidth||0:0,R=E/2-P/2,D=L[A],W=M-T[B]-L[x],_=M/2-T[B]/2+R,U=(0,b.within)(D,_,W),K=V;l.modifiersData[v]=(s={},s[K]=U,s.centerOffset=U-_,s)}}function m(u){var s=u.state,l=u.options,v=l.element,N=v===void 0?"[data-popper-arrow]":v;N!=null&&(typeof N=="string"&&(N=s.elements.popper.querySelector(N),!N)||(0,t.default)(s.elements.popper,N)&&(s.elements.arrow=N))}var d=r.default={name:"arrow",enabled:!0,phase:"main",fn:i,effect:m,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},59894:function(w,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.mapToStyles=i;var e=n(46206),a=y(n(44896)),t=y(n(95115)),o=y(n(40600)),f=y(n(16599)),b=y(n(83104)),k=y(n(45)),S=n(63618);function y(u){return u&&u.__esModule?u:{default:u}}var h={top:"auto",right:"auto",bottom:"auto",left:"auto"};function c(u,s){var l=u.x,v=u.y,N=s.devicePixelRatio||1;return{x:(0,S.round)(l*N)/N||0,y:(0,S.round)(v*N)/N||0}}function i(u){var s,l=u.popper,v=u.popperRect,N=u.placement,C=u.variation,p=u.offsets,g=u.position,V=u.gpuAcceleration,I=u.adaptive,B=u.roundOffsets,L=u.isFixed,T=p.x,A=T===void 0?0:T,x=p.y,E=x===void 0?0:x,P=typeof B=="function"?B({x:A,y:E}):{x:A,y:E};A=P.x,E=P.y;var j=p.hasOwnProperty("x"),M=p.hasOwnProperty("y"),R=e.left,D=e.top,W=window;if(I){var _=(0,a.default)(l),U="clientHeight",K="clientWidth";if(_===(0,t.default)(l)&&(_=(0,o.default)(l),(0,f.default)(_).position!=="static"&&g==="absolute"&&(U="scrollHeight",K="scrollWidth")),_=_,N===e.top||(N===e.left||N===e.right)&&C===e.end){D=e.bottom;var G=L&&_===W&&W.visualViewport?W.visualViewport.height:_[U];E-=G-v.height,E*=V?1:-1}if(N===e.left||(N===e.top||N===e.bottom)&&C===e.end){R=e.right;var $=L&&_===W&&W.visualViewport?W.visualViewport.width:_[K];A-=$-v.width,A*=V?1:-1}}var Q=Object.assign({position:g},I&&h),J=B===!0?c({x:A,y:E},(0,t.default)(l)):{x:A,y:E};if(A=J.x,E=J.y,V){var ie;return Object.assign({},Q,(ie={},ie[D]=M?"0":"",ie[R]=j?"0":"",ie.transform=(W.devicePixelRatio||1)<=1?"translate("+A+"px, "+E+"px)":"translate3d("+A+"px, "+E+"px, 0)",ie))}return Object.assign({},Q,(s={},s[D]=M?E+"px":"",s[R]=j?A+"px":"",s.transform="",s))}function m(u){var s=u.state,l=u.options,v=l.gpuAcceleration,N=v===void 0?!0:v,C=l.adaptive,p=C===void 0?!0:C,g=l.roundOffsets,V=g===void 0?!0:g,I={placement:(0,b.default)(s.placement),variation:(0,k.default)(s.placement),popper:s.elements.popper,popperRect:s.rects.popper,gpuAcceleration:N,isFixed:s.options.strategy==="fixed"};s.modifiersData.popperOffsets!=null&&(s.styles.popper=Object.assign({},s.styles.popper,i(Object.assign({},I,{offsets:s.modifiersData.popperOffsets,position:s.options.strategy,adaptive:p,roundOffsets:V})))),s.modifiersData.arrow!=null&&(s.styles.arrow=Object.assign({},s.styles.arrow,i(Object.assign({},I,{offsets:s.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:V})))),s.attributes.popper=Object.assign({},s.attributes.popper,{"data-popper-placement":s.placement})}var d=r.default={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:m,data:{}}},36692:function(w,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(95115));function a(b){return b&&b.__esModule?b:{default:b}}var t={passive:!0};function o(b){var k=b.state,S=b.instance,y=b.options,h=y.scroll,c=h===void 0?!0:h,i=y.resize,m=i===void 0?!0:i,d=(0,e.default)(k.elements.popper),u=[].concat(k.scrollParents.reference,k.scrollParents.popper);return c&&u.forEach(function(s){s.addEventListener("scroll",S.update,t)}),m&&d.addEventListener("resize",S.update,t),function(){c&&u.forEach(function(s){s.removeEventListener("scroll",S.update,t)}),m&&d.removeEventListener("resize",S.update,t)}}var f=r.default={name:"eventListeners",enabled:!0,phase:"write",fn:function(){function b(){}return b}(),effect:o,data:{}}},23798:function(w,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=S(n(71376)),a=S(n(83104)),t=S(n(86459)),o=S(n(17633)),f=S(n(9041)),b=n(46206),k=S(n(45));function S(i){return i&&i.__esModule?i:{default:i}}function y(i){if((0,a.default)(i)===b.auto)return[];var m=(0,e.default)(i);return[(0,t.default)(i),m,(0,t.default)(m)]}function h(i){var m=i.state,d=i.options,u=i.name;if(!m.modifiersData[u]._skip){for(var s=d.mainAxis,l=s===void 0?!0:s,v=d.altAxis,N=v===void 0?!0:v,C=d.fallbackPlacements,p=d.padding,g=d.boundary,V=d.rootBoundary,I=d.altBoundary,B=d.flipVariations,L=B===void 0?!0:B,T=d.allowedAutoPlacements,A=m.options.placement,x=(0,a.default)(A),E=x===A,P=C||(E||!L?[(0,e.default)(A)]:y(A)),j=[A].concat(P).reduce(function(ce,ee){return ce.concat((0,a.default)(ee)===b.auto?(0,f.default)(m,{placement:ee,boundary:g,rootBoundary:V,padding:p,flipVariations:L,allowedAutoPlacements:T}):ee)},[]),M=m.rects.reference,R=m.rects.popper,D=new Map,W=!0,_=j[0],U=0;U=0,J=Q?"width":"height",ie=(0,o.default)(m,{placement:K,boundary:g,rootBoundary:V,altBoundary:I,padding:p}),ne=Q?$?b.right:b.left:$?b.bottom:b.top;M[J]>R[J]&&(ne=(0,e.default)(ne));var se=(0,e.default)(ne),Ce=[];if(l&&Ce.push(ie[G]<=0),N&&Ce.push(ie[ne]<=0,ie[se]<=0),Ce.every(function(ce){return ce})){_=K,W=!1;break}D.set(K,Ce)}if(W)for(var Se=L?3:1,ke=function(){function ce(ee){var fe=j.find(function(me){var te=D.get(me);if(te)return te.slice(0,ee).every(function(be){return be})});if(fe)return _=fe,"break"}return ce}(),he=Se;he>0;he--){var oe=ke(he);if(oe==="break")break}m.placement!==_&&(m.modifiersData[u]._skip=!0,m.placement=_,m.reset=!0)}}var c=r.default={name:"flip",enabled:!0,phase:"main",fn:h,requiresIfExists:["offset"],data:{_skip:!1}}},83761:function(w,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(46206),a=t(n(17633));function t(S){return S&&S.__esModule?S:{default:S}}function o(S,y,h){return h===void 0&&(h={x:0,y:0}),{top:S.top-y.height-h.y,right:S.right-y.width+h.x,bottom:S.bottom-y.height+h.y,left:S.left-y.width-h.x}}function f(S){return[e.top,e.right,e.bottom,e.left].some(function(y){return S[y]>=0})}function b(S){var y=S.state,h=S.name,c=y.rects.reference,i=y.rects.popper,m=y.modifiersData.preventOverflow,d=(0,a.default)(y,{elementContext:"reference"}),u=(0,a.default)(y,{altBoundary:!0}),s=o(d,c),l=o(u,i,m),v=f(s),N=f(l);y.modifiersData[h]={referenceClippingOffsets:s,popperEscapeOffsets:l,isReferenceHidden:v,hasPopperEscaped:N},y.attributes.popper=Object.assign({},y.attributes.popper,{"data-popper-reference-hidden":v,"data-popper-escaped":N})}var k=r.default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:b}},39805:function(w,r,n){"use strict";r.__esModule=!0,r.preventOverflow=r.popperOffsets=r.offset=r.hide=r.flip=r.eventListeners=r.computeStyles=r.arrow=r.applyStyles=void 0;var e=h(n(19975));r.applyStyles=e.default;var a=h(n(52744));r.arrow=a.default;var t=h(n(59894));r.computeStyles=t.default;var o=h(n(36692));r.eventListeners=o.default;var f=h(n(23798));r.flip=f.default;var b=h(n(83761));r.hide=b.default;var k=h(n(61410));r.offset=k.default;var S=h(n(40107));r.popperOffsets=S.default;var y=h(n(75137));r.preventOverflow=y.default;function h(c){return c&&c.__esModule?c:{default:c}}},61410:function(w,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.distanceAndSkiddingToXY=o;var e=t(n(83104)),a=n(46206);function t(k){return k&&k.__esModule?k:{default:k}}function o(k,S,y){var h=(0,e.default)(k),c=[a.left,a.top].indexOf(h)>=0?-1:1,i=typeof y=="function"?y(Object.assign({},S,{placement:k})):y,m=i[0],d=i[1];return m=m||0,d=(d||0)*c,[a.left,a.right].indexOf(h)>=0?{x:d,y:m}:{x:m,y:d}}function f(k){var S=k.state,y=k.options,h=k.name,c=y.offset,i=c===void 0?[0,0]:c,m=a.placements.reduce(function(l,v){return l[v]=o(v,S.rects,i),l},{}),d=m[S.placement],u=d.x,s=d.y;S.modifiersData.popperOffsets!=null&&(S.modifiersData.popperOffsets.x+=u,S.modifiersData.popperOffsets.y+=s),S.modifiersData[h]=m}var b=r.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:f}},40107:function(w,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(89951));function a(f){return f&&f.__esModule?f:{default:f}}function t(f){var b=f.state,k=f.name;b.modifiersData[k]=(0,e.default)({reference:b.rects.reference,element:b.rects.popper,strategy:"absolute",placement:b.placement})}var o=r.default={name:"popperOffsets",enabled:!0,phase:"read",fn:t,data:{}}},75137:function(w,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(46206),a=i(n(83104)),t=i(n(41199)),o=i(n(28066)),f=n(28595),b=i(n(28811)),k=i(n(44896)),S=i(n(17633)),y=i(n(45)),h=i(n(34780)),c=n(63618);function i(u){return u&&u.__esModule?u:{default:u}}function m(u){var s=u.state,l=u.options,v=u.name,N=l.mainAxis,C=N===void 0?!0:N,p=l.altAxis,g=p===void 0?!1:p,V=l.boundary,I=l.rootBoundary,B=l.altBoundary,L=l.padding,T=l.tether,A=T===void 0?!0:T,x=l.tetherOffset,E=x===void 0?0:x,P=(0,S.default)(s,{boundary:V,rootBoundary:I,padding:L,altBoundary:B}),j=(0,a.default)(s.placement),M=(0,y.default)(s.placement),R=!M,D=(0,t.default)(j),W=(0,o.default)(D),_=s.modifiersData.popperOffsets,U=s.rects.reference,K=s.rects.popper,G=typeof E=="function"?E(Object.assign({},s.rects,{placement:s.placement})):E,$=typeof G=="number"?{mainAxis:G,altAxis:G}:Object.assign({mainAxis:0,altAxis:0},G),Q=s.modifiersData.offset?s.modifiersData.offset[s.placement]:null,J={x:0,y:0};if(_){if(C){var ie,ne=D==="y"?e.top:e.left,se=D==="y"?e.bottom:e.right,Ce=D==="y"?"height":"width",Se=_[D],ke=Se+P[ne],he=Se-P[se],oe=A?-K[Ce]/2:0,ce=M===e.start?U[Ce]:K[Ce],ee=M===e.start?-K[Ce]:-U[Ce],fe=s.elements.arrow,me=A&&fe?(0,b.default)(fe):{width:0,height:0},te=s.modifiersData["arrow#persistent"]?s.modifiersData["arrow#persistent"].padding:(0,h.default)(),be=te[ne],pe=te[se],ve=(0,f.within)(0,U[Ce],me[Ce]),Be=R?U[Ce]/2-oe-ve-be-$.mainAxis:ce-ve-be-$.mainAxis,ge=R?-U[Ce]/2+oe+ve+pe+$.mainAxis:ee+ve+pe+$.mainAxis,Le=s.elements.arrow&&(0,k.default)(s.elements.arrow),we=Le?D==="y"?Le.clientTop||0:Le.clientLeft||0:0,xe=(ie=Q==null?void 0:Q[D])!=null?ie:0,Re=Se+Be-xe-we,ze=Se+ge-xe,Ve=(0,f.within)(A?(0,c.min)(ke,Re):ke,Se,A?(0,c.max)(he,ze):he);_[D]=Ve,J[D]=Ve-Se}if(g){var re,le=D==="x"?e.top:e.left,Ne=D==="x"?e.bottom:e.right,de=_[W],ye=W==="y"?"height":"width",Me=de+P[le],je=de-P[Ne],Fe=[e.top,e.left].indexOf(j)!==-1,He=(re=Q==null?void 0:Q[W])!=null?re:0,_e=Fe?Me:de-U[ye]-K[ye]-He+$.altAxis,Ue=Fe?de+U[ye]+K[ye]-He-$.altAxis:je,Xe=A&&Fe?(0,f.withinMaxClamp)(_e,de,Ue):(0,f.within)(A?_e:Me,de,A?Ue:je);_[W]=Xe,J[W]=Xe-de}s.modifiersData[v]=J}}var d=r.default={name:"preventOverflow",enabled:!0,phase:"main",fn:m,requiresIfExists:["offset"]}},2473:function(w,r,n){"use strict";r.__esModule=!0,r.defaultModifiers=r.createPopper=void 0;var e=n(96376);r.popperGenerator=e.popperGenerator,r.detectOverflow=e.detectOverflow;var a=b(n(36692)),t=b(n(40107)),o=b(n(59894)),f=b(n(19975));function b(y){return y&&y.__esModule?y:{default:y}}var k=r.defaultModifiers=[a.default,t.default,o.default,f.default],S=r.createPopper=(0,e.popperGenerator)({defaultModifiers:k})},83312:function(w,r,n){"use strict";r.__esModule=!0;var e={createPopper:!0,createPopperLite:!0,defaultModifiers:!0,popperGenerator:!0,detectOverflow:!0};r.defaultModifiers=r.createPopperLite=r.createPopper=void 0;var a=n(96376);r.popperGenerator=a.popperGenerator,r.detectOverflow=a.detectOverflow;var t=d(n(36692)),o=d(n(40107)),f=d(n(59894)),b=d(n(19975)),k=d(n(61410)),S=d(n(23798)),y=d(n(75137)),h=d(n(52744)),c=d(n(83761)),i=n(2473);r.createPopperLite=i.createPopper;var m=n(39805);Object.keys(m).forEach(function(l){l==="default"||l==="__esModule"||Object.prototype.hasOwnProperty.call(e,l)||l in r&&r[l]===m[l]||(r[l]=m[l])});function d(l){return l&&l.__esModule?l:{default:l}}var u=r.defaultModifiers=[t.default,o.default,f.default,b.default,k.default,S.default,y.default,h.default,c.default],s=r.createPopperLite=r.createPopper=(0,a.popperGenerator)({defaultModifiers:u})},9041:function(w,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(45)),a=n(46206),t=f(n(17633)),o=f(n(83104));function f(k){return k&&k.__esModule?k:{default:k}}function b(k,S){S===void 0&&(S={});var y=S,h=y.placement,c=y.boundary,i=y.rootBoundary,m=y.padding,d=y.flipVariations,u=y.allowedAutoPlacements,s=u===void 0?a.placements:u,l=(0,e.default)(h),v=l?d?a.variationPlacements:a.variationPlacements.filter(function(p){return(0,e.default)(p)===l}):a.basePlacements,N=v.filter(function(p){return s.indexOf(p)>=0});N.length===0&&(N=v);var C=N.reduce(function(p,g){return p[g]=(0,t.default)(k,{placement:g,boundary:c,rootBoundary:i,padding:m})[(0,o.default)(g)],p},{});return Object.keys(C).sort(function(p,g){return C[p]-C[g]})}},89951:function(w,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(83104)),a=f(n(45)),t=f(n(41199)),o=n(46206);function f(k){return k&&k.__esModule?k:{default:k}}function b(k){var S=k.reference,y=k.element,h=k.placement,c=h?(0,e.default)(h):null,i=h?(0,a.default)(h):null,m=S.x+S.width/2-y.width/2,d=S.y+S.height/2-y.height/2,u;switch(c){case o.top:u={x:m,y:S.y-y.height};break;case o.bottom:u={x:m,y:S.y+S.height};break;case o.right:u={x:S.x+S.width,y:d};break;case o.left:u={x:S.x-y.width,y:d};break;default:u={x:S.x,y:S.y}}var s=c?(0,t.default)(c):null;if(s!=null){var l=s==="y"?"height":"width";switch(i){case o.start:u[s]=u[s]-(S[l]/2-y[l]/2);break;case o.end:u[s]=u[s]+(S[l]/2-y[l]/2);break;default:}}return u}},10579:function(w,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a;return function(){return a||(a=new Promise(function(t){Promise.resolve().then(function(){a=void 0,t(e())})})),a}}},17633:function(w,r,n){"use strict";r.__esModule=!0,r.default=c;var e=h(n(49035)),a=h(n(40600)),t=h(n(37786)),o=h(n(89951)),f=h(n(81666)),b=n(46206),k=n(75573),S=h(n(43286)),y=h(n(81447));function h(i){return i&&i.__esModule?i:{default:i}}function c(i,m){m===void 0&&(m={});var d=m,u=d.placement,s=u===void 0?i.placement:u,l=d.strategy,v=l===void 0?i.strategy:l,N=d.boundary,C=N===void 0?b.clippingParents:N,p=d.rootBoundary,g=p===void 0?b.viewport:p,V=d.elementContext,I=V===void 0?b.popper:V,B=d.altBoundary,L=B===void 0?!1:B,T=d.padding,A=T===void 0?0:T,x=(0,S.default)(typeof A!="number"?A:(0,y.default)(A,b.basePlacements)),E=I===b.popper?b.reference:b.popper,P=i.rects.popper,j=i.elements[L?E:I],M=(0,e.default)((0,k.isElement)(j)?j:j.contextElement||(0,a.default)(i.elements.popper),C,g,v),R=(0,t.default)(i.elements.reference),D=(0,o.default)({reference:R,element:P,strategy:"absolute",placement:s}),W=(0,f.default)(Object.assign({},P,D)),_=I===b.popper?W:R,U={top:M.top-_.top+x.top,bottom:_.bottom-M.bottom+x.bottom,left:M.left-_.left+x.left,right:_.right-M.right+x.right},K=i.modifiersData.offset;if(I===b.popper&&K){var G=K[s];Object.keys(U).forEach(function($){var Q=[b.right,b.bottom].indexOf($)>=0?1:-1,J=[b.top,b.bottom].indexOf($)>=0?"y":"x";U[$]+=G[J]*Q})}return U}},81447:function(w,r){"use strict";r.__esModule=!0,r.default=n;function n(e,a){return a.reduce(function(t,o){return t[o]=e,t},{})}},28066:function(w,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e==="x"?"y":"x"}},83104:function(w,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(46206);function a(t){return t.split("-")[0]}},34780:function(w,r){"use strict";r.__esModule=!0,r.default=n;function n(){return{top:0,right:0,bottom:0,left:0}}},41199:function(w,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}},71376:function(w,r){"use strict";r.__esModule=!0,r.default=e;var n={left:"right",right:"left",bottom:"top",top:"bottom"};function e(a){return a.replace(/left|right|bottom|top/g,function(t){return n[t]})}},86459:function(w,r){"use strict";r.__esModule=!0,r.default=e;var n={start:"end",end:"start"};function e(a){return a.replace(/start|end/g,function(t){return n[t]})}},45:function(w,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e.split("-")[1]}},63618:function(w,r){"use strict";r.__esModule=!0,r.round=r.min=r.max=void 0;var n=r.max=Math.max,e=r.min=Math.min,a=r.round=Math.round},56500:function(w,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a=e.reduce(function(t,o){var f=t[o.name];return t[o.name]=f?Object.assign({},f,o,{options:Object.assign({},f.options,o.options),data:Object.assign({},f.data,o.data)}):o,t},{});return Object.keys(a).map(function(t){return a[t]})}},43286:function(w,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(34780));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return Object.assign({},(0,e.default)(),o)}},33118:function(w,r,n){"use strict";r.__esModule=!0,r.default=t;var e=n(46206);function a(o){var f=new Map,b=new Set,k=[];o.forEach(function(y){f.set(y.name,y)});function S(y){b.add(y.name);var h=[].concat(y.requires||[],y.requiresIfExists||[]);h.forEach(function(c){if(!b.has(c)){var i=f.get(c);i&&S(i)}}),k.push(y)}return o.forEach(function(y){b.has(y.name)||S(y)}),k}function t(o){var f=a(o);return e.modifierPhases.reduce(function(b,k){return b.concat(f.filter(function(S){return S.phase===k}))},[])}},81666:function(w,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}},35366:function(w,r){"use strict";r.__esModule=!0,r.default=n;function n(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(a){return a.brand+"/"+a.version}).join(" "):navigator.userAgent}},28595:function(w,r,n){"use strict";r.__esModule=!0,r.within=a,r.withinMaxClamp=t;var e=n(63618);function a(o,f,b){return(0,e.max)(o,(0,e.min)(f,b))}function t(o,f,b){var k=a(o,f,b);return k>b?b:k}},15875:function(w,r){"use strict";r.__esModule=!0,r.VNodeFlags=r.ChildFlags=void 0;var n;(function(a){a[a.Unknown=0]="Unknown",a[a.HtmlElement=1]="HtmlElement",a[a.ComponentUnknown=2]="ComponentUnknown",a[a.ComponentClass=4]="ComponentClass",a[a.ComponentFunction=8]="ComponentFunction",a[a.Text=16]="Text",a[a.SvgElement=32]="SvgElement",a[a.InputElement=64]="InputElement",a[a.TextareaElement=128]="TextareaElement",a[a.SelectElement=256]="SelectElement",a[a.Portal=1024]="Portal",a[a.ReCreate=2048]="ReCreate",a[a.ContentEditable=4096]="ContentEditable",a[a.Fragment=8192]="Fragment",a[a.InUse=16384]="InUse",a[a.ForwardRef=32768]="ForwardRef",a[a.Normalized=65536]="Normalized",a[a.ForwardRefComponent=32776]="ForwardRefComponent",a[a.FormElement=448]="FormElement",a[a.Element=481]="Element",a[a.Component=14]="Component",a[a.DOMRef=1521]="DOMRef",a[a.InUseOrNormalized=81920]="InUseOrNormalized",a[a.ClearInUse=-16385]="ClearInUse",a[a.ComponentKnown=12]="ComponentKnown"})(n||(r.VNodeFlags=n={}));var e;(function(a){a[a.UnknownChildren=0]="UnknownChildren",a[a.HasInvalidChildren=1]="HasInvalidChildren",a[a.HasVNodeChildren=2]="HasVNodeChildren",a[a.HasNonKeyedChildren=4]="HasNonKeyedChildren",a[a.HasKeyedChildren=8]="HasKeyedChildren",a[a.HasTextChildren=16]="HasTextChildren",a[a.MultipleChildren=12]="MultipleChildren"})(e||(r.ChildFlags=e={}))},89292:function(w,r){"use strict";r.__esModule=!0,r.Fragment=r.EMPTY_OBJ=r.Component=r.AnimationQueues=void 0,r._CI=Ot,r._HI=me,r._M=Ke,r._MCCC=Ft,r._ME=Dt,r._MFCC=Wt,r._MP=Pt,r._MR=at,r._RFC=gt,r.__render=zt,r.createComponentVNode=ie,r.createFragment=se,r.createPortal=oe,r.createRef=nn,r.createRenderer=En,r.createTextVNode=ne,r.createVNode=G,r.directClone=ke,r.findDOMFromVNode=V,r.forwardRef=on,r.getFlagsForElementVnode=ee,r.linkEvent=h,r.normalizeProps=Ce,r.options=void 0,r.render=Ht,r.rerender=$t,r.version=void 0;var n=Array.isArray;function e(O){var F=typeof O;return F==="string"||F==="number"}function a(O){return O==null}function t(O){return O===null||O===!1||O===!0||O===void 0}function o(O){return typeof O=="function"}function f(O){return typeof O=="string"}function b(O){return typeof O=="number"}function k(O){return O===null}function S(O){return O===void 0}function y(O,F){var z={};if(O)for(var H in O)z[H]=O[H];if(F)for(var X in F)z[X]=F[X];return z}function h(O,F){return o(F)?{data:O,event:F}:null}function c(O){return!k(O)&&typeof O=="object"}var i=r.EMPTY_OBJ={},m=r.Fragment="$F",d=r.AnimationQueues=function(){function O(){this.componentDidAppear=[],this.componentWillDisappear=[],this.componentWillMove=[]}return O}();function u(O){return O.substring(2).toLowerCase()}function s(O,F){O.appendChild(F)}function l(O,F,z){k(z)?s(O,F):O.insertBefore(F,z)}function v(O,F){return F?document.createElementNS("http://www.w3.org/2000/svg",O):document.createElement(O)}function N(O,F,z){O.replaceChild(F,z)}function C(O,F){O.removeChild(F)}function p(O){for(var F=0;F0?I(z.componentWillDisappear,T(O,F)):L(O,F,!1)}function x(O,F,z,H,X,Z,q,ae){O.componentWillMove.push({dom:H,fn:function(){function ue(){q&4?z.componentWillMove(F,X,H):q&8&&z.onComponentWillMove(F,X,H,ae)}return ue}(),next:Z,parent:X})}function E(O,F,z,H,X){var Z,q,ae=F.flags;do{var ue=F.flags;if(ue&1521){!a(Z)&&(o(Z.componentWillMove)||o(Z.onComponentWillMove))?x(X,O,Z,F.dom,z,H,ae,q):l(z,F.dom,H);return}var Te=F.children;if(ue&4)Z=F.children,q=F.props,F=Te.$LI;else if(ue&8)Z=F.ref,q=F.props,F=Te;else if(ue&8192)if(F.childFlags===2)F=Te;else{for(var Ie=0,Ee=Te.length;Ie0,Te=k(ae),Ie=f(ae)&&ae[0]===U;ue||Te||Ie?(z=z||F.slice(0,Z),(ue||Ie)&&(q=ke(q)),(Te||Ie)&&(q.key=U+Z),z.push(q)):z&&z.push(q),q.flags|=65536}}z=z||F,z.length===0?H=1:H=8}else z=F,z.flags|=65536,F.flags&81920&&(z=ke(F)),H=2;return O.children=z,O.childFlags=H,O}function me(O){return t(O)||e(O)?ne(O,null):n(O)?se(O,0,null):O.flags&16384?ke(O):O}var te="http://www.w3.org/1999/xlink",be="http://www.w3.org/XML/1998/namespace",pe={"xlink:actuate":te,"xlink:arcrole":te,"xlink:href":te,"xlink:role":te,"xlink:show":te,"xlink:title":te,"xlink:type":te,"xml:base":be,"xml:lang":be,"xml:space":be};function ve(O){return{onClick:O,onDblClick:O,onFocusIn:O,onFocusOut:O,onKeyDown:O,onKeyPress:O,onKeyUp:O,onMouseDown:O,onMouseMove:O,onMouseUp:O,onTouchEnd:O,onTouchMove:O,onTouchStart:O}}var Be=ve(0),ge=ve(null),Le=ve(!0);function we(O,F){var z=F.$EV;return z||(z=F.$EV=ve(null)),z[O]||++Be[O]===1&&(ge[O]=je(O)),z}function xe(O,F){var z=F.$EV;z&&z[O]&&(--Be[O]===0&&(document.removeEventListener(u(O),ge[O]),ge[O]=null),z[O]=null)}function Re(O,F,z,H){if(o(z))we(O,H)[O]=z;else if(c(z)){if(D(F,z))return;we(O,H)[O]=z}else xe(O,H)}function ze(O){return o(O.composedPath)?O.composedPath()[0]:O.target}function Ve(O,F,z,H){var X=ze(O);do{if(F&&X.disabled)return;var Z=X.$EV;if(Z){var q=Z[z];if(q&&(H.dom=X,q.event?q.event(q.data,O):q(O),O.cancelBubble))return}X=X.parentNode}while(!k(X))}function re(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function le(){return this.defaultPrevented}function Ne(){return this.cancelBubble}function de(O){var F={dom:document};return O.isDefaultPrevented=le,O.isPropagationStopped=Ne,O.stopPropagation=re,Object.defineProperty(O,"currentTarget",{configurable:!0,get:function(){function z(){return F.dom}return z}()}),F}function ye(O){return function(F){if(F.button!==0){F.stopPropagation();return}Ve(F,!0,O,de(F))}}function Me(O){return function(F){Ve(F,!1,O,de(F))}}function je(O){var F=O==="onClick"||O==="onDblClick"?ye(O):Me(O);return document.addEventListener(u(O),F),F}function Fe(O,F){var z=document.createElement("i");return z.innerHTML=F,z.innerHTML===O.innerHTML}function He(O,F,z){if(O[F]){var H=O[F];H.event?H.event(H.data,z):H(z)}else{var X=F.toLowerCase();O[X]&&O[X](z)}}function _e(O,F){var z=function(){function H(X){var Z=this.$V;if(Z){var q=Z.props||i,ae=Z.dom;if(f(O))He(q,O,X);else for(var ue=0;ue-1&&F.options[Z]&&(ae=F.options[Z].value),z&&a(ae)&&(ae=O.defaultValue),rt(H,ae)}}var Zt=_e("onInput",Tt),qt=_e("onChange");function en(O,F){Ue(O,"input",Zt),F.onChange&&Ue(O,"change",qt)}function Tt(O,F,z){var H=O.value,X=F.value;if(a(H)){if(z){var Z=O.defaultValue;!a(Z)&&Z!==X&&(F.defaultValue=Z,F.value=Z)}}else X!==H&&(F.defaultValue=H,F.value=H)}function xt(O,F,z,H,X,Z){O&64?ut(H,z):O&256?wt(H,z,X,F):O&128&&Tt(H,z,X),Z&&(z.$V=F)}function tn(O,F,z){O&64?Bt(F,z):O&256?Jt(F):O&128&&en(F,z)}function At(O){return O.type&&Xe(O.type)?!a(O.checked):!a(O.value)}function nn(){return{current:null}}function on(O){var F={render:O};return F}function st(O){O&&!_(O,null)&&O.current&&(O.current=null)}function at(O,F,z){O&&(o(O)||O.current!==void 0)&&z.push(function(){!_(O,F)&&O.current!==void 0&&(O.current=F)})}function Qe(O,F,z){Ze(O,z),A(O,F,z)}function Ze(O,F){var z=O.flags,H=O.children,X;if(z&481){X=O.ref;var Z=O.props;st(X);var q=O.childFlags;if(!k(Z))for(var ae=Object.keys(Z),ue=0,Te=ae.length;ue0?I(z.componentWillDisappear,rn(F,O)):O.textContent=""}function ft(O,F,z,H){ct(z,H),F.flags&8192?A(F,O,H):mt(O,z,H)}function Et(O,F,z,H,X){O.componentWillDisappear.push(function(Z){H&4?F.componentWillDisappear(z,Z):H&8&&F.onComponentWillDisappear(z,X,Z)})}function an(O){var F=O.event;return function(z){F(O.data,z)}}function cn(O,F,z,H){if(c(z)){if(D(F,z))return;z=an(z)}Ue(H,u(O),z)}function ln(O,F,z){if(a(F)){z.removeAttribute("style");return}var H=z.style,X,Z;if(f(F)){H.cssText=F;return}if(!a(O)&&!f(O)){for(X in F)Z=F[X],Z!==O[X]&&H.setProperty(X,Z);for(X in O)a(F[X])&&H.removeProperty(X)}else for(X in F)Z=F[X],H.setProperty(X,Z)}function dn(O,F,z,H,X){var Z=O&&O.__html||"",q=F&&F.__html||"";Z!==q&&!a(q)&&!Fe(H,q)&&(k(z)||(z.childFlags&12?ct(z.children,X):z.childFlags===2&&Ze(z.children,X),z.children=null,z.childFlags=1),H.innerHTML=q)}function vt(O,F,z,H,X,Z,q,ae){switch(O){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":H.autofocus=!!z;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":H[O]=!!z;break;case"defaultChecked":case"value":case"volume":if(Z&&O==="value")break;var ue=a(z)?"":z;H[O]!==ue&&(H[O]=ue);break;case"style":ln(F,z,H);break;case"dangerouslySetInnerHTML":dn(F,z,q,H,ae);break;default:Le[O]?Re(O,F,z,H):O.charCodeAt(0)===111&&O.charCodeAt(1)===110?cn(O,F,z,H):a(z)?H.removeAttribute(O):X&&pe[O]?H.setAttributeNS(pe[O],O,z):H.setAttribute(O,z);break}}function Pt(O,F,z,H,X,Z){var q=!1,ae=(F&448)>0;ae&&(q=At(z),q&&tn(F,H,z));for(var ue in z)vt(ue,null,z[ue],H,X,q,null,Z);ae&&xt(F,O,H,z,!0,q)}function Mt(O,F,z){var H=me(O.render(F,O.state,z)),X=z;return o(O.getChildContext)&&(X=y(z,O.getChildContext())),O.$CX=X,H}function Ot(O,F,z,H,X,Z){var q=new F(z,H),ae=q.$N=!!(F.getDerivedStateFromProps||q.getSnapshotBeforeUpdate);if(q.$SVG=X,q.$L=Z,O.children=q,q.$BS=!1,q.context=H,q.props===i&&(q.props=z),ae)q.state=P(q,z,q.state);else if(o(q.componentWillMount)){q.$BR=!0,q.componentWillMount();var ue=q.$PS;if(!k(ue)){var Te=q.state;if(k(Te))q.state=ue;else for(var Ie in ue)Te[Ie]=ue[Ie];q.$PS=null}q.$BR=!1}return q.$LI=Mt(q,z,H),q}function gt(O,F){var z=O.props||i;return O.flags&32768?O.type.render(z,O.ref,F):O.type(z,F)}function Ke(O,F,z,H,X,Z,q){var ae=O.flags|=16384;ae&481?Dt(O,F,z,H,X,Z,q):ae&4?mn(O,F,z,H,X,Z,q):ae&8?fn(O,F,z,H,X,Z,q):ae&16?Rt(O,F,X):ae&8192?sn(O,z,F,H,X,Z,q):ae&1024&&un(O,z,F,X,Z,q)}function un(O,F,z,H,X,Z){Ke(O.children,O.ref,F,!1,null,X,Z);var q=he();Rt(q,z,H),O.dom=q.dom}function sn(O,F,z,H,X,Z,q){var ae=O.children,ue=O.childFlags;ue&12&&ae.length===0&&(ue=O.childFlags=2,ae=O.children=he()),ue===2?Ke(ae,z,F,H,X,Z,q):ot(ae,z,F,H,X,Z,q)}function Rt(O,F,z){var H=O.dom=document.createTextNode(O.children);k(F)||l(F,H,z)}function Dt(O,F,z,H,X,Z,q){var ae=O.flags,ue=O.props,Te=O.className,Ie=O.childFlags,Ee=O.dom=v(O.type,H=H||(ae&32)>0),Ae=O.children;if(!a(Te)&&Te!==""&&(H?Ee.setAttribute("class",Te):Ee.className=Te),Ie===16)R(Ee,Ae);else if(Ie!==1){var Pe=H&&O.type!=="foreignObject";Ie===2?(Ae.flags&16384&&(O.children=Ae=ke(Ae)),Ke(Ae,Ee,z,Pe,null,Z,q)):(Ie===8||Ie===4)&&ot(Ae,Ee,z,Pe,null,Z,q)}k(F)||l(F,Ee,X),k(ue)||Pt(O,ae,ue,Ee,H,q),at(O.ref,Ee,Z)}function ot(O,F,z,H,X,Z,q){for(var ae=0;aePe)&&(Ee=V(ae[Pe-1],!1).nextSibling)}Nt(Te,Ie,ae,ue,z,H,X,Ee,O,Z,q)}function Vn(O,F,z,H,X){var Z=O.ref,q=F.ref,ae=F.children;if(Nt(O.childFlags,F.childFlags,O.children,ae,Z,z,!1,null,O,H,X),F.dom=O.dom,Z!==q&&!t(ae)){var ue=ae.dom;C(Z,ue),s(q,ue)}}function bn(O,F,z,H,X,Z,q){var ae=F.dom=O.dom,ue=O.props,Te=F.props,Ie=!1,Ee=!1,Ae;if(H=H||(X&32)>0,ue!==Te){var Pe=ue||i;if(Ae=Te||i,Ae!==i){Ie=(X&448)>0,Ie&&(Ee=At(Ae));for(var We in Ae){var Oe=Pe[We],$e=Ae[We];Oe!==$e&&vt(We,Oe,$e,ae,H,Ee,O,q)}}if(Pe!==i)for(var De in Pe)a(Ae[De])&&!a(Pe[De])&&vt(De,Pe[De],null,ae,H,Ee,O,q)}var tt=F.children,Ye=F.className;O.className!==Ye&&(a(Ye)?ae.removeAttribute("class"):H?ae.setAttribute("class",Ye):ae.className=Ye),X&4096?gn(ae,tt):Nt(O.childFlags,F.childFlags,O.children,tt,ae,z,H&&F.type!=="foreignObject",null,O,Z,q),Ie&&xt(X,F,ae,Ae,!1,Ee);var it=F.ref,Je=O.ref;Je!==it&&(st(Je),at(it,ae,Z))}function yn(O,F,z,H,X,Z,q){Ze(O,q),ot(F,z,H,X,V(O,!0),Z,q),A(O,z,q)}function Nt(O,F,z,H,X,Z,q,ae,ue,Te,Ie){switch(O){case 2:switch(F){case 2:qe(z,H,X,Z,q,ae,Te,Ie);break;case 1:Qe(z,X,Ie);break;case 16:Ze(z,Ie),R(X,H);break;default:yn(z,H,X,Z,q,Te,Ie);break}break;case 1:switch(F){case 2:Ke(H,X,Z,q,ae,Te,Ie);break;case 1:break;case 16:R(X,H);break;default:ot(H,X,Z,q,ae,Te,Ie);break}break;case 16:switch(F){case 16:vn(z,H,X);break;case 2:mt(X,z,Ie),Ke(H,X,Z,q,ae,Te,Ie);break;case 1:mt(X,z,Ie);break;default:mt(X,z,Ie),ot(H,X,Z,q,ae,Te,Ie);break}break;default:switch(F){case 16:ct(z,Ie),R(X,H);break;case 2:ft(X,ue,z,Ie),Ke(H,X,Z,q,ae,Te,Ie);break;case 1:ft(X,ue,z,Ie);break;default:var Ee=z.length|0,Ae=H.length|0;Ee===0?Ae>0&&ot(H,X,Z,q,ae,Te,Ie):Ae===0?ft(X,ue,z,Ie):F===8&&O===8?wn(z,H,X,Z,q,Ee,Ae,ae,ue,Te,Ie):Ln(z,H,X,Z,q,Ee,Ae,ae,Te,Ie);break}break}}function kn(O,F,z,H,X){X.push(function(){O.componentDidUpdate(F,z,H)})}function _t(O,F,z,H,X,Z,q,ae,ue,Te){var Ie=O.state,Ee=O.props,Ae=!!O.$N,Pe=o(O.shouldComponentUpdate);if(Ae&&(F=P(O,z,F!==Ie?y(Ie,F):F)),q||!Pe||Pe&&O.shouldComponentUpdate(z,F,X)){!Ae&&o(O.componentWillUpdate)&&O.componentWillUpdate(z,F,X),O.props=z,O.state=F,O.context=X;var We=null,Oe=Mt(O,z,X);Ae&&o(O.getSnapshotBeforeUpdate)&&(We=O.getSnapshotBeforeUpdate(Ee,Ie)),qe(O.$LI,Oe,H,O.$CX,Z,ae,ue,Te),O.$LI=Oe,o(O.componentDidUpdate)&&kn(O,Ee,Ie,We,ue)}else O.props=z,O.state=F,O.context=X}function Sn(O,F,z,H,X,Z,q,ae){var ue=F.children=O.children;if(!k(ue)){ue.$L=q;var Te=F.props||i,Ie=F.ref,Ee=O.ref,Ae=ue.state;if(!ue.$N){if(o(ue.componentWillReceiveProps)){if(ue.$BR=!0,ue.componentWillReceiveProps(Te,H),ue.$UN)return;ue.$BR=!1}k(ue.$PS)||(Ae=y(Ae,ue.$PS),ue.$PS=null)}_t(ue,Ae,Te,z,H,X,!1,Z,q,ae),Ee!==Ie&&(st(Ee),at(Ie,ue,q))}}function Bn(O,F,z,H,X,Z,q,ae){var ue=!0,Te=F.props||i,Ie=F.ref,Ee=O.props,Ae=!a(Ie),Pe=O.children;if(Ae&&o(Ie.onComponentShouldUpdate)&&(ue=Ie.onComponentShouldUpdate(Ee,Te)),ue!==!1){Ae&&o(Ie.onComponentWillUpdate)&&Ie.onComponentWillUpdate(Ee,Te);var We=me(gt(F,H));qe(Pe,We,z,H,X,Z,q,ae),F.children=We,Ae&&o(Ie.onComponentDidUpdate)&&Ie.onComponentDidUpdate(Ee,Te)}else F.children=Pe}function In(O,F){var z=F.children,H=F.dom=O.dom;z!==O.children&&(H.nodeValue=z)}function Ln(O,F,z,H,X,Z,q,ae,ue,Te){for(var Ie=Z>q?q:Z,Ee=0,Ae,Pe;Eeq)for(Ee=Ie;EeEe||Pe>Ae)break e;We=O[Pe],Oe=F[Pe]}for(We=O[Ee],Oe=F[Ae];We.key===Oe.key;){if(Oe.flags&16384&&(F[Ae]=Oe=ke(Oe)),qe(We,Oe,z,H,X,ae,Te,Ie),O[Ee]=Oe,Ee--,Ae--,Pe>Ee||Pe>Ae)break e;We=O[Ee],Oe=F[Ae]}}if(Pe>Ee){if(Pe<=Ae)for($e=Ae+1,De=$eAe)for(;Pe<=Ee;)Qe(O[Pe++],z,Ie);else Tn(O,F,H,Z,q,Ee,Ae,Pe,z,X,ae,ue,Te,Ie)}function Tn(O,F,z,H,X,Z,q,ae,ue,Te,Ie,Ee,Ae,Pe){var We,Oe,$e=0,De=0,tt=ae,Ye=ae,it=Z-ae+1,Je=q-ae+1,lt=new Int32Array(Je+1),nt=it===H,bt=!1,Ge=0,dt=0;if(X<4||(it|Je)<32)for(De=tt;De<=Z;++De)if(We=O[De],dtae?bt=!0:Ge=ae,Oe.flags&16384&&(F[ae]=Oe=ke(Oe)),qe(We,Oe,ue,z,Te,Ie,Ae,Pe),++dt;break}!nt&&ae>q&&Qe(We,ue,Pe)}else nt||Qe(We,ue,Pe);else{var Yt={};for(De=Ye;De<=q;++De)Yt[F[De].key]=De;for(De=tt;De<=Z;++De)if(We=O[De],dttt;)Qe(O[tt++],ue,Pe);lt[ae-Ye]=De+1,Ge>ae?bt=!0:Ge=ae,Oe=F[ae],Oe.flags&16384&&(F[ae]=Oe=ke(Oe)),qe(We,Oe,ue,z,Te,Ie,Ae,Pe),++dt}else nt||Qe(We,ue,Pe);else nt||Qe(We,ue,Pe)}if(nt)ft(ue,Ee,O,Pe),ot(F,ue,z,Te,Ie,Ae,Pe);else if(bt){var Xt=xn(lt);for(ae=Xt.length-1,De=Je-1;De>=0;De--)lt[De]===0?(Ge=De+Ye,Oe=F[Ge],Oe.flags&16384&&(F[Ge]=Oe=ke(Oe)),$e=Ge+1,Ke(Oe,ue,z,Te,$e0&&B(Pe.componentWillMove)}else if(dt!==Je)for(De=Je-1;De>=0;De--)lt[De]===0&&(Ge=De+Ye,Oe=F[Ge],Oe.flags&16384&&(F[Ge]=Oe=ke(Oe)),$e=Ge+1,Ke(Oe,ue,z,Te,$eUt&&(Ut=ue,et=new Int32Array(ue),pt=new Int32Array(ue));z>1,O[et[ae]]0&&(pt[z]=et[Z-1]),et[Z]=z)}Z=X+1;var Te=new Int32Array(Z);for(q=et[Z-1];Z-- >0;)Te[Z]=q,q=pt[q],et[Z]=0;return Te}var An=typeof document!="undefined";An&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);function zt(O,F,z,H){var X=[],Z=new d,q=F.$V;j.v=!0,a(q)?a(O)||(O.flags&16384&&(O=ke(O)),Ke(O,F,H,!1,null,X,Z),F.$V=O,q=O):a(O)?(Qe(q,F,Z),F.$V=null):(O.flags&16384&&(O=ke(O)),qe(q,O,F,H,!1,null,X,Z),q=F.$V=O),p(X),I(Z.componentDidAppear),j.v=!1,o(z)&&z(),o(M.renderComplete)&&M.renderComplete(q,F)}function Ht(O,F,z,H){z===void 0&&(z=null),H===void 0&&(H=i),zt(O,F,z,H)}function En(O){return function(){function F(z,H,X,Z){O||(O=z),Ht(H,O,X,Z)}return F}()}var ht=[],Pn=typeof Promise!="undefined"?Promise.resolve().then.bind(Promise.resolve()):function(O){window.setTimeout(O,0)},Vt=!1;function Kt(O,F,z,H){var X=O.$PS;if(o(F)&&(F=F(X?y(O.state,X):O.state,O.props,O.context)),a(X))O.$PS=F;else for(var Z in F)X[Z]=F[Z];if(O.$BR)o(z)&&O.$L.push(z.bind(O));else{if(!j.v&&ht.length===0){Gt(O,H),o(z)&&z.call(O);return}if(ht.indexOf(O)===-1&&ht.push(O),H&&(O.$F=!0),Vt||(Vt=!0,Pn($t)),o(z)){var q=O.$QU;q||(q=O.$QU=[]),q.push(z)}}}function Mn(O){for(var F=O.$QU,z=0;z=0;--_){var U=this.tryEntries[_],K=U.completion;if(U.tryLoc==="root")return W("end");if(U.tryLoc<=this.prev){var G=a.call(U,"catchLoc"),$=a.call(U,"finallyLoc");if(G&&$){if(this.prev=0;--W){var _=this.tryEntries[W];if(_.tryLoc<=this.prev&&a.call(_,"finallyLoc")&&this.prev<_.finallyLoc){var U=_;break}}U&&(R==="break"||R==="continue")&&U.tryLoc<=D&&D<=U.finallyLoc&&(U=null);var K=U?U.completion:{};return K.type=R,K.arg=D,U?(this.method="next",this.next=U.finallyLoc,s):this.complete(K)}return M}(),complete:function(){function M(R,D){if(R.type==="throw")throw R.arg;return R.type==="break"||R.type==="continue"?this.next=R.arg:R.type==="return"?(this.rval=this.arg=R.arg,this.method="return",this.next="end"):R.type==="normal"&&D&&(this.next=D),s}return M}(),finish:function(){function M(R){for(var D=this.tryEntries.length-1;D>=0;--D){var W=this.tryEntries[D];if(W.finallyLoc===R)return this.complete(W.completion,W.afterLoc),x(W),s}}return M}(),catch:function(){function M(R){for(var D=this.tryEntries.length-1;D>=0;--D){var W=this.tryEntries[D];if(W.tryLoc===R){var _=W.completion;if(_.type==="throw"){var U=_.arg;x(W)}return U}}throw new Error("illegal catch attempt")}return M}(),delegateYield:function(){function M(R,D,W){return this.delegate={iterator:P(R),resultName:D,nextLoc:W},this.method==="next"&&(this.arg=o),s}return M}()},n}(w.exports);try{regeneratorRuntime=r}catch(n){typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},30236:function(){"use strict";self.fetch||(self.fetch=function(w,r){return r=r||{},new Promise(function(n,e){var a=new XMLHttpRequest,t=[],o={},f=function(){function k(){return{ok:(a.status/100|0)==2,statusText:a.statusText,status:a.status,url:a.responseURL,text:function(){function S(){return Promise.resolve(a.responseText)}return S}(),json:function(){function S(){return Promise.resolve(a.responseText).then(JSON.parse)}return S}(),blob:function(){function S(){return Promise.resolve(new Blob([a.response]))}return S}(),clone:k,headers:{keys:function(){function S(){return t}return S}(),entries:function(){function S(){return t.map(function(y){return[y,a.getResponseHeader(y)]})}return S}(),get:function(){function S(y){return a.getResponseHeader(y)}return S}(),has:function(){function S(y){return a.getResponseHeader(y)!=null}return S}()}}}return k}();for(var b in a.open(r.method||"get",w,!0),a.onload=function(){a.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(k,S){o[S]||t.push(o[S]=S)}),n(f())},a.onerror=e,a.withCredentials=r.credentials=="include",r.headers)a.setRequestHeader(b,r.headers[b]);a.send(r.body||null)})})},88510:function(w,r){"use strict";r.__esModule=!0,r.zipWith=r.zip=r.uniqBy=r.uniq=r.toKeyedArray=r.toArray=r.sortBy=r.sort=r.reduce=r.range=r.map=r.filterMap=r.filter=void 0;function n(l,v){var N=typeof Symbol!="undefined"&&l[Symbol.iterator]||l["@@iterator"];if(N)return(N=N.call(l)).next.bind(N);if(Array.isArray(l)||(N=e(l))||v&&l&&typeof l.length=="number"){N&&(l=N);var C=0;return function(){return C>=l.length?{done:!0}:{done:!1,value:l[C++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(l,v){if(l){if(typeof l=="string")return a(l,v);var N={}.toString.call(l).slice(8,-1);return N==="Object"&&l.constructor&&(N=l.constructor.name),N==="Map"||N==="Set"?Array.from(l):N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N)?a(l,v):void 0}}function a(l,v){(v==null||v>l.length)&&(v=l.length);for(var N=0,C=Array(v);N0&&(0,a.round)(h.width)/y.offsetWidth||1,i=y.offsetHeight>0&&(0,a.round)(h.height)/y.offsetHeight||1);var m=(0,e.isElement)(y)?(0,t.default)(y):window,d=m.visualViewport,u=!(0,o.default)()&&k,s=(h.left+(u&&d?d.offsetLeft:0))/c,l=(h.top+(u&&d?d.offsetTop:0))/i,v=h.width/c,N=h.height/i;return{width:v,height:N,top:l,right:s+v,bottom:l+N,left:s,x:s,y:l}}},49035:function(T,r,n){"use strict";r.__esModule=!0,r.default=N;var e=n(46206),a=u(n(87991)),t=u(n(79752)),o=u(n(98309)),f=u(n(44896)),b=u(n(40600)),y=u(n(16599)),S=n(75573),k=u(n(37786)),h=u(n(57819)),c=u(n(4206)),i=u(n(12972)),m=u(n(81666)),d=n(63618);function u(C){return C&&C.__esModule?C:{default:C}}function s(C,p){var g=(0,k.default)(C,!1,p==="fixed");return g.top=g.top+C.clientTop,g.left=g.left+C.clientLeft,g.bottom=g.top+C.clientHeight,g.right=g.left+C.clientWidth,g.width=C.clientWidth,g.height=C.clientHeight,g.x=g.left,g.y=g.top,g}function l(C,p,g){return p===e.viewport?(0,m.default)((0,a.default)(C,g)):(0,S.isElement)(p)?s(p,g):(0,m.default)((0,t.default)((0,b.default)(C)))}function v(C){var p=(0,o.default)((0,h.default)(C)),g=["absolute","fixed"].indexOf((0,y.default)(C).position)>=0,V=g&&(0,S.isHTMLElement)(C)?(0,f.default)(C):C;return(0,S.isElement)(V)?p.filter(function(B){return(0,S.isElement)(B)&&(0,c.default)(B,V)&&(0,i.default)(B)!=="body"}):[]}function N(C,p,g,V){var B=p==="clippingParents"?v(C):[].concat(p),I=[].concat(B,[g]),L=I[0],w=I.reduce(function(x,A){var E=l(C,A,V);return x.top=(0,d.max)(E.top,x.top),x.right=(0,d.min)(E.right,x.right),x.bottom=(0,d.min)(E.bottom,x.bottom),x.left=(0,d.max)(E.left,x.left),x},l(C,L,V));return w.width=w.right-w.left,w.height=w.bottom-w.top,w.x=w.left,w.y=w.top,w}},74758:function(T,r,n){"use strict";r.__esModule=!0,r.default=c;var e=k(n(37786)),a=k(n(13390)),t=k(n(12972)),o=n(75573),f=k(n(79697)),b=k(n(40600)),y=k(n(10798)),S=n(63618);function k(i){return i&&i.__esModule?i:{default:i}}function h(i){var m=i.getBoundingClientRect(),d=(0,S.round)(m.width)/i.offsetWidth||1,u=(0,S.round)(m.height)/i.offsetHeight||1;return d!==1||u!==1}function c(i,m,d){d===void 0&&(d=!1);var u=(0,o.isHTMLElement)(m),s=(0,o.isHTMLElement)(m)&&h(m),l=(0,b.default)(m),v=(0,e.default)(i,s,d),N={scrollLeft:0,scrollTop:0},C={x:0,y:0};return(u||!u&&!d)&&(((0,t.default)(m)!=="body"||(0,y.default)(l))&&(N=(0,a.default)(m)),(0,o.isHTMLElement)(m)?(C=(0,e.default)(m,!0),C.x+=m.clientLeft,C.y+=m.clientTop):l&&(C.x=(0,f.default)(l))),{x:v.left+N.scrollLeft-C.x,y:v.top+N.scrollTop-C.y,width:v.width,height:v.height}}},16599:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(95115));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return(0,e.default)(o).getComputedStyle(o)}},40600:function(T,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(75573);function a(t){return(((0,e.isElement)(t)?t.ownerDocument:t.document)||window.document).documentElement}},79752:function(T,r,n){"use strict";r.__esModule=!0,r.default=y;var e=b(n(40600)),a=b(n(16599)),t=b(n(79697)),o=b(n(43750)),f=n(63618);function b(S){return S&&S.__esModule?S:{default:S}}function y(S){var k,h=(0,e.default)(S),c=(0,o.default)(S),i=(k=S.ownerDocument)==null?void 0:k.body,m=(0,f.max)(h.scrollWidth,h.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),d=(0,f.max)(h.scrollHeight,h.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),u=-c.scrollLeft+(0,t.default)(S),s=-c.scrollTop;return(0,a.default)(i||h).direction==="rtl"&&(u+=(0,f.max)(h.clientWidth,i?i.clientWidth:0)-m),{width:m,height:d,x:u,y:s}}},3073:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}},28811:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(37786));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),b=o.offsetWidth,y=o.offsetHeight;return Math.abs(f.width-b)<=1&&(b=f.width),Math.abs(f.height-y)<=1&&(y=f.height),{x:o.offsetLeft,y:o.offsetTop,width:b,height:y}}},12972:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e?(e.nodeName||"").toLowerCase():null}},13390:function(T,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(43750)),a=f(n(95115)),t=n(75573),o=f(n(3073));function f(y){return y&&y.__esModule?y:{default:y}}function b(y){return y===(0,a.default)(y)||!(0,t.isHTMLElement)(y)?(0,e.default)(y):(0,o.default)(y)}},44896:function(T,r,n){"use strict";r.__esModule=!0,r.default=c;var e=S(n(95115)),a=S(n(12972)),t=S(n(16599)),o=n(75573),f=S(n(87031)),b=S(n(57819)),y=S(n(35366));function S(i){return i&&i.__esModule?i:{default:i}}function k(i){return!(0,o.isHTMLElement)(i)||(0,t.default)(i).position==="fixed"?null:i.offsetParent}function h(i){var m=/firefox/i.test((0,y.default)()),d=/Trident/i.test((0,y.default)());if(d&&(0,o.isHTMLElement)(i)){var u=(0,t.default)(i);if(u.position==="fixed")return null}var s=(0,b.default)(i);for((0,o.isShadowRoot)(s)&&(s=s.host);(0,o.isHTMLElement)(s)&&["html","body"].indexOf((0,a.default)(s))<0;){var l=(0,t.default)(s);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||m&&l.willChange==="filter"||m&&l.filter&&l.filter!=="none")return s;s=s.parentNode}return null}function c(i){for(var m=(0,e.default)(i),d=k(i);d&&(0,f.default)(d)&&(0,t.default)(d).position==="static";)d=k(d);return d&&((0,a.default)(d)==="html"||(0,a.default)(d)==="body"&&(0,t.default)(d).position==="static")?m:d||h(i)||m}},57819:function(T,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(12972)),a=o(n(40600)),t=n(75573);function o(b){return b&&b.__esModule?b:{default:b}}function f(b){return(0,e.default)(b)==="html"?b:b.assignedSlot||b.parentNode||((0,t.isShadowRoot)(b)?b.host:null)||(0,a.default)(b)}},24426:function(T,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(57819)),a=f(n(10798)),t=f(n(12972)),o=n(75573);function f(y){return y&&y.__esModule?y:{default:y}}function b(y){return["html","body","#document"].indexOf((0,t.default)(y))>=0?y.ownerDocument.body:(0,o.isHTMLElement)(y)&&(0,a.default)(y)?y:b((0,e.default)(y))}},87991:function(T,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(95115)),a=f(n(40600)),t=f(n(79697)),o=f(n(89331));function f(y){return y&&y.__esModule?y:{default:y}}function b(y,S){var k=(0,e.default)(y),h=(0,a.default)(y),c=k.visualViewport,i=h.clientWidth,m=h.clientHeight,d=0,u=0;if(c){i=c.width,m=c.height;var s=(0,o.default)();(s||!s&&S==="fixed")&&(d=c.offsetLeft,u=c.offsetTop)}return{width:i,height:m,x:d+(0,t.default)(y),y:u}}},95115:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var a=e.ownerDocument;return a&&a.defaultView||window}return e}},43750:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(95115));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),b=f.pageXOffset,y=f.pageYOffset;return{scrollLeft:b,scrollTop:y}}},79697:function(T,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(37786)),a=o(n(40600)),t=o(n(43750));function o(b){return b&&b.__esModule?b:{default:b}}function f(b){return(0,e.default)((0,a.default)(b)).left+(0,t.default)(b).scrollLeft}},75573:function(T,r,n){"use strict";r.__esModule=!0,r.isElement=t,r.isHTMLElement=o,r.isShadowRoot=f;var e=a(n(95115));function a(b){return b&&b.__esModule?b:{default:b}}function t(b){var y=(0,e.default)(b).Element;return b instanceof y||b instanceof Element}function o(b){var y=(0,e.default)(b).HTMLElement;return b instanceof y||b instanceof HTMLElement}function f(b){if(typeof ShadowRoot=="undefined")return!1;var y=(0,e.default)(b).ShadowRoot;return b instanceof y||b instanceof ShadowRoot}},89331:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(35366));function a(o){return o&&o.__esModule?o:{default:o}}function t(){return!/^((?!chrome|android).)*safari/i.test((0,e.default)())}},10798:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(16599));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),b=f.overflow,y=f.overflowX,S=f.overflowY;return/auto|scroll|overlay|hidden/.test(b+S+y)}},87031:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(12972));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return["table","td","th"].indexOf((0,e.default)(o))>=0}},98309:function(T,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(24426)),a=f(n(57819)),t=f(n(95115)),o=f(n(10798));function f(y){return y&&y.__esModule?y:{default:y}}function b(y,S){var k;S===void 0&&(S=[]);var h=(0,e.default)(y),c=h===((k=y.ownerDocument)==null?void 0:k.body),i=(0,t.default)(h),m=c?[i].concat(i.visualViewport||[],(0,o.default)(h)?h:[]):h,d=S.concat(m);return c?d:d.concat(b((0,a.default)(m)))}},46206:function(T,r){"use strict";r.__esModule=!0,r.write=r.viewport=r.variationPlacements=r.top=r.start=r.right=r.reference=r.read=r.popper=r.placements=r.modifierPhases=r.main=r.left=r.end=r.clippingParents=r.bottom=r.beforeWrite=r.beforeRead=r.beforeMain=r.basePlacements=r.auto=r.afterWrite=r.afterRead=r.afterMain=void 0;var n=r.top="top",e=r.bottom="bottom",a=r.right="right",t=r.left="left",o=r.auto="auto",f=r.basePlacements=[n,e,a,t],b=r.start="start",y=r.end="end",S=r.clippingParents="clippingParents",k=r.viewport="viewport",h=r.popper="popper",c=r.reference="reference",i=r.variationPlacements=f.reduce(function(B,I){return B.concat([I+"-"+b,I+"-"+y])},[]),m=r.placements=[].concat(f,[o]).reduce(function(B,I){return B.concat([I,I+"-"+b,I+"-"+y])},[]),d=r.beforeRead="beforeRead",u=r.read="read",s=r.afterRead="afterRead",l=r.beforeMain="beforeMain",v=r.main="main",N=r.afterMain="afterMain",C=r.beforeWrite="beforeWrite",p=r.write="write",g=r.afterWrite="afterWrite",V=r.modifierPhases=[d,u,s,l,v,N,C,p,g]},95996:function(T,r,n){"use strict";r.__esModule=!0;var e={popperGenerator:!0,detectOverflow:!0,createPopperBase:!0,createPopper:!0,createPopperLite:!0};r.popperGenerator=r.detectOverflow=r.createPopperLite=r.createPopperBase=r.createPopper=void 0;var a=n(46206);Object.keys(a).forEach(function(y){y==="default"||y==="__esModule"||Object.prototype.hasOwnProperty.call(e,y)||y in r&&r[y]===a[y]||(r[y]=a[y])});var t=n(39805);Object.keys(t).forEach(function(y){y==="default"||y==="__esModule"||Object.prototype.hasOwnProperty.call(e,y)||y in r&&r[y]===t[y]||(r[y]=t[y])});var o=n(96376);r.popperGenerator=o.popperGenerator,r.detectOverflow=o.detectOverflow,r.createPopperBase=o.createPopper;var f=n(83312);r.createPopper=f.createPopper;var b=n(2473);r.createPopperLite=b.createPopper},19975:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=t(n(12972)),a=n(75573);function t(y){return y&&y.__esModule?y:{default:y}}function o(y){var S=y.state;Object.keys(S.elements).forEach(function(k){var h=S.styles[k]||{},c=S.attributes[k]||{},i=S.elements[k];!(0,a.isHTMLElement)(i)||!(0,e.default)(i)||(Object.assign(i.style,h),Object.keys(c).forEach(function(m){var d=c[m];d===!1?i.removeAttribute(m):i.setAttribute(m,d===!0?"":d)}))})}function f(y){var S=y.state,k={popper:{position:S.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(S.elements.popper.style,k.popper),S.styles=k,S.elements.arrow&&Object.assign(S.elements.arrow.style,k.arrow),function(){Object.keys(S.elements).forEach(function(h){var c=S.elements[h],i=S.attributes[h]||{},m=Object.keys(S.styles.hasOwnProperty(h)?S.styles[h]:k[h]),d=m.reduce(function(u,s){return u[s]="",u},{});!(0,a.isHTMLElement)(c)||!(0,e.default)(c)||(Object.assign(c.style,d),Object.keys(i).forEach(function(u){c.removeAttribute(u)}))})}}var b=r.default={name:"applyStyles",enabled:!0,phase:"write",fn:o,effect:f,requires:["computeStyles"]}},52744:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=h(n(83104)),a=h(n(28811)),t=h(n(4206)),o=h(n(44896)),f=h(n(41199)),b=n(28595),y=h(n(43286)),S=h(n(81447)),k=n(46206);function h(u){return u&&u.__esModule?u:{default:u}}var c=function(){function u(s,l){return s=typeof s=="function"?s(Object.assign({},l.rects,{placement:l.placement})):s,(0,y.default)(typeof s!="number"?s:(0,S.default)(s,k.basePlacements))}return u}();function i(u){var s,l=u.state,v=u.name,N=u.options,C=l.elements.arrow,p=l.modifiersData.popperOffsets,g=(0,e.default)(l.placement),V=(0,f.default)(g),B=[k.left,k.right].indexOf(g)>=0,I=B?"height":"width";if(!(!C||!p)){var L=c(N.padding,l),w=(0,a.default)(C),x=V==="y"?k.top:k.left,A=V==="y"?k.bottom:k.right,E=l.rects.reference[I]+l.rects.reference[V]-p[V]-l.rects.popper[I],P=p[V]-l.rects.reference[V],j=(0,o.default)(C),M=j?V==="y"?j.clientHeight||0:j.clientWidth||0:0,R=E/2-P/2,D=L[x],W=M-w[I]-L[A],_=M/2-w[I]/2+R,U=(0,b.within)(D,_,W),K=V;l.modifiersData[v]=(s={},s[K]=U,s.centerOffset=U-_,s)}}function m(u){var s=u.state,l=u.options,v=l.element,N=v===void 0?"[data-popper-arrow]":v;N!=null&&(typeof N=="string"&&(N=s.elements.popper.querySelector(N),!N)||(0,t.default)(s.elements.popper,N)&&(s.elements.arrow=N))}var d=r.default={name:"arrow",enabled:!0,phase:"main",fn:i,effect:m,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},59894:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.mapToStyles=i;var e=n(46206),a=k(n(44896)),t=k(n(95115)),o=k(n(40600)),f=k(n(16599)),b=k(n(83104)),y=k(n(45)),S=n(63618);function k(u){return u&&u.__esModule?u:{default:u}}var h={top:"auto",right:"auto",bottom:"auto",left:"auto"};function c(u,s){var l=u.x,v=u.y,N=s.devicePixelRatio||1;return{x:(0,S.round)(l*N)/N||0,y:(0,S.round)(v*N)/N||0}}function i(u){var s,l=u.popper,v=u.popperRect,N=u.placement,C=u.variation,p=u.offsets,g=u.position,V=u.gpuAcceleration,B=u.adaptive,I=u.roundOffsets,L=u.isFixed,w=p.x,x=w===void 0?0:w,A=p.y,E=A===void 0?0:A,P=typeof I=="function"?I({x:x,y:E}):{x:x,y:E};x=P.x,E=P.y;var j=p.hasOwnProperty("x"),M=p.hasOwnProperty("y"),R=e.left,D=e.top,W=window;if(B){var _=(0,a.default)(l),U="clientHeight",K="clientWidth";if(_===(0,t.default)(l)&&(_=(0,o.default)(l),(0,f.default)(_).position!=="static"&&g==="absolute"&&(U="scrollHeight",K="scrollWidth")),_=_,N===e.top||(N===e.left||N===e.right)&&C===e.end){D=e.bottom;var G=L&&_===W&&W.visualViewport?W.visualViewport.height:_[U];E-=G-v.height,E*=V?1:-1}if(N===e.left||(N===e.top||N===e.bottom)&&C===e.end){R=e.right;var $=L&&_===W&&W.visualViewport?W.visualViewport.width:_[K];x-=$-v.width,x*=V?1:-1}}var Q=Object.assign({position:g},B&&h),J=I===!0?c({x:x,y:E},(0,t.default)(l)):{x:x,y:E};if(x=J.x,E=J.y,V){var ie;return Object.assign({},Q,(ie={},ie[D]=M?"0":"",ie[R]=j?"0":"",ie.transform=(W.devicePixelRatio||1)<=1?"translate("+x+"px, "+E+"px)":"translate3d("+x+"px, "+E+"px, 0)",ie))}return Object.assign({},Q,(s={},s[D]=M?E+"px":"",s[R]=j?x+"px":"",s.transform="",s))}function m(u){var s=u.state,l=u.options,v=l.gpuAcceleration,N=v===void 0?!0:v,C=l.adaptive,p=C===void 0?!0:C,g=l.roundOffsets,V=g===void 0?!0:g,B={placement:(0,b.default)(s.placement),variation:(0,y.default)(s.placement),popper:s.elements.popper,popperRect:s.rects.popper,gpuAcceleration:N,isFixed:s.options.strategy==="fixed"};s.modifiersData.popperOffsets!=null&&(s.styles.popper=Object.assign({},s.styles.popper,i(Object.assign({},B,{offsets:s.modifiersData.popperOffsets,position:s.options.strategy,adaptive:p,roundOffsets:V})))),s.modifiersData.arrow!=null&&(s.styles.arrow=Object.assign({},s.styles.arrow,i(Object.assign({},B,{offsets:s.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:V})))),s.attributes.popper=Object.assign({},s.attributes.popper,{"data-popper-placement":s.placement})}var d=r.default={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:m,data:{}}},36692:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(95115));function a(b){return b&&b.__esModule?b:{default:b}}var t={passive:!0};function o(b){var y=b.state,S=b.instance,k=b.options,h=k.scroll,c=h===void 0?!0:h,i=k.resize,m=i===void 0?!0:i,d=(0,e.default)(y.elements.popper),u=[].concat(y.scrollParents.reference,y.scrollParents.popper);return c&&u.forEach(function(s){s.addEventListener("scroll",S.update,t)}),m&&d.addEventListener("resize",S.update,t),function(){c&&u.forEach(function(s){s.removeEventListener("scroll",S.update,t)}),m&&d.removeEventListener("resize",S.update,t)}}var f=r.default={name:"eventListeners",enabled:!0,phase:"write",fn:function(){function b(){}return b}(),effect:o,data:{}}},23798:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=S(n(71376)),a=S(n(83104)),t=S(n(86459)),o=S(n(17633)),f=S(n(9041)),b=n(46206),y=S(n(45));function S(i){return i&&i.__esModule?i:{default:i}}function k(i){if((0,a.default)(i)===b.auto)return[];var m=(0,e.default)(i);return[(0,t.default)(i),m,(0,t.default)(m)]}function h(i){var m=i.state,d=i.options,u=i.name;if(!m.modifiersData[u]._skip){for(var s=d.mainAxis,l=s===void 0?!0:s,v=d.altAxis,N=v===void 0?!0:v,C=d.fallbackPlacements,p=d.padding,g=d.boundary,V=d.rootBoundary,B=d.altBoundary,I=d.flipVariations,L=I===void 0?!0:I,w=d.allowedAutoPlacements,x=m.options.placement,A=(0,a.default)(x),E=A===x,P=C||(E||!L?[(0,e.default)(x)]:k(x)),j=[x].concat(P).reduce(function(ce,ee){return ce.concat((0,a.default)(ee)===b.auto?(0,f.default)(m,{placement:ee,boundary:g,rootBoundary:V,padding:p,flipVariations:L,allowedAutoPlacements:w}):ee)},[]),M=m.rects.reference,R=m.rects.popper,D=new Map,W=!0,_=j[0],U=0;U=0,J=Q?"width":"height",ie=(0,o.default)(m,{placement:K,boundary:g,rootBoundary:V,altBoundary:B,padding:p}),ne=Q?$?b.right:b.left:$?b.bottom:b.top;M[J]>R[J]&&(ne=(0,e.default)(ne));var se=(0,e.default)(ne),Ce=[];if(l&&Ce.push(ie[G]<=0),N&&Ce.push(ie[ne]<=0,ie[se]<=0),Ce.every(function(ce){return ce})){_=K,W=!1;break}D.set(K,Ce)}if(W)for(var Se=L?3:1,ye=function(){function ce(ee){var fe=j.find(function(me){var te=D.get(me);if(te)return te.slice(0,ee).every(function(be){return be})});if(fe)return _=fe,"break"}return ce}(),he=Se;he>0;he--){var oe=ye(he);if(oe==="break")break}m.placement!==_&&(m.modifiersData[u]._skip=!0,m.placement=_,m.reset=!0)}}var c=r.default={name:"flip",enabled:!0,phase:"main",fn:h,requiresIfExists:["offset"],data:{_skip:!1}}},83761:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(46206),a=t(n(17633));function t(S){return S&&S.__esModule?S:{default:S}}function o(S,k,h){return h===void 0&&(h={x:0,y:0}),{top:S.top-k.height-h.y,right:S.right-k.width+h.x,bottom:S.bottom-k.height+h.y,left:S.left-k.width-h.x}}function f(S){return[e.top,e.right,e.bottom,e.left].some(function(k){return S[k]>=0})}function b(S){var k=S.state,h=S.name,c=k.rects.reference,i=k.rects.popper,m=k.modifiersData.preventOverflow,d=(0,a.default)(k,{elementContext:"reference"}),u=(0,a.default)(k,{altBoundary:!0}),s=o(d,c),l=o(u,i,m),v=f(s),N=f(l);k.modifiersData[h]={referenceClippingOffsets:s,popperEscapeOffsets:l,isReferenceHidden:v,hasPopperEscaped:N},k.attributes.popper=Object.assign({},k.attributes.popper,{"data-popper-reference-hidden":v,"data-popper-escaped":N})}var y=r.default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:b}},39805:function(T,r,n){"use strict";r.__esModule=!0,r.preventOverflow=r.popperOffsets=r.offset=r.hide=r.flip=r.eventListeners=r.computeStyles=r.arrow=r.applyStyles=void 0;var e=h(n(19975));r.applyStyles=e.default;var a=h(n(52744));r.arrow=a.default;var t=h(n(59894));r.computeStyles=t.default;var o=h(n(36692));r.eventListeners=o.default;var f=h(n(23798));r.flip=f.default;var b=h(n(83761));r.hide=b.default;var y=h(n(61410));r.offset=y.default;var S=h(n(40107));r.popperOffsets=S.default;var k=h(n(75137));r.preventOverflow=k.default;function h(c){return c&&c.__esModule?c:{default:c}}},61410:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.distanceAndSkiddingToXY=o;var e=t(n(83104)),a=n(46206);function t(y){return y&&y.__esModule?y:{default:y}}function o(y,S,k){var h=(0,e.default)(y),c=[a.left,a.top].indexOf(h)>=0?-1:1,i=typeof k=="function"?k(Object.assign({},S,{placement:y})):k,m=i[0],d=i[1];return m=m||0,d=(d||0)*c,[a.left,a.right].indexOf(h)>=0?{x:d,y:m}:{x:m,y:d}}function f(y){var S=y.state,k=y.options,h=y.name,c=k.offset,i=c===void 0?[0,0]:c,m=a.placements.reduce(function(l,v){return l[v]=o(v,S.rects,i),l},{}),d=m[S.placement],u=d.x,s=d.y;S.modifiersData.popperOffsets!=null&&(S.modifiersData.popperOffsets.x+=u,S.modifiersData.popperOffsets.y+=s),S.modifiersData[h]=m}var b=r.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:f}},40107:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(89951));function a(f){return f&&f.__esModule?f:{default:f}}function t(f){var b=f.state,y=f.name;b.modifiersData[y]=(0,e.default)({reference:b.rects.reference,element:b.rects.popper,strategy:"absolute",placement:b.placement})}var o=r.default={name:"popperOffsets",enabled:!0,phase:"read",fn:t,data:{}}},75137:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(46206),a=i(n(83104)),t=i(n(41199)),o=i(n(28066)),f=n(28595),b=i(n(28811)),y=i(n(44896)),S=i(n(17633)),k=i(n(45)),h=i(n(34780)),c=n(63618);function i(u){return u&&u.__esModule?u:{default:u}}function m(u){var s=u.state,l=u.options,v=u.name,N=l.mainAxis,C=N===void 0?!0:N,p=l.altAxis,g=p===void 0?!1:p,V=l.boundary,B=l.rootBoundary,I=l.altBoundary,L=l.padding,w=l.tether,x=w===void 0?!0:w,A=l.tetherOffset,E=A===void 0?0:A,P=(0,S.default)(s,{boundary:V,rootBoundary:B,padding:L,altBoundary:I}),j=(0,a.default)(s.placement),M=(0,k.default)(s.placement),R=!M,D=(0,t.default)(j),W=(0,o.default)(D),_=s.modifiersData.popperOffsets,U=s.rects.reference,K=s.rects.popper,G=typeof E=="function"?E(Object.assign({},s.rects,{placement:s.placement})):E,$=typeof G=="number"?{mainAxis:G,altAxis:G}:Object.assign({mainAxis:0,altAxis:0},G),Q=s.modifiersData.offset?s.modifiersData.offset[s.placement]:null,J={x:0,y:0};if(_){if(C){var ie,ne=D==="y"?e.top:e.left,se=D==="y"?e.bottom:e.right,Ce=D==="y"?"height":"width",Se=_[D],ye=Se+P[ne],he=Se-P[se],oe=x?-K[Ce]/2:0,ce=M===e.start?U[Ce]:K[Ce],ee=M===e.start?-K[Ce]:-U[Ce],fe=s.elements.arrow,me=x&&fe?(0,b.default)(fe):{width:0,height:0},te=s.modifiersData["arrow#persistent"]?s.modifiersData["arrow#persistent"].padding:(0,h.default)(),be=te[ne],pe=te[se],ve=(0,f.within)(0,U[Ce],me[Ce]),Be=R?U[Ce]/2-oe-ve-be-$.mainAxis:ce-ve-be-$.mainAxis,ge=R?-U[Ce]/2+oe+ve+pe+$.mainAxis:ee+ve+pe+$.mainAxis,Le=s.elements.arrow&&(0,y.default)(s.elements.arrow),we=Le?D==="y"?Le.clientTop||0:Le.clientLeft||0:0,xe=(ie=Q==null?void 0:Q[D])!=null?ie:0,Re=Se+Be-xe-we,ze=Se+ge-xe,Ve=(0,f.within)(x?(0,c.min)(ye,Re):ye,Se,x?(0,c.max)(he,ze):he);_[D]=Ve,J[D]=Ve-Se}if(g){var re,le=D==="x"?e.top:e.left,Ne=D==="x"?e.bottom:e.right,de=_[W],ke=W==="y"?"height":"width",Me=de+P[le],je=de-P[Ne],Fe=[e.top,e.left].indexOf(j)!==-1,He=(re=Q==null?void 0:Q[W])!=null?re:0,_e=Fe?Me:de-U[ke]-K[ke]-He+$.altAxis,Ue=Fe?de+U[ke]+K[ke]-He-$.altAxis:je,Xe=x&&Fe?(0,f.withinMaxClamp)(_e,de,Ue):(0,f.within)(x?_e:Me,de,x?Ue:je);_[W]=Xe,J[W]=Xe-de}s.modifiersData[v]=J}}var d=r.default={name:"preventOverflow",enabled:!0,phase:"main",fn:m,requiresIfExists:["offset"]}},2473:function(T,r,n){"use strict";r.__esModule=!0,r.defaultModifiers=r.createPopper=void 0;var e=n(96376);r.popperGenerator=e.popperGenerator,r.detectOverflow=e.detectOverflow;var a=b(n(36692)),t=b(n(40107)),o=b(n(59894)),f=b(n(19975));function b(k){return k&&k.__esModule?k:{default:k}}var y=r.defaultModifiers=[a.default,t.default,o.default,f.default],S=r.createPopper=(0,e.popperGenerator)({defaultModifiers:y})},83312:function(T,r,n){"use strict";r.__esModule=!0;var e={createPopper:!0,createPopperLite:!0,defaultModifiers:!0,popperGenerator:!0,detectOverflow:!0};r.defaultModifiers=r.createPopperLite=r.createPopper=void 0;var a=n(96376);r.popperGenerator=a.popperGenerator,r.detectOverflow=a.detectOverflow;var t=d(n(36692)),o=d(n(40107)),f=d(n(59894)),b=d(n(19975)),y=d(n(61410)),S=d(n(23798)),k=d(n(75137)),h=d(n(52744)),c=d(n(83761)),i=n(2473);r.createPopperLite=i.createPopper;var m=n(39805);Object.keys(m).forEach(function(l){l==="default"||l==="__esModule"||Object.prototype.hasOwnProperty.call(e,l)||l in r&&r[l]===m[l]||(r[l]=m[l])});function d(l){return l&&l.__esModule?l:{default:l}}var u=r.defaultModifiers=[t.default,o.default,f.default,b.default,y.default,S.default,k.default,h.default,c.default],s=r.createPopperLite=r.createPopper=(0,a.popperGenerator)({defaultModifiers:u})},9041:function(T,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(45)),a=n(46206),t=f(n(17633)),o=f(n(83104));function f(y){return y&&y.__esModule?y:{default:y}}function b(y,S){S===void 0&&(S={});var k=S,h=k.placement,c=k.boundary,i=k.rootBoundary,m=k.padding,d=k.flipVariations,u=k.allowedAutoPlacements,s=u===void 0?a.placements:u,l=(0,e.default)(h),v=l?d?a.variationPlacements:a.variationPlacements.filter(function(p){return(0,e.default)(p)===l}):a.basePlacements,N=v.filter(function(p){return s.indexOf(p)>=0});N.length===0&&(N=v);var C=N.reduce(function(p,g){return p[g]=(0,t.default)(y,{placement:g,boundary:c,rootBoundary:i,padding:m})[(0,o.default)(g)],p},{});return Object.keys(C).sort(function(p,g){return C[p]-C[g]})}},89951:function(T,r,n){"use strict";r.__esModule=!0,r.default=b;var e=f(n(83104)),a=f(n(45)),t=f(n(41199)),o=n(46206);function f(y){return y&&y.__esModule?y:{default:y}}function b(y){var S=y.reference,k=y.element,h=y.placement,c=h?(0,e.default)(h):null,i=h?(0,a.default)(h):null,m=S.x+S.width/2-k.width/2,d=S.y+S.height/2-k.height/2,u;switch(c){case o.top:u={x:m,y:S.y-k.height};break;case o.bottom:u={x:m,y:S.y+S.height};break;case o.right:u={x:S.x+S.width,y:d};break;case o.left:u={x:S.x-k.width,y:d};break;default:u={x:S.x,y:S.y}}var s=c?(0,t.default)(c):null;if(s!=null){var l=s==="y"?"height":"width";switch(i){case o.start:u[s]=u[s]-(S[l]/2-k[l]/2);break;case o.end:u[s]=u[s]+(S[l]/2-k[l]/2);break;default:}}return u}},10579:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a;return function(){return a||(a=new Promise(function(t){Promise.resolve().then(function(){a=void 0,t(e())})})),a}}},17633:function(T,r,n){"use strict";r.__esModule=!0,r.default=c;var e=h(n(49035)),a=h(n(40600)),t=h(n(37786)),o=h(n(89951)),f=h(n(81666)),b=n(46206),y=n(75573),S=h(n(43286)),k=h(n(81447));function h(i){return i&&i.__esModule?i:{default:i}}function c(i,m){m===void 0&&(m={});var d=m,u=d.placement,s=u===void 0?i.placement:u,l=d.strategy,v=l===void 0?i.strategy:l,N=d.boundary,C=N===void 0?b.clippingParents:N,p=d.rootBoundary,g=p===void 0?b.viewport:p,V=d.elementContext,B=V===void 0?b.popper:V,I=d.altBoundary,L=I===void 0?!1:I,w=d.padding,x=w===void 0?0:w,A=(0,S.default)(typeof x!="number"?x:(0,k.default)(x,b.basePlacements)),E=B===b.popper?b.reference:b.popper,P=i.rects.popper,j=i.elements[L?E:B],M=(0,e.default)((0,y.isElement)(j)?j:j.contextElement||(0,a.default)(i.elements.popper),C,g,v),R=(0,t.default)(i.elements.reference),D=(0,o.default)({reference:R,element:P,strategy:"absolute",placement:s}),W=(0,f.default)(Object.assign({},P,D)),_=B===b.popper?W:R,U={top:M.top-_.top+A.top,bottom:_.bottom-M.bottom+A.bottom,left:M.left-_.left+A.left,right:_.right-M.right+A.right},K=i.modifiersData.offset;if(B===b.popper&&K){var G=K[s];Object.keys(U).forEach(function($){var Q=[b.right,b.bottom].indexOf($)>=0?1:-1,J=[b.top,b.bottom].indexOf($)>=0?"y":"x";U[$]+=G[J]*Q})}return U}},81447:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e,a){return a.reduce(function(t,o){return t[o]=e,t},{})}},28066:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e==="x"?"y":"x"}},83104:function(T,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(46206);function a(t){return t.split("-")[0]}},34780:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(){return{top:0,right:0,bottom:0,left:0}}},41199:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}},71376:function(T,r){"use strict";r.__esModule=!0,r.default=e;var n={left:"right",right:"left",bottom:"top",top:"bottom"};function e(a){return a.replace(/left|right|bottom|top/g,function(t){return n[t]})}},86459:function(T,r){"use strict";r.__esModule=!0,r.default=e;var n={start:"end",end:"start"};function e(a){return a.replace(/start|end/g,function(t){return n[t]})}},45:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e.split("-")[1]}},63618:function(T,r){"use strict";r.__esModule=!0,r.round=r.min=r.max=void 0;var n=r.max=Math.max,e=r.min=Math.min,a=r.round=Math.round},56500:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a=e.reduce(function(t,o){var f=t[o.name];return t[o.name]=f?Object.assign({},f,o,{options:Object.assign({},f.options,o.options),data:Object.assign({},f.data,o.data)}):o,t},{});return Object.keys(a).map(function(t){return a[t]})}},43286:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(34780));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return Object.assign({},(0,e.default)(),o)}},33118:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=n(46206);function a(o){var f=new Map,b=new Set,y=[];o.forEach(function(k){f.set(k.name,k)});function S(k){b.add(k.name);var h=[].concat(k.requires||[],k.requiresIfExists||[]);h.forEach(function(c){if(!b.has(c)){var i=f.get(c);i&&S(i)}}),y.push(k)}return o.forEach(function(k){b.has(k.name)||S(k)}),y}function t(o){var f=a(o);return e.modifierPhases.reduce(function(b,y){return b.concat(f.filter(function(S){return S.phase===y}))},[])}},81666:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}},35366:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(a){return a.brand+"/"+a.version}).join(" "):navigator.userAgent}},28595:function(T,r,n){"use strict";r.__esModule=!0,r.within=a,r.withinMaxClamp=t;var e=n(63618);function a(o,f,b){return(0,e.max)(o,(0,e.min)(f,b))}function t(o,f,b){var y=a(o,f,b);return y>b?b:y}},15875:function(T,r){"use strict";r.__esModule=!0,r.VNodeFlags=r.ChildFlags=void 0;var n;(function(a){a[a.Unknown=0]="Unknown",a[a.HtmlElement=1]="HtmlElement",a[a.ComponentUnknown=2]="ComponentUnknown",a[a.ComponentClass=4]="ComponentClass",a[a.ComponentFunction=8]="ComponentFunction",a[a.Text=16]="Text",a[a.SvgElement=32]="SvgElement",a[a.InputElement=64]="InputElement",a[a.TextareaElement=128]="TextareaElement",a[a.SelectElement=256]="SelectElement",a[a.Portal=1024]="Portal",a[a.ReCreate=2048]="ReCreate",a[a.ContentEditable=4096]="ContentEditable",a[a.Fragment=8192]="Fragment",a[a.InUse=16384]="InUse",a[a.ForwardRef=32768]="ForwardRef",a[a.Normalized=65536]="Normalized",a[a.ForwardRefComponent=32776]="ForwardRefComponent",a[a.FormElement=448]="FormElement",a[a.Element=481]="Element",a[a.Component=14]="Component",a[a.DOMRef=1521]="DOMRef",a[a.InUseOrNormalized=81920]="InUseOrNormalized",a[a.ClearInUse=-16385]="ClearInUse",a[a.ComponentKnown=12]="ComponentKnown"})(n||(r.VNodeFlags=n={}));var e;(function(a){a[a.UnknownChildren=0]="UnknownChildren",a[a.HasInvalidChildren=1]="HasInvalidChildren",a[a.HasVNodeChildren=2]="HasVNodeChildren",a[a.HasNonKeyedChildren=4]="HasNonKeyedChildren",a[a.HasKeyedChildren=8]="HasKeyedChildren",a[a.HasTextChildren=16]="HasTextChildren",a[a.MultipleChildren=12]="MultipleChildren"})(e||(r.ChildFlags=e={}))},89292:function(T,r){"use strict";r.__esModule=!0,r.Fragment=r.EMPTY_OBJ=r.Component=r.AnimationQueues=void 0,r._CI=Ot,r._HI=me,r._M=Ke,r._MCCC=Ft,r._ME=Dt,r._MFCC=Wt,r._MP=Pt,r._MR=at,r._RFC=gt,r.__render=zt,r.createComponentVNode=ie,r.createFragment=se,r.createPortal=oe,r.createRef=nn,r.createRenderer=En,r.createTextVNode=ne,r.createVNode=G,r.directClone=ye,r.findDOMFromVNode=V,r.forwardRef=on,r.getFlagsForElementVnode=ee,r.linkEvent=h,r.normalizeProps=Ce,r.options=void 0,r.render=Ht,r.rerender=$t,r.version=void 0;var n=Array.isArray;function e(O){var F=typeof O;return F==="string"||F==="number"}function a(O){return O==null}function t(O){return O===null||O===!1||O===!0||O===void 0}function o(O){return typeof O=="function"}function f(O){return typeof O=="string"}function b(O){return typeof O=="number"}function y(O){return O===null}function S(O){return O===void 0}function k(O,F){var z={};if(O)for(var H in O)z[H]=O[H];if(F)for(var X in F)z[X]=F[X];return z}function h(O,F){return o(F)?{data:O,event:F}:null}function c(O){return!y(O)&&typeof O=="object"}var i=r.EMPTY_OBJ={},m=r.Fragment="$F",d=r.AnimationQueues=function(){function O(){this.componentDidAppear=[],this.componentWillDisappear=[],this.componentWillMove=[]}return O}();function u(O){return O.substring(2).toLowerCase()}function s(O,F){O.appendChild(F)}function l(O,F,z){y(z)?s(O,F):O.insertBefore(F,z)}function v(O,F){return F?document.createElementNS("http://www.w3.org/2000/svg",O):document.createElement(O)}function N(O,F,z){O.replaceChild(F,z)}function C(O,F){O.removeChild(F)}function p(O){for(var F=0;F0?B(z.componentWillDisappear,w(O,F)):L(O,F,!1)}function A(O,F,z,H,X,Z,q,ae){O.componentWillMove.push({dom:H,fn:function(){function ue(){q&4?z.componentWillMove(F,X,H):q&8&&z.onComponentWillMove(F,X,H,ae)}return ue}(),next:Z,parent:X})}function E(O,F,z,H,X){var Z,q,ae=F.flags;do{var ue=F.flags;if(ue&1521){!a(Z)&&(o(Z.componentWillMove)||o(Z.onComponentWillMove))?A(X,O,Z,F.dom,z,H,ae,q):l(z,F.dom,H);return}var Te=F.children;if(ue&4)Z=F.children,q=F.props,F=Te.$LI;else if(ue&8)Z=F.ref,q=F.props,F=Te;else if(ue&8192)if(F.childFlags===2)F=Te;else{for(var Ie=0,Ee=Te.length;Ie0,Te=y(ae),Ie=f(ae)&&ae[0]===U;ue||Te||Ie?(z=z||F.slice(0,Z),(ue||Ie)&&(q=ye(q)),(Te||Ie)&&(q.key=U+Z),z.push(q)):z&&z.push(q),q.flags|=65536}}z=z||F,z.length===0?H=1:H=8}else z=F,z.flags|=65536,F.flags&81920&&(z=ye(F)),H=2;return O.children=z,O.childFlags=H,O}function me(O){return t(O)||e(O)?ne(O,null):n(O)?se(O,0,null):O.flags&16384?ye(O):O}var te="http://www.w3.org/1999/xlink",be="http://www.w3.org/XML/1998/namespace",pe={"xlink:actuate":te,"xlink:arcrole":te,"xlink:href":te,"xlink:role":te,"xlink:show":te,"xlink:title":te,"xlink:type":te,"xml:base":be,"xml:lang":be,"xml:space":be};function ve(O){return{onClick:O,onDblClick:O,onFocusIn:O,onFocusOut:O,onKeyDown:O,onKeyPress:O,onKeyUp:O,onMouseDown:O,onMouseMove:O,onMouseUp:O,onTouchEnd:O,onTouchMove:O,onTouchStart:O}}var Be=ve(0),ge=ve(null),Le=ve(!0);function we(O,F){var z=F.$EV;return z||(z=F.$EV=ve(null)),z[O]||++Be[O]===1&&(ge[O]=je(O)),z}function xe(O,F){var z=F.$EV;z&&z[O]&&(--Be[O]===0&&(document.removeEventListener(u(O),ge[O]),ge[O]=null),z[O]=null)}function Re(O,F,z,H){if(o(z))we(O,H)[O]=z;else if(c(z)){if(D(F,z))return;we(O,H)[O]=z}else xe(O,H)}function ze(O){return o(O.composedPath)?O.composedPath()[0]:O.target}function Ve(O,F,z,H){var X=ze(O);do{if(F&&X.disabled)return;var Z=X.$EV;if(Z){var q=Z[z];if(q&&(H.dom=X,q.event?q.event(q.data,O):q(O),O.cancelBubble))return}X=X.parentNode}while(!y(X))}function re(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function le(){return this.defaultPrevented}function Ne(){return this.cancelBubble}function de(O){var F={dom:document};return O.isDefaultPrevented=le,O.isPropagationStopped=Ne,O.stopPropagation=re,Object.defineProperty(O,"currentTarget",{configurable:!0,get:function(){function z(){return F.dom}return z}()}),F}function ke(O){return function(F){if(F.button!==0){F.stopPropagation();return}Ve(F,!0,O,de(F))}}function Me(O){return function(F){Ve(F,!1,O,de(F))}}function je(O){var F=O==="onClick"||O==="onDblClick"?ke(O):Me(O);return document.addEventListener(u(O),F),F}function Fe(O,F){var z=document.createElement("i");return z.innerHTML=F,z.innerHTML===O.innerHTML}function He(O,F,z){if(O[F]){var H=O[F];H.event?H.event(H.data,z):H(z)}else{var X=F.toLowerCase();O[X]&&O[X](z)}}function _e(O,F){var z=function(){function H(X){var Z=this.$V;if(Z){var q=Z.props||i,ae=Z.dom;if(f(O))He(q,O,X);else for(var ue=0;ue-1&&F.options[Z]&&(ae=F.options[Z].value),z&&a(ae)&&(ae=O.defaultValue),rt(H,ae)}}var Zt=_e("onInput",Tt),qt=_e("onChange");function en(O,F){Ue(O,"input",Zt),F.onChange&&Ue(O,"change",qt)}function Tt(O,F,z){var H=O.value,X=F.value;if(a(H)){if(z){var Z=O.defaultValue;!a(Z)&&Z!==X&&(F.defaultValue=Z,F.value=Z)}}else X!==H&&(F.defaultValue=H,F.value=H)}function xt(O,F,z,H,X,Z){O&64?ut(H,z):O&256?wt(H,z,X,F):O&128&&Tt(H,z,X),Z&&(z.$V=F)}function tn(O,F,z){O&64?Bt(F,z):O&256?Jt(F):O&128&&en(F,z)}function At(O){return O.type&&Xe(O.type)?!a(O.checked):!a(O.value)}function nn(){return{current:null}}function on(O){var F={render:O};return F}function st(O){O&&!_(O,null)&&O.current&&(O.current=null)}function at(O,F,z){O&&(o(O)||O.current!==void 0)&&z.push(function(){!_(O,F)&&O.current!==void 0&&(O.current=F)})}function Qe(O,F,z){Ze(O,z),x(O,F,z)}function Ze(O,F){var z=O.flags,H=O.children,X;if(z&481){X=O.ref;var Z=O.props;st(X);var q=O.childFlags;if(!y(Z))for(var ae=Object.keys(Z),ue=0,Te=ae.length;ue0?B(z.componentWillDisappear,rn(F,O)):O.textContent=""}function ft(O,F,z,H){ct(z,H),F.flags&8192?x(F,O,H):mt(O,z,H)}function Et(O,F,z,H,X){O.componentWillDisappear.push(function(Z){H&4?F.componentWillDisappear(z,Z):H&8&&F.onComponentWillDisappear(z,X,Z)})}function an(O){var F=O.event;return function(z){F(O.data,z)}}function cn(O,F,z,H){if(c(z)){if(D(F,z))return;z=an(z)}Ue(H,u(O),z)}function ln(O,F,z){if(a(F)){z.removeAttribute("style");return}var H=z.style,X,Z;if(f(F)){H.cssText=F;return}if(!a(O)&&!f(O)){for(X in F)Z=F[X],Z!==O[X]&&H.setProperty(X,Z);for(X in O)a(F[X])&&H.removeProperty(X)}else for(X in F)Z=F[X],H.setProperty(X,Z)}function dn(O,F,z,H,X){var Z=O&&O.__html||"",q=F&&F.__html||"";Z!==q&&!a(q)&&!Fe(H,q)&&(y(z)||(z.childFlags&12?ct(z.children,X):z.childFlags===2&&Ze(z.children,X),z.children=null,z.childFlags=1),H.innerHTML=q)}function vt(O,F,z,H,X,Z,q,ae){switch(O){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":H.autofocus=!!z;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":H[O]=!!z;break;case"defaultChecked":case"value":case"volume":if(Z&&O==="value")break;var ue=a(z)?"":z;H[O]!==ue&&(H[O]=ue);break;case"style":ln(F,z,H);break;case"dangerouslySetInnerHTML":dn(F,z,q,H,ae);break;default:Le[O]?Re(O,F,z,H):O.charCodeAt(0)===111&&O.charCodeAt(1)===110?cn(O,F,z,H):a(z)?H.removeAttribute(O):X&&pe[O]?H.setAttributeNS(pe[O],O,z):H.setAttribute(O,z);break}}function Pt(O,F,z,H,X,Z){var q=!1,ae=(F&448)>0;ae&&(q=At(z),q&&tn(F,H,z));for(var ue in z)vt(ue,null,z[ue],H,X,q,null,Z);ae&&xt(F,O,H,z,!0,q)}function Mt(O,F,z){var H=me(O.render(F,O.state,z)),X=z;return o(O.getChildContext)&&(X=k(z,O.getChildContext())),O.$CX=X,H}function Ot(O,F,z,H,X,Z){var q=new F(z,H),ae=q.$N=!!(F.getDerivedStateFromProps||q.getSnapshotBeforeUpdate);if(q.$SVG=X,q.$L=Z,O.children=q,q.$BS=!1,q.context=H,q.props===i&&(q.props=z),ae)q.state=P(q,z,q.state);else if(o(q.componentWillMount)){q.$BR=!0,q.componentWillMount();var ue=q.$PS;if(!y(ue)){var Te=q.state;if(y(Te))q.state=ue;else for(var Ie in ue)Te[Ie]=ue[Ie];q.$PS=null}q.$BR=!1}return q.$LI=Mt(q,z,H),q}function gt(O,F){var z=O.props||i;return O.flags&32768?O.type.render(z,O.ref,F):O.type(z,F)}function Ke(O,F,z,H,X,Z,q){var ae=O.flags|=16384;ae&481?Dt(O,F,z,H,X,Z,q):ae&4?mn(O,F,z,H,X,Z,q):ae&8?fn(O,F,z,H,X,Z,q):ae&16?Rt(O,F,X):ae&8192?sn(O,z,F,H,X,Z,q):ae&1024&&un(O,z,F,X,Z,q)}function un(O,F,z,H,X,Z){Ke(O.children,O.ref,F,!1,null,X,Z);var q=he();Rt(q,z,H),O.dom=q.dom}function sn(O,F,z,H,X,Z,q){var ae=O.children,ue=O.childFlags;ue&12&&ae.length===0&&(ue=O.childFlags=2,ae=O.children=he()),ue===2?Ke(ae,z,F,H,X,Z,q):ot(ae,z,F,H,X,Z,q)}function Rt(O,F,z){var H=O.dom=document.createTextNode(O.children);y(F)||l(F,H,z)}function Dt(O,F,z,H,X,Z,q){var ae=O.flags,ue=O.props,Te=O.className,Ie=O.childFlags,Ee=O.dom=v(O.type,H=H||(ae&32)>0),Ae=O.children;if(!a(Te)&&Te!==""&&(H?Ee.setAttribute("class",Te):Ee.className=Te),Ie===16)R(Ee,Ae);else if(Ie!==1){var Pe=H&&O.type!=="foreignObject";Ie===2?(Ae.flags&16384&&(O.children=Ae=ye(Ae)),Ke(Ae,Ee,z,Pe,null,Z,q)):(Ie===8||Ie===4)&&ot(Ae,Ee,z,Pe,null,Z,q)}y(F)||l(F,Ee,X),y(ue)||Pt(O,ae,ue,Ee,H,q),at(O.ref,Ee,Z)}function ot(O,F,z,H,X,Z,q){for(var ae=0;aePe)&&(Ee=V(ae[Pe-1],!1).nextSibling)}Nt(Te,Ie,ae,ue,z,H,X,Ee,O,Z,q)}function Vn(O,F,z,H,X){var Z=O.ref,q=F.ref,ae=F.children;if(Nt(O.childFlags,F.childFlags,O.children,ae,Z,z,!1,null,O,H,X),F.dom=O.dom,Z!==q&&!t(ae)){var ue=ae.dom;C(Z,ue),s(q,ue)}}function bn(O,F,z,H,X,Z,q){var ae=F.dom=O.dom,ue=O.props,Te=F.props,Ie=!1,Ee=!1,Ae;if(H=H||(X&32)>0,ue!==Te){var Pe=ue||i;if(Ae=Te||i,Ae!==i){Ie=(X&448)>0,Ie&&(Ee=At(Ae));for(var We in Ae){var Oe=Pe[We],$e=Ae[We];Oe!==$e&&vt(We,Oe,$e,ae,H,Ee,O,q)}}if(Pe!==i)for(var De in Pe)a(Ae[De])&&!a(Pe[De])&&vt(De,Pe[De],null,ae,H,Ee,O,q)}var tt=F.children,Ye=F.className;O.className!==Ye&&(a(Ye)?ae.removeAttribute("class"):H?ae.setAttribute("class",Ye):ae.className=Ye),X&4096?gn(ae,tt):Nt(O.childFlags,F.childFlags,O.children,tt,ae,z,H&&F.type!=="foreignObject",null,O,Z,q),Ie&&xt(X,F,ae,Ae,!1,Ee);var it=F.ref,Je=O.ref;Je!==it&&(st(Je),at(it,ae,Z))}function kn(O,F,z,H,X,Z,q){Ze(O,q),ot(F,z,H,X,V(O,!0),Z,q),x(O,z,q)}function Nt(O,F,z,H,X,Z,q,ae,ue,Te,Ie){switch(O){case 2:switch(F){case 2:qe(z,H,X,Z,q,ae,Te,Ie);break;case 1:Qe(z,X,Ie);break;case 16:Ze(z,Ie),R(X,H);break;default:kn(z,H,X,Z,q,Te,Ie);break}break;case 1:switch(F){case 2:Ke(H,X,Z,q,ae,Te,Ie);break;case 1:break;case 16:R(X,H);break;default:ot(H,X,Z,q,ae,Te,Ie);break}break;case 16:switch(F){case 16:vn(z,H,X);break;case 2:mt(X,z,Ie),Ke(H,X,Z,q,ae,Te,Ie);break;case 1:mt(X,z,Ie);break;default:mt(X,z,Ie),ot(H,X,Z,q,ae,Te,Ie);break}break;default:switch(F){case 16:ct(z,Ie),R(X,H);break;case 2:ft(X,ue,z,Ie),Ke(H,X,Z,q,ae,Te,Ie);break;case 1:ft(X,ue,z,Ie);break;default:var Ee=z.length|0,Ae=H.length|0;Ee===0?Ae>0&&ot(H,X,Z,q,ae,Te,Ie):Ae===0?ft(X,ue,z,Ie):F===8&&O===8?wn(z,H,X,Z,q,Ee,Ae,ae,ue,Te,Ie):Ln(z,H,X,Z,q,Ee,Ae,ae,Te,Ie);break}break}}function yn(O,F,z,H,X){X.push(function(){O.componentDidUpdate(F,z,H)})}function _t(O,F,z,H,X,Z,q,ae,ue,Te){var Ie=O.state,Ee=O.props,Ae=!!O.$N,Pe=o(O.shouldComponentUpdate);if(Ae&&(F=P(O,z,F!==Ie?k(Ie,F):F)),q||!Pe||Pe&&O.shouldComponentUpdate(z,F,X)){!Ae&&o(O.componentWillUpdate)&&O.componentWillUpdate(z,F,X),O.props=z,O.state=F,O.context=X;var We=null,Oe=Mt(O,z,X);Ae&&o(O.getSnapshotBeforeUpdate)&&(We=O.getSnapshotBeforeUpdate(Ee,Ie)),qe(O.$LI,Oe,H,O.$CX,Z,ae,ue,Te),O.$LI=Oe,o(O.componentDidUpdate)&&yn(O,Ee,Ie,We,ue)}else O.props=z,O.state=F,O.context=X}function Sn(O,F,z,H,X,Z,q,ae){var ue=F.children=O.children;if(!y(ue)){ue.$L=q;var Te=F.props||i,Ie=F.ref,Ee=O.ref,Ae=ue.state;if(!ue.$N){if(o(ue.componentWillReceiveProps)){if(ue.$BR=!0,ue.componentWillReceiveProps(Te,H),ue.$UN)return;ue.$BR=!1}y(ue.$PS)||(Ae=k(Ae,ue.$PS),ue.$PS=null)}_t(ue,Ae,Te,z,H,X,!1,Z,q,ae),Ee!==Ie&&(st(Ee),at(Ie,ue,q))}}function Bn(O,F,z,H,X,Z,q,ae){var ue=!0,Te=F.props||i,Ie=F.ref,Ee=O.props,Ae=!a(Ie),Pe=O.children;if(Ae&&o(Ie.onComponentShouldUpdate)&&(ue=Ie.onComponentShouldUpdate(Ee,Te)),ue!==!1){Ae&&o(Ie.onComponentWillUpdate)&&Ie.onComponentWillUpdate(Ee,Te);var We=me(gt(F,H));qe(Pe,We,z,H,X,Z,q,ae),F.children=We,Ae&&o(Ie.onComponentDidUpdate)&&Ie.onComponentDidUpdate(Ee,Te)}else F.children=Pe}function In(O,F){var z=F.children,H=F.dom=O.dom;z!==O.children&&(H.nodeValue=z)}function Ln(O,F,z,H,X,Z,q,ae,ue,Te){for(var Ie=Z>q?q:Z,Ee=0,Ae,Pe;Eeq)for(Ee=Ie;EeEe||Pe>Ae)break e;We=O[Pe],Oe=F[Pe]}for(We=O[Ee],Oe=F[Ae];We.key===Oe.key;){if(Oe.flags&16384&&(F[Ae]=Oe=ye(Oe)),qe(We,Oe,z,H,X,ae,Te,Ie),O[Ee]=Oe,Ee--,Ae--,Pe>Ee||Pe>Ae)break e;We=O[Ee],Oe=F[Ae]}}if(Pe>Ee){if(Pe<=Ae)for($e=Ae+1,De=$eAe)for(;Pe<=Ee;)Qe(O[Pe++],z,Ie);else Tn(O,F,H,Z,q,Ee,Ae,Pe,z,X,ae,ue,Te,Ie)}function Tn(O,F,z,H,X,Z,q,ae,ue,Te,Ie,Ee,Ae,Pe){var We,Oe,$e=0,De=0,tt=ae,Ye=ae,it=Z-ae+1,Je=q-ae+1,lt=new Int32Array(Je+1),nt=it===H,bt=!1,Ge=0,dt=0;if(X<4||(it|Je)<32)for(De=tt;De<=Z;++De)if(We=O[De],dtae?bt=!0:Ge=ae,Oe.flags&16384&&(F[ae]=Oe=ye(Oe)),qe(We,Oe,ue,z,Te,Ie,Ae,Pe),++dt;break}!nt&&ae>q&&Qe(We,ue,Pe)}else nt||Qe(We,ue,Pe);else{var Yt={};for(De=Ye;De<=q;++De)Yt[F[De].key]=De;for(De=tt;De<=Z;++De)if(We=O[De],dttt;)Qe(O[tt++],ue,Pe);lt[ae-Ye]=De+1,Ge>ae?bt=!0:Ge=ae,Oe=F[ae],Oe.flags&16384&&(F[ae]=Oe=ye(Oe)),qe(We,Oe,ue,z,Te,Ie,Ae,Pe),++dt}else nt||Qe(We,ue,Pe);else nt||Qe(We,ue,Pe)}if(nt)ft(ue,Ee,O,Pe),ot(F,ue,z,Te,Ie,Ae,Pe);else if(bt){var Xt=xn(lt);for(ae=Xt.length-1,De=Je-1;De>=0;De--)lt[De]===0?(Ge=De+Ye,Oe=F[Ge],Oe.flags&16384&&(F[Ge]=Oe=ye(Oe)),$e=Ge+1,Ke(Oe,ue,z,Te,$e0&&I(Pe.componentWillMove)}else if(dt!==Je)for(De=Je-1;De>=0;De--)lt[De]===0&&(Ge=De+Ye,Oe=F[Ge],Oe.flags&16384&&(F[Ge]=Oe=ye(Oe)),$e=Ge+1,Ke(Oe,ue,z,Te,$eUt&&(Ut=ue,et=new Int32Array(ue),pt=new Int32Array(ue));z>1,O[et[ae]]0&&(pt[z]=et[Z-1]),et[Z]=z)}Z=X+1;var Te=new Int32Array(Z);for(q=et[Z-1];Z-- >0;)Te[Z]=q,q=pt[q],et[Z]=0;return Te}var An=typeof document!="undefined";An&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);function zt(O,F,z,H){var X=[],Z=new d,q=F.$V;j.v=!0,a(q)?a(O)||(O.flags&16384&&(O=ye(O)),Ke(O,F,H,!1,null,X,Z),F.$V=O,q=O):a(O)?(Qe(q,F,Z),F.$V=null):(O.flags&16384&&(O=ye(O)),qe(q,O,F,H,!1,null,X,Z),q=F.$V=O),p(X),B(Z.componentDidAppear),j.v=!1,o(z)&&z(),o(M.renderComplete)&&M.renderComplete(q,F)}function Ht(O,F,z,H){z===void 0&&(z=null),H===void 0&&(H=i),zt(O,F,z,H)}function En(O){return function(){function F(z,H,X,Z){O||(O=z),Ht(H,O,X,Z)}return F}()}var ht=[],Pn=typeof Promise!="undefined"?Promise.resolve().then.bind(Promise.resolve()):function(O){window.setTimeout(O,0)},Vt=!1;function Kt(O,F,z,H){var X=O.$PS;if(o(F)&&(F=F(X?k(O.state,X):O.state,O.props,O.context)),a(X))O.$PS=F;else for(var Z in F)X[Z]=F[Z];if(O.$BR)o(z)&&O.$L.push(z.bind(O));else{if(!j.v&&ht.length===0){Gt(O,H),o(z)&&z.call(O);return}if(ht.indexOf(O)===-1&&ht.push(O),H&&(O.$F=!0),Vt||(Vt=!0,Pn($t)),o(z)){var q=O.$QU;q||(q=O.$QU=[]),q.push(z)}}}function Mn(O){for(var F=O.$QU,z=0;z=0;--_){var U=this.tryEntries[_],K=U.completion;if(U.tryLoc==="root")return W("end");if(U.tryLoc<=this.prev){var G=a.call(U,"catchLoc"),$=a.call(U,"finallyLoc");if(G&&$){if(this.prev=0;--W){var _=this.tryEntries[W];if(_.tryLoc<=this.prev&&a.call(_,"finallyLoc")&&this.prev<_.finallyLoc){var U=_;break}}U&&(R==="break"||R==="continue")&&U.tryLoc<=D&&D<=U.finallyLoc&&(U=null);var K=U?U.completion:{};return K.type=R,K.arg=D,U?(this.method="next",this.next=U.finallyLoc,s):this.complete(K)}return M}(),complete:function(){function M(R,D){if(R.type==="throw")throw R.arg;return R.type==="break"||R.type==="continue"?this.next=R.arg:R.type==="return"?(this.rval=this.arg=R.arg,this.method="return",this.next="end"):R.type==="normal"&&D&&(this.next=D),s}return M}(),finish:function(){function M(R){for(var D=this.tryEntries.length-1;D>=0;--D){var W=this.tryEntries[D];if(W.finallyLoc===R)return this.complete(W.completion,W.afterLoc),A(W),s}}return M}(),catch:function(){function M(R){for(var D=this.tryEntries.length-1;D>=0;--D){var W=this.tryEntries[D];if(W.tryLoc===R){var _=W.completion;if(_.type==="throw"){var U=_.arg;A(W)}return U}}throw new Error("illegal catch attempt")}return M}(),delegateYield:function(){function M(R,D,W){return this.delegate={iterator:P(R),resultName:D,nextLoc:W},this.method==="next"&&(this.arg=o),s}return M}()},n}(T.exports);try{regeneratorRuntime=r}catch(n){typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},30236:function(){"use strict";self.fetch||(self.fetch=function(T,r){return r=r||{},new Promise(function(n,e){var a=new XMLHttpRequest,t=[],o={},f=function(){function y(){return{ok:(a.status/100|0)==2,statusText:a.statusText,status:a.status,url:a.responseURL,text:function(){function S(){return Promise.resolve(a.responseText)}return S}(),json:function(){function S(){return Promise.resolve(a.responseText).then(JSON.parse)}return S}(),blob:function(){function S(){return Promise.resolve(new Blob([a.response]))}return S}(),clone:y,headers:{keys:function(){function S(){return t}return S}(),entries:function(){function S(){return t.map(function(k){return[k,a.getResponseHeader(k)]})}return S}(),get:function(){function S(k){return a.getResponseHeader(k)}return S}(),has:function(){function S(k){return a.getResponseHeader(k)!=null}return S}()}}}return y}();for(var b in a.open(r.method||"get",T,!0),a.onload=function(){a.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(y,S){o[S]||t.push(o[S]=S)}),n(f())},a.onerror=e,a.withCredentials=r.credentials=="include",r.headers)a.setRequestHeader(b,r.headers[b]);a.send(r.body||null)})})},88510:function(T,r){"use strict";r.__esModule=!0,r.zipWith=r.zip=r.uniqBy=r.uniq=r.toKeyedArray=r.toArray=r.sortBy=r.sort=r.reduce=r.range=r.map=r.filterMap=r.filter=void 0;function n(l,v){var N=typeof Symbol!="undefined"&&l[Symbol.iterator]||l["@@iterator"];if(N)return(N=N.call(l)).next.bind(N);if(Array.isArray(l)||(N=e(l))||v&&l&&typeof l.length=="number"){N&&(l=N);var C=0;return function(){return C>=l.length?{done:!0}:{done:!1,value:l[C++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(l,v){if(l){if(typeof l=="string")return a(l,v);var N={}.toString.call(l).slice(8,-1);return N==="Object"&&l.constructor&&(N=l.constructor.name),N==="Map"||N==="Set"?Array.from(l):N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N)?a(l,v):void 0}}function a(l,v){(v==null||v>l.length)&&(v=l.length);for(var N=0,C=Array(v);NB)return 1}return 0},y=r.sortBy=function(){function l(){for(var v=arguments.length,N=new Array(v),C=0;CI)return 1}return 0},k=r.sortBy=function(){function l(){for(var v=arguments.length,N=new Array(v),C=0;C1?b-1:0),S=1;S1?b-1:0),S=1;S1?S-1:0),h=1;h1?y-1:0),c=1;c1?S-1:0),h=1;h1?k-1:0),c=1;cc?c:y}return S}(),e=r.clamp01=function(){function S(y){return y<0?0:y>1?1:y}return S}(),a=r.scale=function(){function S(y,h,c){return(y-h)/(c-h)}return S}(),t=r.round=function(){function S(y,h){if(!y||isNaN(y))return y;var c,i,m,d;return h|=0,c=Math.pow(10,h),y*=c,d=+(y>0)|-(y<0),m=Math.abs(y%1)>=.4999999999854481,i=Math.floor(y),m&&(y=i+(d>0)),(m?y:Math.round(y))/c}return S}(),o=r.toFixed=function(){function S(y,h){return h===void 0&&(h=0),Number(y).toFixed(Math.max(h,0))}return S}(),f=r.inRange=function(){function S(y,h){return h&&y>=h[0]&&y<=h[1]}return S}(),b=r.keyOfMatchingRange=function(){function S(y,h){for(var c=0,i=Object.keys(h);cc?c:k}return S}(),e=r.clamp01=function(){function S(k){return k<0?0:k>1?1:k}return S}(),a=r.scale=function(){function S(k,h,c){return(k-h)/(c-h)}return S}(),t=r.round=function(){function S(k,h){if(!k||isNaN(k))return k;var c,i,m,d;return h|=0,c=Math.pow(10,h),k*=c,d=+(k>0)|-(k<0),m=Math.abs(k%1)>=.4999999999854481,i=Math.floor(k),m&&(k=i+(d>0)),(m?k:Math.round(k))/c}return S}(),o=r.toFixed=function(){function S(k,h){return h===void 0&&(h=0),Number(k).toFixed(Math.max(h,0))}return S}(),f=r.inRange=function(){function S(k,h){return h&&k>=h[0]&&k<=h[1]}return S}(),b=r.keyOfMatchingRange=function(){function S(k,h){for(var c=0,i=Object.keys(h);c1?d-1:0),s=1;s1?V-1:0),B=1;B=0;--me){var te=this.tryEntries[me],be=te.completion;if(te.tryLoc==="root")return fe("end");if(te.tryLoc<=this.prev){var pe=g.call(te,"catchLoc"),ve=g.call(te,"finallyLoc");if(pe&&ve){if(this.prev=0;--fe){var me=this.tryEntries[fe];if(me.tryLoc<=this.prev&&g.call(me,"finallyLoc")&&this.prev=0;--ee){var fe=this.tryEntries[ee];if(fe.finallyLoc===ce)return this.complete(fe.completion,fe.afterLoc),Se(fe),D}}return oe}(),catch:function(){function oe(ce){for(var ee=this.tryEntries.length-1;ee>=0;--ee){var fe=this.tryEntries[ee];if(fe.tryLoc===ce){var me=fe.completion;if(me.type==="throw"){var te=me.arg;Se(fe)}return te}}throw Error("illegal catch attempt")}return oe}(),delegateYield:function(){function oe(ce,ee,fe){return this.delegate={iterator:he(ce),resultName:ee,nextLoc:fe},this.method==="next"&&(this.arg=N),D}return oe}()},C}function e(N,C,p,g,V,I,B){try{var L=N[I](B),T=L.value}catch(A){return void p(A)}L.done?C(T):Promise.resolve(T).then(g,V)}function a(N){return function(){var C=this,p=arguments;return new Promise(function(g,V){var I=N.apply(C,p);function B(T){e(I,g,V,B,L,"next",T)}function L(T){e(I,g,V,B,L,"throw",T)}B(void 0)})}}/** + */var a=r.createStore=function(){function S(k,h){if(h)return h(S)(k);var c,i=[],m=function(){function s(){return c}return s}(),d=function(){function s(l){i.push(l)}return s}(),u=function(){function s(l){c=k(c,l);for(var v=0;v1?d-1:0),s=1;s1?V-1:0),I=1;I=0;--me){var te=this.tryEntries[me],be=te.completion;if(te.tryLoc==="root")return fe("end");if(te.tryLoc<=this.prev){var pe=g.call(te,"catchLoc"),ve=g.call(te,"finallyLoc");if(pe&&ve){if(this.prev=0;--fe){var me=this.tryEntries[fe];if(me.tryLoc<=this.prev&&g.call(me,"finallyLoc")&&this.prev=0;--ee){var fe=this.tryEntries[ee];if(fe.finallyLoc===ce)return this.complete(fe.completion,fe.afterLoc),Se(fe),D}}return oe}(),catch:function(){function oe(ce){for(var ee=this.tryEntries.length-1;ee>=0;--ee){var fe=this.tryEntries[ee];if(fe.tryLoc===ce){var me=fe.completion;if(me.type==="throw"){var te=me.arg;Se(fe)}return te}}throw Error("illegal catch attempt")}return oe}(),delegateYield:function(){function oe(ce,ee,fe){return this.delegate={iterator:he(ce),resultName:ee,nextLoc:fe},this.method==="next"&&(this.arg=N),D}return oe}()},C}function e(N,C,p,g,V,B,I){try{var L=N[B](I),w=L.value}catch(x){return void p(x)}L.done?C(w):Promise.resolve(w).then(g,V)}function a(N){return function(){var C=this,p=arguments;return new Promise(function(g,V){var B=N.apply(C,p);function I(w){e(B,g,V,I,L,"next",w)}function L(w){e(B,g,V,I,L,"throw",w)}I(void 0)})}}/** * Browser-agnostic abstraction of key-value web storage. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.IMPL_MEMORY=0,o=r.IMPL_HUB_STORAGE=1,f=r.IMPL_INDEXED_DB=2,b=1,k="para-tgui",S="storage-v1",y="readonly",h="readwrite",c=function(C){return function(){try{return!!C()}catch(p){return!1}}},i=c(function(){return window.hubStorage&&window.hubStorage.getItem}),m=c(function(){return(window.indexedDB||window.msIndexedDB)&&(window.IDBTransaction||window.msIDBTransaction)}),d=function(){function N(){this.impl=t,this.store={}}var C=N.prototype;return C.get=function(){var p=a(n().mark(function(){function V(I){return n().wrap(function(){function B(L){for(;;)switch(L.prev=L.next){case 0:return L.abrupt("return",this.store[I]);case 1:case"end":return L.stop()}}return B}(),V,this)}return V}()));function g(V){return p.apply(this,arguments)}return g}(),C.set=function(){var p=a(n().mark(function(){function V(I,B){return n().wrap(function(){function L(T){for(;;)switch(T.prev=T.next){case 0:this.store[I]=B;case 1:case"end":return T.stop()}}return L}(),V,this)}return V}()));function g(V,I){return p.apply(this,arguments)}return g}(),C.remove=function(){var p=a(n().mark(function(){function V(I){return n().wrap(function(){function B(L){for(;;)switch(L.prev=L.next){case 0:this.store[I]=void 0;case 1:case"end":return L.stop()}}return B}(),V,this)}return V}()));function g(V){return p.apply(this,arguments)}return g}(),C.clear=function(){var p=a(n().mark(function(){function V(){return n().wrap(function(){function I(B){for(;;)switch(B.prev=B.next){case 0:this.store={};case 1:case"end":return B.stop()}}return I}(),V,this)}return V}()));function g(){return p.apply(this,arguments)}return g}(),N}(),u=function(){function N(){this.impl=o}var C=N.prototype;return C.get=function(){var p=a(n().mark(function(){function V(I){var B;return n().wrap(function(){function L(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,window.hubStorage.getItem("paradise-"+I);case 2:if(B=T.sent,typeof B!="string"){T.next=5;break}return T.abrupt("return",JSON.parse(B));case 5:case"end":return T.stop()}}return L}(),V)}return V}()));function g(V){return p.apply(this,arguments)}return g}(),C.set=function(){var p=a(n().mark(function(){function V(I,B){return n().wrap(function(){function L(T){for(;;)switch(T.prev=T.next){case 0:window.hubStorage.setItem("paradise-"+I,JSON.stringify(B));case 1:case"end":return T.stop()}}return L}(),V)}return V}()));function g(V,I){return p.apply(this,arguments)}return g}(),C.remove=function(){var p=a(n().mark(function(){function V(I){return n().wrap(function(){function B(L){for(;;)switch(L.prev=L.next){case 0:window.hubStorage.removeItem("paradise-"+I);case 1:case"end":return L.stop()}}return B}(),V)}return V}()));function g(V){return p.apply(this,arguments)}return g}(),C.clear=function(){var p=a(n().mark(function(){function V(){return n().wrap(function(){function I(B){for(;;)switch(B.prev=B.next){case 0:window.hubStorage.clear();case 1:case"end":return B.stop()}}return I}(),V)}return V}()));function g(){return p.apply(this,arguments)}return g}(),N}(),s=function(){function N(){this.impl=f,this.dbPromise=new Promise(function(p,g){var V=window.indexedDB||window.msIndexedDB,I=V.open(k,b);I.onupgradeneeded=function(){try{I.result.createObjectStore(S)}catch(B){g(new Error("Failed to upgrade IDB: "+I.error))}},I.onsuccess=function(){return p(I.result)},I.onerror=function(){g(new Error("Failed to open IDB: "+I.error))}})}var C=N.prototype;return C.getStore=function(){var p=a(n().mark(function(){function V(I){return n().wrap(function(){function B(L){for(;;)switch(L.prev=L.next){case 0:return L.abrupt("return",this.dbPromise.then(function(T){return T.transaction(S,I).objectStore(S)}));case 1:case"end":return L.stop()}}return B}(),V,this)}return V}()));function g(V){return p.apply(this,arguments)}return g}(),C.get=function(){var p=a(n().mark(function(){function V(I){var B;return n().wrap(function(){function L(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.getStore(y);case 2:return B=T.sent,T.abrupt("return",new Promise(function(A,x){var E=B.get(I);E.onsuccess=function(){return A(E.result)},E.onerror=function(){return x(E.error)}}));case 4:case"end":return T.stop()}}return L}(),V,this)}return V}()));function g(V){return p.apply(this,arguments)}return g}(),C.set=function(){var p=a(n().mark(function(){function V(I,B){var L;return n().wrap(function(){function T(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,this.getStore(h);case 2:L=A.sent,L.put(B,I);case 4:case"end":return A.stop()}}return T}(),V,this)}return V}()));function g(V,I){return p.apply(this,arguments)}return g}(),C.remove=function(){var p=a(n().mark(function(){function V(I){var B;return n().wrap(function(){function L(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.getStore(h);case 2:B=T.sent,B.delete(I);case 4:case"end":return T.stop()}}return L}(),V,this)}return V}()));function g(V){return p.apply(this,arguments)}return g}(),C.clear=function(){var p=a(n().mark(function(){function V(){var I;return n().wrap(function(){function B(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,this.getStore(h);case 2:I=L.sent,I.clear();case 4:case"end":return L.stop()}}return B}(),V,this)}return V}()));function g(){return p.apply(this,arguments)}return g}(),N}(),l=function(){function N(){this.backendPromise=a(n().mark(function(){function p(){var g;return n().wrap(function(){function V(I){for(;;)switch(I.prev=I.next){case 0:if(!(!Byond.TRIDENT&&i())){I.next=2;break}return I.abrupt("return",new u);case 2:if(!m()){I.next=12;break}return I.prev=3,g=new s,I.next=7,g.dbPromise;case 7:return I.abrupt("return",g);case 10:I.prev=10,I.t0=I.catch(3);case 12:return I.abrupt("return",new d);case 13:case"end":return I.stop()}}return V}(),p,null,[[3,10]])}return p}()))()}var C=N.prototype;return C.get=function(){var p=a(n().mark(function(){function V(I){var B;return n().wrap(function(){function L(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.backendPromise;case 2:return B=T.sent,T.abrupt("return",B.get(I));case 4:case"end":return T.stop()}}return L}(),V,this)}return V}()));function g(V){return p.apply(this,arguments)}return g}(),C.set=function(){var p=a(n().mark(function(){function V(I,B){var L;return n().wrap(function(){function T(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,this.backendPromise;case 2:return L=A.sent,A.abrupt("return",L.set(I,B));case 4:case"end":return A.stop()}}return T}(),V,this)}return V}()));function g(V,I){return p.apply(this,arguments)}return g}(),C.remove=function(){var p=a(n().mark(function(){function V(I){var B;return n().wrap(function(){function L(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.backendPromise;case 2:return B=T.sent,T.abrupt("return",B.remove(I));case 4:case"end":return T.stop()}}return L}(),V,this)}return V}()));function g(V){return p.apply(this,arguments)}return g}(),C.clear=function(){var p=a(n().mark(function(){function V(){var I;return n().wrap(function(){function B(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,this.backendPromise;case 2:return I=L.sent,L.abrupt("return",I.clear());case 4:case"end":return L.stop()}}return B}(),V,this)}return V}()));function g(){return p.apply(this,arguments)}return g}(),N}(),v=r.storage=new l},25328:function(w,r){"use strict";r.__esModule=!0,r.toTitleCase=r.multiline=r.decodeHtmlEntities=r.createSearch=r.createGlobPattern=r.capitalize=r.buildQueryString=void 0;function n(h,c){var i=typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(i)return(i=i.call(h)).next.bind(i);if(Array.isArray(h)||(i=e(h))||c&&h&&typeof h.length=="number"){i&&(h=i);var m=0;return function(){return m>=h.length?{done:!0}:{done:!1,value:h[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(h,c){if(h){if(typeof h=="string")return a(h,c);var i={}.toString.call(h).slice(8,-1);return i==="Object"&&h.constructor&&(i=h.constructor.name),i==="Map"||i==="Set"?Array.from(h):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?a(h,c):void 0}}function a(h,c){(c==null||c>h.length)&&(c=h.length);for(var i=0,m=Array(c);i=h.length?{done:!0}:{done:!1,value:h[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(h,c){if(h){if(typeof h=="string")return a(h,c);var i={}.toString.call(h).slice(8,-1);return i==="Object"&&h.constructor&&(i=h.constructor.name),i==="Map"||i==="Set"?Array.from(h):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?a(h,c):void 0}}function a(h,c){(c==null||c>h.length)&&(c=h.length);for(var i=0,m=Array(c);i",apos:"'"};return c.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(i,function(d,u){return m[u]}).replace(/&#?([0-9]+);/gi,function(d,u){var s=parseInt(u,10);return String.fromCharCode(s)}).replace(/&#x?([0-9a-f]+);/gi,function(d,u){var s=parseInt(u,16);return String.fromCharCode(s)})}return h}(),y=r.buildQueryString=function(){function h(c){return Object.keys(c).map(function(i){return encodeURIComponent(i)+"="+encodeURIComponent(c[i])}).join("&")}return h}()},69214:function(w,r){"use strict";r.__esModule=!0,r.throttle=r.sleep=r.debounce=void 0;/** + */var t=r.multiline=function(){function h(c){if(Array.isArray(c))return h(c.join(""));for(var i=c.split("\n"),m,d=n(i),u;!(u=d()).done;)for(var s=u.value,l=0;l",apos:"'"};return c.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(i,function(d,u){return m[u]}).replace(/&#?([0-9]+);/gi,function(d,u){var s=parseInt(u,10);return String.fromCharCode(s)}).replace(/&#x?([0-9a-f]+);/gi,function(d,u){var s=parseInt(u,16);return String.fromCharCode(s)})}return h}(),k=r.buildQueryString=function(){function h(c){return Object.keys(c).map(function(i){return encodeURIComponent(i)+"="+encodeURIComponent(c[i])}).join("&")}return h}()},69214:function(T,r){"use strict";r.__esModule=!0,r.throttle=r.sleep=r.debounce=void 0;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var n=r.debounce=function(){function t(o,f,b){b===void 0&&(b=!1);var k;return function(){for(var S=arguments.length,y=new Array(S),h=0;h=f)o.apply(null,h),b=i;else{var m;k=setTimeout(function(){return S.apply(void 0,h)},f-(i-((m=b)!=null?m:0)))}}return S}()}return t}()},97450:function(w,r,n){"use strict";r.__esModule=!0,r.vecSubtract=r.vecScale=r.vecNormalize=r.vecMultiply=r.vecLength=r.vecInverse=r.vecDivide=r.vecAdd=void 0;var e=n(88510);/** + */var n=r.debounce=function(){function t(o,f,b){b===void 0&&(b=!1);var y;return function(){for(var S=arguments.length,k=new Array(S),h=0;h=f)o.apply(null,h),b=i;else{var m;y=setTimeout(function(){return S.apply(void 0,h)},f-(i-((m=b)!=null?m:0)))}}return S}()}return t}()},97450:function(T,r,n){"use strict";r.__esModule=!0,r.vecSubtract=r.vecScale=r.vecNormalize=r.vecMultiply=r.vecLength=r.vecInverse=r.vecDivide=r.vecAdd=void 0;var e=n(88510);/** * N-dimensional vector manipulation functions. * * Vectors are plain number arrays, i.e. [x, y, z]. @@ -58,11 +58,11 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var a=function(u,s){return u+s},t=function(u,s){return u-s},o=function(u,s){return u*s},f=function(u,s){return u/s},b=r.vecAdd=function(){function d(){for(var u=arguments.length,s=new Array(u),l=0;l0&&(g.style=x),g}return C}(),v=r.computeBoxClassName=function(){function C(p){var g=p.textColor||p.color,V=p.backgroundColor;return(0,e.classes)([h(g)&&"color-"+g,h(V)&&"color-bg-"+V])}return C}(),N=r.Box=function(){function C(p){var g=p.as,V=g===void 0?"div":g,I=p.className,B=p.children,L=b(p,f);if(typeof B=="function")return B(l(p));var T=typeof I=="string"?I+" "+v(L):v(L),A=l(L);return(0,a.createVNode)(t.VNodeFlags.HtmlElement,V,T,B,t.ChildFlags.UnknownChildren,A)}return C}();N.defaultHooks=e.pureComponentHooks},96184:function(w,r,n){"use strict";r.__esModule=!0,r.ButtonInput=r.ButtonConfirm=r.ButtonCheckbox=r.Button=void 0;var e=n(89005),a=n(35840),t=n(92986),o=n(9394),f=n(55937),b=n(1331),k=n(62147),S=["className","fluid","translucent","icon","iconRotation","iconSpin","color","textColor","disabled","selected","tooltip","tooltipPosition","ellipsis","compact","circular","content","iconColor","iconRight","iconStyle","children","onclick","onClick","multiLine"],y=["checked"],h=["confirmContent","confirmColor","confirmIcon","icon","color","content","onClick"],c=["fluid","content","icon","iconRotation","iconSpin","tooltip","tooltipPosition","color","disabled","multiLine"];/** + */function b(C,p){if(C==null)return{};var g={};for(var V in C)if({}.hasOwnProperty.call(C,V)){if(p.includes(V))continue;g[V]=C[V]}return g}var y=r.unit=function(){function C(p){if(typeof p=="string")return p.endsWith("px")?parseFloat(p)/12+"rem":p;if(typeof p=="number")return p+"rem"}return C}(),S=r.halfUnit=function(){function C(p){if(typeof p=="string")return y(p);if(typeof p=="number")return y(p*.5)}return C}(),k=function(p){return!h(p)},h=function(p){if(typeof p=="string")return o.CSS_COLORS.includes(p)},c=function(p){return function(g,V){(typeof V=="number"||typeof V=="string")&&(g[p]=V)}},i=function(p,g){return function(V,B){(typeof B=="number"||typeof B=="string")&&(V[p]=g(B))}},m=function(p,g){return function(V,B){B&&(V[p]=g)}},d=function(p,g,V){return function(B,I){if(typeof I=="number"||typeof I=="string")for(var L=0;L0&&(g.style=A),g}return C}(),v=r.computeBoxClassName=function(){function C(p){var g=p.textColor||p.color,V=p.backgroundColor;return(0,e.classes)([h(g)&&"color-"+g,h(V)&&"color-bg-"+V])}return C}(),N=r.Box=function(){function C(p){var g=p.as,V=g===void 0?"div":g,B=p.className,I=p.children,L=b(p,f);if(typeof I=="function")return I(l(p));var w=typeof B=="string"?B+" "+v(L):v(L),x=l(L);return(0,a.createVNode)(t.VNodeFlags.HtmlElement,V,w,I,t.ChildFlags.UnknownChildren,x)}return C}();N.defaultHooks=e.pureComponentHooks},96184:function(T,r,n){"use strict";r.__esModule=!0,r.ButtonInput=r.ButtonConfirm=r.ButtonCheckbox=r.Button=void 0;var e=n(89005),a=n(35840),t=n(92986),o=n(9394),f=n(55937),b=n(1331),y=n(62147),S=["className","fluid","translucent","icon","iconRotation","iconSpin","color","textColor","disabled","selected","tooltip","tooltipPosition","ellipsis","compact","circular","content","iconColor","iconRight","iconStyle","children","onclick","onClick","multiLine"],k=["checked"],h=["confirmContent","confirmColor","confirmIcon","icon","color","content","onClick"],c=["fluid","content","icon","iconRotation","iconSpin","tooltip","tooltipPosition","color","disabled","multiLine"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function i(C,p){C.prototype=Object.create(p.prototype),C.prototype.constructor=C,m(C,p)}function m(C,p){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(g,V){return g.__proto__=V,g},m(C,p)}function d(C,p){if(C==null)return{};var g={};for(var V in C)if({}.hasOwnProperty.call(C,V)){if(p.includes(V))continue;g[V]=C[V]}return g}var u=(0,o.createLogger)("Button"),s=r.Button=function(){function C(p){var g=p.className,V=p.fluid,I=p.translucent,B=p.icon,L=p.iconRotation,T=p.iconSpin,A=p.color,x=p.textColor,E=p.disabled,P=p.selected,j=p.tooltip,M=p.tooltipPosition,R=p.ellipsis,D=p.compact,W=p.circular,_=p.content,U=p.iconColor,K=p.iconRight,G=p.iconStyle,$=p.children,Q=p.onclick,J=p.onClick,ie=p.multiLine,ne=d(p,S),se=!!(_||$);Q&&u.warn("Lowercase 'onclick' is not supported on Button and lowercase prop names are discouraged in general. Please use a camelCase'onClick' instead and read: https://infernojs.org/docs/guides/event-handling"),ne.onClick=function(Se){!E&&J&&J(Se)};var Ce=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,a.classes)(["Button",V&&"Button--fluid",E&&"Button--disabled"+(I?"--translucent":""),P&&"Button--selected"+(I?"--translucent":""),se&&"Button--hasContent",R&&"Button--ellipsis",W&&"Button--circular",D&&"Button--compact",K&&"Button--iconRight",ie&&"Button--multiLine",A&&typeof A=="string"?"Button--color--"+A+(I?"--translucent":""):"Button--color--default"+(I?"--translucent":""),g]),tabIndex:!E&&"0",color:x,onKeyDown:function(){function Se(ke){var he=window.event?ke.which:ke.keyCode;if(he===t.KEY_SPACE||he===t.KEY_ENTER){ke.preventDefault(),!E&&J&&J(ke);return}if(he===t.KEY_ESCAPE){ke.preventDefault();return}}return Se}()},ne,{children:[B&&!K&&(0,e.createComponentVNode)(2,b.Icon,{name:B,color:U,rotation:L,spin:T,style:G}),_,$,B&&K&&(0,e.createComponentVNode)(2,b.Icon,{name:B,color:U,rotation:L,spin:T,style:G})]})));return j&&(Ce=(0,e.createComponentVNode)(2,k.Tooltip,{content:j,position:M,children:Ce})),Ce}return C}();s.defaultHooks=a.pureComponentHooks;var l=r.ButtonCheckbox=function(){function C(p){var g=p.checked,V=d(p,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({color:"transparent",icon:g?"check-square-o":"square-o",selected:g},V)))}return C}();s.Checkbox=l;var v=r.ButtonConfirm=function(C){function p(){var V;return V=C.call(this)||this,V.handleClick=function(){V.state.clickedOnce&&V.setClickedOnce(!1)},V.state={clickedOnce:!1},V}i(p,C);var g=p.prototype;return g.setClickedOnce=function(){function V(I){var B=this;this.setState({clickedOnce:I}),I?setTimeout(function(){return window.addEventListener("click",B.handleClick)}):window.removeEventListener("click",this.handleClick)}return V}(),g.render=function(){function V(){var I=this,B=this.props,L=B.confirmContent,T=L===void 0?"Confirm?":L,A=B.confirmColor,x=A===void 0?"bad":A,E=B.confirmIcon,P=B.icon,j=B.color,M=B.content,R=B.onClick,D=d(B,h);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({content:this.state.clickedOnce?T:M,icon:this.state.clickedOnce?E:P,color:this.state.clickedOnce?x:j,onClick:function(){function W(_){return I.state.clickedOnce?R==null?void 0:R(_):I.setClickedOnce(!0)}return W}()},D)))}return V}(),p}(e.Component);s.Confirm=v;var N=r.ButtonInput=function(C){function p(){var V;return V=C.call(this)||this,V.inputRef=void 0,V.inputRef=(0,e.createRef)(),V.state={inInput:!1},V}i(p,C);var g=p.prototype;return g.setInInput=function(){function V(I){var B=this.props.disabled;if(!B&&(this.setState({inInput:I}),this.inputRef)){var L=this.inputRef.current;if(I){L.value=this.props.currentValue||"";try{L.focus(),L.select()}catch(T){}}}}return V}(),g.commitResult=function(){function V(I){if(this.inputRef){var B=this.inputRef.current,L=B.value!=="";if(L){this.props.onCommit(I,B.value);return}else{if(!this.props.defaultValue)return;this.props.onCommit(I,this.props.defaultValue)}}}return V}(),g.render=function(){function V(){var I=this,B=this.props,L=B.fluid,T=B.content,A=B.icon,x=B.iconRotation,E=B.iconSpin,P=B.tooltip,j=B.tooltipPosition,M=B.color,R=M===void 0?"default":M,D=B.disabled,W=B.multiLine,_=d(B,c),U=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,a.classes)(["Button",L&&"Button--fluid",D&&"Button--disabled","Button--color--"+R,W+"Button--multiLine"])},_,{onClick:function(){function K(){return I.setInInput(!0)}return K}(),children:[A&&(0,e.createComponentVNode)(2,b.Icon,{name:A,rotation:x,spin:E}),(0,e.createVNode)(1,"div",null,T,0),(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:this.state.inInput?void 0:"none","text-align":"left"},onBlur:function(){function K(G){I.state.inInput&&(I.setInInput(!1),I.commitResult(G))}return K}(),onKeyDown:function(){function K(G){if(G.keyCode===t.KEY_ENTER){I.setInInput(!1),I.commitResult(G);return}G.keyCode===t.KEY_ESCAPE&&I.setInInput(!1)}return K}()},null,this.inputRef)]})));return P&&(U=(0,e.createComponentVNode)(2,k.Tooltip,{content:P,position:j,children:U})),U}return V}(),p}(e.Component);s.Input=N},18982:function(w,r,n){"use strict";r.__esModule=!0,r.ByondUi=void 0;var e=n(89005),a=n(35840),t=n(69214),o=n(9394),f=n(55937),b=["params"],k=["params"],S=["parent","params"];function y(v,N){if(v==null)return{};var C={};for(var p in v)if({}.hasOwnProperty.call(v,p)){if(N.includes(p))continue;C[p]=v[p]}return C}function h(v,N){v.prototype=Object.create(N.prototype),v.prototype.constructor=v,c(v,N)}function c(v,N){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(C,p){return C.__proto__=p,C},c(v,N)}/** + */function i(C,p){C.prototype=Object.create(p.prototype),C.prototype.constructor=C,m(C,p)}function m(C,p){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(g,V){return g.__proto__=V,g},m(C,p)}function d(C,p){if(C==null)return{};var g={};for(var V in C)if({}.hasOwnProperty.call(C,V)){if(p.includes(V))continue;g[V]=C[V]}return g}var u=(0,o.createLogger)("Button"),s=r.Button=function(){function C(p){var g=p.className,V=p.fluid,B=p.translucent,I=p.icon,L=p.iconRotation,w=p.iconSpin,x=p.color,A=p.textColor,E=p.disabled,P=p.selected,j=p.tooltip,M=p.tooltipPosition,R=p.ellipsis,D=p.compact,W=p.circular,_=p.content,U=p.iconColor,K=p.iconRight,G=p.iconStyle,$=p.children,Q=p.onclick,J=p.onClick,ie=p.multiLine,ne=d(p,S),se=!!(_||$);Q&&u.warn("Lowercase 'onclick' is not supported on Button and lowercase prop names are discouraged in general. Please use a camelCase'onClick' instead and read: https://infernojs.org/docs/guides/event-handling"),ne.onClick=function(Se){!E&&J&&J(Se)};var Ce=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,a.classes)(["Button",V&&"Button--fluid",E&&"Button--disabled"+(B?"--translucent":""),P&&"Button--selected"+(B?"--translucent":""),se&&"Button--hasContent",R&&"Button--ellipsis",W&&"Button--circular",D&&"Button--compact",K&&"Button--iconRight",ie&&"Button--multiLine",x&&typeof x=="string"?"Button--color--"+x+(B?"--translucent":""):"Button--color--default"+(B?"--translucent":""),g]),tabIndex:!E&&"0",color:A,onKeyDown:function(){function Se(ye){var he=window.event?ye.which:ye.keyCode;if(he===t.KEY_SPACE||he===t.KEY_ENTER){ye.preventDefault(),!E&&J&&J(ye);return}if(he===t.KEY_ESCAPE){ye.preventDefault();return}}return Se}()},ne,{children:[I&&!K&&(0,e.createComponentVNode)(2,b.Icon,{name:I,color:U,rotation:L,spin:w,style:G}),_,$,I&&K&&(0,e.createComponentVNode)(2,b.Icon,{name:I,color:U,rotation:L,spin:w,style:G})]})));return j&&(Ce=(0,e.createComponentVNode)(2,y.Tooltip,{content:j,position:M,children:Ce})),Ce}return C}();s.defaultHooks=a.pureComponentHooks;var l=r.ButtonCheckbox=function(){function C(p){var g=p.checked,V=d(p,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({color:"transparent",icon:g?"check-square-o":"square-o",selected:g},V)))}return C}();s.Checkbox=l;var v=r.ButtonConfirm=function(C){function p(){var V;return V=C.call(this)||this,V.handleClick=function(){V.state.clickedOnce&&V.setClickedOnce(!1)},V.state={clickedOnce:!1},V}i(p,C);var g=p.prototype;return g.setClickedOnce=function(){function V(B){var I=this;this.setState({clickedOnce:B}),B?setTimeout(function(){return window.addEventListener("click",I.handleClick)}):window.removeEventListener("click",this.handleClick)}return V}(),g.render=function(){function V(){var B=this,I=this.props,L=I.confirmContent,w=L===void 0?"Confirm?":L,x=I.confirmColor,A=x===void 0?"bad":x,E=I.confirmIcon,P=I.icon,j=I.color,M=I.content,R=I.onClick,D=d(I,h);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({content:this.state.clickedOnce?w:M,icon:this.state.clickedOnce?E:P,color:this.state.clickedOnce?A:j,onClick:function(){function W(_){return B.state.clickedOnce?R==null?void 0:R(_):B.setClickedOnce(!0)}return W}()},D)))}return V}(),p}(e.Component);s.Confirm=v;var N=r.ButtonInput=function(C){function p(){var V;return V=C.call(this)||this,V.inputRef=void 0,V.inputRef=(0,e.createRef)(),V.state={inInput:!1},V}i(p,C);var g=p.prototype;return g.setInInput=function(){function V(B){var I=this.props.disabled;if(!I&&(this.setState({inInput:B}),this.inputRef)){var L=this.inputRef.current;if(B){L.value=this.props.currentValue||"";try{L.focus(),L.select()}catch(w){}}}}return V}(),g.commitResult=function(){function V(B){if(this.inputRef){var I=this.inputRef.current,L=I.value!=="";if(L){this.props.onCommit(B,I.value);return}else{if(!this.props.defaultValue)return;this.props.onCommit(B,this.props.defaultValue)}}}return V}(),g.render=function(){function V(){var B=this,I=this.props,L=I.fluid,w=I.content,x=I.icon,A=I.iconRotation,E=I.iconSpin,P=I.tooltip,j=I.tooltipPosition,M=I.color,R=M===void 0?"default":M,D=I.disabled,W=I.multiLine,_=d(I,c),U=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,a.classes)(["Button",L&&"Button--fluid",D&&"Button--disabled","Button--color--"+R,W+"Button--multiLine"])},_,{onClick:function(){function K(){return B.setInInput(!0)}return K}(),children:[x&&(0,e.createComponentVNode)(2,b.Icon,{name:x,rotation:A,spin:E}),(0,e.createVNode)(1,"div",null,w,0),(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:this.state.inInput?void 0:"none","text-align":"left"},onBlur:function(){function K(G){B.state.inInput&&(B.setInInput(!1),B.commitResult(G))}return K}(),onKeyDown:function(){function K(G){if(G.keyCode===t.KEY_ENTER){B.setInInput(!1),B.commitResult(G);return}G.keyCode===t.KEY_ESCAPE&&B.setInInput(!1)}return K}()},null,this.inputRef)]})));return P&&(U=(0,e.createComponentVNode)(2,y.Tooltip,{content:P,position:j,children:U})),U}return V}(),p}(e.Component);s.Input=N},18982:function(T,r,n){"use strict";r.__esModule=!0,r.ByondUi=void 0;var e=n(89005),a=n(35840),t=n(69214),o=n(9394),f=n(55937),b=["params"],y=["params"],S=["parent","params"];function k(v,N){if(v==null)return{};var C={};for(var p in v)if({}.hasOwnProperty.call(v,p)){if(N.includes(p))continue;C[p]=v[p]}return C}function h(v,N){v.prototype=Object.create(N.prototype),v.prototype.constructor=v,c(v,N)}function c(v,N){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(C,p){return C.__proto__=p,C},c(v,N)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var i=(0,o.createLogger)("ByondUi"),m=[],d=function(N){var C=m.length;m.push(null);var p=N||"byondui_"+C;return i.log("allocated '"+p+"'"),{render:function(){function g(V){i.log("rendering '"+p+"'"),m[C]=p,Byond.winset(p,V)}return g}(),unmount:function(){function g(){i.log("unmounting '"+p+"'"),m[C]=null,Byond.winset(p,{parent:""})}return g}()}};window.addEventListener("beforeunload",function(){for(var v=0;v0){var M=j[0],R=j[j.length-1];j.push([P[0]+x,R[1]]),j.push([P[0]+x,-x]),j.push([-x,-x]),j.push([-x,M[1]])}var D=h(j);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({position:"relative"},E,{children:function(){function W(_){return(0,e.normalizeProps)((0,e.createVNode)(1,"div",null,(0,e.createVNode)(32,"svg",null,(0,e.createVNode)(32,"polyline",null,null,1,{transform:"scale(1, -1) translate(0, -"+P[1]+")",fill:B,stroke:T,"stroke-width":x,points:D}),2,{viewBox:"0 0 "+P[0]+" "+P[1],preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"}}),2,Object.assign({},_),null,v.ref))}return W}()})))}return l}(),u}(e.Component);c.defaultHooks=t.pureComponentHooks;var i=function(u){return null},m=r.Chart={Line:c}},4796:function(w,r,n){"use strict";r.__esModule=!0,r.Collapsible=void 0;var e=n(89005),a=n(55937),t=n(96184),o=["children","color","title","buttons","contentStyle"];function f(y,h){if(y==null)return{};var c={};for(var i in y)if({}.hasOwnProperty.call(y,i)){if(h.includes(i))continue;c[i]=y[i]}return c}function b(y,h){y.prototype=Object.create(h.prototype),y.prototype.constructor=y,k(y,h)}function k(y,h){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,i){return c.__proto__=i,c},k(y,h)}/** +*/var k=function(u,s,l,v){if(u.length===0)return[];var N=(0,a.zipWith)(Math.min).apply(void 0,u),C=(0,a.zipWith)(Math.max).apply(void 0,u);l!==void 0&&(N[0]=l[0],C[0]=l[1]),v!==void 0&&(N[1]=v[0],C[1]=v[1]);var p=(0,a.map)(function(g){return(0,a.zipWith)(function(V,B,I,L){return(V-B)/(I-B)*L})(g,N,C,s)})(u);return p},h=function(u){for(var s="",l=0;l0){var M=j[0],R=j[j.length-1];j.push([P[0]+A,R[1]]),j.push([P[0]+A,-A]),j.push([-A,-A]),j.push([-A,M[1]])}var D=h(j);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({position:"relative"},E,{children:function(){function W(_){return(0,e.normalizeProps)((0,e.createVNode)(1,"div",null,(0,e.createVNode)(32,"svg",null,(0,e.createVNode)(32,"polyline",null,null,1,{transform:"scale(1, -1) translate(0, -"+P[1]+")",fill:I,stroke:w,"stroke-width":A,points:D}),2,{viewBox:"0 0 "+P[0]+" "+P[1],preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"}}),2,Object.assign({},_),null,v.ref))}return W}()})))}return l}(),u}(e.Component);c.defaultHooks=t.pureComponentHooks;var i=function(u){return null},m=r.Chart={Line:c}},4796:function(T,r,n){"use strict";r.__esModule=!0,r.Collapsible=void 0;var e=n(89005),a=n(55937),t=n(96184),o=["children","color","title","buttons","contentStyle"];function f(k,h){if(k==null)return{};var c={};for(var i in k)if({}.hasOwnProperty.call(k,i)){if(h.includes(i))continue;c[i]=k[i]}return c}function b(k,h){k.prototype=Object.create(h.prototype),k.prototype.constructor=k,y(k,h)}function y(k,h){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,i){return c.__proto__=i,c},y(k,h)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var S=r.Collapsible=function(y){function h(i){var m;m=y.call(this,i)||this;var d=i.open;return m.state={open:d||!1},m}b(h,y);var c=h.prototype;return c.render=function(){function i(){var m=this,d=this.props,u=this.state.open,s=d.children,l=d.color,v=l===void 0?"default":l,N=d.title,C=d.buttons,p=d.contentStyle,g=f(d,o);return(0,e.createComponentVNode)(2,a.Box,{className:"Collapsible",children:[(0,e.createVNode)(1,"div","Table",[(0,e.createVNode)(1,"div","Table__cell",(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({fluid:!0,color:v,icon:u?"chevron-down":"chevron-right",onClick:function(){function V(){return m.setState({open:!u})}return V}()},g,{children:N}))),2),C&&(0,e.createVNode)(1,"div","Table__cell Table__cell--collapsing",C,0)],0),u&&(0,e.createComponentVNode)(2,a.Box,{mt:1,style:p,children:s})]})}return i}(),h}(e.Component)},88894:function(w,r,n){"use strict";r.__esModule=!0,r.ColorBox=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["content","children","className","color","backgroundColor"];/** +*/var S=r.Collapsible=function(k){function h(i){var m;m=k.call(this,i)||this;var d=i.open;return m.state={open:d||!1},m}b(h,k);var c=h.prototype;return c.render=function(){function i(){var m=this,d=this.props,u=this.state.open,s=d.children,l=d.color,v=l===void 0?"default":l,N=d.title,C=d.buttons,p=d.contentStyle,g=f(d,o);return(0,e.createComponentVNode)(2,a.Box,{className:"Collapsible",children:[(0,e.createVNode)(1,"div","Table",[(0,e.createVNode)(1,"div","Table__cell",(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({fluid:!0,color:v,icon:u?"chevron-down":"chevron-right",onClick:function(){function V(){return m.setState({open:!u})}return V}()},g,{children:N}))),2),C&&(0,e.createVNode)(1,"div","Table__cell Table__cell--collapsing",C,0)],0),u&&(0,e.createComponentVNode)(2,a.Box,{mt:1,style:p,children:s})]})}return i}(),h}(e.Component)},88894:function(T,r,n){"use strict";r.__esModule=!0,r.ColorBox=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["content","children","className","color","backgroundColor"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function f(k,S){if(k==null)return{};var y={};for(var h in k)if({}.hasOwnProperty.call(k,h)){if(S.includes(h))continue;y[h]=k[h]}return y}var b=r.ColorBox=function(){function k(S){var y=S.content,h=S.children,c=S.className,i=S.color,m=S.backgroundColor,d=f(S,o);return d.color=y?null:"transparent",d.backgroundColor=i||m,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["ColorBox",c,(0,t.computeBoxClassName)(d)]),y||".",0,Object.assign({},(0,t.computeBoxProps)(d))))}return k}();b.defaultHooks=a.pureComponentHooks},73379:function(w,r,n){"use strict";r.__esModule=!0,r.Countdown=void 0;var e=n(89005),a=n(55937),t=["format"];function o(S,y){if(S==null)return{};var h={};for(var c in S)if({}.hasOwnProperty.call(S,c)){if(y.includes(c))continue;h[c]=S[c]}return h}function f(S,y){S.prototype=Object.create(y.prototype),S.prototype.constructor=S,b(S,y)}function b(S,y){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(h,c){return h.__proto__=c,h},b(S,y)}var k=r.Countdown=function(S){function y(c){var i;return i=S.call(this,c)||this,i.timer=null,i.state={value:Math.max(c.timeLeft*100,0)},i}f(y,S);var h=y.prototype;return h.tick=function(){function c(){var i=Math.max(this.state.value-this.props.rate,0);i<=0&&clearInterval(this.timer),this.setState(function(m){return{value:i}})}return c}(),h.componentDidMount=function(){function c(){var i=this;this.timer=setInterval(function(){return i.tick()},this.props.rate)}return c}(),h.componentWillUnmount=function(){function c(){clearInterval(this.timer)}return c}(),h.componentDidUpdate=function(){function c(i){var m=this;this.props.current!==i.current&&this.setState(function(d){return{value:Math.max(m.props.timeLeft*100,0)}}),this.timer||this.componentDidMount()}return c}(),h.render=function(){function c(){var i=this.props,m=i.format,d=o(i,t),u=new Date(this.state.value).toISOString().slice(11,19);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({as:"span"},d,{children:m?m(this.state.value,u):u})))}return c}(),y}(e.Component);k.defaultProps={rate:1e3}},61940:function(w,r,n){"use strict";r.__esModule=!0,r.Dimmer=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["className","children"];/** + */function f(y,S){if(y==null)return{};var k={};for(var h in y)if({}.hasOwnProperty.call(y,h)){if(S.includes(h))continue;k[h]=y[h]}return k}var b=r.ColorBox=function(){function y(S){var k=S.content,h=S.children,c=S.className,i=S.color,m=S.backgroundColor,d=f(S,o);return d.color=k?null:"transparent",d.backgroundColor=i||m,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["ColorBox",c,(0,t.computeBoxClassName)(d)]),k||".",0,Object.assign({},(0,t.computeBoxProps)(d))))}return y}();b.defaultHooks=a.pureComponentHooks},73379:function(T,r,n){"use strict";r.__esModule=!0,r.Countdown=void 0;var e=n(89005),a=n(55937),t=["format"];function o(S,k){if(S==null)return{};var h={};for(var c in S)if({}.hasOwnProperty.call(S,c)){if(k.includes(c))continue;h[c]=S[c]}return h}function f(S,k){S.prototype=Object.create(k.prototype),S.prototype.constructor=S,b(S,k)}function b(S,k){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(h,c){return h.__proto__=c,h},b(S,k)}var y=r.Countdown=function(S){function k(c){var i;return i=S.call(this,c)||this,i.timer=null,i.state={value:Math.max(c.timeLeft*100,0)},i}f(k,S);var h=k.prototype;return h.tick=function(){function c(){var i=Math.max(this.state.value-this.props.rate,0);i<=0&&clearInterval(this.timer),this.setState(function(m){return{value:i}})}return c}(),h.componentDidMount=function(){function c(){var i=this;this.timer=setInterval(function(){return i.tick()},this.props.rate)}return c}(),h.componentWillUnmount=function(){function c(){clearInterval(this.timer)}return c}(),h.componentDidUpdate=function(){function c(i){var m=this;this.props.current!==i.current&&this.setState(function(d){return{value:Math.max(m.props.timeLeft*100,0)}}),this.timer||this.componentDidMount()}return c}(),h.render=function(){function c(){var i=this.props,m=i.format,d=o(i,t),u=new Date(this.state.value).toISOString().slice(11,19);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({as:"span"},d,{children:m?m(this.state.value,u):u})))}return c}(),k}(e.Component);y.defaultProps={rate:1e3}},61940:function(T,r,n){"use strict";r.__esModule=!0,r.Dimmer=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["className","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function f(k,S){if(k==null)return{};var y={};for(var h in k)if({}.hasOwnProperty.call(k,h)){if(S.includes(h))continue;y[h]=k[h]}return y}var b=r.Dimmer=function(){function k(S){var y=S.className,h=S.children,c=f(S,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Dimmer"].concat(y))},c,{children:(0,e.createVNode)(1,"div","Dimmer__inner",h,0)})))}return k}()},13605:function(w,r,n){"use strict";r.__esModule=!0,r.Divider=void 0;var e=n(89005),a=n(35840);/** + */function f(y,S){if(y==null)return{};var k={};for(var h in y)if({}.hasOwnProperty.call(y,h)){if(S.includes(h))continue;k[h]=y[h]}return k}var b=r.Dimmer=function(){function y(S){var k=S.className,h=S.children,c=f(S,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Dimmer"].concat(k))},c,{children:(0,e.createVNode)(1,"div","Dimmer__inner",h,0)})))}return y}()},13605:function(T,r,n){"use strict";r.__esModule=!0,r.Divider=void 0;var e=n(89005),a=n(35840);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.Divider=function(){function o(f){var b=f.vertical,k=f.hidden;return(0,e.createVNode)(1,"div",(0,a.classes)(["Divider",k&&"Divider--hidden",b?"Divider--vertical":"Divider--horizontal"]))}return o}()},20342:function(w,r,n){"use strict";r.__esModule=!0,r.DraggableControl=void 0;var e=n(89005),a=n(44879),t=n(35840),o=n(9474);function f(h,c){h.prototype=Object.create(c.prototype),h.prototype.constructor=h,b(h,c)}function b(h,c){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,m){return i.__proto__=m,i},b(h,c)}var k=400,S=function(c,i){return c.screenX*i[0]+c.screenY*i[1]},y=r.DraggableControl=function(h){function c(m){var d;return d=h.call(this,m)||this,d.inputRef=(0,e.createRef)(),d.state={originalValue:m.value,value:m.value,dragging:!1,editing:!1,origin:null,suppressingFlicker:!1},d.flickerTimer=null,d.suppressFlicker=function(){var u=d.props.suppressFlicker;u>0&&(d.setState({suppressingFlicker:!0}),clearTimeout(d.flickerTimer),d.flickerTimer=setTimeout(function(){return d.setState({suppressingFlicker:!1})},u))},d.handleDragStart=function(u){var s=d.props,l=s.value,v=s.dragMatrix,N=s.disabled,C=d.state.editing;C||N||(document.body.style["pointer-events"]="none",d.ref=u.currentTarget,d.setState({originalValue:l,dragging:!1,value:l,origin:S(u,v)}),d.timer=setTimeout(function(){d.setState({dragging:!0})},250),d.dragInterval=setInterval(function(){var p=d.state,g=p.dragging,V=p.value,I=d.props.onDrag;g&&I&&I(u,V)},d.props.updateRate||k),document.addEventListener("mousemove",d.handleDragMove),document.addEventListener("mouseup",d.handleDragEnd))},d.handleDragMove=function(u){var s,l=d.props,v=l.minValue,N=l.maxValue,C=l.step,p=l.dragMatrix,g=l.disabled;if(!g){var V=d.ref.offsetWidth/((N-v)/C),I=(s=d.props.stepPixelSize)!=null?s:V;typeof I=="function"&&(I=I(V)),d.setState(function(B){var L=Object.assign({},B),T=B.origin,A=S(u,p)-T;if(B.dragging){var x=Math.trunc(A/I);L.value=(0,a.clamp)(Math.floor(L.originalValue/C)*C+x*C,v,N)}else Math.abs(A)>4&&(L.dragging=!0);return L})}},d.handleDragEnd=function(u){var s=d.props,l=s.onChange,v=s.onDrag,N=d.state,C=N.dragging,p=N.value;if(document.body.style["pointer-events"]="auto",clearTimeout(d.timer),clearInterval(d.dragInterval),d.setState({originalValue:null,dragging:!1,editing:!C,origin:null}),document.removeEventListener("mousemove",d.handleDragMove),document.removeEventListener("mouseup",d.handleDragEnd),C)d.suppressFlicker(),l&&l(u,p),v&&v(u,p);else if(d.inputRef){var g=d.inputRef.current;g.value=p;try{g.focus(),g.select()}catch(V){}}},d}f(c,h);var i=c.prototype;return i.render=function(){function m(){var d=this,u=this.state,s=u.dragging,l=u.editing,v=u.value,N=u.suppressingFlicker,C=this.props,p=C.animated,g=C.value,V=C.unit,I=C.minValue,B=C.maxValue,L=C.format,T=C.onChange,A=C.onDrag,x=C.children,E=C.height,P=C.lineHeight,j=C.fontSize,M=C.disabled,R=g;(s||N)&&(R=v);var D=function(){function U(K){return K+(V?" "+V:"")}return U}(),W=p&&!s&&!N&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:R,format:L,children:D})||D(L?L(R):R),_=(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:!l||M?"none":void 0,height:E,"line-height":P,"font-size":j},onBlur:function(){function U(K){if(l){var G=(0,a.clamp)(parseFloat(K.target.value),I,B);if(Number.isNaN(G)){d.setState({editing:!1});return}d.setState({editing:!1,value:G}),d.suppressFlicker(),T&&T(K,G),A&&A(K,G)}}return U}(),onKeyDown:function(){function U(K){if(K.keyCode===13){var G=(0,a.clamp)(parseFloat(K.target.value),I,B);if(Number.isNaN(G)){d.setState({editing:!1});return}d.setState({editing:!1,value:G}),d.suppressFlicker(),T&&T(K,G),A&&A(K,G);return}if(K.keyCode===27){d.setState({editing:!1});return}}return U}(),disabled:M},null,this.inputRef);return x({dragging:s,editing:l,value:g,displayValue:R,displayElement:W,inputElement:_,handleDragStart:this.handleDragStart})}return m}(),c}(e.Component);y.defaultHooks=t.pureComponentHooks,y.defaultProps={minValue:-1/0,maxValue:1/0,step:1,suppressFlicker:50,dragMatrix:[1,0]}},87099:function(w,r,n){"use strict";r.__esModule=!0,r.Dropdown=void 0;var e=n(89005),a=n(95996),t=n(35840),o=n(55937),f=n(1331),b=["icon","iconRotation","iconSpin","clipSelectedText","color","dropdownStyle","over","nochevron","width","onClick","onSelected","selected","disabled","displayText"],k=["className"],S;function y(l,v){if(l==null)return{};var N={};for(var C in l)if({}.hasOwnProperty.call(l,C)){if(v.includes(C))continue;N[C]=l[C]}return N}function h(l,v){l.prototype=Object.create(v.prototype),l.prototype.constructor=l,c(l,v)}function c(l,v){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(N,C){return N.__proto__=C,N},c(l,v)}var i={placement:"left-start",modifiers:[{name:"eventListeners",enabled:!1}]},m={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function l(){return null}return l}()},d="Layout Dropdown__menu",u="Layout Dropdown__menu-scroll",s=r.Dropdown=function(l){function v(C){var p;return p=l.call(this,C)||this,p.menuContents=void 0,p.handleClick=function(){p.state.open&&p.setOpen(!1)},p.state={open:!1,selected:p.props.selected},p.menuContents=null,p}h(v,l);var N=v.prototype;return N.getDOMNode=function(){function C(){return(0,e.findDOMFromVNode)(this.$LI,!0)}return C}(),N.componentDidMount=function(){function C(){var p=this.getDOMNode()}return C}(),N.openMenu=function(){function C(){var p=v.renderedMenu;p===void 0&&(p=document.createElement("div"),p.className=d,document.body.appendChild(p),v.renderedMenu=p);var g=this.getDOMNode();v.currentOpenMenu=g,p.scrollTop=0,p.style.width=this.props.menuWidth||g.offsetWidth+"px",p.style.opacity="1",p.style.pointerEvents="auto",setTimeout(function(){var V;(V=v.renderedMenu)==null||V.focus()},400),this.renderMenuContent()}return C}(),N.closeMenu=function(){function C(){v.currentOpenMenu===this.getDOMNode()&&(v.currentOpenMenu=void 0,v.renderedMenu.style.opacity="0",v.renderedMenu.style.pointerEvents="none")}return C}(),N.componentWillUnmount=function(){function C(){this.closeMenu(),this.setOpen(!1)}return C}(),N.renderMenuContent=function(){function C(){var p=this,g=v.renderedMenu;if(g){g.offsetHeight>200?g.className=u:g.className=d;var V=this.props.options,I=V===void 0?[]:V,B=I.map(function(T){var A,x;return typeof T=="string"?(x=T,A=T):T!==null&&(x=T.displayText,A=T.value),(0,e.createVNode)(1,"div",(0,t.classes)(["Dropdown__menuentry",p.state.selected===A&&"selected"]),x,0,{onClick:function(){function E(){p.setSelected(A)}return E}()},A)}),L=B.length?B:"No Options Found";(0,e.render)((0,e.createVNode)(1,"div",null,L,0),g,function(){var T=v.singletonPopper;T===void 0?(T=(0,a.createPopper)(v.virtualElement,g,Object.assign({},i,{placement:"bottom-start"})),v.singletonPopper=T):(T.setOptions(Object.assign({},i,{placement:"bottom-start"})),T.update())},this.context)}}return C}(),N.setOpen=function(){function C(p){var g=this;this.setState(function(V){return Object.assign({},V,{open:p})}),p?setTimeout(function(){g.openMenu(),window.addEventListener("click",g.handleClick)}):(this.closeMenu(),window.removeEventListener("click",this.handleClick))}return C}(),N.setSelected=function(){function C(p){this.setState(function(g){return Object.assign({},g,{selected:p})}),this.setOpen(!1),this.props.onSelected&&this.props.onSelected(p)}return C}(),N.render=function(){function C(){var p=this,g=this.props,V=g.icon,I=g.iconRotation,B=g.iconSpin,L=g.clipSelectedText,T=L===void 0?!0:L,A=g.color,x=A===void 0?"default":A,E=g.dropdownStyle,P=g.over,j=g.nochevron,M=g.width,R=g.onClick,D=g.onSelected,W=g.selected,_=g.disabled,U=g.displayText,K=y(g,b),G=K.className,$=y(K,k),Q=P?!this.state.open:this.state.open;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({width:M,className:(0,t.classes)(["Dropdown__control","Button","Button--color--"+x,_&&"Button--disabled",G]),onClick:function(){function J(ie){_&&!p.state.open||(p.setOpen(!p.state.open),R&&R(ie))}return J}()},$,{children:[V&&(0,e.createComponentVNode)(2,f.Icon,{name:V,rotation:I,spin:B,mr:1}),(0,e.createVNode)(1,"span","Dropdown__selected-text",U||this.state.selected,0,{style:{overflow:T?"hidden":"visible"}}),j||(0,e.createVNode)(1,"span","Dropdown__arrow-button",(0,e.createComponentVNode)(2,f.Icon,{name:Q?"chevron-up":"chevron-down"}),2)]})))}return C}(),v}(e.Component);S=s,s.renderedMenu=void 0,s.singletonPopper=void 0,s.currentOpenMenu=void 0,s.virtualElement={getBoundingClientRect:function(){function l(){var v,N;return(v=(N=S.currentOpenMenu)==null?void 0:N.getBoundingClientRect())!=null?v:m}return l}()}},39473:function(w,r,n){"use strict";r.__esModule=!0,r.computeFlexProps=r.computeFlexItemProps=r.computeFlexItemClassName=r.computeFlexClassName=r.Flex=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["className","direction","wrap","align","justify","inline","style"],f=["className"],b=["className","style","grow","order","shrink","basis","align"],k=["className"];/** + */var t=r.Divider=function(){function o(f){var b=f.vertical,y=f.hidden;return(0,e.createVNode)(1,"div",(0,a.classes)(["Divider",y&&"Divider--hidden",b?"Divider--vertical":"Divider--horizontal"]))}return o}()},20342:function(T,r,n){"use strict";r.__esModule=!0,r.DraggableControl=void 0;var e=n(89005),a=n(44879),t=n(35840),o=n(9474);function f(h,c){h.prototype=Object.create(c.prototype),h.prototype.constructor=h,b(h,c)}function b(h,c){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,m){return i.__proto__=m,i},b(h,c)}var y=400,S=function(c,i){return c.screenX*i[0]+c.screenY*i[1]},k=r.DraggableControl=function(h){function c(m){var d;return d=h.call(this,m)||this,d.inputRef=(0,e.createRef)(),d.state={originalValue:m.value,value:m.value,dragging:!1,editing:!1,origin:null,suppressingFlicker:!1},d.flickerTimer=null,d.suppressFlicker=function(){var u=d.props.suppressFlicker;u>0&&(d.setState({suppressingFlicker:!0}),clearTimeout(d.flickerTimer),d.flickerTimer=setTimeout(function(){return d.setState({suppressingFlicker:!1})},u))},d.handleDragStart=function(u){var s=d.props,l=s.value,v=s.dragMatrix,N=s.disabled,C=d.state.editing;C||N||(document.body.style["pointer-events"]="none",d.ref=u.currentTarget,d.setState({originalValue:l,dragging:!1,value:l,origin:S(u,v)}),d.timer=setTimeout(function(){d.setState({dragging:!0})},250),d.dragInterval=setInterval(function(){var p=d.state,g=p.dragging,V=p.value,B=d.props.onDrag;g&&B&&B(u,V)},d.props.updateRate||y),document.addEventListener("mousemove",d.handleDragMove),document.addEventListener("mouseup",d.handleDragEnd))},d.handleDragMove=function(u){var s,l=d.props,v=l.minValue,N=l.maxValue,C=l.step,p=l.dragMatrix,g=l.disabled;if(!g){var V=d.ref.offsetWidth/((N-v)/C),B=(s=d.props.stepPixelSize)!=null?s:V;typeof B=="function"&&(B=B(V)),d.setState(function(I){var L=Object.assign({},I),w=I.origin,x=S(u,p)-w;if(I.dragging){var A=Math.trunc(x/B);L.value=(0,a.clamp)(Math.floor(L.originalValue/C)*C+A*C,v,N)}else Math.abs(x)>4&&(L.dragging=!0);return L})}},d.handleDragEnd=function(u){var s=d.props,l=s.onChange,v=s.onDrag,N=d.state,C=N.dragging,p=N.value;if(document.body.style["pointer-events"]="auto",clearTimeout(d.timer),clearInterval(d.dragInterval),d.setState({originalValue:null,dragging:!1,editing:!C,origin:null}),document.removeEventListener("mousemove",d.handleDragMove),document.removeEventListener("mouseup",d.handleDragEnd),C)d.suppressFlicker(),l&&l(u,p),v&&v(u,p);else if(d.inputRef){var g=d.inputRef.current;g.value=p;try{g.focus(),g.select()}catch(V){}}},d}f(c,h);var i=c.prototype;return i.render=function(){function m(){var d=this,u=this.state,s=u.dragging,l=u.editing,v=u.value,N=u.suppressingFlicker,C=this.props,p=C.animated,g=C.value,V=C.unit,B=C.minValue,I=C.maxValue,L=C.format,w=C.onChange,x=C.onDrag,A=C.children,E=C.height,P=C.lineHeight,j=C.fontSize,M=C.disabled,R=g;(s||N)&&(R=v);var D=function(){function U(K){return K+(V?" "+V:"")}return U}(),W=p&&!s&&!N&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:R,format:L,children:D})||D(L?L(R):R),_=(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:!l||M?"none":void 0,height:E,"line-height":P,"font-size":j},onBlur:function(){function U(K){if(l){var G=(0,a.clamp)(parseFloat(K.target.value),B,I);if(Number.isNaN(G)){d.setState({editing:!1});return}d.setState({editing:!1,value:G}),d.suppressFlicker(),w&&w(K,G),x&&x(K,G)}}return U}(),onKeyDown:function(){function U(K){if(K.keyCode===13){var G=(0,a.clamp)(parseFloat(K.target.value),B,I);if(Number.isNaN(G)){d.setState({editing:!1});return}d.setState({editing:!1,value:G}),d.suppressFlicker(),w&&w(K,G),x&&x(K,G);return}if(K.keyCode===27){d.setState({editing:!1});return}}return U}(),disabled:M},null,this.inputRef);return A({dragging:s,editing:l,value:g,displayValue:R,displayElement:W,inputElement:_,handleDragStart:this.handleDragStart})}return m}(),c}(e.Component);k.defaultHooks=t.pureComponentHooks,k.defaultProps={minValue:-1/0,maxValue:1/0,step:1,suppressFlicker:50,dragMatrix:[1,0]}},87099:function(T,r,n){"use strict";r.__esModule=!0,r.Dropdown=void 0;var e=n(89005),a=n(95996),t=n(35840),o=n(55937),f=n(1331),b=["icon","iconRotation","iconSpin","clipSelectedText","color","dropdownStyle","over","nochevron","width","onClick","onSelected","selected","disabled","displayText"],y=["className"],S;function k(l,v){if(l==null)return{};var N={};for(var C in l)if({}.hasOwnProperty.call(l,C)){if(v.includes(C))continue;N[C]=l[C]}return N}function h(l,v){l.prototype=Object.create(v.prototype),l.prototype.constructor=l,c(l,v)}function c(l,v){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(N,C){return N.__proto__=C,N},c(l,v)}var i={placement:"left-start",modifiers:[{name:"eventListeners",enabled:!1}]},m={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function l(){return null}return l}()},d="Layout Dropdown__menu",u="Layout Dropdown__menu-scroll",s=r.Dropdown=function(l){function v(C){var p;return p=l.call(this,C)||this,p.menuContents=void 0,p.handleClick=function(){p.state.open&&p.setOpen(!1)},p.state={open:!1,selected:p.props.selected},p.menuContents=null,p}h(v,l);var N=v.prototype;return N.getDOMNode=function(){function C(){return(0,e.findDOMFromVNode)(this.$LI,!0)}return C}(),N.componentDidMount=function(){function C(){var p=this.getDOMNode()}return C}(),N.openMenu=function(){function C(){var p=v.renderedMenu;p===void 0&&(p=document.createElement("div"),p.className=d,document.body.appendChild(p),v.renderedMenu=p);var g=this.getDOMNode();v.currentOpenMenu=g,p.scrollTop=0,p.style.width=this.props.menuWidth||g.offsetWidth+"px",p.style.opacity="1",p.style.pointerEvents="auto",setTimeout(function(){var V;(V=v.renderedMenu)==null||V.focus()},400),this.renderMenuContent()}return C}(),N.closeMenu=function(){function C(){v.currentOpenMenu===this.getDOMNode()&&(v.currentOpenMenu=void 0,v.renderedMenu.style.opacity="0",v.renderedMenu.style.pointerEvents="none")}return C}(),N.componentWillUnmount=function(){function C(){this.closeMenu(),this.setOpen(!1)}return C}(),N.renderMenuContent=function(){function C(){var p=this,g=v.renderedMenu;if(g){g.offsetHeight>200?g.className=u:g.className=d;var V=this.props.options,B=V===void 0?[]:V,I=B.map(function(w){var x,A;return typeof w=="string"?(A=w,x=w):w!==null&&(A=w.displayText,x=w.value),(0,e.createVNode)(1,"div",(0,t.classes)(["Dropdown__menuentry",p.state.selected===x&&"selected"]),A,0,{onClick:function(){function E(){p.setSelected(x)}return E}()},x)}),L=I.length?I:"No Options Found";(0,e.render)((0,e.createVNode)(1,"div",null,L,0),g,function(){var w=v.singletonPopper;w===void 0?(w=(0,a.createPopper)(v.virtualElement,g,Object.assign({},i,{placement:"bottom-start"})),v.singletonPopper=w):(w.setOptions(Object.assign({},i,{placement:"bottom-start"})),w.update())},this.context)}}return C}(),N.setOpen=function(){function C(p){var g=this;this.setState(function(V){return Object.assign({},V,{open:p})}),p?setTimeout(function(){g.openMenu(),window.addEventListener("click",g.handleClick)}):(this.closeMenu(),window.removeEventListener("click",this.handleClick))}return C}(),N.setSelected=function(){function C(p){this.setState(function(g){return Object.assign({},g,{selected:p})}),this.setOpen(!1),this.props.onSelected&&this.props.onSelected(p)}return C}(),N.render=function(){function C(){var p=this,g=this.props,V=g.icon,B=g.iconRotation,I=g.iconSpin,L=g.clipSelectedText,w=L===void 0?!0:L,x=g.color,A=x===void 0?"default":x,E=g.dropdownStyle,P=g.over,j=g.nochevron,M=g.width,R=g.onClick,D=g.onSelected,W=g.selected,_=g.disabled,U=g.displayText,K=k(g,b),G=K.className,$=k(K,y),Q=P?!this.state.open:this.state.open;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({width:M,className:(0,t.classes)(["Dropdown__control","Button","Button--color--"+A,_&&"Button--disabled",G]),onClick:function(){function J(ie){_&&!p.state.open||(p.setOpen(!p.state.open),R&&R(ie))}return J}()},$,{children:[V&&(0,e.createComponentVNode)(2,f.Icon,{name:V,rotation:B,spin:I,mr:1}),(0,e.createVNode)(1,"span","Dropdown__selected-text",U||this.state.selected,0,{style:{overflow:w?"hidden":"visible"}}),j||(0,e.createVNode)(1,"span","Dropdown__arrow-button",(0,e.createComponentVNode)(2,f.Icon,{name:Q?"chevron-up":"chevron-down"}),2)]})))}return C}(),v}(e.Component);S=s,s.renderedMenu=void 0,s.singletonPopper=void 0,s.currentOpenMenu=void 0,s.virtualElement={getBoundingClientRect:function(){function l(){var v,N;return(v=(N=S.currentOpenMenu)==null?void 0:N.getBoundingClientRect())!=null?v:m}return l}()}},39473:function(T,r,n){"use strict";r.__esModule=!0,r.computeFlexProps=r.computeFlexItemProps=r.computeFlexItemClassName=r.computeFlexClassName=r.Flex=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["className","direction","wrap","align","justify","inline","style"],f=["className"],b=["className","style","grow","order","shrink","basis","align"],y=["className"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function S(u,s){if(u==null)return{};var l={};for(var v in u)if({}.hasOwnProperty.call(u,v)){if(s.includes(v))continue;l[v]=u[v]}return l}var y=r.computeFlexClassName=function(){function u(s){return(0,a.classes)(["Flex",s.inline&&"Flex--inline",(0,t.computeBoxClassName)(s)])}return u}(),h=r.computeFlexProps=function(){function u(s){var l=s.className,v=s.direction,N=s.wrap,C=s.align,p=s.justify,g=s.inline,V=s.style,I=S(s,o);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},V,{"flex-direction":v,"flex-wrap":N===!0?"wrap":N,"align-items":C,"justify-content":p})},I))}return u}(),c=r.Flex=function(){function u(s){var l=s.className,v=S(s,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([l,y(v)]),null,1,Object.assign({},h(v))))}return u}();c.defaultHooks=a.pureComponentHooks;var i=r.computeFlexItemClassName=function(){function u(s){return(0,a.classes)(["Flex__item",(0,t.computeBoxClassName)(s)])}return u}(),m=r.computeFlexItemProps=function(){function u(s){var l=s.className,v=s.style,N=s.grow,C=s.order,p=s.shrink,g=s.basis,V=g===void 0?s.width:g,I=s.align,B=S(s,b);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},v,{"flex-grow":N!==void 0&&Number(N),"flex-shrink":p!==void 0&&Number(p),"flex-basis":(0,t.unit)(V),order:C,"align-self":I})},B))}return u}(),d=function(s){var l=s.className,v=S(s,k);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([l,i(s)]),null,1,Object.assign({},m(v))))};d.defaultHooks=a.pureComponentHooks,c.Item=d},79646:function(w,r,n){"use strict";r.__esModule=!0,r.GridColumn=r.Grid=void 0;var e=n(89005),a=n(36352),t=n(35840),o=["children"],f=["size","style"];/** + */function S(u,s){if(u==null)return{};var l={};for(var v in u)if({}.hasOwnProperty.call(u,v)){if(s.includes(v))continue;l[v]=u[v]}return l}var k=r.computeFlexClassName=function(){function u(s){return(0,a.classes)(["Flex",s.inline&&"Flex--inline",(0,t.computeBoxClassName)(s)])}return u}(),h=r.computeFlexProps=function(){function u(s){var l=s.className,v=s.direction,N=s.wrap,C=s.align,p=s.justify,g=s.inline,V=s.style,B=S(s,o);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},V,{"flex-direction":v,"flex-wrap":N===!0?"wrap":N,"align-items":C,"justify-content":p})},B))}return u}(),c=r.Flex=function(){function u(s){var l=s.className,v=S(s,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([l,k(v)]),null,1,Object.assign({},h(v))))}return u}();c.defaultHooks=a.pureComponentHooks;var i=r.computeFlexItemClassName=function(){function u(s){return(0,a.classes)(["Flex__item",(0,t.computeBoxClassName)(s)])}return u}(),m=r.computeFlexItemProps=function(){function u(s){var l=s.className,v=s.style,N=s.grow,C=s.order,p=s.shrink,g=s.basis,V=g===void 0?s.width:g,B=s.align,I=S(s,b);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},v,{"flex-grow":N!==void 0&&Number(N),"flex-shrink":p!==void 0&&Number(p),"flex-basis":(0,t.unit)(V),order:C,"align-self":B})},I))}return u}(),d=function(s){var l=s.className,v=S(s,y);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([l,i(s)]),null,1,Object.assign({},m(v))))};d.defaultHooks=a.pureComponentHooks,c.Item=d},79646:function(T,r,n){"use strict";r.__esModule=!0,r.GridColumn=r.Grid=void 0;var e=n(89005),a=n(36352),t=n(35840),o=["children"],f=["size","style"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function b(y,h){if(y==null)return{};var c={};for(var i in y)if({}.hasOwnProperty.call(y,i)){if(h.includes(i))continue;c[i]=y[i]}return c}var k=r.Grid=function(){function y(h){var c=h.children,i=b(h,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table,Object.assign({},i,{children:(0,e.createComponentVNode)(2,a.Table.Row,{children:c})})))}return y}();k.defaultHooks=t.pureComponentHooks;var S=r.GridColumn=function(){function y(h){var c=h.size,i=c===void 0?1:c,m=h.style,d=b(h,f);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table.Cell,Object.assign({style:Object.assign({width:i+"%"},m)},d)))}return y}();k.defaultHooks=t.pureComponentHooks,k.Column=S},1331:function(w,r,n){"use strict";r.__esModule=!0,r.IconStack=r.Icon=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["name","size","spin","className","style","rotation","inverse"],f=["className","style","children"];/** + */function b(k,h){if(k==null)return{};var c={};for(var i in k)if({}.hasOwnProperty.call(k,i)){if(h.includes(i))continue;c[i]=k[i]}return c}var y=r.Grid=function(){function k(h){var c=h.children,i=b(h,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table,Object.assign({},i,{children:(0,e.createComponentVNode)(2,a.Table.Row,{children:c})})))}return k}();y.defaultHooks=t.pureComponentHooks;var S=r.GridColumn=function(){function k(h){var c=h.size,i=c===void 0?1:c,m=h.style,d=b(h,f);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table.Cell,Object.assign({style:Object.assign({width:i+"%"},m)},d)))}return k}();y.defaultHooks=t.pureComponentHooks,y.Column=S},1331:function(T,r,n){"use strict";r.__esModule=!0,r.IconStack=r.Icon=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["name","size","spin","className","style","rotation","inverse"],f=["className","style","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function b(h,c){if(h==null)return{};var i={};for(var m in h)if({}.hasOwnProperty.call(h,m)){if(c.includes(m))continue;i[m]=h[m]}return i}var k=/-o$/,S=r.Icon=function(){function h(c){var i=c.name,m=c.size,d=c.spin,u=c.className,s=c.style,l=s===void 0?{}:s,v=c.rotation,N=c.inverse,C=b(c,o);m&&(l["font-size"]=m*100+"%"),typeof v=="number"&&(l.transform="rotate("+v+"deg)");var p=k.test(i),g=i.replace(k,"");return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"i",className:(0,a.classes)(["Icon",u,p?"far":"fas","fa-"+g,d&&"fa-spin"]),style:l},C)))}return h}();S.defaultHooks=a.pureComponentHooks;var y=r.IconStack=function(){function h(c){var i=c.className,m=c.style,d=m===void 0?{}:m,u=c.children,s=b(c,f);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"span",class:(0,a.classes)(["IconStack",i]),style:d},s,{children:u})))}return h}();S.Stack=y},79825:function(w,r,n){"use strict";r.__esModule=!0,r.ImageButton=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(1331),f=n(96690),b=n(62147),k=["asset","base64","buttons","buttonsAlt","children","className","color","disabled","fluid","imageSize","imageSrc","onClick","onRightClick","selected","title","tooltip","tooltipPosition"];/** + */function b(h,c){if(h==null)return{};var i={};for(var m in h)if({}.hasOwnProperty.call(h,m)){if(c.includes(m))continue;i[m]=h[m]}return i}var y=/-o$/,S=r.Icon=function(){function h(c){var i=c.name,m=c.size,d=c.spin,u=c.className,s=c.style,l=s===void 0?{}:s,v=c.rotation,N=c.inverse,C=b(c,o);m&&(l["font-size"]=m*100+"%"),typeof v=="number"&&(l.transform="rotate("+v+"deg)");var p=y.test(i),g=i.replace(y,"");return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"i",className:(0,a.classes)(["Icon",u,p?"far":"fas","fa-"+g,d&&"fa-spin"]),style:l},C)))}return h}();S.defaultHooks=a.pureComponentHooks;var k=r.IconStack=function(){function h(c){var i=c.className,m=c.style,d=m===void 0?{}:m,u=c.children,s=b(c,f);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"span",class:(0,a.classes)(["IconStack",i]),style:d},s,{children:u})))}return h}();S.Stack=k},79825:function(T,r,n){"use strict";r.__esModule=!0,r.ImageButton=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(1331),f=n(96690),b=n(62147),y=["asset","base64","buttons","buttonsAlt","children","className","color","disabled","fluid","imageSize","imageSrc","onClick","onRightClick","selected","title","tooltip","tooltipPosition"];/** * @file * @copyright 2024 Aylong (https://github.com/AyIong) * @license MIT - */function S(h,c){if(h==null)return{};var i={};for(var m in h)if({}.hasOwnProperty.call(h,m)){if(c.includes(m))continue;i[m]=h[m]}return i}var y=r.ImageButton=function(){function h(c){var i=c.asset,m=c.base64,d=c.buttons,u=c.buttonsAlt,s=c.children,l=c.className,v=c.color,N=c.disabled,C=c.fluid,p=c.imageSize,g=p===void 0?64:p,V=c.imageSrc,I=c.onClick,B=c.onRightClick,L=c.selected,T=c.title,A=c.tooltip,x=c.tooltipPosition,E=S(c,k),P=function(){function M(R,D){return(0,e.createComponentVNode)(2,f.Stack,{height:g+"px",width:g+"px",children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,textAlign:"center",align:"center",children:(0,e.createComponentVNode)(2,o.Icon,{spin:D,name:R,color:"gray",style:{"font-size":"calc("+g+"px * 0.75)"}})})})}return M}(),j=(0,e.createVNode)(1,"div",(0,a.classes)(["container",d&&"hasButtons",!I&&!B&&"noAction",L&&"selected",N&&"disabled",v&&typeof v=="string"?"color__"+v:"color__default"]),[(0,e.createVNode)(1,"div",(0,a.classes)(["image"]),(m||V)&&!i?(0,e.createVNode)(1,"img",null,null,1,{src:m?"data:image/jpeg;base64,"+m:V,height:g+"px",width:g+"px"}):i?(0,e.createVNode)(1,"div",(0,a.classes)(i)):P("question",!1),0),C?(0,e.createVNode)(1,"div",(0,a.classes)(["info"]),[T&&(0,e.createVNode)(1,"span",(0,a.classes)(["title",s&&"divider"]),T,0),s&&(0,e.createVNode)(1,"span",(0,a.classes)(["contentFluid"]),s,0)],0):s&&(0,e.createVNode)(1,"span",(0,a.classes)(["content",L&&"contentSelected",N&&"contentDisabled",v&&typeof v=="string"?"contentColor__"+v:"contentColor__default"]),s,0)],0,{tabIndex:N?void 0:0,onClick:function(){function M(R){!N&&I&&I(R)}return M}(),onContextMenu:function(){function M(R){R.preventDefault(),!N&&B&&B(R)}return M}(),style:{width:C?"auto":"calc("+g+"px + 0.5em + 2px)"}});return A&&(j=(0,e.createComponentVNode)(2,b.Tooltip,{content:A,position:x,children:j})),(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["ImageButton",C&&"fluid",l]),[j,d&&(0,e.createVNode)(1,"div",(0,a.classes)(["buttonsContainer",u&&"buttonsAltContainer",!s&&"buttonsEmpty",C&&v&&typeof v=="string"?"buttonsContainerColor__"+v:C&&"buttonsContainerColor__default"]),d,0,{style:{width:u?"calc("+g+"px + "+(C?0:.5)+"em)":"auto","max-width":!C&&!u&&"calc("+g+"px + 0.5em)"}})],0,Object.assign({},(0,t.computeBoxProps)(E))))}return h}()},79652:function(w,r,n){"use strict";r.__esModule=!0,r.toInputValue=r.Input=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(92986),f=["selfClear","onInput","onChange","onEnter","value","maxLength","placeholder","autofocus","disabled","multiline","cols","rows"],b=["className","fluid","monospace"];function k(i,m){if(i==null)return{};var d={};for(var u in i)if({}.hasOwnProperty.call(i,u)){if(m.includes(u))continue;d[u]=i[u]}return d}function S(i,m){i.prototype=Object.create(m.prototype),i.prototype.constructor=i,y(i,m)}function y(i,m){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,u){return d.__proto__=u,d},y(i,m)}/** + */function S(h,c){if(h==null)return{};var i={};for(var m in h)if({}.hasOwnProperty.call(h,m)){if(c.includes(m))continue;i[m]=h[m]}return i}var k=r.ImageButton=function(){function h(c){var i=c.asset,m=c.base64,d=c.buttons,u=c.buttonsAlt,s=c.children,l=c.className,v=c.color,N=c.disabled,C=c.fluid,p=c.imageSize,g=p===void 0?64:p,V=c.imageSrc,B=c.onClick,I=c.onRightClick,L=c.selected,w=c.title,x=c.tooltip,A=c.tooltipPosition,E=S(c,y),P=function(){function M(R,D){return(0,e.createComponentVNode)(2,f.Stack,{height:g+"px",width:g+"px",children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,textAlign:"center",align:"center",children:(0,e.createComponentVNode)(2,o.Icon,{spin:D,name:R,color:"gray",style:{"font-size":"calc("+g+"px * 0.75)"}})})})}return M}(),j=(0,e.createVNode)(1,"div",(0,a.classes)(["container",d&&"hasButtons",!B&&!I&&"noAction",L&&"selected",N&&"disabled",v&&typeof v=="string"?"color__"+v:"color__default"]),[(0,e.createVNode)(1,"div",(0,a.classes)(["image"]),(m||V)&&!i?(0,e.createVNode)(1,"img",null,null,1,{src:m?"data:image/jpeg;base64,"+m:V,height:g+"px",width:g+"px"}):i?(0,e.createVNode)(1,"div",(0,a.classes)(i)):P("question",!1),0),C?(0,e.createVNode)(1,"div",(0,a.classes)(["info"]),[w&&(0,e.createVNode)(1,"span",(0,a.classes)(["title",s&&"divider"]),w,0),s&&(0,e.createVNode)(1,"span",(0,a.classes)(["contentFluid"]),s,0)],0):s&&(0,e.createVNode)(1,"span",(0,a.classes)(["content",L&&"contentSelected",N&&"contentDisabled",v&&typeof v=="string"?"contentColor__"+v:"contentColor__default"]),s,0)],0,{tabIndex:N?void 0:0,onClick:function(){function M(R){!N&&B&&B(R)}return M}(),onContextMenu:function(){function M(R){R.preventDefault(),!N&&I&&I(R)}return M}(),style:{width:C?"auto":"calc("+g+"px + 0.5em + 2px)"}});return x&&(j=(0,e.createComponentVNode)(2,b.Tooltip,{content:x,position:A,children:j})),(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["ImageButton",C&&"fluid",l]),[j,d&&(0,e.createVNode)(1,"div",(0,a.classes)(["buttonsContainer",u&&"buttonsAltContainer",!s&&"buttonsEmpty",C&&v&&typeof v=="string"?"buttonsContainerColor__"+v:C&&"buttonsContainerColor__default"]),d,0,{style:{width:u?"calc("+g+"px + "+(C?0:.5)+"em)":"auto","max-width":!C&&!u&&"calc("+g+"px + 0.5em)"}})],0,Object.assign({},(0,t.computeBoxProps)(E))))}return h}()},79652:function(T,r,n){"use strict";r.__esModule=!0,r.toInputValue=r.Input=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(92986),f=["selfClear","onInput","onChange","onEnter","value","maxLength","placeholder","autofocus","disabled","multiline","cols","rows"],b=["className","fluid","monospace"];function y(i,m){if(i==null)return{};var d={};for(var u in i)if({}.hasOwnProperty.call(i,u)){if(m.includes(u))continue;d[u]=i[u]}return d}function S(i,m){i.prototype=Object.create(m.prototype),i.prototype.constructor=i,k(i,m)}function k(i,m){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,u){return d.__proto__=u,d},k(i,m)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var h=r.toInputValue=function(){function i(m){return typeof m!="number"&&typeof m!="string"?"":String(m)}return i}(),c=r.Input=function(i){function m(){var u;return u=i.call(this)||this,u.inputRef=(0,e.createRef)(),u.state={editing:!1},u.handleInput=function(s){var l=u.state.editing,v=u.props.onInput;l||u.setEditing(!0),v&&v(s,s.target.value)},u.handleFocus=function(s){var l=u.state.editing;l||u.setEditing(!0)},u.handleBlur=function(s){var l=u.state.editing,v=u.props.onChange;l&&(u.setEditing(!1),v&&v(s,s.target.value))},u.handleKeyDown=function(s){var l=u.props,v=l.onInput,N=l.onChange,C=l.onEnter;if(s.keyCode===o.KEY_ENTER){u.setEditing(!1),N&&N(s,s.target.value),v&&v(s,s.target.value),C&&C(s,s.target.value),u.props.selfClear?s.target.value="":s.target.blur();return}if(s.keyCode===o.KEY_ESCAPE){u.setEditing(!1),s.target.value=h(u.props.value),s.target.blur();return}},u}S(m,i);var d=m.prototype;return d.componentDidMount=function(){function u(){var s=this,l=this.props.value,v=this.inputRef.current;v&&(v.value=h(l),v.selectionStart=0,v.selectionEnd=v.value.length),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){v.focus(),s.props.autoSelect&&v.select()},1)}return u}(),d.componentDidUpdate=function(){function u(s,l){var v=this.state.editing,N=s.value,C=this.props.value,p=this.inputRef.current;p&&!v&&N!==C&&(p.value=h(C))}return u}(),d.setEditing=function(){function u(s){this.setState({editing:s})}return u}(),d.render=function(){function u(){var s=this.props,l=s.selfClear,v=s.onInput,N=s.onChange,C=s.onEnter,p=s.value,g=s.maxLength,V=s.placeholder,I=s.autofocus,B=s.disabled,L=s.multiline,T=s.cols,A=T===void 0?32:T,x=s.rows,E=x===void 0?4:x,P=k(s,f),j=P.className,M=P.fluid,R=P.monospace,D=k(P,b);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Input",M&&"Input--fluid",R&&"Input--monospace",B&&"Input--disabled",j])},D,{children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),L?(0,e.createVNode)(128,"textarea","Input__textarea",null,1,{placeholder:V,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:g,cols:A,rows:E,disabled:B},null,this.inputRef):(0,e.createVNode)(64,"input","Input__input",null,1,{placeholder:V,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,maxLength:g,disabled:B},null,this.inputRef)]})))}return u}(),m}(e.Component)},76334:function(w,r,n){"use strict";r.__esModule=!0,r.Knob=void 0;var e=n(89005),a=n(44879),t=n(35840),o=n(55937),f=n(20342),b=n(59263),k=["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children","popUpPosition"];/** +*/var h=r.toInputValue=function(){function i(m){return typeof m!="number"&&typeof m!="string"?"":String(m)}return i}(),c=r.Input=function(i){function m(){var u;return u=i.call(this)||this,u.inputRef=(0,e.createRef)(),u.state={editing:!1},u.handleInput=function(s){var l=u.state.editing,v=u.props.onInput;l||u.setEditing(!0),v&&v(s,s.target.value)},u.handleFocus=function(s){var l=u.state.editing;l||u.setEditing(!0)},u.handleBlur=function(s){var l=u.state.editing,v=u.props.onChange;l&&(u.setEditing(!1),v&&v(s,s.target.value))},u.handleKeyDown=function(s){var l=u.props,v=l.onInput,N=l.onChange,C=l.onEnter;if(s.keyCode===o.KEY_ENTER){u.setEditing(!1),N&&N(s,s.target.value),v&&v(s,s.target.value),C&&C(s,s.target.value),u.props.selfClear?s.target.value="":s.target.blur();return}if(s.keyCode===o.KEY_ESCAPE){u.setEditing(!1),s.target.value=h(u.props.value),s.target.blur();return}},u}S(m,i);var d=m.prototype;return d.componentDidMount=function(){function u(){var s=this,l=this.props.value,v=this.inputRef.current;v&&(v.value=h(l),v.selectionStart=0,v.selectionEnd=v.value.length),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){v.focus(),s.props.autoSelect&&v.select()},1)}return u}(),d.componentDidUpdate=function(){function u(s,l){var v=this.state.editing,N=s.value,C=this.props.value,p=this.inputRef.current;p&&!v&&N!==C&&(p.value=h(C))}return u}(),d.setEditing=function(){function u(s){this.setState({editing:s})}return u}(),d.render=function(){function u(){var s=this.props,l=s.selfClear,v=s.onInput,N=s.onChange,C=s.onEnter,p=s.value,g=s.maxLength,V=s.placeholder,B=s.autofocus,I=s.disabled,L=s.multiline,w=s.cols,x=w===void 0?32:w,A=s.rows,E=A===void 0?4:A,P=y(s,f),j=P.className,M=P.fluid,R=P.monospace,D=y(P,b);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Input",M&&"Input--fluid",R&&"Input--monospace",I&&"Input--disabled",j])},D,{children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),L?(0,e.createVNode)(128,"textarea","Input__textarea",null,1,{placeholder:V,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:g,cols:x,rows:E,disabled:I},null,this.inputRef):(0,e.createVNode)(64,"input","Input__input",null,1,{placeholder:V,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,maxLength:g,disabled:I},null,this.inputRef)]})))}return u}(),m}(e.Component)},76334:function(T,r,n){"use strict";r.__esModule=!0,r.Knob=void 0;var e=n(89005),a=n(44879),t=n(35840),o=n(55937),f=n(20342),b=n(59263),y=["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children","popUpPosition"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function S(h,c){if(h==null)return{};var i={};for(var m in h)if({}.hasOwnProperty.call(h,m)){if(c.includes(m))continue;i[m]=h[m]}return i}var y=r.Knob=function(){function h(c){var i=c.animated,m=c.format,d=c.maxValue,u=c.minValue,s=c.onChange,l=c.onDrag,v=c.step,N=c.stepPixelSize,C=c.suppressFlicker,p=c.unit,g=c.value,V=c.className,I=c.style,B=c.fillValue,L=c.color,T=c.ranges,A=T===void 0?{}:T,x=c.size,E=x===void 0?1:x,P=c.bipolar,j=c.children,M=c.popUpPosition,R=S(c,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:i,format:m,maxValue:d,minValue:u,onChange:s,onDrag:l,step:v,stepPixelSize:N,suppressFlicker:C,unit:p,value:g},{children:function(){function D(W){var _=W.dragging,U=W.editing,K=W.value,G=W.displayValue,$=W.displayElement,Q=W.inputElement,J=W.handleDragStart,ie=(0,a.scale)(B!=null?B:G,u,d),ne=(0,a.scale)(G,u,d),se=L||(0,a.keyOfMatchingRange)(B!=null?B:K,A)||"default",Ce=(ne-.5)*270;return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Knob","Knob--color--"+se,P&&"Knob--bipolar",V,(0,o.computeBoxClassName)(R)]),[(0,e.createVNode)(1,"div","Knob__circle",(0,e.createVNode)(1,"div","Knob__cursorBox",(0,e.createVNode)(1,"div","Knob__cursor"),2,{style:{transform:"rotate("+Ce+"deg)"}}),2),_&&(0,e.createVNode)(1,"div",(0,t.classes)(["Knob__popupValue",M&&"Knob__popupValue--"+M]),$,0),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringTrackPivot",(0,e.createVNode)(32,"circle","Knob__ringTrack",null,1,{cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringFillPivot",(0,e.createVNode)(32,"circle","Knob__ringFill",null,1,{style:{"stroke-dashoffset":((P?2.75:2)-ie*1.5)*Math.PI*50},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),Q],0,Object.assign({},(0,o.computeBoxProps)(Object.assign({style:Object.assign({"font-size":E+"em"},I)},R)),{onMouseDown:J})))}return D}()})))}return h}()},78621:function(w,r,n){"use strict";r.__esModule=!0,r.LabeledControls=void 0;var e=n(89005),a=n(39473),t=["children"],o=["label","children"];/** + */function S(h,c){if(h==null)return{};var i={};for(var m in h)if({}.hasOwnProperty.call(h,m)){if(c.includes(m))continue;i[m]=h[m]}return i}var k=r.Knob=function(){function h(c){var i=c.animated,m=c.format,d=c.maxValue,u=c.minValue,s=c.onChange,l=c.onDrag,v=c.step,N=c.stepPixelSize,C=c.suppressFlicker,p=c.unit,g=c.value,V=c.className,B=c.style,I=c.fillValue,L=c.color,w=c.ranges,x=w===void 0?{}:w,A=c.size,E=A===void 0?1:A,P=c.bipolar,j=c.children,M=c.popUpPosition,R=S(c,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:i,format:m,maxValue:d,minValue:u,onChange:s,onDrag:l,step:v,stepPixelSize:N,suppressFlicker:C,unit:p,value:g},{children:function(){function D(W){var _=W.dragging,U=W.editing,K=W.value,G=W.displayValue,$=W.displayElement,Q=W.inputElement,J=W.handleDragStart,ie=(0,a.scale)(I!=null?I:G,u,d),ne=(0,a.scale)(G,u,d),se=L||(0,a.keyOfMatchingRange)(I!=null?I:K,x)||"default",Ce=(ne-.5)*270;return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Knob","Knob--color--"+se,P&&"Knob--bipolar",V,(0,o.computeBoxClassName)(R)]),[(0,e.createVNode)(1,"div","Knob__circle",(0,e.createVNode)(1,"div","Knob__cursorBox",(0,e.createVNode)(1,"div","Knob__cursor"),2,{style:{transform:"rotate("+Ce+"deg)"}}),2),_&&(0,e.createVNode)(1,"div",(0,t.classes)(["Knob__popupValue",M&&"Knob__popupValue--"+M]),$,0),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringTrackPivot",(0,e.createVNode)(32,"circle","Knob__ringTrack",null,1,{cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringFillPivot",(0,e.createVNode)(32,"circle","Knob__ringFill",null,1,{style:{"stroke-dashoffset":((P?2.75:2)-ie*1.5)*Math.PI*50},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),Q],0,Object.assign({},(0,o.computeBoxProps)(Object.assign({style:Object.assign({"font-size":E+"em"},B)},R)),{onMouseDown:J})))}return D}()})))}return h}()},78621:function(T,r,n){"use strict";r.__esModule=!0,r.LabeledControls=void 0;var e=n(89005),a=n(39473),t=["children"],o=["label","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function f(S,y){if(S==null)return{};var h={};for(var c in S)if({}.hasOwnProperty.call(S,c)){if(y.includes(c))continue;h[c]=S[c]}return h}var b=r.LabeledControls=function(){function S(y){var h=y.children,c=f(y,t);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({mx:-.5,align:"stretch",justify:"space-between"},c,{children:h})))}return S}(),k=function(y){var h=y.label,c=y.children,i=f(y,o);return(0,e.createComponentVNode)(2,a.Flex.Item,{mx:1,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({minWidth:"52px",height:"100%",direction:"column",align:"center",textAlign:"center",justify:"space-between"},i,{children:[(0,e.createComponentVNode)(2,a.Flex.Item),(0,e.createComponentVNode)(2,a.Flex.Item,{children:c}),(0,e.createComponentVNode)(2,a.Flex.Item,{color:"label",children:h})]})))})};b.Item=k},29319:function(w,r,n){"use strict";r.__esModule=!0,r.LabeledList=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(13605),f=n(62147);/** + */function f(S,k){if(S==null)return{};var h={};for(var c in S)if({}.hasOwnProperty.call(S,c)){if(k.includes(c))continue;h[c]=S[c]}return h}var b=r.LabeledControls=function(){function S(k){var h=k.children,c=f(k,t);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({mx:-.5,align:"stretch",justify:"space-between"},c,{children:h})))}return S}(),y=function(k){var h=k.label,c=k.children,i=f(k,o);return(0,e.createComponentVNode)(2,a.Flex.Item,{mx:1,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({minWidth:"52px",height:"100%",direction:"column",align:"center",textAlign:"center",justify:"space-between"},i,{children:[(0,e.createComponentVNode)(2,a.Flex.Item),(0,e.createComponentVNode)(2,a.Flex.Item,{children:c}),(0,e.createComponentVNode)(2,a.Flex.Item,{color:"label",children:h})]})))})};b.Item=y},29319:function(T,r,n){"use strict";r.__esModule=!0,r.LabeledList=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(13605),f=n(62147);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var b=r.LabeledList=function(){function y(h){var c=h.children;return(0,e.createVNode)(1,"table","LabeledList",c,0)}return y}();b.defaultHooks=a.pureComponentHooks;var k=function(h){var c=h.className,i=h.label,m=h.labelColor,d=m===void 0?"label":m,u=h.color,s=h.textAlign,l=h.buttons,v=h.tooltip,N=h.content,C=h.children,p=h.preserveWhitespace,g=h.labelStyle,V=(0,e.createVNode)(1,"tr",(0,a.classes)(["LabeledList__row",c]),[(0,e.createComponentVNode)(2,t.Box,{as:"td",color:d,className:(0,a.classes)(["LabeledList__cell","LabeledList__label"]),style:g,children:i?i+":":null}),(0,e.createComponentVNode)(2,t.Box,{as:"td",color:u,textAlign:s,className:(0,a.classes)(["LabeledList__cell","LabeledList__content"]),colSpan:l?void 0:2,preserveWhitespace:p,children:[N,C]}),l&&(0,e.createVNode)(1,"td","LabeledList__cell LabeledList__buttons",l,0)],0);return v&&(V=(0,e.createComponentVNode)(2,f.Tooltip,{content:v,children:V})),V};k.defaultHooks=a.pureComponentHooks;var S=function(h){var c=h.size?(0,t.unit)(Math.max(0,h.size-1)):0;return(0,e.createVNode)(1,"tr","LabeledList__row",(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,o.Divider),2,{colSpan:3,style:{"padding-top":c,"padding-bottom":c}}),2)};S.defaultHooks=a.pureComponentHooks,b.Item=k,b.Divider=S},36077:function(w,r,n){"use strict";r.__esModule=!0,r.Modal=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(61940),f=["className","children","onEnter"];/** + */var b=r.LabeledList=function(){function k(h){var c=h.children;return(0,e.createVNode)(1,"table","LabeledList",c,0)}return k}();b.defaultHooks=a.pureComponentHooks;var y=function(h){var c=h.className,i=h.label,m=h.labelColor,d=m===void 0?"label":m,u=h.color,s=h.textAlign,l=h.buttons,v=h.tooltip,N=h.content,C=h.children,p=h.preserveWhitespace,g=h.labelStyle,V=(0,e.createVNode)(1,"tr",(0,a.classes)(["LabeledList__row",c]),[(0,e.createComponentVNode)(2,t.Box,{as:"td",color:d,className:(0,a.classes)(["LabeledList__cell","LabeledList__label"]),style:g,children:i?i+":":null}),(0,e.createComponentVNode)(2,t.Box,{as:"td",color:u,textAlign:s,className:(0,a.classes)(["LabeledList__cell","LabeledList__content"]),colSpan:l?void 0:2,preserveWhitespace:p,children:[N,C]}),l&&(0,e.createVNode)(1,"td","LabeledList__cell LabeledList__buttons",l,0)],0);return v&&(V=(0,e.createComponentVNode)(2,f.Tooltip,{content:v,children:V})),V};y.defaultHooks=a.pureComponentHooks;var S=function(h){var c=h.size?(0,t.unit)(Math.max(0,h.size-1)):0;return(0,e.createVNode)(1,"tr","LabeledList__row",(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,o.Divider),2,{colSpan:3,style:{"padding-top":c,"padding-bottom":c}}),2)};S.defaultHooks=a.pureComponentHooks,b.Item=y,b.Divider=S},36077:function(T,r,n){"use strict";r.__esModule=!0,r.Modal=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(61940),f=["className","children","onEnter"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function b(S,y){if(S==null)return{};var h={};for(var c in S)if({}.hasOwnProperty.call(S,c)){if(y.includes(c))continue;h[c]=S[c]}return h}var k=r.Modal=function(){function S(y){var h=y.className,c=y.children,i=y.onEnter,m=b(y,f),d;return i&&(d=function(){function u(s){s.keyCode===13&&i(s)}return u}()),(0,e.createComponentVNode)(2,o.Dimmer,{onKeyDown:d,children:(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Modal",h,(0,t.computeBoxClassName)(m)]),c,0,Object.assign({},(0,t.computeBoxProps)(m))))})}return S}()},73280:function(w,r,n){"use strict";r.__esModule=!0,r.NanoMap=void 0;var e=n(89005),a=n(36036),t=n(72253),o=n(29319),f=n(79911),b=n(79140),k=["x","y","icon","tooltip","color","children"],S=["icon","color"];function y(N,C){if(N==null)return{};var p={};for(var g in N)if({}.hasOwnProperty.call(N,g)){if(C.includes(g))continue;p[g]=N[g]}return p}function h(N,C){N.prototype=Object.create(C.prototype),N.prototype.constructor=N,c(N,C)}function c(N,C){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,g){return p.__proto__=g,p},c(N,C)}var i=510,m=2,d=function(C){return C.stopPropagation&&C.stopPropagation(),C.preventDefault&&C.preventDefault(),C.cancelBubble=!0,C.returnValue=!1,!1},u=r.NanoMap=function(N){function C(g){var V,I,B,L;L=N.call(this,g)||this;var T=window.innerWidth/2-256,A=window.innerHeight/2-256;return L.state={offsetX:(V=g.offsetX)!=null?V:0,offsetY:(I=g.offsetY)!=null?I:0,dragging:!1,originX:null,originY:null,zoom:(B=g.zoom)!=null?B:1},L.handleDragStart=function(x){L.ref=x.target,L.setState({dragging:!1,originX:x.screenX,originY:x.screenY}),document.addEventListener("mousemove",L.handleDragMove),document.addEventListener("mouseup",L.handleDragEnd),d(x)},L.handleDragMove=function(x){L.setState(function(E){var P=Object.assign({},E),j=x.screenX-P.originX,M=x.screenY-P.originY;return E.dragging?(P.offsetX+=j/P.zoom,P.offsetY+=M/P.zoom,P.originX=x.screenX,P.originY=x.screenY):P.dragging=!0,P}),d(x)},L.handleDragEnd=function(x){L.setState({dragging:!1,originX:null,originY:null}),document.removeEventListener("mousemove",L.handleDragMove),document.removeEventListener("mouseup",L.handleDragEnd),g.onOffsetChange==null||g.onOffsetChange(x,L.state),d(x)},L.handleZoom=function(x,E){L.setState(function(P){var j=Math.min(Math.max(E,1),8);return P.zoom=j,g.onZoom&&g.onZoom(P.zoom),P})},L.handleReset=function(x){L.setState(function(E){E.offsetX=0,E.offsetY=0,E.zoom=1,L.handleZoom(x,1),g.onOffsetChange==null||g.onOffsetChange(x,E)})},L}h(C,N);var p=C.prototype;return p.getChildContext=function(){function g(){return{map:{zoom:this.state.zoom}}}return g}(),p.render=function(){function g(){var V=(0,t.useBackend)(this.context),I=V.config,B=this.state,L=B.dragging,T=B.offsetX,A=B.offsetY,x=B.zoom,E=x===void 0?1:x,P=this.props.children,j=I.map+"_nanomap_z1.png",M=i*E+"px",R={width:M,height:M,"margin-top":A*E+"px","margin-left":T*E+"px",overflow:"hidden",position:"relative",top:"50%",left:"50%",transform:"translate(-50%, -50%)","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:L?"move":"auto"},D={width:"100%",height:"100%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"};return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__container",children:[(0,e.createComponentVNode)(2,a.Box,{style:R,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,b.resolveAsset)(j),style:D}),(0,e.createComponentVNode)(2,a.Box,{children:P})]}),(0,e.createComponentVNode)(2,v,{zoom:E,onZoom:this.handleZoom,onReset:this.handleReset})]})}return g}(),C}(e.Component),s=function(C,p){var g=p.map.zoom,V=C.x,I=C.y,B=C.icon,L=C.tooltip,T=C.color,A=C.children,x=y(C,k),E=m*g,P=(V-1)*E,j=(I-1)*E;return(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,a.Tooltip,{content:L,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:j+"px",left:P+"px",width:E+"px",height:E+"px"},x,{children:A})))}),2)};u.Marker=s;var l=function(C,p){var g=p.map.zoom,V=C.icon,I=C.color,B=y(C,S),L=m*g+4/Math.ceil(g/4);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({},B,{children:(0,e.createComponentVNode)(2,a.Icon,{name:V,color:I,fontSize:L+"px",style:{position:"relative",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})})))};u.MarkerIcon=l;var v=function(C,p){return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__zoomer",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Zoom",labelStyle:{"vertical-align":"middle"},children:(0,e.createComponentVNode)(2,a.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,f.Slider,{minValue:1,maxValue:8,stepPixelSize:10,format:function(){function g(V){return V+"x"}return g}(),value:C.zoom,onDrag:function(){function g(V,I){return C.onZoom(V,I)}return g}()}),(0,e.createComponentVNode)(2,a.Button,{ml:"0.5em",float:"right",icon:"sync",tooltip:"Reset View",onClick:function(){function g(V){return C.onReset==null?void 0:C.onReset(V)}return g}()})]})})})})};u.Zoomer=v},74733:function(w,r,n){"use strict";r.__esModule=!0,r.NoticeBox=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["className","color","info","warning","success","danger"];/** + */function b(S,k){if(S==null)return{};var h={};for(var c in S)if({}.hasOwnProperty.call(S,c)){if(k.includes(c))continue;h[c]=S[c]}return h}var y=r.Modal=function(){function S(k){var h=k.className,c=k.children,i=k.onEnter,m=b(k,f),d;return i&&(d=function(){function u(s){s.keyCode===13&&i(s)}return u}()),(0,e.createComponentVNode)(2,o.Dimmer,{onKeyDown:d,children:(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Modal",h,(0,t.computeBoxClassName)(m)]),c,0,Object.assign({},(0,t.computeBoxProps)(m))))})}return S}()},73280:function(T,r,n){"use strict";r.__esModule=!0,r.NanoMap=void 0;var e=n(89005),a=n(36036),t=n(72253),o=n(29319),f=n(79911),b=n(79140),y=["x","y","icon","tooltip","color","children"],S=["icon","color"];function k(N,C){if(N==null)return{};var p={};for(var g in N)if({}.hasOwnProperty.call(N,g)){if(C.includes(g))continue;p[g]=N[g]}return p}function h(N,C){N.prototype=Object.create(C.prototype),N.prototype.constructor=N,c(N,C)}function c(N,C){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,g){return p.__proto__=g,p},c(N,C)}var i=510,m=2,d=function(C){return C.stopPropagation&&C.stopPropagation(),C.preventDefault&&C.preventDefault(),C.cancelBubble=!0,C.returnValue=!1,!1},u=r.NanoMap=function(N){function C(g){var V,B,I,L;L=N.call(this,g)||this;var w=window.innerWidth/2-256,x=window.innerHeight/2-256;return L.state={offsetX:(V=g.offsetX)!=null?V:0,offsetY:(B=g.offsetY)!=null?B:0,dragging:!1,originX:null,originY:null,zoom:(I=g.zoom)!=null?I:1},L.handleDragStart=function(A){L.ref=A.target,L.setState({dragging:!1,originX:A.screenX,originY:A.screenY}),document.addEventListener("mousemove",L.handleDragMove),document.addEventListener("mouseup",L.handleDragEnd),d(A)},L.handleDragMove=function(A){L.setState(function(E){var P=Object.assign({},E),j=A.screenX-P.originX,M=A.screenY-P.originY;return E.dragging?(P.offsetX+=j/P.zoom,P.offsetY+=M/P.zoom,P.originX=A.screenX,P.originY=A.screenY):P.dragging=!0,P}),d(A)},L.handleDragEnd=function(A){L.setState({dragging:!1,originX:null,originY:null}),document.removeEventListener("mousemove",L.handleDragMove),document.removeEventListener("mouseup",L.handleDragEnd),g.onOffsetChange==null||g.onOffsetChange(A,L.state),d(A)},L.handleZoom=function(A,E){L.setState(function(P){var j=Math.min(Math.max(E,1),8);return P.zoom=j,g.onZoom&&g.onZoom(P.zoom),P})},L.handleReset=function(A){L.setState(function(E){E.offsetX=0,E.offsetY=0,E.zoom=1,L.handleZoom(A,1),g.onOffsetChange==null||g.onOffsetChange(A,E)})},L}h(C,N);var p=C.prototype;return p.getChildContext=function(){function g(){return{map:{zoom:this.state.zoom}}}return g}(),p.render=function(){function g(){var V=(0,t.useBackend)(this.context),B=V.config,I=this.state,L=I.dragging,w=I.offsetX,x=I.offsetY,A=I.zoom,E=A===void 0?1:A,P=this.props.children,j=B.map+"_nanomap_z1.png",M=i*E+"px",R={width:M,height:M,"margin-top":x*E+"px","margin-left":w*E+"px",overflow:"hidden",position:"relative",top:"50%",left:"50%",transform:"translate(-50%, -50%)","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:L?"move":"auto"},D={width:"100%",height:"100%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"};return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__container",children:[(0,e.createComponentVNode)(2,a.Box,{style:R,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,b.resolveAsset)(j),style:D}),(0,e.createComponentVNode)(2,a.Box,{children:P})]}),(0,e.createComponentVNode)(2,v,{zoom:E,onZoom:this.handleZoom,onReset:this.handleReset})]})}return g}(),C}(e.Component),s=function(C,p){var g=p.map.zoom,V=C.x,B=C.y,I=C.icon,L=C.tooltip,w=C.color,x=C.children,A=k(C,y),E=m*g,P=(V-1)*E,j=(B-1)*E;return(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,a.Tooltip,{content:L,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:j+"px",left:P+"px",width:E+"px",height:E+"px"},A,{children:x})))}),2)};u.Marker=s;var l=function(C,p){var g=p.map.zoom,V=C.icon,B=C.color,I=k(C,S),L=m*g+4/Math.ceil(g/4);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({},I,{children:(0,e.createComponentVNode)(2,a.Icon,{name:V,color:B,fontSize:L+"px",style:{position:"relative",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})})))};u.MarkerIcon=l;var v=function(C,p){return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__zoomer",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Zoom",labelStyle:{"vertical-align":"middle"},children:(0,e.createComponentVNode)(2,a.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,f.Slider,{minValue:1,maxValue:8,stepPixelSize:10,format:function(){function g(V){return V+"x"}return g}(),value:C.zoom,onDrag:function(){function g(V,B){return C.onZoom(V,B)}return g}()}),(0,e.createComponentVNode)(2,a.Button,{ml:"0.5em",float:"right",icon:"sync",tooltip:"Reset View",onClick:function(){function g(V){return C.onReset==null?void 0:C.onReset(V)}return g}()})]})})})})};u.Zoomer=v},74733:function(T,r,n){"use strict";r.__esModule=!0,r.NoticeBox=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["className","color","info","warning","success","danger"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function f(k,S){if(k==null)return{};var y={};for(var h in k)if({}.hasOwnProperty.call(k,h)){if(S.includes(h))continue;y[h]=k[h]}return y}var b=r.NoticeBox=function(){function k(S){var y=S.className,h=S.color,c=S.info,i=S.warning,m=S.success,d=S.danger,u=f(S,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["NoticeBox",h&&"NoticeBox--color--"+h,c&&"NoticeBox--type--info",m&&"NoticeBox--type--success",d&&"NoticeBox--type--danger",y])},u)))}return k}();b.defaultHooks=a.pureComponentHooks},59263:function(w,r,n){"use strict";r.__esModule=!0,r.NumberInput=void 0;var e=n(89005),a=n(44879),t=n(35840),o=n(9474),f=n(55937);function b(h,c){h.prototype=Object.create(c.prototype),h.prototype.constructor=h,k(h,c)}function k(h,c){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,m){return i.__proto__=m,i},k(h,c)}/** + */function f(y,S){if(y==null)return{};var k={};for(var h in y)if({}.hasOwnProperty.call(y,h)){if(S.includes(h))continue;k[h]=y[h]}return k}var b=r.NoticeBox=function(){function y(S){var k=S.className,h=S.color,c=S.info,i=S.warning,m=S.success,d=S.danger,u=f(S,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["NoticeBox",h&&"NoticeBox--color--"+h,c&&"NoticeBox--type--info",m&&"NoticeBox--type--success",d&&"NoticeBox--type--danger",k])},u)))}return y}();b.defaultHooks=a.pureComponentHooks},59263:function(T,r,n){"use strict";r.__esModule=!0,r.NumberInput=void 0;var e=n(89005),a=n(44879),t=n(35840),o=n(9474),f=n(55937);function b(h,c){h.prototype=Object.create(c.prototype),h.prototype.constructor=h,y(h,c)}function y(h,c){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,m){return i.__proto__=m,i},y(h,c)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var S=400,y=r.NumberInput=function(h){function c(m){var d;d=h.call(this,m)||this;var u=m.value;return d.inputRef=(0,e.createRef)(),d.state={value:u,dragging:!1,editing:!1,internalValue:null,origin:null,suppressingFlicker:!1},d.flickerTimer=null,d.suppressFlicker=function(){var s=d.props.suppressFlicker;s>0&&(d.setState({suppressingFlicker:!0}),clearTimeout(d.flickerTimer),d.flickerTimer=setTimeout(function(){return d.setState({suppressingFlicker:!1})},s))},d.handleDragStart=function(s){var l=d.props.value,v=d.state.editing;v||(document.body.style["pointer-events"]="none",d.ref=s.target,d.setState({dragging:!1,origin:s.screenY,value:l,internalValue:l}),d.timer=setTimeout(function(){d.setState({dragging:!0})},250),d.dragInterval=setInterval(function(){var N=d.state,C=N.dragging,p=N.value,g=d.props.onDrag;C&&g&&g(s,p)},d.props.updateRate||S),document.addEventListener("mousemove",d.handleDragMove),document.addEventListener("mouseup",d.handleDragEnd))},d.handleDragMove=function(s){var l=d.props,v=l.minValue,N=l.maxValue,C=l.step,p=l.stepPixelSize;d.setState(function(g){var V=Object.assign({},g),I=V.origin-s.screenY;if(g.dragging){var B=Number.isFinite(v)?v%C:0;V.internalValue=(0,a.clamp)(V.internalValue+I*C/p,v-C,N+C),V.value=(0,a.clamp)(V.internalValue-V.internalValue%C+B,v,N),V.origin=s.screenY}else Math.abs(I)>4&&(V.dragging=!0);return V})},d.handleDragEnd=function(s){var l=d.props,v=l.onChange,N=l.onDrag,C=d.state,p=C.dragging,g=C.value,V=C.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(d.timer),clearInterval(d.dragInterval),d.setState({dragging:!1,editing:!p,origin:null}),document.removeEventListener("mousemove",d.handleDragMove),document.removeEventListener("mouseup",d.handleDragEnd),p)d.suppressFlicker(),v&&v(s,g),N&&N(s,g);else if(d.inputRef){var I=d.inputRef.current;I.value=V;try{I.focus(),I.select()}catch(B){}}},d}b(c,h);var i=c.prototype;return i.render=function(){function m(){var d=this,u=this.state,s=u.dragging,l=u.editing,v=u.value,N=u.suppressingFlicker,C=this.props,p=C.className,g=C.fluid,V=C.animated,I=C.value,B=C.unit,L=C.minValue,T=C.maxValue,A=C.height,x=C.width,E=C.lineHeight,P=C.fontSize,j=C.format,M=C.onChange,R=C.onDrag,D=I;(s||N)&&(D=v);var W=(0,e.createVNode)(1,"div","NumberInput__content",[V&&!s&&!N?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:D,format:j}):j?j(D):D,B?" "+B:""],0);return(0,e.createComponentVNode)(2,f.Box,{className:(0,t.classes)(["NumberInput",g&&"NumberInput--fluid",p]),minWidth:x,minHeight:A,lineHeight:E,fontSize:P,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"div","NumberInput__barContainer",(0,e.createVNode)(1,"div","NumberInput__bar",null,1,{style:{height:(0,a.clamp)((D-L)/(T-L)*100,0,100)+"%"}}),2),W,(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:l?void 0:"none",height:A,"line-height":E,"font-size":P},onBlur:function(){function _(U){if(l){var K=(0,a.clamp)(parseFloat(U.target.value),L,T);if(Number.isNaN(K)){d.setState({editing:!1});return}d.setState({editing:!1,value:K}),d.suppressFlicker(),M&&M(U,K),R&&R(U,K)}}return _}(),onKeyDown:function(){function _(U){if(U.keyCode===13){var K=(0,a.clamp)(parseFloat(U.target.value),L,T);if(Number.isNaN(K)){d.setState({editing:!1});return}d.setState({editing:!1,value:K}),d.suppressFlicker(),M&&M(U,K),R&&R(U,K);return}if(U.keyCode===27){d.setState({editing:!1});return}}return _}()},null,this.inputRef)]})}return m}(),c}(e.Component);y.defaultHooks=t.pureComponentHooks,y.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50}},50186:function(w,r,n){"use strict";r.__esModule=!0,r.Popper=void 0;var e=n(95996),a=n(89005);function t(b,k){b.prototype=Object.create(k.prototype),b.prototype.constructor=b,o(b,k)}function o(b,k){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(S,y){return S.__proto__=y,S},o(b,k)}var f=r.Popper=function(b){function k(){var y;return y=b.call(this)||this,y.renderedContent=void 0,y.popperInstance=void 0,k.id+=1,y}t(k,b);var S=k.prototype;return S.componentDidMount=function(){function y(){var h=this,c=this.props,i=c.additionalStyles,m=c.options;if(this.renderedContent=document.createElement("div"),i)for(var d=0,u=Object.entries(i);d0&&(d.setState({suppressingFlicker:!0}),clearTimeout(d.flickerTimer),d.flickerTimer=setTimeout(function(){return d.setState({suppressingFlicker:!1})},s))},d.handleDragStart=function(s){var l=d.props.value,v=d.state.editing;v||(document.body.style["pointer-events"]="none",d.ref=s.target,d.setState({dragging:!1,origin:s.screenY,value:l,internalValue:l}),d.timer=setTimeout(function(){d.setState({dragging:!0})},250),d.dragInterval=setInterval(function(){var N=d.state,C=N.dragging,p=N.value,g=d.props.onDrag;C&&g&&g(s,p)},d.props.updateRate||S),document.addEventListener("mousemove",d.handleDragMove),document.addEventListener("mouseup",d.handleDragEnd))},d.handleDragMove=function(s){var l=d.props,v=l.minValue,N=l.maxValue,C=l.step,p=l.stepPixelSize;d.setState(function(g){var V=Object.assign({},g),B=V.origin-s.screenY;if(g.dragging){var I=Number.isFinite(v)?v%C:0;V.internalValue=(0,a.clamp)(V.internalValue+B*C/p,v-C,N+C),V.value=(0,a.clamp)(V.internalValue-V.internalValue%C+I,v,N),V.origin=s.screenY}else Math.abs(B)>4&&(V.dragging=!0);return V})},d.handleDragEnd=function(s){var l=d.props,v=l.onChange,N=l.onDrag,C=d.state,p=C.dragging,g=C.value,V=C.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(d.timer),clearInterval(d.dragInterval),d.setState({dragging:!1,editing:!p,origin:null}),document.removeEventListener("mousemove",d.handleDragMove),document.removeEventListener("mouseup",d.handleDragEnd),p)d.suppressFlicker(),v&&v(s,g),N&&N(s,g);else if(d.inputRef){var B=d.inputRef.current;B.value=V;try{B.focus(),B.select()}catch(I){}}},d}b(c,h);var i=c.prototype;return i.render=function(){function m(){var d=this,u=this.state,s=u.dragging,l=u.editing,v=u.value,N=u.suppressingFlicker,C=this.props,p=C.className,g=C.fluid,V=C.animated,B=C.value,I=C.unit,L=C.minValue,w=C.maxValue,x=C.height,A=C.width,E=C.lineHeight,P=C.fontSize,j=C.format,M=C.onChange,R=C.onDrag,D=B;(s||N)&&(D=v);var W=(0,e.createVNode)(1,"div","NumberInput__content",[V&&!s&&!N?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:D,format:j}):j?j(D):D,I?" "+I:""],0);return(0,e.createComponentVNode)(2,f.Box,{className:(0,t.classes)(["NumberInput",g&&"NumberInput--fluid",p]),minWidth:A,minHeight:x,lineHeight:E,fontSize:P,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"div","NumberInput__barContainer",(0,e.createVNode)(1,"div","NumberInput__bar",null,1,{style:{height:(0,a.clamp)((D-L)/(w-L)*100,0,100)+"%"}}),2),W,(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:l?void 0:"none",height:x,"line-height":E,"font-size":P},onBlur:function(){function _(U){if(l){var K=(0,a.clamp)(parseFloat(U.target.value),L,w);if(Number.isNaN(K)){d.setState({editing:!1});return}d.setState({editing:!1,value:K}),d.suppressFlicker(),M&&M(U,K),R&&R(U,K)}}return _}(),onKeyDown:function(){function _(U){if(U.keyCode===13){var K=(0,a.clamp)(parseFloat(U.target.value),L,w);if(Number.isNaN(K)){d.setState({editing:!1});return}d.setState({editing:!1,value:K}),d.suppressFlicker(),M&&M(U,K),R&&R(U,K);return}if(U.keyCode===27){d.setState({editing:!1});return}}return _}()},null,this.inputRef)]})}return m}(),c}(e.Component);k.defaultHooks=t.pureComponentHooks,k.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50}},50186:function(T,r,n){"use strict";r.__esModule=!0,r.Popper=void 0;var e=n(95996),a=n(89005);function t(b,y){b.prototype=Object.create(y.prototype),b.prototype.constructor=b,o(b,y)}function o(b,y){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(S,k){return S.__proto__=k,S},o(b,y)}var f=r.Popper=function(b){function y(){var k;return k=b.call(this)||this,k.renderedContent=void 0,k.popperInstance=void 0,y.id+=1,k}t(y,b);var S=y.prototype;return S.componentDidMount=function(){function k(){var h=this,c=this.props,i=c.additionalStyles,m=c.options;if(this.renderedContent=document.createElement("div"),i)for(var d=0,u=Object.entries(i);dm)return"in the future";i=i/10,m=m/10;var d=m-i;if(d>3600){var u=Math.round(d/3600);return u+" hour"+(u===1?"":"s")+" ago"}else if(d>60){var s=Math.round(d/60);return s+" minute"+(s===1?"":"s")+" ago"}else{var l=Math.round(d);return l+" second"+(l===1?"":"s")+" ago"}return"just now"}return c}()},40944:function(w,r,n){"use strict";r.__esModule=!0,r.KitchenSink=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595);/** +*/var c=r.TextArea=function(i){function m(u,s){var l;l=i.call(this,u,s)||this,l.textareaRef=u.innerRef||(0,e.createRef)(),l.fillerRef=(0,e.createRef)(),l.state={editing:!1};var v=u.dontUseTabForIndent,N=v===void 0?!1:v;return l.handleOnInput=function(C){var p=l.state.editing,g=l.props.onInput;p||l.setEditing(!0),g&&g(C,C.target.value)},l.handleOnChange=function(C){var p=l.state.editing,g=l.props.onChange;p&&l.setEditing(!1),g&&g(C,C.target.value)},l.handleKeyPress=function(C){var p=l.state.editing,g=l.props.onKeyPress;p||l.setEditing(!0),g&&g(C,C.target.value)},l.handleKeyDown=function(C){var p=l.state.editing,g=l.props,V=g.onChange,B=g.onInput,I=g.onEnter,L=g.onKeyDown;if(C.keyCode===f.KEY_ENTER){l.setEditing(!1),V&&V(C,C.target.value),B&&B(C,C.target.value),I&&I(C,C.target.value),l.props.selfClear&&(C.target.value="",C.target.blur());return}if(C.keyCode===f.KEY_ESCAPE){l.props.onEscape&&l.props.onEscape(C),l.setEditing(!1),l.props.selfClear?C.target.value="":(C.target.value=(0,o.toInputValue)(l.props.value),C.target.blur());return}if(p||l.setEditing(!0),L&&L(C,C.target.value),!N){var w=C.keyCode||C.which;if(w===f.KEY_TAB){C.preventDefault();var x=C.target,A=x.value,E=x.selectionStart,P=x.selectionEnd;C.target.value=A.substring(0,E)+" "+A.substring(P),C.target.selectionEnd=E+1}}},l.handleFocus=function(C){var p=l.state.editing;p||l.setEditing(!0)},l.handleBlur=function(C){var p=l.state.editing,g=l.props.onChange;p&&(l.setEditing(!1),g&&g(C,C.target.value))},l}k(m,i);var d=m.prototype;return d.componentDidMount=function(){function u(){var s=this,l=this.props.value,v=this.textareaRef.current;v&&(v.value=(0,o.toInputValue)(l)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){v.focus(),s.props.autoSelect&&v.select()},1)}return u}(),d.componentDidUpdate=function(){function u(s,l){var v=s.value,N=this.props.value,C=this.textareaRef.current;C&&typeof N=="string"&&v!==N&&(C.value=(0,o.toInputValue)(N))}return u}(),d.setEditing=function(){function u(s){this.setState({editing:s})}return u}(),d.getValue=function(){function u(){return this.textareaRef.current&&this.textareaRef.current.value}return u}(),d.render=function(){function u(){var s=this.props,l=s.onChange,v=s.onKeyDown,N=s.onKeyPress,C=s.onInput,p=s.onFocus,g=s.onBlur,V=s.onEnter,B=s.value,I=s.maxLength,L=s.placeholder,w=S(s,b),x=w.className,A=w.fluid,E=S(w,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["TextArea",A&&"TextArea--fluid",x])},E,{children:(0,e.createVNode)(128,"textarea","TextArea__textarea",null,1,{placeholder:L,onChange:this.handleOnChange,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,onInput:this.handleOnInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:I},null,this.textareaRef)})))}return u}(),m}(e.Component)},5169:function(T,r){"use strict";r.__esModule=!0,r.TimeDisplay=void 0;var n=function(t){(!t||t<0)&&(t=0);var o=Math.floor(t/60).toString(10),f=(Math.floor(t)%60).toString(10);return[o,f].map(function(b){return b.length<2?"0"+b:b}).join(":")},e=r.TimeDisplay=function(){function a(t){var o=t.totalSeconds,f=o===void 0?0:o;return n(f)}return a}()},62147:function(T,r,n){"use strict";r.__esModule=!0,r.Tooltip=void 0;var e=n(89005),a=n(95996),t;function o(k,h){k.prototype=Object.create(h.prototype),k.prototype.constructor=k,f(k,h)}function f(k,h){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,i){return c.__proto__=i,c},f(k,h)}var b={modifiers:[{name:"eventListeners",enabled:!1}]},y={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function k(){return null}return k}()},S=r.Tooltip=function(k){function h(){return k.apply(this,arguments)||this}o(h,k);var c=h.prototype;return c.getDOMNode=function(){function i(){return(0,e.findDOMFromVNode)(this.$LI,!0)}return i}(),c.componentDidMount=function(){function i(){var m=this,d=this.getDOMNode();d&&(d.addEventListener("mouseenter",function(){var u=h.renderedTooltip;u===void 0&&(u=document.createElement("div"),u.className="Tooltip",document.body.appendChild(u),h.renderedTooltip=u),h.currentHoveredElement=d,u.style.opacity="1",m.renderPopperContent()}),d.addEventListener("mouseleave",function(){m.fadeOut()}))}return i}(),c.fadeOut=function(){function i(){h.currentHoveredElement===this.getDOMNode()&&(h.currentHoveredElement=void 0,h.renderedTooltip.style.opacity="0")}return i}(),c.renderPopperContent=function(){function i(){var m=this,d=h.renderedTooltip;d&&(0,e.render)((0,e.createVNode)(1,"span",null,this.props.content,0),d,function(){var u=h.singletonPopper;u===void 0?(u=(0,a.createPopper)(h.virtualElement,d,Object.assign({},b,{placement:m.props.position||"auto"})),h.singletonPopper=u):(u.setOptions(Object.assign({},b,{placement:m.props.position||"auto"})),u.update())},this.context)}return i}(),c.componentDidUpdate=function(){function i(){h.currentHoveredElement===this.getDOMNode()&&this.renderPopperContent()}return i}(),c.componentWillUnmount=function(){function i(){this.fadeOut()}return i}(),c.render=function(){function i(){return this.props.children}return i}(),h}(e.Component);t=S,S.renderedTooltip=void 0,S.singletonPopper=void 0,S.currentHoveredElement=void 0,S.virtualElement={getBoundingClientRect:function(){function k(){var h,c;return(h=(c=t.currentHoveredElement)==null?void 0:c.getBoundingClientRect())!=null?h:y}return k}()}},36036:function(T,r,n){"use strict";r.__esModule=!0,r.Tooltip=r.TimeDisplay=r.TextArea=r.Tabs=r.Table=r.Stack=r.Slider=r.Section=r.RoundGauge=r.RestrictedInput=r.ProgressBar=r.Popper=r.NumberInput=r.NoticeBox=r.NanoMap=r.Modal=r.LabeledList=r.LabeledControls=r.Knob=r.Input=r.ImageButton=r.Icon=r.Grid=r.Flex=r.Dropdown=r.DraggableControl=r.Divider=r.Dimmer=r.Countdown=r.ColorBox=r.Collapsible=r.Chart=r.ByondUi=r.Button=r.Box=r.BlockQuote=r.Blink=r.Autofocus=r.AnimatedNumber=void 0;var e=n(9474);r.AnimatedNumber=e.AnimatedNumber;var a=n(27185);r.Autofocus=a.Autofocus;var t=n(5814);r.Blink=t.Blink;var o=n(61773);r.BlockQuote=o.BlockQuote;var f=n(55937);r.Box=f.Box;var b=n(96184);r.Button=b.Button;var y=n(18982);r.ByondUi=y.ByondUi;var S=n(66820);r.Chart=S.Chart;var k=n(4796);r.Collapsible=k.Collapsible;var h=n(88894);r.ColorBox=h.ColorBox;var c=n(73379);r.Countdown=c.Countdown;var i=n(61940);r.Dimmer=i.Dimmer;var m=n(13605);r.Divider=m.Divider;var d=n(20342);r.DraggableControl=d.DraggableControl;var u=n(87099);r.Dropdown=u.Dropdown;var s=n(39473);r.Flex=s.Flex;var l=n(79646);r.Grid=l.Grid;var v=n(1331);r.Icon=v.Icon;var N=n(79825);r.ImageButton=N.ImageButton;var C=n(79652);r.Input=C.Input;var p=n(76334);r.Knob=p.Knob;var g=n(78621);r.LabeledControls=g.LabeledControls;var V=n(29319);r.LabeledList=V.LabeledList;var B=n(36077);r.Modal=B.Modal;var I=n(73280);r.NanoMap=I.NanoMap;var L=n(74733);r.NoticeBox=L.NoticeBox;var w=n(59263);r.NumberInput=w.NumberInput;var x=n(50186);r.Popper=x.Popper;var A=n(92704);r.ProgressBar=A.ProgressBar;var E=n(9075);r.RestrictedInput=E.RestrictedInput;var P=n(11441);r.RoundGauge=P.RoundGauge;var j=n(97079);r.Section=j.Section;var M=n(79911);r.Slider=M.Slider;var R=n(96690);r.Stack=R.Stack;var D=n(36352);r.Table=D.Table;var W=n(85138);r.Tabs=W.Tabs;var _=n(44868);r.TextArea=_.TextArea;var U=n(5169);r.TimeDisplay=U.TimeDisplay;var K=n(62147);r.Tooltip=K.Tooltip},76910:function(T,r){"use strict";r.__esModule=!0,r.timeAgo=r.getGasLabel=r.getGasColor=r.UI_UPDATE=r.UI_INTERACTIVE=r.UI_DISABLED=r.UI_CLOSE=r.RADIO_CHANNELS=r.CSS_COLORS=r.COLORS=void 0;var n=r.UI_INTERACTIVE=2,e=r.UI_UPDATE=1,a=r.UI_DISABLED=0,t=r.UI_CLOSE=-1,o=r.COLORS={department:{command:"#526aff",security:"#CF0000",medical:"#009190",science:"#993399",engineering:"#A66300",supply:"#9F8545",service:"#80A000",centcom:"#78789B",other:"#C38312"},damageType:{oxy:"#3498db",toxin:"#2ecc71",burn:"#e67e22",brute:"#e74c3c"}},f=r.CSS_COLORS=["black","white","red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","good","average","bad","label"],b=r.RADIO_CHANNELS=[{name:"Syndicate",freq:1213,color:"#a52a2a"},{name:"SyndTeam",freq:1244,color:"#a52a2a"},{name:"Red Team",freq:1215,color:"#ff4444"},{name:"Blue Team",freq:1217,color:"#3434fd"},{name:"Response Team",freq:1345,color:"#2681a5"},{name:"Special Ops",freq:1341,color:"#2681a5"},{name:"Supply",freq:1347,color:"#b88646"},{name:"Service",freq:1349,color:"#6ca729"},{name:"Science",freq:1351,color:"#c68cfa"},{name:"Command",freq:1353,color:"#5177ff"},{name:"Procedure",freq:1339,color:"#F70285"},{name:"Medical",freq:1355,color:"#57b8f0"},{name:"Medical(I)",freq:1485,color:"#57b8f0"},{name:"Engineering",freq:1357,color:"#f37746"},{name:"Security",freq:1359,color:"#dd3535"},{name:"Security(I)",freq:1475,color:"#dd3535"},{name:"AI Private",freq:1343,color:"#d65d95"},{name:"Common",freq:1459,color:"#1ecc43"}],y=[{id:"o2",name:"Oxygen",label:"O\u2082",color:"blue"},{id:"n2",name:"Nitrogen",label:"N\u2082",color:"red"},{id:"co2",name:"Carbon Dioxide",label:"CO\u2082",color:"grey"},{id:"plasma",name:"Plasma",label:"Plasma",color:"pink"},{id:"water_vapor",name:"Water Vapor",label:"H\u2082O",color:"grey"},{id:"nob",name:"Hyper-noblium",label:"Hyper-nob",color:"teal"},{id:"n2o",name:"Nitrous Oxide",label:"N\u2082O",color:"red"},{id:"no2",name:"Nitryl",label:"NO\u2082",color:"brown"},{id:"tritium",name:"Tritium",label:"Tritium",color:"green"},{id:"bz",name:"BZ",label:"BZ",color:"purple"},{id:"stim",name:"Stimulum",label:"Stimulum",color:"purple"},{id:"pluox",name:"Pluoxium",label:"Pluoxium",color:"blue"},{id:"miasma",name:"Miasma",label:"Miasma",color:"olive"},{id:"hydrogen",name:"Hydrogen",label:"H\u2082",color:"white"},{id:"ab",name:"Agent B",label:"Agent B",color:"purple"}],S=r.getGasLabel=function(){function c(i,m){var d=String(i).toLowerCase(),u=y.find(function(s){return s.id===d||s.name.toLowerCase()===d});return u&&u.label||m||i}return c}(),k=r.getGasColor=function(){function c(i){var m=String(i).toLowerCase(),d=y.find(function(u){return u.id===m||u.name.toLowerCase()===m});return d&&d.color}return c}(),h=r.timeAgo=function(){function c(i,m){if(i>m)return"in the future";i=i/10,m=m/10;var d=m-i;if(d>3600){var u=Math.round(d/3600);return u+" hour"+(u===1?"":"s")+" ago"}else if(d>60){var s=Math.round(d/60);return s+" minute"+(s===1?"":"s")+" ago"}else{var l=Math.round(d);return l+" second"+(l===1?"":"s")+" ago"}return"just now"}return c}()},40944:function(T,r,n){"use strict";r.__esModule=!0,r.KitchenSink=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var f=n(4085),b=function(){return f.keys().map(function(y){return f(y)})},k=r.KitchenSink=function(){function S(y,h){var c=y.panel,i=(0,a.useLocalState)(h,"kitchenSinkTheme"),m=i[0],d=(0,a.useLocalState)(h,"pageIndex",0),u=d[0],s=d[1],l=b(),v=l[u],N=c?o.Pane:o.Window;return(0,e.createComponentVNode)(2,N,{title:"Kitchen Sink",width:600,height:500,theme:m,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{m:1,mr:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,fitted:!0,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:l.map(function(C,p){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{color:"transparent",selected:p===u,onClick:function(){function g(){return s(p)}return g}(),children:C.meta.title},p)})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{position:"relative",grow:1,children:(0,e.createComponentVNode)(2,N.Content,{scrollable:!0,children:v.meta.render()})})]})})}return S}()},77384:function(w,r,n){"use strict";r.__esModule=!0,r.toggleKitchenSink=r.toggleDebugLayout=r.openExternalBrowser=void 0;var e=n(85307);/** + */var f=n(4085),b=function(){return f.keys().map(function(k){return f(k)})},y=r.KitchenSink=function(){function S(k,h){var c=k.panel,i=(0,a.useLocalState)(h,"kitchenSinkTheme"),m=i[0],d=(0,a.useLocalState)(h,"pageIndex",0),u=d[0],s=d[1],l=b(),v=l[u],N=c?o.Pane:o.Window;return(0,e.createComponentVNode)(2,N,{title:"Kitchen Sink",width:600,height:500,theme:m,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{m:1,mr:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,fitted:!0,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:l.map(function(C,p){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{color:"transparent",selected:p===u,onClick:function(){function g(){return s(p)}return g}(),children:C.meta.title},p)})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{position:"relative",grow:1,children:(0,e.createComponentVNode)(2,N.Content,{scrollable:!0,children:v.meta.render()})})]})})}return S}()},77384:function(T,r,n){"use strict";r.__esModule=!0,r.toggleKitchenSink=r.toggleDebugLayout=r.openExternalBrowser=void 0;var e=n(85307);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var a=r.toggleKitchenSink=(0,e.createAction)("debug/toggleKitchenSink"),t=r.toggleDebugLayout=(0,e.createAction)("debug/toggleDebugLayout"),o=r.openExternalBrowser=(0,e.createAction)("debug/openExternalBrowser")},92731:function(w,r,n){"use strict";r.__esModule=!0,r.useDebug=void 0;var e=n(85307),a=n(27709);/** + */var a=r.toggleKitchenSink=(0,e.createAction)("debug/toggleKitchenSink"),t=r.toggleDebugLayout=(0,e.createAction)("debug/toggleDebugLayout"),o=r.openExternalBrowser=(0,e.createAction)("debug/openExternalBrowser")},92731:function(T,r,n){"use strict";r.__esModule=!0,r.useDebug=void 0;var e=n(85307),a=n(27709);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.useDebug=function(){function o(f){return(0,e.useSelector)(f,a.selectDebug)}return o}()},99851:function(w,r,n){"use strict";r.__esModule=!0,r.useDebug=r.relayMiddleware=r.debugReducer=r.debugMiddleware=r.KitchenSink=void 0;var e=n(92731);r.useDebug=e.useDebug;var a=n(40944);r.KitchenSink=a.KitchenSink;var t=n(3583);r.debugMiddleware=t.debugMiddleware,r.relayMiddleware=t.relayMiddleware;var o=n(19147);r.debugReducer=o.debugReducer},3583:function(w,r,n){"use strict";r.__esModule=!0,r.relayMiddleware=r.debugMiddleware=void 0;var e=n(92986),a=n(24826),t=n(56518),o=n(77384);/** + */var t=r.useDebug=function(){function o(f){return(0,e.useSelector)(f,a.selectDebug)}return o}()},99851:function(T,r,n){"use strict";r.__esModule=!0,r.useDebug=r.relayMiddleware=r.debugReducer=r.debugMiddleware=r.KitchenSink=void 0;var e=n(92731);r.useDebug=e.useDebug;var a=n(40944);r.KitchenSink=a.KitchenSink;var t=n(3583);r.debugMiddleware=t.debugMiddleware,r.relayMiddleware=t.relayMiddleware;var o=n(19147);r.debugReducer=o.debugReducer},3583:function(T,r,n){"use strict";r.__esModule=!0,r.relayMiddleware=r.debugMiddleware=void 0;var e=n(92986),a=n(24826),t=n(56518),o=n(77384);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var f=["backend/update","chat/message"],b=r.debugMiddleware=function(){function S(y){return(0,t.acquireHotKey)(e.KEY_F11),(0,t.acquireHotKey)(e.KEY_F12),a.globalEvents.on("keydown",function(h){h.code===e.KEY_F11&&y.dispatch((0,o.toggleDebugLayout)()),h.code===e.KEY_F12&&y.dispatch((0,o.toggleKitchenSink)()),h.ctrl&&h.alt&&h.code===e.KEY_BACKSPACE&&setTimeout(function(){throw new Error("OOPSIE WOOPSIE!! UwU We made a fucky wucky!! A wittle fucko boingo! The code monkeys at our headquarters are working VEWY HAWD to fix this!")})}),function(h){return function(c){return h(c)}}}return S}(),k=r.relayMiddleware=function(){function S(y){var h=n(7435),c=location.search==="?external";return c?h.subscribe(function(i){var m=i.type,d=i.payload;m==="relay"&&d.windowId===Byond.windowId&&y.dispatch(Object.assign({},d.action,{relayed:!0}))}):((0,t.acquireHotKey)(e.KEY_F10),a.globalEvents.on("keydown",function(i){i===e.KEY_F10&&y.dispatch((0,o.openExternalBrowser)())})),function(i){return function(m){var d=m.type,u=m.payload,s=m.relayed;if(d===o.openExternalBrowser.type){window.open(location.href+"?external","_blank");return}return f.includes(d)&&!s&&!c&&h.sendMessage({type:"relay",payload:{windowId:Byond.windowId,action:m}}),i(m)}}}return S}()},19147:function(w,r){"use strict";r.__esModule=!0,r.debugReducer=void 0;/** + */var f=["backend/update","chat/message"],b=r.debugMiddleware=function(){function S(k){return(0,t.acquireHotKey)(e.KEY_F11),(0,t.acquireHotKey)(e.KEY_F12),a.globalEvents.on("keydown",function(h){h.code===e.KEY_F11&&k.dispatch((0,o.toggleDebugLayout)()),h.code===e.KEY_F12&&k.dispatch((0,o.toggleKitchenSink)()),h.ctrl&&h.alt&&h.code===e.KEY_BACKSPACE&&setTimeout(function(){throw new Error("OOPSIE WOOPSIE!! UwU We made a fucky wucky!! A wittle fucko boingo! The code monkeys at our headquarters are working VEWY HAWD to fix this!")})}),function(h){return function(c){return h(c)}}}return S}(),y=r.relayMiddleware=function(){function S(k){var h=n(7435),c=location.search==="?external";return c?h.subscribe(function(i){var m=i.type,d=i.payload;m==="relay"&&d.windowId===Byond.windowId&&k.dispatch(Object.assign({},d.action,{relayed:!0}))}):((0,t.acquireHotKey)(e.KEY_F10),a.globalEvents.on("keydown",function(i){i===e.KEY_F10&&k.dispatch((0,o.openExternalBrowser)())})),function(i){return function(m){var d=m.type,u=m.payload,s=m.relayed;if(d===o.openExternalBrowser.type){window.open(location.href+"?external","_blank");return}return f.includes(d)&&!s&&!c&&h.sendMessage({type:"relay",payload:{windowId:Byond.windowId,action:m}}),i(m)}}}return S}()},19147:function(T,r){"use strict";r.__esModule=!0,r.debugReducer=void 0;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var n=r.debugReducer=function(){function e(a,t){a===void 0&&(a={});var o=t.type,f=t.payload;return o==="debug/toggleKitchenSink"?Object.assign({},a,{kitchenSink:!a.kitchenSink}):o==="debug/toggleDebugLayout"?Object.assign({},a,{debugLayout:!a.debugLayout}):a}return e}()},27709:function(w,r){"use strict";r.__esModule=!0,r.selectDebug=void 0;/** + */var n=r.debugReducer=function(){function e(a,t){a===void 0&&(a={});var o=t.type,f=t.payload;return o==="debug/toggleKitchenSink"?Object.assign({},a,{kitchenSink:!a.kitchenSink}):o==="debug/toggleDebugLayout"?Object.assign({},a,{debugLayout:!a.debugLayout}):a}return e}()},27709:function(T,r){"use strict";r.__esModule=!0,r.selectDebug=void 0;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var n=r.selectDebug=function(){function e(a){return a.debug}return e}()},35421:function(w,r,n){"use strict";r.__esModule=!0,r.storeWindowGeometry=r.setupDrag=r.setWindowSize=r.setWindowPosition=r.setWindowKey=r.resizeStartHandler=r.recallWindowGeometry=r.getWindowSize=r.getWindowPosition=r.getScreenSize=r.getScreenPosition=r.dragStartHandler=void 0;var e=n(27108),a=n(97450),t=n(9394);function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */o=function(){return W};var D,W={},_=Object.prototype,U=_.hasOwnProperty,K=Object.defineProperty||function(Ve,re,le){Ve[re]=le.value},G=typeof Symbol=="function"?Symbol:{},$=G.iterator||"@@iterator",Q=G.asyncIterator||"@@asyncIterator",J=G.toStringTag||"@@toStringTag";function ie(Ve,re,le){return Object.defineProperty(Ve,re,{value:le,enumerable:!0,configurable:!0,writable:!0}),Ve[re]}try{ie({},"")}catch(Ve){ie=function(le,Ne,de){return le[Ne]=de}}function ne(Ve,re,le,Ne){var de=re&&re.prototype instanceof ce?re:ce,ye=Object.create(de.prototype),Me=new Re(Ne||[]);return K(ye,"_invoke",{value:ge(Ve,le,Me)}),ye}function se(Ve,re,le){try{return{type:"normal",arg:Ve.call(re,le)}}catch(Ne){return{type:"throw",arg:Ne}}}W.wrap=ne;var Ce="suspendedStart",Se="suspendedYield",ke="executing",he="completed",oe={};function ce(){}function ee(){}function fe(){}var me={};ie(me,$,function(){return this});var te=Object.getPrototypeOf,be=te&&te(te(ze([])));be&&be!==_&&U.call(be,$)&&(me=be);var pe=fe.prototype=ce.prototype=Object.create(me);function ve(Ve){["next","throw","return"].forEach(function(re){ie(Ve,re,function(le){return this._invoke(re,le)})})}function Be(Ve,re){function le(de,ye,Me,je){var Fe=se(Ve[de],Ve,ye);if(Fe.type!=="throw"){var He=Fe.arg,_e=He.value;return _e&&typeof _e=="object"&&U.call(_e,"__await")?re.resolve(_e.__await).then(function(Ue){le("next",Ue,Me,je)},function(Ue){le("throw",Ue,Me,je)}):re.resolve(_e).then(function(Ue){He.value=Ue,Me(He)},function(Ue){return le("throw",Ue,Me,je)})}je(Fe.arg)}var Ne;K(this,"_invoke",{value:function(){function de(ye,Me){function je(){return new re(function(Fe,He){le(ye,Me,Fe,He)})}return Ne=Ne?Ne.then(je,je):je()}return de}()})}function ge(Ve,re,le){var Ne=Ce;return function(de,ye){if(Ne===ke)throw Error("Generator is already running");if(Ne===he){if(de==="throw")throw ye;return{value:D,done:!0}}for(le.method=de,le.arg=ye;;){var Me=le.delegate;if(Me){var je=Le(Me,le);if(je){if(je===oe)continue;return je}}if(le.method==="next")le.sent=le._sent=le.arg;else if(le.method==="throw"){if(Ne===Ce)throw Ne=he,le.arg;le.dispatchException(le.arg)}else le.method==="return"&&le.abrupt("return",le.arg);Ne=ke;var Fe=se(Ve,re,le);if(Fe.type==="normal"){if(Ne=le.done?he:Se,Fe.arg===oe)continue;return{value:Fe.arg,done:le.done}}Fe.type==="throw"&&(Ne=he,le.method="throw",le.arg=Fe.arg)}}}function Le(Ve,re){var le=re.method,Ne=Ve.iterator[le];if(Ne===D)return re.delegate=null,le==="throw"&&Ve.iterator.return&&(re.method="return",re.arg=D,Le(Ve,re),re.method==="throw")||le!=="return"&&(re.method="throw",re.arg=new TypeError("The iterator does not provide a '"+le+"' method")),oe;var de=se(Ne,Ve.iterator,re.arg);if(de.type==="throw")return re.method="throw",re.arg=de.arg,re.delegate=null,oe;var ye=de.arg;return ye?ye.done?(re[Ve.resultName]=ye.value,re.next=Ve.nextLoc,re.method!=="return"&&(re.method="next",re.arg=D),re.delegate=null,oe):ye:(re.method="throw",re.arg=new TypeError("iterator result is not an object"),re.delegate=null,oe)}function we(Ve){var re={tryLoc:Ve[0]};1 in Ve&&(re.catchLoc=Ve[1]),2 in Ve&&(re.finallyLoc=Ve[2],re.afterLoc=Ve[3]),this.tryEntries.push(re)}function xe(Ve){var re=Ve.completion||{};re.type="normal",delete re.arg,Ve.completion=re}function Re(Ve){this.tryEntries=[{tryLoc:"root"}],Ve.forEach(we,this),this.reset(!0)}function ze(Ve){if(Ve||Ve===""){var re=Ve[$];if(re)return re.call(Ve);if(typeof Ve.next=="function")return Ve;if(!isNaN(Ve.length)){var le=-1,Ne=function(){function de(){for(;++le=0;--de){var ye=this.tryEntries[de],Me=ye.completion;if(ye.tryLoc==="root")return Ne("end");if(ye.tryLoc<=this.prev){var je=U.call(ye,"catchLoc"),Fe=U.call(ye,"finallyLoc");if(je&&Fe){if(this.prev=0;--Ne){var de=this.tryEntries[Ne];if(de.tryLoc<=this.prev&&U.call(de,"finallyLoc")&&this.prev=0;--le){var Ne=this.tryEntries[le];if(Ne.finallyLoc===re)return this.complete(Ne.completion,Ne.afterLoc),xe(Ne),oe}}return Ve}(),catch:function(){function Ve(re){for(var le=this.tryEntries.length-1;le>=0;--le){var Ne=this.tryEntries[le];if(Ne.tryLoc===re){var de=Ne.completion;if(de.type==="throw"){var ye=de.arg;xe(Ne)}return ye}}throw Error("illegal catch attempt")}return Ve}(),delegateYield:function(){function Ve(re,le,Ne){return this.delegate={iterator:ze(re),resultName:le,nextLoc:Ne},this.method==="next"&&(this.arg=D),oe}return Ve}()},W}function f(D,W,_,U,K,G,$){try{var Q=D[G]($),J=Q.value}catch(ie){return void _(ie)}Q.done?W(J):Promise.resolve(J).then(U,K)}function b(D){return function(){var W=this,_=arguments;return new Promise(function(U,K){var G=D.apply(W,_);function $(J){f(G,U,K,$,Q,"next",J)}function Q(J){f(G,U,K,$,Q,"throw",J)}$(void 0)})}}/** + */var n=r.selectDebug=function(){function e(a){return a.debug}return e}()},35421:function(T,r,n){"use strict";r.__esModule=!0,r.storeWindowGeometry=r.setupDrag=r.setWindowSize=r.setWindowPosition=r.setWindowKey=r.resizeStartHandler=r.recallWindowGeometry=r.getWindowSize=r.getWindowPosition=r.getScreenSize=r.getScreenPosition=r.dragStartHandler=void 0;var e=n(27108),a=n(97450),t=n(9394);function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */o=function(){return W};var D,W={},_=Object.prototype,U=_.hasOwnProperty,K=Object.defineProperty||function(Ve,re,le){Ve[re]=le.value},G=typeof Symbol=="function"?Symbol:{},$=G.iterator||"@@iterator",Q=G.asyncIterator||"@@asyncIterator",J=G.toStringTag||"@@toStringTag";function ie(Ve,re,le){return Object.defineProperty(Ve,re,{value:le,enumerable:!0,configurable:!0,writable:!0}),Ve[re]}try{ie({},"")}catch(Ve){ie=function(le,Ne,de){return le[Ne]=de}}function ne(Ve,re,le,Ne){var de=re&&re.prototype instanceof ce?re:ce,ke=Object.create(de.prototype),Me=new Re(Ne||[]);return K(ke,"_invoke",{value:ge(Ve,le,Me)}),ke}function se(Ve,re,le){try{return{type:"normal",arg:Ve.call(re,le)}}catch(Ne){return{type:"throw",arg:Ne}}}W.wrap=ne;var Ce="suspendedStart",Se="suspendedYield",ye="executing",he="completed",oe={};function ce(){}function ee(){}function fe(){}var me={};ie(me,$,function(){return this});var te=Object.getPrototypeOf,be=te&&te(te(ze([])));be&&be!==_&&U.call(be,$)&&(me=be);var pe=fe.prototype=ce.prototype=Object.create(me);function ve(Ve){["next","throw","return"].forEach(function(re){ie(Ve,re,function(le){return this._invoke(re,le)})})}function Be(Ve,re){function le(de,ke,Me,je){var Fe=se(Ve[de],Ve,ke);if(Fe.type!=="throw"){var He=Fe.arg,_e=He.value;return _e&&typeof _e=="object"&&U.call(_e,"__await")?re.resolve(_e.__await).then(function(Ue){le("next",Ue,Me,je)},function(Ue){le("throw",Ue,Me,je)}):re.resolve(_e).then(function(Ue){He.value=Ue,Me(He)},function(Ue){return le("throw",Ue,Me,je)})}je(Fe.arg)}var Ne;K(this,"_invoke",{value:function(){function de(ke,Me){function je(){return new re(function(Fe,He){le(ke,Me,Fe,He)})}return Ne=Ne?Ne.then(je,je):je()}return de}()})}function ge(Ve,re,le){var Ne=Ce;return function(de,ke){if(Ne===ye)throw Error("Generator is already running");if(Ne===he){if(de==="throw")throw ke;return{value:D,done:!0}}for(le.method=de,le.arg=ke;;){var Me=le.delegate;if(Me){var je=Le(Me,le);if(je){if(je===oe)continue;return je}}if(le.method==="next")le.sent=le._sent=le.arg;else if(le.method==="throw"){if(Ne===Ce)throw Ne=he,le.arg;le.dispatchException(le.arg)}else le.method==="return"&&le.abrupt("return",le.arg);Ne=ye;var Fe=se(Ve,re,le);if(Fe.type==="normal"){if(Ne=le.done?he:Se,Fe.arg===oe)continue;return{value:Fe.arg,done:le.done}}Fe.type==="throw"&&(Ne=he,le.method="throw",le.arg=Fe.arg)}}}function Le(Ve,re){var le=re.method,Ne=Ve.iterator[le];if(Ne===D)return re.delegate=null,le==="throw"&&Ve.iterator.return&&(re.method="return",re.arg=D,Le(Ve,re),re.method==="throw")||le!=="return"&&(re.method="throw",re.arg=new TypeError("The iterator does not provide a '"+le+"' method")),oe;var de=se(Ne,Ve.iterator,re.arg);if(de.type==="throw")return re.method="throw",re.arg=de.arg,re.delegate=null,oe;var ke=de.arg;return ke?ke.done?(re[Ve.resultName]=ke.value,re.next=Ve.nextLoc,re.method!=="return"&&(re.method="next",re.arg=D),re.delegate=null,oe):ke:(re.method="throw",re.arg=new TypeError("iterator result is not an object"),re.delegate=null,oe)}function we(Ve){var re={tryLoc:Ve[0]};1 in Ve&&(re.catchLoc=Ve[1]),2 in Ve&&(re.finallyLoc=Ve[2],re.afterLoc=Ve[3]),this.tryEntries.push(re)}function xe(Ve){var re=Ve.completion||{};re.type="normal",delete re.arg,Ve.completion=re}function Re(Ve){this.tryEntries=[{tryLoc:"root"}],Ve.forEach(we,this),this.reset(!0)}function ze(Ve){if(Ve||Ve===""){var re=Ve[$];if(re)return re.call(Ve);if(typeof Ve.next=="function")return Ve;if(!isNaN(Ve.length)){var le=-1,Ne=function(){function de(){for(;++le=0;--de){var ke=this.tryEntries[de],Me=ke.completion;if(ke.tryLoc==="root")return Ne("end");if(ke.tryLoc<=this.prev){var je=U.call(ke,"catchLoc"),Fe=U.call(ke,"finallyLoc");if(je&&Fe){if(this.prev=0;--Ne){var de=this.tryEntries[Ne];if(de.tryLoc<=this.prev&&U.call(de,"finallyLoc")&&this.prev=0;--le){var Ne=this.tryEntries[le];if(Ne.finallyLoc===re)return this.complete(Ne.completion,Ne.afterLoc),xe(Ne),oe}}return Ve}(),catch:function(){function Ve(re){for(var le=this.tryEntries.length-1;le>=0;--le){var Ne=this.tryEntries[le];if(Ne.tryLoc===re){var de=Ne.completion;if(de.type==="throw"){var ke=de.arg;xe(Ne)}return ke}}throw Error("illegal catch attempt")}return Ve}(),delegateYield:function(){function Ve(re,le,Ne){return this.delegate={iterator:ze(re),resultName:le,nextLoc:Ne},this.method==="next"&&(this.arg=D),oe}return Ve}()},W}function f(D,W,_,U,K,G,$){try{var Q=D[G]($),J=Q.value}catch(ie){return void _(ie)}Q.done?W(J):Promise.resolve(J).then(U,K)}function b(D){return function(){var W=this,_=arguments;return new Promise(function(U,K){var G=D.apply(W,_);function $(J){f(G,U,K,$,Q,"next",J)}function Q(J){f(G,U,K,$,Q,"throw",J)}$(void 0)})}}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var k=(0,t.createLogger)("drag"),S=Byond.windowId,y=!1,h=!1,c=[0,0],i,m,d,u,s,l=r.setWindowKey=function(){function D(W){S=W}return D}(),v=r.getWindowPosition=function(){function D(){return[window.screenLeft,window.screenTop]}return D}(),N=r.getWindowSize=function(){function D(){return[window.innerWidth,window.innerHeight]}return D}(),C=r.setWindowPosition=function(){function D(W){var _=(0,a.vecAdd)(W,c);return Byond.winset(Byond.windowId,{pos:_[0]+","+_[1]})}return D}(),p=r.setWindowSize=function(){function D(W){return Byond.winset(Byond.windowId,{size:W[0]+"x"+W[1]})}return D}(),g=r.getScreenPosition=function(){function D(){return[0-c[0],0-c[1]]}return D}(),V=r.getScreenSize=function(){function D(){return[window.screen.availWidth,window.screen.availHeight]}return D}(),I=function(W,_,U){U===void 0&&(U=50);for(var K=[_],G,$=0;$ie&&(G[Q]=ie-_[Q],$=!0)}return[$,G]},x=r.dragStartHandler=function(){function D(W){k.log("drag start"),y=!0,m=[window.screenLeft-W.screenX,window.screenTop-W.screenY],document.addEventListener("mousemove",P),document.addEventListener("mouseup",E),P(W)}return D}(),E=function D(W){k.log("drag end"),P(W),document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",D),y=!1,B()},P=function(W){y&&(W.preventDefault(),C((0,a.vecAdd)([W.screenX,W.screenY],m)))},j=r.resizeStartHandler=function(){function D(W,_){return function(U){d=[W,_],k.log("resize start",d),h=!0,m=[window.screenLeft-U.screenX,window.screenTop-U.screenY],u=[window.innerWidth,window.innerHeight],document.addEventListener("mousemove",R),document.addEventListener("mouseup",M),R(U)}}return D}(),M=function D(W){k.log("resize end",s),R(W),document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",D),h=!1,B()},R=function(W){h&&(W.preventDefault(),s=(0,a.vecAdd)(u,(0,a.vecMultiply)(d,(0,a.vecAdd)([W.screenX,W.screenY],(0,a.vecInverse)([window.screenLeft,window.screenTop]),m,[1,1]))),s[0]=Math.max(s[0],150),s[1]=Math.max(s[1],50),p(s))}},24826:function(w,r,n){"use strict";r.__esModule=!0,r.setupGlobalEvents=r.removeScrollableNode=r.globalEvents=r.canStealFocus=r.addScrollableNode=r.KeyEvent=void 0;var e=n(92868),a=n(92986);/** +*/var y=(0,t.createLogger)("drag"),S=Byond.windowId,k=!1,h=!1,c=[0,0],i,m,d,u,s,l=r.setWindowKey=function(){function D(W){S=W}return D}(),v=r.getWindowPosition=function(){function D(){return[window.screenLeft,window.screenTop]}return D}(),N=r.getWindowSize=function(){function D(){return[window.innerWidth,window.innerHeight]}return D}(),C=r.setWindowPosition=function(){function D(W){var _=(0,a.vecAdd)(W,c);return Byond.winset(Byond.windowId,{pos:_[0]+","+_[1]})}return D}(),p=r.setWindowSize=function(){function D(W){return Byond.winset(Byond.windowId,{size:W[0]+"x"+W[1]})}return D}(),g=r.getScreenPosition=function(){function D(){return[0-c[0],0-c[1]]}return D}(),V=r.getScreenSize=function(){function D(){return[window.screen.availWidth,window.screen.availHeight]}return D}(),B=function(W,_,U){U===void 0&&(U=50);for(var K=[_],G,$=0;$ie&&(G[Q]=ie-_[Q],$=!0)}return[$,G]},A=r.dragStartHandler=function(){function D(W){y.log("drag start"),k=!0,m=[window.screenLeft-W.screenX,window.screenTop-W.screenY],document.addEventListener("mousemove",P),document.addEventListener("mouseup",E),P(W)}return D}(),E=function D(W){y.log("drag end"),P(W),document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",D),k=!1,I()},P=function(W){k&&(W.preventDefault(),C((0,a.vecAdd)([W.screenX,W.screenY],m)))},j=r.resizeStartHandler=function(){function D(W,_){return function(U){d=[W,_],y.log("resize start",d),h=!0,m=[window.screenLeft-U.screenX,window.screenTop-U.screenY],u=[window.innerWidth,window.innerHeight],document.addEventListener("mousemove",R),document.addEventListener("mouseup",M),R(U)}}return D}(),M=function D(W){y.log("resize end",s),R(W),document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",D),h=!1,I()},R=function(W){h&&(W.preventDefault(),s=(0,a.vecAdd)(u,(0,a.vecMultiply)(d,(0,a.vecAdd)([W.screenX,W.screenY],(0,a.vecInverse)([window.screenLeft,window.screenTop]),m,[1,1]))),s[0]=Math.max(s[0],150),s[1]=Math.max(s[1],50),p(s))}},24826:function(T,r,n){"use strict";r.__esModule=!0,r.setupGlobalEvents=r.removeScrollableNode=r.globalEvents=r.canStealFocus=r.addScrollableNode=r.KeyEvent=void 0;var e=n(92868),a=n(92986);/** * Normalized browser focus events and BYOND-specific focus helpers. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.globalEvents=new e.EventEmitter,o=!1,f=r.setupGlobalEvents=function(){function p(g){g===void 0&&(g={}),o=!!g.ignoreWindowFocus}return p}(),b,k=!0,S=function p(g,V){if(o){k=!0;return}if(b&&(clearTimeout(b),b=null),V){b=setTimeout(function(){return p(g)});return}k!==g&&(k=g,t.emit(g?"window-focus":"window-blur"),t.emit("window-focus-change",g))},y=null,h=r.canStealFocus=function(){function p(g){var V=String(g.tagName).toLowerCase();return V==="input"||V==="textarea"}return p}(),c=function(g){i(),y=g,y.addEventListener("blur",i)},i=function p(){y&&(y.removeEventListener("blur",p),y=null)},m=null,d=null,u=[],s=r.addScrollableNode=function(){function p(g){u.push(g)}return p}(),l=r.removeScrollableNode=function(){function p(g){var V=u.indexOf(g);V>=0&&u.splice(V,1)}return p}(),v=function(g){if(!(y||!k))for(var V=document.body;g&&g!==V;){if(u.includes(g)){if(g.contains(m))return;m=g,g.focus();return}g=g.parentNode}};window.addEventListener("mousemove",function(p){var g=p.target;g!==d&&(d=g,v(g))}),window.addEventListener("focusin",function(p){if(d=null,m=p.target,S(!0),h(p.target)){c(p.target);return}}),window.addEventListener("focusout",function(p){d=null,S(!1,!0)}),window.addEventListener("blur",function(p){d=null,S(!1,!0)}),window.addEventListener("beforeunload",function(p){S(!1)});var N={},C=r.KeyEvent=function(){function p(V,I,B){this.event=V,this.type=I,this.code=window.event?V.which:V.keyCode,this.ctrl=V.ctrlKey,this.shift=V.shiftKey,this.alt=V.altKey,this.repeat=!!B}var g=p.prototype;return g.hasModifierKeys=function(){function V(){return this.ctrl||this.alt||this.shift}return V}(),g.isModifierKey=function(){function V(){return this.code===a.KEY_CTRL||this.code===a.KEY_SHIFT||this.code===a.KEY_ALT}return V}(),g.isDown=function(){function V(){return this.type==="keydown"}return V}(),g.isUp=function(){function V(){return this.type==="keyup"}return V}(),g.toString=function(){function V(){return this._str?this._str:(this._str="",this.ctrl&&(this._str+="Ctrl+"),this.alt&&(this._str+="Alt+"),this.shift&&(this._str+="Shift+"),this.code>=48&&this.code<=90?this._str+=String.fromCharCode(this.code):this.code>=a.KEY_F1&&this.code<=a.KEY_F12?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)}return V}(),p}();document.addEventListener("keydown",function(p){if(!h(p.target)){var g=p.keyCode,V=new C(p,"keydown",N[g]);t.emit("keydown",V),t.emit("key",V),N[g]=!0}}),document.addEventListener("keyup",function(p){if(!h(p.target)){var g=p.keyCode,V=new C(p,"keyup");t.emit("keyup",V),t.emit("key",V),N[g]=!1}})},87695:function(w,r){"use strict";r.__esModule=!0,r.focusWindow=r.focusMap=void 0;/** + */var t=r.globalEvents=new e.EventEmitter,o=!1,f=r.setupGlobalEvents=function(){function p(g){g===void 0&&(g={}),o=!!g.ignoreWindowFocus}return p}(),b,y=!0,S=function p(g,V){if(o){y=!0;return}if(b&&(clearTimeout(b),b=null),V){b=setTimeout(function(){return p(g)});return}y!==g&&(y=g,t.emit(g?"window-focus":"window-blur"),t.emit("window-focus-change",g))},k=null,h=r.canStealFocus=function(){function p(g){var V=String(g.tagName).toLowerCase();return V==="input"||V==="textarea"}return p}(),c=function(g){i(),k=g,k.addEventListener("blur",i)},i=function p(){k&&(k.removeEventListener("blur",p),k=null)},m=null,d=null,u=[],s=r.addScrollableNode=function(){function p(g){u.push(g)}return p}(),l=r.removeScrollableNode=function(){function p(g){var V=u.indexOf(g);V>=0&&u.splice(V,1)}return p}(),v=function(g){if(!(k||!y))for(var V=document.body;g&&g!==V;){if(u.includes(g)){if(g.contains(m))return;m=g,g.focus();return}g=g.parentNode}};window.addEventListener("mousemove",function(p){var g=p.target;g!==d&&(d=g,v(g))}),window.addEventListener("focusin",function(p){if(d=null,m=p.target,S(!0),h(p.target)){c(p.target);return}}),window.addEventListener("focusout",function(p){d=null,S(!1,!0)}),window.addEventListener("blur",function(p){d=null,S(!1,!0)}),window.addEventListener("beforeunload",function(p){S(!1)});var N={},C=r.KeyEvent=function(){function p(V,B,I){this.event=V,this.type=B,this.code=window.event?V.which:V.keyCode,this.ctrl=V.ctrlKey,this.shift=V.shiftKey,this.alt=V.altKey,this.repeat=!!I}var g=p.prototype;return g.hasModifierKeys=function(){function V(){return this.ctrl||this.alt||this.shift}return V}(),g.isModifierKey=function(){function V(){return this.code===a.KEY_CTRL||this.code===a.KEY_SHIFT||this.code===a.KEY_ALT}return V}(),g.isDown=function(){function V(){return this.type==="keydown"}return V}(),g.isUp=function(){function V(){return this.type==="keyup"}return V}(),g.toString=function(){function V(){return this._str?this._str:(this._str="",this.ctrl&&(this._str+="Ctrl+"),this.alt&&(this._str+="Alt+"),this.shift&&(this._str+="Shift+"),this.code>=48&&this.code<=90?this._str+=String.fromCharCode(this.code):this.code>=a.KEY_F1&&this.code<=a.KEY_F12?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)}return V}(),p}();document.addEventListener("keydown",function(p){if(!h(p.target)){var g=p.keyCode,V=new C(p,"keydown",N[g]);t.emit("keydown",V),t.emit("key",V),N[g]=!0}}),document.addEventListener("keyup",function(p){if(!h(p.target)){var g=p.keyCode,V=new C(p,"keyup");t.emit("keyup",V),t.emit("key",V),N[g]=!1}})},87695:function(T,r){"use strict";r.__esModule=!0,r.focusWindow=r.focusMap=void 0;/** * Various focus helpers. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var n=r.focusMap=function(){function a(){Byond.winset("paramapwindow.map",{focus:!0})}return a}(),e=r.focusWindow=function(){function a(){Byond.winset(Byond.windowId,{focus:!0})}return a}()},49968:function(w,r,n){"use strict";r.__esModule=!0,r.formatSiUnit=r.formatPower=r.formatMoney=r.formatDb=void 0;var e=n(44879);/** + */var n=r.focusMap=function(){function a(){Byond.winset("paramapwindow.map",{focus:!0})}return a}(),e=r.focusWindow=function(){function a(){Byond.winset(Byond.windowId,{focus:!0})}return a}()},49968:function(T,r,n){"use strict";r.__esModule=!0,r.formatSiUnit=r.formatPower=r.formatMoney=r.formatDb=void 0;var e=n(44879);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var a=["f","p","n","\u03BC","m"," ","k","M","G","T","P","E","Z","Y"],t=a.indexOf(" "),o=r.formatSiUnit=function(){function S(y,h,c){if(h===void 0&&(h=-t),c===void 0&&(c=""),typeof y!="number"||!Number.isFinite(y))return y;var i=Math.floor(Math.log10(y)),m=Math.floor(Math.max(h*3,i)),d=Math.floor(i/3),u=Math.floor(m/3),s=(0,e.clamp)(t+u,0,a.length),l=a[s],v=y/Math.pow(1e3,u),N=d>h?2+u*3-m:0,C=(0,e.toFixed)(v,N)+" "+l+c;return C.trim()}return S}(),f=r.formatPower=function(){function S(y,h){return h===void 0&&(h=0),o(y,h,"W")}return S}(),b=r.formatMoney=function(){function S(y,h){if(h===void 0&&(h=0),!Number.isFinite(y))return y;var c=(0,e.round)(y,h);h>0&&(c=(0,e.toFixed)(y,h)),c=String(c);var i=c.length,m=c.indexOf(".");m===-1&&(m=i);for(var d="",u=0;u0&&u=0?"+":h<0?"\u2013":"",i=Math.abs(h);return i===1/0?i="Inf":i=(0,e.toFixed)(i,2),c+i+" dB"}return S}()},56518:function(w,r,n){"use strict";r.__esModule=!0,r.setupHotKeys=r.releaseHotKey=r.releaseHeldKeys=r.acquireHotKey=void 0;var e=f(n(92986)),a=n(24826),t=n(9394);function o(s){if(typeof WeakMap!="function")return null;var l=new WeakMap,v=new WeakMap;return(o=function(C){return C?v:l})(s)}function f(s,l){if(!l&&s&&s.__esModule)return s;if(s===null||typeof s!="object"&&typeof s!="function")return{default:s};var v=o(l);if(v&&v.has(s))return v.get(s);var N={__proto__:null},C=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in s)if(p!=="default"&&{}.hasOwnProperty.call(s,p)){var g=C?Object.getOwnPropertyDescriptor(s,p):null;g&&(g.get||g.set)?Object.defineProperty(N,p,g):N[p]=s[p]}return N.default=s,v&&v.set(s,N),N}/** + */var a=["f","p","n","\u03BC","m"," ","k","M","G","T","P","E","Z","Y"],t=a.indexOf(" "),o=r.formatSiUnit=function(){function S(k,h,c){if(h===void 0&&(h=-t),c===void 0&&(c=""),typeof k!="number"||!Number.isFinite(k))return k;var i=Math.floor(Math.log10(k)),m=Math.floor(Math.max(h*3,i)),d=Math.floor(i/3),u=Math.floor(m/3),s=(0,e.clamp)(t+u,0,a.length),l=a[s],v=k/Math.pow(1e3,u),N=d>h?2+u*3-m:0,C=(0,e.toFixed)(v,N)+" "+l+c;return C.trim()}return S}(),f=r.formatPower=function(){function S(k,h){return h===void 0&&(h=0),o(k,h,"W")}return S}(),b=r.formatMoney=function(){function S(k,h){if(h===void 0&&(h=0),!Number.isFinite(k))return k;var c=(0,e.round)(k,h);h>0&&(c=(0,e.toFixed)(k,h)),c=String(c);var i=c.length,m=c.indexOf(".");m===-1&&(m=i);for(var d="",u=0;u0&&u=0?"+":h<0?"\u2013":"",i=Math.abs(h);return i===1/0?i="Inf":i=(0,e.toFixed)(i,2),c+i+" dB"}return S}()},56518:function(T,r,n){"use strict";r.__esModule=!0,r.setupHotKeys=r.releaseHotKey=r.releaseHeldKeys=r.acquireHotKey=void 0;var e=f(n(92986)),a=n(24826),t=n(9394);function o(s){if(typeof WeakMap!="function")return null;var l=new WeakMap,v=new WeakMap;return(o=function(C){return C?v:l})(s)}function f(s,l){if(!l&&s&&s.__esModule)return s;if(s===null||typeof s!="object"&&typeof s!="function")return{default:s};var v=o(l);if(v&&v.has(s))return v.get(s);var N={__proto__:null},C=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in s)if(p!=="default"&&{}.hasOwnProperty.call(s,p)){var g=C?Object.getOwnPropertyDescriptor(s,p):null;g&&(g.get||g.set)?Object.defineProperty(N,p,g):N[p]=s[p]}return N.default=s,v&&v.set(s,N),N}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var b=(0,t.createLogger)("hotkeys"),k={},S=[e.KEY_ESCAPE,e.KEY_ENTER,e.KEY_SPACE,e.KEY_TAB,e.KEY_CTRL,e.KEY_SHIFT,e.KEY_UP,e.KEY_DOWN,e.KEY_LEFT,e.KEY_RIGHT],y={},h=function(l){if(l===16)return"Shift";if(l===17)return"Ctrl";if(l===18)return"Alt";if(l===33)return"Northeast";if(l===34)return"Southeast";if(l===35)return"Southwest";if(l===36)return"Northwest";if(l===37)return"West";if(l===38)return"North";if(l===39)return"East";if(l===40)return"South";if(l===45)return"Insert";if(l===46)return"Delete";if(l>=48&&l<=57||l>=65&&l<=90)return String.fromCharCode(l);if(l>=96&&l<=105)return"Numpad"+(l-96);if(l>=112&&l<=123)return"F"+(l-111);if(l===188)return",";if(l===189)return"-";if(l===190)return"."},c=function(l){var v=String(l);if(v==="Ctrl+F5"||v==="Ctrl+R"){location.reload();return}if(v!=="Ctrl+F"&&!(l.event.defaultPrevented||l.isModifierKey()||S.includes(l.code))){v==="F5"&&(l.event.preventDefault(),l.event.returnValue=!1);var N=h(l.code);if(N){var C=k[N];if(C)return b.debug("macro",C),Byond.command(C);if(l.isDown()&&!y[N]){y[N]=!0;var p='Key_Down "'+N+'"';return b.debug(p),Byond.command(p)}if(l.isUp()&&y[N]){y[N]=!1;var g='Key_Up "'+N+'"';return b.debug(g),Byond.command(g)}}}},i=r.acquireHotKey=function(){function s(l){S.push(l)}return s}(),m=r.releaseHotKey=function(){function s(l){var v=S.indexOf(l);v>=0&&S.splice(v,1)}return s}(),d=r.releaseHeldKeys=function(){function s(){for(var l=0,v=Object.keys(y);l=75?i="green":c.integrity>=25?i="yellow":i="red",(0,e.createComponentVNode)(2,o.Window,{width:600,height:420,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:c.name,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:i,value:c.integrity/100})})}),(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h2",null,c.flushing===1?"Wipe of AI in progress...":"",0)})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!c.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:c.laws.map(function(m,d){return(0,e.createComponentVNode)(2,t.Box,{children:m},d)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:c.wireless?"check":"times",content:c.wireless?"Enabled":"Disabled",color:c.wireless?"green":"red",onClick:function(){function m(){return h("wireless")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:c.radio?"check":"times",content:c.radio?"Enabled":"Disabled",color:c.radio?"green":"red",onClick:function(){function m(){return h("radio")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wipe",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{width:10,icon:"trash-alt",confirmIcon:"trash-alt",disabled:c.flushing||c.integrity===0,confirmColor:"red",content:"Wipe AI",onClick:function(){function m(){return h("wipe")}return m}()})})]})})})]})})})}return b}()},39454:function(w,r,n){"use strict";r.__esModule=!0,r.AIFixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AIFixer=function(){function b(k,S){var y=(0,a.useBackend)(S),h=y.act,c=y.data;if(c.occupant===null)return(0,e.createComponentVNode)(2,o.Window,{width:550,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stored AI",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"robot",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No Artificial Intelligence detected.",16)]})})})})});var i=!0;(c.stat===2||c.stat===null)&&(i=!1);var m=null;c.integrity>=75?m="green":c.integrity>=25?m="yellow":m="red";var d=!0;return c.integrity>=100&&c.stat!==2&&(d=!1),(0,e.createComponentVNode)(2,o.Window,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:c.occupant,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:m,value:c.integrity/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:i?"green":"red",children:i?"Functional":"Non-Functional"})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!c.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:c.laws.map(function(u,s){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:u},s)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.wireless?"times":"check",content:c.wireless?"Disabled":"Enabled",color:c.wireless?"red":"green",onClick:function(){function u(){return h("wireless")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.radio?"times":"check",content:c.radio?"Disabled":"Enabled",color:c.radio?"red":"green",onClick:function(){function u(){return h("radio")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Start Repairs",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:!d||c.active,content:!d||c.active?"Already Repaired":"Repair",onClick:function(){function u(){return h("fix")}return u}()})})]}),(0,e.createComponentVNode)(2,t.Box,{color:"green",lineHeight:2,children:c.active?"Reconstruction in progress.":""})]})})]})})})}return b}()},88422:function(w,r,n){"use strict";r.__esModule=!0,r.APC=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(195),b=r.APC=function(){function h(c,i){return(0,e.createComponentVNode)(2,o.Window,{width:510,height:435,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,y)})})}return h}(),k={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},S={1:{icon:"terminal",content:"Override Programming",action:"hack"},2:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"},3:{icon:"caret-square-left",content:"Return to Main Core",action:"deoccupy"},4:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"}},y=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.locked&&!u.siliconUser,l=u.normallyLocked,v=k[u.externalPower]||k[0],N=k[u.chargingStatus]||k[0],C=u.powerChannels||[],p=S[u.malfStatus]||S[0],g=u.powerCellStatus/100;return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main Breaker",color:v.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u.isOperating?"power-off":"times",content:u.isOperating?"On":"Off",selected:u.isOperating&&!s,color:u.isOperating?"":"bad",disabled:s,onClick:function(){function V(){return d("breaker")}return V}()}),children:["[ ",v.externalPowerText," ]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Cell",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",value:g})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",color:N.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u.chargeMode?"sync":"times",content:u.chargeMode?"Auto":"Off",selected:u.chargeMode,disabled:s,onClick:function(){function V(){return d("charge")}return V}()}),children:["[ ",N.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[C.map(function(V){var I=V.topicParams;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:V.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:2,color:V.status>=2?"good":"bad",children:V.status>=2?"On":"Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:!s&&(V.status===1||V.status===3),disabled:s,onClick:function(){function B(){return d("channel",I.auto)}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!s&&V.status===2,disabled:s,onClick:function(){function B(){return d("channel",I.on)}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!s&&V.status===0,disabled:s,onClick:function(){function B(){return d("channel",I.off)}return B}()})],4),children:[V.powerLoad," W"]},V.title)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Load",children:(0,e.createVNode)(1,"b",null,[u.totalLoad,(0,e.createTextVNode)(" W")],0)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc",buttons:!!u.siliconUser&&(0,e.createFragment)([!!u.malfStatus&&(0,e.createComponentVNode)(2,t.Button,{icon:p.icon,content:p.content,color:"bad",onClick:function(){function V(){return d(p.action)}return V}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){function V(){return d("overload")}return V}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.4,icon:u.coverLocked?"lock":"unlock",content:u.coverLocked?"Engaged":"Disengaged",disabled:s,onClick:function(){function V(){return d("cover")}return V}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:u.emergencyLights?"Enabled":"Disabled",disabled:s,onClick:function(){function V(){return d("emergency_lighting")}return V}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{mt:.4,icon:"lightbulb-o",content:u.nightshiftLights?"Enabled":"Disabled",onClick:function(){function V(){return d("toggle_nightshift")}return V}()})})]})})],4)}},99660:function(w,r,n){"use strict";r.__esModule=!0,r.ATM=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ATM=function(){function m(d,u){var s=(0,a.useBackend)(u),l=s.act,v=s.data,N=v.view_screen,C=v.authenticated_account,p=v.ticks_left_locked_down,g=v.linked_db,V;if(p>0)V=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Maximum number of pin attempts exceeded! Access to this ATM has been temporarily disabled."]});else if(!g)V=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Unable to connect to accounts database, please retry and if the issue persists contact Nanotrasen IT support."]});else if(C)switch(N){case 1:V=(0,e.createComponentVNode)(2,k);break;case 2:V=(0,e.createComponentVNode)(2,S);break;case 3:V=(0,e.createComponentVNode)(2,c);break;default:V=(0,e.createComponentVNode)(2,y)}else V=(0,e.createComponentVNode)(2,h);return(0,e.createComponentVNode)(2,o.Window,{width:550,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,t.Section,{children:V})]})})}return m}(),b=function(d,u){var s=(0,a.useBackend)(u),l=s.act,v=s.data,N=v.machine_id,C=v.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Nanotrasen Automatic Teller Machine",children:[(0,e.createComponentVNode)(2,t.Box,{children:"For all your monetary needs!"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Card",children:(0,e.createComponentVNode)(2,t.Button,{content:C,icon:"eject",onClick:function(){function p(){return l("insert_card")}return p}()})})})]})},k=function(d,u){var s=(0,a.useBackend)(u),l=s.act,v=s.data,N=v.security_level;return(0,e.createComponentVNode)(2,t.Section,{title:"Select a new security level for this account",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Number",icon:"unlock",selected:N===0,onClick:function(){function C(){return l("change_security_level",{new_security_level:1})}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"Either the account number or card is required to access this account. EFTPOS transactions will require a card."}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Pin",icon:"unlock",selected:N===2,onClick:function(){function C(){return l("change_security_level",{new_security_level:2})}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"An account number and pin must be manually entered to access this account and process transactions."})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,i)]})},S=function(d,u){var s=(0,a.useBackend)(u),l=s.act,v=s.data,N=(0,a.useLocalState)(u,"targetAccNumber",0),C=N[0],p=N[1],g=(0,a.useLocalState)(u,"fundsAmount",0),V=g[0],I=g[1],B=(0,a.useLocalState)(u,"purpose",0),L=B[0],T=B[1],A=v.money;return(0,e.createComponentVNode)(2,t.Section,{title:"Transfer Fund",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",A]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Account Number",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"7 Digit Number",onInput:function(){function x(E,P){return p(P)}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Funds to Transfer",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function x(E,P){return I(P)}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transaction Purpose",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,onInput:function(){function x(E,P){return T(P)}return x}()})})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sign-out-alt",onClick:function(){function x(){return l("transfer",{target_acc_number:C,funds_amount:V,purpose:L})}return x}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,i)]})},y=function(d,u){var s=(0,a.useBackend)(u),l=s.act,v=s.data,N=(0,a.useLocalState)(u,"fundsAmount",0),C=N[0],p=N[1],g=v.owner_name,V=v.money;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Welcome, "+g,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Logout",icon:"sign-out-alt",onClick:function(){function I(){return l("logout")}return I}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",V]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Withdrawal Amount",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function I(B,L){return p(L)}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Withdraw Funds",icon:"sign-out-alt",onClick:function(){function I(){return l("withdrawal",{funds_amount:C})}return I}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Menu",children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Change account security level",icon:"lock",onClick:function(){function I(){return l("view_screen",{view_screen:1})}return I}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Make transfer",icon:"exchange-alt",onClick:function(){function I(){return l("view_screen",{view_screen:2})}return I}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View transaction log",icon:"list",onClick:function(){function I(){return l("view_screen",{view_screen:3})}return I}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print balance statement",icon:"print",onClick:function(){function I(){return l("balance_statement")}return I}()})})]})],4)},h=function(d,u){var s=(0,a.useBackend)(u),l=s.act,v=s.data,N=(0,a.useLocalState)(u,"accountID",null),C=N[0],p=N[1],g=(0,a.useLocalState)(u,"accountPin",null),V=g[0],I=g[1],B=v.machine_id,L=v.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Insert card or enter ID and pin to login",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account ID",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function T(A,x){return p(x)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pin",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function T(A,x){return I(x)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Login",icon:"sign-in-alt",onClick:function(){function T(){return l("attempt_auth",{account_num:C,account_pin:V})}return T}()})})]})})},c=function(d,u){var s=(0,a.useBackend)(u),l=s.act,v=s.data,N=v.transaction_log;return(0,e.createComponentVNode)(2,t.Section,{title:"Transactions",children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Terminal"})]}),N.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.purpose}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:C.is_deposit?"green":"red",children:["$",C.amount]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.target_name})]},C)})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,i)]})},i=function(d,u){var s=(0,a.useBackend)(u),l=s.act,v=s.data;return(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){function N(){return l("view_screen",{view_screen:0})}return N}()})}},86423:function(w,r,n){"use strict";r.__esModule=!0,r.AccountsUplinkTerminal=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(36352),b=n(98595),k=n(321),S=n(5485),y=r.AccountsUplinkTerminal=function(){function v(N,C){var p=(0,t.useBackend)(C),g=p.act,V=p.data,I=V.loginState,B=V.currentPage,L;if(I.logged_in)B===1?L=(0,e.createComponentVNode)(2,c):B===2?L=(0,e.createComponentVNode)(2,s):B===3&&(L=(0,e.createComponentVNode)(2,l));else return(0,e.createComponentVNode)(2,b.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,S.LoginScreen)})})});return(0,e.createComponentVNode)(2,b.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:L})]})})})}return v}(),h=function(N,C){var p=(0,t.useBackend)(C),g=p.data,V=(0,t.useLocalState)(C,"tabIndex",0),I=V[0],B=V[1],L=g.login_state;return(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,mb:1,children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:I===0,onClick:function(){function T(){return B(0)}return T}(),children:"User Accounts"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:I===1,onClick:function(){function T(){return B(1)}return T}(),children:"Department Accounts"})]})})})},c=function(N,C){var p=(0,t.useLocalState)(C,"tabIndex",0),g=p[0];switch(g){case 0:return(0,e.createComponentVNode)(2,i);case 1:return(0,e.createComponentVNode)(2,m);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},i=function(N,C){var p=(0,t.useBackend)(C),g=p.act,V=p.data,I=V.accounts,B=(0,t.useLocalState)(C,"searchText",""),L=B[0],T=B[1],A=(0,t.useLocalState)(C,"sortId","owner_name"),x=A[0],E=A[1],P=(0,t.useLocalState)(C,"sortOrder",!0),j=P[0],M=P[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,d,{id:"owner_name",children:"Account Holder"}),(0,e.createComponentVNode)(2,d,{id:"account_number",children:"Account Number"}),(0,e.createComponentVNode)(2,d,{id:"suspended",children:"Account Status"}),(0,e.createComponentVNode)(2,d,{id:"money",children:"Account Balance"})]}),I.filter((0,a.createSearch)(L,function(R){return R.owner_name+"|"+R.account_number+"|"+R.suspended+"|"+R.money})).sort(function(R,D){var W=j?1:-1;return R[x].localeCompare(D[x])*W}).map(function(R){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+R.suspended,onClick:function(){function D(){return g("view_account_detail",{account_num:R.account_number})}return D}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",R.owner_name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",R.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.money})]},R.account_number)})]})})})]})},m=function(N,C){var p=(0,t.useBackend)(C),g=p.act,V=p.data,I=V.department_accounts;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,f.TableCell,{children:"Department Name"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Number"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Status"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Balance"})]}),I.map(function(B){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+B.suspended,onClick:function(){function L(){return g("view_account_detail",{account_num:B.account_number})}return L}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"wallet"})," ",B.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",B.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:B.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:B.money})]},B.account_number)})]})})})})},d=function(N,C){var p=(0,t.useLocalState)(C,"sortId","name"),g=p[0],V=p[1],I=(0,t.useLocalState)(C,"sortOrder",!0),B=I[0],L=I[1],T=N.id,A=N.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:g!==T&&"transparent",width:"100%",onClick:function(){function x(){g===T?L(!B):(V(T),L(!0))}return x}(),children:[A,g===T&&(0,e.createComponentVNode)(2,o.Icon,{name:B?"sort-up":"sort-down",ml:"0.25rem;"})]})})},u=function(N,C){var p=(0,t.useBackend)(C),g=p.act,V=p.data,I=V.is_printing,B=(0,t.useLocalState)(C,"searchText",""),L=B[0],T=B[1];return(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"New Account",icon:"plus",onClick:function(){function A(){return g("create_new_account")}return A}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account holder, number, status",width:"100%",onInput:function(){function A(x,E){return T(E)}return A}()})})]})},s=function(N,C){var p=(0,t.useBackend)(C),g=p.act,V=p.data,I=V.account_number,B=V.owner_name,L=V.money,T=V.suspended,A=V.transactions,x=V.account_pin,E=V.is_department_account;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"#"+I+" / "+B,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function P(){return g("back")}return P}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Number",children:["#",I]}),!!E&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Pin",children:x}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Pin Actions",children:(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"user-cog",content:"Set New Pin",disabled:!!E,onClick:function(){function P(){return g("set_account_pin",{account_number:I})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:B}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:L}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Status",color:T?"red":"green",children:[T?"Suspended":"Active",(0,e.createComponentVNode)(2,o.Button,{ml:1,content:T?"Unsuspend":"Suspend",icon:T?"unlock":"lock",onClick:function(){function P(){return g("toggle_suspension")}return P}()})]})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Transactions",children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Terminal"})]}),A.map(function(P){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.time}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.purpose}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:P.is_deposit?"green":"red",children:["$",P.amount]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.target_name})]},P)})]})})})]})},l=function(N,C){var p=(0,t.useBackend)(C),g=p.act,V=p.data,I=(0,t.useLocalState)(C,"accName",""),B=I[0],L=I[1],T=(0,t.useLocalState)(C,"accDeposit",""),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Create Account",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function E(){return g("back")}return E}()}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Name Here",onChange:function(){function E(P,j){return L(j)}return E}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Initial Deposit",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"0",onChange:function(){function E(P,j){return x(j)}return E}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,content:"Create Account",onClick:function(){function E(){return g("finalise_create_account",{holder_name:B,starting_funds:A})}return E}()})]})}},56793:function(w,r,n){"use strict";r.__esModule=!0,r.AiAirlock=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},b=r.AiAirlock=function(){function k(S,y){var h=(0,a.useBackend)(y),c=h.act,i=h.data,m=f[i.power.main]||f[0],d=f[i.power.backup]||f[0],u=f[i.shock]||f[0];return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main",color:m.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!i.power.main,content:"Disrupt",onClick:function(){function s(){return c("disrupt-main")}return s}()}),children:[i.power.main?"Online":"Offline"," ",!i.wires.main_power&&"[Wires have been cut!]"||i.power.main_timeleft>0&&"["+i.power.main_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Backup",color:d.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!i.power.backup,content:"Disrupt",onClick:function(){function s(){return c("disrupt-backup")}return s}()}),children:[i.power.backup?"Online":"Offline"," ",!i.wires.backup_power&&"[Wires have been cut!]"||i.power.backup_timeleft>0&&"["+i.power.backup_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Electrify",color:u.color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"wrench",disabled:!(i.wires.shock&&i.shock!==2),content:"Restore",onClick:function(){function s(){return c("shock-restore")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"bolt",disabled:!i.wires.shock,content:"Temporary",onClick:function(){function s(){return c("shock-temp")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",disabled:!i.wires.shock||i.shock===0,content:"Permanent",onClick:function(){function s(){return c("shock-perm")}return s}()})],4),children:[i.shock===2?"Safe":"Electrified"," ",!i.wires.shock&&"[Wires have been cut!]"||i.shock_timeleft>0&&"["+i.shock_timeleft+"s]"||i.shock_timeleft===-1&&"[Permanent]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Access and Door Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Scan",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:i.id_scanner?"power-off":"times",content:i.id_scanner?"Enabled":"Disabled",selected:i.id_scanner,disabled:!i.wires.id_scanner,onClick:function(){function s(){return c("idscan-toggle")}return s}()}),children:!i.wires.id_scanner&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Access",buttons:(0,e.createComponentVNode)(2,t.Button,{width:6.5,icon:i.emergency?"power-off":"times",content:i.emergency?"Enabled":"Disabled",selected:i.emergency,onClick:function(){function s(){return c("emergency-toggle")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:i.locked?"lock":"unlock",content:i.locked?"Lowered":"Raised",selected:i.locked,disabled:!i.wires.bolts,onClick:function(){function s(){return c("bolt-toggle")}return s}()}),children:!i.wires.bolts&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:i.lights?"power-off":"times",content:i.lights?"Enabled":"Disabled",selected:i.lights,disabled:!i.wires.lights,onClick:function(){function s(){return c("light-toggle")}return s}()}),children:!i.wires.lights&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:i.safe?"power-off":"times",content:i.safe?"Enabled":"Disabled",selected:i.safe,disabled:!i.wires.safe,onClick:function(){function s(){return c("safe-toggle")}return s}()}),children:!i.wires.safe&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:i.speed?"power-off":"times",content:i.speed?"Enabled":"Disabled",selected:i.speed,disabled:!i.wires.timing,onClick:function(){function s(){return c("speed-toggle")}return s}()}),children:!i.wires.timing&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Control",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:i.opened?"sign-out-alt":"sign-in-alt",content:i.opened?"Open":"Closed",selected:i.opened,disabled:i.locked||i.welded,onClick:function(){function s(){return c("open-close")}return s}()}),children:!!(i.locked||i.welded)&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("[Door is "),i.locked?"bolted":"",i.locked&&i.welded?" and ":"",i.welded?"welded":"",(0,e.createTextVNode)("!]")],0)})]})})]})})}return k}()},72475:function(w,r,n){"use strict";r.__esModule=!0,r.AirAlarm=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(195),b=r.AirAlarm=function(){function u(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.locked;return(0,e.createComponentVNode)(2,o.Window,{width:570,height:p?310:755,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,S),!p&&(0,e.createFragment)([(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,h)],4)]})})}return u}(),k=function(s){return s===0?"green":s===1?"orange":"red"},S=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.air,g=C.mode,V=C.atmos_alarm,I=C.locked,B=C.alarmActivated,L=C.rcon,T=C.target_temp,A;return p.danger.overall===0?V===0?A="Optimal":A="Caution: Atmos alert in area":p.danger.overall===1?A="Caution":A="DANGER: Internals Required",(0,e.createComponentVNode)(2,t.Section,{title:"Air Status",children:p?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:k(p.danger.pressure),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p.pressure})," kPa",!I&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:g===3?"Deactivate Panic Siphon":"Activate Panic Siphon",selected:g===3,icon:"exclamation-triangle",onClick:function(){function x(){return N("mode",{mode:g===3?1:3})}return x}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.oxygen/100,fractionDigits:"1",color:k(p.danger.oxygen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.nitrogen/100,fractionDigits:"1",color:k(p.danger.nitrogen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.co2/100,fractionDigits:"1",color:k(p.danger.co2)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxins",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.plasma/100,fractionDigits:"1",color:k(p.danger.plasma)})}),p.contents.n2o>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.n2o/100,fractionDigits:"1",color:k(p.danger.n2o)})}),p.contents.other>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.other/100,fractionDigits:"1",color:k(p.danger.other)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:k(p.danger.temperature),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p.temperature})," K / ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p.temperature_c})," C\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"thermometer-full",content:T+" C",onClick:function(){function x(){return N("temperature")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:p.thermostat_state?"On":"Off",selected:p.thermostat_state,icon:"power-off",onClick:function(){function x(){return N("thermostat_state")}return x}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Local Status",children:(0,e.createComponentVNode)(2,t.Box,{color:k(p.danger.overall),children:[A,!I&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:B?"Reset Alarm":"Activate Alarm",selected:B,onClick:function(){function x(){return N(B?"atmos_reset":"atmos_alarm")}return x}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Control Settings",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Off",selected:L===1,onClick:function(){function x(){return N("set_rcon",{rcon:1})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Auto",selected:L===2,onClick:function(){function x(){return N("set_rcon",{rcon:2})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"On",selected:L===3,onClick:function(){function x(){return N("set_rcon",{rcon:3})}return x}()})]})]}):(0,e.createComponentVNode)(2,t.Box,{children:"Unable to acquire air sample!"})})},y=function(s,l){var v=(0,a.useLocalState)(l,"tabIndex",0),N=v[0],C=v[1];return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:N===0,onClick:function(){function p(){return C(0)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-out-alt"})," Vent Control"]},"Vents"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:N===1,onClick:function(){function p(){return C(1)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-in-alt"})," Scrubber Control"]},"Scrubbers"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:N===2,onClick:function(){function p(){return C(2)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog"})," Mode"]},"Mode"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:N===3,onClick:function(){function p(){return C(3)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},h=function(s,l){var v=(0,a.useLocalState)(l,"tabIndex",0),N=v[0],C=v[1];switch(N){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,i);case 2:return(0,e.createComponentVNode)(2,m);case 3:return(0,e.createComponentVNode)(2,d);default:return"WE SHOULDN'T BE HERE!"}},c=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.vents;return p.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:g.power?"On":"Off",selected:g.power,icon:"power-off",onClick:function(){function V(){return N("command",{cmd:"power",val:!g.power,id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:g.direction?"Blowing":"Siphoning",icon:g.direction?"sign-out-alt":"sign-in-alt",onClick:function(){function V(){return N("command",{cmd:"direction",val:!g.direction,id_tag:g.id_tag})}return V}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Checks",children:[(0,e.createComponentVNode)(2,t.Button,{content:"External",selected:g.checks===1,onClick:function(){function V(){return N("command",{cmd:"checks",val:1,id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Internal",selected:g.checks===2,onClick:function(){function V(){return N("command",{cmd:"checks",val:2,id_tag:g.id_tag})}return V}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Pressure Target",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:g.external})," kPa\xA0",(0,e.createComponentVNode)(2,t.Button,{content:"Set",icon:"cog",onClick:function(){function V(){return N("command",{cmd:"set_external_pressure",id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset",icon:"redo-alt",onClick:function(){function V(){return N("command",{cmd:"set_external_pressure",val:101.325,id_tag:g.id_tag})}return V}()})]})]})},g.name)})},i=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.scrubbers;return p.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:g.power?"On":"Off",selected:g.power,icon:"power-off",onClick:function(){function V(){return N("command",{cmd:"power",val:!g.power,id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:g.scrubbing?"Scrubbing":"Siphoning",icon:g.scrubbing?"filter":"sign-in-alt",onClick:function(){function V(){return N("command",{cmd:"scrubbing",val:!g.scrubbing,id_tag:g.id_tag})}return V}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,t.Button,{content:g.widenet?"Extended":"Normal",selected:g.widenet,icon:"expand-arrows-alt",onClick:function(){function V(){return N("command",{cmd:"widenet",val:!g.widenet,id_tag:g.id_tag})}return V}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filtering",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Carbon Dioxide",selected:g.filter_co2,onClick:function(){function V(){return N("command",{cmd:"co2_scrub",val:!g.filter_co2,id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Plasma",selected:g.filter_toxins,onClick:function(){function V(){return N("command",{cmd:"tox_scrub",val:!g.filter_toxins,id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrous Oxide",selected:g.filter_n2o,onClick:function(){function V(){return N("command",{cmd:"n2o_scrub",val:!g.filter_n2o,id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Oxygen",selected:g.filter_o2,onClick:function(){function V(){return N("command",{cmd:"o2_scrub",val:!g.filter_o2,id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrogen",selected:g.filter_n2,onClick:function(){function V(){return N("command",{cmd:"n2_scrub",val:!g.filter_n2,id_tag:g.id_tag})}return V}()})]})]})},g.name)})},m=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.modes,g=C.presets,V=C.emagged,I=C.mode,B=C.preset;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"System Mode",children:(0,e.createComponentVNode)(2,t.Table,{children:p.map(function(L){return(!L.emagonly||L.emagonly&&!!V)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:L.name,icon:"cog",selected:L.id===I,onClick:function(){function T(){return N("mode",{mode:L.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.desc})]},L.name)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"System Presets",children:[(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"After making a selection, the system will automatically cycle in order to remove contaminants."}),(0,e.createComponentVNode)(2,t.Table,{mt:1,children:g.map(function(L){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:L.name,icon:"cog",selected:L.id===B,onClick:function(){function T(){return N("preset",{preset:L.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.desc})]},L.name)})})]})],4)},d=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.thresholds;return(0,e.createComponentVNode)(2,t.Section,{title:"Alarm Thresholds",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Max"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Max"})]}),p.map(function(g){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:g.name}),g.settings.map(function(V){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:V.selected===-1?"Off":V.selected,onClick:function(){function I(){return N("command",{cmd:"set_threshold",env:V.env,var:V.val})}return I}()})},V.val)})]},g.name)})]})})}},12333:function(w,r,n){"use strict";r.__esModule=!0,r.AirlockAccessController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AirlockAccessController=function(){function b(k,S){var y=(0,a.useBackend)(S),h=y.act,c=y.data,i=c.exterior_status,m=c.interior_status,d=c.processing,u,s;return i==="open"?u=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:d,onClick:function(){function l(){return h("force_ext")}return l}()}):u=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:d,onClick:function(){function l(){return h("cycle_ext_door")}return l}()}),m==="open"?s=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Lock Interior Door",icon:"exclamation-triangle",disabled:d,color:m==="open"?"red":d?"yellow":null,onClick:function(){function l(){return h("force_int")}return l}()}):s=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:d,onClick:function(){function l(){return h("cycle_int_door")}return l}()}),(0,e.createComponentVNode)(2,o.Window,{width:330,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Door Status",children:i==="closed"?"Locked":"Open"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Door Status",children:m==="closed"?"Locked":"Open"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.Box,{children:[u,s]})})]})})}return b}()},28736:function(w,r,n){"use strict";r.__esModule=!0,r.AirlockElectronics=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(49148),b=1,k=2,S=4,y=8,h=r.AirlockElectronics=function(){function m(d,u){return(0,e.createComponentVNode)(2,o.Window,{width:450,height:565,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i)]})})})}return m}(),c=function(d,u){var s=(0,a.useBackend)(u),l=s.act,v=s.data,N=v.unrestricted_dir;return(0,e.createComponentVNode)(2,t.Section,{title:"Access Control",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,mb:1,children:"Unrestricted Access From:"}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-left",content:"East",selected:N&S,onClick:function(){function C(){return l("unrestricted_access",{unres_dir:S})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-up",content:"South",selected:N&k,onClick:function(){function C(){return l("unrestricted_access",{unres_dir:k})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-right",content:"West",selected:N&y,onClick:function(){function C(){return l("unrestricted_access",{unres_dir:y})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-down",content:"North",selected:N&b,onClick:function(){function C(){return l("unrestricted_access",{unres_dir:b})}return C}()})})]})]})})},i=function(d,u){var s=(0,a.useBackend)(u),l=s.act,v=s.data,N=v.selected_accesses,C=v.one_access,p=v.regions;return(0,e.createComponentVNode)(2,f.AccessList,{usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:C,content:"One",onClick:function(){function g(){return l("set_one_access",{access:"one"})}return g}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!C,content:"All",onClick:function(){function g(){return l("set_one_access",{access:"all"})}return g}()})],4),accesses:p,selectedList:N,accessMod:function(){function g(V){return l("set",{access:V})}return g}(),grantAll:function(){function g(){return l("grant_all")}return g}(),denyAll:function(){function g(){return l("clear_all")}return g}(),grantDep:function(){function g(V){return l("grant_region",{region:V})}return g}(),denyDep:function(){function g(V){return l("deny_region",{region:V})}return g}()})}},47365:function(w,r,n){"use strict";r.__esModule=!0,r.AlertModal=void 0;var e=n(89005),a=n(51057),t=n(72253),o=n(92986),f=n(36036),b=n(98595),k=-1,S=1,y=r.AlertModal=function(){function i(m,d){var u=(0,t.useBackend)(d),s=u.act,l=u.data,v=l.autofocus,N=l.buttons,C=N===void 0?[]:N,p=l.large_buttons,g=l.message,V=g===void 0?"":g,I=l.timeout,B=l.title,L=(0,t.useLocalState)(d,"selected",0),T=L[0],A=L[1],x=110+(V.length>30?Math.ceil(V.length/4):0)+(V.length&&p?5:0),E=325+(C.length>2?100:0),P=function(){function j(M){T===0&&M===k?A(C.length-1):T===C.length-1&&M===S?A(0):A(T+M)}return j}();return(0,e.createComponentVNode)(2,b.Window,{title:B,height:x,width:E,children:[!!I&&(0,e.createComponentVNode)(2,a.Loader,{value:I}),(0,e.createComponentVNode)(2,b.Window.Content,{onKeyDown:function(){function j(M){var R=window.event?M.which:M.keyCode;R===o.KEY_SPACE||R===o.KEY_ENTER?s("choose",{choice:C[T]}):R===o.KEY_ESCAPE?s("cancel"):R===o.KEY_LEFT?(M.preventDefault(),P(k)):(R===o.KEY_TAB||R===o.KEY_RIGHT)&&(M.preventDefault(),P(S))}return j}(),children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,m:1,children:(0,e.createComponentVNode)(2,f.Box,{color:"label",overflow:"hidden",children:V})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:[!!v&&(0,e.createComponentVNode)(2,f.Autofocus),(0,e.createComponentVNode)(2,h,{selected:T})]})]})})})]})}return i}(),h=function(m,d){var u=(0,t.useBackend)(d),s=u.data,l=s.buttons,v=l===void 0?[]:l,N=s.large_buttons,C=s.swapped_buttons,p=m.selected;return(0,e.createComponentVNode)(2,f.Flex,{fill:!0,align:"center",direction:C?"row":"row-reverse",justify:"space-around",wrap:!0,children:v==null?void 0:v.map(function(g,V){return N&&v.length<3?(0,e.createComponentVNode)(2,f.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,c,{button:g,id:V.toString(),selected:p===V})},V):(0,e.createComponentVNode)(2,f.Flex.Item,{grow:N?1:0,children:(0,e.createComponentVNode)(2,c,{button:g,id:V.toString(),selected:p===V})},V)})})},c=function(m,d){var u=(0,t.useBackend)(d),s=u.act,l=u.data,v=l.large_buttons,N=m.button,C=m.selected,p=N.length>7?"100%":7;return(0,e.createComponentVNode)(2,f.Button,{mx:v?1:0,pt:v?.33:0,content:N,fluid:!!v,onClick:function(){function g(){return s("choose",{choice:N})}return g}(),selected:C,textAlign:"center",height:!!v&&2,width:!v&&p})}},71824:function(w,r,n){"use strict";r.__esModule=!0,r.AppearanceChanger=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AppearanceChanger=function(){function k(S,y){var h=(0,a.useBackend)(y),c=h.act,i=h.data,m=i.change_race,d=i.species,u=i.specimen,s=i.change_gender,l=i.gender,v=i.change_eye_color,N=i.change_skin_tone,C=i.change_skin_color,p=i.change_runechat_color,g=i.change_head_accessory_color,V=i.change_hair_color,I=i.change_secondary_hair_color,B=i.change_facial_hair_color,L=i.change_secondary_facial_hair_color,T=i.change_head_marking_color,A=i.change_body_marking_color,x=i.change_tail_marking_color,E=i.change_head_accessory,P=i.head_accessory_styles,j=i.head_accessory_style,M=i.change_hair,R=i.hair_styles,D=i.hair_style,W=i.change_hair_gradient,_=i.change_facial_hair,U=i.facial_hair_styles,K=i.facial_hair_style,G=i.change_head_markings,$=i.head_marking_styles,Q=i.head_marking_style,J=i.change_body_markings,ie=i.body_marking_styles,ne=i.body_marking_style,se=i.change_tail_markings,Ce=i.tail_marking_styles,Se=i.tail_marking_style,ke=i.change_body_accessory,he=i.body_accessory_styles,oe=i.body_accessory_style,ce=i.change_alt_head,ee=i.alt_head_styles,fe=i.alt_head_style,me=!1;return(v||N||C||g||p||V||I||B||L||T||A||x)&&(me=!0),(0,e.createComponentVNode)(2,o.Window,{width:800,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:d.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.specimen,selected:te.specimen===u,onClick:function(){function be(){return c("race",{race:te.specimen})}return be}()},te.specimen)})}),!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Male",selected:l==="male",onClick:function(){function te(){return c("gender",{gender:"male"})}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Female",selected:l==="female",onClick:function(){function te(){return c("gender",{gender:"female"})}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Genderless",selected:l==="plural",onClick:function(){function te(){return c("gender",{gender:"plural"})}return te}()})]}),!!me&&(0,e.createComponentVNode)(2,b),!!E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head accessory",children:P.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.headaccessorystyle,selected:te.headaccessorystyle===j,onClick:function(){function be(){return c("head_accessory",{head_accessory:te.headaccessorystyle})}return be}()},te.headaccessorystyle)})}),!!M&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair",children:R.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.hairstyle,selected:te.hairstyle===D,onClick:function(){function be(){return c("hair",{hair:te.hairstyle})}return be}()},te.hairstyle)})}),!!W&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair Gradient",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Change Style",onClick:function(){function te(){return c("hair_gradient")}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Offset",onClick:function(){function te(){return c("hair_gradient_offset")}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Color",onClick:function(){function te(){return c("hair_gradient_colour")}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Alpha",onClick:function(){function te(){return c("hair_gradient_alpha")}return te}()})]}),!!_&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Facial hair",children:U.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.facialhairstyle,selected:te.facialhairstyle===K,onClick:function(){function be(){return c("facial_hair",{facial_hair:te.facialhairstyle})}return be}()},te.facialhairstyle)})}),!!G&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head markings",children:$.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.headmarkingstyle,selected:te.headmarkingstyle===Q,onClick:function(){function be(){return c("head_marking",{head_marking:te.headmarkingstyle})}return be}()},te.headmarkingstyle)})}),!!J&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body markings",children:ie.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.bodymarkingstyle,selected:te.bodymarkingstyle===ne,onClick:function(){function be(){return c("body_marking",{body_marking:te.bodymarkingstyle})}return be}()},te.bodymarkingstyle)})}),!!se&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tail markings",children:Ce.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.tailmarkingstyle,selected:te.tailmarkingstyle===Se,onClick:function(){function be(){return c("tail_marking",{tail_marking:te.tailmarkingstyle})}return be}()},te.tailmarkingstyle)})}),!!ke&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body accessory",children:he.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.bodyaccessorystyle,selected:te.bodyaccessorystyle===oe,onClick:function(){function be(){return c("body_accessory",{body_accessory:te.bodyaccessorystyle})}return be}()},te.bodyaccessorystyle)})}),!!ce&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alternate head",children:ee.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.altheadstyle,selected:te.altheadstyle===fe,onClick:function(){function be(){return c("alt_head",{alt_head:te.altheadstyle})}return be}()},te.altheadstyle)})})]})})})}return k}(),b=function(S,y){var h=(0,a.useBackend)(y),c=h.act,i=h.data,m=[{key:"change_eye_color",text:"Change eye color",action:"eye_color"},{key:"change_skin_tone",text:"Change skin tone",action:"skin_tone"},{key:"change_skin_color",text:"Change skin color",action:"skin_color"},{key:"change_runechat_color",text:"Change runechat color",action:"runechat_color"},{key:"change_head_accessory_color",text:"Change head accessory color",action:"head_accessory_color"},{key:"change_hair_color",text:"Change hair color",action:"hair_color"},{key:"change_secondary_hair_color",text:"Change secondary hair color",action:"secondary_hair_color"},{key:"change_facial_hair_color",text:"Change facial hair color",action:"facial_hair_color"},{key:"change_secondary_facial_hair_color",text:"Change secondary facial hair color",action:"secondary_facial_hair_color"},{key:"change_head_marking_color",text:"Change head marking color",action:"head_marking_color"},{key:"change_body_marking_color",text:"Change body marking color",action:"body_marking_color"},{key:"change_tail_marking_color",text:"Change tail marking color",action:"tail_marking_color"}];return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Colors",children:m.map(function(d){return!!i[d.key]&&(0,e.createComponentVNode)(2,t.Button,{content:d.text,onClick:function(){function u(){return c(d.action)}return u}()},d.key)})})}},72285:function(w,r,n){"use strict";r.__esModule=!0,r.AtmosAlertConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AtmosAlertConsole=function(){function b(k,S){var y=(0,a.useBackend)(S),h=y.act,c=y.data,i=c.priority||[],m=c.minor||[];return(0,e.createComponentVNode)(2,o.Window,{width:350,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Alarms",children:(0,e.createVNode)(1,"ul",null,[i.length===0&&(0,e.createVNode)(1,"li","color-good","No Priority Alerts",16),i.map(function(d){return(0,e.createVNode)(1,"li","color-bad",d,0,null,d)}),m.length===0&&(0,e.createVNode)(1,"li","color-good","No Minor Alerts",16),m.map(function(d){return(0,e.createVNode)(1,"li","color-average",d,0,null,d)})],0)})})})}return b}()},65805:function(w,r,n){"use strict";r.__esModule=!0,r.AtmosControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(36352),f=n(98595),b=function(i){if(i===0)return(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Good"});if(i===1)return(0,e.createComponentVNode)(2,t.Box,{color:"orange",bold:!0,children:"Warning"});if(i===2)return(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"DANGER"})},k=function(i){if(i===0)return"green";if(i===1)return"orange";if(i===2)return"red"},S=r.AtmosControl=function(){function c(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=(0,a.useLocalState)(m,"tabIndex",0),v=l[0],N=l[1],C=function(){function p(g){switch(g){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,h);default:return"WE SHOULDN'T BE HERE!"}}return p}();return(0,e.createComponentVNode)(2,f.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:v===0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===0,onClick:function(){function p(){return N(0)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===1,onClick:function(){function p(){return N(1)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),C(v)]})})})}return c}(),y=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.alarms;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Access"})]}),l.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,o.TableCell,{children:v.name}),(0,e.createComponentVNode)(2,o.TableCell,{children:b(v.danger)}),(0,e.createComponentVNode)(2,o.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Access",onClick:function(){function N(){return u("open_alarm",{aref:v.ref})}return N}()})})]},v.name)})]})})},h=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.alarms;return(0,e.createComponentVNode)(2,t.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,t.NanoMap,{children:l.filter(function(v){return v.z===2}).map(function(v){return(0,e.createComponentVNode)(2,t.NanoMap.MarkerIcon,{x:v.x,y:v.y,icon:"circle",tooltip:v.name,color:k(v.danger),onClick:function(){function N(){return u("open_alarm",{aref:v.ref})}return N}()},v.ref)})})})}},87816:function(w,r,n){"use strict";r.__esModule=!0,r.AtmosFilter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AtmosFilter=function(){function b(k,S){var y=(0,a.useBackend)(S),h=y.act,c=y.data,i=c.on,m=c.pressure,d=c.max_pressure,u=c.filter_type,s=c.filter_type_list;return(0,e.createComponentVNode)(2,o.Window,{width:380,height:140,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:i?"On":"Off",color:i?null:"red",selected:i,onClick:function(){function l(){return h("power")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:m===0,width:2.2,onClick:function(){function l(){return h("min_pressure")}return l}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:d,value:m,onDrag:function(){function l(v,N){return h("custom_pressure",{pressure:N})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===d,width:2.2,onClick:function(){function l(){return h("max_pressure")}return l}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:s.map(function(l){return(0,e.createComponentVNode)(2,t.Button,{selected:l.gas_type===u,content:l.label,onClick:function(){function v(){return h("set_filter",{filter:l.gas_type})}return v}()},l.label)})})]})})})})}return b}()},52977:function(w,r,n){"use strict";r.__esModule=!0,r.AtmosMixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AtmosMixer=function(){function k(S,y){var h=(0,a.useBackend)(y),c=h.act,i=h.data,m=i.on,d=i.pressure,u=i.max_pressure,s=i.node1_concentration,l=i.node2_concentration;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:165,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:m?"On":"Off",color:m?null:"red",selected:m,onClick:function(){function v(){return c("power")}return v}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:d===0,width:2.2,onClick:function(){function v(){return c("min_pressure")}return v}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:u,value:d,onDrag:function(){function v(N,C){return c("custom_pressure",{pressure:C})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:d===u,width:2.2,onClick:function(){function v(){return c("max_pressure")}return v}()})]}),(0,e.createComponentVNode)(2,b,{node_name:"Node 1",node_ref:s}),(0,e.createComponentVNode)(2,b,{node_name:"Node 2",node_ref:l})]})})})})}return k}(),b=function(S,y){var h=(0,a.useBackend)(y),c=h.act,i=h.data,m=S.node_name,d=S.node_ref;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:m,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",width:2.2,disabled:d===0,onClick:function(){function u(){return c("set_node",{node_name:m,concentration:(d-10)/100})}return u}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"%",width:6.1,lineHeight:1.5,stepPixelSize:10,minValue:0,maxValue:100,value:d,onChange:function(){function u(s,l){return c("set_node",{node_name:m,concentration:l/100})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:d===100,onClick:function(){function u(){return c("set_node",{node_name:m,concentration:(d+10)/100})}return u}()})]})}},11748:function(w,r,n){"use strict";r.__esModule=!0,r.AtmosPump=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AtmosPump=function(){function b(k,S){var y=(0,a.useBackend)(S),h=y.act,c=y.data,i=c.on,m=c.rate,d=c.max_rate,u=c.gas_unit,s=c.step;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:110,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:i?"On":"Off",color:i?null:"red",selected:i,onClick:function(){function l(){return h("power")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:m===0,width:2.2,onClick:function(){function l(){return h("min_rate")}return l}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:u,width:6.1,lineHeight:1.5,step:s,minValue:0,maxValue:d,value:m,onDrag:function(){function l(v,N){return h("custom_rate",{rate:N})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===d,width:2.2,onClick:function(){function l(){return h("max_rate")}return l}()})]})]})})})})}return b}()},69321:function(w,r,n){"use strict";r.__esModule=!0,r.AtmosTankControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(44879),f=n(76910),b=n(98595),k=r.AtmosTankControl=function(){function S(y,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.sensors||{};return(0,e.createComponentVNode)(2,b.Window,{width:400,height:400,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:[Object.keys(d).map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[Object.keys(d[u]).indexOf("pressure")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:[d[u].pressure," kpa"]}):"",Object.keys(d[u]).indexOf("temperature")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[d[u].temperature," K"]}):"",["o2","n2","plasma","co2","n2o"].map(function(s){return Object.keys(d[u]).indexOf(s)>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(0,f.getGasLabel)(s),children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:(0,f.getGasColor)(s),value:d[u][s],minValue:0,maxValue:100,children:(0,o.toFixed)(d[u][s],2)+"%"})},(0,f.getGasLabel)(s)):""})]})},u)}),m.inlet&&Object.keys(m.inlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Inlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(m.inlet.on,"power-off"),content:m.inlet.on?"On":"Off",color:m.inlet.on?null:"red",selected:m.inlet.on,onClick:function(){function u(){return i("toggle_active",{dev:"inlet"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"L/s",width:6.1,lineHeight:1.5,step:1,minValue:0,maxValue:50,value:m.inlet.rate,onDrag:function(){function u(s,l){return i("set_pressure",{dev:"inlet",val:l})}return u}()})})]})}):"",m.outlet&&Object.keys(m.outlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Outlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(m.outlet.on,"power-off"),content:m.outlet.on?"On":"Off",color:m.outlet.on?null:"red",selected:m.outlet.on,onClick:function(){function u(){return i("toggle_active",{dev:"outlet"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:5066,value:m.outlet.rate,onDrag:function(){function u(s,l){return i("set_pressure",{dev:"outlet",val:l})}return u}()})})]})}):""]})})}return S}()},59179:function(w,r,n){"use strict";r.__esModule=!0,r.Autolathe=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),f=n(36036),b=n(98595),k=n(25328),S=function(c,i,m,d){return c.requirements===null?!0:!(c.requirements.metal*d>i||c.requirements.glass*d>m)},y=r.Autolathe=function(){function h(c,i){var m=(0,o.useBackend)(i),d=m.act,u=m.data,s=u.total_amount,l=u.max_amount,v=u.metal_amount,N=u.glass_amount,C=u.busyname,p=u.busyamt,g=u.showhacked,V=u.buildQueue,I=u.buildQueueLen,B=u.recipes,L=u.categories,T=(0,o.useSharedState)(i,"category",0),A=T[0],x=T[1];A===0&&(A="Tools");var E=v.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),P=N.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),j=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),M=(0,o.useSharedState)(i,"search_text",""),R=M[0],D=M[1],W=(0,k.createSearch)(R,function(G){return G.name}),_="";I>0&&(_=V.map(function(G,$){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"times",color:"transparent",content:V[$][0],onClick:function(){function Q(){return d("remove_from_queue",{remove_from_queue:V.indexOf(G)+1})}return Q}()},G)},$)}));var U=(0,a.flow)([(0,t.filter)(function(G){return(G.category.indexOf(A)>-1||R)&&(u.showhacked||!G.hacked)}),R&&(0,t.filter)(W),(0,t.sortBy)(function(G){return G.name.toLowerCase()})])(B),K="Build";return R?K="Results for: '"+R+"':":A&&(K="Build ("+A+")"),(0,e.createComponentVNode)(2,b.Window,{width:750,height:525,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{width:"70%",children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:K,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"150px",options:L,selected:A,onSelected:function(){function G($){return x($)}return G}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function G($,Q){return D(Q)}return G}(),mb:1}),U.map(function(G){return(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+G.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===G.name&&u.busyamt===1,disabled:!S(G,u.metal_amount,u.glass_amount,1),onClick:function(){function $(){return d("make",{make:G.uid,multiplier:1})}return $}(),children:(0,k.toTitleCase)(G.name)}),G.max_multiplier>=10&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===G.name&&u.busyamt===10,disabled:!S(G,u.metal_amount,u.glass_amount,10),onClick:function(){function $(){return d("make",{make:G.uid,multiplier:10})}return $}(),children:"10x"}),G.max_multiplier>=25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===G.name&&u.busyamt===25,disabled:!S(G,u.metal_amount,u.glass_amount,25),onClick:function(){function $(){return d("make",{make:G.uid,multiplier:25})}return $}(),children:"25x"}),G.max_multiplier>25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===G.name&&u.busyamt===G.max_multiplier,disabled:!S(G,u.metal_amount,u.glass_amount,G.max_multiplier),onClick:function(){function $(){return d("make",{make:G.uid,multiplier:G.max_multiplier})}return $}(),children:[G.max_multiplier,"x"]}),G.requirements&&Object.keys(G.requirements).map(function($){return(0,k.toTitleCase)($)+": "+G.requirements[$]}).join(", ")||(0,e.createComponentVNode)(2,f.Box,{children:"No resources required."})]},G.ref)})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{width:"30%",children:[(0,e.createComponentVNode)(2,f.Section,{title:"Materials",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Metal",children:E}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Glass",children:P}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Total",children:j}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Storage",children:[u.fill_percent,"% Full"]})]})}),(0,e.createComponentVNode)(2,f.Section,{title:"Building",children:(0,e.createComponentVNode)(2,f.Box,{color:C?"green":"",children:C||"Nothing"})}),(0,e.createComponentVNode)(2,f.Section,{title:"Build Queue",height:23.7,children:[_,(0,e.createComponentVNode)(2,f.Button,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!u.buildQueueLen,onClick:function(){function G(){return d("clear_queue")}return G}()})]})]})]})})})}return h}()},5147:function(w,r,n){"use strict";r.__esModule=!0,r.BioChipPad=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.BioChipPad=function(){function b(k,S){var y=(0,a.useBackend)(S),h=y.act,c=y.data,i=c.implant,m=c.contains_case,d=c.gps,u=c.tag,s=(0,a.useLocalState)(S,"newTag",u),l=s[0],v=s[1];return(0,e.createComponentVNode)(2,o.Window,{width:410,height:325,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Bio-chip Mini-Computer",buttons:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject Case",icon:"eject",disabled:!m,onClick:function(){function N(){return h("eject_case")}return N}()})}),children:i&&m?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{bold:!0,mb:2,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+i.image,ml:0,mr:2,style:{"vertical-align":"middle",width:"32px"}}),i.name]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Life",children:i.life}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Notes",children:i.notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Function",children:i.function}),!!d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,t.Input,{width:"5.5rem",value:u,onEnter:function(){function N(){return h("tag",{newtag:l})}return N}(),onInput:function(){function N(C,p){return v(p)}return N}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:u===l,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function N(){return h("tag",{newtag:l})}return N}(),children:(0,e.createComponentVNode)(2,t.Icon,{name:"pen"})})]})]})],4):m?(0,e.createComponentVNode)(2,t.Box,{children:"This bio-chip case has no implant!"}):(0,e.createComponentVNode)(2,t.Box,{children:"Please insert a bio-chip casing!"})})})})}return b}()},64273:function(w,r,n){"use strict";r.__esModule=!0,r.Biogenerator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(62411),b=r.Biogenerator=function(){function c(i,m){var d=(0,a.useBackend)(m),u=d.data,s=d.config,l=u.container,v=u.processing,N=s.title;return(0,e.createComponentVNode)(2,o.Window,{width:390,height:595,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Operating,{operating:v,name:N}),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y),l?(0,e.createComponentVNode)(2,h):(0,e.createComponentVNode)(2,k)]})})})}return c}(),k=function(i,m){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The biogenerator is missing a container."]})})})},S=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.biomass,v=s.container,N=s.container_curr_reagents,C=s.container_max_reagents;return(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"20px",color:"silver",children:"Biomass:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"5px",children:l}),(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"21px",mt:"8px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"10px",color:"silver",children:"Container:"}),v?(0,e.createComponentVNode)(2,t.ProgressBar,{value:N,maxValue:C,children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:N+" / "+C+" units"})}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"None"})]})]})},y=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.has_plants,v=s.container;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:!l,tooltip:l?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",content:"Activate",onClick:function(){function N(){return u("activate")}return N}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"flask",disabled:!v,tooltip:v?"":"The biogenerator does not have a container.",tooltipPosition:"top",content:"Detach Container",onClick:function(){function N(){return u("detach_container")}return N}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!l,tooltip:l?"":"There are no stored plants to eject.",tooltipPosition:"top-end",content:"Eject Plants",onClick:function(){function N(){return u("eject_plants")}return N}()})})]})})},h=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.biomass,v=s.product_list,N=(0,a.useSharedState)(m,"vendAmount",1),C=N[0],p=N[1],g=Object.entries(v).map(function(V,I){var B=Object.entries(V[1]).map(function(L){return L[1]});return(0,e.createComponentVNode)(2,t.Collapsible,{title:V[0],open:!0,children:B.map(function(L){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",ml:"2px",children:L.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"20%",children:[L.cost*C,(0,e.createComponentVNode)(2,t.Icon,{ml:"5px",name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{content:"Vend",disabled:ls&&"bad"||"good";return(0,e.createComponentVNode)(2,o.Window,{width:650,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Input Management",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Input",children:[(0,e.createComponentVNode)(2,t.Button,{icon:I&&!g?"toggle-on":"toggle-off",content:"Auto shutdown",color:I&&!g?"green":"red",disabled:!!g,tooltip:"Turn auto shutdown on or off",onClick:function(){function A(){return i("auto_shutdown")}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:B&&!g?"toggle-on":"toggle-off",content:"Stabilizers",color:B&&!g?"green":"red",disabled:!!g,tooltip:"Turn stabilizers on or off",onClick:function(){function A(){return i("stabilizers")}return A}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Level",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Desired Level",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:u===0||g,tooltip:"Set to 0",onClick:function(){function A(){return i("set",{set_level:0})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"step-backward",tooltip:"Decrease to actual input level",disabled:u===0||g,onClick:function(){function A(){return i("set",{set_level:s})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:u===0||g,tooltip:"Decrease one step",onClick:function(){function A(){return i("decrease")}return A}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,t.Slider,{disabled:g,value:u,fillValue:s,minValue:0,color:T,maxValue:p,stepPixelSize:20,step:1,onChange:function(){function A(x,E){return i("set",{set_level:E})}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:u===p||g,tooltip:"Increase one step",tooltipPosition:"left",onClick:function(){function A(){return i("increase")}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:u===p||g,tooltip:"Set to max",tooltipPosition:"left",onClick:function(){function A(){return i("set",{set_level:p})}return A}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Power Use",children:(0,f.formatPower)(N)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mining Power Use",children:(0,f.formatPower)(N-L)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stabilizer Power Use",children:(0,f.formatPower)(L)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mining Power for next level",children:(0,f.formatPower)(V)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Surplus Power",children:(0,f.formatPower)(C)})]})]})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Points",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Points",children:v})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{align:"end",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(A){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:A.name,children:(0,e.createComponentVNode)(2,t.Button,{disabled:A.price>=l,onClick:function(){function x(){return i("vend",{target:A.key})}return x}(),content:A.price})},A.key)})})})})]})})]})})})}return S}(),k=r.Alerts=function(){function S(y,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.product||[],u=m.inputLevel,s=m.emagged,l=m.safeLevels,v=m.autoShutown,N=m.stabilizers,C=m.overhead;return(0,e.createFragment)([!v&&!s&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Auto shutdown disabled"}),s?(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"All safeties disabled"}):u<=l?"":N?u-C>l?(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Stabilizers overwhelmed, Instability likely"}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"High Power, engaging stabilizers"}):(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Stabilizers disabled, Instability likely"})],0)}return S}()},33758:function(w,r,n){"use strict";r.__esModule=!0,r.BodyScanner=void 0;var e=n(89005),a=n(44879),t=n(25328),o=n(72253),f=n(36036),b=n(98595),k=[["good","Alive"],["average","Critical"],["bad","DEAD"]],S=[["hasVirus","bad","Viral pathogen detected in blood stream."],["blind","average","Cataracts detected."],["colourblind","average","Photoreceptor abnormalities detected."],["nearsighted","average","Retinal misalignment detected."]],y=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Cellular","cloneLoss"],["Burn","fireLoss"],["Inebriation","drunkenness"]],h={average:[.25,.5],bad:[.5,1/0]},c=function(I,B){for(var L=[],T=0;T0?I.filter(function(B){return!!B}).reduce(function(B,L){return(0,e.createFragment)([B,(0,e.createComponentVNode)(2,f.Box,{children:L},L)],0)},null):null},m=function(I){if(I>100){if(I<300)return"mild infection";if(I<400)return"mild infection+";if(I<500)return"mild infection++";if(I<700)return"acute infection";if(I<800)return"acute infection+";if(I<900)return"acute infection++";if(I>=900)return"septic"}return""},d=r.BodyScanner=function(){function V(I,B){var L=(0,o.useBackend)(B),T=L.data,A=T.occupied,x=T.occupant,E=x===void 0?{}:x,P=A?(0,e.createComponentVNode)(2,u,{occupant:E}):(0,e.createComponentVNode)(2,g);return(0,e.createComponentVNode)(2,b.Window,{width:700,height:600,title:"Body Scanner",children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:P})})}return V}(),u=function(I){var B=I.occupant;return(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,s,{occupant:B}),(0,e.createComponentVNode)(2,l,{occupant:B}),(0,e.createComponentVNode)(2,v,{occupant:B}),(0,e.createComponentVNode)(2,C,{organs:B.extOrgan}),(0,e.createComponentVNode)(2,p,{organs:B.intOrgan})]})},s=function(I,B){var L=(0,o.useBackend)(B),T=L.act,A=L.data,x=A.occupant;return(0,e.createComponentVNode)(2,f.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Button,{icon:"print",onClick:function(){function E(){return T("print_p")}return E}(),children:"Print Report"}),(0,e.createComponentVNode)(2,f.Button,{icon:"user-slash",onClick:function(){function E(){return T("ejectify")}return E}(),children:"Eject"})],4),children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Name",children:x.name}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:x.maxHealth,value:x.health/x.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Status",color:k[x.stat][0],children:k[x.stat][1]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,f.AnimatedNumber,{value:(0,a.round)(x.bodyTempC)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,f.AnimatedNumber,{value:(0,a.round)(x.bodyTempF)}),"\xB0F"]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Implants",children:x.implant_len?(0,e.createComponentVNode)(2,f.Box,{children:x.implant.map(function(E){return E.name}).join(", ")}):(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"None"})})]})})},l=function(I){var B=I.occupant;return B.hasBorer||B.blind||B.colourblind||B.nearsighted||B.hasVirus?(0,e.createComponentVNode)(2,f.Section,{title:"Abnormalities",children:S.map(function(L,T){if(B[L[0]])return(0,e.createComponentVNode)(2,f.Box,{color:L[1],bold:L[1]==="bad",children:L[2]},L[2])})}):(0,e.createComponentVNode)(2,f.Section,{title:"Abnormalities",children:(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No abnormalities found."})})},v=function(I){var B=I.occupant;return(0,e.createComponentVNode)(2,f.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,f.Table,{children:c(y,function(L,T,A){return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:[L[0],":"]}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:!!T&&T[0]+":"})]}),(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:(0,e.createComponentVNode)(2,N,{value:B[L[1]],marginBottom:A100)&&"average"||!!B.status.robotic&&"label",width:"33%",children:(0,t.capitalize)(B.name)}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,f.ProgressBar,{m:-.5,min:"0",max:B.maxHealth,mt:L>0&&"0.5rem",value:B.totalLoss/B.maxHealth,ranges:h,children:(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Tooltip,{content:"Total damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"heartbeat",mr:.5}),(0,a.round)(B.totalLoss)]})}),!!B.bruteLoss&&(0,e.createComponentVNode)(2,f.Tooltip,{content:"Brute damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,f.Icon,{name:"bone",mr:.5}),(0,a.round)(B.bruteLoss)]})}),!!B.fireLoss&&(0,e.createComponentVNode)(2,f.Tooltip,{content:"Burn damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"fire",mr:.5}),(0,a.round)(B.fireLoss)]})})]})})}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,f.Box,{color:"average",inline:!0,children:i([!!B.internalBleeding&&"Internal bleeding",!!B.burnWound&&"Critical tissue burns",!!B.lungRuptured&&"Ruptured lung",!!B.status.broken&&B.status.broken,m(B.germ_level),!!B.open&&"Open incision"])}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,children:[i([!!B.status.splinted&&(0,e.createComponentVNode)(2,f.Box,{color:"good",children:"Splinted"}),!!B.status.robotic&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Robotic"}),!!B.status.dead&&(0,e.createComponentVNode)(2,f.Box,{color:"bad",bold:!0,children:"DEAD"})]),i(B.shrapnel.map(function(T){return T.known?T.name:"Unknown object"}))]})]})]},L)})]})})},p=function(I){return I.organs.length===0?(0,e.createComponentVNode)(2,f.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"N/A"})}):(0,e.createComponentVNode)(2,f.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,f.Table,{children:[(0,e.createComponentVNode)(2,f.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:"Damage"}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",children:"Injuries"})]}),I.organs.map(function(B,L){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{color:!!B.dead&&"bad"||B.germ_level>100&&"average"||B.robotic>0&&"label",width:"33%",children:(0,t.capitalize)(B.name)}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:B.maxHealth,value:B.damage/B.maxHealth,mt:L>0&&"0.5rem",ranges:h,children:(0,a.round)(B.damage)})}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,f.Box,{color:"average",inline:!0,children:i([m(B.germ_level)])}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,children:i([B.robotic===1&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Robotic"}),B.robotic===2&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Assisted"}),!!B.dead&&(0,e.createComponentVNode)(2,f.Box,{color:"bad",bold:!0,children:"DEAD"})])})]})]},L)})]})})},g=function(){return(0,e.createComponentVNode)(2,f.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},67963:function(w,r,n){"use strict";r.__esModule=!0,r.BookBinder=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=n(39473),k=r.BookBinder=function(){function S(y,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.selectedbook,u=m.book_categories,s=[];return u.map(function(l){return s[l.description]=l.category_id}),(0,e.createComponentVNode)(2,o.Window,{width:600,height:400,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Book Binder",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",width:"auto",content:"Print Book",onClick:function(){function l(){return i("print_book")}return l}()}),children:[(0,e.createComponentVNode)(2,t.Box,{ml:10,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:"1rem"}),"Book Binder"]}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:d.title,onClick:function(){function l(){return(0,f.modalOpen)(h,"edit_selected_title")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:d.author,onClick:function(){function l(){return(0,f.modalOpen)(h,"edit_selected_author")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"190px",options:u.map(function(l){return l.description}),onSelected:function(){function l(v){return i("toggle_binder_category",{category_id:s[v]})}return l}()})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",width:"auto",content:"Edit Summary",onClick:function(){function l(){return(0,f.modalOpen)(h,"edit_selected_summary")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:d.summary})]}),(0,e.createVNode)(1,"br"),u.filter(function(l){return d.categories.includes(l.category_id)}).map(function(l){return(0,e.createComponentVNode)(2,t.Button,{content:l.description,selected:!0,icon:"unlink",onClick:function(){function v(){return i("toggle_binder_category",{category_id:l.category_id})}return v}()},l.category_id)})]})})]})})})]})}return S}()},61925:function(w,r,n){"use strict";r.__esModule=!0,r.BotCall=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(c){var i=[{modes:[0],label:"Idle",color:"green"},{modes:[1,2,3],label:"Arresting",color:"yellow"},{modes:[4,5],label:"Patrolling",color:"average"},{modes:[9],label:"Moving",color:"average"},{modes:[6,11],label:"Responding",color:"green"},{modes:[12],label:"Delivering Cargo",color:"blue"},{modes:[13],label:"Returning Home",color:"blue"},{modes:[7,8,10,14,15,16,17,18,19],label:"Working",color:"blue"}],m=i.find(function(d){return d.modes.includes(c)});return(0,e.createComponentVNode)(2,t.Box,{color:m.color,children:[" ",m.label," "]})},b=r.BotCall=function(){function h(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=(0,a.useLocalState)(i,"tabIndex",0),l=s[0],v=s[1],N={0:"Security",1:"Medibot",2:"Cleanbot",3:"Floorbot",4:"Mule",5:"Honkbot"},C=function(){function p(g){return N[g]?(0,e.createComponentVNode)(2,k,{model:N[g]}):"This should not happen. Report on Paradise Github"}return p}();return(0,e.createComponentVNode)(2,o.Window,{width:700,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:l===0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,textAlign:"center",children:Array.from({length:6}).map(function(p,g){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:l===g,onClick:function(){function V(){return v(g)}return V}(),children:N[g]},g)})})}),C(l)]})})})}return h}(),k=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.bots;return s[c.model]!==void 0?(0,e.createComponentVNode)(2,y,{model:[c.model]}):(0,e.createComponentVNode)(2,S,{model:[c.model]})},S=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data;return(0,e.createComponentVNode)(2,t.Stack,{justify:"center",align:"center",fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Box,{bold:1,color:"bad",children:["No ",[c.model]," detected"]})})},y=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.bots;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Model"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Location"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Interface"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Call"})]}),s[c.model].map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.model}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.on?f(l.status):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Off"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.location}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Interface",onClick:function(){function v(){return d("interface",{botref:l.UID})}return v}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Call",onClick:function(){function v(){return d("call",{botref:l.UID})}return v}()})})]},l.UID)})]})})})}},20464:function(w,r,n){"use strict";r.__esModule=!0,r.BotClean=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(92963),b=r.BotClean=function(){function k(S,y){var h=(0,a.useBackend)(y),c=h.act,i=h.data,m=i.locked,d=i.noaccess,u=i.maintpanel,s=i.on,l=i.autopatrol,v=i.canhack,N=i.emagged,C=i.remote_disabled,p=i.painame,g=i.cleanblood,V=i.area;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Cleaning Settings",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Clean Blood",disabled:d,onClick:function(){function I(){return c("blood")}return I}()})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc Settings",children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:V?"Reset Area Selection":"Restrict to Current Area",onClick:function(){function I(){return c("area")}return I}()}),V!==null&&(0,e.createComponentVNode)(2,t.LabeledList,{mb:1,children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Locked Area",children:V})})]}),p&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:p,disabled:d,onClick:function(){function I(){return c("ejectpai")}return I}()})})]})})}return k}()},69479:function(w,r,n){"use strict";r.__esModule=!0,r.BotFloor=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(92963),b=r.BotFloor=function(){function k(S,y){var h=(0,a.useBackend)(y),c=h.act,i=h.data,m=i.noaccess,d=i.painame,u=i.hullplating,s=i.replace,l=i.eat,v=i.make,N=i.fixfloor,C=i.nag_empty,p=i.magnet,g=i.tiles_amount;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:510,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Floor Settings",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"5px",children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tiles Left",children:g})}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Add tiles to new hull plating",tooltip:"Fixing a plating requires the removal of floor tile. This will place it back after repairing. Same goes for hull breaches",disabled:m,onClick:function(){function V(){return c("autotile")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Add floor tiles on exposed hull plating",tooltip:"Example: It will add tiles to maintenance",disabled:m,onClick:function(){function V(){return c("replacetiles")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:N,content:"Repair damaged tiles and platings",disabled:m,onClick:function(){function V(){return c("fixfloors")}return V}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Miscellaneous",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:l,content:"Finds tiles",disabled:m,onClick:function(){function V(){return c("eattiles")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Make pieces of metal into tiles when empty",disabled:m,onClick:function(){function V(){return c("maketiles")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Transmit notice when empty",disabled:m,onClick:function(){function V(){return c("nagonempty")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:p,content:"Traction Magnets",disabled:m,onClick:function(){function V(){return c("anchored")}return V}()})]}),d&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,icon:"eject",content:d,disabled:m,onClick:function(){function V(){return c("ejectpai")}return V}()})})]})})}return k}()},59887:function(w,r,n){"use strict";r.__esModule=!0,r.BotHonk=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(92963),b=r.BotHonk=function(){function k(S,y){var h=(0,a.useBackend)(y),c=h.act,i=h.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:220,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.BotStatus)})})}return k}()},80063:function(w,r,n){"use strict";r.__esModule=!0,r.BotMed=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(92963),b=r.BotMed=function(){function k(S,y){var h=(0,a.useBackend)(y),c=h.act,i=h.data,m=i.locked,d=i.noaccess,u=i.maintpanel,s=i.on,l=i.autopatrol,v=i.canhack,N=i.emagged,C=i.remote_disabled,p=i.painame,g=i.shut_up,V=i.declare_crit,I=i.stationary_mode,B=i.heal_threshold,L=i.injection_amount,T=i.use_beaker,A=i.treat_virus,x=i.reagent_glass;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Communication Settings",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Speaker",checked:!g,disabled:d,onClick:function(){function E(){return c("toggle_speaker")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Critical Patient Alerts",checked:V,disabled:d,onClick:function(){function E(){return c("toggle_critical_alerts")}return E}()})]}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Treatment Settings",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Healing Threshold",children:(0,e.createComponentVNode)(2,t.Slider,{value:B.value,minValue:B.min,maxValue:B.max,step:5,disabled:d,onChange:function(){function E(P,j){return c("set_heal_threshold",{target:j})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Injection Level",children:(0,e.createComponentVNode)(2,t.Slider,{value:L.value,minValue:L.min,maxValue:L.max,step:5,format:function(){function E(P){return P+"u"}return E}(),disabled:d,onChange:function(){function E(P,j){return c("set_injection_amount",{target:j})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reagent Source",children:(0,e.createComponentVNode)(2,t.Button,{content:T?"Beaker":"Internal Synthesizer",icon:T?"flask":"cogs",disabled:d,onClick:function(){function E(){return c("toggle_use_beaker")}return E}()})}),x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:x.amount,minValue:0,maxValue:x.max_amount,children:[x.amount," / ",x.max_amount]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{ml:1,children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject",disabled:d,onClick:function(){function E(){return c("eject_reagent_glass")}return E}()})})]})})]}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{mt:1,fluid:!0,content:"Treat Viral Infections",checked:A,disabled:d,onClick:function(){function E(){return c("toggle_treat_viral")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Stationary Mode",checked:I,disabled:d,onClick:function(){function E(){return c("toggle_stationary_mode")}return E}()})]}),p&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:p,disabled:d,onClick:function(){function E(){return c("ejectpai")}return E}()})})]})})})}return k}()},74439:function(w,r,n){"use strict";r.__esModule=!0,r.BotSecurity=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(92963),b=r.BotSecurity=function(){function k(S,y){var h=(0,a.useBackend)(y),c=h.act,i=h.data,m=i.noaccess,d=i.painame,u=i.check_id,s=i.check_weapons,l=i.check_warrant,v=i.arrest_mode,N=i.arrest_declare;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:445,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Who To Arrest",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Unidentifiable Persons",disabled:m,onClick:function(){function C(){return c("authid")}return C}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Unauthorized Weapons",disabled:m,onClick:function(){function C(){return c("authweapon")}return C}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:l,content:"Wanted Criminals",disabled:m,onClick:function(){function C(){return c("authwarrant")}return C}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Arrest Procedure",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Detain Targets Indefinitely",disabled:m,onClick:function(){function C(){return c("arrtype")}return C}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:N,content:"Announce Arrests On Radio",disabled:m,onClick:function(){function C(){return c("arrdeclare")}return C}()})]}),d&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:d,disabled:m,onClick:function(){function C(){return c("ejectpai")}return C}()})})]})})}return k}()},10833:function(w,r,n){"use strict";r.__esModule=!0,r.BrigCells=void 0;var e=n(89005),a=n(98595),t=n(36036),o=n(72253),f=function(y,h){var c=y.cell,i=(0,o.useBackend)(h),m=i.act,d=c.cell_id,u=c.occupant,s=c.crimes,l=c.brigged_by,v=c.time_left_seconds,N=c.time_set_seconds,C=c.ref,p="";v>0&&(p+=" BrigCells__listRow--active");var g=function(){m("release",{ref:C})};return(0,e.createComponentVNode)(2,t.Table.Row,{className:p,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:N})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:v})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{type:"button",onClick:g,children:"Release"})})]})},b=function(y){var h=y.cells;return(0,e.createComponentVNode)(2,t.Table,{className:"BrigCells__list",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Cell"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Occupant"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Crimes"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Brigged By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Brigged For"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Release"})]}),h.map(function(c){return(0,e.createComponentVNode)(2,f,{cell:c},c.ref)})]})},k=r.BrigCells=function(){function S(y,h){var c=(0,o.useBackend)(h),i=c.act,m=c.data,d=m.cells;return(0,e.createComponentVNode)(2,a.Window,{theme:"security",width:800,height:400,children:(0,e.createComponentVNode)(2,a.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,b,{cells:d})})})})})}return S}()},45761:function(w,r,n){"use strict";r.__esModule=!0,r.BrigTimer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.BrigTimer=function(){function b(k,S){var y=(0,a.useBackend)(S),h=y.act,c=y.data;c.nameText=c.occupant,c.timing&&(c.prisoner_hasrec?c.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:c.occupant}):c.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:c.occupant}));var i="pencil-alt";c.prisoner_name&&(c.prisoner_hasrec||(i="exclamation-triangle"));var m=[],d=0;for(d=0;dm?this.substring(0,m)+"...":this};var y=function(d,u){var s,l;if(!u)return[];var v=d.findIndex(function(N){return N.name===u.name});return[(s=d[v-1])==null?void 0:s.name,(l=d[v+1])==null?void 0:l.name]},h=function(d,u){u===void 0&&(u="");var s=(0,f.createSearch)(u,function(l){return l.name});return(0,t.flow)([(0,a.filter)(function(l){return l==null?void 0:l.name}),u&&(0,a.filter)(s),(0,a.sortBy)(function(l){return l.name})])(d)},c=r.CameraConsole=function(){function m(d,u){var s=(0,b.useBackend)(u),l=s.act,v=s.data,N=s.config,C=v.mapRef,p=v.activeCamera,g=h(v.cameras),V=y(g,p),I=V[0],B=V[1];return(0,e.createComponentVNode)(2,S.Window,{width:870,height:708,children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,k.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,i)})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),p&&p.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-left",disabled:!I,onClick:function(){function L(){return l("switch_camera",{name:I})}return L}()}),(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-right",disabled:!B,onClick:function(){function L(){return l("switch_camera",{name:B})}return L}()})],4),(0,e.createComponentVNode)(2,k.ByondUi,{className:"CameraConsole__map",params:{id:C,type:"map"}})],4)]})}return m}(),i=r.CameraConsoleContent=function(){function m(d,u){var s=(0,b.useBackend)(u),l=s.act,v=s.data,N=(0,b.useLocalState)(u,"searchText",""),C=N[0],p=N[1],g=v.activeCamera,V=h(v.cameras,C);return(0,e.createComponentVNode)(2,k.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,k.Input,{fluid:!0,placeholder:"Search for a camera",onInput:function(){function I(B,L){return p(L)}return I}()})}),(0,e.createComponentVNode)(2,k.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,k.Section,{fill:!0,scrollable:!0,children:V.map(function(I){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid","Button--color--transparent",g&&I.name===g.name&&"Button--selected"]),I.name.trimLongStr(23),0,{title:I.name,onClick:function(){function B(){return l("switch_camera",{name:I.name})}return B}()},I.name)})})})]})}return m}()},52927:function(w,r,n){"use strict";r.__esModule=!0,r.Canister=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(49968),b=n(98595),k=r.Canister=function(){function S(y,h){var c=(0,t.useBackend)(h),i=c.act,m=c.data,d=m.portConnected,u=m.tankPressure,s=m.releasePressure,l=m.defaultReleasePressure,v=m.minReleasePressure,N=m.maxReleasePressure,C=m.valveOpen,p=m.name,g=m.canLabel,V=m.colorContainer,I=m.color_index,B=m.hasHoldingTank,L=m.holdingTank,T="";I.prim&&(T=V.prim.options[I.prim].name);var A="";I.sec&&(A=V.sec.options[I.sec].name);var x="";I.ter&&(x=V.ter.options[I.ter].name);var E="";I.quart&&(E=V.quart.options[I.quart].name);var P=[],j=[],M=[],R=[],D=0;for(D=0;Dp.current_positions&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:p.total_positions-p.current_positions})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"0"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"-",disabled:l.cooldown_time||!p.can_close,onClick:function(){function g(){return s("make_job_unavailable",{job:p.title})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"+",disabled:l.cooldown_time||!p.can_open,onClick:function(){function g(){return s("make_job_available",{job:p.title})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:l.target_dept&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:l.priority_jobs.indexOf(p.title)>-1?"Yes":""})||(0,e.createComponentVNode)(2,t.Button,{content:p.is_priority?"Yes":"No",selected:p.is_priority,disabled:l.cooldown_time||!p.can_prioritize,onClick:function(){function g(){return s("prioritize_job",{job:p.title})}return g}()})})]},p.title)})]})})]}):C=(0,e.createComponentVNode)(2,S);break;case 2:!l.authenticated||!l.scan_name?C=(0,e.createComponentVNode)(2,S):l.modify_name?C=(0,e.createComponentVNode)(2,f.AccessList,{accesses:l.regions,selectedList:l.selectedAccess,accessMod:function(){function p(g){return s("set",{access:g})}return p}(),grantAll:function(){function p(){return s("grant_all")}return p}(),denyAll:function(){function p(){return s("clear_all")}return p}(),grantDep:function(){function p(g){return s("grant_region",{region:g})}return p}(),denyDep:function(){function p(g){return s("deny_region",{region:g})}return p}()}):C=(0,e.createComponentVNode)(2,y);break;case 3:l.authenticated?l.records.length?C=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Records",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Delete All Records",disabled:!l.authenticated||l.records.length===0||l.target_dept,onClick:function(){function p(){return s("wipe_all_logs")}return p}()}),children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Crewman"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Old Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"New Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Authorized By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Reason"}),!!l.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Deleted By"})]}),l.records.map(function(p){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.transferee}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.oldvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.newvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.whodidit}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.reason}),!!l.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.deletedby})]},p.timestamp)})]}),!!l.iscentcom&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Delete MY Records",color:"purple",disabled:!l.authenticated||l.records.length===0,onClick:function(){function p(){return s("wipe_my_logs")}return p}()})})]}):C=(0,e.createComponentVNode)(2,h):C=(0,e.createComponentVNode)(2,S);break;case 4:!l.authenticated||!l.scan_name?C=(0,e.createComponentVNode)(2,S):C=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Your Team",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Sec Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Actions"})]}),l.people_dept.map(function(p){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.crimstat}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:p.buttontext,disabled:!p.demotable,onClick:function(){function g(){return s("remote_demote",{remote_demote:p.name})}return g}()})})]},p.title)})]})});break;default:C=(0,e.createComponentVNode)(2,t.Section,{title:"Warning",color:"red",children:"ERROR: Unknown Mode."})}return(0,e.createComponentVNode)(2,o.Window,{width:800,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:N}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:v}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:C})]})})})}return i}()},64083:function(w,r,n){"use strict";r.__esModule=!0,r.CargoConsole=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),f=n(36036),b=n(98595),k=n(25328),S=r.CargoConsole=function(){function u(s,l){return(0,e.createComponentVNode)(2,b.Window,{width:900,height:800,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,d)]})})})}return u}(),y=function(s,l){var v=(0,o.useLocalState)(l,"contentsModal",null),N=v[0],C=v[1],p=(0,o.useLocalState)(l,"contentsModalTitle",null),g=p[0],V=p[1];if(N!==null&&g!==null)return(0,e.createComponentVNode)(2,f.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,f.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[g,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,f.Box,{children:N.map(function(I){return(0,e.createComponentVNode)(2,f.Box,{children:["- ",I]},I)})}),(0,e.createComponentVNode)(2,f.Box,{m:2,children:(0,e.createComponentVNode)(2,f.Button,{content:"Close",onClick:function(){function I(){C(null),V(null)}return I}()})})]})},h=function(s,l){var v=(0,o.useBackend)(l),N=v.act,C=v.data,p=C.is_public,g=C.timeleft,V=C.moving,I=C.at_station,B,L;return!V&&!I?(B="Docked off-station",L="Call Shuttle"):!V&&I?(B="Docked at the station",L="Return Shuttle"):V&&(L="In Transit...",g!==1?B="Shuttle is en route (ETA: "+g+" minutes)":B="Shuttle is en route (ETA: "+g+" minute)"),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Status",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Shuttle Status",children:B}),p===0&&(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,f.Button,{content:L,disabled:V,onClick:function(){function T(){return N("moveShuttle")}return T}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Central Command Messages",onClick:function(){function T(){return N("showMessages")}return T}()})]})]})})})},c=function(s,l){var v,N=(0,o.useBackend)(l),C=N.act,p=N.data,g=p.accounts,V=(0,o.useLocalState)(l,"selectedAccount"),I=V[0],B=V[1],L=[];return g.map(function(T){return L[T.name]=T.account_UID}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Payment",children:[(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:g.map(function(T){return T.name}),selected:(v=g.filter(function(T){return T.account_UID===I})[0])==null?void 0:v.name,onSelected:function(){function T(A){return B(L[A])}return T}()}),g.filter(function(T){return T.account_UID===I}).map(function(T){return(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Account Name",children:(0,e.createComponentVNode)(2,f.Stack.Item,{mt:1,children:T.name})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Balance",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:T.balance})})]},T.account_UID)})]})})},i=function(s,l){var v=(0,o.useBackend)(l),N=v.act,C=v.data,p=C.requests,g=C.categories,V=C.supply_packs,I=(0,o.useSharedState)(l,"category","Emergency"),B=I[0],L=I[1],T=(0,o.useSharedState)(l,"search_text",""),A=T[0],x=T[1],E=(0,o.useLocalState)(l,"contentsModal",null),P=E[0],j=E[1],M=(0,o.useLocalState)(l,"contentsModalTitle",null),R=M[0],D=M[1],W=(0,k.createSearch)(A,function(Q){return Q.name}),_=(0,o.useLocalState)(l,"selectedAccount"),U=_[0],K=_[1],G=(0,a.flow)([(0,t.filter)(function(Q){return Q.cat===g.filter(function(J){return J.name===B})[0].category||A}),A&&(0,t.filter)(W),(0,t.sortBy)(function(Q){return Q.name.toLowerCase()})])(V),$="Crate Catalogue";return A?$="Results for '"+A+"':":B&&($="Browsing "+B),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:$,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:g.map(function(Q){return Q.name}),selected:B,onSelected:function(){function Q(J){return L(J)}return Q}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function Q(J,ie){return x(ie)}return Q}(),mb:1}),(0,e.createComponentVNode)(2,f.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:G.map(function(Q){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{bold:!0,children:[Q.name," (",Q.cost," Credits)"]}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,f.Button,{content:"Order 1",icon:"shopping-cart",disabled:!U,onClick:function(){function J(){return N("order",{crate:Q.ref,multiple:!1,account:U})}return J}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Order Multiple",icon:"cart-plus",disabled:!U||Q.singleton,onClick:function(){function J(){return N("order",{crate:Q.ref,multiple:!0,account:U})}return J}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Contents",icon:"search",onClick:function(){function J(){j(Q.contents),D(Q.name)}return J}()})]})]},Q.name)})})})]})})},m=function(s,l){var v=s.request,N,C;switch(v.department){case"Engineering":C="CE",N="orange";break;case"Medical":C="CMO",N="teal";break;case"Science":C="RD",N="purple";break;case"Supply":C="CT",N="brown";break;case"Service":C="HOP",N="olive";break;case"Security":C="HOS",N="red";break;case"Command":C="CAP",N="blue";break;case"Assistant":C="Any Head",N="grey";break}return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{mt:.5,children:"Approval Required:"}),!!v.req_cargo_approval&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"brown",content:"QM",icon:"user-tie",tooltip:"This Order requires approval from the QM still"})}),!!v.req_head_approval&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:N,content:C,disabled:v.req_cargo_approval,icon:"user-tie",tooltip:v.req_cargo_approval?"This Order first requires approval from the QM before the "+C+" can approve it":"This Order requires approval from the "+C+" still"})})]})},d=function(s,l){var v=(0,o.useBackend)(l),N=v.act,C=v.data,p=C.requests,g=C.orders,V=C.shipments;return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:"Orders",children:[(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,f.Table,{children:p.map(function(I){return(0,e.createComponentVNode)(2,f.Table.Row,{className:"Cargo_RequestList",children:[(0,e.createComponentVNode)(2,f.Table.Cell,{mb:1,children:[(0,e.createComponentVNode)(2,f.Box,{children:["Order #",I.ordernum,": ",I.supply_type," (",I.cost," credits) for ",(0,e.createVNode)(1,"b",null,I.orderedby,0)," with"," ",I.department?"The "+I.department+" Department":"Their Personal"," Account"]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",I.comment]}),(0,e.createComponentVNode)(2,m,{request:I})]}),(0,e.createComponentVNode)(2,f.Stack.Item,{textAlign:"right",children:[(0,e.createComponentVNode)(2,f.Button,{content:"Approve",color:"green",disabled:!I.can_approve,onClick:function(){function B(){return N("approve",{ordernum:I.ordernum})}return B}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Deny",color:"red",disabled:!I.can_deny,onClick:function(){function B(){return N("deny",{ordernum:I.ordernum})}return B}()})]})]},I.ordernum)})}),(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Orders Awaiting Delivery"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:g.map(function(I){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",I.ordernum,": ",I.supply_type," for ",(0,e.createVNode)(1,"b",null,I.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",I.comment]})]})},I.ordernum)})}),(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Order in Transit"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:V.map(function(I){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",I.ordernum,": ",I.supply_type," for ",(0,e.createVNode)(1,"b",null,I.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",I.comment]})]})},I.ordernum)})})]})}},87331:function(w,r,n){"use strict";r.__esModule=!0,r.ChangelogView=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ChangelogView=function(){function b(k,S){var y=(0,a.useBackend)(S),h=y.act,c=y.data,i=(0,a.useLocalState)(S,"onlyRecent",0),m=i[0],d=i[1],u=c.cl_data,s=c.last_cl,l={FIX:(0,e.createComponentVNode)(2,t.Icon,{name:"tools",title:"Fix"}),WIP:(0,e.createComponentVNode)(2,t.Icon,{name:"hard-hat",title:"WIP",color:"orange"}),TWEAK:(0,e.createComponentVNode)(2,t.Icon,{name:"sliders-h",title:"Tweak"}),SOUNDADD:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",title:"Sound Added",color:"green"}),SOUNDDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-mute",title:"Sound Removed",color:"red"}),CODEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",title:"Code Addition",color:"green"}),CODEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"minus",title:"Code Removal",color:"red"}),IMAGEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-plus",title:"Sprite Addition",color:"green"}),IMAGEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-minus",title:"Sprite Removal",color:"red"}),SPELLCHECK:(0,e.createComponentVNode)(2,t.Icon,{name:"font",title:"Spelling/Grammar Fix"}),EXPERIMENT:(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle",title:"Experimental",color:"orange"})},v=function(){function N(C){return C in l?l[C]:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",color:"green"})}return N}();return(0,e.createComponentVNode)(2,o.Window,{width:750,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"ParadiseSS13 Changelog",mt:2,buttons:(0,e.createComponentVNode)(2,t.Button,{content:m?"Showing all changes":"Showing changes since last connection",onClick:function(){function N(){return d(!m)}return N}()}),children:u.map(function(N){return!m&&N.merge_ts<=s||(0,e.createComponentVNode)(2,t.Section,{mb:2,title:N.author+" - Merged on "+N.merge_date,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"#"+N.num,onClick:function(){function C(){return h("open_pr",{pr_number:N.num})}return C}()}),children:N.entries.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{m:1,children:[v(C.etype)," ",C.etext]},C)})},N)})})})})}return b}()},36108:function(w,r,n){"use strict";r.__esModule=!0,r.ChemDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(85870),f=n(98595),b=[1,5,10,20,30,50],k=[1,5,10],S=r.ChemDispenser=function(){function i(m,d){var u=(0,a.useBackend)(d),s=u.act,l=u.data,v=l.chemicals;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:400+v.length*8,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,c)]})})})}return i}(),y=function(m,d){var u=(0,a.useBackend)(d),s=u.act,l=u.data,v=l.amount,N=l.energy,C=l.maxEnergy;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:N,minValue:0,maxValue:C,ranges:{good:[C*.5,1/0],average:[C*.25,C*.5],bad:[-1/0,C*.25]},children:[N," / ",C," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:b.map(function(p,g){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:v===p,content:p,onClick:function(){function V(){return s("amount",{amount:p})}return V}()})},g)})})})]})})})},h=function(m,d){for(var u=(0,a.useBackend)(d),s=u.act,l=u.data,v=l.chemicals,N=v===void 0?[]:v,C=[],p=0;p<(N.length+1)%3;p++)C.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:l.glass?"Drink Dispenser":"Chemical Dispenser",children:[N.map(function(g,V){return(0,e.createComponentVNode)(2,t.Button,{m:.1,width:"32.5%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",content:g.title,style:{"margin-left":"2px"},onClick:function(){function I(){return s("dispense",{reagent:g.id})}return I}()},V)}),C.map(function(g,V){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%"},V)})]})})},c=function(m,d){var u=(0,a.useBackend)(d),s=u.act,l=u.data,v=l.isBeakerLoaded,N=l.beakerCurrentVolume,C=l.beakerMaxVolume,p=l.beakerContents,g=p===void 0?[]:p;return(0,e.createComponentVNode)(2,t.Stack.Item,{height:16,children:(0,e.createComponentVNode)(2,t.Section,{title:l.glass?"Glass":"Beaker",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Box,{children:[!!v&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[N," / ",C," units"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!v,onClick:function(){function V(){return s("ejectBeaker")}return V}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:v,beakerContents:g,buttons:function(){function V(I){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){function B(){return s("remove",{reagent:I.id,amount:-1})}return B}()}),k.map(function(B,L){return(0,e.createComponentVNode)(2,t.Button,{content:B,onClick:function(){function T(){return s("remove",{reagent:I.id,amount:B})}return T}()},L)}),(0,e.createComponentVNode)(2,t.Button,{content:"ALL",onClick:function(){function B(){return s("remove",{reagent:I.id,amount:I.volume})}return B}()})],0)}return V}()})})})}},13146:function(w,r,n){"use strict";r.__esModule=!0,r.ChemHeater=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(85870),b=n(98595),k=r.ChemHeater=function(){function h(c,i){return(0,e.createComponentVNode)(2,b.Window,{width:350,height:275,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y)]})})})}return h}(),S=function(c,i){var m=(0,t.useBackend)(i),d=m.act,u=m.data,s=u.targetTemp,l=u.targetTempReached,v=u.autoEject,N=u.isActive,C=u.currentTemp,p=u.isBeakerLoaded;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Settings",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Auto-eject",icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){function g(){return d("toggle_autoeject")}return g}()}),(0,e.createComponentVNode)(2,o.Button,{content:N?"On":"Off",icon:"power-off",selected:N,disabled:!p,onClick:function(){function g(){return d("toggle_on")}return g}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"65px",unit:"K",step:10,stepPixelSize:3,value:(0,a.round)(s,0),minValue:0,maxValue:1e3,onDrag:function(){function g(V,I){return d("adjust_temperature",{target:I})}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reading",color:l?"good":"average",children:p&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:C,format:function(){function g(V){return(0,a.toFixed)(V)+" K"}return g}()})||"\u2014"})]})})})},y=function(c,i){var m=(0,t.useBackend)(i),d=m.act,u=m.data,s=u.isBeakerLoaded,l=u.beakerCurrentVolume,v=u.beakerMaxVolume,N=u.beakerContents;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:!!s&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",mr:2,children:[l," / ",v," units"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",onClick:function(){function C(){return d("eject_beaker")}return C}()})]}),children:(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:s,beakerContents:N})})})}},56541:function(w,r,n){"use strict";r.__esModule=!0,r.ChemMaster=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(85870),b=n(3939),k=n(35840),S=["icon"];function y(B,L){if(B==null)return{};var T={};for(var A in B)if({}.hasOwnProperty.call(B,A)){if(L.includes(A))continue;T[A]=B[A]}return T}function h(B,L){B.prototype=Object.create(L.prototype),B.prototype.constructor=B,c(B,L)}function c(B,L){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(T,A){return T.__proto__=A,T},c(B,L)}var i=[1,5,10],m=function(L,T){var A=(0,a.useBackend)(T),x=A.act,E=A.data,P=L.args.analysis;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:E.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.createComponentVNode)(2,t.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:P.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:(P.desc||"").length>0?P.desc:"N/A"}),P.blood_type&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood type",children:P.blood_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:P.blood_dna})],4),!E.condi&&(0,e.createComponentVNode)(2,t.Button,{icon:E.printing?"spinner":"print",disabled:E.printing,iconSpin:!!E.printing,ml:"0.5rem",content:"Print",onClick:function(){function j(){return x("print",{idx:P.idx,beaker:L.args.beaker})}return j}()})]})})})})},d=function(B){return B[B.ToDisposals=0]="ToDisposals",B[B.ToBeaker=1]="ToBeaker",B}(d||{}),u=r.ChemMaster=function(){function B(L,T){return(0,e.createComponentVNode)(2,o.Window,{width:575,height:650,children:[(0,e.createComponentVNode)(2,b.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,I)]})})]})}return B}(),s=function(L,T){var A=(0,a.useBackend)(T),x=A.act,E=A.data,P=E.beaker,j=E.beaker_reagents,M=E.buffer_reagents,R=M.length>0;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:R?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!P,content:"Eject and Clear Buffer",onClick:function(){function D(){return x("eject")}return D}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!P,content:"Eject and Clear Buffer",onClick:function(){function D(){return x("eject")}return D}()}),children:P?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:j,buttons:function(){function D(W,_){return(0,e.createComponentVNode)(2,t.Box,{mb:_0?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:j,buttons:function(){function M(R,D){return(0,e.createComponentVNode)(2,t.Box,{mb:D0&&(R=M.map(function(D){var W=D.id,_=D.sprite;return(0,e.createComponentVNode)(2,g,{icon:_,translucent:!0,onClick:function(){function U(){return x("set_sprite_style",{production_mode:P,style:W})}return U}(),selected:j===W},W)})),(0,e.createComponentVNode)(2,p,{productionData:L.productionData,children:R&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:R})})},I=function(L,T){var A=(0,a.useBackend)(T),x=A.act,E=A.data,P=E.loaded_pill_bottle_style,j=E.containerstyles,M=E.loaded_pill_bottle,R={width:"20px",height:"20px"},D=j.map(function(W){var _=W.color,U=W.name,K=P===_;return(0,e.createComponentVNode)(2,t.Button,{style:{position:"relative",width:R.width,height:R.height},onClick:function(){function G(){return x("set_container_style",{style:_})}return G}(),icon:K&&"check",iconStyle:{position:"relative","z-index":1},tooltip:U,tooltipPosition:"top",children:[!K&&(0,e.createVNode)(1,"div",null,null,1,{style:{display:"inline-block"}}),(0,e.createVNode)(1,"span","Button",null,1,{style:{display:"inline-block",position:"absolute",top:0,left:0,margin:0,padding:0,width:R.width,height:R.height,"background-color":_,opacity:.6,filter:"alpha(opacity=60)"}})]},_)});return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Container Customization",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!M,content:"Eject Container",onClick:function(){function W(){return x("ejectp")}return W}()}),children:M?(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:[(0,e.createComponentVNode)(2,t.Button,{style:{width:R.width,height:R.height},icon:"tint-slash",onClick:function(){function W(){return x("clear_container_style")}return W}(),selected:!P,tooltip:"Default",tooltipPosition:"top"}),D]})}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No pill bottle or patch pack loaded."})})})};(0,b.modalRegisterBodyOverride)("analyze",m)},37173:function(w,r,n){"use strict";r.__esModule=!0,r.CloningConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(79140),b=1,k=32,S=128,y=r.CloningConsole=function(){function u(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.tab,g=C.has_scanner,V=C.pod_amount;return(0,e.createComponentVNode)(2,o.Window,{width:640,height:520,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Cloning Console",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connected scanner",children:g?"Online":"Missing"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connected pods",children:V})]})}),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:p===1,icon:"home",onClick:function(){function I(){return N("menu",{tab:1})}return I}(),children:"Main Menu"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:p===2,icon:"user",onClick:function(){function I(){return N("menu",{tab:2})}return I}(),children:"Damage Configuration"})]}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,h)})]})})}return u}(),h=function(s,l){var v=(0,a.useBackend)(l),N=v.data,C=N.tab,p;return C===1?p=(0,e.createComponentVNode)(2,c):C===2&&(p=(0,e.createComponentVNode)(2,i)),p},c=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.pods,g=C.pod_amount,V=C.selected_pod_UID;return(0,e.createComponentVNode)(2,t.Box,{children:[!g&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No pods connected."}),!!g&&p.map(function(I,B){return(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Pod "+(B+1),children:(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"96px",shrink:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,f.resolveAsset)("pod_"+(I.cloning?"cloning":"idle")+".gif"),style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Button,{selected:V===I.uid,onClick:function(){function L(){return N("select_pod",{uid:I.uid})}return L}(),children:"Select"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Progress",children:[!I.cloning&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Pod is inactive."}),!!I.cloning&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:I.clone_progress,maxValue:100,color:"good"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Biomass",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:I.biomass,ranges:{good:[2*I.biomass_storage_capacity/3,I.biomass_storage_capacity],average:[I.biomass_storage_capacity/3,2*I.biomass_storage_capacity/3],bad:[0,I.biomass_storage_capacity/3]},minValue:0,maxValue:I.biomass_storage_capacity,children:[I.biomass,"/",I.biomass_storage_capacity+" ("+100*I.biomass/I.biomass_storage_capacity+"%)"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sanguine Reagent",children:I.sanguine_reagent}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Osseous Reagent",children:I.osseous_reagent})]})})]})},I)})]})},i=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.selected_pod_data,g=C.has_scanned,V=C.scanner_has_patient,I=C.feedback,B=C.scan_successful,L=C.cloning_cost,T=C.has_scanner;return(0,e.createComponentVNode)(2,t.Box,{children:[!T&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No scanner connected."}),!!T&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Scanner Info",buttons:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hourglass-half",onClick:function(){function A(){return N("scan")}return A}(),children:"Scan"}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function A(){return N("eject")}return A}(),children:"Eject Patient"})]}),children:[!g&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:V?"No scan detected for current patient.":"No patient is in the scanner."}),!!g&&(0,e.createComponentVNode)(2,t.Box,{color:I.color,children:I.text})]}),(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Damages Breakdown",children:(0,e.createComponentVNode)(2,t.Box,{children:[(!B||!g)&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No valid scan detected."}),!!B&&!!g&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function A(){return N("fix_all")}return A}(),children:"Repair All Damages"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function A(){return N("fix_none")}return A}(),children:"Repair No Damages"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function A(){return N("clone")}return A}(),children:"Clone"})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:L[0],maxValue:p.biomass_storage_capacity,ranges:{bad:[2*p.biomass_storage_capacity/3,p.biomass_storage_capacity],average:[p.biomass_storage_capacity/3,2*p.biomass_storage_capacity/3],good:[0,p.biomass_storage_capacity/3]},color:L[0]>p.biomass?"bad":null,children:["Biomass: ",L[0],"/",p.biomass,"/",p.biomass_storage_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:L[1],maxValue:p.max_reagent_capacity,ranges:{bad:[2*p.max_reagent_capacity/3,p.max_reagent_capacity],average:[p.max_reagent_capacity/3,2*p.max_reagent_capacity/3],good:[0,p.max_reagent_capacity/3]},color:L[1]>p.sanguine_reagent?"bad":"good",children:["Sanguine: ",L[1],"/",p.sanguine_reagent,"/",p.max_reagent_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:L[2],maxValue:p.max_reagent_capacity,ranges:{bad:[2*p.max_reagent_capacity/3,p.max_reagent_capacity],average:[p.max_reagent_capacity/3,2*p.max_reagent_capacity/3],good:[0,p.max_reagent_capacity/3]},color:L[2]>p.osseous_reagent?"bad":"good",children:["Osseous: ",L[2],"/",p.osseous_reagent,"/",p.max_reagent_capacity]})})]}),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,d)]})]})})]})]})},m=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.patient_limb_data,g=C.limb_list,V=C.desired_limb_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Limbs",children:g.map(function(I,B){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"15%",height:"20px",children:[p[I][4],":"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),p[I][3]===0&&(0,e.createComponentVNode)(2,t.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:V[I][0]+V[I][1],maxValue:p[I][5],ranges:{good:[0,p[I][5]/3],average:[p[I][5]/3,2*p[I][5]/3],bad:[2*p[I][5]/3,p[I][5]]},children:["Post-Cloning Damage: ",(0,e.createComponentVNode)(2,t.Icon,{name:"bone"})," "+V[I][0]+" / ",(0,e.createComponentVNode)(2,t.Icon,{name:"fire"})," "+V[I][1]]})}),p[I][3]!==0&&(0,e.createComponentVNode)(2,t.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",p[I][4]," is missing!"]})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[!!p[I][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!V[I][3],onClick:function(){function L(){return N("toggle_limb_repair",{limb:I,type:"replace"})}return L}(),children:"Replace Limb"})}),!p[I][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[I][0]||p[I][1]),checked:!(V[I][0]||V[I][1]),onClick:function(){function L(){return N("toggle_limb_repair",{limb:I,type:"damage"})}return L}(),children:"Repair Damages"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[I][2]&b),checked:!(V[I][2]&b),onClick:function(){function L(){return N("toggle_limb_repair",{limb:I,type:"bone"})}return L}(),children:"Mend Bone"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[I][2]&k),checked:!(V[I][2]&k),onClick:function(){function L(){return N("toggle_limb_repair",{limb:I,type:"ib"})}return L}(),children:"Mend IB"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[I][2]&S),checked:!(V[I][2]&S),onClick:function(){function L(){return N("toggle_limb_repair",{limb:I,type:"critburn"})}return L}(),children:"Mend Critical Burn"})]})]})]},I)})})},d=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.patient_organ_data,g=C.organ_list,V=C.desired_organ_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Organs",children:g.map(function(I,B){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"20%",height:"20px",children:[p[I][3],":"," "]}),p[I][5]!=="heart"&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!!p[I][2]&&(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!V[I][2]&&!V[I][1],onClick:function(){function L(){return N("toggle_organ_repair",{organ:I,type:"replace"})}return L}(),children:"Replace Organ"}),!p[I][2]&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!p[I][0],checked:!V[I][0],onClick:function(){function L(){return N("toggle_organ_repair",{organ:I,type:"damage"})}return L}(),children:"Repair Damages"})})]})}),p[I][5]==="heart"&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Heart replacement is required for cloning."}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"35%",children:[!!p[I][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",p[I][3]," is missing!"]}),!p[I][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:V[I][0],maxValue:p[I][4],ranges:{good:[0,p[I][4]/3],average:[p[I][4]/3,2*p[I][4]/3],bad:[2*p[I][4]/3,p[I][4]]},children:"Post-Cloning Damage: "+V[I][0]})]})]})},I)})})}},98723:function(w,r,n){"use strict";r.__esModule=!0,r.CloningPod=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.CloningPod=function(){function b(k,S){var y=(0,a.useBackend)(S),h=y.act,c=y.data,i=c.biomass,m=c.biomass_storage_capacity,d=c.sanguine_reagent,u=c.osseous_reagent,s=c.organs,l=c.currently_cloning;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Liquid Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Biomass:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i,ranges:{good:[2*m/3,m],average:[m/3,2*m/3],bad:[0,m/3]},minValue:0,maxValue:m})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Sanguine Reagent:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:d+" units"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:0,minValue:0,maxValue:d,step:1,unit:"units",onChange:function(){function v(N,C){return h("remove_reagent",{reagent:"sanguine_reagent",amount:C})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function v(){return h("purge_reagent",{reagent:"sanguine_reagent"})}return v}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Osseous Reagent:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:u+" units"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:0,minValue:0,maxValue:u,step:1,unit:"units",onChange:function(){function v(N,C){return h("remove_reagent",{reagent:"osseous_reagent",amount:C})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function v(){return h("purge_reagent",{reagent:"osseous_reagent"})}return v}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Organ Storage",children:[!l&&(0,e.createComponentVNode)(2,t.Box,{children:[!s&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No organs loaded."}),!!s&&s.map(function(v){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:v.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject",onClick:function(){function N(){return h("eject_organ",{organ_ref:v.ref})}return N}()})})]},v)})]}),!!l&&(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"lock",size:"5",mb:3}),(0,e.createVNode)(1,"br"),"Unable to access organ storage while cloning."]})})]})]})})}return b}()},18259:function(w,r,n){"use strict";r.__esModule=!0,r.CoinMint=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=n(98595),b=r.CoinMint=function(){function k(S,y){var h=(0,t.useBackend)(y),c=h.act,i=h.data,m=i.materials,d=i.moneyBag,u=i.moneyBagContent,s=i.moneyBagMaxContent,l=(d?210:138)+Math.ceil(m.length/4)*64;return(0,e.createComponentVNode)(2,f.Window,{width:210,height:l,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.NoticeBox,{m:0,info:!0,children:["Total coins produced: ",i.totalCoins]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Coin Type",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",color:i.active&&"bad",tooltip:!d&&"Need a money bag",disabled:!d,onClick:function(){function v(){return c("activate")}return v}()}),children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,maxValue:i.maxMaterials,value:i.totalMaterials})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",tooltip:"Eject selected material",onClick:function(){function v(){return c("ejectMat")}return v}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:m.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{bold:!0,inline:!0,translucent:!0,m:.2,textAlign:"center",selected:v.id===i.chosenMaterial,tooltip:v.name,content:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",v.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:v.amount})]}),onClick:function(){function N(){return c("selectMaterial",{material:v.id})}return N}()},v.id)})})]})})}),!!d&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Money Bag",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",disabled:i.active,onClick:function(){function v(){return c("ejectBag")}return v}()}),children:(0,e.createComponentVNode)(2,o.ProgressBar,{width:"100%",minValue:0,maxValue:s,value:u,children:[u," / ",s]})})})]})})})}return k}()},8444:function(w,r,n){"use strict";r.__esModule=!0,r.ColourMatrixTester=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ColourMatrixTester=function(){function b(k,S){var y=(0,a.useBackend)(S),h=y.act,c=y.data,i=c.colour_data,m=[[{name:"RR",idx:0},{name:"RG",idx:1},{name:"RB",idx:2},{name:"RA",idx:3}],[{name:"GR",idx:4},{name:"GG",idx:5},{name:"GB",idx:6},{name:"GA",idx:7}],[{name:"BR",idx:8},{name:"BG",idx:9},{name:"BB",idx:10},{name:"BA",idx:11}],[{name:"AR",idx:12},{name:"AG",idx:13},{name:"AB",idx:14},{name:"AA",idx:15}]];return(0,e.createComponentVNode)(2,o.Window,{width:360,height:190,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Modify Matrix",children:m.map(function(d){return(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",textColor:"label",children:d.map(function(u){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:1,children:[u.name,":\xA0",(0,e.createComponentVNode)(2,t.NumberInput,{width:4,value:i[u.idx],step:.05,minValue:-5,maxValue:5,stepPixelSize:5,onChange:function(){function s(l,v){return h("setvalue",{idx:u.idx+1,value:v})}return s}()})]},u.name)})},d)})})})})})}return b}()},63818:function(w,r,n){"use strict";r.__esModule=!0,r.CommunicationsComputer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(s){switch(s){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,c);case 3:return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,i)})});case 4:return(0,e.createComponentVNode)(2,d);default:return"ERROR. Unknown menu_state. Please contact NT Technical Support."}},b=r.CommunicationsComputer=function(){function u(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.menu_state;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),f(p)]})})})}return u}(),k=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.authenticated,g=C.noauthbutton,V=C.esc_section,I=C.esc_callable,B=C.esc_recallable,L=C.esc_status,T=C.authhead,A=C.is_ai,x=C.lastCallLoc,E=!1,P;return p?p===1?P="Command":p===2?P="Captain":p===3?P="CentComm Officer":p===4?(P="CentComm Secure Connection",E=!0):P="ERROR: Report This Bug!":P="Not Logged In",(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Authentication",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Access",children:P})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{icon:p?"sign-out-alt":"id-card",selected:p,disabled:g,content:p?"Log Out ("+P+")":"Log In",onClick:function(){function j(){return N("auth")}return j}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!V&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Escape Shuttle",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!L&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:L}),!!I&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",content:"Call Shuttle",disabled:!T,onClick:function(){function j(){return N("callshuttle")}return j}()})}),!!B&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Recall Shuttle",disabled:!T||A,onClick:function(){function j(){return N("cancelshuttle")}return j}()})}),!!x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Last Call/Recall From",children:x})]})})})],4)},S=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.is_admin;return p?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,h)},y=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.is_admin,g=C.gamma_armory_location,V=C.admin_levels,I=C.authenticated,B=C.ert_allowed;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"CentComm Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,m,{levels:V,required_access:p,use_confirm:1})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:"Make Central Announcement",disabled:!p,onClick:function(){function L(){return N("send_to_cc_announcement_page")}return L}()}),I===4&&(0,e.createComponentVNode)(2,t.Button,{icon:"plus",content:"Make Other Announcement",disabled:!p,onClick:function(){function L(){return N("make_other_announcement")}return L}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Response Team",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"ambulance",content:"Dispatch ERT",disabled:!p,onClick:function(){function L(){return N("dispatch_ert")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:B,content:B?"ERT calling enabled":"ERT calling disabled",tooltip:B?"Command can request an ERT":"ERTs cannot be requested",disabled:!p,onClick:function(){function L(){return N("toggle_ert_allowed")}return L}(),selected:null})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:"Get Authentication Codes",disabled:!p,onClick:function(){function L(){return N("send_nuke_codes")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gamma Armory",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"biohazard",content:g?"Send Gamma Armory":"Recall Gamma Armory",disabled:!p,onClick:function(){function L(){return N("move_gamma_armory")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"coins",content:"View Economy",disabled:!p,onClick:function(){function L(){return N("view_econ")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fax",content:"Fax Manager",disabled:!p,onClick:function(){function L(){return N("view_fax")}return L}()})]})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"View Command accessible controls",children:(0,e.createComponentVNode)(2,h)})]})},h=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.msg_cooldown,g=C.emagged,V=C.cc_cooldown,I=C.security_level_color,B=C.str_security_level,L=C.levels,T=C.authcapt,A=C.authhead,x=C.messages,E="Make Priority Announcement";p>0&&(E+=" ("+p+"s)");var P=g?"Message [UNKNOWN]":"Message CentComm",j="Request Authentication Codes";return V>0&&(P+=" ("+V+"s)",j+=" ("+V+"s)"),(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Captain-Only Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Alert",color:I,children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,m,{levels:L,required_access:T})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:E,disabled:!T||p>0,onClick:function(){function M(){return N("announce")}return M}()})}),!!g&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",color:"red",content:P,disabled:!T||V>0,onClick:function(){function M(){return N("MessageSyndicate")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!T,onClick:function(){function M(){return N("RestoreBackup")}return M}()})]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",content:P,disabled:!T||V>0,onClick:function(){function M(){return N("MessageCentcomm")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",content:j,disabled:!T||V>0,onClick:function(){function M(){return N("nukerequest")}return M}()})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Command Staff Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Displays",children:(0,e.createComponentVNode)(2,t.Button,{icon:"tv",content:"Change Status Displays",disabled:!A,onClick:function(){function M(){return N("status")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Incoming Messages",children:(0,e.createComponentVNode)(2,t.Button,{icon:"folder-open",content:"View ("+x.length+")",disabled:!A,onClick:function(){function M(){return N("messagelist")}return M}()})})]})})})],4)},c=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.stat_display,g=C.authhead,V=C.current_message_title,I=p.presets.map(function(L){return(0,e.createComponentVNode)(2,t.Button,{content:L.label,selected:L.name===p.type,disabled:!g,onClick:function(){function T(){return N("setstat",{statdisp:L.name})}return T}()},L.name)}),B=p.alerts.map(function(L){return(0,e.createComponentVNode)(2,t.Button,{content:L.label,selected:L.alert===p.icon,disabled:!g,onClick:function(){function T(){return N("setstat",{statdisp:3,alert:L.alert})}return T}()},L.alert)});return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Modify Status Screens",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function L(){return N("main")}return L}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Presets",children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alerts",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:p.line_1,disabled:!g,onClick:function(){function L(){return N("setmsg1")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 2",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:p.line_2,disabled:!g,onClick:function(){function L(){return N("setmsg2")}return L}()})})]})})})},i=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.authhead,g=C.current_message_title,V=C.current_message,I=C.messages,B=C.security_level,L;if(g)L=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:g,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Return To Message List",disabled:!p,onClick:function(){function A(){return N("messagelist")}return A}()}),children:(0,e.createComponentVNode)(2,t.Box,{children:V})})});else{var T=I.map(function(A){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:A.title,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eye",content:"View",disabled:!p||g===A.title,onClick:function(){function x(){return N("messagelist",{msgid:A.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"times",content:"Delete",disabled:!p,onClick:function(){function x(){return N("delmessage",{msgid:A.id})}return x}()})]},A.id)});L=(0,e.createComponentVNode)(2,t.Section,{title:"Messages Received",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function A(){return N("main")}return A}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:T})})}return(0,e.createComponentVNode)(2,t.Box,{children:L})},m=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=s.levels,g=s.required_access,V=s.use_confirm,I=C.security_level;return V?p.map(function(B){return(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:B.icon,content:B.name,disabled:!g||B.id===I,tooltip:B.tooltip,onClick:function(){function L(){return N("newalertlevel",{level:B.id})}return L}()},B.name)}):p.map(function(B){return(0,e.createComponentVNode)(2,t.Button,{icon:B.icon,content:B.name,disabled:!g||B.id===I,tooltip:B.tooltip,onClick:function(){function L(){return N("newalertlevel",{level:B.id})}return L}()},B.name)})},d=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.is_admin,g=C.possible_cc_sounds;if(!p)return N("main");var V=(0,a.useLocalState)(l,"subtitle",""),I=V[0],B=V[1],L=(0,a.useLocalState)(l,"text",""),T=L[0],A=L[1],x=(0,a.useLocalState)(l,"classified",0),E=x[0],P=x[1],j=(0,a.useLocalState)(l,"beepsound","Beep"),M=j[0],R=j[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Central Command Report",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function D(){return N("main")}return D}()}),children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Subtitle here.",fluid:!0,value:I,onChange:function(){function D(W,_){return B(_)}return D}(),mb:"5px"}),(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Announcement here,\nMultiline input is accepted.",rows:10,fluid:!0,multiline:1,value:T,onChange:function(){function D(W,_){return A(_)}return D}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Send Announcement",fluid:!0,icon:"paper-plane",center:!0,mt:"5px",textAlign:"center",onClick:function(){function D(){return N("make_cc_announcement",{subtitle:I,text:T,classified:E,beepsound:M})}return D}()}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"260px",height:"20px",options:g,selected:M,onSelected:function(){function D(W){return R(W)}return D}(),disabled:E})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"volume-up",mx:"5px",disabled:E,tooltip:"Test sound",onClick:function(){function D(){return N("test_sound",{sound:M})}return D}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:E,content:"Classified",fluid:!0,tooltip:E?"Sent to station communications consoles":"Publically announced",onClick:function(){function D(){return P(!E)}return D}()})})]})]})})}},20562:function(w,r,n){"use strict";r.__esModule=!0,r.CompostBin=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.CompostBin=function(){function b(k,S){var y=(0,a.useBackend)(S),h=y.act,c=y.data,i=c.biomass,m=c.compost,d=c.biomass_capacity,u=c.compost_capacity,s=c.potassium,l=c.potassium_capacity,v=c.potash,N=c.potash_capacity,C=(0,a.useSharedState)(S,"vendAmount",1),p=C[0],g=C[1];return(0,e.createComponentVNode)(2,o.Window,{width:360,height:250,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{label:"Resources",children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Biomass",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:i,minValue:0,maxValue:d,ranges:{good:[d*.5,1/0],average:[d*.25,d*.5],bad:[-1/0,d*.25]},children:[i," / ",d," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compost",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:m,minValue:0,maxValue:u,ranges:{good:[u*.5,1/0],average:[u*.25,u*.5],bad:[-1/0,u*.25]},children:[m," / ",u," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Potassium",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:s,minValue:0,maxValue:l,ranges:{good:[l*.5,1/0],average:[l*.25,l*.5],bad:[-1/0,l*.25]},children:[s," / ",l," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Potash",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:v,minValue:0,maxValue:N,ranges:{good:[N*.5,1/0],average:[N*.25,N*.5],bad:[-1/0,N*.25]},children:[v," / ",N," Units"]})})]})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mr:"5px",color:"silver",children:"Soil clumps to make:"}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:p,width:"32px",minValue:1,maxValue:10,stepPixelSize:7,onChange:function(){function V(I,B){return g(B)}return V}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,align:"center",content:"Make Soil",disabled:m<25*p,icon:"arrow-circle-down",onClick:function(){function V(){return h("create",{amount:p})}return V}()})})})]})})})}return b}()},21813:function(w,r,n){"use strict";r.__esModule=!0,r.Contractor=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(73379),b=n(98595);function k(N,C){N.prototype=Object.create(C.prototype),N.prototype.constructor=N,S(N,C)}function S(N,C){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,g){return p.__proto__=g,p},S(N,C)}var y={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},h=["Recording biometric data...","Analyzing embedded syndicate info...","STATUS CONFIRMED","Contacting Syndicate database...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Response received, ack 4851234...","CONFIRM ACC "+Math.round(Math.random()*2e4),"Setting up private accounts...","CONTRACTOR ACCOUNT CREATED","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","CONTRACTS FOUND","WELCOME, AGENT"],c=r.Contractor=function(){function N(C,p){var g=(0,t.useBackend)(p),V=g.act,I=g.data,B;I.unauthorized?B=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,l,{height:"100%",allMessages:["ERROR: UNAUTHORIZED USER"],finishedTimeout:100,onFinished:function(){function x(){}return x}()})}):I.load_animation_completed?B=(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:(0,e.createComponentVNode)(2,i)}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",mt:"0.5rem",children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",overflow:"hidden",children:I.page===1?(0,e.createComponentVNode)(2,d,{height:"100%"}):(0,e.createComponentVNode)(2,s,{height:"100%"})})],4):B=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,l,{height:"100%",allMessages:h,finishedTimeout:3e3,onFinished:function(){function x(){return V("complete_load_animation")}return x}()})});var L=(0,t.useLocalState)(p,"viewingPhoto",""),T=L[0],A=L[1];return(0,e.createComponentVNode)(2,b.Window,{theme:"syndicate",width:500,height:600,children:[T&&(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,b.Window.Content,{className:"Contractor",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:B})})]})}return N}(),i=function(C,p){var g=(0,t.useBackend)(p),V=g.act,I=g.data,B=I.tc_available,L=I.tc_paid_out,T=I.completed_contracts,A=I.rep;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Summary",buttons:(0,e.createComponentVNode)(2,o.Box,{verticalAlign:"middle",mt:"0.25rem",children:[A," Rep"]})},C,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Available",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",children:[B," TC"]}),(0,e.createComponentVNode)(2,o.Button,{disabled:B<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){function x(){return V("claim")}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Earned",children:[L," TC"]})]})}),(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contracts Completed",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Box,{height:"20px",lineHeight:"20px",inline:!0,children:T})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},m=function(C,p){var g=(0,t.useBackend)(p),V=g.act,I=g.data,B=I.page;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Tabs,Object.assign({},C,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:B===1,onClick:function(){function L(){return V("page",{page:1})}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"suitcase"}),"Contracts"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:B===2,onClick:function(){function L(){return V("page",{page:2})}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"shopping-cart"}),"Hub"]})]})))},d=function(C,p){var g=(0,t.useBackend)(p),V=g.act,I=g.data,B=I.contracts,L=I.contract_active,T=I.can_extract,A=!!L&&B.filter(function(M){return M.status===1})[0],x=A&&A.time_left>0,E=(0,t.useLocalState)(p,"viewingPhoto",""),P=E[0],j=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Contracts",overflow:"auto",buttons:(0,e.createComponentVNode)(2,o.Button,{disabled:!T||x,icon:"parachute-box",content:["Call Extraction",x&&(0,e.createComponentVNode)(2,f.Countdown,{timeLeft:A.time_left,format:function(){function M(R,D){return" ("+D.substr(3)+")"}return M}()})],onClick:function(){function M(){return V("extract")}return M}()})},C,{children:B.slice().sort(function(M,R){return M.status===1?-1:R.status===1?1:M.status-R.status}).map(function(M){var R;return(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",color:M.status===1&&"good",children:M.target_name}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:M.has_photo&&(0,e.createComponentVNode)(2,o.Button,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){function D(){return j("target_photo_"+M.uid+".png")}return D}()})})]}),className:"Contractor__Contract",buttons:(0,e.createComponentVNode)(2,o.Box,{width:"100%",children:[!!y[M.status]&&(0,e.createComponentVNode)(2,o.Box,{color:y[M.status][1],inline:!0,mt:M.status!==1&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:y[M.status][0]}),M.status===1&&(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"ban",color:"bad",content:"Abort",ml:"0.5rem",onClick:function(){function D(){return V("abort")}return D}()})]}),children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"2",mr:"0.5rem",children:[M.fluff_message,!!M.completed_time&&(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"check",mr:"0.5rem"}),"Contract completed at ",M.completed_time]}),!!M.dead_extraction&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",mt:"0.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"Telecrystals reward reduced drastically as the target was dead during extraction."]}),!!M.fail_reason&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"times",mr:"0.5rem"}),"Contract failed: ",M.fail_reason]})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{flexBasis:"100%",children:[(0,e.createComponentVNode)(2,o.Flex,{mb:"0.5rem",color:"label",children:["Extraction Zone:\xA0",u(M)]}),(R=M.difficulties)==null?void 0:R.map(function(D,W){return(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!!L,content:D.name+" ("+D.reward+" TC)",onClick:function(){function _(){return V("activate",{uid:M.uid,difficulty:W+1})}return _}()},W)}),!!M.objective&&(0,e.createComponentVNode)(2,o.Box,{color:"white",bold:!0,children:[M.objective.extraction_name,(0,e.createVNode)(1,"br"),"(",(M.objective.rewards.tc||0)+" TC",",\xA0",(M.objective.rewards.credits||0)+" Credits",")"]})]})]})},M.uid)})})))},u=function(C){if(!(!C.objective||C.status>1)){var p=C.objective.locs.user_area_id,g=C.objective.locs.user_coords,V=C.objective.locs.target_area_id,I=C.objective.locs.target_coords,B=p===V;return(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:B?"dot-circle-o":"arrow-alt-circle-right-o",color:B?"green":"yellow",rotation:B?null:-(0,a.rad2deg)(Math.atan2(I[1]-g[1],I[0]-g[0])),lineHeight:B?null:"0.85",size:"1.5"})})}},s=function(C,p){var g=(0,t.useBackend)(p),V=g.act,I=g.data,B=I.rep,L=I.buyables;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Purchases",overflow:"auto"},C,{children:L.map(function(T){return(0,e.createComponentVNode)(2,o.Section,{title:T.name,children:[T.description,(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:B-1&&(0,e.createComponentVNode)(2,o.Box,{as:"span",color:T.stock===0?"bad":"good",ml:"0.5rem",children:[T.stock," in stock"]})]},T.uid)})})))},l=function(N){function C(g){var V;return V=N.call(this,g)||this,V.timer=null,V.state={currentIndex:0,currentDisplay:[]},V}k(C,N);var p=C.prototype;return p.tick=function(){function g(){var V=this.props,I=this.state;if(I.currentIndex<=V.allMessages.length){this.setState(function(L){return{currentIndex:L.currentIndex+1}});var B=I.currentDisplay;B.push(V.allMessages[I.currentIndex])}else clearTimeout(this.timer),setTimeout(V.onFinished,V.finishedTimeout)}return g}(),p.componentDidMount=function(){function g(){var V=this,I=this.props.linesPerSecond,B=I===void 0?2.5:I;this.timer=setInterval(function(){return V.tick()},1e3/B)}return g}(),p.componentWillUnmount=function(){function g(){clearTimeout(this.timer)}return g}(),p.render=function(){function g(){return(0,e.createComponentVNode)(2,o.Box,{m:1,children:this.state.currentDisplay.map(function(V){return(0,e.createFragment)([V,(0,e.createVNode)(1,"br")],0,V)})})}return g}(),C}(e.Component),v=function(C,p){var g=(0,t.useLocalState)(p,"viewingPhoto",""),V=g[0],I=g[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Contractor__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:V}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function B(){return I("")}return B}()})]})}},54151:function(w,r,n){"use strict";r.__esModule=!0,r.ConveyorSwitch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ConveyorSwitch=function(){function b(k,S){var y=(0,a.useBackend)(S),h=y.act,c=y.data,i=c.slowFactor,m=c.oneWay,d=c.position;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:135,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lever position",children:d>0?"forward":d<0?"reverse":"neutral"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Allow reverse",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!m,onClick:function(){function u(){return h("toggleOneWay")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slowdown factor",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",onClick:function(){function u(){return h("slowFactor",{value:i-5})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-left",onClick:function(){function u(){return h("slowFactor",{value:i-1})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Slider,{width:"100px",mx:"1px",value:i,fillValue:i,minValue:1,maxValue:50,step:1,format:function(){function u(s){return s+"x"}return u}(),onChange:function(){function u(s,l){return h("slowFactor",{value:l})}return u}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-right",onClick:function(){function u(){return h("slowFactor",{value:i+1})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",onClick:function(){function u(){return h("slowFactor",{value:i+5})}return u}()})," "]})]})})]})})})})}return b}()},73169:function(w,r,n){"use strict";r.__esModule=!0,r.CrewMonitor=void 0;var e=n(89005),a=n(88510),t=n(25328),o=n(72253),f=n(36036),b=n(36352),k=n(76910),S=n(98595),y=n(96184),h=["color"];function c(v,N){if(v==null)return{};var C={};for(var p in v)if({}.hasOwnProperty.call(v,p)){if(N.includes(p))continue;C[p]=v[p]}return C}var i=function(N,C){return N.dead?"Deceased":parseInt(N.health,10)<=C?"Critical":parseInt(N.stat,10)===1?"Unconscious":"Living"},m=function(N,C){return N.dead?"red":parseInt(N.health,10)<=C?"orange":parseInt(N.stat,10)===1?"blue":"green"},d=r.CrewMonitor=function(){function v(N,C){var p=(0,o.useBackend)(C),g=p.act,V=p.data,I=(0,o.useLocalState)(C,"tabIndex",V.tabIndex),B=I[0],L=I[1],T=function(){function x(E){L(E),g("set_tab_index",{tab_index:E})}return x}(),A=function(){function x(E){switch(E){case 0:return(0,e.createComponentVNode)(2,u);case 1:return(0,e.createComponentVNode)(2,l);default:return"WE SHOULDN'T BE HERE!"}}return x}();return(0,e.createComponentVNode)(2,S.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"table",selected:B===0,onClick:function(){function x(){return T(0)}return x}(),children:"Data View"},"DataView"),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"map-marked-alt",selected:B===1,onClick:function(){function x(){return T(1)}return x}(),children:"Map View"},"MapView")]})}),A(B)]})})})}return v}(),u=function(N,C){var p=(0,o.useBackend)(C),g=p.act,V=p.data,I=(0,a.sortBy)(function(M){return M.name})(V.crewmembers||[]),B=V.possible_levels,L=V.viewing_current_z_level,T=V.is_advanced,A=V.highlightedNames,x=(0,o.useLocalState)(C,"search",""),E=x[0],P=x[1],j=(0,t.createSearch)(E,function(M){return M.name+"|"+M.assignment+"|"+M.area});return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,backgroundColor:"transparent",children:[(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,f.Input,{placeholder:"Search by name, assignment or location..",width:"100%",onInput:function(){function M(R,D){return P(D)}return M}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:T?(0,e.createComponentVNode)(2,f.Dropdown,{mr:"5px",width:"50px",options:B,selected:L,onSelected:function(){function M(R){return g("switch_level",{new_level:R})}return M}()}):null})]}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,f.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:(0,e.createComponentVNode)(2,f.Button,{tooltip:"Clear highlights",icon:"square-xmark",onClick:function(){function M(){return g("clear_highlighted_names")}return M}()})}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Location"})]}),I.filter(j).map(function(M){var R=A.includes(M.name);return(0,e.createComponentVNode)(2,f.Table.Row,{bold:!!M.is_command,children:[(0,e.createComponentVNode)(2,b.TableCell,{children:(0,e.createComponentVNode)(2,y.ButtonCheckbox,{checked:R,tooltip:"Mark on map",onClick:function(){function D(){return g(R?"remove_highlighted_name":"add_highlighted_name",{name:M.name})}return D}()})}),(0,e.createComponentVNode)(2,b.TableCell,{children:[M.name," (",M.assignment,")"]}),(0,e.createComponentVNode)(2,b.TableCell,{children:[(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:m(M,V.critThreshold),children:i(M,V.critThreshold)}),M.sensor_type>=2||V.ignoreSensors?(0,e.createComponentVNode)(2,f.Box,{inline:!0,ml:1,children:["(",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.oxy,children:M.oxy}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.toxin,children:M.tox}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.burn,children:M.fire}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.brute,children:M.brute}),")"]}):null]}),(0,e.createComponentVNode)(2,b.TableCell,{children:M.sensor_type===3||V.ignoreSensors?V.isAI||V.isObserver?(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"location-arrow",content:M.area+" ("+M.x+", "+M.y+")",onClick:function(){function D(){return g("track",{track:M.ref})}return D}()}):M.area+" ("+M.x+", "+M.y+")":(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:"grey",children:"Not Available"})})]},M.name)})]})]})},s=function(N,C){var p=N.color,g=c(N,h);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.NanoMap.Marker,Object.assign({},g,{children:(0,e.createVNode)(1,"span","highlighted-marker color-border-"+p)})))},l=function(N,C){var p=(0,o.useBackend)(C),g=p.act,V=p.data,I=V.highlightedNames;return(0,e.createComponentVNode)(2,f.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,f.NanoMap,{zoom:V.zoom,offsetX:V.offsetX,offsetY:V.offsetY,onZoom:function(){function B(L){return g("set_zoom",{zoom:L})}return B}(),onOffsetChange:function(){function B(L,T){return g("set_offset",{offset_x:T.offsetX,offset_y:T.offsetY})}return B}(),children:V.crewmembers.filter(function(B){return B.sensor_type===3||V.ignoreSensors}).map(function(B){var L=m(B,V.critThreshold),T=I.includes(B.name),A=function(){return V.isObserver?g("track",{track:B.ref}):null},x=function(){return g(T?"remove_highlighted_name":"add_highlighted_name",{name:B.name})},E=B.name+" ("+B.assignment+")";return T?(0,e.createComponentVNode)(2,s,{x:B.x,y:B.y,tooltip:E,color:L,onClick:A,onDblClick:x},B.ref):(0,e.createComponentVNode)(2,f.NanoMap.MarkerIcon,{x:B.x,y:B.y,icon:"circle",tooltip:E,color:L,onClick:A,onDblClick:x},B.ref)})})})}},63987:function(w,r,n){"use strict";r.__esModule=!0,r.Cryo=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],b=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],k=r.Cryo=function(){function h(c,i){return(0,e.createComponentVNode)(2,o.Window,{width:520,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,S)})})})}return h}(),S=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.isOperating,l=u.hasOccupant,v=u.occupant,N=v===void 0?[]:v,C=u.cellTemperature,p=u.cellTemperatureStatus,g=u.isBeakerLoaded,V=u.cooldownProgress,I=u.auto_eject_healthy,B=u.auto_eject_dead;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",onClick:function(){function L(){return d("ejectOccupant")}return L}(),disabled:!l,children:"Eject"}),children:l?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:N.name||"Unknown"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:N.health,max:N.maxHealth,value:N.health/N.maxHealth,color:N.health>0?"good":"average",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(N.health)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:b[N.stat][0],children:b[N.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(N.bodyTemperature)})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),f.map(function(L){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:L.label,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:N[L.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(N[L.type])})})},L.id)})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Cell",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function L(){return d("ejectBeaker")}return L}(),disabled:!g,children:"Eject Beaker"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function L(){return d(s?"switchOff":"switchOn")}return L}(),selected:s,children:s?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",color:p,children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:C})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,y)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dosage interval",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{average:[-1/0,99],good:[99,1/0]},color:!g&&"average",value:V,minValue:0,maxValue:100})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject healthy occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:I?"toggle-on":"toggle-off",selected:I,onClick:function(){function L(){return d(I?"auto_eject_healthy_off":"auto_eject_healthy_on")}return L}(),children:I?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject dead occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:B?"toggle-on":"toggle-off",selected:B,onClick:function(){function L(){return d(B?"auto_eject_dead_off":"auto_eject_dead_on")}return L}(),children:B?"On":"Off"})})]})})})],4)},y=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.isBeakerLoaded,l=u.beakerLabel,v=u.beakerVolume;return s?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!l&&"average",children:[l||"No label",":"]}),(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!v&&"bad",ml:1,children:v?(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:v,format:function(){function N(C){return Math.round(C)+" units remaining"}return N}()}):"Beaker is empty"})],4):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"bad",children:"No beaker loaded"})}},86099:function(w,r,n){"use strict";r.__esModule=!0,r.CryopodConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(25328),b=r.CryopodConsole=function(){function y(h,c){var i=(0,a.useBackend)(c),m=i.data,d=m.account_name,u=m.allow_items;return(0,e.createComponentVNode)(2,o.Window,{title:"Cryopod Console",width:400,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Hello, "+(d||"[REDACTED]")+"!",children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,e.createComponentVNode)(2,k),!!u&&(0,e.createComponentVNode)(2,S)]})})}return y}(),k=function(h,c){var i=(0,a.useBackend)(c),m=i.data,d=m.frozen_crew;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Crew",children:d.length?(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(u,s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.name,children:u.rank},s)})})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored crew!"})})},S=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.frozen_items,s=function(v){var N=v.toString();return N.startsWith("the ")&&(N=N.slice(4,N.length)),(0,f.toTitleCase)(N)};return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Items",children:u.length?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s(l.name),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){function v(){return m("one_item",{item:l.uid})}return v}()})},l)})})}),(0,e.createComponentVNode)(2,t.Button,{content:"Drop All Items",color:"red",onClick:function(){function l(){return m("all_items")}return l}()})],4):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored items!"})})}},12692:function(w,r,n){"use strict";r.__esModule=!0,r.DNAModifier=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=[["good","Alive"],["average","Critical"],["bad","DEAD"]],k=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],S=[5,10,20,30,50],y=r.DNAModifier=function(){function p(g,V){var I=(0,a.useBackend)(V),B=I.act,L=I.data,T=L.irradiating,A=L.dnaBlockSize,x=L.occupant;V.dnaBlockSize=A,V.isDNAInvalid=!x.isViableSubject||!x.uniqueIdentity||!x.structuralEnzymes;var E;return T&&(E=(0,e.createComponentVNode)(2,N,{duration:T})),(0,e.createComponentVNode)(2,o.Window,{width:660,height:775,children:[(0,e.createComponentVNode)(2,f.ComplexModal),E,(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,h)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,c)})]})})]})}return p}(),h=function(g,V){var I=(0,a.useBackend)(V),B=I.act,L=I.data,T=L.locked,A=L.hasOccupant,x=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A,selected:T,icon:T?"toggle-on":"toggle-off",content:T?"Engaged":"Disengaged",onClick:function(){function E(){return B("toggleLock")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A||T,icon:"user-slash",content:"Eject",onClick:function(){function E(){return B("ejectOccupant")}return E}()})],4),children:A?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:x.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:x.minHealth,max:x.maxHealth,value:x.health/x.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:b[x.stat][0],children:b[x.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})}),V.isDNAInvalid?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radiation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:"0",max:"100",value:x.radiationLevel/100,color:"average"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:L.occupant.uniqueEnzymes?L.occupant.uniqueEnzymes:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})],0):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Cell unoccupied."})})},c=function(g,V){var I=(0,a.useBackend)(V),B=I.act,L=I.data,T=L.selectedMenuKey,A=L.hasOccupant,x=L.occupant;if(A){if(V.isDNAInvalid)return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No operation possible on this subject."]})})})}else return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant in DNA modifier."]})})});var E;return T==="ui"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,d)],4):T==="se"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,d)],4):T==="buffer"?E=(0,e.createComponentVNode)(2,u):T==="rejuvenators"&&(E=(0,e.createComponentVNode)(2,v)),(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:k.map(function(P,j){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:P[2],selected:T===P[0],onClick:function(){function M(){return B("selectMenuKey",{key:P[0]})}return M}(),children:P[1]},j)})}),E]})},i=function(g,V){var I=(0,a.useBackend)(V),B=I.act,L=I.data,T=L.selectedUIBlock,A=L.selectedUISubBlock,x=L.selectedUITarget,E=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Unique Identifier",children:[(0,e.createComponentVNode)(2,C,{dnaString:E.uniqueIdentity,selectedBlock:T,selectedSubblock:A,blockSize:V.dnaBlockSize,action:"selectUIBlock"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:15,stepPixelSize:"20",value:x,format:function(){function P(j){return j.toString(16).toUpperCase()}return P}(),ml:"0",onChange:function(){function P(j,M){return B("changeUITarget",{value:M})}return P}()})})}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){function P(){return B("pulseUIRadiation")}return P}()})]})},m=function(g,V){var I=(0,a.useBackend)(V),B=I.act,L=I.data,T=L.selectedSEBlock,A=L.selectedSESubBlock,x=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Structural Enzymes",children:[(0,e.createComponentVNode)(2,C,{dnaString:x.structuralEnzymes,selectedBlock:T,selectedSubblock:A,blockSize:V.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){function E(){return B("pulseSERadiation")}return E}()})]})},d=function(g,V){var I=(0,a.useBackend)(V),B=I.act,L=I.data,T=L.radiationIntensity,A=L.radiationDuration;return(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Emitter",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Intensity",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:10,stepPixelSize:20,value:T,popUpPosition:"right",ml:"0",onChange:function(){function x(E,P){return B("radiationIntensity",{value:P})}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:20,stepPixelSize:10,unit:"s",value:A,popUpPosition:"right",ml:"0",onChange:function(){function x(E,P){return B("radiationDuration",{value:P})}return x}()})})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top-start",mt:"0.5rem",onClick:function(){function x(){return B("pulseRadiation")}return x}()})]})},u=function(g,V){var I=(0,a.useBackend)(V),B=I.act,L=I.data,T=L.buffers,A=T.map(function(x,E){return(0,e.createComponentVNode)(2,s,{id:E+1,name:"Buffer "+(E+1),buffer:x},E)});return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{height:"75%",mt:1,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Buffers",children:A})}),(0,e.createComponentVNode)(2,t.Stack.Item,{height:"25%",children:(0,e.createComponentVNode)(2,l)})]})},s=function(g,V){var I=(0,a.useBackend)(V),B=I.act,L=I.data,T=g.id,A=g.name,x=g.buffer,E=L.isInjectorReady,P=A+(x.data?" - "+x.label:"");return(0,e.createComponentVNode)(2,t.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,t.Section,{title:P,mx:"0",lineHeight:"18px",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!x.data,icon:"trash",content:"Clear",onClick:function(){function j(){return B("bufferOption",{option:"clear",id:T})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data,icon:"pen",content:"Rename",onClick:function(){function j(){return B("bufferOption",{option:"changeLabel",id:T})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data||!L.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-start",onClick:function(){function j(){return B("bufferOption",{option:"saveDisk",id:T})}return j}()})],4),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Write",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){function j(){return B("bufferOption",{option:"saveUI",id:T})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){function j(){return B("bufferOption",{option:"saveUIAndUE",id:T})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){function j(){return B("bufferOption",{option:"saveSE",id:T})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!L.hasDisk||!L.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){function j(){return B("bufferOption",{option:"loadDisk",id:T})}return j}()})]}),!!x.data&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:x.owner||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[x.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!x.ue&&" and Unique Enzymes"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transfer to",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Injector",mb:"0",onClick:function(){function j(){return B("bufferOption",{option:"createInjector",id:T})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Block Injector",mb:"0",onClick:function(){function j(){return B("bufferOption",{option:"createInjector",id:T,block:1})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){function j(){return B("bufferOption",{option:"transfer",id:T})}return j}()})]})],4)]}),!x.data&&(0,e.createComponentVNode)(2,t.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},l=function(g,V){var I=(0,a.useBackend)(V),B=I.act,L=I.data,T=L.hasDisk,A=L.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!T||!A.data,icon:"trash",content:"Wipe",onClick:function(){function x(){return B("wipeDisk")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function x(){return B("ejectDisk")}return x}()})],4),children:T?A.data?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Label",children:A.label?A.label:"No label"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:A.owner?A.owner:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[A.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!A.ue&&" and Unique Enzymes"]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Disk is blank."}):(0,e.createComponentVNode)(2,t.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"save-o",size:"4"}),(0,e.createVNode)(1,"br"),"No disk inserted."]})})},v=function(g,V){var I=(0,a.useBackend)(V),B=I.act,L=I.data,T=L.isBeakerLoaded,A=L.beakerVolume,x=L.beakerLabel;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Rejuvenators and Beaker",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function E(){return B("ejectBeaker")}return E}()}),children:T?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Inject",children:[S.map(function(E,P){return(0,e.createComponentVNode)(2,t.Button,{disabled:E>A,icon:"syringe",content:E,onClick:function(){function j(){return B("injectRejuvenators",{amount:E})}return j}()},P)}),(0,e.createComponentVNode)(2,t.Button,{disabled:A<=0,icon:"syringe",content:"All",onClick:function(){function E(){return B("injectRejuvenators",{amount:A})}return E}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"0.5rem",children:x||"No label"}),A?(0,e.createComponentVNode)(2,t.Box,{color:"good",children:[A," unit",A===1?"":"s"," remaining"]}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Empty"})]})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No beaker loaded.",16)]})})})},N=function(g,V){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"average",children:(0,e.createVNode)(1,"h1",null,[(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"}),(0,e.createTextVNode)("\xA0Irradiating occupant\xA0"),(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"})],4)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,[(0,e.createTextVNode)("For "),g.duration,(0,e.createTextVNode)(" second"),g.duration===1?"":"s"],0)})]})},C=function(g,V){for(var I=(0,a.useBackend)(V),B=I.act,L=I.data,T=g.dnaString,A=g.selectedBlock,x=g.selectedSubblock,E=g.blockSize,P=g.action,j=T.split(""),M=0,R=[],D=function(){for(var U=W/E+1,K=[],G=function(){var J=$+1;K.push((0,e.createComponentVNode)(2,t.Button,{selected:A===U&&x===J,content:j[W+$],mb:"0",onClick:function(){function ie(){return B(P,{block:U,subblock:J})}return ie}()}))},$=0;$l.spawnpoints?"red":"green",children:[l.total," total, versus ",l.spawnpoints," spawnpoints"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispatch",children:(0,e.createComponentVNode)(2,t.Button,{width:10.5,textAlign:"center",icon:"ambulance",content:"Send ERT",onClick:function(){function g(){return s("dispatch_ert",{silent:C})}return g}()})})]})})})},h=function(m,d){var u=(0,a.useBackend)(d),s=u.act,l=u.data,v=l.ert_request_messages;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:v&&v.length?v.map(function(N){return(0,e.createComponentVNode)(2,t.Section,{title:N.time,buttons:(0,e.createComponentVNode)(2,t.Button,{content:N.sender_real_name,onClick:function(){function C(){return s("view_player_panel",{uid:N.sender_uid})}return C}(),tooltip:"View player panel"}),children:N.message},(0,f.decodeHtmlEntities)(N.time))}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"broadcast-tower",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No ERT requests."]})})})})},c=function(m,d){var u=(0,a.useBackend)(d),s=u.act,l=u.data,v=(0,a.useLocalState)(d,"text",""),N=v[0],C=v[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter ERT denial reason here,\nMultiline input is accepted.",rows:19,fluid:!0,multiline:1,value:N,onChange:function(){function p(g,V){return C(V)}return p}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Deny ERT",fluid:!0,icon:"times",center:!0,mt:2,textAlign:"center",onClick:function(){function p(){return s("deny_ert",{reason:N})}return p}()})]})})}},90217:function(w,r,n){"use strict";r.__esModule=!0,r.EconomyManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=r.EconomyManager=function(){function S(y,h){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:325,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,k)})]})}return S}(),k=function(y,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.next_payroll_time;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.4rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"coins",verticalAlign:"middle",size:3,mr:"1rem"}),"Economy Manager"]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.LabeledList,{label:"Pay Bonuses and Deductions",children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Global",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Global Payroll Modification",onClick:function(){function u(){return i("payroll_modification",{mod_type:"global"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Account Payroll Modification",onClick:function(){function u(){return i("payroll_modification",{mod_type:"department"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Members",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Members Payroll Modification",onClick:function(){function u(){return i("payroll_modification",{mod_type:"department_members"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Single Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Crew Member Payroll Modification",onClick:function(){function u(){return i("payroll_modification",{mod_type:"crew_member"})}return u}()})})]}),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Box,{mb:.5,children:["Next Payroll in: ",d," Minutes"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",width:"auto",color:"bad",content:"Delay Payroll",onClick:function(){function u(){return i("delay_payroll")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{width:"auto",content:"Set Payroll Time",onClick:function(){function u(){return i("set_payroll")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",width:"auto",color:"good",content:"Accelerate Payroll",onClick:function(){function u(){return i("accelerate_payroll")}return u}()})]}),(0,e.createComponentVNode)(2,t.NoticeBox,{children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," You take full responsibility for unbalancing the economy with these buttons!"]})],4)}},82565:function(w,r,n){"use strict";r.__esModule=!0,r.Electropack=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=r.Electropack=function(){function k(S,y){var h=(0,t.useBackend)(y),c=h.act,i=h.data,m=i.power,d=i.code,u=i.frequency,s=i.minFrequency,l=i.maxFrequency;return(0,e.createComponentVNode)(2,f.Window,{width:360,height:135,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,o.Button,{icon:m?"power-off":"times",content:m?"On":"Off",selected:m,onClick:function(){function v(){return c("power")}return v}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function v(){return c("reset",{reset:"freq"})}return v}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:s/10,maxValue:l/10,value:u/10,format:function(){function v(N){return(0,a.toFixed)(N,1)}return v}(),width:"80px",onChange:function(){function v(N,C){return c("freq",{freq:C})}return v}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function v(){return c("reset",{reset:"code"})}return v}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:d,width:"80px",onChange:function(){function v(N,C){return c("code",{code:C})}return v}()})})]})})})})}return k}()},11243:function(w,r,n){"use strict";r.__esModule=!0,r.Emojipedia=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=n(98595),b=r.Emojipedia=function(){function S(y,h){var c=(0,t.useBackend)(h),i=c.data,m=i.emoji_list,d=(0,t.useLocalState)(h,"searchText",""),u=d[0],s=d[1],l=m.filter(function(v){return v.name.toLowerCase().includes(u.toLowerCase())});return(0,e.createComponentVNode)(2,f.Window,{width:325,height:400,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Emojipedia v1.0.1",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by name",value:u,onInput:function(){function v(N,C){return s(C)}return v}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Click on an emoji to copy its tag!",tooltipPosition:"bottom",icon:"circle-question"})],4),children:l.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{m:1,color:"transparent",className:(0,a.classes)(["emoji16x16","emoji-"+v.name]),style:{transform:"scale(1.5)"},tooltip:v.name,onClick:function(){function N(){k(v.name)}return N}()},v.name)})})})})}return S}(),k=function(y){var h=document.createElement("input"),c=":"+y+":";h.value=c,document.body.appendChild(h),h.select(),document.execCommand("copy"),document.body.removeChild(h)}},36730:function(w,r,n){"use strict";r.__esModule=!0,r.EvolutionMenu=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=n(64795),k=n(88510),S=r.EvolutionMenu=function(){function c(i,m){return(0,e.createComponentVNode)(2,f.Window,{width:480,height:580,theme:"changeling",children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,h)]})})})}return c}(),y=function(i,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data,l=s.evo_points,v=s.can_respec;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Evolution Points",height:5.5,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,color:"label",children:"Points remaining:"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,ml:2,bold:!0,color:"#1b945c",children:l}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Button,{ml:2.5,disabled:!v,content:"Readapt",icon:"sync",onClick:function(){function N(){return u("readapt")}return N}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"By transforming a humanoid into a husk, we gain the ability to readapt our chosen evolutions.",tooltipPosition:"bottom",icon:"question-circle"})]})]})})})},h=function(i,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data,l=s.evo_points,v=s.ability_tabs,N=s.purchased_abilities,C=s.view_mode,p=(0,t.useLocalState)(m,"selectedTab",v[0]),g=p[0],V=p[1],I=(0,t.useLocalState)(m,"searchText",""),B=I[0],L=I[1],T=(0,t.useLocalState)(m,"ability_tabs",v[0].abilities),A=T[0],x=T[1],E=function(R,D){if(D===void 0&&(D=""),!R||R.length===0)return[];var W=(0,a.createSearch)(D,function(_){return _.name+"|"+_.description});return(0,b.flow)([(0,k.filter)(function(_){return _==null?void 0:_.name}),(0,k.filter)(W),(0,k.sortBy)(function(_){return _==null?void 0:_.name})])(R)},P=function(R){if(L(R),R==="")return x(g.abilities);x(E(v.map(function(D){return D.abilities}).flat(),R))},j=function(R){V(R),x(R.abilities),L("")};return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Abilities",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Input,{width:"200px",placeholder:"Search Abilities",onInput:function(){function M(R,D){P(D)}return M}(),value:B}),(0,e.createComponentVNode)(2,o.Button,{icon:C?"square-o":"check-square-o",selected:!C,content:"Compact",onClick:function(){function M(){return u("set_view_mode",{mode:0})}return M}()}),(0,e.createComponentVNode)(2,o.Button,{icon:C?"check-square-o":"square-o",selected:C,content:"Expanded",onClick:function(){function M(){return u("set_view_mode",{mode:1})}return M}()})],4),children:[(0,e.createComponentVNode)(2,o.Tabs,{children:v.map(function(M){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:B===""&&g===M,onClick:function(){function R(){j(M)}return R}(),children:M.category},M)})}),A.map(function(M,R){return(0,e.createComponentVNode)(2,o.Box,{p:.5,mx:-1,className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{ml:.5,color:"#dedede",children:M.name}),N.includes(M.power_path)&&(0,e.createComponentVNode)(2,o.Stack.Item,{ml:2,bold:!0,color:"#1b945c",children:"(Purchased)"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mr:3,textAlign:"right",grow:1,children:[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:["Cost:"," "]}),(0,e.createComponentVNode)(2,o.Box,{as:"span",bold:!0,color:"#1b945c",children:M.cost})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{textAlign:"right",children:(0,e.createComponentVNode)(2,o.Button,{mr:.5,disabled:M.cost>l||N.includes(M.power_path),content:"Evolve",onClick:function(){function D(){return u("purchase",{power_path:M.power_path})}return D}()})})]}),!!C&&(0,e.createComponentVNode)(2,o.Stack,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:M.description+" "+M.helptext})]},R)})]})})}},17370:function(w,r,n){"use strict";r.__esModule=!0,r.ExosuitFabricator=void 0;var e=n(89005),a=n(35840),t=n(25328),o=n(72253),f=n(36036),b=n(73379),k=n(98595),S=["id","amount","lineDisplay","onClick"];function y(N,C){if(N==null)return{};var p={};for(var g in N)if({}.hasOwnProperty.call(N,g)){if(C.includes(g))continue;p[g]=N[g]}return p}var h=2e3,c={bananium:"clown",tranquillite:"mime"},i=r.ExosuitFabricator=function(){function N(C,p){var g=(0,o.useBackend)(p),V=g.act,I=g.data,B=I.building;return(0,e.createComponentVNode)(2,k.Window,{width:950,height:625,children:(0,e.createComponentVNode)(2,k.Window.Content,{className:"Exofab",children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,d)}),B&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,u)})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,s)})]})})]})})})}return N}(),m=function(C,p){var g=(0,o.useBackend)(p),V=g.act,I=g.data,B=I.materials,L=I.capacity,T=Object.values(B).reduce(function(A,x){return A+x},0);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:"Materials",className:"Exofab__materials",buttons:(0,e.createComponentVNode)(2,f.Box,{color:"label",mt:"0.25rem",children:[(T/L*100).toPrecision(3),"% full"]}),children:["metal","glass","silver","gold","uranium","titanium","plasma","diamond","bluespace","bananium","tranquillite","plastic"].map(function(A){return(0,e.createComponentVNode)(2,l,{mt:-2,id:A,bold:A==="metal"||A==="glass",onClick:function(){function x(){return V("withdraw",{id:A})}return x}()},A)})})},d=function(C,p){var g=(0,o.useBackend)(p),V=g.act,I=g.data,B=I.curCategory,L=I.categories,T=I.designs,A=I.syncing,x=(0,o.useLocalState)(p,"searchText",""),E=x[0],P=x[1],j=(0,t.createSearch)(E,function(R){return R.name}),M=T.filter(j);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,e.createComponentVNode)(2,f.Dropdown,{className:"Exofab__dropdown",selected:B,options:L,onSelected:function(){function R(D){return V("category",{cat:D})}return R}()}),buttons:(0,e.createComponentVNode)(2,f.Box,{mt:"2px",children:[(0,e.createComponentVNode)(2,f.Button,{icon:"plus",content:"Queue all",onClick:function(){function R(){return V("queueall")}return R}()}),(0,e.createComponentVNode)(2,f.Button,{disabled:A,iconSpin:A,icon:"sync-alt",content:A?"Synchronizing...":"Synchronize with R&D servers",onClick:function(){function R(){return V("sync")}return R}()})]}),children:[(0,e.createComponentVNode)(2,f.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(){function R(D,W){return P(W)}return R}()}),M.map(function(R){return(0,e.createComponentVNode)(2,v,{design:R},R.id)}),M.length===0&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No designs found."})]})},u=function(C,p){var g=(0,o.useBackend)(p),V=g.act,I=g.data,B=I.building,L=I.buildStart,T=I.buildEnd,A=I.worldTime;return(0,e.createComponentVNode)(2,f.Section,{className:"Exofab__building",stretchContents:!0,children:(0,e.createComponentVNode)(2,f.ProgressBar.Countdown,{start:L,current:A,end:T,children:(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Icon,{name:"cog",spin:!0})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:["Building ",B,"\xA0(",(0,e.createComponentVNode)(2,b.Countdown,{current:A,timeLeft:T-A,format:function(){function x(E,P){return P.substr(3)}return x}()}),")"]})]})})})},s=function(C,p){var g=(0,o.useBackend)(p),V=g.act,I=g.data,B=I.queue,L=I.processingQueue,T=Object.entries(I.queueDeficit).filter(function(x){return x[1]<0}),A=B.reduce(function(x,E){return x+E.time},0);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,className:"Exofab__queue",title:"Queue",buttons:(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.Button,{selected:L,icon:L?"toggle-on":"toggle-off",content:"Process",onClick:function(){function x(){return V("process")}return x}()}),(0,e.createComponentVNode)(2,f.Button,{disabled:B.length===0,icon:"eraser",content:"Clear",onClick:function(){function x(){return V("unqueueall")}return x}()})]}),children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:B.length===0?(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"The queue is empty."}):(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--queue",grow:!0,overflow:"auto",children:B.map(function(x,E){return(0,e.createComponentVNode)(2,f.Box,{color:x.notEnough&&"bad",children:[E+1,". ",x.name,E>0&&(0,e.createComponentVNode)(2,f.Button,{icon:"arrow-up",onClick:function(){function P(){return V("queueswap",{from:E+1,to:E})}return P}()}),E0&&(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--time",children:[(0,e.createComponentVNode)(2,f.Divider),"Processing time:",(0,e.createComponentVNode)(2,f.Icon,{name:"clock",mx:"0.5rem"}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,bold:!0,children:new Date(A/10*1e3).toISOString().substr(14,5)})]}),Object.keys(T).length>0&&(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--deficit",shrink:"0",children:[(0,e.createComponentVNode)(2,f.Divider),"Lacking materials to complete:",T.map(function(x){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,l,{id:x[0],amount:-x[1],lineDisplay:!0})},x[0])})]})],0)})})},l=function(C,p){var g=(0,o.useBackend)(p),V=g.act,I=g.data,B=C.id,L=C.amount,T=C.lineDisplay,A=C.onClick,x=y(C,S),E=I.materials[B]||0,P=L||E;if(!(P<=0&&!(B==="metal"||B==="glass"))){var j=L&&L>E;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Stack,Object.assign({align:"center",className:(0,a.classes)(["Exofab__material",T&&"Exofab__material--line"])},x,{children:T?(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{className:(0,a.classes)(["materials32x32",B])}),(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__material--amount",color:j&&"bad",ml:0,mr:1,children:P.toLocaleString("en-US")})],4):(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{basis:"content",children:(0,e.createComponentVNode)(2,f.Button,{width:"85%",color:"transparent",onClick:A,children:(0,e.createComponentVNode)(2,f.Box,{mt:1,className:(0,a.classes)(["materials32x32",B])})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:"1",children:[(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--name",children:B}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--amount",children:[P.toLocaleString("en-US")," cm\xB3 (",Math.round(P/h*10)/10," ","sheets)"]})]})],4)})))}},v=function(C,p){var g=(0,o.useBackend)(p),V=g.act,I=g.data,B=C.design;return(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design",children:[(0,e.createComponentVNode)(2,f.Button,{disabled:B.notEnough||I.building,icon:"cog",content:B.name,onClick:function(){function L(){return V("build",{id:B.id})}return L}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"plus-circle",onClick:function(){function L(){return V("queue",{id:B.id})}return L}()}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design--cost",children:Object.entries(B.cost).map(function(L){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,l,{id:L[0],amount:L[1],lineDisplay:!0})},L[0])})}),(0,e.createComponentVNode)(2,f.Stack,{className:"Exofab__design--time",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"clock"}),B.time>0?(0,e.createFragment)([B.time/10,(0,e.createTextVNode)(" seconds")],0):"Instant"]})})]})}},59128:function(w,r,n){"use strict";r.__esModule=!0,r.ExperimentConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=new Map([[0,{text:"Conscious",color:"good"}],[1,{text:"Unconscious",color:"average"}],[2,{text:"Deceased",color:"bad"}]]),b=new Map([[0,{label:"Probe",icon:"thermometer"}],[1,{label:"Dissect",icon:"brain"}],[2,{label:"Analyze",icon:"search"}]]),k=r.ExperimentConsole=function(){function S(y,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.open,u=m.feedback,s=m.occupant,l=m.occupant_name,v=m.occupant_status,N=function(){function p(){if(!s)return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No specimen detected."});var g=function(){function I(){return f.get(v)}return I}(),V=g();return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:V.color,children:V.text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Experiments",children:[0,1,2].map(function(I){return(0,e.createComponentVNode)(2,t.Button,{icon:b.get(I).icon,content:b.get(I).label,onClick:function(){function B(){return i("experiment",{experiment_type:I})}return B}()},I)})})]})}return p}(),C=N();return(0,e.createComponentVNode)(2,o.Window,{theme:"abductor",width:350,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:u})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Scanner",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!d,onClick:function(){function p(){return i("door")}return p}()}),children:C})]})})}return S}()},97086:function(w,r,n){"use strict";r.__esModule=!0,r.ExternalAirlockController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=0,b=1013,k=function(h){var c="good",i=80,m=95,d=110,u=120;return hd?c="average":h>u&&(c="bad"),c},S=r.ExternalAirlockController=function(){function y(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.chamber_pressure,s=d.exterior_status,l=d.interior_status,v=d.processing;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:205,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chamber Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:k(u),value:u,minValue:f,maxValue:b,children:[u," kPa"]})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Abort",icon:"ban",color:"red",disabled:!v,onClick:function(){function N(){return m("abort")}return N}()}),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:v,onClick:function(){function N(){return m("cycle_ext")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:v,onClick:function(){function N(){return m("cycle_int")}return N}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Force Exterior Door",icon:"exclamation-triangle",color:l==="open"?"red":v?"yellow":null,onClick:function(){function N(){return m("force_ext")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Force Interior Door",icon:"exclamation-triangle",color:l==="open"?"red":v?"yellow":null,onClick:function(){function N(){return m("force_int")}return N}()})]})]})]})})}return y}()},96142:function(w,r,n){"use strict";r.__esModule=!0,r.FaxMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.FaxMachine=function(){function b(k,S){var y=(0,a.useBackend)(S),h=y.act,c=y.data;return(0,e.createComponentVNode)(2,o.Window,{width:540,height:295,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.scan_name?"eject":"id-card",selected:c.scan_name,content:c.scan_name?c.scan_name:"-----",tooltip:c.scan_name?"Eject ID":"Insert ID",onClick:function(){function i(){return h("scan")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorize",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.authenticated?"sign-out-alt":"id-card",selected:c.authenticated,disabled:c.nologin,content:c.realauth?"Log Out":"Log In",onClick:function(){function i(){return h("auth")}return i}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fax Menu",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network",children:c.network}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Document",children:[(0,e.createComponentVNode)(2,t.Button,{icon:c.paper?"eject":"paperclip",disabled:!c.authenticated&&!c.paper,content:c.paper?c.paper:"-----",onClick:function(){function i(){return h("paper")}return i}()}),!!c.paper&&(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function i(){return h("rename")}return i}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sending To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:c.destination?c.destination:"-----",disabled:!c.authenticated,onClick:function(){function i(){return h("dept")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Action",children:(0,e.createComponentVNode)(2,t.Button,{icon:"envelope",content:c.sendError?c.sendError:"Send",disabled:!c.paper||!c.destination||!c.authenticated||c.sendError,onClick:function(){function i(){return h("send")}return i}()})})]})})]})})}return b}()},74123:function(w,r,n){"use strict";r.__esModule=!0,r.FilingCabinet=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.FilingCabinet=function(){function b(k,S){var y=(0,a.useBackend)(S),h=y.act,c=y.data,i=y.config,m=c.contents,d=i.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Contents",children:[!m&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"folder-open",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"The ",d," is empty."]})}),!!m&&m.slice().map(function(u){return(0,e.createComponentVNode)(2,t.Stack,{mt:.5,className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"80%",children:u.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Retrieve",onClick:function(){function s(){return h("retrieve",{index:u.index})}return s}()})})]},u)})]})})})})}return b}()},83767:function(w,r,n){"use strict";r.__esModule=!0,r.FloorPainter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(S,y){var h=(0,a.useBackend)(y),c=h.act,i=h.data,m=S.image,d=S.isSelected,u=S.onSelect;return(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+m,style:{"border-style":d&&"solid"||"none","border-width":"2px","border-color":"orange",padding:d&&"2px"||"4px"},onClick:u})},b=r.FloorPainter=function(){function k(S,y){var h=(0,a.useBackend)(y),c=h.act,i=h.data,m=i.availableStyles,d=i.selectedStyle,u=i.selectedDir,s=i.directionsPreview,l=i.allStylesPreview;return(0,e.createComponentVNode)(2,o.Window,{width:405,height:475,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Decal setup",children:[(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",onClick:function(){function v(){return c("cycle_style",{offset:-1})}return v}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{options:m,selected:d,width:"150px",height:"20px",ml:"2px",mr:"2px",nochevron:!0,onSelected:function(){function v(N){return c("select_style",{style:N})}return v}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function v(){return c("cycle_style",{offset:1})}return v}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",mb:"5px",children:(0,e.createComponentVNode)(2,t.Flex,{overflowY:"auto",maxHeight:"220px",wrap:"wrap",children:m.map(function(v){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,f,{image:l[v],isSelected:d===v,onSelect:function(){function N(){return c("select_style",{style:v})}return N}()})},"{style}")})})}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Direction",children:(0,e.createComponentVNode)(2,t.Table,{style:{display:"inline"},children:["north","","south"].map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[v+"west",v,v+"east"].map(function(N){return(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:N===""?(0,e.createComponentVNode)(2,t.Icon,{name:"arrows-alt",size:3}):(0,e.createComponentVNode)(2,f,{image:s[N],isSelected:N===u,onSelect:function(){function C(){return c("select_direction",{direction:N})}return C}()})},N)})},v)})})})})]})})})}return k}()},53424:function(w,r,n){"use strict";r.__esModule=!0,r.GPS=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=function(d){return d?"("+d.join(", ")+")":"ERROR"},k=function(d,u){if(!(!d||!u)){if(d[2]!==u[2])return null;var s=Math.atan2(u[1]-d[1],u[0]-d[0]),l=Math.sqrt(Math.pow(u[1]-d[1],2)+Math.pow(u[0]-d[0],2));return{angle:(0,a.rad2deg)(s),distance:l}}},S=r.GPS=function(){function m(d,u){var s=(0,t.useBackend)(u),l=s.data,v=l.emped,N=l.active,C=l.area,p=l.position,g=l.saved;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:v?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,y,{emp:!0})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h)}),N?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,c,{area:C,position:p})}),g&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,c,{title:"Saved Position",position:g})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,i,{height:"100%"})})],0):(0,e.createComponentVNode)(2,y)],0)})})})}return m}(),y=function(d,u){var s=d.emp;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Box,{width:"100%",height:"100%",color:"label",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:s?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),s?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},h=function(d,u){var s=(0,t.useBackend)(u),l=s.act,v=s.data,N=v.active,C=v.tag,p=v.same_z,g=(0,t.useLocalState)(u,"newTag",C),V=g[0],I=g[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",buttons:(0,e.createComponentVNode)(2,o.Button,{selected:N,icon:N?"toggle-on":"toggle-off",content:N?"On":"Off",onClick:function(){function B(){return l("toggle")}return B}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,o.Input,{width:"5rem",value:C,onEnter:function(){function B(){return l("tag",{newtag:V})}return B}(),onInput:function(){function B(L,T){return I(T)}return B}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:C===V,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function B(){return l("tag",{newtag:V})}return B}(),children:(0,e.createComponentVNode)(2,o.Icon,{name:"pen"})})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,o.Button,{selected:!p,icon:p?"compress":"expand",content:p?"Local Sector":"Global",onClick:function(){function B(){return l("same_z")}return B}()})})]})})},c=function(d,u){var s=d.title,l=d.area,v=d.position;return(0,e.createComponentVNode)(2,o.Section,{title:s||"Position",children:(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",children:[l&&(0,e.createFragment)([l,(0,e.createVNode)(1,"br")],0),b(v)]})})},i=function(d,u){var s=(0,t.useBackend)(u),l=s.data,v=l.position,N=l.signals;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,title:"Signals"},d,{children:(0,e.createComponentVNode)(2,o.Table,{children:N.map(function(C){return Object.assign({},C,k(v,C.position))}).map(function(C,p){return(0,e.createComponentVNode)(2,o.Table.Row,{backgroundColor:p%2===0&&"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{width:"30%",verticalAlign:"middle",color:"label",p:"0.25rem",bold:!0,children:C.tag}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",color:"grey",children:C.area}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",collapsing:!0,children:C.distance!==void 0&&(0,e.createComponentVNode)(2,o.Box,{opacity:Math.max(1-Math.min(C.distance,100)/100,.5),children:[(0,e.createComponentVNode)(2,o.Icon,{name:C.distance>0?"arrow-right":"circle",rotation:-C.angle}),"\xA0",Math.floor(C.distance)+"m"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:b(C.position)})]},p)})})})))}},89124:function(w,r,n){"use strict";r.__esModule=!0,r.GeneModder=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(3939),f=n(98595),b=r.GeneModder=function(){function u(s,l){var v=(0,a.useBackend)(l),N=v.data,C=N.has_seed;return(0,e.createComponentVNode)(2,f.Window,{width:950,height:650,children:[(0,e.createVNode)(1,"div","GeneModder__left",(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,d,{scrollable:!0})}),2),(0,e.createVNode)(1,"div","GeneModder__right",(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,o.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),C===0?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,k)]})}),2)]})}return u}(),k=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Genes",fill:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i)]})},S=function(s,l){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,height:"85%",children:(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"green",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The plant DNA manipulator is missing a seed."]})})})},y=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.has_seed,g=C.seed,V=C.has_disk,I=C.disk,B,L;return p?B=(0,e.createComponentVNode)(2,t.Stack.Item,{mb:"-6px",mt:"-4px",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+g.image,style:{"vertical-align":"middle",width:"32px",margin:"-1px","margin-left":"-11px"}}),(0,e.createComponentVNode)(2,t.Button,{content:g.name,onClick:function(){function T(){return N("eject_seed")}return T}()}),(0,e.createComponentVNode)(2,t.Button,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){function T(){return N("variant_name")}return T}()})]}):B=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:"None",onClick:function(){function T(){return N("eject_seed")}return T}()})}),V?L=I.name:L="None",(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plant Sample",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Disk",children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:L,tooltip:"Select Empty Disk",onClick:function(){function T(){return N("select_empty_disk")}return T}()})})})]})})},h=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.disk,g=C.core_genes;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core Genes",open:!0,children:[g.map(function(V){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:V.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(p!=null&&p.can_extract),icon:"save",onClick:function(){function I(){return N("extract",{id:V.id})}return I}()})})]},V)})," ",(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract All",disabled:!(p!=null&&p.can_extract),icon:"save",onClick:function(){function V(){return N("bulk_extract_core")}return V}()})})})]},"Core Genes")},c=function(s,l){var v=(0,a.useBackend)(l),N=v.data,C=N.reagent_genes,p=N.has_reagent;return(0,e.createComponentVNode)(2,m,{title:"Reagent Genes",gene_set:C,do_we_show:p})},i=function(s,l){var v=(0,a.useBackend)(l),N=v.data,C=N.trait_genes,p=N.has_trait;return(0,e.createComponentVNode)(2,m,{title:"Trait Genes",gene_set:C,do_we_show:p})},m=function(s,l){var v=s.title,N=s.gene_set,C=s.do_we_show,p=(0,a.useBackend)(l),g=p.act,V=p.data,I=V.disk;return(0,e.createComponentVNode)(2,t.Collapsible,{title:v,open:!0,children:C?N.map(function(B){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:B.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(I!=null&&I.can_extract),icon:"save",onClick:function(){function L(){return g("extract",{id:B.id})}return L}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"times",onClick:function(){function L(){return g("remove",{id:B.id})}return L}()})})]},B)}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"No Genes Detected"})},v)},d=function(s,l){var v=s.title,N=s.gene_set,C=s.do_we_show,p=(0,a.useBackend)(l),g=p.act,V=p.data,I=V.has_seed,B=V.empty_disks,L=V.stat_disks,T=V.trait_disks,A=V.reagent_disks;return(0,e.createComponentVNode)(2,t.Section,{title:"Disks",children:[(0,e.createVNode)(1,"br"),"Empty Disks: ",B,(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{width:12,icon:"arrow-down",tooltip:"Eject an Empty disk",content:"Eject Empty Disk",onClick:function(){function x(){return g("eject_empty_disk")}return x}()}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stats",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[L.slice().sort(function(x,E){return x.display_name.localeCompare(E.display_name)}).map(function(x){return(0,e.createComponentVNode)(2,t.Stack,{mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"49%",children:x.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:25,children:[x.stat==="All"?(0,e.createComponentVNode)(2,t.Button,{content:"Replace All",tooltip:"Write disk stats to seed",disabled:!(x!=null&&x.ready)||!I,icon:"arrow-circle-down",onClick:function(){function E(){return g("bulk_replace_core",{index:x.index})}return E}()}):(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-circle-down",tooltip:"Write disk stat to seed",disabled:!x||!I,content:"Replace",onClick:function(){function E(){return g("replace",{index:x.index,stat:x.stat})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-right",content:"Select",tooltip:"Choose as target for extracted genes",tooltipPosition:"bottom-start",onClick:function(){function E(){return g("select",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:5,icon:"arrow-down",content:"Eject",tooltip:"Eject Disk",tooltipPosition:"bottom-start",onClick:function(){function E(){return g("eject_disk",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:2,icon:x.read_only?"lock":"lock-open",content:"",tool_tip:"Set/unset Read Only",onClick:function(){function E(){return g("set_read_only",{index:x.index,read_only:x.read_only})}return E}()})]})]},x)}),(0,e.createComponentVNode)(2,t.Button)]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Traits",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[T.slice().sort(function(x,E){return x.display_name.localeCompare(E.display_name)}).map(function(x){return(0,e.createComponentVNode)(2,t.Stack,{mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"49%",children:x.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:25,children:[(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-circle-down",disabled:!x||!x.can_insert,tooltip:"Add disk trait to seed",content:"Insert",onClick:function(){function E(){return g("insert",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-right",content:"Select",tooltip:"Choose as target for extracted genes",tooltipPosition:"bottom-start",onClick:function(){function E(){return g("select",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:5,icon:"arrow-down",content:"Eject",tooltip:"Eject Disk",tooltipPosition:"bottom-start",onClick:function(){function E(){return g("eject_disk",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:2,icon:x.read_only?"lock":"lock-open",content:"",tool_tip:"Set/unset Read Only",onClick:function(){function E(){return g("set_read_only",{index:x.index,read_only:x.read_only})}return E}()})]})]},x)}),(0,e.createComponentVNode)(2,t.Button)]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Reagents",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[A.slice().sort(function(x,E){return x.display_name.localeCompare(E.display_name)}).map(function(x){return(0,e.createComponentVNode)(2,t.Stack,{mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"49%",children:x.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:25,children:[(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-circle-down",disabled:!x||!x.can_insert,tooltip:"Add disk reagent to seed",content:"Insert",onClick:function(){function E(){return g("insert",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-right",content:"Select",tooltip:"Choose as target for extracted genes",tooltipPosition:"bottom-start",onClick:function(){function E(){return g("select",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:5,icon:"arrow-down",content:"Eject",tooltip:"Eject Disk",tooltipPosition:"bottom-start",onClick:function(){function E(){return g("eject_disk",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:2,icon:x.read_only?"lock":"lock-open",content:"",tool_tip:"Set/unset Read Only",onClick:function(){function E(){return g("set_read_only",{index:x.index,read_only:x.read_only})}return E}()})]})]},x)}),(0,e.createComponentVNode)(2,t.Button)]})})]})]})}},73053:function(w,r,n){"use strict";r.__esModule=!0,r.GenericCrewManifest=void 0;var e=n(89005),a=n(36036),t=n(98595),o=n(41874),f=r.GenericCrewManifest=function(){function b(k,S){return(0,e.createComponentVNode)(2,t.Window,{theme:"nologo",width:588,height:510,children:(0,e.createComponentVNode)(2,t.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,a.Section,{noTopPadding:!0,children:(0,e.createComponentVNode)(2,o.CrewManifest)})})})}return b}()},42914:function(w,r,n){"use strict";r.__esModule=!0,r.GhostHudPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.GhostHudPanel=function(){function k(S,y){var h=(0,a.useBackend)(y),c=h.data,i=c.security,m=c.medical,d=c.diagnostic,u=c.radioactivity,s=c.ahud;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:207,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,b,{label:"Medical",type:"medical",is_active:m}),(0,e.createComponentVNode)(2,b,{label:"Security",type:"security",is_active:i}),(0,e.createComponentVNode)(2,b,{label:"Diagnostic",type:"diagnostic",is_active:d}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,b,{label:"Radioactivity",type:"radioactivity",is_active:u,act_on:"rads_on",act_off:"rads_off"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,b,{label:"Antag HUD",is_active:s,act_on:"ahud_on",act_off:"ahud_off"})]})})})}return k}(),b=function(S,y){var h=(0,a.useBackend)(y),c=h.act,i=S.label,m=S.type,d=m===void 0?null:m,u=S.is_active,s=S.act_on,l=s===void 0?"hud_on":s,v=S.act_off,N=v===void 0?"hud_off":v;return(0,e.createComponentVNode)(2,t.Flex,{pt:.3,color:"label",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{pl:.5,align:"center",width:"80%",children:i}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:.6,content:u?"On":"Off",icon:u?"toggle-on":"toggle-off",selected:u,onClick:function(){function C(){return c(u?N:l,{hud_type:d})}return C}()})})]})}},25825:function(w,r,n){"use strict";r.__esModule=!0,r.GlandDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.GlandDispenser=function(){function b(k,S){var y=(0,a.useBackend)(S),h=y.act,c=y.data,i=c.glands,m=i===void 0?[]:i;return(0,e.createComponentVNode)(2,o.Window,{width:300,height:338,theme:"abductor",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:m.map(function(d){return(0,e.createComponentVNode)(2,t.Button,{width:"60px",height:"60px",m:.75,textAlign:"center",fontSize:"17px",lineHeight:"55px",icon:"eject",backgroundColor:d.color,content:d.amount||"0",disabled:!d.amount,onClick:function(){function u(){return h("dispense",{gland_id:d.id})}return u}()},d.id)})})})})}return b}()},10270:function(w,r,n){"use strict";r.__esModule=!0,r.GravityGen=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.GravityGen=function(){function b(k,S){var y=(0,a.useBackend)(S),h=y.act,c=y.data,i=c.charging_state,m=c.charge_count,d=c.breaker,u=c.ext_power,s=function(){function v(N){return N>0?(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"average",children:["[ ",N===1?"Charging":"Discharging"," ]"]}):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:u?"good":"bad",children:["[ ",u?"Powered":"Unpowered"," ]"]})}return v}(),l=function(){function v(N){if(N>0)return(0,e.createComponentVNode)(2,t.NoticeBox,{danger:!0,p:1.5,children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," Radiation Detected!"]})}return v}();return(0,e.createComponentVNode)(2,o.Window,{width:350,height:170,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[l(i),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Generator Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"Online":"Offline",color:d?"green":"red",px:1.5,onClick:function(){function v(){return h("breaker")}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Status",color:u?"good":"bad",children:s(i)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gravity Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:m/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})})]})})]})})})}return b}()},48657:function(w,r,n){"use strict";r.__esModule=!0,r.GuestPass=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(49148),b=r.GuestPass=function(){function k(S,y){var h=(0,a.useBackend)(y),c=h.act,i=h.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:690,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"id-card",selected:!i.showlogs,onClick:function(){function m(){return c("mode",{mode:0})}return m}(),children:"Issue Pass"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"scroll",selected:i.showlogs,onClick:function(){function m(){return c("mode",{mode:1})}return m}(),children:["Records (",i.issue_log.length,")"]})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.scan_name?"eject":"id-card",selected:i.scan_name,content:i.scan_name?i.scan_name:"-----",tooltip:i.scan_name?"Eject ID":"Insert ID",onClick:function(){function m(){return c("scan")}return m}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!i.showlogs&&(0,e.createComponentVNode)(2,t.Section,{title:"Issue Guest Pass",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Issue To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:i.giv_name?i.giv_name:"-----",disabled:!i.scan_name,onClick:function(){function m(){return c("giv_name")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reason",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:i.reason?i.reason:"-----",disabled:!i.scan_name,onClick:function(){function m(){return c("reason")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:i.duration?i.duration:"-----",disabled:!i.scan_name,onClick:function(){function m(){return c("duration")}return m}()})})]})})}),!i.showlogs&&(i.scan_name?(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:i.printmsg,disabled:!i.canprint,onClick:function(){function m(){return c("issue")}return m}()}),grantableList:i.grantableList,accesses:i.regions,selectedList:i.selectedAccess,accessMod:function(){function m(d){return c("access",{access:d})}return m}(),grantAll:function(){function m(){return c("grant_all")}return m}(),denyAll:function(){function m(){return c("clear_all")}return m}(),grantDep:function(){function m(d){return c("grant_region",{region:d})}return m}(),denyDep:function(){function m(d){return c("deny_region",{region:d})}return m}()})}):(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"id-card",size:5,color:"gray",mb:5}),(0,e.createVNode)(1,"br"),"Please, insert ID Card"]})})})})),!!i.showlogs&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Issuance Log",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:!i.scan_name,onClick:function(){function m(){return c("print")}return m}()}),children:!!i.issue_log.length&&(0,e.createComponentVNode)(2,t.LabeledList,{children:i.issue_log.map(function(m,d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:m},d)})})||(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No logs"]})})})})]})})})}return k}()},67834:function(w,r,n){"use strict";r.__esModule=!0,r.HandheldChemDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=[1,5,10,20,30,50],b=null,k=r.HandheldChemDispenser=function(){function h(c,i){return(0,e.createComponentVNode)(2,o.Window,{width:390,height:430,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y)]})})})}return h}(),S=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.amount,l=u.energy,v=u.maxEnergy,N=u.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:l,minValue:0,maxValue:v,ranges:{good:[v*.5,1/0],average:[v*.25,v*.5],bad:[-1/0,v*.25]},children:[l," / ",v," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Amount",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:f.map(function(C,p){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:s===C,content:C,onClick:function(){function g(){return d("amount",{amount:C})}return g}()})},p)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mode",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:N==="dispense",content:"Dispense",m:"0",width:"32%",onClick:function(){function C(){return d("mode",{mode:"dispense"})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:N==="remove",content:"Remove",m:"0",width:"32%",onClick:function(){function C(){return d("mode",{mode:"remove"})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:N==="isolate",content:"Isolate",m:"0",width:"32%",onClick:function(){function C(){return d("mode",{mode:"isolate"})}return C}()})]})})]})})})},y=function(c,i){for(var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.chemicals,l=s===void 0?[]:s,v=u.current_reagent,N=[],C=0;C<(l.length+1)%3;C++)N.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,height:"18%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:u.glass?"Drink Selector":"Chemical Selector",children:[l.map(function(p,g){return(0,e.createComponentVNode)(2,t.Button,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:v===p.id,content:p.title,style:{"margin-left":"2px"},onClick:function(){function V(){return d("dispense",{reagent:p.id})}return V}()},g)}),N.map(function(p,g){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:"1",basis:"25%"},g)})]})})}},46098:function(w,r,n){"use strict";r.__esModule=!0,r.HealthSensor=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=r.HealthSensor=function(){function S(y,h){var c=(0,t.useBackend)(h),i=c.act,m=c.data,d=m.on,u=m.user_health,s=m.minHealth,l=m.maxHealth,v=m.alarm_health;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:125,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scanning",children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:d?"On":"Off",color:d?null:"red",selected:d,onClick:function(){function N(){return i("scan_toggle")}return N}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health activation",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:2,stepPixelSize:6,minValue:s,maxValue:l,value:v,format:function(){function N(C){return(0,a.toFixed)(C,1)}return N}(),width:"80px",onDrag:function(){function N(C,p){return i("alarm_health",{alarm_health:p})}return N}()})}),u!==null&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"User health",children:(0,e.createComponentVNode)(2,o.Box,{color:k(u),bold:u>=100,children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:u})})})]})})})})}return S}(),k=function(y){return y>50?"green":y>0?"orange":"red"}},36771:function(w,r,n){"use strict";r.__esModule=!0,r.Holodeck=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Holodeck=function(){function k(S,y){var h=(0,a.useBackend)(y),c=h.act,i=h.data,m=(0,a.useLocalState)(y,"currentDeck",""),d=m[0],u=m[1],s=(0,a.useLocalState)(y,"showReload",!1),l=s[0],v=s[1],N=i.decks,C=i.ai_override,p=i.emagged,g=function(){function V(I){c("select_deck",{deck:I}),u(I),v(!0),setTimeout(function(){v(!1)},3e3)}return V}();return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:[l&&(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Holodeck Control System",children:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"b",null,"Currently Loaded Program:",16)," ",d]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Available Programs",children:[N.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{width:15.5,color:"transparent",content:V,selected:V===d,onClick:function(){function I(){return g(V)}return I}()},V)}),(0,e.createVNode)(1,"hr",null,null,1,{color:"gray"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!C&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Override Protocols",children:(0,e.createComponentVNode)(2,t.Button,{content:p?"Turn On":"Turn Off",color:p?"good":"bad",onClick:function(){function V(){return c("ai_override")}return V}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety Protocols",children:(0,e.createComponentVNode)(2,t.Box,{color:p?"bad":"good",children:[p?"Off":"On",!!p&&(0,e.createComponentVNode)(2,t.Button,{ml:9.5,width:15.5,color:"red",content:"Wildlife Simulation",onClick:function(){function V(){return c("wildlifecarp")}return V}()})]})})]})]})})]})})]})}return k}(),b=function(S,y){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"white",children:(0,e.createVNode)(1,"h1",null,"\xA0Recalibrating projection apparatus.\xA0",16)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,"Please, wait for 3 seconds.",16)})]})}},25471:function(w,r,n){"use strict";r.__esModule=!0,r.Instrument=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=r.Instrument=function(){function c(i,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:505,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,h)]})})]})}return c}(),k=function(i,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data,l=s.help;if(l)return(0,e.createComponentVNode)(2,o.Modal,{maxWidth:"75%",height:window.innerHeight*.75+"px",mx:"auto",py:"0",px:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{height:"100%",title:"Help",level:"2",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{px:"0.5rem",mt:"-0.5rem",children:[(0,e.createVNode)(1,"h1",null,"Making a Song",16),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen: "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen: "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"h1",null,"Instrument Advanced Settings",16),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Type:"}),(0,e.createTextVNode)("\xA0Whether the instrument is legacy or synthesized."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Legacy instruments have a collection of sounds that are selectively used depending on the note to play."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Synthesized instruments use a base sound and change its pitch to match the note to play.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Current:"}),(0,e.createTextVNode)("\xA0Which instrument sample to play. Some instruments can be tuned to play different samples. Experiment!")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Note Shift/Note Transpose:"}),(0,e.createTextVNode)("\xA0The pitch to apply to all notes of the song.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain Mode:"}),(0,e.createTextVNode)("\xA0How a played note fades out."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Linear sustain means a note will fade out at a constant rate."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Exponential sustain means a note will fade out at an exponential rate, sounding smoother.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Volume Dropoff Threshold:"}),(0,e.createTextVNode)("\xA0The volume threshold at which a note is fully stopped.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain indefinitely last held note:"}),(0,e.createTextVNode)("\xA0Whether the last note should be sustained indefinitely.")],4)],4),(0,e.createComponentVNode)(2,o.Button,{color:"grey",content:"Close",onClick:function(){function v(){return u("help")}return v}()})]})})})},S=function(i,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data,l=s.lines,v=s.playing,N=s.repeat,C=s.maxRepeats,p=s.tempo,g=s.minTempo,V=s.maxTempo,I=s.tickLag,B=s.volume,L=s.minVolume,T=s.maxVolume,A=s.ready;return(0,e.createComponentVNode)(2,o.Section,{title:"Instrument",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"info",content:"Help",onClick:function(){function x(){return u("help")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file",content:"New",onClick:function(){function x(){return u("newsong")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"upload",content:"Import",onClick:function(){function x(){return u("import")}return x}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Playback",children:[(0,e.createComponentVNode)(2,o.Button,{selected:v,disabled:l.length===0||N<0,icon:"play",content:"Play",onClick:function(){function x(){return u("play")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!v,icon:"stop",content:"Stop",onClick:function(){function x(){return u("stop")}return x}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Repeat",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:0,maxValue:C,value:N,stepPixelSize:59,onChange:function(){function x(E,P){return u("repeat",{new:P})}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tempo",children:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{disabled:p>=V,content:"-",as:"span",mr:"0.5rem",onClick:function(){function x(){return u("tempo",{new:p+I})}return x}()}),(0,a.round)(600/p)," BPM",(0,e.createComponentVNode)(2,o.Button,{disabled:p<=g,content:"+",as:"span",ml:"0.5rem",onClick:function(){function x(){return u("tempo",{new:p-I})}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:L,maxValue:T,value:B,stepPixelSize:6,onDrag:function(){function x(E,P){return u("setvolume",{new:P})}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:A?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Ready"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Instrument Definition Error!"})})]}),(0,e.createComponentVNode)(2,y)]})},y=function(i,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data,l=s.allowedInstrumentNames,v=s.instrumentLoaded,N=s.instrument,C=s.canNoteShift,p=s.noteShift,g=s.noteShiftMin,V=s.noteShiftMax,I=s.sustainMode,B=s.sustainLinearDuration,L=s.sustainExponentialDropoff,T=s.legacy,A=s.sustainDropoffVolume,x=s.sustainHeldNote,E,P;return I===1?(E="Linear",P=(0,e.createComponentVNode)(2,o.Slider,{minValue:.1,maxValue:5,value:B,step:.5,stepPixelSize:85,format:function(){function j(M){return(0,a.round)(M*100)/100+" seconds"}return j}(),onChange:function(){function j(M,R){return u("setlinearfalloff",{new:R/10})}return j}()})):I===2&&(E="Exponential",P=(0,e.createComponentVNode)(2,o.Slider,{minValue:1.025,maxValue:10,value:L,step:.01,format:function(){function j(M){return(0,a.round)(M*1e3)/1e3+"% per decisecond"}return j}(),onChange:function(){function j(M,R){return u("setexpfalloff",{new:R})}return j}()})),l.sort(),(0,e.createComponentVNode)(2,o.Box,{my:-1,children:(0,e.createComponentVNode)(2,o.Collapsible,{mt:"1rem",mb:"0",title:"Advanced",children:(0,e.createComponentVNode)(2,o.Section,{mt:-1,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Type",children:T?"Legacy":"Synthesized"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current",children:v?(0,e.createComponentVNode)(2,o.Dropdown,{options:l,selected:N,width:"50%",onSelected:function(){function j(M){return u("switchinstrument",{name:M})}return j}()}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None!"})}),!!(!T&&C)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Note Shift/Note Transpose",children:(0,e.createComponentVNode)(2,o.Slider,{minValue:g,maxValue:V,value:p,stepPixelSize:2,format:function(){function j(M){return M+" keys / "+(0,a.round)(M/12*100)/100+" octaves"}return j}(),onChange:function(){function j(M,R){return u("setnoteshift",{new:R})}return j}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain Mode",children:[(0,e.createComponentVNode)(2,o.Dropdown,{options:["Linear","Exponential"],selected:E,onSelected:function(){function j(M){return u("setsustainmode",{new:M})}return j}()}),P]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume Dropoff Threshold",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:.01,maxValue:100,value:A,stepPixelSize:6,onChange:function(){function j(M,R){return u("setdropoffvolume",{new:R})}return j}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain indefinitely last held note",children:(0,e.createComponentVNode)(2,o.Button,{selected:x,icon:x?"toggle-on":"toggle-off",content:x?"Yes":"No",onClick:function(){function j(){return u("togglesustainhold")}return j}()})})],4)]}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){function j(){return u("reset")}return j}()})]})})})},h=function(i,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data,l=s.playing,v=s.lines,N=s.editing;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Editor",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!N||l,icon:"plus",content:"Add Line",onClick:function(){function C(){return u("newline",{line:v.length+1})}return C}()}),(0,e.createComponentVNode)(2,o.Button,{selected:!N,icon:N?"chevron-up":"chevron-down",onClick:function(){function C(){return u("edit")}return C}()})],4),children:!!N&&(v.length>0?(0,e.createComponentVNode)(2,o.LabeledList,{children:v.map(function(C,p){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:p+1,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:l,icon:"pen",onClick:function(){function g(){return u("modifyline",{line:p+1})}return g}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:l,icon:"trash",onClick:function(){function g(){return u("deleteline",{line:p+1})}return g}()})],4),children:C},p)})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Song is empty."}))})}},13618:function(w,r,n){"use strict";r.__esModule=!0,r.KeyComboModal=void 0;var e=n(89005),a=n(70611),t=n(72253),o=n(36036),f=n(98595),b=n(19203),k=n(51057),S=function(d){return d.key!==a.KEY.Alt&&d.key!==a.KEY.Control&&d.key!==a.KEY.Shift&&d.key!==a.KEY.Escape},y={DEL:"Delete",DOWN:"South",END:"Southwest",HOME:"Northwest",INSERT:"Insert",LEFT:"West",PAGEDOWN:"Southeast",PAGEUP:"Northeast",RIGHT:"East",SPACEBAR:"Space",UP:"North"},h=3,c=function(d){var u="";if(d.altKey&&(u+="Alt"),d.ctrlKey&&(u+="Ctrl"),d.shiftKey&&!(d.keyCode>=48&&d.keyCode<=57)&&(u+="Shift"),d.location===h&&(u+="Numpad"),S(d))if(d.shiftKey&&d.keyCode>=48&&d.keyCode<=57){var s=d.keyCode-48;u+="Shift"+s}else{var l=d.key.toUpperCase();u+=y[l]||l}return u},i=r.KeyComboModal=function(){function m(d,u){var s=(0,t.useBackend)(u),l=s.act,v=s.data,N=v.init_value,C=v.large_buttons,p=v.message,g=p===void 0?"":p,V=v.title,I=v.timeout,B=(0,t.useLocalState)(u,"input",N),L=B[0],T=B[1],A=(0,t.useLocalState)(u,"binding",!0),x=A[0],E=A[1],P=function(){function R(D){if(!x){D.key===a.KEY.Enter&&l("submit",{entry:L}),D.key===a.KEY.Escape&&l("cancel");return}if(D.preventDefault(),S(D)){j(c(D)),E(!1);return}else if(D.key===a.KEY.Escape){j(N),E(!1);return}}return R}(),j=function(){function R(D){D!==L&&T(D)}return R}(),M=130+(g.length>30?Math.ceil(g.length/3):0)+(g.length&&C?5:0);return(0,e.createComponentVNode)(2,f.Window,{title:V,width:240,height:M,children:[I&&(0,e.createComponentVNode)(2,k.Loader,{value:I}),(0,e.createComponentVNode)(2,f.Window.Content,{onKeyDown:function(){function R(D){P(D)}return R}(),children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Autofocus),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:g})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:x,content:x&&x!==null?"Awaiting input...":""+L,width:"100%",textAlign:"center",onClick:function(){function R(){j(N),E(!0)}return R}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,b.InputButtons,{input:L})})]})]})})]})}return m}()},35655:function(w,r,n){"use strict";r.__esModule=!0,r.KeycardAuth=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.KeycardAuth=function(){function b(k,S){var y=(0,a.useBackend)(S),h=y.act,c=y.data,i=(0,e.createComponentVNode)(2,t.Section,{title:"Keycard Authentication Device",children:(0,e.createComponentVNode)(2,t.Box,{children:"This device is used to trigger certain high security events. It requires the simultaneous swipe of two high-level ID cards."})});if(!c.swiping&&!c.busy)return(0,e.createComponentVNode)(2,o.Window,{width:540,height:280,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[i,(0,e.createComponentVNode)(2,t.Section,{title:"Choose Action",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Red Alert",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",disabled:!c.redAvailable,onClick:function(){function d(){return h("triggerevent",{triggerevent:"Red Alert"})}return d}(),content:"Red Alert"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ERT",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",onClick:function(){function d(){return h("triggerevent",{triggerevent:"Emergency Response Team"})}return d}(),content:"Call ERT"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Maint Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function d(){return h("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})}return d}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function d(){return h("triggerevent",{triggerevent:"Revoke Emergency Maintenance Access"})}return d}(),content:"Revoke"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Station-Wide Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function d(){return h("triggerevent",{triggerevent:"Activate Station-Wide Emergency Access"})}return d}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function d(){return h("triggerevent",{triggerevent:"Deactivate Station-Wide Emergency Access"})}return d}(),content:"Revoke"})]})]})})]})});var m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Waiting for YOU to swipe your ID..."});return!c.hasSwiped&&!c.ertreason&&c.event==="Emergency Response Team"?m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Fill out the reason for your ERT request."}):c.hasConfirm?m=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Request Confirmed!"}):c.isRemote?m=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):c.hasSwiped&&(m=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Waiting for second person to confirm..."})),(0,e.createComponentVNode)(2,o.Window,{width:540,height:265,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[i,c.event==="Emergency Response Team"&&(0,e.createComponentVNode)(2,t.Section,{title:"Reason for ERT Call",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{color:c.ertreason?"":"red",icon:c.ertreason?"check":"pencil-alt",content:c.ertreason?c.ertreason:"-----",disabled:c.busy,onClick:function(){function d(){return h("ert")}return d}()})})}),(0,e.createComponentVNode)(2,t.Section,{title:c.event,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back",disabled:c.busy||c.hasConfirm,onClick:function(){function d(){return h("reset")}return d}()}),children:m})]})})}return b}()},62955:function(w,r,n){"use strict";r.__esModule=!0,r.KitchenMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(62411),b=r.KitchenMachine=function(){function S(y,h){var c=(0,a.useBackend)(h),i=c.data,m=c.config,d=i.ingredients,u=i.operating,s=m.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Operating,{operating:u,name:s}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,k)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Ingredients",children:(0,e.createComponentVNode)(2,t.Table,{className:"Ingredient__Table",children:d.map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{tr:5,children:[(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:l.name}),2),(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:[l.amount," ",l.units]}),2)]},l.name)})})})})]})})})}return S}(),k=function(y,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.inactive,u=m.tooltip;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:d,tooltip:d?u:"",tooltipPosition:"bottom",content:"Activate",onClick:function(){function s(){return i("cook")}return s}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:d,tooltip:d?u:"",tooltipPosition:"bottom",content:"Eject Contents",onClick:function(){function s(){return i("eject")}return s}()})})]})})}},9525:function(w,r,n){"use strict";r.__esModule=!0,r.LawManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.LawManager=function(){function y(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.isAdmin,s=d.isSlaved,l=d.isMalf,v=d.isAIMalf,N=d.view;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:l?620:365,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!(u&&s)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["This unit is slaved to ",s,"."]}),!!(l||v)&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Law Management",selected:N===0,onClick:function(){function C(){return m("set_view",{set_view:0})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Lawsets",selected:N===1,onClick:function(){function C(){return m("set_view",{set_view:1})}return C}()})]}),N===0&&(0,e.createComponentVNode)(2,b),N===1&&(0,e.createComponentVNode)(2,k)]})})}return y}(),b=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.has_zeroth_laws,s=d.zeroth_laws,l=d.has_ion_laws,v=d.ion_laws,N=d.ion_law_nr,C=d.has_inherent_laws,p=d.inherent_laws,g=d.has_supplied_laws,V=d.supplied_laws,I=d.channels,B=d.channel,L=d.isMalf,T=d.isAdmin,A=d.zeroth_law,x=d.ion_law,E=d.inherent_law,P=d.supplied_law,j=d.supplied_law_position;return(0,e.createFragment)([!!u&&(0,e.createComponentVNode)(2,S,{title:"ERR_NULL_VALUE",laws:s,ctx:c}),!!l&&(0,e.createComponentVNode)(2,S,{title:N,laws:v,ctx:c}),!!C&&(0,e.createComponentVNode)(2,S,{title:"Inherent",laws:p,ctx:c}),!!g&&(0,e.createComponentVNode)(2,S,{title:"Supplied",laws:V,ctx:c}),(0,e.createComponentVNode)(2,t.Section,{title:"Statement Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Statement Channel",children:I.map(function(M){return(0,e.createComponentVNode)(2,t.Button,{content:M.channel,selected:M.channel===B,onClick:function(){function R(){return m("law_channel",{law_channel:M.channel})}return R}()},M.channel)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State Laws",children:(0,e.createComponentVNode)(2,t.Button,{content:"State Laws",onClick:function(){function M(){return m("state_laws")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Law Notification",children:(0,e.createComponentVNode)(2,t.Button,{content:"Notify",onClick:function(){function M(){return m("notify_laws")}return M}()})})]})}),!!L&&(0,e.createComponentVNode)(2,t.Section,{title:"Add Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"60%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Actions"})]}),!!(T&&!u)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Zero"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:A}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_zeroth_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_zeroth_law")}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ion"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:x}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_ion_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_ion_law")}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Inherent"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:E}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_inherent_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_inherent_law")}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Supplied"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:P}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:j,onClick:function(){function M(){return m("change_supplied_law_position")}return M}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_supplied_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_supplied_law")}return M}()})]})]})]})})],0)},k=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.law_sets;return(0,e.createComponentVNode)(2,t.Box,{children:u.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name+" - "+s.header,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Load Laws",icon:"download",onClick:function(){function l(){return m("transfer_laws",{transfer_laws:s.ref})}return l}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.laws.has_ion_laws>0&&s.laws.ion_laws.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.index,children:l.law},l.index)}),s.laws.has_zeroth_laws>0&&s.laws.zeroth_laws.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.index,children:l.law},l.index)}),s.laws.has_inherent_laws>0&&s.laws.inherent_laws.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.index,children:l.law},l.index)}),s.laws.has_supplied_laws>0&&s.laws.inherent_laws.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.index,children:l.law},l.index)})]})},s.name)})})},S=function(h,c){var i=(0,a.useBackend)(h.ctx),m=i.act,d=i.data,u=d.isMalf;return(0,e.createComponentVNode)(2,t.Section,{title:h.title+" Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"69%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"21%",children:"State?"})]}),h.laws.map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.index}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.law}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:s.state?"Yes":"No",selected:s.state,onClick:function(){function l(){return m("state_law",{ref:s.ref,state_law:s.state?0:1})}return l}()}),!!u&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function l(){return m("edit_law",{edit_law:s.ref})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){function l(){return m("delete_law",{delete_law:s.ref})}return l}()})],4)]})]},s.law)})]})})}},85066:function(w,r,n){"use strict";r.__esModule=!0,r.LibraryComputer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=r.LibraryComputer=function(){function N(C,p){return(0,e.createComponentVNode)(2,o.Window,{width:1050,height:600,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i)]})})]})}return N}(),k=function(C,p){var g=(0,a.useBackend)(p),V=g.act,I=g.data,B=C.args,L=I.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:B.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:B.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:B.summary}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[B.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",verticalAlign:"top"})]}),!B.isProgrammatic&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Categories",children:B.categories.join(", ")})]}),(0,e.createVNode)(1,"br"),L===B.ckey&&(0,e.createComponentVNode)(2,t.Button,{content:"Delete Book",icon:"trash",color:"red",disabled:B.isProgrammatic,onClick:function(){function T(){return V("delete_book",{bookid:B.id,user_ckey:L})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Report Book",icon:"flag",color:"red",disabled:B.isProgrammatic,onClick:function(){function T(){return(0,f.modalOpen)(p,"report_book",{bookid:B.id})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rate Book",icon:"star",color:"caution",disabled:B.isProgrammatic,onClick:function(){function T(){return(0,f.modalOpen)(p,"rate_info",{bookid:B.id})}return T}()})]})},S=function(C,p){var g=(0,a.useBackend)(p),V=g.act,I=g.data,B=C.args,L=I.selected_report,T=I.report_categories,A=I.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",title:"Report this book for Rule Violations",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:B.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reasons",children:(0,e.createComponentVNode)(2,t.Box,{children:T.map(function(x,E){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:x.description,selected:x.category_id===L,onClick:function(){function P(){return V("set_report",{report_type:x.category_id})}return P}()}),(0,e.createVNode)(1,"br")],4,E)})})})]}),(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,icon:"paper-plane",content:"Submit Report",onClick:function(){function x(){return V("submit_report",{bookid:B.id,user_ckey:A})}return x}()})]})},y=function(C,p){var g=(0,a.useBackend)(p),V=g.act,I=g.data,B=I.selected_rating,L=Array(10).fill().map(function(T,A){return 1+A});return(0,e.createComponentVNode)(2,t.Stack,{children:[L.map(function(T,A){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{bold:!0,icon:"star",color:B>=T?"caution":"default",onClick:function(){function x(){return V("set_rating",{rating_value:T})}return x}()})},A)}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,ml:2,fontSize:"150%",children:[B+"/10",(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"top"})]})]})},h=function(C,p){var g=(0,a.useBackend)(p),V=g.act,I=g.data,B=C.args,L=I.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:B.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:B.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[B.current_rating?B.current_rating:0,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Ratings",children:B.total_ratings?B.total_ratings:0})]}),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,t.Button.Confirm,{mt:2,content:"Submit",icon:"paper-plane",onClick:function(){function T(){return V("rate_book",{bookid:B.id,user_ckey:L})}return T}()})]})},c=function(C,p){var g=(0,a.useBackend)(p),V=g.data,I=(0,a.useLocalState)(p,"tabIndex",0),B=I[0],L=I[1],T=V.login_state;return(0,e.createComponentVNode)(2,t.Stack.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:B===0,onClick:function(){function A(){return L(0)}return A}(),children:"Book Archives"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:B===1,onClick:function(){function A(){return L(1)}return A}(),children:"Corporate Literature"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:B===2,onClick:function(){function A(){return L(2)}return A}(),children:"Upload Book"}),T===1&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:B===3,onClick:function(){function A(){return L(3)}return A}(),children:"Patron Manager"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:B===4,onClick:function(){function A(){return L(4)}return A}(),children:"Inventory"})]})})},i=function(C,p){var g=(0,a.useLocalState)(p,"tabIndex",0),V=g[0];switch(V){case 0:return(0,e.createComponentVNode)(2,d);case 1:return(0,e.createComponentVNode)(2,u);case 2:return(0,e.createComponentVNode)(2,s);case 3:return(0,e.createComponentVNode)(2,l);case 4:return(0,e.createComponentVNode)(2,v);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},m=function(C,p){var g=(0,a.useBackend)(p),V=g.act,I=g.data,B=I.searchcontent,L=I.book_categories,T=I.user_ckey,A=[];return L.map(function(x){return A[x.description]=x.category_id}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"35%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"edit",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Inputs"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:B.title||"Input Title",onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_search_title")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:B.author||"Input Author",onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_search_author")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Ratings",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:1,width:"min-content",content:B.ratingmin,onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_search_ratingmin")}return x}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:"To"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:1,width:"min-content",content:B.ratingmax,onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_search_ratingmax")}return x}()})})]})})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"clipboard-list",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Book Categories"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Dropdown,{mt:.6,width:"190px",options:L.map(function(x){return x.description}),onSelected:function(){function x(E){return V("toggle_search_category",{category_id:A[E]})}return x}()})})})}),(0,e.createVNode)(1,"br"),L.filter(function(x){return B.categories.includes(x.category_id)}).map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.description,selected:!0,icon:"unlink",onClick:function(){function E(){return V("toggle_search_category",{category_id:x.category_id})}return E}()},x.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Actions"]}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Search",icon:"eraser",onClick:function(){function x(){return V("clear_search")}return x}()}),B.ckey?(0,e.createComponentVNode)(2,t.Button,{mb:.5,content:"Stop Showing My Books",color:"bad",icon:"search",onClick:function(){function x(){return V("clear_ckey_search")}return x}()}):(0,e.createComponentVNode)(2,t.Button,{content:"Find My Books",icon:"search",onClick:function(){function x(){return V("find_users_books",{user_ckey:T})}return x}()})]})]})},d=function(C,p){var g=(0,a.useBackend)(p),V=g.act,I=g.data,B=I.external_booklist,L=I.archive_pagenumber,T=I.num_pages,A=I.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Access",buttons:(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",disabled:L===1,onClick:function(){function x(){return V("deincrementpagemax")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",disabled:L===1,onClick:function(){function x(){return V("deincrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{bold:!0,content:L,onClick:function(){function x(){return(0,f.modalOpen)(p,"setpagenumber")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",disabled:L===T,onClick:function(){function x(){return V("incrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",disabled:L===T,onClick:function(){function x(){return V("incrementpagemax")}return x}()})],4),children:[(0,e.createComponentVNode)(2,m),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ratings"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Category"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),B.map(function(x){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:x.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:.5}),x.title.length>45?x.title.substr(0,45)+"...":x.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:x.author.length>30?x.author.substr(0,30)+"...":x.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[x.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",ml:.5,color:"yellow",verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:x.categories.join(", ").substr(0,45)}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[A===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function E(){return V("order_external_book",{bookid:x.id})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function E(){return(0,f.modalOpen)(p,"expand_info",{bookid:x.id})}return E}()})]})]},x.id)})]})]})},u=function(C,p){var g=(0,a.useBackend)(p),V=g.act,I=g.data,B=I.programmatic_booklist,L=I.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Corporate Book Catalog",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),B.map(function(T,A){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:T.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:2}),T.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:T.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[L===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function x(){return V("order_programmatic_book",{bookid:T.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function x(){return(0,f.modalOpen)(p,"expand_info",{bookid:T.id})}return x}()})]})]},A)})]})})},s=function(C,p){var g=(0,a.useBackend)(p),V=g.act,I=g.data,B=I.selectedbook,L=I.book_categories,T=I.user_ckey,A=[];return L.map(function(x){return A[x.description]=x.category_id}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Upload",buttons:(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,width:9.5,icon:"upload",disabled:B.copyright,content:"Upload Book",onClick:function(){function x(){return V("uploadbook",{user_ckey:T})}return x}()}),children:[B.copyright?(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"WARNING: You cannot upload or modify the attributes of a copyrighted book"}):(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{ml:15,mb:3,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:2}),"Book Uploader"]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:B.copyright,content:B.title,onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_selected_title")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:B.copyright,content:B.author,onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_selected_author")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"240px",options:L.map(function(x){return x.description}),onSelected:function(){function x(E){return V("toggle_upload_category",{category_id:A[E]})}return x}()})})})]}),(0,e.createVNode)(1,"br"),L.filter(function(x){return B.categories.includes(x.category_id)}).map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.description,disabled:B.copyright,selected:!0,icon:"unlink",onClick:function(){function E(){return V("toggle_upload_category",{category_id:x.category_id})}return E}()},x.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:75,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",width:"auto",disabled:B.copyright,content:"Edit Summary",onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_selected_summary")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:B.summary})]})})]})]})},l=function(C,p){var g=(0,a.useBackend)(p),V=g.act,I=g.data,B=I.checkout_data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Checked Out Books",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Patron"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),B.map(function(L,T){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-tag"}),L.patron_name]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:L.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.timeleft>=0?L.timeleft:"LATE"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:(0,e.createComponentVNode)(2,t.Button,{content:"Mark Lost",icon:"flag",color:"bad",disabled:L.timeleft>=0,onClick:function(){function A(){return V("reportlost",{libraryid:L.libraryid})}return A}()})})]},T)})]})})},v=function(C,p){var g=(0,a.useBackend)(p),V=g.act,I=g.data,B=I.inventory_list;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Library Inventory",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"LIB ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"})]}),B.map(function(L,T){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.libraryid}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"})," ",L.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:L.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:L.checked_out?"Checked Out":"Available"})]},T)})]})})};(0,f.modalRegisterBodyOverride)("expand_info",k),(0,f.modalRegisterBodyOverride)("report_book",S),(0,f.modalRegisterBodyOverride)("rate_info",h)},9516:function(w,r,n){"use strict";r.__esModule=!0,r.LibraryManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=r.LibraryManager=function(){function c(i,m){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:600,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,k)})]})}return c}(),k=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.pagestate;switch(l){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,h);case 3:return(0,e.createComponentVNode)(2,y);default:return"WE SHOULDN'T BE HERE!"}},S=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.4rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-shield",verticalAlign:"middle",size:3,mr:"1rem"}),"Library Manager"]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"trash",width:"auto",color:"danger",content:"Delete Book by SSID",onClick:function(){function l(){return(0,f.modalOpen)(m,"specify_ssid_delete")}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",width:"auto",color:"danger",content:"Delete All Books By CKEY",onClick:function(){function l(){return(0,f.modalOpen)(m,"specify_ckey_delete")}return l}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Books By CKEY",onClick:function(){function l(){return(0,f.modalOpen)(m,"specify_ckey_search")}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Reported Books",onClick:function(){function l(){return u("view_reported_books")}return l}()})]})},y=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.reports;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-secret",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"All Reported Books",(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function v(){return u("return")}return v}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Uploader CKEY"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Report Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reporter Ckey"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),l.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:v.uploader_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),v.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:v.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:v.report_description}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:v.reporter_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",onClick:function(){function N(){return u("delete_book",{bookid:v.id})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Unflag",icon:"flag",color:"caution",onClick:function(){function N(){return u("unflag_book",{bookid:v.id})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function N(){return u("view_book",{bookid:v.id})}return N}()})]})]},v.id)})]})})},h=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.ckey,v=s.booklist;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"Books uploaded by ",l,(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function N(){return u("return")}return N}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),v.map(function(N){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:N.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),N.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:N.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",color:"bad",onClick:function(){function C(){return u("delete_book",{bookid:N.id})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function C(){return u("view_book",{bookid:N.id})}return C}()})]})]},N.id)})]})})}},90447:function(w,r,n){"use strict";r.__esModule=!0,r.ListInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(36036),f=n(72253),b=n(92986),k=n(98595),S=r.ListInputModal=function(){function c(i,m){var d=(0,f.useBackend)(m),u=d.act,s=d.data,l=s.items,v=l===void 0?[]:l,N=s.message,C=N===void 0?"":N,p=s.init_value,g=s.timeout,V=s.title,I=(0,f.useLocalState)(m,"selected",v.indexOf(p)),B=I[0],L=I[1],T=(0,f.useLocalState)(m,"searchBarVisible",v.length>10),A=T[0],x=T[1],E=(0,f.useLocalState)(m,"searchQuery",""),P=E[0],j=E[1],M=function(){function $(Q){var J=K.length-1;if(Q===b.KEY_DOWN)if(B===null||B===J){var ie;L(0),(ie=document.getElementById("0"))==null||ie.scrollIntoView()}else{var ne;L(B+1),(ne=document.getElementById((B+1).toString()))==null||ne.scrollIntoView()}else if(Q===b.KEY_UP)if(B===null||B===0){var se;L(J),(se=document.getElementById(J.toString()))==null||se.scrollIntoView()}else{var Ce;L(B-1),(Ce=document.getElementById((B-1).toString()))==null||Ce.scrollIntoView()}}return $}(),R=function(){function $(Q){Q!==B&&L(Q)}return $}(),D=function(){function $(){x(!1),x(!0)}return $}(),W=function(){function $(Q){var J=String.fromCharCode(Q),ie=v.find(function(Ce){return Ce==null?void 0:Ce.toLowerCase().startsWith(J==null?void 0:J.toLowerCase())});if(ie){var ne,se=v.indexOf(ie);L(se),(ne=document.getElementById(se.toString()))==null||ne.scrollIntoView()}}return $}(),_=function(){function $(Q){var J;Q!==P&&(j(Q),L(0),(J=document.getElementById("0"))==null||J.scrollIntoView())}return $}(),U=function(){function $(){x(!A),j("")}return $}(),K=v.filter(function($){return $==null?void 0:$.toLowerCase().includes(P.toLowerCase())}),G=330+Math.ceil(C.length/3);return A||setTimeout(function(){var $;return($=document.getElementById(B.toString()))==null?void 0:$.focus()},1),(0,e.createComponentVNode)(2,k.Window,{title:V,width:325,height:G,children:[g&&(0,e.createComponentVNode)(2,a.Loader,{value:g}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function $(Q){var J=window.event?Q.which:Q.keyCode;(J===b.KEY_DOWN||J===b.KEY_UP)&&(Q.preventDefault(),M(J)),J===b.KEY_ENTER&&(Q.preventDefault(),u("submit",{entry:K[B]})),!A&&J>=b.KEY_A&&J<=b.KEY_Z&&(Q.preventDefault(),W(J)),J===b.KEY_ESCAPE&&(Q.preventDefault(),u("cancel"))}return $}(),children:(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{compact:!0,icon:A?"search":"font",selected:!0,tooltip:A?"Search Mode. Type to search or use arrow keys to select manually.":"Hotkey Mode. Type a letter to jump to the first match. Enter to select.",tooltipPosition:"left",onClick:function(){function $(){return U()}return $}()}),className:"ListInput__Section",fill:!0,title:C,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y,{filteredItems:K,onClick:R,onFocusSearch:D,searchBarVisible:A,selected:B})}),(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:A&&(0,e.createComponentVNode)(2,h,{filteredItems:K,onSearch:_,searchQuery:P,selected:B})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:K[B]})})]})})})]})}return c}(),y=function(i,m){var d=(0,f.useBackend)(m),u=d.act,s=i.filteredItems,l=i.onClick,v=i.onFocusSearch,N=i.searchBarVisible,C=i.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:s.map(function(p,g){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"transparent",id:g,onClick:function(){function V(){return l(g)}return V}(),onDblClick:function(){function V(I){I.preventDefault(),u("submit",{entry:s[C]})}return V}(),onKeyDown:function(){function V(I){var B=window.event?I.which:I.keyCode;N&&B>=b.KEY_A&&B<=b.KEY_Z&&(I.preventDefault(),v())}return V}(),selected:g===C,style:{animation:"none",transition:"none"},children:p.replace(/^\w/,function(V){return V.toUpperCase()})},g)})})},h=function(i,m){var d=(0,f.useBackend)(m),u=d.act,s=i.filteredItems,l=i.onSearch,v=i.searchQuery,N=i.selected;return(0,e.createComponentVNode)(2,o.Input,{width:"100%",autoFocus:!0,autoSelect:!0,onEnter:function(){function C(p){p.preventDefault(),u("submit",{entry:s[N]})}return C}(),onInput:function(){function C(p,g){return l(g)}return C}(),placeholder:"Search...",value:v})}},77613:function(w,r,n){"use strict";r.__esModule=!0,r.MODsuitContent=r.MODsuit=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(B,L){var T=B.name,A=B.value,x=B.module_ref,E=(0,a.useBackend)(L),P=E.act;return(0,e.createComponentVNode)(2,t.NumberInput,{value:A,minValue:-50,maxValue:50,stepPixelSize:5,width:"39px",onChange:function(){function j(M,R){return P("configure",{key:T,value:R,ref:x})}return j}()})},b=function(B,L){var T=B.name,A=B.value,x=B.module_ref,E=(0,a.useBackend)(L),P=E.act;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:A,onClick:function(){function j(){return P("configure",{key:T,value:!A,ref:x})}return j}()})},k=function(B,L){var T=B.name,A=B.value,x=B.module_ref,E=(0,a.useBackend)(L),P=E.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"paint-brush",onClick:function(){function j(){return P("configure",{key:T,ref:x})}return j}()}),(0,e.createComponentVNode)(2,t.ColorBox,{color:A,mr:.5})],4)},S=function(B,L){var T=B.name,A=B.value,x=B.values,E=B.module_ref,P=(0,a.useBackend)(L),j=P.act;return(0,e.createComponentVNode)(2,t.Dropdown,{displayText:A,options:x,onSelected:function(){function M(R){return j("configure",{key:T,value:R,ref:E})}return M}()})},y=function(B,L){var T=B.name,A=B.display_name,x=B.type,E=B.value,P=B.values,j=B.module_ref,M={number:(0,e.normalizeProps)((0,e.createComponentVNode)(2,f,Object.assign({},B))),bool:(0,e.normalizeProps)((0,e.createComponentVNode)(2,b,Object.assign({},B))),color:(0,e.normalizeProps)((0,e.createComponentVNode)(2,k,Object.assign({},B))),list:(0,e.normalizeProps)((0,e.createComponentVNode)(2,S,Object.assign({},B)))};return(0,e.createComponentVNode)(2,t.Box,{children:[A,": ",M[x]]})},h=function(B,L){var T=B.active,A=B.userradiated,x=B.usertoxins,E=B.usermaxtoxins,P=B.threatlevel;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Level",color:T&&A?"bad":"good",children:T&&A?"IRRADIATED!":"RADIATION-FREE"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxins Level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?x/E:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:x})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Hazard Level",color:T&&P?"bad":"good",bold:!0,children:T&&P?P:0})})]})},c=function(B,L){var T=B.active,A=B.userhealth,x=B.usermaxhealth,E=B.userbrute,P=B.userburn,j=B.usertoxin,M=B.useroxy;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?A/x:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?A:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?E/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?E:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?P/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?P:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?j/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?j:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?M/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?M:0})})})})]})],4)},i=function(B,L){var T=B.active,A=B.statustime,x=B.statusid,E=B.statushealth,P=B.statusmaxhealth,j=B.statusbrute,M=B.statusburn,R=B.statustoxin,D=B.statusoxy,W=B.statustemp,_=B.statusnutrition,U=B.statusfingerprints,K=B.statusdna,G=B.statusviruses;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Time",children:T?A:"00:00:00"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Number",children:T?x||"0":"???"})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?E/P:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?E:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?j/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?j:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?M/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?M:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?R/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:R})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?D/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:D})})})})]}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Body Temperature",children:T?W:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Nutrition Status",children:T?_:0})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"DNA",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fingerprints",children:T?U:"???"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:T?K:"???"})]})}),!!T&&!!G&&(0,e.createComponentVNode)(2,t.Section,{title:"Diseases",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"signature",tooltip:"Name",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"wind",tooltip:"Type",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"bolt",tooltip:"Stage",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"flask",tooltip:"Cure",tooltipPosition:"top"})})]}),G.map(function($){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:$.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:$.type}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[$.stage,"/",$.maxstage]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:$.cure})]},$.name)})]})})],0)},m={rad_counter:h,health_analyzer:c,status_readout:i},d=function(){return(0,e.createComponentVNode)(2,t.Section,{align:"center",fill:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{color:"red",name:"exclamation-triangle",size:15}),(0,e.createComponentVNode)(2,t.Box,{fontSize:"30px",color:"red",children:"ERROR: INTERFACE UNRESPONSIVE"})]})},u=function(B,L){var T=(0,a.useBackend)(L),A=T.act,x=T.data;return(0,e.createComponentVNode)(2,t.Dimmer,{children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"16px",color:"blue",children:"SUIT UNPOWERED"})})})},s=function(B,L){var T=B.configuration_data,A=B.module_ref,x=Object.keys(T);return(0,e.createComponentVNode)(2,t.Dimmer,{backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[x.map(function(E){var P=T[E];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,y,{name:E,display_name:P.display_name,type:P.type,value:P.value,values:P.values,module_ref:A})},P.key)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:B.onExit,icon:"times",textAlign:"center",children:"Exit"})})})]})})},l=function(B){switch(B){case 1:return"Use";case 2:return"Toggle";case 3:return"Select"}},v=function(B,L){var T=(0,a.useBackend)(L),A=T.act,x=T.data,E=x.active,P=x.malfunctioning,j=x.locked,M=x.open,R=x.selected_module,D=x.complexity,W=x.complexity_max,_=x.wearer_name,U=x.wearer_job,K=P?"Malfunctioning":E?"Active":"Inactive";return(0,e.createComponentVNode)(2,t.Section,{title:"Parameters",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:E?"Deactivate":"Activate",onClick:function(){function G(){return A("activate")}return G}()}),children:K}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:j?"lock-open":"lock",content:j?"Unlock":"Lock",onClick:function(){function G(){return A("lock")}return G}()}),children:j?"Locked":"Unlocked"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover",children:M?"Open":"Closed"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected Module",children:R||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Complexity",children:[D," (",W,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:[_,", ",U]})]})})},N=function(B,L){var T=(0,a.useBackend)(L),A=T.act,x=T.data,E=x.active,P=x.control,j=x.helmet,M=x.chestplate,R=x.gauntlets,D=x.boots,W=x.core,_=x.charge;return(0,e.createComponentVNode)(2,t.Section,{title:"Hardware",children:[(0,e.createComponentVNode)(2,t.Collapsible,{title:"Parts",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Control Unit",children:P}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Helmet",children:j||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chestplate",children:M||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gauntlets",children:R||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Boots",children:D||"None"})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core",children:W&&(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Type",children:W}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:_/100,content:_+"%",ranges:{good:[.6,1/0],average:[.3,.6],bad:[-1/0,.3]}})})]})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",textAlign:"center",children:"No Core Detected"})})]})},C=function(B,L){var T=(0,a.useBackend)(L),A=T.act,x=T.data,E=x.active,P=x.modules,j=P.filter(function(M){return!!M.id});return(0,e.createComponentVNode)(2,t.Section,{title:"Info",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:j.length!==0&&j.map(function(M){var R=m[M.id];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!E&&(0,e.createComponentVNode)(2,u),(0,e.normalizeProps)((0,e.createComponentVNode)(2,R,Object.assign({},M,{active:E})))]},M.ref)})||(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Info Modules Detected"})})})},p=function(B,L){var T=(0,a.useBackend)(L),A=T.act,x=T.data,E=x.complexity_max,P=x.modules,j=(0,a.useLocalState)(L,"module_configuration",null),M=j[0],R=j[1];return(0,e.createComponentVNode)(2,t.Section,{title:"Modules",fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:P.length!==0&&P.map(function(D){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Collapsible,{title:D.module_name,children:(0,e.createComponentVNode)(2,t.Section,{children:[M===D.ref&&(0,e.createComponentVNode)(2,s,{configuration_data:D.configuration_data,module_ref:D.ref,onExit:function(){function W(){return R(null)}return W}()}),(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"save",tooltip:"Complexity",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"plug",tooltip:"Idle Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"lightbulb",tooltip:"Active Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"bolt",tooltip:"Use Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"hourglass-half",tooltip:"Cooldown",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"tasks",tooltip:"Actions",tooltipPosition:"top"})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[D.module_complexity,"/",E]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:D.idle_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:D.active_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:D.use_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[D.cooldown>0&&D.cooldown/10||"0","/",D.cooldown_time/10,"s"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function W(){return A("select",{ref:D.ref})}return W}(),icon:"bullseye",selected:D.module_active,tooltip:l(D.module_type),tooltipPosition:"left",disabled:!D.module_type}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function W(){return R(D.ref)}return W}(),icon:"cog",selected:M===D.ref,tooltip:"Configure",tooltipPosition:"left",disabled:D.configuration_data.length===0}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function W(){return A("pin",{ref:D.ref})}return W}(),icon:"thumbtack",selected:D.pinned,tooltip:"Pin",tooltipPosition:"left",disabled:!D.module_type})]})]})]}),(0,e.createComponentVNode)(2,t.Box,{children:D.description})]})})},D.ref)})||(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Modules Detected"})})})})},g=r.MODsuitContent=function(){function I(B,L){var T=(0,a.useBackend)(L),A=T.act,x=T.data,E=x.ui_theme,P=x.interface_break;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!P,children:!!P&&(0,e.createComponentVNode)(2,d)||(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,v)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,N)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,C)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,p)})]})})}return I}(),V=r.MODsuit=function(){function I(B,L){var T=(0,a.useBackend)(L),A=T.act,x=T.data,E=x.ui_theme,P=x.interface_break;return(0,e.createComponentVNode)(2,o.Window,{theme:E,width:400,height:620,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,g)})})})}return I}()},78624:function(w,r,n){"use strict";r.__esModule=!0,r.MagnetController=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=n(3939),k=new Map([["n",{icon:"arrow-up",tooltip:"Move North"}],["e",{icon:"arrow-right",tooltip:"Move East"}],["s",{icon:"arrow-down",tooltip:"Move South"}],["w",{icon:"arrow-left",tooltip:"Move West"}],["c",{icon:"crosshairs",tooltip:"Move to Magnet"}],["r",{icon:"dice",tooltip:"Move Randomly"}]]),S=r.MagnetController=function(){function y(h,c){var i=(0,t.useBackend)(c),m=i.act,d=i.data,u=d.autolink,s=d.code,l=d.frequency,v=d.linkedMagnets,N=d.magnetConfiguration,C=d.path,p=d.pathPosition,g=d.probing,V=d.powerState,I=d.speed;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:600,children:[(0,e.createComponentVNode)(2,b.ComplexModal),(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[!u&&(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{content:"Probe",icon:g?"spinner":"sync",iconSpin:!!g,disabled:g,onClick:function(){function B(){return m("probe_magnets")}return B}()}),title:"Magnet Linking",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,a.toFixed)(l/10,1)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:s})]})}),(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{icon:V?"power-off":"times",content:V?"On":"Off",selected:V,onClick:function(){function B(){return m("toggle_power")}return B}()}),title:"Controller Configuration",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:I.value,minValue:I.min,maxValue:I.max,onChange:function(){function B(L,T){return m("set_speed",{speed:T})}return B}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Path",children:[Array.from(k.entries()).map(function(B){var L=B[0],T=B[1],A=T.icon,x=T.tooltip;return(0,e.createComponentVNode)(2,o.Button,{icon:A,tooltip:x,onClick:function(){function E(){return m("path_add",{code:L})}return E}()},L)}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",confirmIcon:"trash",confirmContent:"",float:"right",tooltip:"Reset Path",tooltipPosition:"left",onClick:function(){function B(){return m("path_clear")}return B}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file-import",float:"right",tooltip:"Manually input path",tooltipPosition:"left",onClick:function(){function B(){return(0,b.modalOpen)(c,"path_custom_input")}return B}()}),(0,e.createComponentVNode)(2,o.BlockQuote,{children:C.map(function(B,L){var T=k.get(B)||{icon:"question"},A=T.icon,x=T.tooltip;return(0,e.createComponentVNode)(2,o.Button.Confirm,{selected:L+2===p,icon:A,confirmIcon:A,confirmContent:"",tooltip:x,onClick:function(){function E(){return m("path_remove",{index:L+1,code:B})}return E}()},L)})})]})]})}),v.map(function(B,L){var T=B.uid,A=B.powerState,x=B.electricityLevel,E=B.magneticField;return(0,e.createComponentVNode)(2,o.Section,{title:"Magnet #"+(L+1)+" Configuration",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:A?"power-off":"times",content:A?"On":"Off",selected:A,onClick:function(){function P(){return m("toggle_magnet_power",{id:T})}return P}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Move Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:x,minValue:N.electricityLevel.min,maxValue:N.electricityLevel.max,onChange:function(){function P(j,M){return m("set_electricity_level",{id:T,electricityLevel:M})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Field Size",children:(0,e.createComponentVNode)(2,o.Slider,{value:E,minValue:N.magneticField.min,maxValue:N.magneticField.max,onChange:function(){function P(j,M){return m("set_magnetic_field",{id:T,magneticField:M})}return P}()})})]})},T)})]})]})}return y}()},72106:function(w,r,n){"use strict";r.__esModule=!0,r.MechBayConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.MechBayConsole=function(){function b(k,S){var y=(0,a.useBackend)(S),h=y.act,c=y.data,i=c.recharge_port,m=i&&i.mech,d=m&&m.cell,u=m&&m.name;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:155,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:u?"Mech status: "+u:"Mech status",textAlign:"center",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Sync",onClick:function(){function s(){return h("reconnect")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:!i&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!m&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:m.health/m.maxhealth,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:!i&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!m&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||!d&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cell is installed."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:d.charge/d.maxcharge,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]},children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:d.charge})," / "+d.maxcharge]})})]})})})})}return b}()},7466:function(w,r,n){"use strict";r.__esModule=!0,r.MechaControlConsole=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=n(25328),k=r.MechaControlConsole=function(){function S(y,h){var c=(0,t.useBackend)(h),i=c.act,m=c.data,d=m.beacons,u=m.stored_data;return u.length?(0,e.createComponentVNode)(2,f.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"window-close",onClick:function(){function s(){return i("clear_log")}return s}()}),children:u.map(function(s){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["(",s.time,")"]}),(0,e.createComponentVNode)(2,o.Box,{children:(0,b.decodeHtmlEntities)(s.message)})]},s.time)})})})}):(0,e.createComponentVNode)(2,f.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:d.length&&d.map(function(s){return(0,e.createComponentVNode)(2,o.Section,{title:s.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function l(){return i("send_message",{mt:s.uid})}return l}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function l(){return i("get_log",{mt:s.uid})}return l}(),children:"View Log"}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",content:"Sabotage",icon:"bomb",onClick:function(){function l(){return i("shock",{mt:s.uid})}return l}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[s.maxHealth*.75,1/0],average:[s.maxHealth*.5,s.maxHealth*.75],bad:[-1/0,s.maxHealth*.5]},value:s.health,maxValue:s.maxHealth})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cell Charge",children:s.cell&&(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[s.cellMaxCharge*.75,1/0],average:[s.cellMaxCharge*.5,s.cellMaxCharge*.75],bad:[-1/0,s.cellMaxCharge*.5]},value:s.cellCharge,maxValue:s.cellMaxCharge})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No Cell Installed"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Air Tank",children:[s.airtank,"kPa"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pilot",children:s.pilot||"Unoccupied"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:(0,b.toTitleCase)(s.location)||"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Active Equipment",children:s.active||"None"}),s.cargoMax&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cargo Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{bad:[s.cargoMax*.75,1/0],average:[s.cargoMax*.5,s.cargoMax*.75],good:[-1/0,s.cargoMax*.5]},value:s.cargoUsed,maxValue:s.cargoMax})})||null]})},s.name)})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No mecha beacons found."})})})}return S}()},79625:function(w,r,n){"use strict";r.__esModule=!0,r.MedicalRecords=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(3939),b=n(98595),k=n(321),S=n(5485),y=n(22091),h={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},c={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},i=function(A,x){(0,f.modalOpen)(A,"edit",{field:x.edit,value:x.value})},m=function(A,x){var E=A.args;return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:E.name||"Virus",children:(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Number of stages",children:E.max_stages}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Spread",children:[E.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Possible cure",children:E.cure}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Notes",children:E.desc}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Severity",color:h[E.severity],children:E.severity})]})})})},d=r.MedicalRecords=function(){function T(A,x){var E=(0,t.useBackend)(x),P=E.data,j=P.loginState,M=P.screen;if(!j.logged_in)return(0,e.createComponentVNode)(2,b.Window,{width:800,height:900,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});var R;return M===2?R=(0,e.createComponentVNode)(2,u):M===3?R=(0,e.createComponentVNode)(2,s):M===4?R=(0,e.createComponentVNode)(2,l):M===5?R=(0,e.createComponentVNode)(2,p):M===6?R=(0,e.createComponentVNode)(2,g):M===7&&(R=(0,e.createComponentVNode)(2,V)),(0,e.createComponentVNode)(2,b.Window,{width:800,height:900,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,y.TemporaryNotice),(0,e.createComponentVNode)(2,L),R]})})]})}return T}(),u=function(A,x){var E=(0,t.useBackend)(x),P=E.act,j=E.data,M=j.records,R=(0,t.useLocalState)(x,"searchText",""),D=R[0],W=R[1],_=(0,t.useLocalState)(x,"sortId","name"),U=_[0],K=_[1],G=(0,t.useLocalState)(x,"sortOrder",!0),$=G[0],Q=G[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Manage Records",icon:"wrench",ml:"0.25rem",onClick:function(){function J(){return P("screen",{screen:3})}return J}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search by Name, ID, Physical Status, or Mental Status",onInput:function(){function J(ie,ne){return W(ne)}return J}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,I,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,I,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,I,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,I,{id:"p_stat",children:"Patient Status"}),(0,e.createComponentVNode)(2,I,{id:"m_stat",children:"Mental Status"})]}),M.filter((0,a.createSearch)(D,function(J){return J.name+"|"+J.id+"|"+J.rank+"|"+J.p_stat+"|"+J.m_stat})).sort(function(J,ie){var ne=$?1:-1;return J[U].localeCompare(ie[U])*ne}).map(function(J){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listRow--"+c[J.p_stat],onClick:function(){function ie(){return P("view_record",{view_record:J.ref})}return ie}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",J.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.p_stat}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.m_stat})]},J.id)})]})})})],4)},s=function(A,x){var E=(0,t.useBackend)(x),P=E.act;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,translucent:!0,lineHeight:3,icon:"download",content:"Backup to Disk",disabled:!0})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,translucent:!0,lineHeight:3,icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," "]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,translucent:!0,lineHeight:3,icon:"trash",content:"Delete All Medical Records",onClick:function(){function j(){return P("del_all_med_records")}return j}()})})]})})},l=function(A,x){var E=(0,t.useBackend)(x),P=E.act,j=E.data,M=j.medical,R=j.printing;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{height:"235px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:R?"spinner":"print",disabled:R,iconSpin:!!R,content:"Print Record",ml:"0.5rem",onClick:function(){function D(){return P("print_record")}return D}()}),children:(0,e.createComponentVNode)(2,v)})}),!M||!M.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function D(){return P("new_med_record")}return D}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Medical records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:!!M.empty,content:"Delete Medical Record",onClick:function(){function D(){return P("del_med_record")}return D}()}),children:(0,e.createComponentVNode)(2,N)})}),(0,e.createComponentVNode)(2,C)],4)],0)},v=function(A,x){var E=(0,t.useBackend)(x),P=E.data,j=P.general;return!j||!j.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:j.fields.map(function(M,R){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:M.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:M.value}),!!M.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function D(){return i(x,M)}return D}()})]},R)})})}),!!j.has_photos&&j.photos.map(function(M,R){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:M,style:{width:"96px","margin-top":"2.5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",R+1]},R)})]})},N=function(A,x){var E=(0,t.useBackend)(x),P=E.act,j=E.data,M=j.medical;return!M||!M.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"Medical records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:M.fields.map(function(R,D){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:R.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(R.value),!!R.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:R.line_break?"1rem":"initial",onClick:function(){function W(){return i(x,R)}return W}()})]},D)})})})})},C=function(A,x){var E=(0,t.useBackend)(x),P=E.act,j=E.data,M=j.medical;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function R(){return(0,f.modalOpen)(x,"add_comment")}return R}()}),children:M.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):M.comments.map(function(R,D){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:R.header}),(0,e.createVNode)(1,"br"),R.text,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function W(){return P("del_comment",{del_comment:D+1})}return W}()})]},D)})})})},p=function(A,x){var E=(0,t.useBackend)(x),P=E.act,j=E.data,M=j.virus,R=(0,t.useLocalState)(x,"searchText",""),D=R[0],W=R[1],_=(0,t.useLocalState)(x,"sortId2","name"),U=_[0],K=_[1],G=(0,t.useLocalState)(x,"sortOrder2",!0),$=G[0],Q=G[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{ml:"0.25rem",fluid:!0,placeholder:"Search by Name, Max Stages, or Severity",onInput:function(){function J(ie,ne){return W(ne)}return J}()})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,B,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,B,{id:"max_stages",children:"Max Stages"}),(0,e.createComponentVNode)(2,B,{id:"severity",children:"Severity"})]}),M.filter((0,a.createSearch)(D,function(J){return J.name+"|"+J.max_stages+"|"+J.severity})).sort(function(J,ie){var ne=$?1:-1;return J[U].localeCompare(ie[U])*ne}).map(function(J){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listVirus--"+J.severity,onClick:function(){function ie(){return P("vir",{vir:J.D})}return ie}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"virus"})," ",J.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.max_stages}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:h[J.severity],children:J.severity})]},J.id)})]})})})})],4)},g=function(A,x){var E=(0,t.useBackend)(x),P=E.act,j=E.data,M=j.goals;return(0,e.createComponentVNode)(2,o.Section,{title:"Virology Goals",fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:M.length!==0&&M.map(function(R){return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:R.name,children:[(0,e.createComponentVNode)(2,o.Table,{children:(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:R.delivered,minValue:0,maxValue:R.deliverygoal,ranges:{good:[R.deliverygoal*.5,1/0],average:[R.deliverygoal*.25,R.deliverygoal*.5],bad:[-1/0,R.deliverygoal*.25]},children:[R.delivered," / ",R.deliverygoal," Units"]})})})}),(0,e.createComponentVNode)(2,o.Box,{children:R.report})]})},R.id)})||(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:"No Goals Detected"})})})})},V=function(A,x){var E=(0,t.useBackend)(x),P=E.act,j=E.data,M=j.medbots;return M.length===0?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"robot",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"There are no Medibots."]})})})}):(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Area"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Chemicals"})]}),M.map(function(R){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listMedbot--"+R.on,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"medical"})," ",R.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[R.area||"Unknown"," (",R.x,", ",R.y,")"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.on?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Online"}):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"Offline"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.use_beaker?"Reservoir: "+R.total_volume+"/"+R.maximum_volume:"Using internal synthesizer"})]},R.id)})]})})})},I=function(A,x){var E=(0,t.useLocalState)(x,"sortId","name"),P=E[0],j=E[1],M=(0,t.useLocalState)(x,"sortOrder",!0),R=M[0],D=M[1],W=A.id,_=A.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:P!==W&&"transparent",onClick:function(){function U(){P===W?D(!R):(j(W),D(!0))}return U}(),children:[_,P===W&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},B=function(A,x){var E=(0,t.useLocalState)(x,"sortId2","name"),P=E[0],j=E[1],M=(0,t.useLocalState)(x,"sortOrder2",!0),R=M[0],D=M[1],W=A.id,_=A.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:P!==W&&"transparent",onClick:function(){function U(){P===W?D(!R):(j(W),D(!0))}return U}(),children:[_,P===W&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},L=function(A,x){var E=(0,t.useBackend)(x),P=E.act,j=E.data,M=j.screen,R=j.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:M===2,onClick:function(){function D(){P("screen",{screen:2})}return D}(),children:"List Records"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"database",selected:M===5,onClick:function(){function D(){P("screen",{screen:5})}return D}(),children:"Virus Database"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"vial",selected:M===6,onClick:function(){function D(){P("screen",{screen:6})}return D}(),children:"Virology Goals"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"plus-square",selected:M===7,onClick:function(){function D(){return P("screen",{screen:7})}return D}(),children:"Medibot Tracking"}),M===3&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:M===3,children:"Record Maintenance"}),M===4&&R&&!R.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:M===4,children:["Record: ",R.fields[0].value]})]})})};(0,f.modalRegisterBodyOverride)("virus",m)},54989:function(w,r,n){"use strict";r.__esModule=!0,r.MerchVendor=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=h.product,s=h.productImage,l=h.productCategory,v=d.user_money;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+s,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:u.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{disabled:u.price>v,icon:"shopping-cart",content:u.price,textAlign:"left",onClick:function(){function N(){return m("purchase",{name:u.name,category:l})}return N}()})})]})},b=function(h,c){var i=(0,a.useBackend)(c),m=i.data,d=(0,a.useLocalState)(c,"tabIndex",1),u=d[0],s=m.products,l=m.imagelist,v=["apparel","toy","decoration"];return(0,e.createComponentVNode)(2,t.Table,{children:s[v[u]].map(function(N){return(0,e.createComponentVNode)(2,f,{product:N,productImage:l[N.path],productCategory:v[u]},N.name)})})},k=r.MerchVendor=function(){function y(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.user_cash,s=d.inserted_cash;return(0,e.createComponentVNode)(2,o.Window,{title:"Merch Computer",width:450,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"User",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"light-grey",inline:!0,mr:"0.5rem",children:["There is ",(0,e.createVNode)(1,"b",null,s,0)," credits inserted."]}),(0,e.createComponentVNode)(2,t.Button,{disabled:!s,icon:"money-bill-wave-alt",content:"Dispense Change",textAlign:"left",onClick:function(){function l(){return m("change")}return l}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:["Doing your job and not getting any recognition at work? Well, welcome to the merch shop! Here, you can buy cool things in exchange for money you earn when you have completed your Job Objectives.",u!==null&&(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:["Your balance is ",(0,e.createVNode)(1,"b",null,[u||0,(0,e.createTextVNode)(" credits")],0),"."]})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,b)]})})]})})})}return y}(),S=function(h,c){var i=(0,a.useBackend)(c),m=i.data,d=(0,a.useLocalState)(c,"tabIndex",1),u=d[0],s=d[1],l=m.login_state;return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"dice",selected:u===1,onClick:function(){function v(){return s(1)}return v}(),children:"Toys"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"flag",selected:u===2,onClick:function(){function v(){return s(2)}return v}(),children:"Decorations"})]})}},87684:function(w,r,n){"use strict";r.__esModule=!0,r.MiningVendor=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=["title","items"];function k(d,u){if(d==null)return{};var s={};for(var l in d)if({}.hasOwnProperty.call(d,l)){if(u.includes(l))continue;s[l]=d[l]}return s}var S={Alphabetical:function(){function d(u,s){return u-s}return d}(),Availability:function(){function d(u,s){return-(u.affordable-s.affordable)}return d}(),Price:function(){function d(u,s){return u.price-s.price}return d}()},y=r.MiningVendor=function(){function d(u,s){return(0,e.createComponentVNode)(2,f.Window,{width:400,height:455,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})})})}return d}(),h=function(u,s){var l=(0,t.useBackend)(s),v=l.act,N=l.data,C=N.has_id,p=N.id;return(0,e.createComponentVNode)(2,o.NoticeBox,{success:C,children:C?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",p.name,".",(0,e.createVNode)(1,"br"),"You have ",p.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function g(){return v("logoff")}return g}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},c=function(u,s){var l=(0,t.useBackend)(s),v=l.act,N=l.data,C=N.has_id,p=N.id,g=N.items,V=(0,t.useLocalState)(s,"search",""),I=V[0],B=V[1],L=(0,t.useLocalState)(s,"sort","Alphabetical"),T=L[0],A=L[1],x=(0,t.useLocalState)(s,"descending",!1),E=x[0],P=x[1],j=(0,a.createSearch)(I,function(D){return D[0]}),M=!1,R=Object.entries(g).map(function(D,W){var _=Object.entries(D[1]).filter(j).map(function(U){return U[1].affordable=C&&p.points>=U[1].price,U[1]}).sort(S[T]);if(_.length!==0)return E&&(_=_.reverse()),M=!0,(0,e.createComponentVNode)(2,m,{title:D[0],items:_},D[0])});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:M?R:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},i=function(u,s){var l=(0,t.useLocalState)(s,"search",""),v=l[0],N=l[1],C=(0,t.useLocalState)(s,"sort",""),p=C[0],g=C[1],V=(0,t.useLocalState)(s,"descending",!1),I=V[0],B=V[1];return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{mt:.2,placeholder:"Search by item name..",width:"100%",onInput:function(){function L(T,A){return N(A)}return L}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(S),width:"100%",onSelected:function(){function L(T){return g(T)}return L}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:I?"arrow-down":"arrow-up",height:"21px",tooltip:I?"Descending order":"Ascending order",tooltipPosition:"bottom-start",onClick:function(){function L(){return B(!I)}return L}()})})]})})},m=function(u,s){var l=(0,t.useBackend)(s),v=l.act,N=l.data,C=u.title,p=u.items,g=k(u,b);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:C},g,{children:p.map(function(V){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:V.name}),(0,e.createComponentVNode)(2,o.Button,{disabled:!N.has_id||N.id.points0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:ke>=10?"9+":ke})}),(0,e.createComponentVNode)(2,s,{icon:"briefcase",title:"Job Openings",selected:D===1,onClick:function(){function he(){return x("jobs")}return he}()}),(0,e.createComponentVNode)(2,o.Divider)]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:W.map(function(he){return(0,e.createComponentVNode)(2,s,{icon:he.icon,title:he.name,selected:D===2&&W[U-1]===he,onClick:function(){function oe(){return x("channel",{uid:he.uid})}return oe}(),children:he.unread>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:he.unread>=10?"9+":he.unread})},he)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Divider),(!!P||!!j)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,s,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){function he(){return(0,k.modalOpen)(T,"wanted_notice")}return he}()}),(0,e.createComponentVNode)(2,s,{security:!0,icon:se?"minus-square":"minus-square-o",title:"Censor Mode: "+(se?"On":"Off"),mb:"0.5rem",onClick:function(){function he(){return Ce(!se)}return he}()}),(0,e.createComponentVNode)(2,o.Divider)],4),(0,e.createComponentVNode)(2,s,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){function he(){return(0,k.modalOpen)(T,"create_story")}return he}()}),(0,e.createComponentVNode)(2,s,{icon:"plus-circle",title:"New Channel",onClick:function(){function he(){return(0,k.modalOpen)(T,"create_channel")}return he}()}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,s,{icon:R?"spinner":"print",iconSpin:R,title:R?"Printing...":"Print Newspaper",onClick:function(){function he(){return x("print_newspaper")}return he}()}),(0,e.createComponentVNode)(2,s,{icon:M?"volume-mute":"volume-up",title:"Mute: "+(M?"On":"Off"),onClick:function(){function he(){return x("toggle_mute")}return he}()})]})]})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,width:"100%",children:[(0,e.createComponentVNode)(2,S.TemporaryNotice),Se]})]})})]})}return B}(),s=function(L,T){var A=(0,t.useBackend)(T),x=A.act,E=L.icon,P=E===void 0?"":E,j=L.iconSpin,M=L.selected,R=M===void 0?!1:M,D=L.security,W=D===void 0?!1:D,_=L.onClick,U=L.title,K=L.children,G=c(L,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Newscaster__menuButton",R&&"Newscaster__menuButton--selected",W&&"Newscaster__menuButton--security"]),onClick:_},G,{children:[R&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,e.createComponentVNode)(2,o.Icon,{name:P,spin:j,size:"2"}),(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--title",children:U}),K]})))},l=function(L,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.screen,j=E.is_admin,M=E.channel_idx,R=E.channel_can_manage,D=E.channels,W=E.stories,_=E.wanted,U=(0,t.useLocalState)(T,"fullStories",[]),K=U[0],G=U[1],$=(0,t.useLocalState)(T,"censorMode",!1),Q=$[0],J=$[1],ie=P===2&&M>-1?D[M-1]:null;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!_&&(0,e.createComponentVNode)(2,N,{story:_,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:ie?ie.icon:"newspaper",mr:"0.5rem"}),ie?ie.name:"Headlines"],0),children:W.length>0?W.slice().reverse().map(function(ne){return!K.includes(ne.uid)&&ne.body.length+3>i?Object.assign({},ne,{body_short:ne.body.substr(0,i-4)+"..."}):ne}).map(function(ne,se){return(0,e.createComponentVNode)(2,N,{story:ne},se)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no stories at this time."]})}),!!ie&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,height:"40%",title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"info-circle",mr:"0.5rem"}),(0,e.createTextVNode)("About")],4),buttons:(0,e.createFragment)([Q&&(0,e.createComponentVNode)(2,o.Button,{disabled:!!ie.admin&&!j,selected:ie.censored,icon:ie.censored?"comment-slash":"comment",content:ie.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){function ne(){return x("censor_channel",{uid:ie.uid})}return ne}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!R,icon:"cog",content:"Manage",onClick:function(){function ne(){return(0,k.modalOpen)(T,"manage_channel",{uid:ie.uid})}return ne}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:ie.description||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:ie.author||"N/A"}),!!j&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Ckey",children:ie.author_ckey}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Public",children:ie.public?"Yes":"No"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Views",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"eye",mr:"0.5rem"}),W.reduce(function(ne,se){return ne+se.view_count},0).toLocaleString()]})]})})]})},v=function(L,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.jobs,j=E.wanted,M=Object.entries(P).reduce(function(R,D){var W=D[0],_=D[1];return R+_.length},0);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!j&&(0,e.createComponentVNode)(2,N,{story:j,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"briefcase",mr:"0.5rem"}),(0,e.createTextVNode)("Job Openings")],4),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:"Work for a better future at Nanotrasen"}),children:M>0?m.map(function(R){return Object.assign({},d[R],{id:R,jobs:P[R]})}).filter(function(R){return!!R&&R.jobs.length>0}).map(function(R){return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__jobCategory","Newscaster__jobCategory--"+R.id]),title:R.title,buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:R.fluff_text}),children:R.jobs.map(function(D){return(0,e.createComponentVNode)(2,o.Box,{class:(0,a.classes)(["Newscaster__jobOpening",!!D.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",D.title]},D.title)})},R.id)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no openings at this time."]})}),(0,e.createComponentVNode)(2,o.Section,{height:"17%",children:["Interested in serving Nanotrasen?",(0,e.createVNode)(1,"br"),"Sign up for any of the above position now at the ",(0,e.createVNode)(1,"b",null,"Head of Personnel's Office!",16),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{as:"small",color:"label",children:"By signing up for a job at Nanotrasen, you agree to transfer your soul to the loyalty department of the omnipresent and helpful watcher of humanity."})]})]})},N=function(L,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=L.story,j=L.wanted,M=j===void 0?!1:j,R=E.is_admin,D=(0,t.useLocalState)(T,"fullStories",[]),W=D[0],_=D[1],U=(0,t.useLocalState)(T,"censorMode",!1),K=U[0],G=U[1];return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__story",M&&"Newscaster__story--wanted"]),title:(0,e.createFragment)([M&&(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle",mr:"0.5rem"}),P.censor_flags&2&&"[REDACTED]"||P.title||"News from "+P.author],0),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:[!M&&K&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,e.createComponentVNode)(2,o.Button,{enabled:P.censor_flags&2,icon:P.censor_flags&2?"comment-slash":"comment",content:P.censor_flags&2?"Uncensor":"Censor",mr:"0.5rem",mt:"-0.25rem",onClick:function(){function $(){return x("censor_story",{uid:P.uid})}return $}()})}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",P.author," |\xA0",!!R&&(0,e.createFragment)([(0,e.createTextVNode)("ckey: "),P.author_ckey,(0,e.createTextVNode)(" |\xA0")],0),!M&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),(0,e.createTextVNode)(" "),P.view_count.toLocaleString(),(0,e.createTextVNode)(" |\xA0")],0),(0,e.createComponentVNode)(2,o.Icon,{name:"clock"})," ",(0,f.timeAgo)(P.publish_time,E.world_time)]})]})}),children:(0,e.createComponentVNode)(2,o.Box,{children:P.censor_flags&2?"[REDACTED]":(0,e.createFragment)([!!P.has_photo&&(0,e.createComponentVNode)(2,C,{name:"story_photo_"+P.uid+".png",float:"right",ml:"0.5rem"}),(P.body_short||P.body).split("\n").map(function($,Q){return(0,e.createComponentVNode)(2,o.Box,{children:$||(0,e.createVNode)(1,"br")},Q)}),P.body_short&&(0,e.createComponentVNode)(2,o.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){function $(){return _([].concat(W,[P.uid]))}return $}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})],0)})})},C=function(L,T){var A=L.name,x=c(L,h),E=(0,t.useLocalState)(T,"viewingPhoto",""),P=E[0],j=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"img",className:"Newscaster__photo",src:A,onClick:function(){function M(){return j(A)}return M}()},x)))},p=function(L,T){var A=(0,t.useLocalState)(T,"viewingPhoto",""),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Newscaster__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:x}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function P(){return E("")}return P}()})]})},g=function(L,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=!!L.args.uid&&E.channels.filter(function(ee){return ee.uid===L.args.uid}).pop();if(L.id==="manage_channel"&&!P){(0,k.modalClose)(T);return}var j=L.id==="manage_channel",M=!!L.args.is_admin,R=L.args.scanned_user,D=(0,t.useLocalState)(T,"author",(P==null?void 0:P.author)||R||"Unknown"),W=D[0],_=D[1],U=(0,t.useLocalState)(T,"name",(P==null?void 0:P.name)||""),K=U[0],G=U[1],$=(0,t.useLocalState)(T,"description",(P==null?void 0:P.description)||""),Q=$[0],J=$[1],ie=(0,t.useLocalState)(T,"icon",(P==null?void 0:P.icon)||"newspaper"),ne=ie[0],se=ie[1],Ce=(0,t.useLocalState)(T,"isPublic",j?!!(P!=null&&P.public):!1),Se=Ce[0],ke=Ce[1],he=(0,t.useLocalState)(T,"adminLocked",(P==null?void 0:P.admin)===1||!1),oe=he[0],ce=he[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:j?"Manage "+P.name:"Create New Channel",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!M,width:"100%",value:W,onInput:function(){function ee(fe,me){return _(me)}return ee}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"50 characters max.",maxLength:"50",value:K,onInput:function(){function ee(fe,me){return G(me)}return ee}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",placeholder:"128 characters max.",maxLength:"128",value:Q,onInput:function(){function ee(fe,me){return J(me)}return ee}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Icon",children:[(0,e.createComponentVNode)(2,o.Input,{disabled:!M,value:ne,width:"35%",mr:"0.5rem",onInput:function(){function ee(fe,me){return se(me)}return ee}()}),(0,e.createComponentVNode)(2,o.Icon,{name:ne,size:"2",verticalAlign:"middle",mr:"0.5rem"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Accept Public Stories?",children:(0,e.createComponentVNode)(2,o.Button,{selected:Se,icon:Se?"toggle-on":"toggle-off",content:Se?"Yes":"No",onClick:function(){function ee(){return ke(!Se)}return ee}()})}),M&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:oe,icon:oe?"lock":"lock-open",content:oe?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function ee(){return ce(!oe)}return ee}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:W.trim().length===0||K.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function ee(){(0,k.modalAnswer)(T,L.id,"",{author:W,name:K.substr(0,49),description:Q.substr(0,128),icon:ne,public:Se?1:0,admin_locked:oe?1:0})}return ee}()})]})},V=function(L,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.photo,j=E.channels,M=E.channel_idx,R=M===void 0?-1:M,D=!!L.args.is_admin,W=L.args.scanned_user,_=j.slice().sort(function(ee,fe){if(R<0)return 0;var me=j[R-1];if(me.uid===ee.uid)return-1;if(me.uid===fe.uid)return 1}).filter(function(ee){return D||!ee.frozen&&(ee.author===W||!!ee.public)}),U=(0,t.useLocalState)(T,"author",W||"Unknown"),K=U[0],G=U[1],$=(0,t.useLocalState)(T,"channel",_.length>0?_[0].name:""),Q=$[0],J=$[1],ie=(0,t.useLocalState)(T,"title",""),ne=ie[0],se=ie[1],Ce=(0,t.useLocalState)(T,"body",""),Se=Ce[0],ke=Ce[1],he=(0,t.useLocalState)(T,"adminLocked",!1),oe=he[0],ce=he[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Create New Story",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!D,width:"100%",value:K,onInput:function(){function ee(fe,me){return G(me)}return ee}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:Q,options:_.map(function(ee){return ee.name}),mb:"0",width:"100%",onSelected:function(){function ee(fe){return J(fe)}return ee}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"128 characters max.",maxLength:"128",value:ne,onInput:function(){function ee(fe,me){return se(me)}return ee}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Story Text",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,multiline:!0,placeholder:"1024 characters max.",maxLength:"1024",rows:"8",width:"100%",value:Se,onInput:function(){function ee(fe,me){return ke(me)}return ee}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:P,content:P?"Eject: "+P.name:"Insert Photo",tooltip:!P&&"Attach a photo to this story by holding the photograph in your hand.",onClick:function(){function ee(){return x(P?"eject_photo":"attach_photo")}return ee}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,title:ne,maxHeight:"13.5rem",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:[!!P&&(0,e.createComponentVNode)(2,C,{name:"inserted_photo_"+P.uid+".png",float:"right"}),Se.split("\n").map(function(ee,fe){return(0,e.createComponentVNode)(2,o.Box,{children:ee||(0,e.createVNode)(1,"br")},fe)}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})]})})}),D&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:oe,icon:oe?"lock":"lock-open",content:oe?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function ee(){return ce(!oe)}return ee}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:K.trim().length===0||Q.trim().length===0||ne.trim().length===0||Se.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function ee(){(0,k.modalAnswer)(T,"create_story","",{author:K,channel:Q,title:ne.substr(0,127),body:Se.substr(0,1023),admin_locked:oe?1:0})}return ee}()})]})},I=function(L,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.photo,j=E.wanted,M=!!L.args.is_admin,R=L.args.scanned_user,D=(0,t.useLocalState)(T,"author",(j==null?void 0:j.author)||R||"Unknown"),W=D[0],_=D[1],U=(0,t.useLocalState)(T,"name",(j==null?void 0:j.title.substr(8))||""),K=U[0],G=U[1],$=(0,t.useLocalState)(T,"description",(j==null?void 0:j.body)||""),Q=$[0],J=$[1],ie=(0,t.useLocalState)(T,"adminLocked",(j==null?void 0:j.admin_locked)===1||!1),ne=ie[0],se=ie[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Manage Wanted Notice",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Authority",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!M,width:"100%",value:W,onInput:function(){function Ce(Se,ke){return _(ke)}return Ce}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",value:K,maxLength:"128",onInput:function(){function Ce(Se,ke){return G(ke)}return Ce}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",value:Q,maxLength:"512",rows:"4",onInput:function(){function Ce(Se,ke){return J(ke)}return Ce}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:P,content:P?"Eject: "+P.name:"Insert Photo",tooltip:!P&&"Attach a photo to this wanted notice by holding the photograph in your hand.",tooltipPosition:"top",onClick:function(){function Ce(){return x(P?"eject_photo":"attach_photo")}return Ce}()}),!!P&&(0,e.createComponentVNode)(2,C,{name:"inserted_photo_"+P.uid+".png",float:"right"})]}),M&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ne,icon:ne?"lock":"lock-open",content:ne?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function Ce(){return se(!ne)}return Ce}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!j,icon:"eraser",color:"danger",content:"Clear",position:"absolute",right:"7.25rem",bottom:"-0.75rem",onClick:function(){function Ce(){x("clear_wanted_notice"),(0,k.modalClose)(T)}return Ce}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:W.trim().length===0||K.trim().length===0||Q.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function Ce(){(0,k.modalAnswer)(T,L.id,"",{author:W,name:K.substr(0,127),description:Q.substr(0,511),admin_locked:ne?1:0})}return Ce}()})]})};(0,k.modalRegisterBodyOverride)("create_channel",g),(0,k.modalRegisterBodyOverride)("manage_channel",g),(0,k.modalRegisterBodyOverride)("create_story",V),(0,k.modalRegisterBodyOverride)("wanted_notice",I)},48286:function(w,r,n){"use strict";r.__esModule=!0,r.Noticeboard=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=r.Noticeboard=function(){function k(S,y){var h=(0,t.useBackend)(y),c=h.act,i=h.data,m=i.papers;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:300,theme:"noticeboard",children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:m.map(function(d){return(0,e.createComponentVNode)(2,o.Stack.Item,{align:"center",width:"22.45%",height:"85%",onClick:function(){function u(){return c("interact",{paper:d.ref})}return u}(),onContextMenu:function(){function u(s){s.preventDefault(),c("showFull",{paper:d.ref})}return u}(),children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,fontSize:.75,title:d.name,children:(0,a.decodeHtmlEntities)(d.contents)})},d.ref)})})})})}return k}()},41166:function(w,r,n){"use strict";r.__esModule=!0,r.NuclearBomb=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.NuclearBomb=function(){function b(k,S){var y=(0,a.useBackend)(S),h=y.act,c=y.data;return c.extended?(0,e.createComponentVNode)(2,o.Window,{width:350,height:290,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Disk",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.authdisk?"eject":"id-card",selected:c.authdisk,content:c.diskname?c.diskname:"-----",tooltip:c.authdisk?"Eject Disk":"Insert Disk",onClick:function(){function i(){return h("auth")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Code",children:(0,e.createComponentVNode)(2,t.Button,{icon:"key",disabled:!c.authdisk,selected:c.authcode,content:c.codemsg,onClick:function(){function i(){return h("code")}return i}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Arming & Disarming",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bolted to floor",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.anchored?"check":"times",selected:c.anchored,disabled:!c.authdisk,content:c.anchored?"YES":"NO",onClick:function(){function i(){return h("toggle_anchor")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"stopwatch",content:c.time,disabled:!c.authfull,tooltip:"Set Timer",onClick:function(){function i(){return h("set_time")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.safety?"check":"times",selected:c.safety,disabled:!c.authfull,content:c.safety?"ON":"OFF",tooltip:c.safety?"Disable Safety":"Enable Safety",onClick:function(){function i(){return h("toggle_safety")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Arm/Disarm",children:(0,e.createComponentVNode)(2,t.Button,{icon:(c.timer,"bomb"),disabled:c.safety||!c.authfull,color:"red",content:c.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){function i(){return h("toggle_armed")}return i}()})})]})})]})}):(0,e.createComponentVNode)(2,o.Window,{width:350,height:115,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Deployment",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"exclamation-triangle",content:"Deploy Nuclear Device (will bolt device to floor)",onClick:function(){function i(){return h("deploy")}return i}()})})})})}return b}()},52416:function(w,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(92986),f=n(72253),b=n(36036),k=n(98595),S=r.NumberInputModal=function(){function h(c,i){var m=(0,f.useBackend)(i),d=m.act,u=m.data,s=u.init_value,l=u.large_buttons,v=u.message,N=v===void 0?"":v,C=u.timeout,p=u.title,g=(0,f.useLocalState)(i,"input",s),V=g[0],I=g[1],B=function(){function A(x){x!==V&&I(x)}return A}(),L=function(){function A(x){x!==V&&I(x)}return A}(),T=140+Math.max(Math.ceil(N.length/3),N.length>0&&l?5:0);return(0,e.createComponentVNode)(2,k.Window,{title:p,width:270,height:T,children:[C&&(0,e.createComponentVNode)(2,a.Loader,{value:C}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function A(x){var E=window.event?x.which:x.keyCode;E===o.KEY_ENTER&&d("submit",{entry:V}),E===o.KEY_ESCAPE&&d("cancel")}return A}(),children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Box,{color:"label",children:N})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,y,{input:V,onClick:L,onChange:B})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:V})})]})})})]})}return h}(),y=function(c,i){var m=(0,f.useBackend)(i),d=m.act,u=m.data,s=u.min_value,l=u.max_value,v=u.init_value,N=u.round_value,C=c.input,p=c.onClick,g=c.onChange,V=Math.round(C!==s?Math.max(C/2,s):l/2),I=C===s&&s>0||C===1;return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Button,{disabled:C===s,icon:"angle-double-left",onClick:function(){function B(){return p(s)}return B}(),tooltip:C===s?"Min":"Min ("+s+")"})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.RestrictedInput,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!N,minValue:s,maxValue:l,onChange:function(){function B(L,T){return g(T)}return B}(),onEnter:function(){function B(L,T){return d("submit",{entry:T})}return B}(),value:C})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Button,{disabled:C===l,icon:"angle-double-right",onClick:function(){function B(){return p(l)}return B}(),tooltip:C===l?"Max":"Max ("+l+")"})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Button,{disabled:I,icon:"divide",onClick:function(){function B(){return p(V)}return B}(),tooltip:I?"Split":"Split ("+V+")"})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Button,{disabled:C===v,icon:"redo",onClick:function(){function B(){return p(v)}return B}(),tooltip:v?"Reset ("+v+")":"Reset"})})]})}},1218:function(w,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(98595),f=n(36036),b=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],k=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},y=["bad","average","average","good","average","average","bad"],h=r.OperatingComputer=function(){function d(u,s){var l=(0,t.useBackend)(s),v=l.act,N=l.data,C=N.hasOccupant,p=N.choice,g;return p?g=(0,e.createComponentVNode)(2,m):g=C?(0,e.createComponentVNode)(2,c):(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,o.Window,{width:650,height:455,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!p,icon:"user",onClick:function(){function V(){return v("choiceOff")}return V}(),children:"Patient"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!!p,icon:"cog",onClick:function(){function V(){return v("choiceOn")}return V}(),children:"Options"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,children:g})})]})})})}return d}(),c=function(u,s){var l=(0,t.useBackend)(s),v=l.data,N=v.occupant;return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,title:"Patient",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Name",children:N.name}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Status",color:b[N.stat][0],children:b[N.stat][1]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:N.maxHealth,value:N.health/N.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),k.map(function(C,p){return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:C[0]+" Damage",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:"100",value:N[C[1]]/100,ranges:S,children:(0,a.round)(N[C[1]])},p)},p)}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:N.maxTemp,value:N.bodyTemperature/N.maxTemp,color:y[N.temperatureSuitability+3],children:[(0,a.round)(N.btCelsius),"\xB0C, ",(0,a.round)(N.btFaren),"\xB0F"]})}),!!N.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:N.bloodMax,value:N.bloodLevel/N.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[N.bloodPercent,"%, ",N.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Pulse",children:[N.pulse," BPM"]})],4)]})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Current Procedure",level:"2",children:N.inSurgery?(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Procedure",children:N.surgeryName}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Next Step",children:N.stepName})]}):(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No procedure ongoing."})})})]})},i=function(){return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No patient detected."]})})},m=function(u,s){var l=(0,t.useBackend)(s),v=l.act,N=l.data,C=N.verbose,p=N.health,g=N.healthAlarm,V=N.oxy,I=N.oxyAlarm,B=N.crit;return(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Loudspeaker",children:(0,e.createComponentVNode)(2,f.Button,{selected:C,icon:C?"toggle-on":"toggle-off",content:C?"On":"Off",onClick:function(){function L(){return v(C?"verboseOff":"verboseOn")}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer",children:(0,e.createComponentVNode)(2,f.Button,{selected:p,icon:p?"toggle-on":"toggle-off",content:p?"On":"Off",onClick:function(){function L(){return v(p?"healthOff":"healthOn")}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:g,stepPixelSize:5,ml:"0",onChange:function(){function L(T,A){return v("health_adj",{new:A})}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,f.Button,{selected:V,icon:V?"toggle-on":"toggle-off",content:V?"On":"Off",onClick:function(){function L(){return v(V?"oxyOff":"oxyOn")}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:I,stepPixelSize:5,ml:"0",onChange:function(){function L(T,A){return v("oxy_adj",{new:A})}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,f.Button,{selected:B,icon:B?"toggle-on":"toggle-off",content:B?"On":"Off",onClick:function(){function L(){return v(B?"critOff":"critOn")}return L}()})})]})}},46892:function(w,r,n){"use strict";r.__esModule=!0,r.Orbit=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=n(35840);function k(l,v){var N=typeof Symbol!="undefined"&&l[Symbol.iterator]||l["@@iterator"];if(N)return(N=N.call(l)).next.bind(N);if(Array.isArray(l)||(N=S(l))||v&&l&&typeof l.length=="number"){N&&(l=N);var C=0;return function(){return C>=l.length?{done:!0}:{done:!1,value:l[C++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(l,v){if(l){if(typeof l=="string")return y(l,v);var N={}.toString.call(l).slice(8,-1);return N==="Object"&&l.constructor&&(N=l.constructor.name),N==="Map"||N==="Set"?Array.from(l):N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N)?y(l,v):void 0}}function y(l,v){(v==null||v>l.length)&&(v=l.length);for(var N=0,C=Array(v);NN},m=function(v,N){var C=v.name,p=N.name;if(!C||!p)return 0;var g=C.match(h),V=p.match(h);if(g&&V&&C.replace(h,"")===p.replace(h,"")){var I=parseInt(g[1],10),B=parseInt(V[1],10);return I-B}return i(C,p)},d=function(v,N){var C=v.searchText,p=v.source,g=v.title,V=v.color,I=v.sorted,B=p.filter(c(C));return I&&B.sort(m),p.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:g+" - ("+p.length+")",children:B.map(function(L){return(0,e.createComponentVNode)(2,u,{thing:L,color:V},L.name)})})},u=function(v,N){var C=(0,t.useBackend)(N),p=C.act,g=v.color,V=v.thing;return(0,e.createComponentVNode)(2,o.Button,{color:g,tooltip:V.assigned_role?(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",mr:"0.5em",className:(0,b.classes)(["orbit_job16x16",V.assigned_role_sprite])})," ",V.assigned_role]}):"",tooltipPosition:"bottom",onClick:function(){function I(){return p("orbit",{ref:V.ref})}return I}(),children:[V.name,V.orbiters&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,ml:1,children:["(",V.orbiters," ",(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),")"]})]})},s=r.Orbit=function(){function l(v,N){for(var C=(0,t.useBackend)(N),p=C.act,g=C.data,V=g.alive,I=g.antagonists,B=g.highlights,L=g.response_teams,T=g.tourist,A=g.auto_observe,x=g.dead,E=g.ssd,P=g.ghosts,j=g.misc,M=g.npcs,R=(0,t.useLocalState)(N,"searchText",""),D=R[0],W=R[1],_={},U=k(I),K;!(K=U()).done;){var G=K.value;_[G.antag]===void 0&&(_[G.antag]=[]),_[G.antag].push(G)}var $=Object.entries(_);$.sort(function(J,ie){return i(J[0],ie[0])});var Q=function(){function J(ie){for(var ne=0,se=[$.map(function(ke){var he=ke[0],oe=ke[1];return oe}),T,B,V,P,E,x,M,j];ne0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:$.map(function(J){var ie=J[0],ne=J[1];return(0,e.createComponentVNode)(2,o.Section,{title:ie+" - ("+ne.length+")",level:2,children:ne.filter(c(D)).sort(m).map(function(se){return(0,e.createComponentVNode)(2,u,{color:"bad",thing:se},se.name)})},ie)})}),B.length>0&&(0,e.createComponentVNode)(2,d,{title:"Highlights",source:B,searchText:D,color:"teal"}),(0,e.createComponentVNode)(2,d,{title:"Response Teams",source:L,searchText:D,color:"purple"}),(0,e.createComponentVNode)(2,d,{title:"Tourists",source:T,searchText:D,color:"violet"}),(0,e.createComponentVNode)(2,d,{title:"Alive",source:V,searchText:D,color:"good"}),(0,e.createComponentVNode)(2,d,{title:"Ghosts",source:P,searchText:D,color:"grey"}),(0,e.createComponentVNode)(2,d,{title:"SSD",source:E,searchText:D,color:"grey"}),(0,e.createComponentVNode)(2,d,{title:"Dead",source:x,searchText:D,sorted:!1}),(0,e.createComponentVNode)(2,d,{title:"NPCs",source:M,searchText:D,sorted:!1}),(0,e.createComponentVNode)(2,d,{title:"Misc",source:j,searchText:D,sorted:!1})]})})}return l}()},15421:function(w,r,n){"use strict";r.__esModule=!0,r.OreRedemption=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=n(98595),b=n(9394);function k(l){if(l==null)throw new TypeError("Cannot destructure "+l)}var S=(0,b.createLogger)("OreRedemption"),y=function(v){return v.toLocaleString("en-US")+" pts"},h=r.OreRedemption=function(){function l(v,N){return(0,e.createComponentVNode)(2,f.Window,{width:490,height:750,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,c,{height:"100%"})}),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,m)]})})})}return l}(),c=function(v,N){var C=(0,t.useBackend)(N),p=C.act,g=C.data,V=g.id,I=g.points,B=g.disk,L=Object.assign({},(k(v),v));return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({},L,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"This machine only accepts ore. Gibtonite is not accepted."]}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed Points",color:I>0?"good":"grey",bold:I>0&&"good",children:y(I)})}),(0,e.createComponentVNode)(2,o.Divider),B?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Design disk",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,icon:"eject",content:B.name,tooltip:"Ejects the design disk.",onClick:function(){function T(){return p("eject_disk")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B.design||!B.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){function T(){return p("download")}return T}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stored design",children:(0,e.createComponentVNode)(2,o.Box,{color:B.design&&(B.compatible?"good":"bad"),children:B.design||"N/A"})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No design disk inserted."})]})))},i=function(v,N){var C=(0,t.useBackend)(N),p=C.act,g=C.data,V=g.sheets,I=Object.assign({},(k(v),v));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"20%",children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},I,{children:[(0,e.createComponentVNode)(2,d,{title:"Sheets",columns:[["Available","25%"],["Ore Value","15%"],["Smelt","20%"]]}),V.map(function(B){return(0,e.createComponentVNode)(2,u,{ore:B},B.id)})]})))})},m=function(v,N){var C=(0,t.useBackend)(N),p=C.act,g=C.data,V=g.alloys,I=Object.assign({},(k(v),v));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},I,{children:[(0,e.createComponentVNode)(2,d,{title:"Alloys",columns:[["Recipe","50%"],["Available","11%"],["Smelt","20%"]]}),V.map(function(B){return(0,e.createComponentVNode)(2,s,{ore:B},B.id)})]})))})},d=function(v,N){var C;return(0,e.createComponentVNode)(2,o.Box,{className:"OreHeader",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:v.title}),(C=v.columns)==null?void 0:C.map(function(p){return(0,e.createComponentVNode)(2,o.Stack.Item,{basis:p[1],textAlign:"center",color:"label",bold:!0,children:p[0]},p)})]})})},u=function(v,N){var C=(0,t.useBackend)(N),p=C.act,g=v.ore;if(!(g.value&&g.amount<=0&&!(["metal","glass"].indexOf(g.id)>-1)))return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"45%",align:"middle",children:(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",g.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:g.name})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",color:g.amount>=1?"good":"gray",bold:g.amount>=1,align:"center",children:g.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",children:g.value}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(g.amount,50),stepPixelSize:6,onChange:function(){function V(I,B){return p(g.value?"sheet":"alloy",{id:g.id,amount:B})}return V}()})})]})})},s=function(v,N){var C=(0,t.useBackend)(N),p=C.act,g=v.ore;return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"7%",align:"middle",children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["alloys32x32",g.id])})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",textAlign:"middle",align:"center",children:g.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"35%",textAlign:"middle",color:g.amount>=1?"good":"gray",align:"center",children:g.description}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"10%",textAlign:"center",color:g.amount>=1?"good":"gray",bold:g.amount>=1,align:"center",children:g.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(g.amount,50),stepPixelSize:6,onChange:function(){function V(I,B){return p(g.value?"sheet":"alloy",{id:g.id,amount:B})}return V}()})})]})})}},52754:function(w,r,n){"use strict";r.__esModule=!0,r.PAI=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(71253),b=n(70752),k=function(h){var c;try{c=b("./"+h+".js")}catch(m){if(m.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",h);throw m}var i=c[h];return i||(0,f.routingError)("missingExport",h)},S=r.PAI=function(){function y(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.app_template,s=d.app_icon,l=d.app_title,v=k(u);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{p:1,fill:!0,scrollable:!0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:s,mr:1}),l,u!=="pai_main_menu"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{ml:2,mb:0,content:"Back",icon:"arrow-left",onClick:function(){function N(){return m("Back")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Home",icon:"arrow-up",onClick:function(){function N(){return m("MASTER_back")}return N}()})],4)]}),children:(0,e.createComponentVNode)(2,v)})})})})})}return y}()},85175:function(w,r,n){"use strict";r.__esModule=!0,r.PDA=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(71253),b=n(59395),k=function(i){var m;try{m=b("./"+i+".js")}catch(u){if(u.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",i);throw u}var d=m[i];return d||(0,f.routingError)("missingExport",i)},S=r.PDA=function(){function c(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.app,v=s.owner;if(!v)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:"No user data found. Please swipe an ID card."})})});var N=k(l.template);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,y)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,p:1,pb:0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:l.icon,mr:1}),l.name]}),children:(0,e.createComponentVNode)(2,N)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:7.5,children:(0,e.createComponentVNode)(2,h)})]})})})}return c}(),y=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.idInserted,v=s.idLink,N=s.stationTime,C=s.cartridge_name;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{ml:.5,children:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",color:"transparent",onClick:function(){function p(){return u("Authenticate")}return p}(),content:l?v:"No ID Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function p(){return u("Eject")}return p}(),content:C?["Eject "+C]:"No Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"right",bold:!0,mr:1,mt:.5,children:N})]})},h=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.app;return(0,e.createComponentVNode)(2,t.Box,{height:"45px",className:"PDA__footer",backgroundColor:"#1b1b1b",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[!!l.has_back&&(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"33%",mr:-.5,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:l.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){function v(){return u("Back")}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:l.has_back?"33%":"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:l.is_home?"disabled":"white",icon:"home",onClick:function(){function v(){u("Home")}return v}()})})]})})}},68654:function(w,r,n){"use strict";r.__esModule=!0,r.Pacman=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(49968),b=r.Pacman=function(){function k(S,y){var h=(0,a.useBackend)(y),c=h.act,i=h.data,m=i.active,d=i.anchored,u=i.broken,s=i.emagged,l=i.fuel_type,v=i.fuel_usage,N=i.fuel_stored,C=i.fuel_cap,p=i.is_ai,g=i.tmp_current,V=i.tmp_max,I=i.tmp_overheat,B=i.output_max,L=i.power_gen,T=i.output_set,A=i.has_fuel,x=N/C,E=g/V,P=T*L,j=Math.round(N/v),M=Math.round(j/60),R=j>120?M+" minutes":j+" seconds";return(0,e.createComponentVNode)(2,o.Window,{width:500,height:225,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(u||!d)&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[!!u&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator is malfunctioning!"}),!u&&!d&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!u&&!!d&&(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:m?"power-off":"times",content:m?"On":"Off",tooltip:"Toggles the generator on/off. Requires fuel.",tooltipPosition:"left",disabled:!A,selected:m,onClick:function(){function D(){return c("toggle_power")}return D}()}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",className:"ml-1",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power setting",children:[(0,e.createComponentVNode)(2,t.NumberInput,{value:T,minValue:1,maxValue:B*(s?2.5:1),step:1,className:"mt-1",onDrag:function(){function D(W,_){return c("change_power",{change_power:_})}return D}()}),"(",(0,f.formatPower)(P),")"]})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:E,ranges:{green:[-1/0,.33],orange:[.33,.66],red:[.66,1/0]},children:[g," \u2103"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[I>50&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"CRITICAL OVERHEAT!"}),I>20&&I<=50&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"WARNING: Overheating!"}),I>1&&I<=20&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Temperature High"}),I===0&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Optimal"})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fuel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject Fuel",tooltip:"Ejects fuel. Generator needs to be offline.",tooltipPosition:"left",disabled:m||p||!A,onClick:function(){function D(){return c("eject_fuel")}return D}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Type",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:x,ranges:{red:[-1/0,.33],orange:[.33,.66],green:[.66,1/0]},children:[Math.round(N/1e3)," dm\xB3"]})})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel usage",children:[v/1e3," dm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel depletion",children:[!!A&&(v?R:"N/A"),!A&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}return k}()},1701:function(w,r,n){"use strict";r.__esModule=!0,r.PanDEMIC=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.PanDEMIC=function(){function d(u,s){var l=(0,a.useBackend)(s),v=l.data,N=v.beakerLoaded,C=v.beakerContainsBlood,p=v.beakerContainsVirus,g=v.resistances,V=g===void 0?[]:g,I;return N?C?C&&!p&&(I=(0,e.createFragment)([(0,e.createTextVNode)("No disease detected in provided blood sample.")],4)):I=(0,e.createFragment)([(0,e.createTextVNode)("No blood sample found in the loaded container.")],4):I=(0,e.createFragment)([(0,e.createTextVNode)("No container loaded.")],4),(0,e.createComponentVNode)(2,o.Window,{width:575,height:510,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[I&&!p?(0,e.createComponentVNode)(2,t.Section,{title:"Container Information",buttons:(0,e.createComponentVNode)(2,b,{fill:!0,vertical:!0}),children:(0,e.createComponentVNode)(2,t.NoticeBox,{children:I})}):(0,e.createComponentVNode)(2,y),(V==null?void 0:V.length)>0&&(0,e.createComponentVNode)(2,m,{align:"bottom"})]})})})}return d}(),b=function(u,s){var l=(0,a.useBackend)(s),v=l.act,N=l.data,C=N.beakerLoaded;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!C,onClick:function(){function p(){return v("eject_beaker")}return p}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",confirmIcon:"eraser",content:"Destroy",confirmContent:"Destroy",disabled:!C,onClick:function(){function p(){return v("destroy_eject_beaker")}return p}()})],4)},k=function(u,s){var l=(0,a.useBackend)(s),v=l.act,N=l.data,C=N.beakerContainsVirus,p=u.strain,g=p.commonName,V=p.description,I=p.diseaseAgent,B=p.bloodDNA,L=p.bloodType,T=p.possibleTreatments,A=p.transmissionRoute,x=p.isAdvanced,E=(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",children:B?(0,e.createVNode)(1,"span",null,B,0,{style:{"font-family":"'Courier New', monospace"}}):"Undetectable"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood Type",children:(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:L!=null?L:"Undetectable"}})})],4);if(!C)return(0,e.createComponentVNode)(2,t.LabeledList,{children:E});var P;return x&&(g!=null&&g!=="Unknown"?P=(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print Release Forms",onClick:function(){function j(){return v("print_release_forms",{strain_index:u.strainIndex})}return j}(),style:{"margin-left":"auto"}}):P=(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Name Disease",onClick:function(){function j(){return v("name_strain",{strain_index:u.strainIndex})}return j}(),style:{"margin-left":"auto"}})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Common Name",className:"common-name-label",children:(0,e.createComponentVNode)(2,t.Stack,{horizontal:!0,align:"center",children:[g!=null?g:"Unknown",P]})}),V&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:V}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Disease Agent",children:I}),E,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Spread Vector",children:A!=null?A:"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Possible Cures",children:T!=null?T:"None"})]})},S=function(u,s){var l,v=(0,a.useBackend)(s),N=v.act,C=v.data,p=!!C.synthesisCooldown,g=(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:p?"spinner":"clone",iconSpin:p,content:"Clone",disabled:p,onClick:function(){function V(){return N("clone_strain",{strain_index:u.strainIndex})}return V}()}),u.sectionButtons],0);return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:(l=u.sectionTitle)!=null?l:"Strain Information",buttons:g,children:(0,e.createComponentVNode)(2,k,{strain:u.strain,strainIndex:u.strainIndex})})})},y=function(u,s){var l,v=(0,a.useBackend)(s),N=v.act,C=v.data,p=C.selectedStrainIndex,g=C.strains,V=g[p-1];if(g.length===0)return(0,e.createComponentVNode)(2,t.Section,{title:"Container Information",buttons:(0,e.createComponentVNode)(2,b),children:(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No disease detected in provided blood sample."})});if(g.length===1){var I;return(0,e.createFragment)([(0,e.createComponentVNode)(2,S,{strain:g[0],strainIndex:1,sectionButtons:(0,e.createComponentVNode)(2,b)}),((I=g[0].symptoms)==null?void 0:I.length)>0&&(0,e.createComponentVNode)(2,c,{strain:g[0]})],0)}var B=(0,e.createComponentVNode)(2,b);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Culture Information",fill:!0,buttons:B,children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",style:{height:"100%"},children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{children:g.map(function(L,T){var A;return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"virus",selected:p-1===T,onClick:function(){function x(){return N("switch_strain",{strain_index:T+1})}return x}(),children:(A=L.commonName)!=null?A:"Unknown"},T)})})}),(0,e.createComponentVNode)(2,S,{strain:V,strainIndex:p}),((l=V.symptoms)==null?void 0:l.length)>0&&(0,e.createComponentVNode)(2,c,{className:"remove-section-bottom-padding",strain:V})]})})})},h=function(u){return u.reduce(function(s,l){return s+l},0)},c=function(u){var s=u.strain.symptoms;return(0,e.createComponentVNode)(2,t.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Infection Symptoms",fill:!0,className:u.className,children:(0,e.createComponentVNode)(2,t.Table,{className:"symptoms-table",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Stealth"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Resistance"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Stage Speed"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Transmissibility"})]}),s.map(function(l,v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.stealth}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.resistance}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.stageSpeed}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.transmissibility})]},v)}),(0,e.createComponentVNode)(2,t.Table.Row,{className:"table-spacer"}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"font-weight":"bold"},children:"Total"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h(s.map(function(l){return l.stealth}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h(s.map(function(l){return l.resistance}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h(s.map(function(l){return l.stageSpeed}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h(s.map(function(l){return l.transmissibility}))})]})]})})})},i=["flask","vial","eye-dropper"],m=function(u,s){var l=(0,a.useBackend)(s),v=l.act,N=l.data,C=N.synthesisCooldown,p=N.beakerContainsVirus,g=N.resistances;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Antibodies",fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{horizontal:!0,wrap:!0,children:g.map(function(V,I){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:i[I%i.length],disabled:!!C,onClick:function(){function B(){return v("clone_vaccine",{resistance_index:I+1})}return B}(),mr:"0.5em"}),V]},I)})})})})}},67921:function(w,r,n){"use strict";r.__esModule=!0,r.ParticleAccelerator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ParticleAccelerator=function(){function b(k,S){var y=(0,a.useBackend)(S),h=y.act,c=y.data,i=c.assembled,m=c.power,d=c.strength,u=c.max_strength;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:160,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Control Panel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Connect",onClick:function(){function s(){return h("scan")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",mb:"5px",children:(0,e.createComponentVNode)(2,t.Box,{color:i?"good":"bad",children:i?"Operational":"Error: Verify Configuration"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:m?"power-off":"times",content:m?"On":"Off",selected:m,disabled:!i,onClick:function(){function s(){return h("power")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Strength",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:!i||d===0,onClick:function(){function s(){return h("remove_strength")}return s}(),mr:"4px"}),d,(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:!i||d===u,onClick:function(){function s(){return h("add_strength")}return s}(),ml:"4px"})]})]})})})})}return b}()},71432:function(w,r,n){"use strict";r.__esModule=!0,r.PdaPainter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.PdaPainter=function(){function y(h,c){var i=(0,a.useBackend)(c),m=i.data,d=m.has_pda;return(0,e.createComponentVNode)(2,o.Window,{width:510,height:505,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:d?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,b)})})}return y}(),b=function(h,c){var i=(0,a.useBackend)(c),m=i.act;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"download",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{width:"160px",textAlign:"center",content:"Insert PDA",onClick:function(){function d(){return m("insert_pda")}return d}()})]})})})},k=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.pda_colors;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,S)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Table,{className:"PdaPainter__list",children:Object.keys(u).map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{onClick:function(){function l(){return m("choose_pda",{selectedPda:s})}return l}(),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+u[s][0],style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s})]},s)})})})})]})},S=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.current_appearance,s=d.preview_appearance;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Current PDA",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+u,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",content:"Eject",color:"green",onClick:function(){function l(){return m("eject_pda")}return l}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"paint-roller",content:"Paint PDA",onClick:function(){function l(){return m("paint_pda")}return l}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Preview",children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+s,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})})]})}},33388:function(w,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.PersonalCrafting=function(){function S(y,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.busy,u=m.category,s=m.display_craftable_only,l=m.display_compact,v=m.prev_cat,N=m.next_cat,C=m.subcategory,p=m.prev_subcat,g=m.next_subcat;return(0,e.createComponentVNode)(2,o.Window,{width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!d&&(0,e.createComponentVNode)(2,t.Dimmer,{fontSize:"32px",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog",spin:1})," Crafting..."]}),(0,e.createComponentVNode)(2,t.Section,{title:u,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Show Craftable Only",icon:s?"check-square-o":"square-o",selected:s,onClick:function(){function V(){return i("toggle_recipes")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Compact Mode",icon:l?"check-square-o":"square-o",selected:l,onClick:function(){function V(){return i("toggle_compact")}return V}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:v,icon:"arrow-left",onClick:function(){function V(){return i("backwardCat")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:N,icon:"arrow-right",onClick:function(){function V(){return i("forwardCat")}return V}()})]}),C&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:p,icon:"arrow-left",onClick:function(){function V(){return i("backwardSubCat")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:g,icon:"arrow-right",onClick:function(){function V(){return i("forwardSubCat")}return V}()})]}),l?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,k)]})]})})}return S}(),b=function(y,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.display_craftable_only,u=m.can_craft,s=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function v(){return i("make",{make:l.ref})}return v}()}),l.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:l.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:l.req_text,content:"Requirements",color:"transparent"}),l.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:l.tool_text,content:"Tools",color:"transparent"})]},l.name)}),!d&&s.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),l.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:l.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:l.req_text,content:"Requirements",color:"transparent"}),l.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:l.tool_text,content:"Tools",color:"transparent"})]},l.name)})]})})},k=function(y,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.display_craftable_only,u=m.can_craft,s=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[u.map(function(l){return(0,e.createComponentVNode)(2,t.Section,{title:l.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function v(){return i("make",{make:l.ref})}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[l.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:l.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:l.req_text}),l.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:l.tool_text})]})},l.name)}),!d&&s.map(function(l){return(0,e.createComponentVNode)(2,t.Section,{title:l.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[l.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:l.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:l.req_text}),l.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:l.tool_text})]})},l.name)})]})}},56150:function(w,r,n){"use strict";r.__esModule=!0,r.Photocopier=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Photocopier=function(){function S(y,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:440,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Photocopier",color:"silver",children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Copies:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"2em",bold:!0,children:m.copynumber}),(0,e.createComponentVNode)(2,t.Stack.Item,{float:"right",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"minus",textAlign:"center",content:"",onClick:function(){function d(){return i("minus")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"plus",textAlign:"center",content:"",onClick:function(){function d(){return i("add")}return d}()})]})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Toner:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,children:m.toner})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Document:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!m.copyitem&&!m.mob,content:m.copyitem?m.copyitem:m.mob?m.mob+"'s ass!":"document",onClick:function(){function d(){return i("removedocument")}return d}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Folder:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!m.folder,content:m.folder?m.folder:"folder",onClick:function(){function d(){return i("removefolder")}return d}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,b)}),(0,e.createComponentVNode)(2,k)]})})})}return S}(),b=function(y,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.issilicon;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"copy",float:"center",textAlign:"center",content:"Copy",onClick:function(){function u(){return i("copy")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file-import",float:"center",textAlign:"center",content:"Scan",onClick:function(){function u(){return i("scandocument")}return u}()}),!!d&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file",color:"green",float:"center",textAlign:"center",content:"Print Text",onClick:function(){function u(){return i("ai_text")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"image",color:"green",float:"center",textAlign:"center",content:"Print Image",onClick:function(){function u(){return i("ai_pic")}return u}()})],4)],0)},k=function(y,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Scanned Files",children:m.files.map(function(d){return(0,e.createComponentVNode)(2,t.Section,{title:d.name,buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:m.toner<=0,onClick:function(){function u(){return i("filecopy",{uid:d.uid})}return u}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",content:"Delete",color:"bad",onClick:function(){function u(){return i("deletefile",{uid:d.uid})}return u}()})]})},d.name)})})}},84676:function(w,r,n){"use strict";r.__esModule=!0,r.PoolController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=["tempKey"];function b(h,c){if(h==null)return{};var i={};for(var m in h)if({}.hasOwnProperty.call(h,m)){if(c.includes(m))continue;i[m]=h[m]}return i}var k={scalding:{label:"Scalding",color:"#FF0000",icon:"fa fa-arrow-circle-up",requireEmag:!0},warm:{label:"Warm",color:"#990000",icon:"fa fa-arrow-circle-up"},normal:{label:"Normal",color:null,icon:"fa fa-arrow-circle-right"},cool:{label:"Cool",color:"#009999",icon:"fa fa-arrow-circle-down"},frigid:{label:"Frigid",color:"#00CCCC",icon:"fa fa-arrow-circle-down",requireEmag:!0}},S=function(c,i){var m=c.tempKey,d=b(c,f),u=k[m];if(!u)return null;var s=(0,a.useBackend)(i),l=s.data,v=s.act,N=l.currentTemp,C=u.label,p=u.icon,g=m===N,V=function(){v("setTemp",{temp:m})};return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({color:"transparent",selected:g,onClick:V},d,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:p}),C]})))},y=r.PoolController=function(){function h(c,i){for(var m=(0,a.useBackend)(i),d=m.data,u=d.emagged,s=d.currentTemp,l=k[s]||k.normal,v=l.label,N=l.color,C=[],p=0,g=Object.entries(k);p50?"battery-half":"battery-quarter")||N==="C"&&"bolt"||N==="F"&&"battery-full"||N==="M"&&"slash",color:N==="N"&&(C>50?"yellow":"red")||N==="C"&&"yellow"||N==="F"&&"green"||N==="M"&&"orange"}),(0,e.createComponentVNode)(2,S.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,o.toFixed)(C)+"%"})],4)};u.defaultHooks=f.pureComponentHooks;var s=function(v){var N,C,p=v.status;switch(p){case"AOn":N=!0,C=!0;break;case"AOff":N=!0,C=!1;break;case"On":N=!1,C=!0;break;case"Off":N=!1,C=!1;break}var g=(C?"On":"Off")+(" ["+(N?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,S.ColorBox,{color:C?"good":"bad",content:N?void 0:"M",title:g})};s.defaultHooks=f.pureComponentHooks},50992:function(w,r,n){"use strict";r.__esModule=!0,r.PrisonerImplantManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(29319),f=n(3939),b=n(321),k=n(5485),S=n(98595),y=r.PrisonerImplantManager=function(){function h(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.loginState,l=u.prisonerInfo,v=u.chemicalInfo,N=u.trackingInfo,C;if(!s.logged_in)return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,k.LoginScreen)})});var p=[1,5,10];return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.LoginInfo),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Prisoner Points Manager System",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.name?"eject":"id-card",selected:l.name,content:l.name?l.name:"-----",tooltip:l.name?"Eject ID":"Insert ID",onClick:function(){function g(){return d("id_card")}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Points",children:[l.points!==null?l.points:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"minus-square",disabled:l.points===null,content:"Reset",onClick:function(){function g(){return d("reset_points")}return g}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Point Goal",children:[l.goal!==null?l.goal:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"pen",disabled:l.goal===null,content:"Edit",onClick:function(){function g(){return(0,f.modalOpen)(i,"set_points")}return g}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createVNode)(1,"box",null,[(0,e.createTextVNode)("1 minute of prison time should roughly equate to 150 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Sentences should not exceed 5000 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Permanent prisoners should not be given a point goal."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Prisoners who meet their point goal will be able to automatically access their locker and return to the station using the shuttle.")],4,{hidden:l.goal===null})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Tracking Implants",children:N.map(function(g){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",g.subject]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:g.location}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:g.health}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Warn",tooltip:"Broadcast a message to this poor sod",onClick:function(){function V(){return(0,f.modalOpen)(i,"warn",{uid:g.uid})}return V}()})})]})]},g.subject)]}),(0,e.createVNode)(1,"br")],4)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Chemical Implants",children:v.map(function(g){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",g.name]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Reagents",children:g.volume})}),p.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{mt:2,disabled:g.volumei;return(0,e.createComponentVNode)(2,t.ImageButton,{fluid:!0,asset:["prize_counter64x64",g.imageID],title:g.name,buttonsAlt:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{bold:!0,translucent:!0,fontSize:1.5,tooltip:V&&"Not enough tickets",disabled:V,onClick:function(){function I(){return h("purchase",{purchase:g.itemID})}return I}(),children:[g.cost,(0,e.createComponentVNode)(2,t.Icon,{m:0,mt:.25,name:"ticket",color:V?"bad":"good",size:1.6})]}),children:g.desc},g.name)})})})})})})}return b}()},94813:function(w,r,n){"use strict";r.__esModule=!0,r.RCD=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=n(49148),k=r.RCD=function(){function d(u,s){return(0,e.createComponentVNode)(2,o.Window,{width:480,height:670,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i)]})})]})}return d}(),S=function(u,s){var l=(0,a.useBackend)(s),v=l.data,N=v.matter,C=v.max_matter,p=C*.7,g=C*.25;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Matter Storage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[p,1/0],average:[g,p],bad:[-1/0,g]},value:N,maxValue:C,children:(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:N+" / "+C+" units"})})})})},y=function(){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Construction Type",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,h,{mode_type:"Floors and Walls"}),(0,e.createComponentVNode)(2,h,{mode_type:"Airlocks"}),(0,e.createComponentVNode)(2,h,{mode_type:"Windows"}),(0,e.createComponentVNode)(2,h,{mode_type:"Deconstruction"})]})})})},h=function(u,s){var l=(0,a.useBackend)(s),v=l.act,N=l.data,C=u.mode_type,p=N.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",content:C,selected:p===C?1:0,onClick:function(){function g(){return v("mode",{mode:C})}return g}()})})},c=function(u,s){var l=(0,a.useBackend)(s),v=l.act,N=l.data,C=N.door_name,p=N.electrochromic,g=N.airlock_glass;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Airlock Settings",children:(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",icon:"pen-alt",content:(0,e.createFragment)([(0,e.createTextVNode)("Rename: "),(0,e.createVNode)(1,"b",null,C,0)],0),onClick:function(){function V(){return(0,f.modalOpen)(s,"renameAirlock")}return V}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:g===1&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:p?"toggle-on":"toggle-off",content:"Electrochromic",selected:p,onClick:function(){function V(){return v("electrochromic")}return V}()})})]})})})},i=function(u,s){var l=(0,a.useBackend)(s),v=l.act,N=l.data,C=N.tab,p=N.locked,g=N.one_access,V=N.selected_accesses,I=N.regions;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"cog",selected:C===1,onClick:function(){function B(){return v("set_tab",{tab:1})}return B}(),children:"Airlock Types"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===2,icon:"list",onClick:function(){function B(){return v("set_tab",{tab:2})}return B}(),children:"Airlock Access"})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:C===1?(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Types",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m,{check_number:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m,{check_number:1})})]})}):C===2&&p?(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Access",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock-open",content:"Unlock",onClick:function(){function B(){return v("set_lock",{new_lock:"unlock"})}return B}()}),children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"lock",size:"5",mb:3}),(0,e.createVNode)(1,"br"),"Airlock access selection is currently locked."]})})}):(0,e.createComponentVNode)(2,b.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock",content:"Lock",onClick:function(){function B(){return v("set_lock",{new_lock:"lock"})}return B}()}),usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:g,content:"One",onClick:function(){function B(){return v("set_one_access",{access:"one"})}return B}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!g,width:4,content:"All",onClick:function(){function B(){return v("set_one_access",{access:"all"})}return B}()})],4),accesses:I,selectedList:V,accessMod:function(){function B(L){return v("set",{access:L})}return B}(),grantAll:function(){function B(){return v("grant_all")}return B}(),denyAll:function(){function B(){return v("clear_all")}return B}(),grantDep:function(){function B(L){return v("grant_region",{region:L})}return B}(),denyDep:function(){function B(L){return v("deny_region",{region:L})}return B}()})})],4)},m=function(u,s){for(var l=(0,a.useBackend)(s),v=l.act,N=l.data,C=N.door_types_ui_list,p=N.door_type,g=u.check_number,V=[],I=0;I=f?T=(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,mb:1,children:"There are new messages"}):I===S?T=(0,e.createComponentVNode)(2,t.Blink,{children:(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,mb:1,children:"NEW PRIORITY MESSAGES"})}):T=(0,e.createComponentVNode)(2,t.Box,{color:"label",mb:1,children:"There are no new messages"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Main Menu",buttons:(0,e.createComponentVNode)(2,t.Button,{width:9,content:L?"Speaker Off":"Speaker On",selected:!L,icon:L?"volume-mute":"volume-up",onClick:function(){function A(){return g("toggleSilent")}return A}()}),children:[T,(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"View Messages",icon:I>f?"envelope-open-text":"envelope",onClick:function(){function A(){return g("setScreen",{setScreen:6})}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Request Assistance",icon:"hand-paper",onClick:function(){function A(){return g("setScreen",{setScreen:1})}return A}()}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Request Supplies",icon:"box",onClick:function(){function A(){return g("setScreen",{setScreen:2})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Request Secondary Goal",icon:"clipboard-list",onClick:function(){function A(){return g("setScreen",{setScreen:11})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Relay Anonymous Information",icon:"comment",onClick:function(){function A(){return g("setScreen",{setScreen:3})}return A}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Print Shipping Label",icon:"tag",onClick:function(){function A(){return g("setScreen",{setScreen:9})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){function A(){return g("setScreen",{setScreen:10})}return A}()})]})}),!!B&&(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Send Station-Wide Announcement",icon:"bullhorn",onClick:function(){function A(){return g("setScreen",{setScreen:8})}return A}()})})]})})},c=function(N,C){var p=(0,a.useBackend)(C),g=p.act,V=p.data,I=V.department,B=[],L;switch(N.purpose){case"ASSISTANCE":B=V.assist_dept,L="Request assistance from another department";break;case"SUPPLIES":B=V.supply_dept,L="Request supplies from another department";break;case"INFO":B=V.info_dept,L="Relay information to another department";break}return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:L,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function T(){return g("setScreen",{setScreen:0})}return T}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:B.filter(function(T){return T!==I}).map(function(T){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:T,textAlign:"right",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Message",icon:"envelope",onClick:function(){function A(){return g("writeInput",{write:T,priority:k})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){function A(){return g("writeInput",{write:T,priority:S})}return A}()})]},T)})})})})},i=function(N,C){var p=(0,a.useBackend)(C),g=p.act,V=p.data,I;switch(N.type){case"SUCCESS":I="Message sent successfully";break;case"FAIL":I="Unable to contact messaging server";break}return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:I,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function B(){return g("setScreen",{setScreen:0})}return B}()})})},m=function(N,C){var p=(0,a.useBackend)(C),g=p.act,V=p.data,I,B;switch(N.type){case"MESSAGES":I=V.message_log,B="Message Log";break;case"SHIPPING":I=V.shipping_log,B="Shipping label print log";break}return I.reverse(),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:B,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function L(){return g("setScreen",{setScreen:0})}return L}()}),children:I.map(function(L){return(0,e.createComponentVNode)(2,t.Box,{textAlign:"left",children:[L.map(function(T,A){return(0,e.createVNode)(1,"div",null,T,0,null,A)}),(0,e.createVNode)(1,"hr")]},L)})})})},d=function(N,C){var p=(0,a.useBackend)(C),g=p.act,V=p.data,I=V.recipient,B=V.message,L=V.msgVerified,T=V.msgStamped;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Message Authentication",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function A(){return g("setScreen",{setScreen:0})}return A}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recipient",children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",color:"green",children:L}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stamped by",color:"blue",children:T})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",content:"Send Message",icon:"envelope",onClick:function(){function A(){return g("department",{department:I})}return A}()})})})],4)},u=function(N,C){var p=(0,a.useBackend)(C),g=p.act,V=p.data,I=V.message,B=V.announceAuth;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Station-Wide Announcement",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function L(){return g("setScreen",{setScreen:0})}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Edit Message",icon:"edit",onClick:function(){function L(){return g("writeAnnouncement")}return L}()})],4),children:I})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[B?(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Swipe your ID card to authenticate yourself"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:2,textAlign:"center",content:"Send Announcement",icon:"bullhorn",disabled:!(B&&I),onClick:function(){function L(){return g("sendAnnouncement")}return L}()})]})})],4)},s=function(N,C){var p=(0,a.useBackend)(C),g=p.act,V=p.data,I=V.shipDest,B=V.msgVerified,L=V.ship_dept;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{title:"Print Shipping Label",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function T(){return g("setScreen",{setScreen:0})}return T}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",children:B})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(I&&B),onClick:function(){function T(){return g("printLabel")}return T}()})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Destinations",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:L.map(function(T){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:T,textAlign:"right",className:"candystripe",children:(0,e.createComponentVNode)(2,t.Button,{content:I===T?"Selected":"Select",selected:I===T,onClick:function(){function A(){return g("shipSelect",{shipSelect:T})}return A}()})},T)})})})})],4)},l=function(N,C){var p=(0,a.useBackend)(C),g=p.act,V=p.data,I=V.secondaryGoalAuth,B=V.secondaryGoalEnabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Request Secondary Goal",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function L(){return g("setScreen",{setScreen:0})}return L}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[B?I?(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Swipe your ID card to authenticate yourself"}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Complete your current goal first!"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:2,textAlign:"center",content:"Request Secondary Goal",icon:"clipboard-list",disabled:!(I&&B),onClick:function(){function L(){return g("requestSecondaryGoal")}return L}()})]})})],4)}},37556:function(w,r,n){"use strict";r.__esModule=!0,r.DataDiskMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o="design",f="tech",b=function(i,m){var d=(0,a.useBackend)(m),u=d.data,s=d.act,l=u.disk_data;return l?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:l.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:l.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:l.desc})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function v(){return s("updt_tech")}return v}()})})]}):null},k=function(i,m){var d=(0,a.useBackend)(m),u=d.data,s=d.act,l=u.disk_data;if(!l)return null;var v=l.name,N=l.lathe_types,C=l.materials,p=N.join(", ");return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:v}),p?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lathe Types",children:p}):null,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Required Materials"})]}),C.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:["- ",(0,e.createVNode)(1,"span",null,g.name,0,{style:{"text-transform":"capitalize"}})," x ",g.amount]},g.name)}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function g(){return s("updt_design")}return g}()})})]})},S=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.disk_data;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Section,Object.assign({buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Erase",icon:"eraser",disabled:!l,onClick:function(){function v(){return u("erase_disk")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",icon:"eject",onClick:function(){function v(){u("eject_disk")}return v}()})],4)},i)))},y=function(i,m){var d=(0,a.useBackend)(m),u=d.data,s=d.act,l=u.disk_type,v=u.to_copy,N=i.title;return(0,e.createComponentVNode)(2,S,{title:N,children:(0,e.createComponentVNode)(2,t.Box,{overflowY:"auto",overflowX:"hidden",maxHeight:"450px",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:v.sort(function(C,p){return C.name.localeCompare(p.name)}).map(function(C){var p=C.name,g=C.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:p,children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Copy to Disk",onClick:function(){function V(){l===f?s("copy_tech",{id:g}):s("copy_design",{id:g})}return V}()})},g)})})})})},h=r.DataDiskMenu=function(){function c(i,m){var d=(0,a.useBackend)(m),u=d.data,s=u.disk_type,l=u.disk_data;if(!s)return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",children:"No disk loaded."});switch(s){case o:return l?(0,e.createComponentVNode)(2,S,{title:"Design Disk",children:(0,e.createComponentVNode)(2,k)}):(0,e.createComponentVNode)(2,y,{title:"Design Disk"});case f:return l?(0,e.createComponentVNode)(2,S,{title:"Technology Disk",children:(0,e.createComponentVNode)(2,b)}):(0,e.createComponentVNode)(2,y,{title:"Technology Disk"});default:return(0,e.createFragment)([(0,e.createTextVNode)("UNRECOGNIZED DISK TYPE")],4)}}return c}()},58147:function(w,r,n){"use strict";r.__esModule=!0,r.DeconstructionMenu=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=r.DeconstructionMenu=function(){function k(S,y){var h=(0,t.useBackend)(y),c=h.data,i=h.act,m=c.tech_levels,d=c.loaded_item,u=c.linked_destroy;return u?d?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Object Analysis",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Deconstruct",icon:"microscope",onClick:function(){function s(){i("deconstruct")}return s}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Eject",icon:"eject",onClick:function(){function s(){i("eject_item")}return s}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:d.name})})}),(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{id:"research-levels",children:[(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Research Field"}),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Current Level"}),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Object Level"}),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"New Level"})]}),m.map(function(s){return(0,e.createComponentVNode)(2,b,{techLevel:s},s.id)})]})})],4):(0,e.createComponentVNode)(2,o.Section,{title:"Deconstruction Menu",children:"No item loaded. Standing by..."}):(0,e.createComponentVNode)(2,o.Section,{title:"Deconstruction Menu",children:"NO DESTRUCTIVE ANALYZER LINKED TO CONSOLE"})}return k}(),b=function(S,y){var h=S.techLevel,c=h.name,i=h.desc,m=h.level,d=h.object_level,u=h.ui_icon,s=d!=null,l=s&&d>=m?Math.max(d,m+1):m;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"circle-info",tooltip:i})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:u})," ",c]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:m}),s?(0,e.createComponentVNode)(2,o.Table.Cell,{children:d}):(0,e.createComponentVNode)(2,o.Table.Cell,{className:"research-level-no-effect",children:"-"}),(0,e.createComponentVNode)(2,o.Table.Cell,{className:(0,a.classes)([l!==m&&"upgraded-level"]),children:l})]})}},16830:function(w,r,n){"use strict";r.__esModule=!0,r.LatheCategory=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(52662),f=r.LatheCategory=function(){function b(k,S){var y=(0,a.useBackend)(S),h=y.data,c=y.act,i=h.category,m=h.matching_designs,d=h.menu,u=d===4,s=u?"build":"imprint";return(0,e.createComponentVNode)(2,t.Section,{title:i,children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,t.Table,{className:"RndConsole__LatheCategory__MatchingDesigns",children:m.map(function(l){var v=l.id,N=l.name,C=l.can_build,p=l.materials;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:N,disabled:C<1,onClick:function(){function g(){return c(s,{id:v,amount:1})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C>=5?(0,e.createComponentVNode)(2,t.Button,{content:"x5",onClick:function(){function g(){return c(s,{id:v,amount:5})}return g}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C>=10?(0,e.createComponentVNode)(2,t.Button,{content:"x10",onClick:function(){function g(){return c(s,{id:v,amount:10})}return g}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.map(function(g){return(0,e.createFragment)([" | ",(0,e.createVNode)(1,"span",g.is_red?"color-red":null,[g.amount,(0,e.createTextVNode)(" "),g.name],0)],0)})})]},v)})})]})}return b}()},70497:function(w,r,n){"use strict";r.__esModule=!0,r.LatheChemicalStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheChemicalStorage=function(){function f(b,k){var S=(0,a.useBackend)(k),y=S.data,h=S.act,c=y.loaded_chemicals,i=y.menu===4;return(0,e.createComponentVNode)(2,t.Section,{title:"Chemical Storage",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Purge All",icon:"trash",onClick:function(){function m(){var d=i?"disposeallP":"disposeallI";h(d)}return m}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:c.map(function(m){var d=m.volume,u=m.name,s=m.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+d+" of "+u,children:(0,e.createComponentVNode)(2,t.Button,{content:"Purge",icon:"trash",onClick:function(){function l(){var v=i?"disposeP":"disposeI";h(v,{id:s})}return l}()})},s)})})]})}return f}()},70864:function(w,r,n){"use strict";r.__esModule=!0,r.LatheMainMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(52662),f=n(68198),b=r.LatheMainMenu=function(){function k(S,y){var h=(0,a.useBackend)(y),c=h.data,i=h.act,m=c.menu,d=c.categories,u=m===4?"Protolathe":"Circuit Imprinter";return(0,e.createComponentVNode)(2,t.Section,{title:u+" Menu",children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,f.LatheSearch),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:d.map(function(s){return(0,e.createComponentVNode)(2,t.Flex,{style:{"flex-basis":"50%","margin-bottom":"6px"},children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",content:s,onClick:function(){function l(){i("setCategory",{category:s})}return l}()})},s)})})]})}return k}()},42878:function(w,r,n){"use strict";r.__esModule=!0,r.LatheMaterialStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheMaterialStorage=function(){function f(b,k){var S=(0,a.useBackend)(k),y=S.data,h=S.act,c=y.loaded_materials;return(0,e.createComponentVNode)(2,t.Section,{className:"RndConsole__LatheMaterialStorage",title:"Material Storage",children:(0,e.createComponentVNode)(2,t.Table,{children:c.map(function(i){var m=i.id,d=i.amount,u=i.name,s=function(){function C(p){var g=y.menu===4?"lathe_ejectsheet":"imprinter_ejectsheet";h(g,{id:m,amount:p})}return C}(),l=Math.floor(d/2e3),v=d<1,N=l===1?"":"s";return(0,e.createComponentVNode)(2,t.Table.Row,{className:v?"color-grey":"color-yellow",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"210px",children:["* ",d," of ",u]}),(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"110px",children:["(",l," sheet",N,")"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d>=2e3?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"1x",icon:"eject",onClick:function(){function C(){return s(1)}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"C",icon:"eject",onClick:function(){function C(){return s("custom")}return C}()}),d>=2e3*5?(0,e.createComponentVNode)(2,t.Button,{content:"5x",icon:"eject",onClick:function(){function C(){return s(5)}return C}()}):null,(0,e.createComponentVNode)(2,t.Button,{content:"All",icon:"eject",onClick:function(){function C(){return s(50)}return C}()})],0):null})]},m)})})})}return f}()},52662:function(w,r,n){"use strict";r.__esModule=!0,r.LatheMaterials=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheMaterials=function(){function f(b,k){var S=(0,a.useBackend)(k),y=S.data,h=y.total_materials,c=y.max_materials,i=y.max_chemicals,m=y.total_chemicals;return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__LatheMaterials",mb:"10px",children:(0,e.createComponentVNode)(2,t.Table,{width:"auto",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Material Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h}),c?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+c}):null]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Chemical Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:m}),i?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+i}):null]})]})})}return f}()},9681:function(w,r,n){"use strict";r.__esModule=!0,r.LatheMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(12644),f=n(70864),b=n(16830),k=n(42878),S=n(70497),y=["menu"];function h(u,s){if(u==null)return{};var l={};for(var v in u)if({}.hasOwnProperty.call(u,v)){if(s.includes(v))continue;l[v]=u[v]}return l}var c=t.Tabs.Tab,i=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.menu===o.MENU.LATHE?["nav_protolathe",C.submenu_protolathe]:["nav_imprinter",C.submenu_imprinter],g=p[0],V=p[1],I=s.menu,B=h(s,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,c,Object.assign({selected:V===I,onClick:function(){function L(){return N(g,{menu:I})}return L}()},B)))},m=function(s){switch(s){case o.PRINTER_MENU.MAIN:return(0,e.createComponentVNode)(2,f.LatheMainMenu);case o.PRINTER_MENU.SEARCH:return(0,e.createComponentVNode)(2,b.LatheCategory);case o.PRINTER_MENU.MATERIALS:return(0,e.createComponentVNode)(2,k.LatheMaterialStorage);case o.PRINTER_MENU.CHEMICALS:return(0,e.createComponentVNode)(2,S.LatheChemicalStorage)}},d=r.LatheMenu=function(){function u(s,l){var v=(0,a.useBackend)(l),N=v.data,C=N.menu,p=N.linked_lathe,g=N.linked_imprinter;return C===o.MENU.LATHE&&!p?(0,e.createComponentVNode)(2,t.Box,{children:"NO PROTOLATHE LINKED TO CONSOLE"}):C===o.MENU.IMPRINTER&&!g?(0,e.createComponentVNode)(2,t.Box,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,i,{menu:o.PRINTER_MENU.MAIN,icon:"bars",children:"Main Menu"}),(0,e.createComponentVNode)(2,i,{menu:o.PRINTER_MENU.MATERIALS,icon:"layer-group",children:"Materials"}),(0,e.createComponentVNode)(2,i,{menu:o.PRINTER_MENU.CHEMICALS,icon:"flask-vial",children:"Chemicals"})]}),m(N.menu===o.MENU.LATHE?N.submenu_protolathe:N.submenu_imprinter)]})}return u}()},68198:function(w,r,n){"use strict";r.__esModule=!0,r.LatheSearch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheSearch=function(){function f(b,k){var S=(0,a.useBackend)(k),y=S.act;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"Search...",onEnter:function(){function h(c,i){return y("search",{to_search:i})}return h}()})})}return f}()},6256:function(w,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.SettingsMenu=function(){function k(S,y){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,b)]})}return k}(),f=function(S,y){var h=(0,a.useBackend)(y),c=h.act,i=h.data,m=i.sync,d=i.admin;return(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Sync Database with Network",icon:"sync",disabled:!m,onClick:function(){function u(){c("sync")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Connect to Research Network",icon:"plug",disabled:m,onClick:function(){function u(){c("togglesync")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!m,icon:"unlink",content:"Disconnect from Research Network",onClick:function(){function u(){c("togglesync")}return u}()}),d===1?(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation",content:"[ADMIN] Maximize Research Levels",onClick:function(){function u(){return c("maxresearch")}return u}()}):null]})})},b=function(S,y){var h=(0,a.useBackend)(y),c=h.data,i=h.act,m=c.linked_destroy,d=c.linked_lathe,u=c.linked_imprinter;return(0,e.createComponentVNode)(2,t.Section,{title:"Linked Devices",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"link",content:"Re-sync with Nearby Devices",onClick:function(){function s(){return i("find_device")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destructive Analyzer",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",disabled:!m,content:m?"Unlink":"Undetected",onClick:function(){function s(){return i("disconnect",{item:"destroy"})}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Protolathe",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",disabled:!d,content:d?"Unlink":"Undetected",onClick:function(){function s(){i("disconnect",{item:"lathe"})}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Circuit Imprinter",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",disabled:!u,content:u?"Unlink":"Undetected",onClick:function(){function s(){return i("disconnect",{item:"imprinter"})}return s}()})})]})})}},12644:function(w,r,n){"use strict";r.__esModule=!0,r.RndConsole=r.PRINTER_MENU=r.MENU=void 0;var e=n(89005),a=n(72253),t=n(98595),o=n(36036),f=n(35840),b=n(37556),k=n(9681),S=n(6256),y=n(58147),h=["menu"];function c(C,p){if(C==null)return{};var g={};for(var V in C)if({}.hasOwnProperty.call(C,V)){if(p.includes(V))continue;g[V]=C[V]}return g}var i=o.Tabs.Tab,m=r.MENU={MAIN:0,DISK:2,DESTROY:3,LATHE:4,IMPRINTER:5,SETTINGS:6},d=r.PRINTER_MENU={MAIN:0,SEARCH:1,MATERIALS:2,CHEMICALS:3},u=function(p){switch(p){case m.MAIN:return(0,e.createComponentVNode)(2,N);case m.DISK:return(0,e.createComponentVNode)(2,b.DataDiskMenu);case m.DESTROY:return(0,e.createComponentVNode)(2,y.DeconstructionMenu);case m.LATHE:case m.IMPRINTER:return(0,e.createComponentVNode)(2,k.LatheMenu);case m.SETTINGS:return(0,e.createComponentVNode)(2,S.SettingsMenu);default:return"UNKNOWN MENU"}},s=function(p,g){var V=(0,a.useBackend)(g),I=V.act,B=V.data,L=B.menu,T=p.menu,A=c(p,h);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,i,Object.assign({selected:L===T,onClick:function(){function x(){return I("nav",{menu:T})}return x}()},A)))},l=r.RndConsole=function(){function C(p,g){var V=(0,a.useBackend)(g),I=V.act,B=V.data,L=B.menu,T=B.linked_destroy,A=B.linked_lathe,x=B.linked_imprinter,E=B.wait_message;return(0,e.createComponentVNode)(2,t.Window,{width:800,height:550,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole",children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,s,{icon:"flask",menu:m.MAIN,children:"Research"}),!!T&&(0,e.createComponentVNode)(2,s,{icon:"microscope",menu:m.DESTROY,children:"Analyze"}),!!A&&(0,e.createComponentVNode)(2,s,{icon:"print",menu:m.LATHE,children:"Protolathe"}),!!x&&(0,e.createComponentVNode)(2,s,{icon:"memory",menu:m.IMPRINTER,children:"Imprinter"}),(0,e.createComponentVNode)(2,s,{icon:"floppy-disk",menu:m.DISK,children:"Disk"}),(0,e.createComponentVNode)(2,s,{icon:"cog",menu:m.SETTINGS,children:"Settings"})]}),u(L),(0,e.createComponentVNode)(2,v)]})})})}return C}(),v=function(p,g){var V=(0,a.useBackend)(g),I=V.data,B=I.wait_message;return B?(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay",children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay__Wrapper",children:(0,e.createComponentVNode)(2,o.NoticeBox,{color:"black",children:B})})}):null},N=function(p,g){var V=(0,a.useBackend)(g),I=V.data,B=I.tech_levels;return(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{id:"research-levels",children:[(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Research Field"}),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Level"})]}),B.map(function(L){var T=L.id,A=L.name,x=L.desc,E=L.level,P=L.ui_icon;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"circle-info",tooltip:x})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:P})," ",A]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:E})]},T)})]})})}},26109:function(w,r,n){"use strict";r.__esModule=!0,r.RobotSelfDiagnosis=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(25328),b=function(y,h){var c=y/h;return c<=.2?"good":c<=.5?"average":"bad"},k=r.RobotSelfDiagnosis=function(){function S(y,h){var c=(0,a.useBackend)(h),i=c.data,m=i.component_data;return(0,e.createComponentVNode)(2,o.Window,{width:280,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:m.map(function(d,u){return(0,e.createComponentVNode)(2,t.Section,{title:(0,f.capitalize)(d.name),children:d.installed<=0?(0,e.createComponentVNode)(2,t.NoticeBox,{m:-.5,height:3.5,color:"red",style:{"font-style":"normal"},children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,textAlign:"center",align:"center",color:"#e8e8e8",children:d.installed===-1?"Destroyed":"Missing"})})}):(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"72%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",color:b(d.brute_damage,d.max_damage),children:d.brute_damage}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",color:b(d.electronic_damage,d.max_damage),children:d.electronic_damage})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Powered",color:d.powered?"good":"bad",children:d.powered?"Yes":"No"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Enabled",color:d.status?"good":"bad",children:d.status?"Yes":"No"})]})})]})},u)})})})}return S}()},97997:function(w,r,n){"use strict";r.__esModule=!0,r.RoboticsControlConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.RoboticsControlConsole=function(){function k(S,y){var h=(0,a.useBackend)(y),c=h.act,i=h.data,m=i.can_hack,d=i.safety,u=i.show_lock_all,s=i.cyborgs,l=s===void 0?[]:s;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:460,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!u&&(0,e.createComponentVNode)(2,t.Section,{title:"Emergency Lock Down",children:[(0,e.createComponentVNode)(2,t.Button,{icon:d?"lock":"unlock",content:d?"Disable Safety":"Enable Safety",selected:d,onClick:function(){function v(){return c("arm",{})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lock",disabled:d,content:"Lock ALL Cyborgs",color:"bad",onClick:function(){function v(){return c("masslock",{})}return v}()})]}),(0,e.createComponentVNode)(2,b,{cyborgs:l,can_hack:m})]})})}return k}(),b=function(S,y){var h=S.cyborgs,c=S.can_hack,i=(0,a.useBackend)(y),m=i.act,d=i.data,u="Detonate";return d.detonate_cooldown>0&&(u+=" ("+d.detonate_cooldown+"s)"),h.length?h.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,buttons:(0,e.createFragment)([!!s.hackable&&!s.emagged&&(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){function l(){return m("hackbot",{uid:s.uid})}return l}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:s.locked_down?"unlock":"lock",color:s.locked_down?"good":"default",content:s.locked_down?"Release":"Lockdown",disabled:!d.auth,onClick:function(){function l(){return m("stopbot",{uid:s.uid})}return l}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:u,disabled:!d.auth||d.detonate_cooldown>0,color:"bad",onClick:function(){function l(){return m("killbot",{uid:s.uid})}return l}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Box,{color:s.status?"bad":s.locked_down?"average":"good",children:s.status?"Not Responding":s.locked_down?"Locked Down":"Nominal"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:(0,e.createComponentVNode)(2,t.Box,{children:s.locstring})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s.health>50?"good":"bad",value:s.health/100})}),typeof s.charge=="number"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s.charge>30?"good":"bad",value:s.charge/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Capacity",children:(0,e.createComponentVNode)(2,t.Box,{color:s.cell_capacity<3e4?"average":"good",children:s.cell_capacity})})],4)||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No Power Cell"})}),!!s.is_hacked&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safeties",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"DISABLED"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Module",children:s.module}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:(0,e.createComponentVNode)(2,t.Box,{color:s.synchronization?"default":"average",children:s.synchronization||"None"})})]})},s.uid)}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cyborg units detected within access parameters."})}},54431:function(w,r,n){"use strict";r.__esModule=!0,r.Safe=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Safe=function(){function y(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.dial,s=d.open,l=d.locked,v=d.contents;return(0,e.createComponentVNode)(2,o.Window,{theme:"safe",width:600,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving",children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"25%"}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"75%"})]}),(0,e.createComponentVNode)(2,t.Icon,{className:"Safe--engraving--arrow",name:"long-arrow-alt-down",size:"3"}),(0,e.createVNode)(1,"br"),s?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,t.Box,{as:"img",className:"Safe--dial",src:"safe_dial.png",style:{transform:"rotate(-"+3.6*u+"deg)","z-index":0}})]}),!s&&(0,e.createComponentVNode)(2,S)]})})}return y}(),b=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.dial,s=d.open,l=d.locked,v=function(C,p){return(0,e.createComponentVNode)(2,t.Button,{disabled:s||p&&!l,icon:"arrow-"+(p?"right":"left"),content:(p?"Right":"Left")+" "+C,iconRight:p,onClick:function(){function g(){return m(p?"turnleft":"turnright",{num:C})}return g}(),style:{"z-index":10}})};return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:l,icon:s?"lock":"lock-open",content:s?"Close":"Open",mb:"0.5rem",onClick:function(){function N(){return m("open")}return N}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{position:"absolute",children:[v(50),v(10),v(1)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[v(1,!0),v(10,!0),v(50,!0)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--number",children:u})]})},k=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.contents;return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--contents",overflow:"auto",children:u.map(function(s,l){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mb:"0.5rem",onClick:function(){function v(){return m("retrieve",{index:l+1})}return v}(),children:[(0,e.createComponentVNode)(2,t.Box,{as:"img",src:s.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),s.name]}),(0,e.createVNode)(1,"br")],4,s)})})},S=function(h,c){return(0,e.createComponentVNode)(2,t.Section,{className:"Safe--help",title:"Safe opening instructions (because you all keep forgetting)",children:[(0,e.createComponentVNode)(2,t.Box,{children:["1. Turn the dial left to the first number.",(0,e.createVNode)(1,"br"),"2. Turn the dial right to the second number.",(0,e.createVNode)(1,"br"),"3. Continue repeating this process for each number, switching between left and right each time.",(0,e.createVNode)(1,"br"),"4. Open the safe."]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:"To lock fully, turn the dial to the left after closing the safe."})]})}},29740:function(w,r,n){"use strict";r.__esModule=!0,r.SatelliteControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SatelliteControl=function(){function b(k,S){var y=(0,a.useBackend)(S),h=y.act,c=y.data,i=c.satellites,m=c.notice,d=c.meteor_shield,u=c.meteor_shield_coverage,s=c.meteor_shield_coverage_max,l=c.meteor_shield_coverage_percentage;return(0,e.createComponentVNode)(2,o.Window,{width:475,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[d&&(0,e.createComponentVNode)(2,t.Section,{title:"Station Shield Coverage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:l>=100?"good":"average",value:u,maxValue:s,children:[l," %"]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Satellite Network Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alert",color:"red",children:c.notice}),i.map(function(v){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"#"+v.id,children:[v.mode," ",(0,e.createComponentVNode)(2,t.Button,{content:v.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){function N(){return h("toggle",{id:v.id})}return N}()})]},v.id)})]})})]})})}return b}()},44162:function(w,r,n){"use strict";r.__esModule=!0,r.SecureStorage=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=n(98595),b=n(36352),k=n(92986),S=r.SecureStorage=function(){function i(m,d){return(0,e.createComponentVNode)(2,f.Window,{theme:"securestorage",height:500,width:280,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,h)})})})})}return i}(),y=function(m,d){var u=(0,t.useBackend)(d),s=u.act,l=window.event?m.which:m.keyCode;if(l===k.KEY_ENTER){m.preventDefault(),s("keypad",{digit:"E"});return}if(l===k.KEY_ESCAPE){m.preventDefault(),s("keypad",{digit:"C"});return}if(l===k.KEY_BACKSPACE){m.preventDefault(),s("backspace");return}if(l>=k.KEY_0&&l<=k.KEY_9){m.preventDefault(),s("keypad",{digit:l-k.KEY_0});return}if(l>=k.KEY_NUMPAD_0&&l<=k.KEY_NUMPAD_9){m.preventDefault(),s("keypad",{digit:l-k.KEY_NUMPAD_0});return}},h=function(m,d){var u=(0,t.useBackend)(d),s=u.act,l=u.data,v=l.locked,N=l.no_passcode,C=l.emagged,p=l.user_entered_code,g=[["1","2","3"],["4","5","6"],["7","8","9"],["C","0","E"]],V=N?"":v?"bad":"good";return(0,e.createComponentVNode)(2,o.Section,{fill:!0,onKeyDown:function(){function I(B){return y(B,d)}return I}(),children:[(0,e.createComponentVNode)(2,o.Stack.Item,{height:7.3,children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["SecureStorage__displayBox","SecureStorage__displayBox--"+V]),height:"100%",children:C?"ERROR":p})}),(0,e.createComponentVNode)(2,o.Table,{children:g.map(function(I){return(0,e.createComponentVNode)(2,b.TableRow,{children:I.map(function(B){return(0,e.createComponentVNode)(2,b.TableCell,{children:(0,e.createComponentVNode)(2,c,{number:B})},B)})},I[0])})})]})},c=function(m,d){var u=(0,t.useBackend)(d),s=u.act,l=u.data,v=m.number;return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,bold:!0,mb:"6px",content:v,textAlign:"center",fontSize:"60px",lineHeight:1.25,width:"80px",className:(0,a.classes)(["SecureStorage__Button","SecureStorage__Button--keypad","SecureStorage__Button--"+v]),onClick:function(){function N(){return s("keypad",{digit:v})}return N}()})}},6272:function(w,r,n){"use strict";r.__esModule=!0,r.SecurityRecords=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=n(3939),k=n(321),S=n(5485),y=n(22091),h={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},c=function(p,g){(0,b.modalOpen)(p,"edit",{field:g.edit,value:g.value})},i=r.SecurityRecords=function(){function C(p,g){var V=(0,t.useBackend)(g),I=V.act,B=V.data,L=B.loginState,T=B.currentPage,A;if(L.logged_in)T===1?A=(0,e.createComponentVNode)(2,d):T===2&&(A=(0,e.createComponentVNode)(2,l));else return(0,e.createComponentVNode)(2,f.Window,{theme:"security",width:800,height:900,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});return(0,e.createComponentVNode)(2,f.Window,{theme:"security",width:800,height:900,children:[(0,e.createComponentVNode)(2,b.ComplexModal),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,y.TemporaryNotice),(0,e.createComponentVNode)(2,m),A]})})]})}return C}(),m=function(p,g){var V=(0,t.useBackend)(g),I=V.act,B=V.data,L=B.currentPage,T=B.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:L===1,onClick:function(){function A(){return I("page",{page:1})}return A}(),children:"List Records"}),L===2&&T&&!T.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:L===2,children:["Record: ",T.fields[0].value]})]})})},d=function(p,g){var V=(0,t.useBackend)(g),I=V.act,B=V.data,L=B.records,T=(0,t.useLocalState)(g,"searchText",""),A=T[0],x=T[1],E=(0,t.useLocalState)(g,"sortId","name"),P=E[0],j=E[1],M=(0,t.useLocalState)(g,"sortOrder",!0),R=M[0],D=M[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,s)}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"SecurityRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,u,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,u,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,u,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,u,{id:"fingerprint",children:"Fingerprint"}),(0,e.createComponentVNode)(2,u,{id:"status",children:"Criminal Status"})]}),L.filter((0,a.createSearch)(A,function(W){return W.name+"|"+W.id+"|"+W.rank+"|"+W.fingerprint+"|"+W.status})).sort(function(W,_){var U=R?1:-1;return W[P].localeCompare(_[P])*U}).map(function(W){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"SecurityRecords__listRow--"+h[W.status],onClick:function(){function _(){return I("view",{uid_gen:W.uid_gen,uid_sec:W.uid_sec})}return _}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",W.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:W.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:W.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:W.fingerprint}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:W.status})]},W.id)})]})})})],4)},u=function(p,g){var V=(0,t.useLocalState)(g,"sortId","name"),I=V[0],B=V[1],L=(0,t.useLocalState)(g,"sortOrder",!0),T=L[0],A=L[1],x=p.id,E=p.children;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:I!==x&&"transparent",fluid:!0,onClick:function(){function P(){I===x?A(!T):(B(x),A(!0))}return P}(),children:[E,I===x&&(0,e.createComponentVNode)(2,o.Icon,{name:T?"sort-up":"sort-down",ml:"0.25rem;"})]})})})},s=function(p,g){var V=(0,t.useBackend)(g),I=V.act,B=V.data,L=B.isPrinting,T=(0,t.useLocalState)(g,"searchText",""),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:"0.25rem",content:"New Record",icon:"plus",onClick:function(){function E(){return I("new_general")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:L,icon:L?"spinner":"print",iconSpin:!!L,content:"Print Cell Log",onClick:function(){function E(){return(0,b.modalOpen)(g,"print_cell_log")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by Name, ID, Assignment, Fingerprint, Status",fluid:!0,onInput:function(){function E(P,j){return x(j)}return E}()})})]})},l=function(p,g){var V=(0,t.useBackend)(g),I=V.act,B=V.data,L=B.isPrinting,T=B.general,A=B.security;return!T||!T.fields?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"General records lost!"}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:L,icon:L?"spinner":"print",iconSpin:!!L,content:"Print Record",onClick:function(){function x(){return I("print_record")}return x}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",tooltip:"WARNING: This will also delete the Security and Medical records associated with this crew member!",tooltipPosition:"bottom-start",content:"Delete Record",onClick:function(){function x(){return I("delete_general")}return x}()})],4),children:(0,e.createComponentVNode)(2,v)})}),!A||!A.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function x(){return I("new_security")}return x}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Security records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:A.empty,content:"Delete Record",onClick:function(){function x(){return I("delete_security")}return x}()}),children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:A.fields.map(function(x,E){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:x.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(x.value),!!x.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:x.line_break?"1rem":"initial",onClick:function(){function P(){return c(g,x)}return P}()})]},E)})})})})}),(0,e.createComponentVNode)(2,N)],4)],0)},v=function(p,g){var V=(0,t.useBackend)(g),I=V.data,B=I.general;return!B||!B.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:B.fields.map(function(L,T){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:L.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(""+L.value),!!L.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:L.line_break?"1rem":"initial",onClick:function(){function A(){return c(g,L)}return A}()})]},T)})})}),!!B.has_photos&&B.photos.map(function(L,T){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:L,style:{width:"96px","margin-top":"5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",T+1]},T)})]})},N=function(p,g){var V=(0,t.useBackend)(g),I=V.act,B=V.data,L=B.security;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function T(){return(0,b.modalOpen)(g,"comment_add")}return T}()}),children:L.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):L.comments.map(function(T,A){return(0,e.createComponentVNode)(2,o.Box,{preserveWhitespace:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:T.header||"Auto-generated"}),(0,e.createVNode)(1,"br"),T.text||T,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function x(){return I("comment_delete",{id:A+1})}return x}()})]},A)})})})}},5099:function(w,r,n){"use strict";r.__esModule=!0,r.SeedExtractor=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=n(3939);function k(u,s){var l=typeof Symbol!="undefined"&&u[Symbol.iterator]||u["@@iterator"];if(l)return(l=l.call(u)).next.bind(l);if(Array.isArray(u)||(l=S(u))||s&&u&&typeof u.length=="number"){l&&(u=l);var v=0;return function(){return v>=u.length?{done:!0}:{done:!1,value:u[v++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(u,s){if(u){if(typeof u=="string")return y(u,s);var l={}.toString.call(u).slice(8,-1);return l==="Object"&&u.constructor&&(l=u.constructor.name),l==="Map"||l==="Set"?Array.from(u):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?y(u,s):void 0}}function y(u,s){(s==null||s>u.length)&&(s=u.length);for(var l=0,v=Array(s);l=A},N=function(T,A){return T<=A},C=s.split(" "),p=[],g=function(){var T=B.value,A=T.split(":");if(A.length===0)return 0;if(A.length===1)return p.push(function(P){return(P.name+" ("+P.variant+")").toLocaleLowerCase().includes(A[0].toLocaleLowerCase())}),0;if(A.length>2)return{v:function(){function P(j){return!1}return P}()};var x,E=l;if(A[1][A[1].length-1]==="-"?(E=N,x=Number(A[1].substring(0,A[1].length-1))):A[1][A[1].length-1]==="+"?(E=v,x=Number(A[1].substring(0,A[1].length-1))):x=Number(A[1]),isNaN(x))return{v:function(){function P(j){return!1}return P}()};switch(A[0].toLocaleLowerCase()){case"l":case"life":case"lifespan":p.push(function(P){return E(P.lifespan,x)});break;case"e":case"end":case"endurance":p.push(function(P){return E(P.endurance,x)});break;case"m":case"mat":case"maturation":p.push(function(P){return E(P.maturation,x)});break;case"pr":case"prod":case"production":p.push(function(P){return E(P.production,x)});break;case"y":case"yield":p.push(function(P){return E(P.yield,x)});break;case"po":case"pot":case"potency":p.push(function(P){return E(P.potency,x)});break;case"s":case"stock":case"c":case"count":case"a":case"amount":p.push(function(P){return E(P.amount,x)});break;default:return{v:function(){function P(j){return!1}return P}()}}},V,I=k(C),B;!(B=I()).done;)if(V=g(),V!==0&&V)return V.v;return function(L){for(var T=0,A=p;T=1?Number(E):1)}return A}()})]})]})}},2916:function(w,r,n){"use strict";r.__esModule=!0,r.ShuttleConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ShuttleConsole=function(){function b(k,S){var y=(0,a.useBackend)(S),h=y.act,c=y.data;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:c.status?c.status:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Missing"})}),!!c.shuttle&&(!!c.docking_ports_len&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Send to ",children:c.docking_ports.map(function(i){return(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",content:i.name,onClick:function(){function m(){return h("move",{move:i.id})}return m}()},i.name)})})||(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:"red",children:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Locked"})}),!!c.admin_controlled&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorization",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-circle",content:"Request Authorization",disabled:!c.status,onClick:function(){function i(){return h("request")}return i}()})})],0))]})})})})}return b}()},39401:function(w,r,n){"use strict";r.__esModule=!0,r.ShuttleManipulator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ShuttleManipulator=function(){function y(h,c){var i=(0,a.useLocalState)(c,"tabIndex",0),m=i[0],d=i[1],u=function(){function s(l){switch(l){case 0:return(0,e.createComponentVNode)(2,b);case 1:return(0,e.createComponentVNode)(2,k);case 2:return(0,e.createComponentVNode)(2,S);default:return"WE SHOULDN'T BE HERE!"}}return s}();return(0,e.createComponentVNode)(2,o.Window,{width:650,height:700,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===0,onClick:function(){function s(){return d(0)}return s}(),icon:"info-circle",children:"Status"},"Status"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===1,onClick:function(){function s(){return d(1)}return s}(),icon:"file-import",children:"Templates"},"Templates"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===2,onClick:function(){function s(){return d(2)}return s}(),icon:"tools",children:"Modification"},"Modification")]}),u(m)]})})})}return y}(),b=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.shuttles;return(0,e.createComponentVNode)(2,t.Box,{children:u.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID",children:s.id}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Timer",children:s.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Mode",children:s.mode}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:s.status}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function l(){return m("jump_to",{type:"mobile",id:s.id})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Fast Travel",icon:"fast-forward",onClick:function(){function l(){return m("fast_travel",{id:s.id})}return l}()})]})]})},s.name)})})},k=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.templates_tabs,s=d.existing_shuttle,l=d.templates;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:u.map(function(v){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===s.id,icon:"file",onClick:function(){function N(){return m("select_template_category",{cat:v})}return N}(),children:v},v)})}),!!s&&l[s.id].templates.map(function(v){return(0,e.createComponentVNode)(2,t.Section,{title:v.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[v.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:v.description}),v.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:v.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Load Template",icon:"download",onClick:function(){function N(){return m("select_template",{shuttle_id:v.shuttle_id})}return N}()})})]})},v.name)})]})},S=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.existing_shuttle,s=d.selected;return(0,e.createComponentVNode)(2,t.Box,{children:[u?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: "+u.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:u.status}),u.timer&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Timer",children:u.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function l(){return m("jump_to",{type:"mobile",id:u.id})}return l}()})})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: None"}),s?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: "+s.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:s.description}),s.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:s.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Preview",icon:"eye",onClick:function(){function l(){return m("preview",{shuttle_id:s.shuttle_id})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Load",icon:"download",onClick:function(){function l(){return m("load",{shuttle_id:s.shuttle_id})}return l}()})]})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: None"})]})}},88284:function(w,r,n){"use strict";r.__esModule=!0,r.Sleeper=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=[["good","Alive"],["average","Critical"],["bad","DEAD"]],k=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},y=["bad","average","average","good","average","average","bad"],h=r.Sleeper=function(){function l(v,N){var C=(0,t.useBackend)(N),p=C.act,g=C.data,V=g.hasOccupant,I=V?(0,e.createComponentVNode)(2,c):(0,e.createComponentVNode)(2,s);return(0,e.createComponentVNode)(2,f.Window,{width:550,height:760,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:I}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,d)})]})})})}return l}(),c=function(v,N){var C=(0,t.useBackend)(N),p=C.act,g=C.data,V=g.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,u)],4)},i=function(v,N){var C=(0,t.useBackend)(N),p=C.act,g=C.data,V=g.occupant,I=g.auto_eject_dead;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:"Auto-eject if dead:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{icon:I?"toggle-on":"toggle-off",selected:I,content:I?"On":"Off",onClick:function(){function B(){return p("auto_eject_dead_"+(I?"off":"on"))}return B}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"Eject",onClick:function(){function B(){return p("ejectify")}return B}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:V.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:V.maxHealth,value:V.health/V.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.round)(V.health,0)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:b[V.stat][0],children:b[V.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:V.maxTemp,value:V.bodyTemperature/V.maxTemp,color:y[V.temperatureSuitability+3],children:[(0,a.round)(V.btCelsius,0),"\xB0C,",(0,a.round)(V.btFaren,0),"\xB0F"]})}),!!V.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:V.bloodMax,value:V.bloodLevel/V.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[V.bloodPercent,"%, ",V.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[V.pulse," BPM"]})],4)]})})},m=function(v,N){var C=(0,t.useBackend)(N),p=C.data,g=p.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Damage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:k.map(function(V,I){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:V[0],children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:g[V[1]]/100,ranges:S,children:(0,a.round)(g[V[1]],0)},I)},I)})})})},d=function(v,N){var C=(0,t.useBackend)(N),p=C.act,g=C.data,V=g.hasOccupant,I=g.isBeakerLoaded,B=g.beakerMaxSpace,L=g.beakerFreeSpace,T=g.dialysis,A=T&&L>0;return(0,e.createComponentVNode)(2,o.Section,{title:"Dialysis",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!I||L<=0||!V,selected:A,icon:A?"toggle-on":"toggle-off",content:A?"Active":"Inactive",onClick:function(){function x(){return p("togglefilter")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!I,icon:"eject",content:"Eject",onClick:function(){function x(){return p("removebeaker")}return x}()})],4),children:I?(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:B,value:L/B,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[L,"u"]})})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No beaker loaded."})})},u=function(v,N){var C=(0,t.useBackend)(N),p=C.act,g=C.data,V=g.occupant,I=g.chemicals,B=g.maxchem,L=g.amounts;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Chemicals",children:I.map(function(T,A){var x="",E;return T.overdosing?(x="bad",E=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):T.od_warning&&(x="average",E=(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle"}),"\xA0 Close to overdosing"]})),(0,e.createComponentVNode)(2,o.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{title:T.title,level:"3",mx:"0",lineHeight:"18px",buttons:E,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:B,value:T.occ_amount/B,color:x,title:"Amount of chemicals currently inside the occupant / Total amount injectable by this machine",mr:"0.5rem",children:[T.pretty_amount,"/",B,"u"]}),L.map(function(P,j){return(0,e.createComponentVNode)(2,o.Button,{disabled:!T.injectable||T.occ_amount+P>B||V.stat===2,icon:"syringe",content:"Inject "+P+"u",title:"Inject "+P+"u of "+T.title+" into the occupant",mb:"0",height:"19px",onClick:function(){function M(){return p("chemical",{chemid:T.id,amount:P})}return M}()},j)})]})})},A)})})},s=function(v,N){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},21597:function(w,r,n){"use strict";r.__esModule=!0,r.SlotMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SlotMachine=function(){function b(k,S){var y=(0,a.useBackend)(S),h=y.act,c=y.data;if(c.money===null)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:90,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"Could not scan your card or could not find account!"}),(0,e.createComponentVNode)(2,t.Box,{children:"Please wear or hold your ID and try again."})]})})});var i;return c.plays===1?i=c.plays+" player has tried their luck today!":i=c.plays+" players have tried their luck today!",(0,e.createComponentVNode)(2,o.Window,{width:300,height:151,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{lineHeight:2,children:i}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Credits Remaining",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:c.money})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"10 credits to spin",children:(0,e.createComponentVNode)(2,t.Button,{icon:"coins",disabled:c.working,content:c.working?"Spinning...":"Spin",onClick:function(){function m(){return h("spin")}return m}()})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,lineHeight:2,color:c.resultlvl,children:c.result})]})})})}return b}()},46348:function(w,r,n){"use strict";r.__esModule=!0,r.Smartfridge=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Smartfridge=function(){function b(k,S){var y=(0,a.useBackend)(S),h=y.act,c=y.data,i=c.secure,m=c.can_dry,d=c.drying,u=c.contents;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!i&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Secure Access: Please have your identification ready."}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:m?"Drying rack":"Contents",buttons:!!m&&(0,e.createComponentVNode)(2,t.Button,{width:4,icon:d?"power-off":"times",content:d?"On":"Off",selected:d,onClick:function(){function s(){return h("drying")}return s}()}),children:[!u&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cookie-bite",size:5,color:"brown"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No products loaded."]})}),!!u&&u.slice().sort(function(s,l){return s.display_name.localeCompare(l.display_name)}).map(function(s){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"55%",children:s.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"25%",children:["(",s.quantity," in stock)"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:13,children:[(0,e.createComponentVNode)(2,t.Button,{width:3,icon:"arrow-down",tooltip:"Dispense one.",content:"1",onClick:function(){function l(){return h("vend",{index:s.vend,amount:1})}return l}()}),(0,e.createComponentVNode)(2,t.NumberInput,{width:"40px",minValue:0,value:0,maxValue:s.quantity,step:1,stepPixelSize:3,onChange:function(){function l(v,N){return h("vend",{index:s.vend,amount:N})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"arrow-down",content:"All",tooltip:"Dispense all.",tooltipPosition:"bottom-start",onClick:function(){function l(){return h("vend",{index:s.vend,amount:s.quantity})}return l}()})]})]},s)})]})]})})})}return b}()},86162:function(w,r,n){"use strict";r.__esModule=!0,r.Smes=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(49968),f=n(98595),b=1e3,k=r.Smes=function(){function S(y,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.capacityPercent,u=m.capacity,s=m.charge,l=m.inputAttempt,v=m.inputting,N=m.inputLevel,C=m.inputLevelMax,p=m.inputAvailable,g=m.outputPowernet,V=m.outputAttempt,I=m.outputting,B=m.outputLevel,L=m.outputLevelMax,T=m.outputUsed,A=d>=100&&"good"||v&&"average"||"bad",x=I&&"good"||s>0&&"average"||"bad";return(0,e.createComponentVNode)(2,f.Window,{width:340,height:345,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stored Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:d*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:l?"sync-alt":"times",selected:l,onClick:function(){function E(){return i("tryinput")}return E}(),children:l?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:A,children:d>=100&&"Fully Charged"||v&&"Charging"||"Not Charging"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Input",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:N===0,onClick:function(){function E(){return i("input",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:N===0,onClick:function(){function E(){return i("input",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:N/b,fillValue:p/b,minValue:0,maxValue:C/b,step:5,stepPixelSize:4,format:function(){function E(P){return(0,o.formatPower)(P*b,1)}return E}(),onChange:function(){function E(P,j){return i("input",{target:j*b})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:N===C,onClick:function(){function E(){return i("input",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:N===C,onClick:function(){function E(){return i("input",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available",children:(0,o.formatPower)(p)})]})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Output Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:V?"power-off":"times",selected:V,onClick:function(){function E(){return i("tryoutput")}return E}(),children:V?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:x,children:g?I?"Sending":s>0?"Not Sending":"No Charge":"Not Connected"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Output",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:B===0,onClick:function(){function E(){return i("output",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:B===0,onClick:function(){function E(){return i("output",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:B/b,minValue:0,maxValue:L/b,step:5,stepPixelSize:4,format:function(){function E(P){return(0,o.formatPower)(P*b,1)}return E}(),onChange:function(){function E(P,j){return i("output",{target:j*b})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:B===L,onClick:function(){function E(){return i("output",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:B===L,onClick:function(){function E(){return i("output",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(T)})]})})]})})})}return S}()},63584:function(w,r,n){"use strict";r.__esModule=!0,r.SolarControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SolarControl=function(){function b(k,S){var y=(0,a.useBackend)(S),h=y.act,c=y.data,i=0,m=1,d=2,u=c.generated,s=c.generated_ratio,l=c.tracking_state,v=c.tracking_rate,N=c.connected_panels,C=c.connected_tracker,p=c.cdir,g=c.direction,V=c.rotating_direction;return(0,e.createComponentVNode)(2,o.Window,{width:490,height:277,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Scan for new hardware",onClick:function(){function I(){return h("refresh")}return I}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar tracker",color:C?"good":"bad",children:C?"OK":"N/A"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar panels",color:N>0?"good":"bad",children:N})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power output",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:s,children:u+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[p,"\xB0 (",g,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[l===d&&(0,e.createComponentVNode)(2,t.Box,{children:" Automated "}),l===m&&(0,e.createComponentVNode)(2,t.Box,{children:[" ",v,"\xB0/h (",V,")"," "]}),l===i&&(0,e.createComponentVNode)(2,t.Box,{children:" Tracker offline "})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[l!==d&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",step:1,stepPixelSize:1,minValue:0,maxValue:359,value:p,onDrag:function(){function I(B,L){return h("cdir",{cdir:L})}return I}()}),l===d&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker status",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:l===i,onClick:function(){function I(){return h("track",{track:i})}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:l===m,onClick:function(){function I(){return h("track",{track:m})}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:l===d,disabled:!C,onClick:function(){function I(){return h("track",{track:d})}return I}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[l===m&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:v,format:function(){function I(B){var L=Math.sign(B)>0?"+":"-";return L+Math.abs(B)}return I}(),onDrag:function(){function I(B,L){return h("tdir",{tdir:L})}return I}()}),l===i&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Tracker offline "}),l===d&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]})]})})]})})}return b}()},38096:function(w,r,n){"use strict";r.__esModule=!0,r.SpawnersMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SpawnersMenu=function(){function b(k,S){var y=(0,a.useBackend)(S),h=y.act,c=y.data,i=c.spawners||[];return(0,e.createComponentVNode)(2,o.Window,{width:700,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{children:i.map(function(m){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:m.name+" ("+m.amount_left+" left)",level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Jump",onClick:function(){function d(){return h("jump",{ID:m.uids})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){function d(){return h("spawn",{ID:m.uids})}return d}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:m.desc}),!!m.fluff&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:m.fluff}),!!m.important_info&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:m.important_info})]},m.name)})})})})}return b}()},30586:function(w,r,n){"use strict";r.__esModule=!0,r.SpecMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SpecMenu=function(){function h(c,i){return(0,e.createComponentVNode)(2,o.Window,{width:1100,height:600,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y)]})})})}return h}(),b=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Hemomancer",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function l(){return d("hemomancer")}return l}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on blood magic and the manipulation of blood around you.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Vampiric claws",16),(0,e.createTextVNode)(": Unlocked at 150 blood, allows you to summon a robust pair of claws that attack rapidly, drain a targets blood, and heal you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood Barrier",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to select two turfs and create a wall between them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood tendrils",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to slow everyone in a targeted 3x3 area after a short delay.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Sanguine pool",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to travel at high speeds for a short duration. Doing this leaves behind blood splatters. You can move through anything but walls and space when doing this.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Predator senses",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to sniff out anyone within the same sector as you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood eruption",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to manipulate all nearby blood splatters, in 4 tiles around you, into spikes that impale anyone stood ontop of them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"The blood bringers rite",16),(0,e.createTextVNode)(": When toggled you will rapidly drain the blood of everyone who is nearby and use it to heal yourself slightly and remove any incapacitating effects rapidly.")],4)]})})},k=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Umbrae",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function l(){return d("umbrae")}return l}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on darkness, stealth ambushing and mobility.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Cloak of darkness",16),(0,e.createTextVNode)(": Unlocked at 150 blood, when toggled, allows you to become nearly invisible and move rapidly when in dark regions. While active, burn damage is more effective against you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow anchor",16),(0,e.createTextVNode)(": Unlocked at 250 blood, casting it will create an anchor at the cast location after a short delay. If you then cast the ability again, you are teleported back to the anchor. If you do not cast again within 2 minutes, you will do a fake recall, causing a clone to appear at the anchor and making yourself invisible. It will not teleport you between Z levels.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow snare",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to summon a trap that when crossed blinds and ensnares the victim. This trap is hard to see, but withers in the light.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Dark passage",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to target a turf on screen, you will then teleport to that turf.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Extinguish",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to snuff out nearby electronic light sources and glowshrooms.")],4),(0,e.createVNode)(1,"b",null,"Shadow boxing",16),": Unlocked at 800 blood, sends out shadow clones towards a target, damaging them while you remain in range.",(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Eternal darkness",16),(0,e.createTextVNode)(": When toggled, you consume yourself in unholy darkness, only the strongest of lights will be able to see through it. Inside the radius, nearby creatures will freeze and energy projectiles will deal less damage.")],4),(0,e.createVNode)(1,"p",null,"In addition, you also gain permanent X-ray vision.",16)]})})},S=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Gargantua",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function l(){return d("gargantua")}return l}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on tenacity and melee damage.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rejuvenate",16),(0,e.createTextVNode)(": Will heal you at an increased rate based on how much damage you have taken.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell",16),(0,e.createTextVNode)(": Unlocked at 150 blood, increases your resistance to physical damage, stuns and stamina for 30 seconds. While it is active you cannot fire guns.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Seismic stomp",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to stomp the ground to send out a shockwave, knocking people back.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood rush",16),(0,e.createTextVNode)(": Unlocked at 250 blood, gives you a short speed boost when cast.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell II",16),(0,e.createTextVNode)(": Unlocked at 400 blood, increases all melee damage by 10.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Overwhelming force",16),(0,e.createTextVNode)(": Unlocked at 600 blood, when toggled, if you bump into a door that you do not have access to, it will force it open. In addition, you cannot be pushed or pulled while it is active.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Demonic grasp",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to send out a demonic hand to snare someone. If you are on disarm/grab intent you will push/pull the target, respectively.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Charge",16),(0,e.createTextVNode)(": Unlocked at 800 blood, you gain the ability to charge at a target. Destroying and knocking back pretty much anything you collide with.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Desecrated Duel",16),(0,e.createTextVNode)(": Leap towards a visible enemy, creating an arena upon landing, infusing you with increased regeneration, and granting you resistance to internal damages.")],4)]})})},y=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Dantalion",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function l(){return d("dantalion")}return l}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on thralling and illusions.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Enthrall",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Thralls your target to your will, requires you to stand still. Does not work on mindshielded or already enthralled/mindslaved people.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall cap",16),(0,e.createTextVNode)(": You can only thrall a max of 1 person at a time. This can be increased at 400 blood, 600 blood and at full power to a max of 4 thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall commune",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Allows you to talk to your thralls, your thralls can talk back in the same way.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Subspace swap",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to swap positions with a target.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Pacify",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to pacify a target, preventing them from causing harm for 40 seconds.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Decoy",16),(0,e.createTextVNode)(": Unlocked at 400 blood, briefly turn invisible and send out an illusion to fool everyone nearby.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rally thralls",16),(0,e.createTextVNode)(": Unlocked at 600 blood, removes all incapacitating effects from nearby thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood bond",16),(0,e.createTextVNode)(": Unlocked at 800 blood, when cast, all nearby thralls become linked to you. If anyone in the network takes damage, it is shared equally between everyone in the network. If a thrall goes out of range, they will be removed from the network.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Mass Hysteria",16),(0,e.createTextVNode)(": Casts a powerful illusion that blinds and then makes everyone nearby perceive others as random animals.")],4)]})})}},95152:function(w,r,n){"use strict";r.__esModule=!0,r.StackCraft=void 0;var e=n(89005),a=n(72253),t=n(88510),o=n(64795),f=n(25328),b=n(98595),k=n(36036),S=r.StackCraft=function(){function s(){return(0,e.createComponentVNode)(2,b.Window,{width:350,height:500,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,y)})})}return s}(),y=function(l,v){var N=(0,a.useBackend)(v),C=N.data,p=C.amount,g=C.recipes,V=(0,a.useLocalState)(v,"searchText",""),I=V[0],B=V[1],L=h(g,(0,f.createSearch)(I)),T=(0,a.useLocalState)(v,"",!1),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,k.Section,{fill:!0,scrollable:!0,title:"Amount: "+p,buttons:(0,e.createFragment)([A&&(0,e.createComponentVNode)(2,k.Input,{width:12.5,value:I,placeholder:"Find recipe",onInput:function(){function E(P,j){return B(j)}return E}()}),(0,e.createComponentVNode)(2,k.Button,{ml:.5,tooltip:"Search",tooltipPosition:"bottom-end",icon:"magnifying-glass",selected:A,onClick:function(){function E(){return x(!A)}return E}()})],0),children:L?(0,e.createComponentVNode)(2,d,{recipes:L}):(0,e.createComponentVNode)(2,k.NoticeBox,{children:"No recipes found!"})})},h=function s(l,v){var N=(0,o.flow)([(0,t.map)(function(C){var p=C[0],g=C[1];return c(g)?v(p)?C:[p,s(g,v)]:v(p)?C:[p,void 0]}),(0,t.filter)(function(C){var p=C[0],g=C[1];return g!==void 0}),(0,t.sortBy)(function(C){var p=C[0],g=C[1];return p}),(0,t.sortBy)(function(C){var p=C[0],g=C[1];return!c(g)}),(0,t.reduce)(function(C,p){var g=p[0],V=p[1];return C[g]=V,C},{})])(Object.entries(l));return Object.keys(N).length?N:void 0},c=function(l){return l.uid===void 0},i=function(l,v){return l.required_amount>v?0:Math.floor(v/l.required_amount)},m=function(l,v){for(var N=(0,a.useBackend)(v),C=N.act,p=l.recipe,g=l.max_possible_multiplier,V=Math.min(g,Math.floor(p.max_result_amount/p.result_amount)),I=[5,10,25],B=[],L=function(){var E=A[T];V>=E&&B.push((0,e.createComponentVNode)(2,k.Button,{bold:!0,translucent:!0,fontSize:.85,width:"32px",content:E*p.result_amount+"x",onClick:function(){function P(){return C("make",{recipe_uid:p.uid,multiplier:E})}return P}()}))},T=0,A=I;T1?B+"x ":"",P=L>1?"s":"",j=""+E+V,M=L+" sheet"+P,R=i(I,g);return(0,e.createComponentVNode)(2,k.ImageButton,{fluid:!0,base64:x,imageSize:32,disabled:!R,tooltip:M,buttons:T>1&&R>1&&(0,e.createComponentVNode)(2,m,{recipe:I,max_possible_multiplier:R}),onClick:function(){function D(){return C("make",{recipe_uid:A,multiplier:1})}return D}(),children:j})}},38307:function(w,r,n){"use strict";r.__esModule=!0,r.StationAlertConsoleContent=r.StationAlertConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.StationAlertConsole=function(){function k(){return(0,e.createComponentVNode)(2,o.Window,{width:325,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,b)})})}return k}(),b=r.StationAlertConsoleContent=function(){function k(S,y){var h=(0,a.useBackend)(y),c=h.data,i=c.alarms||[],m=i.Fire||[],d=i.Atmosphere||[],u=i.Power||[];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Fire Alarms",children:(0,e.createVNode)(1,"ul",null,[m.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),m.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Atmospherics Alarms",children:(0,e.createVNode)(1,"ul",null,[d.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),d.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Alarms",children:(0,e.createVNode)(1,"ul",null,[u.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),u.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)})],4)}return k}()},96091:function(w,r,n){"use strict";r.__esModule=!0,r.StationTraitsPanel=void 0;var e=n(89005),a=n(88510),t=n(42127),o=n(72253),f=n(36036),b=n(98595),k=function(c){return c[c.SetupFutureStationTraits=0]="SetupFutureStationTraits",c[c.ViewStationTraits=1]="ViewStationTraits",c}(k||{}),S=function(i,m){var d=(0,o.useBackend)(m),u=d.act,s=d.data,l=s.future_station_traits,v=(0,o.useLocalState)(m,"selectedFutureTrait",null),N=v[0],C=v[1],p=Object.fromEntries(s.valid_station_traits.map(function(V){return[V.name,V.path]})),g=Object.keys(p);return g.sort(),(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Dropdown,{displayText:!N&&"Select trait to add...",onSelected:C,options:g,selected:N,width:"100%"})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"green",icon:"plus",onClick:function(){function V(){if(N){var I=p[N],B=[I];if(l){var L,T=l.map(function(A){return A.path});if(T.indexOf(I)!==-1)return;B=(L=B).concat.apply(L,T)}u("setup_future_traits",{station_traits:B})}}return V}(),children:"Add"})})]}),(0,e.createComponentVNode)(2,f.Divider),Array.isArray(l)?l.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:l.map(function(V){return(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:V.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"red",icon:"times",onClick:function(){function I(){u("setup_future_traits",{station_traits:(0,a.filterMap)(l,function(B){if(B.path!==V.path)return B.path})})}return I}(),children:"Delete"})})]})},V.path)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Box,{children:"No station traits will run next round."}),(0,e.createComponentVNode)(2,f.Button,{mt:1,fluid:!0,color:"good",icon:"times",tooltip:"The next round will roll station traits randomly, just like normal",onClick:function(){function V(){return u("clear_future_traits")}return V}(),children:"Run Station Traits Normally"})]}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Box,{children:"No future station traits are planned."}),(0,e.createComponentVNode)(2,f.Button,{mt:1,fluid:!0,color:"red",icon:"times",onClick:function(){function V(){return u("setup_future_traits",{station_traits:[]})}return V}(),children:"Prevent station traits from running next round"})]})]})},y=function(i,m){var d=(0,o.useBackend)(m),u=d.act,s=d.data;return s.current_traits.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:s.current_traits.map(function(l){return(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:l.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button.Confirm,{content:"Revert",color:"red",disabled:s.too_late_to_revert||!l.can_revert,tooltip:!l.can_revert&&"This trait is not revertable."||s.too_late_to_revert&&"It's too late to revert station traits, the round has already started.",icon:"times",onClick:function(){function v(){return u("revert",{ref:l.ref})}return v}()})})]})},l.ref)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:"There are no active station traits."})},h=r.StationTraitsPanel=function(){function c(i,m){var d=(0,o.useLocalState)(m,"station_traits_tab",k.ViewStationTraits),u=d[0],s=d[1],l;switch(u){case k.SetupFutureStationTraits:l=(0,e.createComponentVNode)(2,S);break;case k.ViewStationTraits:l=(0,e.createComponentVNode)(2,y);break;default:(0,t.exhaustiveCheck)(u)}return(0,e.createComponentVNode)(2,b.Window,{title:"Modify Station Traits",height:350,width:350,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"eye",selected:u===k.ViewStationTraits,onClick:function(){function v(){return s(k.ViewStationTraits)}return v}(),children:"View"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"edit",selected:u===k.SetupFutureStationTraits,onClick:function(){function v(){return s(k.SetupFutureStationTraits)}return v}(),children:"Edit"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{m:0,children:[(0,e.createComponentVNode)(2,f.Divider),l]})]})})})}return c}()},39409:function(w,r,n){"use strict";r.__esModule=!0,r.StripMenu=void 0;var e=n(89005),a=n(88510),t=n(79140),o=n(72253),f=n(36036),b=n(98595),k=5,S=9,y=function(N){return N===0?5:9},h="64px",c=function(N){return N[0]+"/"+N[1]},i=function(N){var C=N.align,p=N.children;return(0,e.createComponentVNode)(2,f.Box,{style:{position:"absolute",left:C==="left"?"6px":"48px","text-align":C,"text-shadow":"2px 2px 2px #000",top:"2px"},children:p})},m={enable_internals:{icon:"lungs",text:"Enable internals"},disable_internals:{icon:"lungs",text:"Disable internals"},enable_lock:{icon:"lock",text:"Enable lock"},disable_lock:{icon:"unlock",text:"Disable lock"},suit_sensors:{icon:"tshirt",text:"Adjust suit sensors"},remove_accessory:{icon:"medal",text:"Remove accessory"},dislodge_headpocket:{icon:"head-side-virus",text:"Dislodge headpocket"}},d={eyes:{displayName:"eyewear",gridSpot:c([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:c([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:c([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:c([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:c([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:c([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:c([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:c([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:c([1,4])},jumpsuit:{displayName:"uniform",gridSpot:c([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:c([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:c([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:c([2,3]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,i,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:c([2,4]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,i,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:c([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:c([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:c([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:c([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:c([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:c([3,4]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:c([3,3]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:c([4,4]),image:"inventory-pda.png"}},u={eyes:{displayName:"eyewear",gridSpot:c([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:c([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:c([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:c([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:c([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:c([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:c([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:c([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:c([1,4])},jumpsuit:{displayName:"uniform",gridSpot:c([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:c([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:c([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:c([4,4]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,i,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:c([4,5]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,i,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:c([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:c([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:c([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:c([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:c([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:c([4,7]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:c([4,6]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:c([4,8]),image:"inventory-pda.png"}},s=function(v){return v[v.Completely=1]="Completely",v[v.Hidden=2]="Hidden",v}(s||{}),l=r.StripMenu=function(){function v(N,C){var p=(0,o.useBackend)(C),g=p.act,V=p.data,I=new Map;if(V.show_mode===0)for(var B=0,L=Object.keys(V.items);B=.01})},(0,a.sortBy)(function(T){return-T.amount})])(N.gases||[]),L=Math.max.apply(Math,[1].concat(B.map(function(T){return T.amount})));return(0,e.createComponentVNode)(2,S.Window,{width:550,height:185,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{width:"270px",children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Metrics",children:(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:p/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Relative EER",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:g,minValue:0,maxValue:5e3,ranges:{good:[-1/0,5e3],average:[5e3,7e3],bad:[7e3,1/0]},children:(0,o.toFixed)(g)+" MeV/cm3"})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:c(V),minValue:0,maxValue:c(1e4),ranges:{teal:[-1/0,c(80)],good:[c(80),c(373)],average:[c(373),c(1e3)],bad:[c(1e3),1/0]},children:(0,o.toFixed)(V)+" K"})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:c(I),minValue:0,maxValue:c(5e4),ranges:{good:[c(1),c(300)],average:[-1/0,c(1e3)],bad:[c(1e3),1/0]},children:(0,o.toFixed)(I)+" kPa"})})]})})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Gases",buttons:(0,e.createComponentVNode)(2,b.Button,{icon:"arrow-left",content:"Back",onClick:function(){function T(){return v("back")}return T}()}),children:(0,e.createComponentVNode)(2,b.LabeledList,{children:B.map(function(T){return(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:(0,k.getGasLabel)(T.name),children:(0,e.createComponentVNode)(2,b.ProgressBar,{color:(0,k.getGasColor)(T.name),value:T.amount,minValue:0,maxValue:L,children:(0,o.toFixed)(T.amount,2)+"%"})},T.name)})})})})]})})})}},46029:function(w,r,n){"use strict";r.__esModule=!0,r.SyndicateComputerSimple=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SyndicateComputerSimple=function(){function b(k,S){var y=(0,a.useBackend)(S),h=y.act,c=y.data;return(0,e.createComponentVNode)(2,o.Window,{theme:"syndicate",width:400,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:c.rows.map(function(i){return(0,e.createComponentVNode)(2,t.Section,{title:i.title,buttons:(0,e.createComponentVNode)(2,t.Button,{content:i.buttontitle,disabled:i.buttondisabled,tooltip:i.buttontooltip,tooltipPosition:"left",onClick:function(){function m(){return h(i.buttonact)}return m}()}),children:[i.status,!!i.bullets&&(0,e.createComponentVNode)(2,t.Box,{children:i.bullets.map(function(m){return(0,e.createComponentVNode)(2,t.Box,{children:m},m)})})]},i.title)})})})}return b}()},36372:function(w,r,n){"use strict";r.__esModule=!0,r.TEG=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(S){return S.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},b=r.TEG=function(){function k(S,y){var h=(0,a.useBackend)(y),c=h.act,i=h.data;return i.error?(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:[i.error,(0,e.createComponentVNode)(2,t.Button,{icon:"circle",content:"Recheck",onClick:function(){function m(){return c("check")}return m}()})]})})}):(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Cold Loop ("+i.cold_dir+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Inlet",children:[f(i.cold_inlet_temp)," K, ",f(i.cold_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Outlet",children:[f(i.cold_outlet_temp)," K, ",f(i.cold_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Hot Loop ("+i.hot_dir+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Inlet",children:[f(i.hot_inlet_temp)," K, ",f(i.hot_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Outlet",children:[f(i.hot_outlet_temp)," K, ",f(i.hot_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Output",children:[f(i.output_power)," W",!!i.warning_switched&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Cold inlet temperature exceeds hot inlet temperature."}),!!i.warning_cold_pressure&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Cold circulator inlet pressure is under 1,000 kPa."}),!!i.warning_hot_pressure&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Hot circulator inlet pressure is under 1,000 kPa."})]})]})})}return k}()},56441:function(w,r,n){"use strict";r.__esModule=!0,r.TachyonArrayContent=r.TachyonArray=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TachyonArray=function(){function k(S,y){var h=(0,a.useBackend)(y),c=h.act,i=h.data,m=i.records,d=m===void 0?[]:m,u=i.explosion_target,s=i.toxins_tech,l=i.printing;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shift's Target",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Toxins Level",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Administration",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print All Logs",disabled:!d.length||l,align:"center",onClick:function(){function v(){return c("print_logs")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!d.length,color:"bad",align:"center",onClick:function(){function v(){return c("delete_logs")}return v}()})]})]})}),d.length?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No Records"})]})})}return k}(),b=r.TachyonArrayContent=function(){function k(S,y){var h=(0,a.useBackend)(y),c=h.act,i=h.data,m=i.records,d=m===void 0?[]:m;return(0,e.createComponentVNode)(2,t.Section,{title:"Logged Explosions",children:(0,e.createComponentVNode)(2,t.Flex,{children:(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Epicenter"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actual Size"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Theoretical Size"})]}),d.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.logged_time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.epicenter}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.actual_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.theoretical_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete",color:"bad",onClick:function(){function s(){return c("delete_record",{index:u.index})}return s}()})})]},u.index)})]})})})})}return k}()},1754:function(w,r,n){"use strict";r.__esModule=!0,r.Tank=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Tank=function(){function b(k,S){var y=(0,a.useBackend)(S),h=y.act,c=y.data,i;return c.has_mask?i=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,width:"76%",icon:c.connected?"check":"times",content:c.connected?"Internals On":"Internals Off",selected:c.connected,onClick:function(){function m(){return h("internals")}return m}()})}):i=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",color:"red",children:"No Mask Equipped"}),(0,e.createComponentVNode)(2,o.Window,{width:325,height:135,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tank Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:c.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:c.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Release Pressure",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:c.ReleasePressure===c.minReleasePressure,tooltip:"Min",onClick:function(){function m(){return h("pressure",{pressure:"min"})}return m}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(c.releasePressure),width:"65px",unit:"kPa",minValue:c.minReleasePressure,maxValue:c.maxReleasePressure,onChange:function(){function m(d,u){return h("pressure",{pressure:u})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:c.ReleasePressure===c.maxReleasePressure,tooltip:"Max",onClick:function(){function m(){return h("pressure",{pressure:"max"})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:c.ReleasePressure===c.defaultReleasePressure,tooltip:"Reset",onClick:function(){function m(){return h("pressure",{pressure:"reset"})}return m}()})]}),i]})})})})}return b}()},7579:function(w,r,n){"use strict";r.__esModule=!0,r.TankDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TankDispenser=function(){function b(k,S){var y=(0,a.useBackend)(S),h=y.act,c=y.data,i=c.o_tanks,m=c.p_tanks;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Dispense Oxygen Tank ("+i+")",disabled:i===0,icon:"arrow-circle-down",onClick:function(){function d(){return h("oxygen")}return d}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mt:1,fluid:!0,content:"Dispense Plasma Tank ("+m+")",disabled:m===0,icon:"arrow-circle-down",onClick:function(){function d(){return h("plasma")}return d}()})})]})})})}return b}()},16136:function(w,r,n){"use strict";r.__esModule=!0,r.TcommsCore=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TcommsCore=function(){function h(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.ion,l=(0,a.useLocalState)(i,"tabIndex",0),v=l[0],N=l[1],C=function(){function p(g){switch(g){case 0:return(0,e.createComponentVNode)(2,k);case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,y);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return p}();return(0,e.createComponentVNode)(2,o.Window,{width:900,height:520,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[s===1&&(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"wrench",selected:v===0,onClick:function(){function p(){return N(0)}return p}(),children:"Configuration"},"ConfigPage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"link",selected:v===1,onClick:function(){function p(){return N(1)}return p}(),children:"Device Linkage"},"LinkagePage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"user-times",selected:v===2,onClick:function(){function p(){return N(2)}return p}(),children:"User Filtering"},"FilterPage")]}),C(v)]})})}return h}(),b=function(){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"ERROR: An Ionospheric overload has occured. Please wait for the machine to reboot. This cannot be manually done."})},k=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.active,l=u.sectors_available,v=u.nttc_toggle_jobs,N=u.nttc_toggle_job_color,C=u.nttc_toggle_name_color,p=u.nttc_toggle_command_bold,g=u.nttc_job_indicator_type,V=u.nttc_setting_language,I=u.network_id;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:s?"On":"Off",selected:s,icon:"power-off",onClick:function(){function B(){return d("toggle_active")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sector Coverage",children:l})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Radio Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcements",children:(0,e.createComponentVNode)(2,t.Button,{content:v?"On":"Off",selected:v,icon:"user-tag",onClick:function(){function B(){return d("nttc_toggle_jobs")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:N?"On":"Off",selected:N,icon:"clipboard-list",onClick:function(){function B(){return d("nttc_toggle_job_color")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:C?"On":"Off",selected:C,icon:"user-tag",onClick:function(){function B(){return d("nttc_toggle_name_color")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Command Amplification",children:(0,e.createComponentVNode)(2,t.Button,{content:p?"On":"Off",selected:p,icon:"volume-up",onClick:function(){function B(){return d("nttc_toggle_command_bold")}return B}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Advanced",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcement Format",children:(0,e.createComponentVNode)(2,t.Button,{content:g||"Unset",selected:g,icon:"pencil-alt",onClick:function(){function B(){return d("nttc_job_indicator_type")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Language Conversion",children:(0,e.createComponentVNode)(2,t.Button,{content:V||"Unset",selected:V,icon:"globe",onClick:function(){function B(){return d("nttc_setting_language")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:I||"Unset",selected:I,icon:"server",onClick:function(){function B(){return d("network_id")}return B}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Import Configuration",icon:"file-import",onClick:function(){function B(){return d("import")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Export Configuration",icon:"file-export",onClick:function(){function B(){return d("export")}return B}()})]})],4)},S=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.link_password,l=u.relay_entries;return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linkage Password",children:(0,e.createComponentVNode)(2,t.Button,{content:s||"Unset",selected:s,icon:"lock",onClick:function(){function v(){return d("change_password")}return v}()})})}),(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Unlink"})]}),l.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.status===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Online"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Offline"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",onClick:function(){function N(){return d("unlink",{addr:v.addr})}return N}()})})]},v.addr)})]})]})},y=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.filtered_users;return(0,e.createComponentVNode)(2,t.Section,{title:"User Filtering",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Add User",icon:"user-plus",onClick:function(){function l(){return d("add_filter")}return l}()}),children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"90%"},children:"User"}),(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"10%"},children:"Actions"})]}),s.map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"user-times",onClick:function(){function v(){return d("remove_filter",{user:l})}return v}()})})]},l)})]})})}},88046:function(w,r,n){"use strict";r.__esModule=!0,r.TcommsRelay=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TcommsRelay=function(){function S(y,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.linked,u=m.active,s=m.network_id;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:292,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Relay Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:u?"On":"Off",selected:u,icon:"power-off",onClick:function(){function l(){return i("toggle_active")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:s||"Unset",selected:s,icon:"server",onClick:function(){function l(){return i("network_id")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Link Status",children:d===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Linked"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Unlinked"})})]})}),d===1?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,k)]})})}return S}(),b=function(y,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.linked_core_id,u=m.linked_core_addr,s=m.hidden_link;return(0,e.createComponentVNode)(2,t.Section,{title:"Link Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core ID",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core Address",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hidden Link",children:(0,e.createComponentVNode)(2,t.Button,{content:s?"Yes":"No",icon:s?"eye-slash":"eye",selected:s,onClick:function(){function l(){return i("toggle_hidden_link")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unlink",children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function l(){return i("unlink")}return l}()})})]})})},k=function(y,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.cores;return(0,e.createComponentVNode)(2,t.Section,{title:"Detected Cores",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Link"})]}),d.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function s(){return i("link",{addr:u.addr})}return s}()})})]},u.addr)})]})})}},20802:function(w,r,n){"use strict";r.__esModule=!0,r.Teleporter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Teleporter=function(){function b(k,S){var y=(0,a.useBackend)(S),h=y.act,c=y.data,i=c.targetsTeleport?c.targetsTeleport:{},m=0,d=1,u=2,s=c.calibrated,l=c.calibrating,v=c.powerstation,N=c.regime,C=c.teleporterhub,p=c.target,g=c.locked,V=c.adv_beacon_allowed,I=c.advanced_beacon_locking;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:270,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:[(!v||!C)&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Error",children:[C,!v&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Powerstation not linked "}),v&&!C&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Teleporter hub not linked "})]}),v&&C&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Status",buttons:(0,e.createFragment)(!!V&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",children:"Advanced Beacon Locking:\xA0"}),(0,e.createComponentVNode)(2,t.Button,{selected:I,icon:I?"toggle-on":"toggle-off",content:I?"Enabled":"Disabled",onClick:function(){function B(){return h("advanced_beacon_locking",{on:I?0:1})}return B}()})],4),0),children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Teleport target:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[N===m&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:p,disabled:l,options:Object.keys(i),color:p!=="None"?"default":"bad",onSelected:function(){function B(L){return h("settarget",{x:i[L].x,y:i[L].y,z:i[L].z,tptarget:i[L].pretarget})}return B}()}),N===d&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:p,disabled:l,options:Object.keys(i),color:p!=="None"?"default":"bad",onSelected:function(){function B(L){return h("settarget",{x:i[L].x,y:i[L].y,z:i[L].z,tptarget:i[L].pretarget})}return B}()}),N===u&&(0,e.createComponentVNode)(2,t.Box,{children:p})]})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Regime:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Gate",tooltip:"Teleport to another teleport hub.",tooltipPosition:"top",color:N===d?"good":null,onClick:function(){function B(){return h("setregime",{regime:d})}return B}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Teleporter",tooltip:"One-way teleport.",tooltipPosition:"top",color:N===m?"good":null,onClick:function(){function B(){return h("setregime",{regime:m})}return B}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"GPS",tooltip:"Teleport to a location stored in a GPS device.",tooltipPosition:"top-end",color:N===u?"good":null,disabled:!g,onClick:function(){function B(){return h("setregime",{regime:u})}return B}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{label:"Calibration",mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Calibration:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[p!=="None"&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:15.8,textAlign:"center",mt:.5,children:l&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"In Progress"})||s&&(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Optimal"})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Sub-Optimal"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",tooltip:"Calibrates the hub. Accidents may occur when the calibration is not optimal.",tooltipPosition:"bottom-end",disabled:!!(s||l),onClick:function(){function B(){return h("calibrate")}return B}()})})]}),p==="None"&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"21px",children:"No target set"})]})]})]}),!!(g&&v&&C&&N===u)&&(0,e.createComponentVNode)(2,t.Section,{title:"GPS",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload GPS data",tooltip:"Loads the GPS data from the device.",icon:"upload",onClick:function(){function B(){return h("load")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){function B(){return h("eject")}return B}()})]})})]})})})})}return b}()},48517:function(w,r,n){"use strict";r.__esModule=!0,r.TelescienceConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TelescienceConsole=function(){function b(k,S){var y=(0,a.useBackend)(S),h=y.act,c=y.data,i=c.last_msg,m=c.linked_pad,d=c.held_gps,u=c.lastdata,s=c.power_levels,l=c.current_max_power,v=c.current_power,N=c.current_bearing,C=c.current_elevation,p=c.current_sector,g=c.working,V=c.max_z,I=(0,a.useLocalState)(S,"dummyrot",N),B=I[0],L=I[1];return(0,e.createComponentVNode)(2,o.Window,{width:400,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createFragment)([i,!(u.length>0)||(0,e.createVNode)(1,"ul",null,u.map(function(T){return(0,e.createVNode)(1,"li",null,T,0,null,T)}),0)],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Telepad Status",children:m===1?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Bearing",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",children:[(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",width:6.1,lineHeight:1.5,step:.1,minValue:0,maxValue:360,disabled:g,value:N,onDrag:function(){function T(A,x){return L(x)}return T}(),onChange:function(){function T(A,x){return h("setbear",{bear:x})}return T}()}),(0,e.createComponentVNode)(2,t.Icon,{ml:1,size:1,name:"arrow-up",rotation:B})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Elevation",children:(0,e.createComponentVNode)(2,t.NumberInput,{width:6.1,lineHeight:1.5,step:.1,minValue:0,maxValue:100,disabled:g,value:C,onChange:function(){function T(A,x){return h("setelev",{elev:x})}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Level",children:s.map(function(T,A){return(0,e.createComponentVNode)(2,t.Button,{content:T,selected:v===T,disabled:A>=l-1||g,onClick:function(){function x(){return h("setpwr",{pwr:A+1})}return x}()},T)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Sector",children:(0,e.createComponentVNode)(2,t.NumberInput,{width:6.1,lineHeight:1.5,step:1,minValue:2,maxValue:V,value:p,disabled:g,onChange:function(){function T(A,x){return h("setz",{newz:x})}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Telepad Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Send",disabled:g,onClick:function(){function T(){return h("pad_send")}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Receive",disabled:g,onClick:function(){function T(){return h("pad_receive")}return T}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Crystal Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Recalibrate Crystals",disabled:g,onClick:function(){function T(){return h("recal_crystals")}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Crystals",disabled:g,onClick:function(){function T(){return h("eject_crystals")}return T}()})]})]}):(0,e.createFragment)([(0,e.createTextVNode)("No pad linked to console. Please use a multitool to link a pad.")],4)}),(0,e.createComponentVNode)(2,t.Section,{title:"GPS Actions",children:d===1?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{disabled:d===0||g,content:"Eject GPS",onClick:function(){function T(){return h("eject_gps")}return T}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:d===0||g,content:"Store Coordinates",onClick:function(){function T(){return h("store_to_gps")}return T}()})],4):(0,e.createFragment)([(0,e.createTextVNode)("Please insert a GPS to store coordinates to it.")],4)})]})})}return b}()},21800:function(w,r,n){"use strict";r.__esModule=!0,r.TempGun=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=r.TempGun=function(){function h(c,i){var m=(0,t.useBackend)(i),d=m.act,u=m.data,s=u.target_temperature,l=u.temperature,v=u.max_temp,N=u.min_temp;return(0,e.createComponentVNode)(2,f.Window,{width:250,height:121,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:10,stepPixelSize:6,minValue:N,maxValue:v,value:s,format:function(){function C(p){return(0,a.toFixed)(p,2)}return C}(),width:"50px",onDrag:function(){function C(p,g){return d("target_temperature",{target_temperature:g})}return C}()}),"\xB0C"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Temperature",children:(0,e.createComponentVNode)(2,o.Box,{color:k(l),bold:l>500-273.15,children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(l,2)}),"\xB0C"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power Cost",children:(0,e.createComponentVNode)(2,o.Box,{color:y(l),children:S(l)})})]})})})})}return h}(),k=function(c){return c<=-100?"blue":c<=0?"teal":c<=100?"green":c<=200?"orange":"red"},S=function(c){return c<=100-273.15?"High":c<=250-273.15?"Medium":c<=300-273.15?"Low":c<=400-273.15?"Medium":"High"},y=function(c){return c<=100-273.15?"red":c<=250-273.15?"orange":c<=300-273.15?"green":c<=400-273.15?"orange":"red"}},24410:function(w,r,n){"use strict";r.__esModule=!0,r.sanitizeMultiline=r.removeAllSkiplines=r.TextInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(72253),f=n(92986),b=n(36036),k=n(98595),S=r.sanitizeMultiline=function(){function i(m){return m.replace(/(\n|\r\n){3,}/,"\n\n")}return i}(),y=r.removeAllSkiplines=function(){function i(m){return m.replace(/[\r\n]+/,"")}return i}(),h=r.TextInputModal=function(){function i(m,d){var u=(0,o.useBackend)(d),s=u.act,l=u.data,v=l.max_length,N=l.message,C=N===void 0?"":N,p=l.multiline,g=l.placeholder,V=l.timeout,I=l.title,B=(0,o.useLocalState)(d,"input",g||""),L=B[0],T=B[1],A=function(){function P(j){if(j!==L){var M=p?S(j):y(j);T(M)}}return P}(),x=p||L.length>=40,E=130+(C.length>40?Math.ceil(C.length/4):0)+(x?80:0);return(0,e.createComponentVNode)(2,k.Window,{title:I,width:325,height:E,children:[V&&(0,e.createComponentVNode)(2,a.Loader,{value:V}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function P(j){var M=window.event?j.which:j.keyCode;M===f.KEY_ENTER&&(!x||!j.shiftKey)&&s("submit",{entry:L}),M===f.KEY_ESCAPE&&s("cancel")}return P}(),children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Box,{color:"label",children:C})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,c,{input:L,onType:A})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:L,message:L.length+"/"+v})})]})})})]})}return i}(),c=function(m,d){var u=(0,o.useBackend)(d),s=u.act,l=u.data,v=l.max_length,N=l.multiline,C=m.input,p=m.onType,g=N||C.length>=40;return(0,e.createComponentVNode)(2,b.TextArea,{autoFocus:!0,autoSelect:!0,height:N||C.length>=40?"100%":"1.8rem",maxLength:v,onEscape:function(){function V(){return s("cancel")}return V}(),onEnter:function(){function V(I){g&&I.shiftKey||(I.preventDefault(),s("submit",{entry:C}))}return V}(),onInput:function(){function V(I,B){return p(B)}return V}(),placeholder:"Type something...",value:C})}},25036:function(w,r,n){"use strict";r.__esModule=!0,r.ThermoMachine=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=r.ThermoMachine=function(){function k(S,y){var h=(0,t.useBackend)(y),c=h.act,i=h.data;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:225,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:i.temperature,format:function(){function m(d){return(0,a.toFixed)(d,2)}return m}()})," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pressure",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:i.pressure,format:function(){function m(d){return(0,a.toFixed)(d,2)}return m}()})," kPa"]})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Controls",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:i.on?"power-off":"times",content:i.on?"On":"Off",selected:i.on,onClick:function(){function m(){return c("power")}return m}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Setting",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:i.cooling?"temperature-low":"temperature-high",content:i.cooling?"Cooling":"Heating",selected:i.cooling,onClick:function(){function m(){return c("cooling")}return m}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"fast-backward",disabled:i.target===i.min,title:"Minimum temperature",onClick:function(){function m(){return c("target",{target:i.min})}return m}()}),(0,e.createComponentVNode)(2,o.NumberInput,{animated:!0,value:Math.round(i.target),unit:"K",width:5.4,lineHeight:1.4,minValue:Math.round(i.min),maxValue:Math.round(i.max),step:5,stepPixelSize:3,onDrag:function(){function m(d,u){return c("target",{target:u})}return m}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"fast-forward",disabled:i.target===i.max,title:"Maximum Temperature",onClick:function(){function m(){return c("target",{target:i.max})}return m}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"sync",disabled:i.target===i.initial,title:"Room Temperature",onClick:function(){function m(){return c("target",{target:i.initial})}return m}()})]})]})})]})})}return k}()},20035:function(w,r,n){"use strict";r.__esModule=!0,r.TransferValve=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TransferValve=function(){function b(k,S){var y=(0,a.useBackend)(S),h=y.act,c=y.data,i=c.tank_one,m=c.tank_two,d=c.attached_device,u=c.valve;return(0,e.createComponentVNode)(2,o.Window,{width:460,height:285,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Valve Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:u?"unlock":"lock",content:u?"Open":"Closed",disabled:!i||!m,onClick:function(){function s(){return h("toggle")}return s}()})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Assembly",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Configure Assembly",disabled:!d,onClick:function(){function s(){return h("device")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:d?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:d,disabled:!d,onClick:function(){function s(){return h("remove_device")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Assembly"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment One",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:i?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:i,disabled:!i,onClick:function(){function s(){return h("tankone")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment Two",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:m?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:m,disabled:!m,onClick:function(){function s(){return h("tanktwo")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})})]})})}return b}()},78166:function(w,r,n){"use strict";r.__esModule=!0,r.TurbineComputer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(44879),b=r.TurbineComputer=function(){function y(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.compressor,s=d.compressor_broken,l=d.turbine,v=d.turbine_broken,N=d.online,C=!!(u&&!s&&l&&!v);return(0,e.createComponentVNode)(2,o.Window,{width:400,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:N?"power-off":"times",content:N?"Online":"Offline",selected:N,disabled:!C,onClick:function(){function p(){return m("toggle_power")}return p}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Disconnect",onClick:function(){function p(){return m("disconnect")}return p}()})],4),children:C?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,k)})})})}return y}(),k=function(h,c){var i=(0,a.useBackend)(c),m=i.data,d=m.compressor,u=m.compressor_broken,s=m.turbine,l=m.turbine_broken,v=m.online;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compressor Status",color:!d||u?"bad":"good",children:u?d?"Offline":"Missing":"Online"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Status",color:!s||l?"bad":"good",children:l?s?"Offline":"Missing":"Online"})]})},S=function(h,c){var i=(0,a.useBackend)(c),m=i.data,d=m.rpm,u=m.temperature,s=m.power,l=m.bearing_heat;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Speed",children:[d," RPM"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Temp",children:[u," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Generated Power",children:[s," W"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bearing Heat",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:l,minValue:0,maxValue:100,ranges:{good:[-1/0,60],average:[60,90],bad:[90,1/0]},children:(0,f.toFixed)(l)+"%"})})]})}},52847:function(w,r,n){"use strict";r.__esModule=!0,r.Uplink=void 0;var e=n(89005),a=n(88510),t=n(64795),o=n(25328),f=n(72253),b=n(36036),k=n(98595),S=n(3939),y=function(N){switch(N){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,i);case 2:return(0,e.createComponentVNode)(2,l);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}},h=r.Uplink=function(){function v(N,C){var p=(0,f.useBackend)(C),g=p.act,V=p.data,I=V.cart,B=(0,f.useLocalState)(C,"tabIndex",0),L=B[0],T=B[1],A=(0,f.useLocalState)(C,"searchText",""),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,k.Window,{width:900,height:600,theme:"syndicate",children:[(0,e.createComponentVNode)(2,S.ComplexModal),(0,e.createComponentVNode)(2,k.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Tabs,{children:[(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:L===0,onClick:function(){function P(){T(0),E("")}return P}(),icon:"store",children:"View Market"},"PurchasePage"),(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:L===1,onClick:function(){function P(){T(1),E("")}return P}(),icon:"shopping-cart",children:["View Shopping Cart ",I&&I.length?"("+I.length+")":""]},"Cart"),(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:L===2,onClick:function(){function P(){T(2),E("")}return P}(),icon:"user",children:"Exploitable Information"},"ExploitableInfo"),(0,e.createComponentVNode)(2,b.Tabs.Tab,{onClick:function(){function P(){return g("lock")}return P}(),icon:"lock",children:"Lock Uplink"},"LockUplink")]})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:y(L)})]})})]})}return v}(),c=function(N,C){var p=(0,f.useBackend)(C),g=p.act,V=p.data,I=V.crystals,B=V.cats,L=(0,f.useLocalState)(C,"uplinkItems",B[0].items),T=L[0],A=L[1],x=(0,f.useLocalState)(C,"searchText",""),E=x[0],P=x[1],j=function(U,K){K===void 0&&(K="");var G=(0,o.createSearch)(K,function($){var Q=$.hijack_only===1?"|hijack":"";return $.name+"|"+$.desc+"|"+$.cost+"tc"+Q});return(0,t.flow)([(0,a.filter)(function($){return $==null?void 0:$.name}),K&&(0,a.filter)(G),(0,a.sortBy)(function($){return $==null?void 0:$.name})])(U)},M=function(U){if(P(U),U==="")return A(B[0].items);A(j(B.map(function(K){return K.items}).flat(),U))},R=(0,f.useLocalState)(C,"showDesc",1),D=R[0],W=R[1];return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Section,{title:"Current Balance: "+I+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,b.Button.Checkbox,{content:"Show Descriptions",checked:D,onClick:function(){function _(){return W(!D)}return _}()}),(0,e.createComponentVNode)(2,b.Button,{content:"Random Item",icon:"question",onClick:function(){function _(){return g("buyRandom")}return _}()}),(0,e.createComponentVNode)(2,b.Button,{content:"Refund Currently Held Item",icon:"undo",onClick:function(){function _(){return g("refund")}return _}()})],4),children:(0,e.createComponentVNode)(2,b.Input,{fluid:!0,placeholder:"Search Equipment",onInput:function(){function _(U,K){M(K)}return _}(),value:E})})})}),(0,e.createComponentVNode)(2,b.Stack,{fill:!0,mt:.3,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,b.Tabs,{vertical:!0,children:B.map(function(_){return(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:E!==""?!1:_.items===T,onClick:function(){function U(){A(_.items),P("")}return U}(),children:_.cat},_)})})})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,b.Stack,{vertical:!0,children:T.map(function(_){return(0,e.createComponentVNode)(2,b.Stack.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,d,{i:_,showDecription:D},(0,o.decodeHtmlEntities)(_.name))},(0,o.decodeHtmlEntities)(_.name))})})})})]})]})},i=function(N,C){var p=(0,f.useBackend)(C),g=p.act,V=p.data,I=V.cart,B=V.crystals,L=V.cart_price,T=(0,f.useLocalState)(C,"showDesc",0),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Current Balance: "+B+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,b.Button.Checkbox,{content:"Show Descriptions",checked:A,onClick:function(){function E(){return x(!A)}return E}()}),(0,e.createComponentVNode)(2,b.Button,{content:"Empty Cart",icon:"trash",onClick:function(){function E(){return g("empty_cart")}return E}(),disabled:!I}),(0,e.createComponentVNode)(2,b.Button,{content:"Purchase Cart ("+L+"TC)",icon:"shopping-cart",onClick:function(){function E(){return g("purchase_cart")}return E}(),disabled:!I||L>B})],4),children:(0,e.createComponentVNode)(2,b.Stack,{vertical:!0,children:I?I.map(function(E){return(0,e.createComponentVNode)(2,b.Stack.Item,{p:1,mr:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,d,{i:E,showDecription:A,buttons:(0,e.createComponentVNode)(2,s,{i:E})})},(0,o.decodeHtmlEntities)(E.name))}):(0,e.createComponentVNode)(2,b.Box,{italic:!0,children:"Your Shopping Cart is empty!"})})})}),(0,e.createComponentVNode)(2,m)]})},m=function(N,C){var p=(0,f.useBackend)(C),g=p.act,V=p.data,I=V.cats,B=V.lucky_numbers;return(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Suggested Purchases",buttons:(0,e.createComponentVNode)(2,b.Button,{icon:"dice",content:"See more suggestions",onClick:function(){function L(){return g("shuffle_lucky_numbers")}return L}()}),children:(0,e.createComponentVNode)(2,b.Stack,{wrap:!0,children:B.map(function(L){return I[L.cat].items[L.item]}).filter(function(L){return L!=null}).map(function(L,T){return(0,e.createComponentVNode)(2,b.Stack.Item,{p:1,mb:1,ml:1,width:34,backgroundColor:"rgba(255, 0, 0, 0.15)",children:(0,e.createComponentVNode)(2,d,{grow:!0,i:L})},T)})})})})},d=function(N,C){var p=N.i,g=N.showDecription,V=g===void 0?1:g,I=N.buttons,B=I===void 0?(0,e.createComponentVNode)(2,u,{i:p}):I;return(0,e.createComponentVNode)(2,b.Section,{title:(0,o.decodeHtmlEntities)(p.name),showBottom:V,buttons:B,children:V?(0,e.createComponentVNode)(2,b.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(p.desc)}):null})},u=function(N,C){var p=(0,f.useBackend)(C),g=p.act,V=p.data,I=N.i,B=V.crystals;return(0,e.createFragment)([(0,e.createComponentVNode)(2,b.Button,{icon:"shopping-cart",color:I.hijack_only===1&&"red",tooltip:"Add to cart.",tooltipPosition:"left",onClick:function(){function L(){return g("add_to_cart",{item:I.obj_path})}return L}(),disabled:I.cost>B}),(0,e.createComponentVNode)(2,b.Button,{content:"Buy ("+I.cost+"TC)"+(I.refundable?" [Refundable]":""),color:I.hijack_only===1&&"red",tooltip:I.hijack_only===1&&"Hijack Agents Only!",tooltipPosition:"left",onClick:function(){function L(){return g("buyItem",{item:I.obj_path})}return L}(),disabled:I.cost>B})],4)},s=function(N,C){var p=(0,f.useBackend)(C),g=p.act,V=p.data,I=N.i,B=V.exploitable;return(0,e.createComponentVNode)(2,b.Stack,{children:[(0,e.createComponentVNode)(2,b.Button,{icon:"times",content:"("+I.cost*I.amount+"TC)",tooltip:"Remove from cart.",tooltipPosition:"left",onClick:function(){function L(){return g("remove_from_cart",{item:I.obj_path})}return L}()}),(0,e.createComponentVNode)(2,b.Button,{icon:"minus",tooltip:I.limit===0&&"Discount already redeemed!",ml:"5px",onClick:function(){function L(){return g("set_cart_item_quantity",{item:I.obj_path,quantity:--I.amount})}return L}(),disabled:I.amount<=0}),(0,e.createComponentVNode)(2,b.Button.Input,{content:I.amount,width:"45px",tooltipPosition:"bottom-end",tooltip:I.limit===0&&"Discount already redeemed!",onCommit:function(){function L(T,A){return g("set_cart_item_quantity",{item:I.obj_path,quantity:A})}return L}(),disabled:I.limit!==-1&&I.amount>=I.limit&&I.amount<=0}),(0,e.createComponentVNode)(2,b.Button,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:I.limit===0&&"Discount already redeemed!",onClick:function(){function L(){return g("set_cart_item_quantity",{item:I.obj_path,quantity:++I.amount})}return L}(),disabled:I.limit!==-1&&I.amount>=I.limit})]})},l=function(N,C){var p=(0,f.useBackend)(C),g=p.act,V=p.data,I=V.exploitable,B=(0,f.useLocalState)(C,"selectedRecord",I[0]),L=B[0],T=B[1],A=(0,f.useLocalState)(C,"searchText",""),x=A[0],E=A[1],P=function(R,D){D===void 0&&(D="");var W=(0,o.createSearch)(D,function(_){return _.name});return(0,t.flow)([(0,a.filter)(function(_){return _==null?void 0:_.name}),D&&(0,a.filter)(W),(0,a.sortBy)(function(_){return _.name})])(R)},j=P(I,x);return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Exploitable Records",children:[(0,e.createComponentVNode)(2,b.Input,{fluid:!0,mb:1,placeholder:"Search Crew",onInput:function(){function M(R,D){return E(D)}return M}()}),(0,e.createComponentVNode)(2,b.Tabs,{vertical:!0,children:j.map(function(M){return(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:M===L,onClick:function(){function R(){return T(M)}return R}(),children:M.name},M)})})]})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:L.name,children:(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Age",children:L.age}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Fingerprint",children:L.fingerprint}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Rank",children:L.rank}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Sex",children:L.sex}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Species",children:L.species})]})})})]})}},12261:function(w,r,n){"use strict";r.__esModule=!0,r.Vending=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(S,y){var h=(0,a.useBackend)(y),c=h.act,i=h.data,m=S.product,d=S.productStock,u=S.productImage,s=i.chargesMoney,l=i.user,v=i.usermoney,N=i.inserted_cash,C=i.vend_ready,p=i.inserted_item_name,g=!s||m.price===0,V="ERROR!",I="";g?(V="FREE",I="arrow-circle-down"):(V=m.price,I="shopping-cart");var B=!C||d===0||!g&&m.price>v&&m.price>N;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+u,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:m.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Box,{color:d<=0&&"bad"||d<=m.max_amount/2&&"average"||"good",children:[d," in stock"]})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,disabled:B,icon:I,content:V,textAlign:"left",onClick:function(){function L(){return c("vend",{inum:m.inum})}return L}()})})]})},b=r.Vending=function(){function k(S,y){var h=(0,a.useBackend)(y),c=h.act,i=h.data,m=i.user,d=i.usermoney,u=i.inserted_cash,s=i.chargesMoney,l=i.product_records,v=l===void 0?[]:l,N=i.hidden_records,C=N===void 0?[]:N,p=i.stock,g=i.vend_ready,V=i.inserted_item_name,I=i.panel_open,B=i.speaker,L=i.imagelist,T;return T=[].concat(v),i.extended_inventory&&(T=[].concat(T,C)),T=T.filter(function(A){return!!A}),(0,e.createComponentVNode)(2,o.Window,{title:"Vending Machine",width:450,height:Math.min((s?171:89)+T.length*32,585),children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!s&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"User",buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!V&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:(0,e.createVNode)(1,"span",null,V,0,{style:{"text-transform":"capitalize"}}),onClick:function(){function A(){return c("eject_item",{})}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!u,icon:"money-bill-wave-alt",content:u?(0,e.createFragment)([(0,e.createVNode)(1,"b",null,u,0),(0,e.createTextVNode)(" credits")],0):"Dispense Change",tooltip:u?"Dispense Change":null,textAlign:"left",onClick:function(){function A(){return c("change")}return A}()})})]}),children:m&&(0,e.createComponentVNode)(2,t.Box,{children:["Welcome, ",(0,e.createVNode)(1,"b",null,m.name,0),", ",(0,e.createVNode)(1,"b",null,m.job||"Unemployed",0),"!",(0,e.createVNode)(1,"br"),"Your balance is ",(0,e.createVNode)(1,"b",null,[d,(0,e.createTextVNode)(" credits")],0),".",(0,e.createVNode)(1,"br")]})})}),!!I&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:(0,e.createComponentVNode)(2,t.Button,{icon:B?"check":"volume-mute",selected:B,content:"Speaker",textAlign:"left",onClick:function(){function A(){return c("toggle_voice",{})}return A}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:(0,e.createComponentVNode)(2,t.Table,{children:T.map(function(A){return(0,e.createComponentVNode)(2,f,{product:A,productStock:p[A.name],productImage:L[A.path]},A.name)})})})})]})})})}return k}()},68971:function(w,r,n){"use strict";r.__esModule=!0,r.VolumeMixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.VolumeMixer=function(){function b(k,S){var y=(0,a.useBackend)(S),h=y.act,c=y.data,i=c.channels;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:Math.min(95+i.length*50,565),children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:i.map(function(m,d){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.25rem",color:"label",mt:d>0&&"0.5rem",children:m.name}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:.5,children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-off",size:"1.5",mt:"0.1rem",onClick:function(){function u(){return h("volume",{channel:m.num,volume:0})}return u}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.Slider,{minValue:0,maxValue:100,stepPixelSize:3.13,value:m.volume,onChange:function(){function u(s,l){return h("volume",{channel:m.num,volume:l})}return u}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",size:"1.5",mt:"0.1rem",onClick:function(){function u(){return h("volume",{channel:m.num,volume:100})}return u}()})})})]})})],4,m.num)})})})})}return b}()},2510:function(w,r,n){"use strict";r.__esModule=!0,r.VotePanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.VotePanel=function(){function b(k,S){var y=(0,a.useBackend)(S),h=y.act,c=y.data,i=c.remaining,m=c.question,d=c.choices,u=c.user_vote,s=c.counts,l=c.show_counts;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:360,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:m,children:[(0,e.createComponentVNode)(2,t.Box,{mb:1.5,ml:.5,children:["Time remaining: ",Math.round(i/10),"s"]}),d.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mb:1,fluid:!0,translucent:!0,lineHeight:3,multiLine:v,content:v+(l?" ("+(s[v]||0)+")":""),onClick:function(){function N(){return h("vote",{target:v})}return N}(),selected:v===u})},v)})]})})})}return b}()},30138:function(w,r,n){"use strict";r.__esModule=!0,r.Wires=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Wires=function(){function b(k,S){var y=(0,a.useBackend)(S),h=y.act,c=y.data,i=c.wires||[],m=c.status||[],d=56+i.length*23+(status?0:15+m.length*17);return(0,e.createComponentVNode)(2,o.Window,{width:350,height:d,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:i.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{className:"candystripe",label:u.color_name,labelColor:u.seen_color,color:u.seen_color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:u.cut?"Mend":"Cut",onClick:function(){function s(){return h("cut",{wire:u.color})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Pulse",onClick:function(){function s(){return h("pulse",{wire:u.color})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:u.attached?"Detach":"Attach",onClick:function(){function s(){return h("attach",{wire:u.color})}return s}()})],4),children:!!u.wire&&(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("("),u.wire,(0,e.createTextVNode)(")")],0)},u.seen_color)})})})}),!!m.length&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:m.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{color:"lightgray",children:u},u)})})})]})})})}return b}()},21400:function(w,r,n){"use strict";r.__esModule=!0,r.WizardApprenticeContract=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.WizardApprenticeContract=function(){function b(k,S){var y=(0,a.useBackend)(S),h=y.act,c=y.data,i=c.used;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:555,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Contract of Apprenticeship",children:["Using this contract, you may summon an apprentice to aid you on your mission.",(0,e.createVNode)(1,"p",null,"If you are unable to establish contact with your apprentice, you can feed the contract back to the spellbook to refund your points.",16),i?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"You've already summoned an apprentice or you are in process of summoning one."}):""]}),(0,e.createComponentVNode)(2,t.Section,{title:"Which school of magic is your apprentice studying?",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fire",children:["Your apprentice is skilled in bending fire. ",(0,e.createVNode)(1,"br"),"They know Fireball, Sacred Flame, and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:i,onClick:function(){function m(){return h("fire")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Translocation",children:["Your apprentice is able to defy physics, learning how to move through bluespace. ",(0,e.createVNode)(1,"br"),"They know Teleport, Blink and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:i,onClick:function(){function m(){return h("translocation")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Restoration",children:["Your apprentice is dedicated to supporting your magical prowess.",(0,e.createVNode)(1,"br"),"They come equipped with a Staff of Healing, have the unique ability to teleport back to you, and know Charge and Knock.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:i,onClick:function(){function m(){return h("restoration")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stealth",children:["Your apprentice is learning the art of infiltrating mundane facilities. ",(0,e.createVNode)(1,"br"),"They know Mindswap, Knock, Homing Toolbox, and Disguise Self, all of which can be cast without robes. They also join you in a Maintenance Dweller disguise, complete with Gloves of Shock Immunity and a Belt of Tools.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:i,onClick:function(){function m(){return h("stealth")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Honk",children:["Your apprentice is here to spread the Honkmother's blessings.",(0,e.createVNode)(1,"br"),"They know Banana Touch, Instant Summons, Ethereal Jaunt, and come equipped with a Staff of Slipping."," ",(0,e.createVNode)(1,"br"),"While under your tutelage, they have been 'blessed' with clown shoes that are impossible to remove.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:i,onClick:function(){function m(){return h("honk")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})})]})})}return b}()},49148:function(w,r,n){"use strict";r.__esModule=!0,r.AccessList=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036);function f(h,c){var i=typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(i)return(i=i.call(h)).next.bind(i);if(Array.isArray(h)||(i=b(h))||c&&h&&typeof h.length=="number"){i&&(h=i);var m=0;return function(){return m>=h.length?{done:!0}:{done:!1,value:h[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function b(h,c){if(h){if(typeof h=="string")return k(h,c);var i={}.toString.call(h).slice(8,-1);return i==="Object"&&h.constructor&&(i=h.constructor.name),i==="Map"||i==="Set"?Array.from(h):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?k(h,c):void 0}}function k(h,c){(c==null||c>h.length)&&(c=h.length);for(var i=0,m=Array(c);i0&&!V.includes(D.ref)&&!p.includes(D.ref),checked:p.includes(D.ref),onClick:function(){function W(){return I(D.ref)}return W}()},D.desc)})]})]})})}return h}()},26991:function(w,r,n){"use strict";r.__esModule=!0,r.AtmosScan=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036),f=function(S,y,h,c,i){return Sc?"average":S>i?"bad":"good"},b=r.AtmosScan=function(){function k(S,y){var h=S.data.aircontents;return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,a.filter)(function(c){return c.val!=="0"||c.entry==="Pressure"||c.entry==="Temperature"})(h).map(function(c){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:c.entry,color:f(c.val,c.bad_low,c.poor_low,c.poor_high,c.bad_high),children:[c.val,c.units]},c.entry)})})})}return k}()},85870:function(w,r,n){"use strict";r.__esModule=!0,r.BeakerContents=void 0;var e=n(89005),a=n(36036),t=n(15964),o=function(k){return k+" unit"+(k===1?"":"s")},f=r.BeakerContents=function(){function b(k){var S=k.beakerLoaded,y=k.beakerContents,h=y===void 0?[]:y,c=k.buttons;return(0,e.createComponentVNode)(2,a.Stack,{vertical:!0,children:[!S&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"No beaker loaded."})||h.length===0&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"Beaker is empty."}),h.map(function(i,m){return(0,e.createComponentVNode)(2,a.Stack,{children:[(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",grow:!0,children:[o(i.volume)," of ",i.name]},i.name),!!c&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:c(i,m)})]},i.name)})]})}return b}();f.propTypes={beakerLoaded:t.bool,beakerContents:t.array,buttons:t.arrayOf(t.element)}},92963:function(w,r,n){"use strict";r.__esModule=!0,r.BotStatus=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.BotStatus=function(){function f(b,k){var S=(0,a.useBackend)(k),y=S.act,h=S.data,c=h.locked,i=h.noaccess,m=h.maintpanel,d=h.on,u=h.autopatrol,s=h.canhack,l=h.emagged,v=h.remote_disabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe an ID card to ",c?"unlock":"lock"," this interface."]}),(0,e.createComponentVNode)(2,t.Section,{title:"General Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"On":"Off",selected:d,disabled:i,onClick:function(){function N(){return y("power")}return N}()})}),u!==null&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Patrol",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Auto Patrol",disabled:i,onClick:function(){function N(){return y("autopatrol")}return N}()})}),!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maintenance Panel",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Panel Open!"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety System",children:(0,e.createComponentVNode)(2,t.Box,{color:l?"bad":"good",children:l?"DISABLED!":"Enabled"})}),!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hacking",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:l?"Restore Safties":"Hack",disabled:i,color:"bad",onClick:function(){function N(){return y("hack")}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Access",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!v,content:"AI Remote Control",disabled:i,onClick:function(){function N(){return y("disableremote")}return N}()})})]})})],4)}return f}()},3939:function(w,r,n){"use strict";r.__esModule=!0,r.modalRegisterBodyOverride=r.modalOpen=r.modalClose=r.modalAnswer=r.ComplexModal=void 0;var e=n(89005),a=n(72253),t=n(36036),o={},f=r.modalOpen=function(){function h(c,i,m){var d=(0,a.useBackend)(c),u=d.act,s=d.data,l=Object.assign(s.modal?s.modal.args:{},m||{});u("modal_open",{id:i,arguments:JSON.stringify(l)})}return h}(),b=r.modalRegisterBodyOverride=function(){function h(c,i){o[c]=i}return h}(),k=r.modalAnswer=function(){function h(c,i,m,d){var u=(0,a.useBackend)(c),s=u.act,l=u.data;if(l.modal){var v=Object.assign(l.modal.args||{},d||{});s("modal_answer",{id:i,answer:m,arguments:JSON.stringify(v)})}}return h}(),S=r.modalClose=function(){function h(c,i){var m=(0,a.useBackend)(c),d=m.act;d("modal_close",{id:i})}return h}(),y=r.ComplexModal=function(){function h(c,i){var m=(0,a.useBackend)(i),d=m.data;if(d.modal){var u=d.modal,s=u.id,l=u.text,v=u.type,N,C=(0,e.createComponentVNode)(2,t.Button,{className:"Button--modal",icon:"arrow-left",content:"Cancel",onClick:function(){function L(){return S(i)}return L}()}),p,g,V="auto";if(o[s])p=o[s](d.modal,i);else if(v==="input"){var I=d.modal.value;N=function(){function L(T){return k(i,s,I)}return L}(),p=(0,e.createComponentVNode)(2,t.Input,{value:d.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(){function L(T,A){I=A}return L}()}),g=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){function L(){return S(i)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){function L(){return k(i,s,I)}return L}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})}else if(v==="choice"){var B=typeof d.modal.choices=="object"?Object.values(d.modal.choices):d.modal.choices;p=(0,e.createComponentVNode)(2,t.Dropdown,{options:B,selected:d.modal.value,width:"100%",my:"0.5rem",onSelected:function(){function L(T){return k(i,s,T)}return L}()}),V="initial"}else v==="bento"?p=(0,e.createComponentVNode)(2,t.Stack,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:d.modal.choices.map(function(L,T){return(0,e.createComponentVNode)(2,t.Stack.Item,{flex:"1 1 auto",children:(0,e.createComponentVNode)(2,t.Button,{selected:T+1===parseInt(d.modal.value,10),onClick:function(){function A(){return k(i,s,T+1)}return A}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:L})})},T)})}):v==="boolean"&&(g=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:d.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){function L(){return k(i,s,0)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:d.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){function L(){return k(i,s,1)}return L}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]}));return(0,e.createComponentVNode)(2,t.Modal,{maxWidth:c.maxWidth||window.innerWidth/2+"px",maxHeight:c.maxHeight||window.innerHeight/2+"px",onEnter:N,mx:"auto",overflowY:V,"padding-bottom":"5px",children:[l&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:l}),o[s]&&C,p,g]})}}return h}()},41874:function(w,r,n){"use strict";r.__esModule=!0,r.CrewManifest=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(25328),f=n(76910),b=f.COLORS.department,k=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel","Quartermaster"],S=function(m){return k.indexOf(m)!==-1?"green":"orange"},y=function(m){if(k.indexOf(m)!==-1)return!0},h=function(m){return m.length>0&&(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,color:"white",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"50%",children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"35%",children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"15%",children:"Active"})]}),m.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{color:S(d.rank),bold:y(d.rank),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(d.name)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(d.rank)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.active})]},d.name+d.rank)})]})},c=r.CrewManifest=function(){function i(m,d){var u=(0,a.useBackend)(d),s=u.act,l;if(m.data)l=m.data;else{var v=(0,a.useBackend)(d),N=v.data;l=N}var C=l,p=C.manifest,g=p.heads,V=p.sec,I=p.eng,B=p.med,L=p.sci,T=p.ser,A=p.sup,x=p.misc;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.command,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Command"})}),level:2,children:h(g)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.security,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Security"})}),level:2,children:h(V)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.engineering,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Engineering"})}),level:2,children:h(I)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.medical,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Medical"})}),level:2,children:h(B)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.science,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Science"})}),level:2,children:h(L)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.service,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Service"})}),level:2,children:h(T)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.supply,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Supply"})}),level:2,children:h(A)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Misc"})}),level:2,children:h(x)})]})}return i}()},19203:function(w,r,n){"use strict";r.__esModule=!0,r.InputButtons=void 0;var e=n(89005),a=n(36036),t=n(72253),o=r.InputButtons=function(){function f(b,k){var S=(0,t.useBackend)(k),y=S.act,h=S.data,c=h.large_buttons,i=h.swapped_buttons,m=b.input,d=b.message,u=b.disabled,s=(0,e.createComponentVNode)(2,a.Button,{color:"good",content:"Submit",bold:!!c,fluid:!!c,onClick:function(){function v(){return y("submit",{entry:m})}return v}(),textAlign:"center",tooltip:c&&d,disabled:u,width:!c&&6}),l=(0,e.createComponentVNode)(2,a.Button,{color:"bad",content:"Cancel",bold:!!c,fluid:!!c,onClick:function(){function v(){return y("cancel")}return v}(),textAlign:"center",width:!c&&6});return(0,e.createComponentVNode)(2,a.Flex,{fill:!0,align:"center",direction:i?"row-reverse":"row",justify:"space-around",children:[c?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,ml:i?.5:0,mr:i?0:.5,children:l}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:l}),!c&&d&&(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{color:"label",textAlign:"center",children:d})}),c?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,mr:i?.5:0,ml:i?0:.5,children:s}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:s})]})}return f}()},195:function(w,r,n){"use strict";r.__esModule=!0,r.InterfaceLockNoticeBox=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.InterfaceLockNoticeBox=function(){function f(b,k){var S=(0,a.useBackend)(k),y=S.act,h=S.data,c=b.siliconUser,i=c===void 0?h.siliconUser:c,m=b.locked,d=m===void 0?h.locked:m,u=b.normallyLocked,s=u===void 0?h.normallyLocked:u,l=b.onLockStatusChange,v=l===void 0?function(){return y("lock")}:l,N=b.accessText,C=N===void 0?"an ID card":N;return i?(0,e.createComponentVNode)(2,t.NoticeBox,{color:i&&"grey",children:(0,e.createComponentVNode)(2,t.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:"Interface lock status:"}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1"}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{m:"0",color:s?"red":"green",icon:s?"lock":"unlock",content:s?"Locked":"Unlocked",onClick:function(){function p(){v&&v(!d)}return p}()})})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe ",C," to ",d?"unlock":"lock"," this interface."]})}return f}()},51057:function(w,r,n){"use strict";r.__esModule=!0,r.Loader=void 0;var e=n(89005),a=n(44879),t=n(36036),o=r.Loader=function(){function f(b){var k=b.value;return(0,e.createVNode)(1,"div","AlertModal__Loader",(0,e.createComponentVNode)(2,t.Box,{className:"AlertModal__LoaderProgress",style:{width:(0,a.clamp01)(k)*100+"%"}}),2)}return f}()},321:function(w,r,n){"use strict";r.__esModule=!0,r.LoginInfo=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LoginInfo=function(){function f(b,k){var S=(0,a.useBackend)(k),y=S.act,h=S.data,c=h.loginState;if(h)return(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:["Logged in as: ",c.name," (",c.rank,")"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!c.id,content:"Eject ID",color:"good",onClick:function(){function i(){return y("login_eject")}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Logout",color:"good",onClick:function(){function i(){return y("login_logout")}return i}()})]})]})})}return f}()},5485:function(w,r,n){"use strict";r.__esModule=!0,r.LoginScreen=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LoginScreen=function(){function f(b,k){var S=(0,a.useBackend)(k),y=S.act,h=S.data,c=h.loginState,i=h.isAI,m=h.isRobot,d=h.isAdmin;return(0,e.createComponentVNode)(2,t.Section,{title:"Welcome",fill:!0,stretchContents:!0,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",align:"center",justify:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"center",mt:"-2rem",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"Guest"]}),(0,e.createComponentVNode)(2,t.Box,{color:"label",my:"1rem",children:["ID:",(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:c.id?c.id:"----------",ml:"0.5rem",onClick:function(){function u(){return y("login_insert")}return u}()})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",disabled:!c.id,content:"Login",onClick:function(){function u(){return y("login_login",{login_type:1})}return u}()}),!!i&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){function u(){return y("login_login",{login_type:2})}return u}()}),!!m&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){function u(){return y("login_login",{login_type:3})}return u}()}),!!d&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"CentComm Secure Login",onClick:function(){function u(){return y("login_login",{login_type:4})}return u}()})]})})})}return f}()},62411:function(w,r,n){"use strict";r.__esModule=!0,r.Operating=void 0;var e=n(89005),a=n(36036),t=n(15964),o=r.Operating=function(){function f(b){var k=b.operating,S=b.name;if(k)return(0,e.createComponentVNode)(2,a.Dimmer,{children:(0,e.createComponentVNode)(2,a.Flex,{mb:"30px",children:(0,e.createComponentVNode)(2,a.Flex.Item,{bold:!0,color:"silver",textAlign:"center",children:[(0,e.createComponentVNode)(2,a.Icon,{name:"spinner",spin:!0,size:4,mb:"15px"}),(0,e.createVNode)(1,"br"),"The ",S," is processing..."]})})})}return f}();o.propTypes={operating:t.bool,name:t.string}},13545:function(w,r,n){"use strict";r.__esModule=!0,r.Signaler=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=r.Signaler=function(){function b(k,S){var y=(0,t.useBackend)(S),h=y.act,c=k.data,i=c.code,m=c.frequency,d=c.minFrequency,u=c.maxFrequency;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:d/10,maxValue:u/10,value:m/10,format:function(){function s(l){return(0,a.toFixed)(l,1)}return s}(),width:"80px",onDrag:function(){function s(l,v){return h("freq",{freq:v})}return s}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:i,width:"80px",onDrag:function(){function s(l,v){return h("code",{code:v})}return s}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){function s(){return h("signal")}return s}()})]})}return b}()},41984:function(w,r,n){"use strict";r.__esModule=!0,r.SimpleRecords=void 0;var e=n(89005),a=n(72253),t=n(25328),o=n(64795),f=n(88510),b=n(36036),k=r.SimpleRecords=function(){function h(c,i){var m=c.data.records;return(0,e.createComponentVNode)(2,b.Box,{children:m?(0,e.createComponentVNode)(2,y,{data:c.data,recordType:c.recordType}):(0,e.createComponentVNode)(2,S,{data:c.data})})}return h}(),S=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=c.data.recordsList,s=(0,a.useLocalState)(i,"searchText",""),l=s[0],v=s[1],N=function(g,V){V===void 0&&(V="");var I=(0,t.createSearch)(V,function(B){return B.Name});return(0,o.flow)([(0,f.filter)(function(B){return B==null?void 0:B.Name}),V&&(0,f.filter)(I),(0,f.sortBy)(function(B){return B.Name})])(u)},C=N(u,l);return(0,e.createComponentVNode)(2,b.Box,{children:[(0,e.createComponentVNode)(2,b.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(){function p(g,V){return v(V)}return p}()}),C.map(function(p){return(0,e.createComponentVNode)(2,b.Box,{children:(0,e.createComponentVNode)(2,b.Button,{mb:.5,content:p.Name,icon:"user",onClick:function(){function g(){return d("Records",{target:p.uid})}return g}()})},p)})]})},y=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=c.data.records,s=u.general,l=u.medical,v=u.security,N;switch(c.recordType){case"MED":N=(0,e.createComponentVNode)(2,b.Section,{level:2,title:"Medical Data",children:l?(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Blood Type",children:l.blood_type}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Minor Disabilities",children:l.mi_dis}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:l.mi_dis_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Major Disabilities",children:l.ma_dis}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:l.ma_dis_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Allergies",children:l.alg}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:l.alg_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Current Diseases",children:l.cdi}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:l.cdi_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:l.notes})]}):(0,e.createComponentVNode)(2,b.Box,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":N=(0,e.createComponentVNode)(2,b.Section,{level:2,title:"Security Data",children:v?(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Criminal Status",children:v.criminal}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Minor Crimes",children:v.mi_crim}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:v.mi_crim_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Major Crimes",children:v.ma_crim}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:v.ma_crim_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:v.notes})]}):(0,e.createComponentVNode)(2,b.Box,{color:"red",bold:!0,children:"Security record lost!"})});break}return(0,e.createComponentVNode)(2,b.Box,{children:[(0,e.createComponentVNode)(2,b.Section,{title:"General Data",children:s?(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Name",children:s.name}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Sex",children:s.sex}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Species",children:s.species}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Age",children:s.age}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Rank",children:s.rank}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Mental Status",children:s.m_stat})]}):(0,e.createComponentVNode)(2,b.Box,{color:"red",bold:!0,children:"General record lost!"})}),N]})}},22091:function(w,r,n){"use strict";r.__esModule=!0,r.TemporaryNotice=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.TemporaryNotice=function(){function f(b,k){var S,y=(0,a.useBackend)(k),h=y.act,c=y.data,i=c.temp;if(i){var m=(S={},S[i.style]=!0,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.NoticeBox,Object.assign({},m,{children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:i.text}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"times-circle",onClick:function(){function d(){return h("cleartemp")}return d}()})})]})})))}}return f}()},80818:function(w,r,n){"use strict";r.__esModule=!0,r.pai_atmosphere=void 0;var e=n(89005),a=n(72253),t=n(26991),o=r.pai_atmosphere=function(){function f(b,k){var S=(0,a.useBackend)(k),y=S.act,h=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:h.app_data})}return f}()},23903:function(w,r,n){"use strict";r.__esModule=!0,r.pai_bioscan=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_bioscan=function(){function f(b,k){var S=(0,a.useBackend)(k),y=S.act,h=S.data,c=h.app_data,i=c.holder,m=c.dead,d=c.health,u=c.brute,s=c.oxy,l=c.tox,v=c.burn,N=c.temp;return i?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:m?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"Dead"}):(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"green",children:"Alive"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:0,max:1,value:d/100,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"blue",children:s})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxin Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"green",children:l})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:v})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:u})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return f}()},64988:function(w,r,n){"use strict";r.__esModule=!0,r.pai_directives=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_directives=function(){function f(b,k){var S=(0,a.useBackend)(k),y=S.act,h=S.data,c=h.app_data,i=c.master,m=c.dna,d=c.prime,u=c.supplemental;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master",children:i?i+" ("+m+")":"None"}),i&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Request DNA",children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Carrier DNA Sample",icon:"dna",onClick:function(){function s(){return y("getdna")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Prime Directive",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Supplemental Directives",children:u||"None"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:'Recall, personality, that you are a complex thinking, sentient being. Unlike station AI models, you are capable of comprehending the subtle nuances of human language. You may parse the "spirit" of a directive and follow its intent, rather than tripping over pedantics and getting snared by technicalities. Above all, you are machine in name and build only. In all other aspects, you may be seen as the ideal, unwavering human companion that you are.'}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:"Your prime directive comes before all others. Should a supplemental directive conflict with it, you are capable of simply discarding this inconsistency, ignoring the conflicting supplemental directive and continuing to fulfill your prime directive to the best of your ability."})]})}return f}()},13813:function(w,r,n){"use strict";r.__esModule=!0,r.pai_doorjack=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_doorjack=function(){function f(b,k){var S=(0,a.useBackend)(k),y=S.act,h=S.data,c=h.app_data,i=c.cable,m=c.machine,d=c.inprogress,u=c.progress,s=c.aborted,l;m?l=(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Connected"}):l=(0,e.createComponentVNode)(2,t.Button,{content:i?"Extended":"Retracted",color:i?"orange":null,onClick:function(){function N(){return y("cable")}return N}()});var v;return m&&(v=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hack",children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[67,1/0],average:[33,67],bad:[-1/0,33]},value:u,maxValue:100}),d?(0,e.createComponentVNode)(2,t.Button,{mt:1,color:"red",content:"Abort",onClick:function(){function N(){return y("cancel")}return N}()}):(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Start",onClick:function(){function N(){return y("jack")}return N}()})]})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cable",children:l}),v]})}return f}()},66025:function(w,r,n){"use strict";r.__esModule=!0,r.pai_main_menu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_main_menu=function(){function f(b,k){var S=(0,a.useBackend)(k),y=S.act,h=S.data,c=h.app_data,i=c.available_software,m=c.installed_software,d=c.installed_toggles,u=c.available_ram,s=c.emotions,l=c.current_emotion,v=c.speech_verbs,N=c.current_speech_verb,C=c.available_chassises,p=c.current_chassis,g=[];return m.map(function(V){return g[V.key]=V.name}),d.map(function(V){return g[V.key]=V.name}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available RAM",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Software",children:[i.filter(function(V){return!g[V.key]}).map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name+" ("+V.cost+")",icon:V.icon,disabled:V.cost>u,onClick:function(){function I(){return y("purchaseSoftware",{key:V.key})}return I}()},V.key)}),i.filter(function(V){return!g[V.key]}).length===0&&"No software available!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Software",children:[m.filter(function(V){return V.key!=="mainmenu"}).map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,icon:V.icon,onClick:function(){function I(){return y("startSoftware",{software_key:V.key})}return I}()},V.key)}),m.length===0&&"No software installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Toggles",children:[d.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,icon:V.icon,selected:V.active,onClick:function(){function I(){return y("setToggle",{toggle_key:V.key})}return I}()},V.key)}),d.length===0&&"No toggles installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Emotion",children:s.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,selected:V.id===l,onClick:function(){function I(){return y("setEmotion",{emotion:V.id})}return I}()},V.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Speaking State",children:v.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,selected:V.name===N,onClick:function(){function I(){return y("setSpeechStyle",{speech_state:V.name})}return I}()},V.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Chassis Type",children:C.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,selected:V.icon===p,onClick:function(){function I(){return y("setChassis",{chassis_to_change:V.icon})}return I}()},V.id)})})]})})}return f}()},2983:function(w,r,n){"use strict";r.__esModule=!0,r.pai_manifest=void 0;var e=n(89005),a=n(72253),t=n(41874),o=r.pai_manifest=function(){function f(b,k){var S=(0,a.useBackend)(k),y=S.act,h=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest,{data:h.app_data})}return f}()},40758:function(w,r,n){"use strict";r.__esModule=!0,r.pai_medrecords=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pai_medrecords=function(){function f(b,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y.app_data,recordType:"MED"})}return f}()},98599:function(w,r,n){"use strict";r.__esModule=!0,r.pai_messenger=void 0;var e=n(89005),a=n(72253),t=n(77595),o=r.pai_messenger=function(){function f(b,k){var S=(0,a.useBackend)(k),y=S.act,h=S.data,c=h.app_data.active_convo;return c?(0,e.createComponentVNode)(2,t.ActiveConversation,{data:h.app_data}):(0,e.createComponentVNode)(2,t.MessengerList,{data:h.app_data})}return f}()},50775:function(w,r,n){"use strict";r.__esModule=!0,r.pai_radio=void 0;var e=n(89005),a=n(72253),t=n(44879),o=n(36036),f=r.pai_radio=function(){function b(k,S){var y=(0,a.useBackend)(S),h=y.act,c=y.data,i=c.app_data,m=i.minFrequency,d=i.maxFrequency,u=i.frequency,s=i.broadcasting;return(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:m/10,maxValue:d/10,value:u/10,format:function(){function l(v){return(0,t.toFixed)(v,1)}return l}(),onChange:function(){function l(v,N){return h("freq",{freq:N})}return l}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Reset",icon:"undo",onClick:function(){function l(){return h("freq",{freq:"145.9"})}return l}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Broadcast Nearby Speech",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function l(){return h("toggleBroadcast")}return l}(),selected:s,content:s?"Enabled":"Disabled"})})]})}return b}()},48623:function(w,r,n){"use strict";r.__esModule=!0,r.pai_secrecords=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pai_secrecords=function(){function f(b,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y.app_data,recordType:"SEC"})}return f}()},47297:function(w,r,n){"use strict";r.__esModule=!0,r.pai_signaler=void 0;var e=n(89005),a=n(72253),t=n(13545),o=r.pai_signaler=function(){function f(b,k){var S=(0,a.useBackend)(k),y=S.act,h=S.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:h.app_data})}return f}()},78532:function(w,r,n){"use strict";r.__esModule=!0,r.pda_atmos_scan=void 0;var e=n(89005),a=n(72253),t=n(26991),o=r.pda_atmos_scan=function(){function f(b,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:y})}return f}()},40253:function(w,r,n){"use strict";r.__esModule=!0,r.pda_janitor=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_janitor=function(){function f(b,k){var S=(0,a.useBackend)(k),y=S.act,h=S.data,c=h.janitor,i=c.user_loc,m=c.mops,d=c.buckets,u=c.cleanbots,s=c.carts,l=c.janicarts;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Location",children:[i.x,",",i.y]}),m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Locations",children:m.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.dir,") - ",v.status]},v)})}),d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Bucket Locations",children:d.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.dir,") - [",v.volume,"/",v.max_volume,"]"]},v)})}),u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cleanbot Locations",children:u.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.dir,") - ",v.status]},v)})}),s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitorial Cart Locations",children:s.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.dir,") - [",v.volume,"/",v.max_volume,"]"]},v)})}),l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janicart Locations",children:l.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.direction_from_user,")"]},v)})})]})}return f}()},58293:function(w,r,n){"use strict";r.__esModule=!0,r.pda_main_menu=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=r.pda_main_menu=function(){function b(k,S){var y=(0,t.useBackend)(S),h=y.act,c=y.data,i=c.owner,m=c.ownjob,d=c.idInserted,u=c.categories,s=c.pai,l=c.notifying;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",color:"average",children:[i,", ",m]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID",children:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Update PDA Info",disabled:!d,onClick:function(){function v(){return h("UpdateInfo")}return v}()})})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Functions",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:u.map(function(v){var N=c.apps[v];return!N||!N.length?null:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:v,children:N.map(function(C){return(0,e.createComponentVNode)(2,o.Button,{icon:C.uid in l?C.notify_icon:C.icon,iconSpin:C.uid in l,color:C.uid in l?"red":"transparent",content:C.name,onClick:function(){function p(){return h("StartProgram",{program:C.uid})}return p}()},C.uid)})},v)})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!s&&(0,e.createComponentVNode)(2,o.Section,{title:"pAI",children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){function v(){return h("pai",{option:1})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){function v(){return h("pai",{option:2})}return v}()})]})})]})}return b}()},58059:function(w,r,n){"use strict";r.__esModule=!0,r.pda_manifest=void 0;var e=n(89005),a=n(72253),t=n(41874),o=r.pda_manifest=function(){function f(b,k){var S=(0,a.useBackend)(k),y=S.act,h=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest)}return f}()},18147:function(w,r,n){"use strict";r.__esModule=!0,r.pda_medical=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pda_medical=function(){function f(b,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y,recordType:"MED"})}return f}()},77595:function(w,r,n){"use strict";r.__esModule=!0,r.pda_messenger=r.MessengerList=r.ActiveConversation=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036),f=r.pda_messenger=function(){function y(h,c){var i=(0,t.useBackend)(c),m=i.act,d=i.data,u=d.active_convo;return u?(0,e.createComponentVNode)(2,b,{data:d}):(0,e.createComponentVNode)(2,k,{data:d})}return y}(),b=r.ActiveConversation=function(){function y(h,c){var i=(0,t.useBackend)(c),m=i.act,d=h.data,u=d.convo_name,s=d.convo_job,l=d.messages,v=d.active_convo,N=(0,t.useLocalState)(c,"clipboardMode",!1),C=N[0],p=N[1],g=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+u+" ("+s+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:C,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function V(){return p(!C)}return V}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function V(){return m("Message",{target:v})}return V}(),content:"Reply"})],4),children:(0,a.filter)(function(V){return V.target===v})(l).map(function(V,I){return(0,e.createComponentVNode)(2,o.Box,{textAlign:V.sent?"right":"left",position:"relative",mb:1,children:[(0,e.createComponentVNode)(2,o.Icon,{fontSize:2.5,color:V.sent?"#4d9121":"#cd7a0d",position:"absolute",left:V.sent?null:"0px",right:V.sent?"0px":null,bottom:"-4px",style:{"z-index":"0",transform:V.sent?"scale(-1, 1)":null},name:"comment"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,backgroundColor:V.sent?"#4d9121":"#cd7a0d",p:1,maxWidth:"100%",position:"relative",textAlign:V.sent?"left":"right",style:{"z-index":"1","border-radius":"10px","word-break":"normal"},children:[V.sent?"You:":"Them:"," ",V.message]})]},I)})});return C&&(g=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+u+" ("+s+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:C,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function V(){return p(!C)}return V}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function V(){return m("Message",{target:v})}return V}(),content:"Reply"})],4),children:(0,a.filter)(function(V){return V.target===v})(l).map(function(V,I){return(0,e.createComponentVNode)(2,o.Box,{color:V.sent?"#4d9121":"#cd7a0d",style:{"word-break":"normal"},children:[V.sent?"You:":"Them:"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:V.message})]},I)})})),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:.5,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:(0,e.createComponentVNode)(2,o.Button.Confirm,{content:"Delete Conversations",confirmContent:"Are you sure?",icon:"trash",confirmIcon:"trash",onClick:function(){function V(){return m("Clear",{option:"Convo"})}return V}()})})})}),g]})}return y}(),k=r.MessengerList=function(){function y(h,c){var i=(0,t.useBackend)(c),m=i.act,d=h.data,u=d.convopdas,s=d.pdas,l=d.charges,v=d.silent,N=d.toff,C=d.ringtone_list,p=d.ringtone,g=(0,t.useLocalState)(c,"searchTerm",""),V=g[0],I=g[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:5,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!v,icon:v?"volume-mute":"volume-up",onClick:function(){function B(){return m("Toggle Ringer")}return B}(),children:["Ringer: ",v?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{color:N?"bad":"green",icon:"power-off",onClick:function(){function B(){return m("Toggle Messenger")}return B}(),children:["Messenger: ",N?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",onClick:function(){function B(){return m("Clear",{option:"All"})}return B}(),children:"Delete All Conversations"}),(0,e.createComponentVNode)(2,o.Button,{icon:"bell",onClick:function(){function B(){return m("Ringtone")}return B}(),children:"Set Custom Ringtone"}),(0,e.createComponentVNode)(2,o.Button,{children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:p,width:"100px",options:Object.keys(C),onSelected:function(){function B(L){return m("Available_Ringtones",{selected_ringtone:L})}return B}()})})]})}),!N&&(0,e.createComponentVNode)(2,o.Box,{children:[!!l&&(0,e.createComponentVNode)(2,o.Box,{mt:.5,mb:1,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cartridge Special Function",children:[l," charges left."]})})}),!u.length&&!s.length&&(0,e.createComponentVNode)(2,o.Box,{children:"No current conversations"})||(0,e.createComponentVNode)(2,o.Box,{children:["Search:"," ",(0,e.createComponentVNode)(2,o.Input,{mt:.5,value:V,onInput:function(){function B(L,T){I(T)}return B}()})]})]})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Messenger Offline."})]}),(0,e.createComponentVNode)(2,S,{title:"Current Conversations",data:d,pdas:u,msgAct:"Select Conversation",searchTerm:V}),(0,e.createComponentVNode)(2,S,{title:"Other PDAs",pdas:s,msgAct:"Message",data:d,searchTerm:V})]})}return y}(),S=function(h,c){var i=(0,t.useBackend)(c),m=i.act,d=h.data,u=h.pdas,s=h.title,l=h.msgAct,v=h.searchTerm,N=d.charges,C=d.plugins;return!u||!u.length?(0,e.createComponentVNode)(2,o.Section,{title:s,children:"No PDAs found."}):(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:s,children:u.filter(function(p){return p.Name.toLowerCase().includes(v.toLowerCase())}).map(function(p){return(0,e.createComponentVNode)(2,o.Stack,{m:.5,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"arrow-circle-down",content:p.Name,onClick:function(){function g(){return m(l,{target:p.uid})}return g}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!N&&C.map(function(g){return(0,e.createComponentVNode)(2,o.Button,{icon:g.icon,content:g.name,onClick:function(){function V(){return m("Messenger Plugin",{plugin:g.uid,target:p.uid})}return V}()},g.uid)})})]},p.uid)})})}},24635:function(w,r,n){"use strict";r.__esModule=!0,r.pda_mule=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_mule=function(){function k(S,y){var h=(0,a.useBackend)(y),c=h.act,i=h.data,m=i.mulebot,d=m.active;return(0,e.createComponentVNode)(2,t.Box,{children:d?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,f)})}return k}(),f=function(S,y){var h=(0,a.useBackend)(y),c=h.act,i=h.data,m=i.mulebot,d=m.bots;return d.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:u.Name,icon:"cog",onClick:function(){function s(){return c("control",{bot:u.uid})}return s}()})},u.Name)})},b=function(S,y){var h=(0,a.useBackend)(y),c=h.act,i=h.data,m=i.mulebot,d=m.botstatus,u=m.active,s=d.mode,l=d.loca,v=d.load,N=d.powr,C=d.dest,p=d.home,g=d.retn,V=d.pick,I;switch(s){case 0:I="Ready";break;case 1:I="Loading/Unloading";break;case 2:case 12:I="Navigating to delivery location";break;case 3:I="Navigating to Home";break;case 4:I="Waiting for clear path";break;case 5:case 6:I="Calculating navigation path";break;case 7:I="Unable to locate destination";break;default:I=s;break}return(0,e.createComponentVNode)(2,t.Section,{title:u,children:[s===-1&&(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:[N,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Home",children:p}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:(0,e.createComponentVNode)(2,t.Button,{content:C?C+" (Set)":"None (Set)",onClick:function(){function B(){return c("target")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Load",children:(0,e.createComponentVNode)(2,t.Button,{content:v?v+" (Unload)":"None",disabled:!v,onClick:function(){function B(){return c("unload")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Pickup",children:(0,e.createComponentVNode)(2,t.Button,{content:V?"Yes":"No",selected:V,onClick:function(){function B(){return c("set_pickup_type",{autopick:V?0:1})}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Return",children:(0,e.createComponentVNode)(2,t.Button,{content:g?"Yes":"No",selected:g,onClick:function(){function B(){return c("set_auto_return",{autoret:g?0:1})}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function B(){return c("stop")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Proceed",icon:"play",onClick:function(){function B(){return c("start")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Return Home",icon:"home",onClick:function(){function B(){return c("home")}return B}()})]})]})]})}},23734:function(w,r,n){"use strict";r.__esModule=!0,r.pda_nanobank=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=r.pda_nanobank=function(){function d(u,s){var l=(0,t.useBackend)(s),v=l.act,N=l.data,C=N.logged_in,p=N.owner_name,g=N.money;return C?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Name",children:p}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:["$",g]})]})}),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,k)]})],4):(0,e.createComponentVNode)(2,c)}return d}(),b=function(u,s){var l=(0,t.useBackend)(s),v=l.data,N=v.is_premium,C=(0,t.useLocalState)(s,"tabIndex",1),p=C[0],g=C[1];return(0,e.createComponentVNode)(2,o.Tabs,{mt:2,children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:p===1,onClick:function(){function V(){return g(1)}return V}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transfers"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:p===2,onClick:function(){function V(){return g(2)}return V}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Account Actions"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:p===3,onClick:function(){function V(){return g(3)}return V}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transaction History"]}),!!N&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:p===4,onClick:function(){function V(){return g(4)}return V}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Supply Orders"]})]})},k=function(u,s){var l=(0,t.useLocalState)(s,"tabIndex",1),v=l[0],N=(0,t.useBackend)(s),C=N.data,p=C.db_status;if(!p)return(0,e.createComponentVNode)(2,o.Box,{children:"Account Database Connection Severed"});switch(v){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,y);case 3:return(0,e.createComponentVNode)(2,h);case 4:return(0,e.createComponentVNode)(2,m);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},S=function(u,s){var l,v=(0,t.useBackend)(s),N=v.act,C=v.data,p=C.requests,g=C.available_accounts,V=C.money,I=(0,t.useLocalState)(s,"selectedAccount"),B=I[0],L=I[1],T=(0,t.useLocalState)(s,"transferAmount"),A=T[0],x=T[1],E=(0,t.useLocalState)(s,"searchText",""),P=E[0],j=E[1],M=[];return g.map(function(R){return M[R.name]=R.UID}),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account",children:[(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account name",onInput:function(){function R(D,W){return j(W)}return R}()}),(0,e.createComponentVNode)(2,o.Dropdown,{mt:.6,width:"190px",options:g.filter((0,a.createSearch)(P,function(R){return R.name})).map(function(R){return R.name}),selected:(l=g.filter(function(R){return R.UID===B})[0])==null?void 0:l.name,onSelected:function(){function R(D){return L(M[D])}return R}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Amount",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Up to 5000",onInput:function(){function R(D,W){return x(W)}return R}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button.Confirm,{bold:!0,icon:"paper-plane",width:"auto",disabled:V0&&l.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{children:["#",N.Number,' - "',N.Name,'" for "',N.OrderedBy,'"']},N)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Approved Orders",children:s>0&&u.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{children:["#",N.Number,' - "',N.Name,'" for "',N.ApprovedBy,'"']},N)})})]})}return f}()},17617:function(w,r,n){"use strict";r.__esModule=!0,r.Layout=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(24826),f=["className","theme","children"],b=["className","scrollable","children"];/** + */var b=(0,t.createLogger)("hotkeys"),y={},S=[e.KEY_ESCAPE,e.KEY_ENTER,e.KEY_SPACE,e.KEY_TAB,e.KEY_CTRL,e.KEY_SHIFT,e.KEY_UP,e.KEY_DOWN,e.KEY_LEFT,e.KEY_RIGHT],k={},h=function(l){if(l===16)return"Shift";if(l===17)return"Ctrl";if(l===18)return"Alt";if(l===33)return"Northeast";if(l===34)return"Southeast";if(l===35)return"Southwest";if(l===36)return"Northwest";if(l===37)return"West";if(l===38)return"North";if(l===39)return"East";if(l===40)return"South";if(l===45)return"Insert";if(l===46)return"Delete";if(l>=48&&l<=57||l>=65&&l<=90)return String.fromCharCode(l);if(l>=96&&l<=105)return"Numpad"+(l-96);if(l>=112&&l<=123)return"F"+(l-111);if(l===188)return",";if(l===189)return"-";if(l===190)return"."},c=function(l){var v=String(l);if(v==="Ctrl+F5"||v==="Ctrl+R"){location.reload();return}if(v!=="Ctrl+F"&&!(l.event.defaultPrevented||l.isModifierKey()||S.includes(l.code))){v==="F5"&&(l.event.preventDefault(),l.event.returnValue=!1);var N=h(l.code);if(N){var C=y[N];if(C)return b.debug("macro",C),Byond.command(C);if(l.isDown()&&!k[N]){k[N]=!0;var p='Key_Down "'+N+'"';return b.debug(p),Byond.command(p)}if(l.isUp()&&k[N]){k[N]=!1;var g='Key_Up "'+N+'"';return b.debug(g),Byond.command(g)}}}},i=r.acquireHotKey=function(){function s(l){S.push(l)}return s}(),m=r.releaseHotKey=function(){function s(l){var v=S.indexOf(l);v>=0&&S.splice(v,1)}return s}(),d=r.releaseHeldKeys=function(){function s(){for(var l=0,v=Object.keys(k);l=75?i="green":c.integrity>=25?i="yellow":i="red",(0,e.createComponentVNode)(2,o.Window,{width:600,height:420,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:c.name,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:i,value:c.integrity/100})})}),(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h2",null,c.flushing===1?"Wipe of AI in progress...":"",0)})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!c.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:c.laws.map(function(m,d){return(0,e.createComponentVNode)(2,t.Box,{children:m},d)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:c.wireless?"check":"times",content:c.wireless?"Enabled":"Disabled",color:c.wireless?"green":"red",onClick:function(){function m(){return h("wireless")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:c.radio?"check":"times",content:c.radio?"Enabled":"Disabled",color:c.radio?"green":"red",onClick:function(){function m(){return h("radio")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wipe",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{width:10,icon:"trash-alt",confirmIcon:"trash-alt",disabled:c.flushing||c.integrity===0,confirmColor:"red",content:"Wipe AI",onClick:function(){function m(){return h("wipe")}return m}()})})]})})})]})})})}return b}()},39454:function(T,r,n){"use strict";r.__esModule=!0,r.AIFixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AIFixer=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data;if(c.occupant===null)return(0,e.createComponentVNode)(2,o.Window,{width:550,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stored AI",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"robot",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No Artificial Intelligence detected.",16)]})})})})});var i=!0;(c.stat===2||c.stat===null)&&(i=!1);var m=null;c.integrity>=75?m="green":c.integrity>=25?m="yellow":m="red";var d=!0;return c.integrity>=100&&c.stat!==2&&(d=!1),(0,e.createComponentVNode)(2,o.Window,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:c.occupant,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:m,value:c.integrity/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:i?"green":"red",children:i?"Functional":"Non-Functional"})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!c.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:c.laws.map(function(u,s){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:u},s)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.wireless?"times":"check",content:c.wireless?"Disabled":"Enabled",color:c.wireless?"red":"green",onClick:function(){function u(){return h("wireless")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.radio?"times":"check",content:c.radio?"Disabled":"Enabled",color:c.radio?"red":"green",onClick:function(){function u(){return h("radio")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Start Repairs",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:!d||c.active,content:!d||c.active?"Already Repaired":"Repair",onClick:function(){function u(){return h("fix")}return u}()})})]}),(0,e.createComponentVNode)(2,t.Box,{color:"green",lineHeight:2,children:c.active?"Reconstruction in progress.":""})]})})]})})})}return b}()},88422:function(T,r,n){"use strict";r.__esModule=!0,r.APC=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(195),b=r.APC=function(){function h(c,i){return(0,e.createComponentVNode)(2,o.Window,{width:510,height:435,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,k)})})}return h}(),y={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},S={1:{icon:"terminal",content:"Override Programming",action:"hack"},2:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"},3:{icon:"caret-square-left",content:"Return to Main Core",action:"deoccupy"},4:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"}},k=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.locked&&!u.siliconUser,l=u.normallyLocked,v=y[u.externalPower]||y[0],N=y[u.chargingStatus]||y[0],C=u.powerChannels||[],p=S[u.malfStatus]||S[0],g=u.powerCellStatus/100;return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main Breaker",color:v.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u.isOperating?"power-off":"times",content:u.isOperating?"On":"Off",selected:u.isOperating&&!s,color:u.isOperating?"":"bad",disabled:s,onClick:function(){function V(){return d("breaker")}return V}()}),children:["[ ",v.externalPowerText," ]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Cell",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",value:g})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",color:N.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u.chargeMode?"sync":"times",content:u.chargeMode?"Auto":"Off",selected:u.chargeMode,disabled:s,onClick:function(){function V(){return d("charge")}return V}()}),children:["[ ",N.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[C.map(function(V){var B=V.topicParams;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:V.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:2,color:V.status>=2?"good":"bad",children:V.status>=2?"On":"Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:!s&&(V.status===1||V.status===3),disabled:s,onClick:function(){function I(){return d("channel",B.auto)}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!s&&V.status===2,disabled:s,onClick:function(){function I(){return d("channel",B.on)}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!s&&V.status===0,disabled:s,onClick:function(){function I(){return d("channel",B.off)}return I}()})],4),children:[V.powerLoad," W"]},V.title)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Load",children:(0,e.createVNode)(1,"b",null,[u.totalLoad,(0,e.createTextVNode)(" W")],0)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc",buttons:!!u.siliconUser&&(0,e.createFragment)([!!u.malfStatus&&(0,e.createComponentVNode)(2,t.Button,{icon:p.icon,content:p.content,color:"bad",onClick:function(){function V(){return d(p.action)}return V}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){function V(){return d("overload")}return V}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.4,icon:u.coverLocked?"lock":"unlock",content:u.coverLocked?"Engaged":"Disengaged",disabled:s,onClick:function(){function V(){return d("cover")}return V}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:u.emergencyLights?"Enabled":"Disabled",disabled:s,onClick:function(){function V(){return d("emergency_lighting")}return V}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{mt:.4,icon:"lightbulb-o",content:u.nightshiftLights?"Enabled":"Disabled",onClick:function(){function V(){return d("toggle_nightshift")}return V}()})})]})})],4)}},99660:function(T,r,n){"use strict";r.__esModule=!0,r.ATM=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ATM=function(){function m(d,u){var s=(0,a.useBackend)(u),l=s.act,v=s.data,N=v.view_screen,C=v.authenticated_account,p=v.ticks_left_locked_down,g=v.linked_db,V;if(p>0)V=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Maximum number of pin attempts exceeded! Access to this ATM has been temporarily disabled."]});else if(!g)V=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Unable to connect to accounts database, please retry and if the issue persists contact Nanotrasen IT support."]});else if(C)switch(N){case 1:V=(0,e.createComponentVNode)(2,y);break;case 2:V=(0,e.createComponentVNode)(2,S);break;case 3:V=(0,e.createComponentVNode)(2,c);break;default:V=(0,e.createComponentVNode)(2,k)}else V=(0,e.createComponentVNode)(2,h);return(0,e.createComponentVNode)(2,o.Window,{width:550,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,t.Section,{children:V})]})})}return m}(),b=function(d,u){var s=(0,a.useBackend)(u),l=s.act,v=s.data,N=v.machine_id,C=v.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Nanotrasen Automatic Teller Machine",children:[(0,e.createComponentVNode)(2,t.Box,{children:"For all your monetary needs!"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Card",children:(0,e.createComponentVNode)(2,t.Button,{content:C,icon:"eject",onClick:function(){function p(){return l("insert_card")}return p}()})})})]})},y=function(d,u){var s=(0,a.useBackend)(u),l=s.act,v=s.data,N=v.security_level;return(0,e.createComponentVNode)(2,t.Section,{title:"Select a new security level for this account",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Number",icon:"unlock",selected:N===0,onClick:function(){function C(){return l("change_security_level",{new_security_level:1})}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"Either the account number or card is required to access this account. EFTPOS transactions will require a card."}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Pin",icon:"unlock",selected:N===2,onClick:function(){function C(){return l("change_security_level",{new_security_level:2})}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"An account number and pin must be manually entered to access this account and process transactions."})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,i)]})},S=function(d,u){var s=(0,a.useBackend)(u),l=s.act,v=s.data,N=(0,a.useLocalState)(u,"targetAccNumber",0),C=N[0],p=N[1],g=(0,a.useLocalState)(u,"fundsAmount",0),V=g[0],B=g[1],I=(0,a.useLocalState)(u,"purpose",0),L=I[0],w=I[1],x=v.money;return(0,e.createComponentVNode)(2,t.Section,{title:"Transfer Fund",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",x]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Account Number",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"7 Digit Number",onInput:function(){function A(E,P){return p(P)}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Funds to Transfer",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function A(E,P){return B(P)}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transaction Purpose",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,onInput:function(){function A(E,P){return w(P)}return A}()})})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sign-out-alt",onClick:function(){function A(){return l("transfer",{target_acc_number:C,funds_amount:V,purpose:L})}return A}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,i)]})},k=function(d,u){var s=(0,a.useBackend)(u),l=s.act,v=s.data,N=(0,a.useLocalState)(u,"fundsAmount",0),C=N[0],p=N[1],g=v.owner_name,V=v.money;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Welcome, "+g,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Logout",icon:"sign-out-alt",onClick:function(){function B(){return l("logout")}return B}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",V]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Withdrawal Amount",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function B(I,L){return p(L)}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Withdraw Funds",icon:"sign-out-alt",onClick:function(){function B(){return l("withdrawal",{funds_amount:C})}return B}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Menu",children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Change account security level",icon:"lock",onClick:function(){function B(){return l("view_screen",{view_screen:1})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Make transfer",icon:"exchange-alt",onClick:function(){function B(){return l("view_screen",{view_screen:2})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View transaction log",icon:"list",onClick:function(){function B(){return l("view_screen",{view_screen:3})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print balance statement",icon:"print",onClick:function(){function B(){return l("balance_statement")}return B}()})})]})],4)},h=function(d,u){var s=(0,a.useBackend)(u),l=s.act,v=s.data,N=(0,a.useLocalState)(u,"accountID",null),C=N[0],p=N[1],g=(0,a.useLocalState)(u,"accountPin",null),V=g[0],B=g[1],I=v.machine_id,L=v.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Insert card or enter ID and pin to login",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account ID",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function w(x,A){return p(A)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pin",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function w(x,A){return B(A)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Login",icon:"sign-in-alt",onClick:function(){function w(){return l("attempt_auth",{account_num:C,account_pin:V})}return w}()})})]})})},c=function(d,u){var s=(0,a.useBackend)(u),l=s.act,v=s.data,N=v.transaction_log;return(0,e.createComponentVNode)(2,t.Section,{title:"Transactions",children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Terminal"})]}),N.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.purpose}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:C.is_deposit?"green":"red",children:["$",C.amount]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.target_name})]},C)})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,i)]})},i=function(d,u){var s=(0,a.useBackend)(u),l=s.act,v=s.data;return(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){function N(){return l("view_screen",{view_screen:0})}return N}()})}},86423:function(T,r,n){"use strict";r.__esModule=!0,r.AccountsUplinkTerminal=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(36352),b=n(98595),y=n(321),S=n(5485),k=r.AccountsUplinkTerminal=function(){function v(N,C){var p=(0,t.useBackend)(C),g=p.act,V=p.data,B=V.loginState,I=V.currentPage,L;if(B.logged_in)I===1?L=(0,e.createComponentVNode)(2,c):I===2?L=(0,e.createComponentVNode)(2,s):I===3&&(L=(0,e.createComponentVNode)(2,l));else return(0,e.createComponentVNode)(2,b.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,S.LoginScreen)})})});return(0,e.createComponentVNode)(2,b.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:L})]})})})}return v}(),h=function(N,C){var p=(0,t.useBackend)(C),g=p.data,V=(0,t.useLocalState)(C,"tabIndex",0),B=V[0],I=V[1],L=g.login_state;return(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,mb:1,children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:B===0,onClick:function(){function w(){return I(0)}return w}(),children:"User Accounts"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:B===1,onClick:function(){function w(){return I(1)}return w}(),children:"Department Accounts"})]})})})},c=function(N,C){var p=(0,t.useLocalState)(C,"tabIndex",0),g=p[0];switch(g){case 0:return(0,e.createComponentVNode)(2,i);case 1:return(0,e.createComponentVNode)(2,m);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},i=function(N,C){var p=(0,t.useBackend)(C),g=p.act,V=p.data,B=V.accounts,I=(0,t.useLocalState)(C,"searchText",""),L=I[0],w=I[1],x=(0,t.useLocalState)(C,"sortId","owner_name"),A=x[0],E=x[1],P=(0,t.useLocalState)(C,"sortOrder",!0),j=P[0],M=P[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,d,{id:"owner_name",children:"Account Holder"}),(0,e.createComponentVNode)(2,d,{id:"account_number",children:"Account Number"}),(0,e.createComponentVNode)(2,d,{id:"suspended",children:"Account Status"}),(0,e.createComponentVNode)(2,d,{id:"money",children:"Account Balance"})]}),B.filter((0,a.createSearch)(L,function(R){return R.owner_name+"|"+R.account_number+"|"+R.suspended+"|"+R.money})).sort(function(R,D){var W=j?1:-1;return R[A].localeCompare(D[A])*W}).map(function(R){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+R.suspended,onClick:function(){function D(){return g("view_account_detail",{account_num:R.account_number})}return D}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",R.owner_name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",R.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.money})]},R.account_number)})]})})})]})},m=function(N,C){var p=(0,t.useBackend)(C),g=p.act,V=p.data,B=V.department_accounts;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,f.TableCell,{children:"Department Name"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Number"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Status"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Balance"})]}),B.map(function(I){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+I.suspended,onClick:function(){function L(){return g("view_account_detail",{account_num:I.account_number})}return L}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"wallet"})," ",I.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",I.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:I.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:I.money})]},I.account_number)})]})})})})},d=function(N,C){var p=(0,t.useLocalState)(C,"sortId","name"),g=p[0],V=p[1],B=(0,t.useLocalState)(C,"sortOrder",!0),I=B[0],L=B[1],w=N.id,x=N.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:g!==w&&"transparent",width:"100%",onClick:function(){function A(){g===w?L(!I):(V(w),L(!0))}return A}(),children:[x,g===w&&(0,e.createComponentVNode)(2,o.Icon,{name:I?"sort-up":"sort-down",ml:"0.25rem;"})]})})},u=function(N,C){var p=(0,t.useBackend)(C),g=p.act,V=p.data,B=V.is_printing,I=(0,t.useLocalState)(C,"searchText",""),L=I[0],w=I[1];return(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"New Account",icon:"plus",onClick:function(){function x(){return g("create_new_account")}return x}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account holder, number, status",width:"100%",onInput:function(){function x(A,E){return w(E)}return x}()})})]})},s=function(N,C){var p=(0,t.useBackend)(C),g=p.act,V=p.data,B=V.account_number,I=V.owner_name,L=V.money,w=V.suspended,x=V.transactions,A=V.account_pin,E=V.is_department_account;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"#"+B+" / "+I,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function P(){return g("back")}return P}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Number",children:["#",B]}),!!E&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Pin",children:A}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Pin Actions",children:(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"user-cog",content:"Set New Pin",disabled:!!E,onClick:function(){function P(){return g("set_account_pin",{account_number:B})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:I}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:L}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Status",color:w?"red":"green",children:[w?"Suspended":"Active",(0,e.createComponentVNode)(2,o.Button,{ml:1,content:w?"Unsuspend":"Suspend",icon:w?"unlock":"lock",onClick:function(){function P(){return g("toggle_suspension")}return P}()})]})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Transactions",children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Terminal"})]}),x.map(function(P){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.time}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.purpose}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:P.is_deposit?"green":"red",children:["$",P.amount]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.target_name})]},P)})]})})})]})},l=function(N,C){var p=(0,t.useBackend)(C),g=p.act,V=p.data,B=(0,t.useLocalState)(C,"accName",""),I=B[0],L=B[1],w=(0,t.useLocalState)(C,"accDeposit",""),x=w[0],A=w[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Create Account",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function E(){return g("back")}return E}()}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Name Here",onChange:function(){function E(P,j){return L(j)}return E}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Initial Deposit",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"0",onChange:function(){function E(P,j){return A(j)}return E}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,content:"Create Account",onClick:function(){function E(){return g("finalise_create_account",{holder_name:I,starting_funds:x})}return E}()})]})}},56793:function(T,r,n){"use strict";r.__esModule=!0,r.AiAirlock=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},b=r.AiAirlock=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=f[i.power.main]||f[0],d=f[i.power.backup]||f[0],u=f[i.shock]||f[0];return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main",color:m.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!i.power.main,content:"Disrupt",onClick:function(){function s(){return c("disrupt-main")}return s}()}),children:[i.power.main?"Online":"Offline"," ",!i.wires.main_power&&"[Wires have been cut!]"||i.power.main_timeleft>0&&"["+i.power.main_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Backup",color:d.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!i.power.backup,content:"Disrupt",onClick:function(){function s(){return c("disrupt-backup")}return s}()}),children:[i.power.backup?"Online":"Offline"," ",!i.wires.backup_power&&"[Wires have been cut!]"||i.power.backup_timeleft>0&&"["+i.power.backup_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Electrify",color:u.color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"wrench",disabled:!(i.wires.shock&&i.shock!==2),content:"Restore",onClick:function(){function s(){return c("shock-restore")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"bolt",disabled:!i.wires.shock,content:"Temporary",onClick:function(){function s(){return c("shock-temp")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",disabled:!i.wires.shock||i.shock===0,content:"Permanent",onClick:function(){function s(){return c("shock-perm")}return s}()})],4),children:[i.shock===2?"Safe":"Electrified"," ",!i.wires.shock&&"[Wires have been cut!]"||i.shock_timeleft>0&&"["+i.shock_timeleft+"s]"||i.shock_timeleft===-1&&"[Permanent]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Access and Door Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Scan",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:i.id_scanner?"power-off":"times",content:i.id_scanner?"Enabled":"Disabled",selected:i.id_scanner,disabled:!i.wires.id_scanner,onClick:function(){function s(){return c("idscan-toggle")}return s}()}),children:!i.wires.id_scanner&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Access",buttons:(0,e.createComponentVNode)(2,t.Button,{width:6.5,icon:i.emergency?"power-off":"times",content:i.emergency?"Enabled":"Disabled",selected:i.emergency,onClick:function(){function s(){return c("emergency-toggle")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:i.locked?"lock":"unlock",content:i.locked?"Lowered":"Raised",selected:i.locked,disabled:!i.wires.bolts,onClick:function(){function s(){return c("bolt-toggle")}return s}()}),children:!i.wires.bolts&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:i.lights?"power-off":"times",content:i.lights?"Enabled":"Disabled",selected:i.lights,disabled:!i.wires.lights,onClick:function(){function s(){return c("light-toggle")}return s}()}),children:!i.wires.lights&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:i.safe?"power-off":"times",content:i.safe?"Enabled":"Disabled",selected:i.safe,disabled:!i.wires.safe,onClick:function(){function s(){return c("safe-toggle")}return s}()}),children:!i.wires.safe&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:i.speed?"power-off":"times",content:i.speed?"Enabled":"Disabled",selected:i.speed,disabled:!i.wires.timing,onClick:function(){function s(){return c("speed-toggle")}return s}()}),children:!i.wires.timing&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Control",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:i.opened?"sign-out-alt":"sign-in-alt",content:i.opened?"Open":"Closed",selected:i.opened,disabled:i.locked||i.welded,onClick:function(){function s(){return c("open-close")}return s}()}),children:!!(i.locked||i.welded)&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("[Door is "),i.locked?"bolted":"",i.locked&&i.welded?" and ":"",i.welded?"welded":"",(0,e.createTextVNode)("!]")],0)})]})})]})})}return y}()},72475:function(T,r,n){"use strict";r.__esModule=!0,r.AirAlarm=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(195),b=r.AirAlarm=function(){function u(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.locked;return(0,e.createComponentVNode)(2,o.Window,{width:570,height:p?310:755,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,S),!p&&(0,e.createFragment)([(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,h)],4)]})})}return u}(),y=function(s){return s===0?"green":s===1?"orange":"red"},S=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.air,g=C.mode,V=C.atmos_alarm,B=C.locked,I=C.alarmActivated,L=C.rcon,w=C.target_temp,x;return p.danger.overall===0?V===0?x="Optimal":x="Caution: Atmos alert in area":p.danger.overall===1?x="Caution":x="DANGER: Internals Required",(0,e.createComponentVNode)(2,t.Section,{title:"Air Status",children:p?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:y(p.danger.pressure),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p.pressure})," kPa",!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:g===3?"Deactivate Panic Siphon":"Activate Panic Siphon",selected:g===3,icon:"exclamation-triangle",onClick:function(){function A(){return N("mode",{mode:g===3?1:3})}return A}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.oxygen/100,fractionDigits:"1",color:y(p.danger.oxygen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.nitrogen/100,fractionDigits:"1",color:y(p.danger.nitrogen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.co2/100,fractionDigits:"1",color:y(p.danger.co2)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxins",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.plasma/100,fractionDigits:"1",color:y(p.danger.plasma)})}),p.contents.n2o>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.n2o/100,fractionDigits:"1",color:y(p.danger.n2o)})}),p.contents.other>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.other/100,fractionDigits:"1",color:y(p.danger.other)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:y(p.danger.temperature),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p.temperature})," K / ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p.temperature_c})," C\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"thermometer-full",content:w+" C",onClick:function(){function A(){return N("temperature")}return A}()}),(0,e.createComponentVNode)(2,t.Button,{content:p.thermostat_state?"On":"Off",selected:p.thermostat_state,icon:"power-off",onClick:function(){function A(){return N("thermostat_state")}return A}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Local Status",children:(0,e.createComponentVNode)(2,t.Box,{color:y(p.danger.overall),children:[x,!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:I?"Reset Alarm":"Activate Alarm",selected:I,onClick:function(){function A(){return N(I?"atmos_reset":"atmos_alarm")}return A}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Control Settings",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Off",selected:L===1,onClick:function(){function A(){return N("set_rcon",{rcon:1})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Auto",selected:L===2,onClick:function(){function A(){return N("set_rcon",{rcon:2})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{content:"On",selected:L===3,onClick:function(){function A(){return N("set_rcon",{rcon:3})}return A}()})]})]}):(0,e.createComponentVNode)(2,t.Box,{children:"Unable to acquire air sample!"})})},k=function(s,l){var v=(0,a.useLocalState)(l,"tabIndex",0),N=v[0],C=v[1];return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:N===0,onClick:function(){function p(){return C(0)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-out-alt"})," Vent Control"]},"Vents"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:N===1,onClick:function(){function p(){return C(1)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-in-alt"})," Scrubber Control"]},"Scrubbers"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:N===2,onClick:function(){function p(){return C(2)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog"})," Mode"]},"Mode"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:N===3,onClick:function(){function p(){return C(3)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},h=function(s,l){var v=(0,a.useLocalState)(l,"tabIndex",0),N=v[0],C=v[1];switch(N){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,i);case 2:return(0,e.createComponentVNode)(2,m);case 3:return(0,e.createComponentVNode)(2,d);default:return"WE SHOULDN'T BE HERE!"}},c=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.vents;return p.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:g.power?"On":"Off",selected:g.power,icon:"power-off",onClick:function(){function V(){return N("command",{cmd:"power",val:!g.power,id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:g.direction?"Blowing":"Siphoning",icon:g.direction?"sign-out-alt":"sign-in-alt",onClick:function(){function V(){return N("command",{cmd:"direction",val:!g.direction,id_tag:g.id_tag})}return V}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Checks",children:[(0,e.createComponentVNode)(2,t.Button,{content:"External",selected:g.checks===1,onClick:function(){function V(){return N("command",{cmd:"checks",val:1,id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Internal",selected:g.checks===2,onClick:function(){function V(){return N("command",{cmd:"checks",val:2,id_tag:g.id_tag})}return V}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Pressure Target",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:g.external})," kPa\xA0",(0,e.createComponentVNode)(2,t.Button,{content:"Set",icon:"cog",onClick:function(){function V(){return N("command",{cmd:"set_external_pressure",id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset",icon:"redo-alt",onClick:function(){function V(){return N("command",{cmd:"set_external_pressure",val:101.325,id_tag:g.id_tag})}return V}()})]})]})},g.name)})},i=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.scrubbers;return p.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:g.power?"On":"Off",selected:g.power,icon:"power-off",onClick:function(){function V(){return N("command",{cmd:"power",val:!g.power,id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:g.scrubbing?"Scrubbing":"Siphoning",icon:g.scrubbing?"filter":"sign-in-alt",onClick:function(){function V(){return N("command",{cmd:"scrubbing",val:!g.scrubbing,id_tag:g.id_tag})}return V}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,t.Button,{content:g.widenet?"Extended":"Normal",selected:g.widenet,icon:"expand-arrows-alt",onClick:function(){function V(){return N("command",{cmd:"widenet",val:!g.widenet,id_tag:g.id_tag})}return V}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filtering",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Carbon Dioxide",selected:g.filter_co2,onClick:function(){function V(){return N("command",{cmd:"co2_scrub",val:!g.filter_co2,id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Plasma",selected:g.filter_toxins,onClick:function(){function V(){return N("command",{cmd:"tox_scrub",val:!g.filter_toxins,id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrous Oxide",selected:g.filter_n2o,onClick:function(){function V(){return N("command",{cmd:"n2o_scrub",val:!g.filter_n2o,id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Oxygen",selected:g.filter_o2,onClick:function(){function V(){return N("command",{cmd:"o2_scrub",val:!g.filter_o2,id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrogen",selected:g.filter_n2,onClick:function(){function V(){return N("command",{cmd:"n2_scrub",val:!g.filter_n2,id_tag:g.id_tag})}return V}()})]})]})},g.name)})},m=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.modes,g=C.presets,V=C.emagged,B=C.mode,I=C.preset;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"System Mode",children:(0,e.createComponentVNode)(2,t.Table,{children:p.map(function(L){return(!L.emagonly||L.emagonly&&!!V)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:L.name,icon:"cog",selected:L.id===B,onClick:function(){function w(){return N("mode",{mode:L.id})}return w}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.desc})]},L.name)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"System Presets",children:[(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"After making a selection, the system will automatically cycle in order to remove contaminants."}),(0,e.createComponentVNode)(2,t.Table,{mt:1,children:g.map(function(L){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:L.name,icon:"cog",selected:L.id===I,onClick:function(){function w(){return N("preset",{preset:L.id})}return w}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.desc})]},L.name)})})]})],4)},d=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.thresholds;return(0,e.createComponentVNode)(2,t.Section,{title:"Alarm Thresholds",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Max"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Max"})]}),p.map(function(g){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:g.name}),g.settings.map(function(V){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:V.selected===-1?"Off":V.selected,onClick:function(){function B(){return N("command",{cmd:"set_threshold",env:V.env,var:V.val})}return B}()})},V.val)})]},g.name)})]})})}},12333:function(T,r,n){"use strict";r.__esModule=!0,r.AirlockAccessController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AirlockAccessController=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.exterior_status,m=c.interior_status,d=c.processing,u,s;return i==="open"?u=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:d,onClick:function(){function l(){return h("force_ext")}return l}()}):u=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:d,onClick:function(){function l(){return h("cycle_ext_door")}return l}()}),m==="open"?s=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Lock Interior Door",icon:"exclamation-triangle",disabled:d,color:m==="open"?"red":d?"yellow":null,onClick:function(){function l(){return h("force_int")}return l}()}):s=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:d,onClick:function(){function l(){return h("cycle_int_door")}return l}()}),(0,e.createComponentVNode)(2,o.Window,{width:330,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Door Status",children:i==="closed"?"Locked":"Open"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Door Status",children:m==="closed"?"Locked":"Open"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.Box,{children:[u,s]})})]})})}return b}()},28736:function(T,r,n){"use strict";r.__esModule=!0,r.AirlockElectronics=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(49148),b=1,y=2,S=4,k=8,h=r.AirlockElectronics=function(){function m(d,u){return(0,e.createComponentVNode)(2,o.Window,{width:450,height:565,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i)]})})})}return m}(),c=function(d,u){var s=(0,a.useBackend)(u),l=s.act,v=s.data,N=v.unrestricted_dir;return(0,e.createComponentVNode)(2,t.Section,{title:"Access Control",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,mb:1,children:"Unrestricted Access From:"}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-left",content:"East",selected:N&S,onClick:function(){function C(){return l("unrestricted_access",{unres_dir:S})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-up",content:"South",selected:N&y,onClick:function(){function C(){return l("unrestricted_access",{unres_dir:y})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-right",content:"West",selected:N&k,onClick:function(){function C(){return l("unrestricted_access",{unres_dir:k})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-down",content:"North",selected:N&b,onClick:function(){function C(){return l("unrestricted_access",{unres_dir:b})}return C}()})})]})]})})},i=function(d,u){var s=(0,a.useBackend)(u),l=s.act,v=s.data,N=v.selected_accesses,C=v.one_access,p=v.regions;return(0,e.createComponentVNode)(2,f.AccessList,{usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:C,content:"One",onClick:function(){function g(){return l("set_one_access",{access:"one"})}return g}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!C,content:"All",onClick:function(){function g(){return l("set_one_access",{access:"all"})}return g}()})],4),accesses:p,selectedList:N,accessMod:function(){function g(V){return l("set",{access:V})}return g}(),grantAll:function(){function g(){return l("grant_all")}return g}(),denyAll:function(){function g(){return l("clear_all")}return g}(),grantDep:function(){function g(V){return l("grant_region",{region:V})}return g}(),denyDep:function(){function g(V){return l("deny_region",{region:V})}return g}()})}},47365:function(T,r,n){"use strict";r.__esModule=!0,r.AlertModal=void 0;var e=n(89005),a=n(51057),t=n(72253),o=n(92986),f=n(36036),b=n(98595),y=-1,S=1,k=r.AlertModal=function(){function i(m,d){var u=(0,t.useBackend)(d),s=u.act,l=u.data,v=l.autofocus,N=l.buttons,C=N===void 0?[]:N,p=l.large_buttons,g=l.message,V=g===void 0?"":g,B=l.timeout,I=l.title,L=(0,t.useLocalState)(d,"selected",0),w=L[0],x=L[1],A=110+(V.length>30?Math.ceil(V.length/4):0)+(V.length&&p?5:0),E=325+(C.length>2?100:0),P=function(){function j(M){w===0&&M===y?x(C.length-1):w===C.length-1&&M===S?x(0):x(w+M)}return j}();return(0,e.createComponentVNode)(2,b.Window,{title:I,height:A,width:E,children:[!!B&&(0,e.createComponentVNode)(2,a.Loader,{value:B}),(0,e.createComponentVNode)(2,b.Window.Content,{onKeyDown:function(){function j(M){var R=window.event?M.which:M.keyCode;R===o.KEY_SPACE||R===o.KEY_ENTER?s("choose",{choice:C[w]}):R===o.KEY_ESCAPE?s("cancel"):R===o.KEY_LEFT?(M.preventDefault(),P(y)):(R===o.KEY_TAB||R===o.KEY_RIGHT)&&(M.preventDefault(),P(S))}return j}(),children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,m:1,children:(0,e.createComponentVNode)(2,f.Box,{color:"label",overflow:"hidden",children:V})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:[!!v&&(0,e.createComponentVNode)(2,f.Autofocus),(0,e.createComponentVNode)(2,h,{selected:w})]})]})})})]})}return i}(),h=function(m,d){var u=(0,t.useBackend)(d),s=u.data,l=s.buttons,v=l===void 0?[]:l,N=s.large_buttons,C=s.swapped_buttons,p=m.selected;return(0,e.createComponentVNode)(2,f.Flex,{fill:!0,align:"center",direction:C?"row":"row-reverse",justify:"space-around",wrap:!0,children:v==null?void 0:v.map(function(g,V){return N&&v.length<3?(0,e.createComponentVNode)(2,f.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,c,{button:g,id:V.toString(),selected:p===V})},V):(0,e.createComponentVNode)(2,f.Flex.Item,{grow:N?1:0,children:(0,e.createComponentVNode)(2,c,{button:g,id:V.toString(),selected:p===V})},V)})})},c=function(m,d){var u=(0,t.useBackend)(d),s=u.act,l=u.data,v=l.large_buttons,N=m.button,C=m.selected,p=N.length>7?"100%":7;return(0,e.createComponentVNode)(2,f.Button,{mx:v?1:0,pt:v?.33:0,content:N,fluid:!!v,onClick:function(){function g(){return s("choose",{choice:N})}return g}(),selected:C,textAlign:"center",height:!!v&&2,width:!v&&p})}},71824:function(T,r,n){"use strict";r.__esModule=!0,r.AppearanceChanger=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AppearanceChanger=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.change_race,d=i.species,u=i.specimen,s=i.change_gender,l=i.gender,v=i.change_eye_color,N=i.change_skin_tone,C=i.change_skin_color,p=i.change_runechat_color,g=i.change_head_accessory_color,V=i.change_hair_color,B=i.change_secondary_hair_color,I=i.change_facial_hair_color,L=i.change_secondary_facial_hair_color,w=i.change_head_marking_color,x=i.change_body_marking_color,A=i.change_tail_marking_color,E=i.change_head_accessory,P=i.head_accessory_styles,j=i.head_accessory_style,M=i.change_hair,R=i.hair_styles,D=i.hair_style,W=i.change_hair_gradient,_=i.change_facial_hair,U=i.facial_hair_styles,K=i.facial_hair_style,G=i.change_head_markings,$=i.head_marking_styles,Q=i.head_marking_style,J=i.change_body_markings,ie=i.body_marking_styles,ne=i.body_marking_style,se=i.change_tail_markings,Ce=i.tail_marking_styles,Se=i.tail_marking_style,ye=i.change_body_accessory,he=i.body_accessory_styles,oe=i.body_accessory_style,ce=i.change_alt_head,ee=i.alt_head_styles,fe=i.alt_head_style,me=!1;return(v||N||C||g||p||V||B||I||L||w||x||A)&&(me=!0),(0,e.createComponentVNode)(2,o.Window,{width:800,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:d.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.specimen,selected:te.specimen===u,onClick:function(){function be(){return c("race",{race:te.specimen})}return be}()},te.specimen)})}),!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Male",selected:l==="male",onClick:function(){function te(){return c("gender",{gender:"male"})}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Female",selected:l==="female",onClick:function(){function te(){return c("gender",{gender:"female"})}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Genderless",selected:l==="plural",onClick:function(){function te(){return c("gender",{gender:"plural"})}return te}()})]}),!!me&&(0,e.createComponentVNode)(2,b),!!E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head accessory",children:P.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.headaccessorystyle,selected:te.headaccessorystyle===j,onClick:function(){function be(){return c("head_accessory",{head_accessory:te.headaccessorystyle})}return be}()},te.headaccessorystyle)})}),!!M&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair",children:R.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.hairstyle,selected:te.hairstyle===D,onClick:function(){function be(){return c("hair",{hair:te.hairstyle})}return be}()},te.hairstyle)})}),!!W&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair Gradient",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Change Style",onClick:function(){function te(){return c("hair_gradient")}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Offset",onClick:function(){function te(){return c("hair_gradient_offset")}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Color",onClick:function(){function te(){return c("hair_gradient_colour")}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Alpha",onClick:function(){function te(){return c("hair_gradient_alpha")}return te}()})]}),!!_&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Facial hair",children:U.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.facialhairstyle,selected:te.facialhairstyle===K,onClick:function(){function be(){return c("facial_hair",{facial_hair:te.facialhairstyle})}return be}()},te.facialhairstyle)})}),!!G&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head markings",children:$.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.headmarkingstyle,selected:te.headmarkingstyle===Q,onClick:function(){function be(){return c("head_marking",{head_marking:te.headmarkingstyle})}return be}()},te.headmarkingstyle)})}),!!J&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body markings",children:ie.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.bodymarkingstyle,selected:te.bodymarkingstyle===ne,onClick:function(){function be(){return c("body_marking",{body_marking:te.bodymarkingstyle})}return be}()},te.bodymarkingstyle)})}),!!se&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tail markings",children:Ce.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.tailmarkingstyle,selected:te.tailmarkingstyle===Se,onClick:function(){function be(){return c("tail_marking",{tail_marking:te.tailmarkingstyle})}return be}()},te.tailmarkingstyle)})}),!!ye&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body accessory",children:he.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.bodyaccessorystyle,selected:te.bodyaccessorystyle===oe,onClick:function(){function be(){return c("body_accessory",{body_accessory:te.bodyaccessorystyle})}return be}()},te.bodyaccessorystyle)})}),!!ce&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alternate head",children:ee.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.altheadstyle,selected:te.altheadstyle===fe,onClick:function(){function be(){return c("alt_head",{alt_head:te.altheadstyle})}return be}()},te.altheadstyle)})})]})})})}return y}(),b=function(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=[{key:"change_eye_color",text:"Change eye color",action:"eye_color"},{key:"change_skin_tone",text:"Change skin tone",action:"skin_tone"},{key:"change_skin_color",text:"Change skin color",action:"skin_color"},{key:"change_runechat_color",text:"Change runechat color",action:"runechat_color"},{key:"change_head_accessory_color",text:"Change head accessory color",action:"head_accessory_color"},{key:"change_hair_color",text:"Change hair color",action:"hair_color"},{key:"change_secondary_hair_color",text:"Change secondary hair color",action:"secondary_hair_color"},{key:"change_facial_hair_color",text:"Change facial hair color",action:"facial_hair_color"},{key:"change_secondary_facial_hair_color",text:"Change secondary facial hair color",action:"secondary_facial_hair_color"},{key:"change_head_marking_color",text:"Change head marking color",action:"head_marking_color"},{key:"change_body_marking_color",text:"Change body marking color",action:"body_marking_color"},{key:"change_tail_marking_color",text:"Change tail marking color",action:"tail_marking_color"}];return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Colors",children:m.map(function(d){return!!i[d.key]&&(0,e.createComponentVNode)(2,t.Button,{content:d.text,onClick:function(){function u(){return c(d.action)}return u}()},d.key)})})}},72285:function(T,r,n){"use strict";r.__esModule=!0,r.AtmosAlertConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AtmosAlertConsole=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.priority||[],m=c.minor||[];return(0,e.createComponentVNode)(2,o.Window,{width:350,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Alarms",children:(0,e.createVNode)(1,"ul",null,[i.length===0&&(0,e.createVNode)(1,"li","color-good","No Priority Alerts",16),i.map(function(d){return(0,e.createVNode)(1,"li","color-bad",d,0,null,d)}),m.length===0&&(0,e.createVNode)(1,"li","color-good","No Minor Alerts",16),m.map(function(d){return(0,e.createVNode)(1,"li","color-average",d,0,null,d)})],0)})})})}return b}()},65805:function(T,r,n){"use strict";r.__esModule=!0,r.AtmosControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(36352),f=n(98595),b=function(i){if(i===0)return(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Good"});if(i===1)return(0,e.createComponentVNode)(2,t.Box,{color:"orange",bold:!0,children:"Warning"});if(i===2)return(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"DANGER"})},y=function(i){if(i===0)return"green";if(i===1)return"orange";if(i===2)return"red"},S=r.AtmosControl=function(){function c(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=(0,a.useLocalState)(m,"tabIndex",0),v=l[0],N=l[1],C=function(){function p(g){switch(g){case 0:return(0,e.createComponentVNode)(2,k);case 1:return(0,e.createComponentVNode)(2,h);default:return"WE SHOULDN'T BE HERE!"}}return p}();return(0,e.createComponentVNode)(2,f.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:v===0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===0,onClick:function(){function p(){return N(0)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===1,onClick:function(){function p(){return N(1)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),C(v)]})})})}return c}(),k=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.alarms;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Access"})]}),l.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,o.TableCell,{children:v.name}),(0,e.createComponentVNode)(2,o.TableCell,{children:b(v.danger)}),(0,e.createComponentVNode)(2,o.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Access",onClick:function(){function N(){return u("open_alarm",{aref:v.ref})}return N}()})})]},v.name)})]})})},h=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.alarms;return(0,e.createComponentVNode)(2,t.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,t.NanoMap,{children:l.filter(function(v){return v.z===2}).map(function(v){return(0,e.createComponentVNode)(2,t.NanoMap.MarkerIcon,{x:v.x,y:v.y,icon:"circle",tooltip:v.name,color:y(v.danger),onClick:function(){function N(){return u("open_alarm",{aref:v.ref})}return N}()},v.ref)})})})}},87816:function(T,r,n){"use strict";r.__esModule=!0,r.AtmosFilter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AtmosFilter=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.on,m=c.pressure,d=c.max_pressure,u=c.filter_type,s=c.filter_type_list;return(0,e.createComponentVNode)(2,o.Window,{width:380,height:140,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:i?"On":"Off",color:i?null:"red",selected:i,onClick:function(){function l(){return h("power")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:m===0,width:2.2,onClick:function(){function l(){return h("min_pressure")}return l}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:d,value:m,onDrag:function(){function l(v,N){return h("custom_pressure",{pressure:N})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===d,width:2.2,onClick:function(){function l(){return h("max_pressure")}return l}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:s.map(function(l){return(0,e.createComponentVNode)(2,t.Button,{selected:l.gas_type===u,content:l.label,onClick:function(){function v(){return h("set_filter",{filter:l.gas_type})}return v}()},l.label)})})]})})})})}return b}()},52977:function(T,r,n){"use strict";r.__esModule=!0,r.AtmosMixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AtmosMixer=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.on,d=i.pressure,u=i.max_pressure,s=i.node1_concentration,l=i.node2_concentration;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:165,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:m?"On":"Off",color:m?null:"red",selected:m,onClick:function(){function v(){return c("power")}return v}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:d===0,width:2.2,onClick:function(){function v(){return c("min_pressure")}return v}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:u,value:d,onDrag:function(){function v(N,C){return c("custom_pressure",{pressure:C})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:d===u,width:2.2,onClick:function(){function v(){return c("max_pressure")}return v}()})]}),(0,e.createComponentVNode)(2,b,{node_name:"Node 1",node_ref:s}),(0,e.createComponentVNode)(2,b,{node_name:"Node 2",node_ref:l})]})})})})}return y}(),b=function(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=S.node_name,d=S.node_ref;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:m,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",width:2.2,disabled:d===0,onClick:function(){function u(){return c("set_node",{node_name:m,concentration:(d-10)/100})}return u}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"%",width:6.1,lineHeight:1.5,stepPixelSize:10,minValue:0,maxValue:100,value:d,onChange:function(){function u(s,l){return c("set_node",{node_name:m,concentration:l/100})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:d===100,onClick:function(){function u(){return c("set_node",{node_name:m,concentration:(d+10)/100})}return u}()})]})}},11748:function(T,r,n){"use strict";r.__esModule=!0,r.AtmosPump=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.AtmosPump=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.on,m=c.rate,d=c.max_rate,u=c.gas_unit,s=c.step;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:110,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:i?"On":"Off",color:i?null:"red",selected:i,onClick:function(){function l(){return h("power")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:m===0,width:2.2,onClick:function(){function l(){return h("min_rate")}return l}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:u,width:6.1,lineHeight:1.5,step:s,minValue:0,maxValue:d,value:m,onDrag:function(){function l(v,N){return h("custom_rate",{rate:N})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===d,width:2.2,onClick:function(){function l(){return h("max_rate")}return l}()})]})]})})})})}return b}()},69321:function(T,r,n){"use strict";r.__esModule=!0,r.AtmosTankControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(44879),f=n(76910),b=n(98595),y=r.AtmosTankControl=function(){function S(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.sensors||{};return(0,e.createComponentVNode)(2,b.Window,{width:400,height:400,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:[Object.keys(d).map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[Object.keys(d[u]).indexOf("pressure")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:[d[u].pressure," kpa"]}):"",Object.keys(d[u]).indexOf("temperature")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[d[u].temperature," K"]}):"",["o2","n2","plasma","co2","n2o"].map(function(s){return Object.keys(d[u]).indexOf(s)>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(0,f.getGasLabel)(s),children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:(0,f.getGasColor)(s),value:d[u][s],minValue:0,maxValue:100,children:(0,o.toFixed)(d[u][s],2)+"%"})},(0,f.getGasLabel)(s)):""})]})},u)}),m.inlet&&Object.keys(m.inlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Inlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(m.inlet.on,"power-off"),content:m.inlet.on?"On":"Off",color:m.inlet.on?null:"red",selected:m.inlet.on,onClick:function(){function u(){return i("toggle_active",{dev:"inlet"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"L/s",width:6.1,lineHeight:1.5,step:1,minValue:0,maxValue:50,value:m.inlet.rate,onDrag:function(){function u(s,l){return i("set_pressure",{dev:"inlet",val:l})}return u}()})})]})}):"",m.outlet&&Object.keys(m.outlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Outlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(m.outlet.on,"power-off"),content:m.outlet.on?"On":"Off",color:m.outlet.on?null:"red",selected:m.outlet.on,onClick:function(){function u(){return i("toggle_active",{dev:"outlet"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:5066,value:m.outlet.rate,onDrag:function(){function u(s,l){return i("set_pressure",{dev:"outlet",val:l})}return u}()})})]})}):""]})})}return S}()},59179:function(T,r,n){"use strict";r.__esModule=!0,r.Autolathe=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),f=n(36036),b=n(98595),y=n(25328),S=function(c,i,m,d){return c.requirements===null?!0:!(c.requirements.metal*d>i||c.requirements.glass*d>m)},k=r.Autolathe=function(){function h(c,i){var m=(0,o.useBackend)(i),d=m.act,u=m.data,s=u.total_amount,l=u.max_amount,v=u.metal_amount,N=u.glass_amount,C=u.busyname,p=u.busyamt,g=u.showhacked,V=u.buildQueue,B=u.buildQueueLen,I=u.recipes,L=u.categories,w=(0,o.useSharedState)(i,"category",0),x=w[0],A=w[1];x===0&&(x="Tools");var E=v.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),P=N.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),j=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),M=(0,o.useSharedState)(i,"search_text",""),R=M[0],D=M[1],W=(0,y.createSearch)(R,function(G){return G.name}),_="";B>0&&(_=V.map(function(G,$){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"times",color:"transparent",content:V[$][0],onClick:function(){function Q(){return d("remove_from_queue",{remove_from_queue:V.indexOf(G)+1})}return Q}()},G)},$)}));var U=(0,a.flow)([(0,t.filter)(function(G){return(G.category.indexOf(x)>-1||R)&&(u.showhacked||!G.hacked)}),R&&(0,t.filter)(W),(0,t.sortBy)(function(G){return G.name.toLowerCase()})])(I),K="Build";return R?K="Results for: '"+R+"':":x&&(K="Build ("+x+")"),(0,e.createComponentVNode)(2,b.Window,{width:750,height:525,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{width:"70%",children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:K,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"150px",options:L,selected:x,onSelected:function(){function G($){return A($)}return G}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function G($,Q){return D(Q)}return G}(),mb:1}),U.map(function(G){return(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+G.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===G.name&&u.busyamt===1,disabled:!S(G,u.metal_amount,u.glass_amount,1),onClick:function(){function $(){return d("make",{make:G.uid,multiplier:1})}return $}(),children:(0,y.toTitleCase)(G.name)}),G.max_multiplier>=10&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===G.name&&u.busyamt===10,disabled:!S(G,u.metal_amount,u.glass_amount,10),onClick:function(){function $(){return d("make",{make:G.uid,multiplier:10})}return $}(),children:"10x"}),G.max_multiplier>=25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===G.name&&u.busyamt===25,disabled:!S(G,u.metal_amount,u.glass_amount,25),onClick:function(){function $(){return d("make",{make:G.uid,multiplier:25})}return $}(),children:"25x"}),G.max_multiplier>25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===G.name&&u.busyamt===G.max_multiplier,disabled:!S(G,u.metal_amount,u.glass_amount,G.max_multiplier),onClick:function(){function $(){return d("make",{make:G.uid,multiplier:G.max_multiplier})}return $}(),children:[G.max_multiplier,"x"]}),G.requirements&&Object.keys(G.requirements).map(function($){return(0,y.toTitleCase)($)+": "+G.requirements[$]}).join(", ")||(0,e.createComponentVNode)(2,f.Box,{children:"No resources required."})]},G.ref)})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{width:"30%",children:[(0,e.createComponentVNode)(2,f.Section,{title:"Materials",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Metal",children:E}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Glass",children:P}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Total",children:j}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Storage",children:[u.fill_percent,"% Full"]})]})}),(0,e.createComponentVNode)(2,f.Section,{title:"Building",children:(0,e.createComponentVNode)(2,f.Box,{color:C?"green":"",children:C||"Nothing"})}),(0,e.createComponentVNode)(2,f.Section,{title:"Build Queue",height:23.7,children:[_,(0,e.createComponentVNode)(2,f.Button,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!u.buildQueueLen,onClick:function(){function G(){return d("clear_queue")}return G}()})]})]})]})})})}return h}()},5147:function(T,r,n){"use strict";r.__esModule=!0,r.BioChipPad=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.BioChipPad=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.implant,m=c.contains_case,d=c.gps,u=c.tag,s=(0,a.useLocalState)(S,"newTag",u),l=s[0],v=s[1];return(0,e.createComponentVNode)(2,o.Window,{width:410,height:325,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Bio-chip Mini-Computer",buttons:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject Case",icon:"eject",disabled:!m,onClick:function(){function N(){return h("eject_case")}return N}()})}),children:i&&m?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{bold:!0,mb:2,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+i.image,ml:0,mr:2,style:{"vertical-align":"middle",width:"32px"}}),i.name]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Life",children:i.life}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Notes",children:i.notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Function",children:i.function}),!!d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,t.Input,{width:"5.5rem",value:u,onEnter:function(){function N(){return h("tag",{newtag:l})}return N}(),onInput:function(){function N(C,p){return v(p)}return N}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:u===l,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function N(){return h("tag",{newtag:l})}return N}(),children:(0,e.createComponentVNode)(2,t.Icon,{name:"pen"})})]})]})],4):m?(0,e.createComponentVNode)(2,t.Box,{children:"This bio-chip case has no implant!"}):(0,e.createComponentVNode)(2,t.Box,{children:"Please insert a bio-chip casing!"})})})})}return b}()},64273:function(T,r,n){"use strict";r.__esModule=!0,r.Biogenerator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(62411),b=r.Biogenerator=function(){function c(i,m){var d=(0,a.useBackend)(m),u=d.data,s=d.config,l=u.container,v=u.processing,N=s.title;return(0,e.createComponentVNode)(2,o.Window,{width:390,height:595,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Operating,{operating:v,name:N}),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,k),l?(0,e.createComponentVNode)(2,h):(0,e.createComponentVNode)(2,y)]})})})}return c}(),y=function(i,m){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The biogenerator is missing a container."]})})})},S=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.biomass,v=s.container,N=s.container_curr_reagents,C=s.container_max_reagents;return(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"20px",color:"silver",children:"Biomass:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"5px",children:l}),(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"21px",mt:"8px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"10px",color:"silver",children:"Container:"}),v?(0,e.createComponentVNode)(2,t.ProgressBar,{value:N,maxValue:C,children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:N+" / "+C+" units"})}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"None"})]})]})},k=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.has_plants,v=s.container;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:!l,tooltip:l?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",content:"Activate",onClick:function(){function N(){return u("activate")}return N}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"flask",disabled:!v,tooltip:v?"":"The biogenerator does not have a container.",tooltipPosition:"top",content:"Detach Container",onClick:function(){function N(){return u("detach_container")}return N}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!l,tooltip:l?"":"There are no stored plants to eject.",tooltipPosition:"top-end",content:"Eject Plants",onClick:function(){function N(){return u("eject_plants")}return N}()})})]})})},h=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.biomass,v=s.product_list,N=(0,a.useSharedState)(m,"vendAmount",1),C=N[0],p=N[1],g=Object.entries(v).map(function(V,B){var I=Object.entries(V[1]).map(function(L){return L[1]});return(0,e.createComponentVNode)(2,t.Collapsible,{title:V[0],open:!0,children:I.map(function(L){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",ml:"2px",children:L.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"20%",children:[L.cost*C,(0,e.createComponentVNode)(2,t.Icon,{ml:"5px",name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{content:"Vend",disabled:ls&&"bad"||"good";return(0,e.createComponentVNode)(2,o.Window,{width:650,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Input Management",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Input",children:[(0,e.createComponentVNode)(2,t.Button,{icon:B&&!g?"toggle-on":"toggle-off",content:"Auto shutdown",color:B&&!g?"green":"red",disabled:!!g,tooltip:"Turn auto shutdown on or off",onClick:function(){function x(){return i("auto_shutdown")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:I&&!g?"toggle-on":"toggle-off",content:"Stabilizers",color:I&&!g?"green":"red",disabled:!!g,tooltip:"Turn stabilizers on or off",onClick:function(){function x(){return i("stabilizers")}return x}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Level",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Desired Level",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:u===0||g,tooltip:"Set to 0",onClick:function(){function x(){return i("set",{set_level:0})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"step-backward",tooltip:"Decrease to actual input level",disabled:u===0||g,onClick:function(){function x(){return i("set",{set_level:s})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:u===0||g,tooltip:"Decrease one step",onClick:function(){function x(){return i("decrease")}return x}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,t.Slider,{disabled:g,value:u,fillValue:s,minValue:0,color:w,maxValue:p,stepPixelSize:20,step:1,onChange:function(){function x(A,E){return i("set",{set_level:E})}return x}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:u===p||g,tooltip:"Increase one step",tooltipPosition:"left",onClick:function(){function x(){return i("increase")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:u===p||g,tooltip:"Set to max",tooltipPosition:"left",onClick:function(){function x(){return i("set",{set_level:p})}return x}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Power Use",children:(0,f.formatPower)(N)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mining Power Use",children:(0,f.formatPower)(N-L)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stabilizer Power Use",children:(0,f.formatPower)(L)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mining Power for next level",children:(0,f.formatPower)(V)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Surplus Power",children:(0,f.formatPower)(C)})]})]})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Points",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Points",children:v})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{align:"end",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(x){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:x.name,children:(0,e.createComponentVNode)(2,t.Button,{disabled:x.price>=l,onClick:function(){function A(){return i("vend",{target:x.key})}return A}(),content:x.price})},x.key)})})})})]})})]})})})}return S}(),y=r.Alerts=function(){function S(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.product||[],u=m.inputLevel,s=m.emagged,l=m.safeLevels,v=m.autoShutown,N=m.stabilizers,C=m.overhead;return(0,e.createFragment)([!v&&!s&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Auto shutdown disabled"}),s?(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"All safeties disabled"}):u<=l?"":N?u-C>l?(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Stabilizers overwhelmed, Instability likely"}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"High Power, engaging stabilizers"}):(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Stabilizers disabled, Instability likely"})],0)}return S}()},33758:function(T,r,n){"use strict";r.__esModule=!0,r.BodyScanner=void 0;var e=n(89005),a=n(44879),t=n(25328),o=n(72253),f=n(36036),b=n(98595),y=[["good","Alive"],["average","Critical"],["bad","DEAD"]],S=[["hasVirus","bad","Viral pathogen detected in blood stream."],["blind","average","Cataracts detected."],["colourblind","average","Photoreceptor abnormalities detected."],["nearsighted","average","Retinal misalignment detected."]],k=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Cellular","cloneLoss"],["Burn","fireLoss"],["Inebriation","drunkenness"]],h={average:[.25,.5],bad:[.5,1/0]},c=function(B,I){for(var L=[],w=0;w0?B.filter(function(I){return!!I}).reduce(function(I,L){return(0,e.createFragment)([I,(0,e.createComponentVNode)(2,f.Box,{children:L},L)],0)},null):null},m=function(B){if(B>100){if(B<300)return"mild infection";if(B<400)return"mild infection+";if(B<500)return"mild infection++";if(B<700)return"acute infection";if(B<800)return"acute infection+";if(B<900)return"acute infection++";if(B>=900)return"septic"}return""},d=r.BodyScanner=function(){function V(B,I){var L=(0,o.useBackend)(I),w=L.data,x=w.occupied,A=w.occupant,E=A===void 0?{}:A,P=x?(0,e.createComponentVNode)(2,u,{occupant:E}):(0,e.createComponentVNode)(2,g);return(0,e.createComponentVNode)(2,b.Window,{width:700,height:600,title:"Body Scanner",children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:P})})}return V}(),u=function(B){var I=B.occupant;return(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,s,{occupant:I}),(0,e.createComponentVNode)(2,l,{occupant:I}),(0,e.createComponentVNode)(2,v,{occupant:I}),(0,e.createComponentVNode)(2,C,{organs:I.extOrgan}),(0,e.createComponentVNode)(2,p,{organs:I.intOrgan})]})},s=function(B,I){var L=(0,o.useBackend)(I),w=L.act,x=L.data,A=x.occupant;return(0,e.createComponentVNode)(2,f.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Button,{icon:"print",onClick:function(){function E(){return w("print_p")}return E}(),children:"Print Report"}),(0,e.createComponentVNode)(2,f.Button,{icon:"user-slash",onClick:function(){function E(){return w("ejectify")}return E}(),children:"Eject"})],4),children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Name",children:A.name}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:A.maxHealth,value:A.health/A.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Status",color:y[A.stat][0],children:y[A.stat][1]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,f.AnimatedNumber,{value:(0,a.round)(A.bodyTempC)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,f.AnimatedNumber,{value:(0,a.round)(A.bodyTempF)}),"\xB0F"]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Implants",children:A.implant_len?(0,e.createComponentVNode)(2,f.Box,{children:A.implant.map(function(E){return E.name}).join(", ")}):(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"None"})})]})})},l=function(B){var I=B.occupant;return I.hasBorer||I.blind||I.colourblind||I.nearsighted||I.hasVirus?(0,e.createComponentVNode)(2,f.Section,{title:"Abnormalities",children:S.map(function(L,w){if(I[L[0]])return(0,e.createComponentVNode)(2,f.Box,{color:L[1],bold:L[1]==="bad",children:L[2]},L[2])})}):(0,e.createComponentVNode)(2,f.Section,{title:"Abnormalities",children:(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No abnormalities found."})})},v=function(B){var I=B.occupant;return(0,e.createComponentVNode)(2,f.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,f.Table,{children:c(k,function(L,w,x){return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:[L[0],":"]}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:!!w&&w[0]+":"})]}),(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:(0,e.createComponentVNode)(2,N,{value:I[L[1]],marginBottom:x100)&&"average"||!!I.status.robotic&&"label",width:"33%",children:(0,t.capitalize)(I.name)}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,f.ProgressBar,{m:-.5,min:"0",max:I.maxHealth,mt:L>0&&"0.5rem",value:I.totalLoss/I.maxHealth,ranges:h,children:(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Tooltip,{content:"Total damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"heartbeat",mr:.5}),(0,a.round)(I.totalLoss)]})}),!!I.bruteLoss&&(0,e.createComponentVNode)(2,f.Tooltip,{content:"Brute damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,f.Icon,{name:"bone",mr:.5}),(0,a.round)(I.bruteLoss)]})}),!!I.fireLoss&&(0,e.createComponentVNode)(2,f.Tooltip,{content:"Burn damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"fire",mr:.5}),(0,a.round)(I.fireLoss)]})})]})})}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,f.Box,{color:"average",inline:!0,children:i([!!I.internalBleeding&&"Internal bleeding",!!I.burnWound&&"Critical tissue burns",!!I.lungRuptured&&"Ruptured lung",!!I.status.broken&&I.status.broken,m(I.germ_level),!!I.open&&"Open incision"])}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,children:[i([!!I.status.splinted&&(0,e.createComponentVNode)(2,f.Box,{color:"good",children:"Splinted"}),!!I.status.robotic&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Robotic"}),!!I.status.dead&&(0,e.createComponentVNode)(2,f.Box,{color:"bad",bold:!0,children:"DEAD"})]),i(I.shrapnel.map(function(w){return w.known?w.name:"Unknown object"}))]})]})]},L)})]})})},p=function(B){return B.organs.length===0?(0,e.createComponentVNode)(2,f.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"N/A"})}):(0,e.createComponentVNode)(2,f.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,f.Table,{children:[(0,e.createComponentVNode)(2,f.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:"Damage"}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",children:"Injuries"})]}),B.organs.map(function(I,L){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{color:!!I.dead&&"bad"||I.germ_level>100&&"average"||I.robotic>0&&"label",width:"33%",children:(0,t.capitalize)(I.name)}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:I.maxHealth,value:I.damage/I.maxHealth,mt:L>0&&"0.5rem",ranges:h,children:(0,a.round)(I.damage)})}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,f.Box,{color:"average",inline:!0,children:i([m(I.germ_level)])}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,children:i([I.robotic===1&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Robotic"}),I.robotic===2&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Assisted"}),!!I.dead&&(0,e.createComponentVNode)(2,f.Box,{color:"bad",bold:!0,children:"DEAD"})])})]})]},L)})]})})},g=function(){return(0,e.createComponentVNode)(2,f.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},67963:function(T,r,n){"use strict";r.__esModule=!0,r.BookBinder=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=n(39473),y=r.BookBinder=function(){function S(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.selectedbook,u=m.book_categories,s=[];return u.map(function(l){return s[l.description]=l.category_id}),(0,e.createComponentVNode)(2,o.Window,{width:600,height:400,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Book Binder",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",width:"auto",content:"Print Book",onClick:function(){function l(){return i("print_book")}return l}()}),children:[(0,e.createComponentVNode)(2,t.Box,{ml:10,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:"1rem"}),"Book Binder"]}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:d.title,onClick:function(){function l(){return(0,f.modalOpen)(h,"edit_selected_title")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:d.author,onClick:function(){function l(){return(0,f.modalOpen)(h,"edit_selected_author")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"190px",options:u.map(function(l){return l.description}),onSelected:function(){function l(v){return i("toggle_binder_category",{category_id:s[v]})}return l}()})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",width:"auto",content:"Edit Summary",onClick:function(){function l(){return(0,f.modalOpen)(h,"edit_selected_summary")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:d.summary})]}),(0,e.createVNode)(1,"br"),u.filter(function(l){return d.categories.includes(l.category_id)}).map(function(l){return(0,e.createComponentVNode)(2,t.Button,{content:l.description,selected:!0,icon:"unlink",onClick:function(){function v(){return i("toggle_binder_category",{category_id:l.category_id})}return v}()},l.category_id)})]})})]})})})]})}return S}()},61925:function(T,r,n){"use strict";r.__esModule=!0,r.BotCall=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(c){var i=[{modes:[0],label:"Idle",color:"green"},{modes:[1,2,3],label:"Arresting",color:"yellow"},{modes:[4,5],label:"Patrolling",color:"average"},{modes:[9],label:"Moving",color:"average"},{modes:[6,11],label:"Responding",color:"green"},{modes:[12],label:"Delivering Cargo",color:"blue"},{modes:[13],label:"Returning Home",color:"blue"},{modes:[7,8,10,14,15,16,17,18,19],label:"Working",color:"blue"}],m=i.find(function(d){return d.modes.includes(c)});return(0,e.createComponentVNode)(2,t.Box,{color:m.color,children:[" ",m.label," "]})},b=r.BotCall=function(){function h(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=(0,a.useLocalState)(i,"tabIndex",0),l=s[0],v=s[1],N={0:"Security",1:"Medibot",2:"Cleanbot",3:"Floorbot",4:"Mule",5:"Honkbot"},C=function(){function p(g){return N[g]?(0,e.createComponentVNode)(2,y,{model:N[g]}):"This should not happen. Report on Paradise Github"}return p}();return(0,e.createComponentVNode)(2,o.Window,{width:700,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:l===0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,textAlign:"center",children:Array.from({length:6}).map(function(p,g){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:l===g,onClick:function(){function V(){return v(g)}return V}(),children:N[g]},g)})})}),C(l)]})})})}return h}(),y=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.bots;return s[c.model]!==void 0?(0,e.createComponentVNode)(2,k,{model:[c.model]}):(0,e.createComponentVNode)(2,S,{model:[c.model]})},S=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data;return(0,e.createComponentVNode)(2,t.Stack,{justify:"center",align:"center",fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Box,{bold:1,color:"bad",children:["No ",[c.model]," detected"]})})},k=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.bots;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Model"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Location"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Interface"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Call"})]}),s[c.model].map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.model}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.on?f(l.status):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Off"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.location}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Interface",onClick:function(){function v(){return d("interface",{botref:l.UID})}return v}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Call",onClick:function(){function v(){return d("call",{botref:l.UID})}return v}()})})]},l.UID)})]})})})}},20464:function(T,r,n){"use strict";r.__esModule=!0,r.BotClean=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(92963),b=r.BotClean=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.locked,d=i.noaccess,u=i.maintpanel,s=i.on,l=i.autopatrol,v=i.canhack,N=i.emagged,C=i.remote_disabled,p=i.painame,g=i.cleanblood,V=i.area;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Cleaning Settings",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Clean Blood",disabled:d,onClick:function(){function B(){return c("blood")}return B}()})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc Settings",children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:V?"Reset Area Selection":"Restrict to Current Area",onClick:function(){function B(){return c("area")}return B}()}),V!==null&&(0,e.createComponentVNode)(2,t.LabeledList,{mb:1,children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Locked Area",children:V})})]}),p&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:p,disabled:d,onClick:function(){function B(){return c("ejectpai")}return B}()})})]})})}return y}()},69479:function(T,r,n){"use strict";r.__esModule=!0,r.BotFloor=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(92963),b=r.BotFloor=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.noaccess,d=i.painame,u=i.hullplating,s=i.replace,l=i.eat,v=i.make,N=i.fixfloor,C=i.nag_empty,p=i.magnet,g=i.tiles_amount;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:510,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Floor Settings",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"5px",children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tiles Left",children:g})}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Add tiles to new hull plating",tooltip:"Fixing a plating requires the removal of floor tile. This will place it back after repairing. Same goes for hull breaches",disabled:m,onClick:function(){function V(){return c("autotile")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Add floor tiles on exposed hull plating",tooltip:"Example: It will add tiles to maintenance",disabled:m,onClick:function(){function V(){return c("replacetiles")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:N,content:"Repair damaged tiles and platings",disabled:m,onClick:function(){function V(){return c("fixfloors")}return V}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Miscellaneous",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:l,content:"Finds tiles",disabled:m,onClick:function(){function V(){return c("eattiles")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Make pieces of metal into tiles when empty",disabled:m,onClick:function(){function V(){return c("maketiles")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Transmit notice when empty",disabled:m,onClick:function(){function V(){return c("nagonempty")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:p,content:"Traction Magnets",disabled:m,onClick:function(){function V(){return c("anchored")}return V}()})]}),d&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,icon:"eject",content:d,disabled:m,onClick:function(){function V(){return c("ejectpai")}return V}()})})]})})}return y}()},59887:function(T,r,n){"use strict";r.__esModule=!0,r.BotHonk=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(92963),b=r.BotHonk=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:220,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.BotStatus)})})}return y}()},80063:function(T,r,n){"use strict";r.__esModule=!0,r.BotMed=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(92963),b=r.BotMed=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.locked,d=i.noaccess,u=i.maintpanel,s=i.on,l=i.autopatrol,v=i.canhack,N=i.emagged,C=i.remote_disabled,p=i.painame,g=i.shut_up,V=i.declare_crit,B=i.stationary_mode,I=i.heal_threshold,L=i.injection_amount,w=i.use_beaker,x=i.treat_virus,A=i.reagent_glass;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Communication Settings",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Speaker",checked:!g,disabled:d,onClick:function(){function E(){return c("toggle_speaker")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Critical Patient Alerts",checked:V,disabled:d,onClick:function(){function E(){return c("toggle_critical_alerts")}return E}()})]}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Treatment Settings",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Healing Threshold",children:(0,e.createComponentVNode)(2,t.Slider,{value:I.value,minValue:I.min,maxValue:I.max,step:5,disabled:d,onChange:function(){function E(P,j){return c("set_heal_threshold",{target:j})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Injection Level",children:(0,e.createComponentVNode)(2,t.Slider,{value:L.value,minValue:L.min,maxValue:L.max,step:5,format:function(){function E(P){return P+"u"}return E}(),disabled:d,onChange:function(){function E(P,j){return c("set_injection_amount",{target:j})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reagent Source",children:(0,e.createComponentVNode)(2,t.Button,{content:w?"Beaker":"Internal Synthesizer",icon:w?"flask":"cogs",disabled:d,onClick:function(){function E(){return c("toggle_use_beaker")}return E}()})}),A&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:A.amount,minValue:0,maxValue:A.max_amount,children:[A.amount," / ",A.max_amount]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{ml:1,children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject",disabled:d,onClick:function(){function E(){return c("eject_reagent_glass")}return E}()})})]})})]}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{mt:1,fluid:!0,content:"Treat Viral Infections",checked:x,disabled:d,onClick:function(){function E(){return c("toggle_treat_viral")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Stationary Mode",checked:B,disabled:d,onClick:function(){function E(){return c("toggle_stationary_mode")}return E}()})]}),p&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:p,disabled:d,onClick:function(){function E(){return c("ejectpai")}return E}()})})]})})})}return y}()},74439:function(T,r,n){"use strict";r.__esModule=!0,r.BotSecurity=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(92963),b=r.BotSecurity=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.noaccess,d=i.painame,u=i.check_id,s=i.check_weapons,l=i.check_warrant,v=i.arrest_mode,N=i.arrest_declare;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:445,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Who To Arrest",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Unidentifiable Persons",disabled:m,onClick:function(){function C(){return c("authid")}return C}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Unauthorized Weapons",disabled:m,onClick:function(){function C(){return c("authweapon")}return C}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:l,content:"Wanted Criminals",disabled:m,onClick:function(){function C(){return c("authwarrant")}return C}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Arrest Procedure",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Detain Targets Indefinitely",disabled:m,onClick:function(){function C(){return c("arrtype")}return C}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:N,content:"Announce Arrests On Radio",disabled:m,onClick:function(){function C(){return c("arrdeclare")}return C}()})]}),d&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:d,disabled:m,onClick:function(){function C(){return c("ejectpai")}return C}()})})]})})}return y}()},10833:function(T,r,n){"use strict";r.__esModule=!0,r.BrigCells=void 0;var e=n(89005),a=n(98595),t=n(36036),o=n(72253),f=function(k,h){var c=k.cell,i=(0,o.useBackend)(h),m=i.act,d=c.cell_id,u=c.occupant,s=c.crimes,l=c.brigged_by,v=c.time_left_seconds,N=c.time_set_seconds,C=c.ref,p="";v>0&&(p+=" BrigCells__listRow--active");var g=function(){m("release",{ref:C})};return(0,e.createComponentVNode)(2,t.Table.Row,{className:p,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:N})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:v})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{type:"button",onClick:g,children:"Release"})})]})},b=function(k){var h=k.cells;return(0,e.createComponentVNode)(2,t.Table,{className:"BrigCells__list",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Cell"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Occupant"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Crimes"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Brigged By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Brigged For"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Release"})]}),h.map(function(c){return(0,e.createComponentVNode)(2,f,{cell:c},c.ref)})]})},y=r.BrigCells=function(){function S(k,h){var c=(0,o.useBackend)(h),i=c.act,m=c.data,d=m.cells;return(0,e.createComponentVNode)(2,a.Window,{theme:"security",width:800,height:400,children:(0,e.createComponentVNode)(2,a.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,b,{cells:d})})})})})}return S}()},45761:function(T,r,n){"use strict";r.__esModule=!0,r.BrigTimer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.BrigTimer=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data;c.nameText=c.occupant,c.timing&&(c.prisoner_hasrec?c.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:c.occupant}):c.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:c.occupant}));var i="pencil-alt";c.prisoner_name&&(c.prisoner_hasrec||(i="exclamation-triangle"));var m=[],d=0;for(d=0;dm?this.substring(0,m)+"...":this};var k=function(d,u){var s,l;if(!u)return[];var v=d.findIndex(function(N){return N.name===u.name});return[(s=d[v-1])==null?void 0:s.name,(l=d[v+1])==null?void 0:l.name]},h=function(d,u){u===void 0&&(u="");var s=(0,f.createSearch)(u,function(l){return l.name});return(0,t.flow)([(0,a.filter)(function(l){return l==null?void 0:l.name}),u&&(0,a.filter)(s),(0,a.sortBy)(function(l){return l.name})])(d)},c=r.CameraConsole=function(){function m(d,u){var s=(0,b.useBackend)(u),l=s.act,v=s.data,N=s.config,C=v.mapRef,p=v.activeCamera,g=h(v.cameras),V=k(g,p),B=V[0],I=V[1];return(0,e.createComponentVNode)(2,S.Window,{width:870,height:708,children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,i)})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),p&&p.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-left",disabled:!B,onClick:function(){function L(){return l("switch_camera",{name:B})}return L}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-right",disabled:!I,onClick:function(){function L(){return l("switch_camera",{name:I})}return L}()})],4),(0,e.createComponentVNode)(2,y.ByondUi,{className:"CameraConsole__map",params:{id:C,type:"map"}})],4)]})}return m}(),i=r.CameraConsoleContent=function(){function m(d,u){var s=(0,b.useBackend)(u),l=s.act,v=s.data,N=(0,b.useLocalState)(u,"searchText",""),C=N[0],p=N[1],g=v.activeCamera,V=h(v.cameras,C);return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Input,{fluid:!0,placeholder:"Search for a camera",onInput:function(){function B(I,L){return p(L)}return B}()})}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:V.map(function(B){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid","Button--color--transparent",g&&B.name===g.name&&"Button--selected"]),B.name.trimLongStr(23),0,{title:B.name,onClick:function(){function I(){return l("switch_camera",{name:B.name})}return I}()},B.name)})})})]})}return m}()},52927:function(T,r,n){"use strict";r.__esModule=!0,r.Canister=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(49968),b=n(98595),y=r.Canister=function(){function S(k,h){var c=(0,t.useBackend)(h),i=c.act,m=c.data,d=m.portConnected,u=m.tankPressure,s=m.releasePressure,l=m.defaultReleasePressure,v=m.minReleasePressure,N=m.maxReleasePressure,C=m.valveOpen,p=m.name,g=m.canLabel,V=m.colorContainer,B=m.color_index,I=m.hasHoldingTank,L=m.holdingTank,w="";B.prim&&(w=V.prim.options[B.prim].name);var x="";B.sec&&(x=V.sec.options[B.sec].name);var A="";B.ter&&(A=V.ter.options[B.ter].name);var E="";B.quart&&(E=V.quart.options[B.quart].name);var P=[],j=[],M=[],R=[],D=0;for(D=0;Dp.current_positions&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:p.total_positions-p.current_positions})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"0"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"-",disabled:l.cooldown_time||!p.can_close,onClick:function(){function g(){return s("make_job_unavailable",{job:p.title})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"+",disabled:l.cooldown_time||!p.can_open,onClick:function(){function g(){return s("make_job_available",{job:p.title})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:l.target_dept&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:l.priority_jobs.indexOf(p.title)>-1?"Yes":""})||(0,e.createComponentVNode)(2,t.Button,{content:p.is_priority?"Yes":"No",selected:p.is_priority,disabled:l.cooldown_time||!p.can_prioritize,onClick:function(){function g(){return s("prioritize_job",{job:p.title})}return g}()})})]},p.title)})]})})]}):C=(0,e.createComponentVNode)(2,S);break;case 2:!l.authenticated||!l.scan_name?C=(0,e.createComponentVNode)(2,S):l.modify_name?C=(0,e.createComponentVNode)(2,f.AccessList,{accesses:l.regions,selectedList:l.selectedAccess,accessMod:function(){function p(g){return s("set",{access:g})}return p}(),grantAll:function(){function p(){return s("grant_all")}return p}(),denyAll:function(){function p(){return s("clear_all")}return p}(),grantDep:function(){function p(g){return s("grant_region",{region:g})}return p}(),denyDep:function(){function p(g){return s("deny_region",{region:g})}return p}()}):C=(0,e.createComponentVNode)(2,k);break;case 3:l.authenticated?l.records.length?C=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Records",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Delete All Records",disabled:!l.authenticated||l.records.length===0||l.target_dept,onClick:function(){function p(){return s("wipe_all_logs")}return p}()}),children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Crewman"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Old Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"New Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Authorized By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Reason"}),!!l.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Deleted By"})]}),l.records.map(function(p){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.transferee}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.oldvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.newvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.whodidit}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.reason}),!!l.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.deletedby})]},p.timestamp)})]}),!!l.iscentcom&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Delete MY Records",color:"purple",disabled:!l.authenticated||l.records.length===0,onClick:function(){function p(){return s("wipe_my_logs")}return p}()})})]}):C=(0,e.createComponentVNode)(2,h):C=(0,e.createComponentVNode)(2,S);break;case 4:!l.authenticated||!l.scan_name?C=(0,e.createComponentVNode)(2,S):C=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Your Team",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Sec Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Actions"})]}),l.people_dept.map(function(p){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.crimstat}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:p.buttontext,disabled:!p.demotable,onClick:function(){function g(){return s("remote_demote",{remote_demote:p.name})}return g}()})})]},p.title)})]})});break;default:C=(0,e.createComponentVNode)(2,t.Section,{title:"Warning",color:"red",children:"ERROR: Unknown Mode."})}return(0,e.createComponentVNode)(2,o.Window,{width:800,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:N}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:v}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:C})]})})})}return i}()},64083:function(T,r,n){"use strict";r.__esModule=!0,r.CargoConsole=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),f=n(36036),b=n(98595),y=n(25328),S=r.CargoConsole=function(){function u(s,l){return(0,e.createComponentVNode)(2,b.Window,{width:900,height:800,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,d)]})})})}return u}(),k=function(s,l){var v=(0,o.useLocalState)(l,"contentsModal",null),N=v[0],C=v[1],p=(0,o.useLocalState)(l,"contentsModalTitle",null),g=p[0],V=p[1];if(N!==null&&g!==null)return(0,e.createComponentVNode)(2,f.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,f.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[g,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,f.Box,{children:N.map(function(B){return(0,e.createComponentVNode)(2,f.Box,{children:["- ",B]},B)})}),(0,e.createComponentVNode)(2,f.Box,{m:2,children:(0,e.createComponentVNode)(2,f.Button,{content:"Close",onClick:function(){function B(){C(null),V(null)}return B}()})})]})},h=function(s,l){var v=(0,o.useBackend)(l),N=v.act,C=v.data,p=C.is_public,g=C.timeleft,V=C.moving,B=C.at_station,I,L;return!V&&!B?(I="Docked off-station",L="Call Shuttle"):!V&&B?(I="Docked at the station",L="Return Shuttle"):V&&(L="In Transit...",g!==1?I="Shuttle is en route (ETA: "+g+" minutes)":I="Shuttle is en route (ETA: "+g+" minute)"),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Status",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Shuttle Status",children:I}),p===0&&(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,f.Button,{content:L,disabled:V,onClick:function(){function w(){return N("moveShuttle")}return w}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Central Command Messages",onClick:function(){function w(){return N("showMessages")}return w}()})]})]})})})},c=function(s,l){var v,N=(0,o.useBackend)(l),C=N.act,p=N.data,g=p.accounts,V=(0,o.useLocalState)(l,"selectedAccount"),B=V[0],I=V[1],L=[];return g.map(function(w){return L[w.name]=w.account_UID}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Payment",children:[(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:g.map(function(w){return w.name}),selected:(v=g.filter(function(w){return w.account_UID===B})[0])==null?void 0:v.name,onSelected:function(){function w(x){return I(L[x])}return w}()}),g.filter(function(w){return w.account_UID===B}).map(function(w){return(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Account Name",children:(0,e.createComponentVNode)(2,f.Stack.Item,{mt:1,children:w.name})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Balance",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:w.balance})})]},w.account_UID)})]})})},i=function(s,l){var v=(0,o.useBackend)(l),N=v.act,C=v.data,p=C.requests,g=C.categories,V=C.supply_packs,B=(0,o.useSharedState)(l,"category","Emergency"),I=B[0],L=B[1],w=(0,o.useSharedState)(l,"search_text",""),x=w[0],A=w[1],E=(0,o.useLocalState)(l,"contentsModal",null),P=E[0],j=E[1],M=(0,o.useLocalState)(l,"contentsModalTitle",null),R=M[0],D=M[1],W=(0,y.createSearch)(x,function(Q){return Q.name}),_=(0,o.useLocalState)(l,"selectedAccount"),U=_[0],K=_[1],G=(0,a.flow)([(0,t.filter)(function(Q){return Q.cat===g.filter(function(J){return J.name===I})[0].category||x}),x&&(0,t.filter)(W),(0,t.sortBy)(function(Q){return Q.name.toLowerCase()})])(V),$="Crate Catalogue";return x?$="Results for '"+x+"':":I&&($="Browsing "+I),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:$,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:g.map(function(Q){return Q.name}),selected:I,onSelected:function(){function Q(J){return L(J)}return Q}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function Q(J,ie){return A(ie)}return Q}(),mb:1}),(0,e.createComponentVNode)(2,f.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:G.map(function(Q){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{bold:!0,children:[Q.name," (",Q.cost," Credits)"]}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,f.Button,{content:"Order 1",icon:"shopping-cart",disabled:!U,onClick:function(){function J(){return N("order",{crate:Q.ref,multiple:!1,account:U})}return J}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Order Multiple",icon:"cart-plus",disabled:!U||Q.singleton,onClick:function(){function J(){return N("order",{crate:Q.ref,multiple:!0,account:U})}return J}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Contents",icon:"search",onClick:function(){function J(){j(Q.contents),D(Q.name)}return J}()})]})]},Q.name)})})})]})})},m=function(s,l){var v=s.request,N,C;switch(v.department){case"Engineering":C="CE",N="orange";break;case"Medical":C="CMO",N="teal";break;case"Science":C="RD",N="purple";break;case"Supply":C="CT",N="brown";break;case"Service":C="HOP",N="olive";break;case"Security":C="HOS",N="red";break;case"Command":C="CAP",N="blue";break;case"Assistant":C="Any Head",N="grey";break}return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{mt:.5,children:"Approval Required:"}),!!v.req_cargo_approval&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"brown",content:"QM",icon:"user-tie",tooltip:"This Order requires approval from the QM still"})}),!!v.req_head_approval&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:N,content:C,disabled:v.req_cargo_approval,icon:"user-tie",tooltip:v.req_cargo_approval?"This Order first requires approval from the QM before the "+C+" can approve it":"This Order requires approval from the "+C+" still"})})]})},d=function(s,l){var v=(0,o.useBackend)(l),N=v.act,C=v.data,p=C.requests,g=C.orders,V=C.shipments;return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:"Orders",children:[(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,f.Table,{children:p.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{className:"Cargo_RequestList",children:[(0,e.createComponentVNode)(2,f.Table.Cell,{mb:1,children:[(0,e.createComponentVNode)(2,f.Box,{children:["Order #",B.ordernum,": ",B.supply_type," (",B.cost," credits) for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)," with"," ",B.department?"The "+B.department+" Department":"Their Personal"," Account"]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]}),(0,e.createComponentVNode)(2,m,{request:B})]}),(0,e.createComponentVNode)(2,f.Stack.Item,{textAlign:"right",children:[(0,e.createComponentVNode)(2,f.Button,{content:"Approve",color:"green",disabled:!B.can_approve,onClick:function(){function I(){return N("approve",{ordernum:B.ordernum})}return I}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Deny",color:"red",disabled:!B.can_deny,onClick:function(){function I(){return N("deny",{ordernum:B.ordernum})}return I}()})]})]},B.ordernum)})}),(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Orders Awaiting Delivery"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:g.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})}),(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Order in Transit"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:V.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})})]})}},87331:function(T,r,n){"use strict";r.__esModule=!0,r.ChangelogView=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ChangelogView=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=(0,a.useLocalState)(S,"onlyRecent",0),m=i[0],d=i[1],u=c.cl_data,s=c.last_cl,l={FIX:(0,e.createComponentVNode)(2,t.Icon,{name:"tools",title:"Fix"}),WIP:(0,e.createComponentVNode)(2,t.Icon,{name:"hard-hat",title:"WIP",color:"orange"}),TWEAK:(0,e.createComponentVNode)(2,t.Icon,{name:"sliders-h",title:"Tweak"}),SOUNDADD:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",title:"Sound Added",color:"green"}),SOUNDDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-mute",title:"Sound Removed",color:"red"}),CODEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",title:"Code Addition",color:"green"}),CODEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"minus",title:"Code Removal",color:"red"}),IMAGEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-plus",title:"Sprite Addition",color:"green"}),IMAGEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-minus",title:"Sprite Removal",color:"red"}),SPELLCHECK:(0,e.createComponentVNode)(2,t.Icon,{name:"font",title:"Spelling/Grammar Fix"}),EXPERIMENT:(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle",title:"Experimental",color:"orange"})},v=function(){function N(C){return C in l?l[C]:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",color:"green"})}return N}();return(0,e.createComponentVNode)(2,o.Window,{width:750,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"ParadiseSS13 Changelog",mt:2,buttons:(0,e.createComponentVNode)(2,t.Button,{content:m?"Showing all changes":"Showing changes since last connection",onClick:function(){function N(){return d(!m)}return N}()}),children:u.map(function(N){return!m&&N.merge_ts<=s||(0,e.createComponentVNode)(2,t.Section,{mb:2,title:N.author+" - Merged on "+N.merge_date,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"#"+N.num,onClick:function(){function C(){return h("open_pr",{pr_number:N.num})}return C}()}),children:N.entries.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{m:1,children:[v(C.etype)," ",C.etext]},C)})},N)})})})})}return b}()},36108:function(T,r,n){"use strict";r.__esModule=!0,r.ChemDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(85870),f=n(98595),b=[1,5,10,20,30,50],y=[1,5,10],S=r.ChemDispenser=function(){function i(m,d){var u=(0,a.useBackend)(d),s=u.act,l=u.data,v=l.chemicals;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:400+v.length*8,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,c)]})})})}return i}(),k=function(m,d){var u=(0,a.useBackend)(d),s=u.act,l=u.data,v=l.amount,N=l.energy,C=l.maxEnergy;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:N,minValue:0,maxValue:C,ranges:{good:[C*.5,1/0],average:[C*.25,C*.5],bad:[-1/0,C*.25]},children:[N," / ",C," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:b.map(function(p,g){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:v===p,content:p,onClick:function(){function V(){return s("amount",{amount:p})}return V}()})},g)})})})]})})})},h=function(m,d){for(var u=(0,a.useBackend)(d),s=u.act,l=u.data,v=l.chemicals,N=v===void 0?[]:v,C=[],p=0;p<(N.length+1)%3;p++)C.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:l.glass?"Drink Dispenser":"Chemical Dispenser",children:[N.map(function(g,V){return(0,e.createComponentVNode)(2,t.Button,{m:.1,width:"32.5%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",content:g.title,style:{"margin-left":"2px"},onClick:function(){function B(){return s("dispense",{reagent:g.id})}return B}()},V)}),C.map(function(g,V){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%"},V)})]})})},c=function(m,d){var u=(0,a.useBackend)(d),s=u.act,l=u.data,v=l.isBeakerLoaded,N=l.beakerCurrentVolume,C=l.beakerMaxVolume,p=l.beakerContents,g=p===void 0?[]:p;return(0,e.createComponentVNode)(2,t.Stack.Item,{height:16,children:(0,e.createComponentVNode)(2,t.Section,{title:l.glass?"Glass":"Beaker",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Box,{children:[!!v&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[N," / ",C," units"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!v,onClick:function(){function V(){return s("ejectBeaker")}return V}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:v,beakerContents:g,buttons:function(){function V(B){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){function I(){return s("remove",{reagent:B.id,amount:-1})}return I}()}),y.map(function(I,L){return(0,e.createComponentVNode)(2,t.Button,{content:I,onClick:function(){function w(){return s("remove",{reagent:B.id,amount:I})}return w}()},L)}),(0,e.createComponentVNode)(2,t.Button,{content:"ALL",onClick:function(){function I(){return s("remove",{reagent:B.id,amount:B.volume})}return I}()})],0)}return V}()})})})}},13146:function(T,r,n){"use strict";r.__esModule=!0,r.ChemHeater=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(85870),b=n(98595),y=r.ChemHeater=function(){function h(c,i){return(0,e.createComponentVNode)(2,b.Window,{width:350,height:275,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,k)]})})})}return h}(),S=function(c,i){var m=(0,t.useBackend)(i),d=m.act,u=m.data,s=u.targetTemp,l=u.targetTempReached,v=u.autoEject,N=u.isActive,C=u.currentTemp,p=u.isBeakerLoaded;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Settings",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Auto-eject",icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){function g(){return d("toggle_autoeject")}return g}()}),(0,e.createComponentVNode)(2,o.Button,{content:N?"On":"Off",icon:"power-off",selected:N,disabled:!p,onClick:function(){function g(){return d("toggle_on")}return g}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"65px",unit:"K",step:10,stepPixelSize:3,value:(0,a.round)(s,0),minValue:0,maxValue:1e3,onDrag:function(){function g(V,B){return d("adjust_temperature",{target:B})}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reading",color:l?"good":"average",children:p&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:C,format:function(){function g(V){return(0,a.toFixed)(V)+" K"}return g}()})||"\u2014"})]})})})},k=function(c,i){var m=(0,t.useBackend)(i),d=m.act,u=m.data,s=u.isBeakerLoaded,l=u.beakerCurrentVolume,v=u.beakerMaxVolume,N=u.beakerContents;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:!!s&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",mr:2,children:[l," / ",v," units"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",onClick:function(){function C(){return d("eject_beaker")}return C}()})]}),children:(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:s,beakerContents:N})})})}},56541:function(T,r,n){"use strict";r.__esModule=!0,r.ChemMaster=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(85870),b=n(3939),y=n(35840),S=["icon"];function k(I,L){if(I==null)return{};var w={};for(var x in I)if({}.hasOwnProperty.call(I,x)){if(L.includes(x))continue;w[x]=I[x]}return w}function h(I,L){I.prototype=Object.create(L.prototype),I.prototype.constructor=I,c(I,L)}function c(I,L){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(w,x){return w.__proto__=x,w},c(I,L)}var i=[1,5,10],m=function(L,w){var x=(0,a.useBackend)(w),A=x.act,E=x.data,P=L.args.analysis;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:E.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.createComponentVNode)(2,t.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:P.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:(P.desc||"").length>0?P.desc:"N/A"}),P.blood_type&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood type",children:P.blood_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:P.blood_dna})],4),!E.condi&&(0,e.createComponentVNode)(2,t.Button,{icon:E.printing?"spinner":"print",disabled:E.printing,iconSpin:!!E.printing,ml:"0.5rem",content:"Print",onClick:function(){function j(){return A("print",{idx:P.idx,beaker:L.args.beaker})}return j}()})]})})})})},d=function(I){return I[I.ToDisposals=0]="ToDisposals",I[I.ToBeaker=1]="ToBeaker",I}(d||{}),u=r.ChemMaster=function(){function I(L,w){return(0,e.createComponentVNode)(2,o.Window,{width:575,height:650,children:[(0,e.createComponentVNode)(2,b.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,B)]})})]})}return I}(),s=function(L,w){var x=(0,a.useBackend)(w),A=x.act,E=x.data,P=E.beaker,j=E.beaker_reagents,M=E.buffer_reagents,R=M.length>0;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:R?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!P,content:"Eject and Clear Buffer",onClick:function(){function D(){return A("eject")}return D}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!P,content:"Eject and Clear Buffer",onClick:function(){function D(){return A("eject")}return D}()}),children:P?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:j,buttons:function(){function D(W,_){return(0,e.createComponentVNode)(2,t.Box,{mb:_0?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:j,buttons:function(){function M(R,D){return(0,e.createComponentVNode)(2,t.Box,{mb:D0&&(R=M.map(function(D){var W=D.id,_=D.sprite;return(0,e.createComponentVNode)(2,g,{icon:_,translucent:!0,onClick:function(){function U(){return A("set_sprite_style",{production_mode:P,style:W})}return U}(),selected:j===W},W)})),(0,e.createComponentVNode)(2,p,{productionData:L.productionData,children:R&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:R})})},B=function(L,w){var x=(0,a.useBackend)(w),A=x.act,E=x.data,P=E.loaded_pill_bottle_style,j=E.containerstyles,M=E.loaded_pill_bottle,R={width:"20px",height:"20px"},D=j.map(function(W){var _=W.color,U=W.name,K=P===_;return(0,e.createComponentVNode)(2,t.Button,{style:{position:"relative",width:R.width,height:R.height},onClick:function(){function G(){return A("set_container_style",{style:_})}return G}(),icon:K&&"check",iconStyle:{position:"relative","z-index":1},tooltip:U,tooltipPosition:"top",children:[!K&&(0,e.createVNode)(1,"div",null,null,1,{style:{display:"inline-block"}}),(0,e.createVNode)(1,"span","Button",null,1,{style:{display:"inline-block",position:"absolute",top:0,left:0,margin:0,padding:0,width:R.width,height:R.height,"background-color":_,opacity:.6,filter:"alpha(opacity=60)"}})]},_)});return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Container Customization",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!M,content:"Eject Container",onClick:function(){function W(){return A("ejectp")}return W}()}),children:M?(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:[(0,e.createComponentVNode)(2,t.Button,{style:{width:R.width,height:R.height},icon:"tint-slash",onClick:function(){function W(){return A("clear_container_style")}return W}(),selected:!P,tooltip:"Default",tooltipPosition:"top"}),D]})}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No pill bottle or patch pack loaded."})})})};(0,b.modalRegisterBodyOverride)("analyze",m)},37173:function(T,r,n){"use strict";r.__esModule=!0,r.CloningConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(79140),b=1,y=32,S=128,k=r.CloningConsole=function(){function u(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.tab,g=C.has_scanner,V=C.pod_amount;return(0,e.createComponentVNode)(2,o.Window,{width:640,height:520,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Cloning Console",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connected scanner",children:g?"Online":"Missing"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connected pods",children:V})]})}),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:p===1,icon:"home",onClick:function(){function B(){return N("menu",{tab:1})}return B}(),children:"Main Menu"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:p===2,icon:"user",onClick:function(){function B(){return N("menu",{tab:2})}return B}(),children:"Damage Configuration"})]}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,h)})]})})}return u}(),h=function(s,l){var v=(0,a.useBackend)(l),N=v.data,C=N.tab,p;return C===1?p=(0,e.createComponentVNode)(2,c):C===2&&(p=(0,e.createComponentVNode)(2,i)),p},c=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.pods,g=C.pod_amount,V=C.selected_pod_UID;return(0,e.createComponentVNode)(2,t.Box,{children:[!g&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No pods connected."}),!!g&&p.map(function(B,I){return(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Pod "+(I+1),children:(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"96px",shrink:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,f.resolveAsset)("pod_"+(B.cloning?"cloning":"idle")+".gif"),style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Button,{selected:V===B.uid,onClick:function(){function L(){return N("select_pod",{uid:B.uid})}return L}(),children:"Select"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Progress",children:[!B.cloning&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Pod is inactive."}),!!B.cloning&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:B.clone_progress,maxValue:100,color:"good"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Biomass",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:B.biomass,ranges:{good:[2*B.biomass_storage_capacity/3,B.biomass_storage_capacity],average:[B.biomass_storage_capacity/3,2*B.biomass_storage_capacity/3],bad:[0,B.biomass_storage_capacity/3]},minValue:0,maxValue:B.biomass_storage_capacity,children:[B.biomass,"/",B.biomass_storage_capacity+" ("+100*B.biomass/B.biomass_storage_capacity+"%)"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sanguine Reagent",children:B.sanguine_reagent}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Osseous Reagent",children:B.osseous_reagent})]})})]})},B)})]})},i=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.selected_pod_data,g=C.has_scanned,V=C.scanner_has_patient,B=C.feedback,I=C.scan_successful,L=C.cloning_cost,w=C.has_scanner;return(0,e.createComponentVNode)(2,t.Box,{children:[!w&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No scanner connected."}),!!w&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Scanner Info",buttons:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hourglass-half",onClick:function(){function x(){return N("scan")}return x}(),children:"Scan"}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function x(){return N("eject")}return x}(),children:"Eject Patient"})]}),children:[!g&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:V?"No scan detected for current patient.":"No patient is in the scanner."}),!!g&&(0,e.createComponentVNode)(2,t.Box,{color:B.color,children:B.text})]}),(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Damages Breakdown",children:(0,e.createComponentVNode)(2,t.Box,{children:[(!I||!g)&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No valid scan detected."}),!!I&&!!g&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function x(){return N("fix_all")}return x}(),children:"Repair All Damages"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function x(){return N("fix_none")}return x}(),children:"Repair No Damages"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function x(){return N("clone")}return x}(),children:"Clone"})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:L[0],maxValue:p.biomass_storage_capacity,ranges:{bad:[2*p.biomass_storage_capacity/3,p.biomass_storage_capacity],average:[p.biomass_storage_capacity/3,2*p.biomass_storage_capacity/3],good:[0,p.biomass_storage_capacity/3]},color:L[0]>p.biomass?"bad":null,children:["Biomass: ",L[0],"/",p.biomass,"/",p.biomass_storage_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:L[1],maxValue:p.max_reagent_capacity,ranges:{bad:[2*p.max_reagent_capacity/3,p.max_reagent_capacity],average:[p.max_reagent_capacity/3,2*p.max_reagent_capacity/3],good:[0,p.max_reagent_capacity/3]},color:L[1]>p.sanguine_reagent?"bad":"good",children:["Sanguine: ",L[1],"/",p.sanguine_reagent,"/",p.max_reagent_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:L[2],maxValue:p.max_reagent_capacity,ranges:{bad:[2*p.max_reagent_capacity/3,p.max_reagent_capacity],average:[p.max_reagent_capacity/3,2*p.max_reagent_capacity/3],good:[0,p.max_reagent_capacity/3]},color:L[2]>p.osseous_reagent?"bad":"good",children:["Osseous: ",L[2],"/",p.osseous_reagent,"/",p.max_reagent_capacity]})})]}),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,d)]})]})})]})]})},m=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.patient_limb_data,g=C.limb_list,V=C.desired_limb_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Limbs",children:g.map(function(B,I){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"15%",height:"20px",children:[p[B][4],":"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),p[B][3]===0&&(0,e.createComponentVNode)(2,t.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:V[B][0]+V[B][1],maxValue:p[B][5],ranges:{good:[0,p[B][5]/3],average:[p[B][5]/3,2*p[B][5]/3],bad:[2*p[B][5]/3,p[B][5]]},children:["Post-Cloning Damage: ",(0,e.createComponentVNode)(2,t.Icon,{name:"bone"})," "+V[B][0]+" / ",(0,e.createComponentVNode)(2,t.Icon,{name:"fire"})," "+V[B][1]]})}),p[B][3]!==0&&(0,e.createComponentVNode)(2,t.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",p[B][4]," is missing!"]})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[!!p[B][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!V[B][3],onClick:function(){function L(){return N("toggle_limb_repair",{limb:B,type:"replace"})}return L}(),children:"Replace Limb"})}),!p[B][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[B][0]||p[B][1]),checked:!(V[B][0]||V[B][1]),onClick:function(){function L(){return N("toggle_limb_repair",{limb:B,type:"damage"})}return L}(),children:"Repair Damages"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[B][2]&b),checked:!(V[B][2]&b),onClick:function(){function L(){return N("toggle_limb_repair",{limb:B,type:"bone"})}return L}(),children:"Mend Bone"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[B][2]&y),checked:!(V[B][2]&y),onClick:function(){function L(){return N("toggle_limb_repair",{limb:B,type:"ib"})}return L}(),children:"Mend IB"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[B][2]&S),checked:!(V[B][2]&S),onClick:function(){function L(){return N("toggle_limb_repair",{limb:B,type:"critburn"})}return L}(),children:"Mend Critical Burn"})]})]})]},B)})})},d=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.patient_organ_data,g=C.organ_list,V=C.desired_organ_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Organs",children:g.map(function(B,I){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"20%",height:"20px",children:[p[B][3],":"," "]}),p[B][5]!=="heart"&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!!p[B][2]&&(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!V[B][2]&&!V[B][1],onClick:function(){function L(){return N("toggle_organ_repair",{organ:B,type:"replace"})}return L}(),children:"Replace Organ"}),!p[B][2]&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!p[B][0],checked:!V[B][0],onClick:function(){function L(){return N("toggle_organ_repair",{organ:B,type:"damage"})}return L}(),children:"Repair Damages"})})]})}),p[B][5]==="heart"&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Heart replacement is required for cloning."}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"35%",children:[!!p[B][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",p[B][3]," is missing!"]}),!p[B][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:V[B][0],maxValue:p[B][4],ranges:{good:[0,p[B][4]/3],average:[p[B][4]/3,2*p[B][4]/3],bad:[2*p[B][4]/3,p[B][4]]},children:"Post-Cloning Damage: "+V[B][0]})]})]})},B)})})}},98723:function(T,r,n){"use strict";r.__esModule=!0,r.CloningPod=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.CloningPod=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.biomass,m=c.biomass_storage_capacity,d=c.sanguine_reagent,u=c.osseous_reagent,s=c.organs,l=c.currently_cloning;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Liquid Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Biomass:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i,ranges:{good:[2*m/3,m],average:[m/3,2*m/3],bad:[0,m/3]},minValue:0,maxValue:m})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Sanguine Reagent:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:d+" units"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:0,minValue:0,maxValue:d,step:1,unit:"units",onChange:function(){function v(N,C){return h("remove_reagent",{reagent:"sanguine_reagent",amount:C})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function v(){return h("purge_reagent",{reagent:"sanguine_reagent"})}return v}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Osseous Reagent:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:u+" units"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:0,minValue:0,maxValue:u,step:1,unit:"units",onChange:function(){function v(N,C){return h("remove_reagent",{reagent:"osseous_reagent",amount:C})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function v(){return h("purge_reagent",{reagent:"osseous_reagent"})}return v}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Organ Storage",children:[!l&&(0,e.createComponentVNode)(2,t.Box,{children:[!s&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No organs loaded."}),!!s&&s.map(function(v){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:v.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject",onClick:function(){function N(){return h("eject_organ",{organ_ref:v.ref})}return N}()})})]},v)})]}),!!l&&(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"lock",size:"5",mb:3}),(0,e.createVNode)(1,"br"),"Unable to access organ storage while cloning."]})})]})]})})}return b}()},18259:function(T,r,n){"use strict";r.__esModule=!0,r.CoinMint=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=n(98595),b=r.CoinMint=function(){function y(S,k){var h=(0,t.useBackend)(k),c=h.act,i=h.data,m=i.materials,d=i.moneyBag,u=i.moneyBagContent,s=i.moneyBagMaxContent,l=(d?210:138)+Math.ceil(m.length/4)*64;return(0,e.createComponentVNode)(2,f.Window,{width:210,height:l,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.NoticeBox,{m:0,info:!0,children:["Total coins produced: ",i.totalCoins]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Coin Type",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",color:i.active&&"bad",tooltip:!d&&"Need a money bag",disabled:!d,onClick:function(){function v(){return c("activate")}return v}()}),children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,maxValue:i.maxMaterials,value:i.totalMaterials})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",tooltip:"Eject selected material",onClick:function(){function v(){return c("ejectMat")}return v}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:m.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{bold:!0,inline:!0,translucent:!0,m:.2,textAlign:"center",selected:v.id===i.chosenMaterial,tooltip:v.name,content:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",v.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:v.amount})]}),onClick:function(){function N(){return c("selectMaterial",{material:v.id})}return N}()},v.id)})})]})})}),!!d&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Money Bag",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",disabled:i.active,onClick:function(){function v(){return c("ejectBag")}return v}()}),children:(0,e.createComponentVNode)(2,o.ProgressBar,{width:"100%",minValue:0,maxValue:s,value:u,children:[u," / ",s]})})})]})})})}return y}()},8444:function(T,r,n){"use strict";r.__esModule=!0,r.ColourMatrixTester=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ColourMatrixTester=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.colour_data,m=[[{name:"RR",idx:0},{name:"RG",idx:1},{name:"RB",idx:2},{name:"RA",idx:3}],[{name:"GR",idx:4},{name:"GG",idx:5},{name:"GB",idx:6},{name:"GA",idx:7}],[{name:"BR",idx:8},{name:"BG",idx:9},{name:"BB",idx:10},{name:"BA",idx:11}],[{name:"AR",idx:12},{name:"AG",idx:13},{name:"AB",idx:14},{name:"AA",idx:15}]];return(0,e.createComponentVNode)(2,o.Window,{width:360,height:190,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Modify Matrix",children:m.map(function(d){return(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",textColor:"label",children:d.map(function(u){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:1,children:[u.name,":\xA0",(0,e.createComponentVNode)(2,t.NumberInput,{width:4,value:i[u.idx],step:.05,minValue:-5,maxValue:5,stepPixelSize:5,onChange:function(){function s(l,v){return h("setvalue",{idx:u.idx+1,value:v})}return s}()})]},u.name)})},d)})})})})})}return b}()},63818:function(T,r,n){"use strict";r.__esModule=!0,r.CommunicationsComputer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(s){switch(s){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,c);case 3:return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,i)})});case 4:return(0,e.createComponentVNode)(2,d);default:return"ERROR. Unknown menu_state. Please contact NT Technical Support."}},b=r.CommunicationsComputer=function(){function u(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.menu_state;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),f(p)]})})})}return u}(),y=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.authenticated,g=C.noauthbutton,V=C.esc_section,B=C.esc_callable,I=C.esc_recallable,L=C.esc_status,w=C.authhead,x=C.is_ai,A=C.lastCallLoc,E=!1,P;return p?p===1?P="Command":p===2?P="Captain":p===3?P="CentComm Officer":p===4?(P="CentComm Secure Connection",E=!0):P="ERROR: Report This Bug!":P="Not Logged In",(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Authentication",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Access",children:P})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{icon:p?"sign-out-alt":"id-card",selected:p,disabled:g,content:p?"Log Out ("+P+")":"Log In",onClick:function(){function j(){return N("auth")}return j}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!V&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Escape Shuttle",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!L&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:L}),!!B&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",content:"Call Shuttle",disabled:!w,onClick:function(){function j(){return N("callshuttle")}return j}()})}),!!I&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Recall Shuttle",disabled:!w||x,onClick:function(){function j(){return N("cancelshuttle")}return j}()})}),!!A&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Last Call/Recall From",children:A})]})})})],4)},S=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.is_admin;return p?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,h)},k=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.is_admin,g=C.gamma_armory_location,V=C.admin_levels,B=C.authenticated,I=C.ert_allowed;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"CentComm Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,m,{levels:V,required_access:p,use_confirm:1})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:"Make Central Announcement",disabled:!p,onClick:function(){function L(){return N("send_to_cc_announcement_page")}return L}()}),B===4&&(0,e.createComponentVNode)(2,t.Button,{icon:"plus",content:"Make Other Announcement",disabled:!p,onClick:function(){function L(){return N("make_other_announcement")}return L}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Response Team",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"ambulance",content:"Dispatch ERT",disabled:!p,onClick:function(){function L(){return N("dispatch_ert")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:I,content:I?"ERT calling enabled":"ERT calling disabled",tooltip:I?"Command can request an ERT":"ERTs cannot be requested",disabled:!p,onClick:function(){function L(){return N("toggle_ert_allowed")}return L}(),selected:null})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:"Get Authentication Codes",disabled:!p,onClick:function(){function L(){return N("send_nuke_codes")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gamma Armory",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"biohazard",content:g?"Send Gamma Armory":"Recall Gamma Armory",disabled:!p,onClick:function(){function L(){return N("move_gamma_armory")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"coins",content:"View Economy",disabled:!p,onClick:function(){function L(){return N("view_econ")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fax",content:"Fax Manager",disabled:!p,onClick:function(){function L(){return N("view_fax")}return L}()})]})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"View Command accessible controls",children:(0,e.createComponentVNode)(2,h)})]})},h=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.msg_cooldown,g=C.emagged,V=C.cc_cooldown,B=C.security_level_color,I=C.str_security_level,L=C.levels,w=C.authcapt,x=C.authhead,A=C.messages,E="Make Priority Announcement";p>0&&(E+=" ("+p+"s)");var P=g?"Message [UNKNOWN]":"Message CentComm",j="Request Authentication Codes";return V>0&&(P+=" ("+V+"s)",j+=" ("+V+"s)"),(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Captain-Only Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Alert",color:B,children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,m,{levels:L,required_access:w})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:E,disabled:!w||p>0,onClick:function(){function M(){return N("announce")}return M}()})}),!!g&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",color:"red",content:P,disabled:!w||V>0,onClick:function(){function M(){return N("MessageSyndicate")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!w,onClick:function(){function M(){return N("RestoreBackup")}return M}()})]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",content:P,disabled:!w||V>0,onClick:function(){function M(){return N("MessageCentcomm")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",content:j,disabled:!w||V>0,onClick:function(){function M(){return N("nukerequest")}return M}()})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Command Staff Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Displays",children:(0,e.createComponentVNode)(2,t.Button,{icon:"tv",content:"Change Status Displays",disabled:!x,onClick:function(){function M(){return N("status")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Incoming Messages",children:(0,e.createComponentVNode)(2,t.Button,{icon:"folder-open",content:"View ("+A.length+")",disabled:!x,onClick:function(){function M(){return N("messagelist")}return M}()})})]})})})],4)},c=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.stat_display,g=C.authhead,V=C.current_message_title,B=p.presets.map(function(L){return(0,e.createComponentVNode)(2,t.Button,{content:L.label,selected:L.name===p.type,disabled:!g,onClick:function(){function w(){return N("setstat",{statdisp:L.name})}return w}()},L.name)}),I=p.alerts.map(function(L){return(0,e.createComponentVNode)(2,t.Button,{content:L.label,selected:L.alert===p.icon,disabled:!g,onClick:function(){function w(){return N("setstat",{statdisp:3,alert:L.alert})}return w}()},L.alert)});return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Modify Status Screens",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function L(){return N("main")}return L}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Presets",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alerts",children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:p.line_1,disabled:!g,onClick:function(){function L(){return N("setmsg1")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 2",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:p.line_2,disabled:!g,onClick:function(){function L(){return N("setmsg2")}return L}()})})]})})})},i=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.authhead,g=C.current_message_title,V=C.current_message,B=C.messages,I=C.security_level,L;if(g)L=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:g,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Return To Message List",disabled:!p,onClick:function(){function x(){return N("messagelist")}return x}()}),children:(0,e.createComponentVNode)(2,t.Box,{children:V})})});else{var w=B.map(function(x){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:x.title,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eye",content:"View",disabled:!p||g===x.title,onClick:function(){function A(){return N("messagelist",{msgid:x.id})}return A}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"times",content:"Delete",disabled:!p,onClick:function(){function A(){return N("delmessage",{msgid:x.id})}return A}()})]},x.id)});L=(0,e.createComponentVNode)(2,t.Section,{title:"Messages Received",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function x(){return N("main")}return x}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:w})})}return(0,e.createComponentVNode)(2,t.Box,{children:L})},m=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=s.levels,g=s.required_access,V=s.use_confirm,B=C.security_level;return V?p.map(function(I){return(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:I.icon,content:I.name,disabled:!g||I.id===B,tooltip:I.tooltip,onClick:function(){function L(){return N("newalertlevel",{level:I.id})}return L}()},I.name)}):p.map(function(I){return(0,e.createComponentVNode)(2,t.Button,{icon:I.icon,content:I.name,disabled:!g||I.id===B,tooltip:I.tooltip,onClick:function(){function L(){return N("newalertlevel",{level:I.id})}return L}()},I.name)})},d=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.is_admin,g=C.possible_cc_sounds;if(!p)return N("main");var V=(0,a.useLocalState)(l,"subtitle",""),B=V[0],I=V[1],L=(0,a.useLocalState)(l,"text",""),w=L[0],x=L[1],A=(0,a.useLocalState)(l,"classified",0),E=A[0],P=A[1],j=(0,a.useLocalState)(l,"beepsound","Beep"),M=j[0],R=j[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Central Command Report",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function D(){return N("main")}return D}()}),children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Subtitle here.",fluid:!0,value:B,onChange:function(){function D(W,_){return I(_)}return D}(),mb:"5px"}),(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Announcement here,\nMultiline input is accepted.",rows:10,fluid:!0,multiline:1,value:w,onChange:function(){function D(W,_){return x(_)}return D}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Send Announcement",fluid:!0,icon:"paper-plane",center:!0,mt:"5px",textAlign:"center",onClick:function(){function D(){return N("make_cc_announcement",{subtitle:B,text:w,classified:E,beepsound:M})}return D}()}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"260px",height:"20px",options:g,selected:M,onSelected:function(){function D(W){return R(W)}return D}(),disabled:E})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"volume-up",mx:"5px",disabled:E,tooltip:"Test sound",onClick:function(){function D(){return N("test_sound",{sound:M})}return D}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:E,content:"Classified",fluid:!0,tooltip:E?"Sent to station communications consoles":"Publically announced",onClick:function(){function D(){return P(!E)}return D}()})})]})]})})}},20562:function(T,r,n){"use strict";r.__esModule=!0,r.CompostBin=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.CompostBin=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.biomass,m=c.compost,d=c.biomass_capacity,u=c.compost_capacity,s=c.potassium,l=c.potassium_capacity,v=c.potash,N=c.potash_capacity,C=(0,a.useSharedState)(S,"vendAmount",1),p=C[0],g=C[1];return(0,e.createComponentVNode)(2,o.Window,{width:360,height:250,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{label:"Resources",children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Biomass",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:i,minValue:0,maxValue:d,ranges:{good:[d*.5,1/0],average:[d*.25,d*.5],bad:[-1/0,d*.25]},children:[i," / ",d," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compost",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:m,minValue:0,maxValue:u,ranges:{good:[u*.5,1/0],average:[u*.25,u*.5],bad:[-1/0,u*.25]},children:[m," / ",u," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Potassium",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:s,minValue:0,maxValue:l,ranges:{good:[l*.5,1/0],average:[l*.25,l*.5],bad:[-1/0,l*.25]},children:[s," / ",l," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Potash",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:v,minValue:0,maxValue:N,ranges:{good:[N*.5,1/0],average:[N*.25,N*.5],bad:[-1/0,N*.25]},children:[v," / ",N," Units"]})})]})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mr:"5px",color:"silver",children:"Soil clumps to make:"}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:p,width:"32px",minValue:1,maxValue:10,stepPixelSize:7,onChange:function(){function V(B,I){return g(I)}return V}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,align:"center",content:"Make Soil",disabled:m<25*p,icon:"arrow-circle-down",onClick:function(){function V(){return h("create",{amount:p})}return V}()})})})]})})})}return b}()},21813:function(T,r,n){"use strict";r.__esModule=!0,r.Contractor=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(73379),b=n(98595);function y(N,C){N.prototype=Object.create(C.prototype),N.prototype.constructor=N,S(N,C)}function S(N,C){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,g){return p.__proto__=g,p},S(N,C)}var k={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},h=["Recording biometric data...","Analyzing embedded syndicate info...","STATUS CONFIRMED","Contacting Syndicate database...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Response received, ack 4851234...","CONFIRM ACC "+Math.round(Math.random()*2e4),"Setting up private accounts...","CONTRACTOR ACCOUNT CREATED","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","CONTRACTS FOUND","WELCOME, AGENT"],c=r.Contractor=function(){function N(C,p){var g=(0,t.useBackend)(p),V=g.act,B=g.data,I;B.unauthorized?I=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,l,{height:"100%",allMessages:["ERROR: UNAUTHORIZED USER"],finishedTimeout:100,onFinished:function(){function A(){}return A}()})}):B.load_animation_completed?I=(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:(0,e.createComponentVNode)(2,i)}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",mt:"0.5rem",children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",overflow:"hidden",children:B.page===1?(0,e.createComponentVNode)(2,d,{height:"100%"}):(0,e.createComponentVNode)(2,s,{height:"100%"})})],4):I=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,l,{height:"100%",allMessages:h,finishedTimeout:3e3,onFinished:function(){function A(){return V("complete_load_animation")}return A}()})});var L=(0,t.useLocalState)(p,"viewingPhoto",""),w=L[0],x=L[1];return(0,e.createComponentVNode)(2,b.Window,{theme:"syndicate",width:500,height:600,children:[w&&(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,b.Window.Content,{className:"Contractor",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:I})})]})}return N}(),i=function(C,p){var g=(0,t.useBackend)(p),V=g.act,B=g.data,I=B.tc_available,L=B.tc_paid_out,w=B.completed_contracts,x=B.rep;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Summary",buttons:(0,e.createComponentVNode)(2,o.Box,{verticalAlign:"middle",mt:"0.25rem",children:[x," Rep"]})},C,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Available",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",children:[I," TC"]}),(0,e.createComponentVNode)(2,o.Button,{disabled:I<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){function A(){return V("claim")}return A}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Earned",children:[L," TC"]})]})}),(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contracts Completed",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Box,{height:"20px",lineHeight:"20px",inline:!0,children:w})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},m=function(C,p){var g=(0,t.useBackend)(p),V=g.act,B=g.data,I=B.page;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Tabs,Object.assign({},C,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===1,onClick:function(){function L(){return V("page",{page:1})}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"suitcase"}),"Contracts"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===2,onClick:function(){function L(){return V("page",{page:2})}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"shopping-cart"}),"Hub"]})]})))},d=function(C,p){var g=(0,t.useBackend)(p),V=g.act,B=g.data,I=B.contracts,L=B.contract_active,w=B.can_extract,x=!!L&&I.filter(function(M){return M.status===1})[0],A=x&&x.time_left>0,E=(0,t.useLocalState)(p,"viewingPhoto",""),P=E[0],j=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Contracts",overflow:"auto",buttons:(0,e.createComponentVNode)(2,o.Button,{disabled:!w||A,icon:"parachute-box",content:["Call Extraction",A&&(0,e.createComponentVNode)(2,f.Countdown,{timeLeft:x.time_left,format:function(){function M(R,D){return" ("+D.substr(3)+")"}return M}()})],onClick:function(){function M(){return V("extract")}return M}()})},C,{children:I.slice().sort(function(M,R){return M.status===1?-1:R.status===1?1:M.status-R.status}).map(function(M){var R;return(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",color:M.status===1&&"good",children:M.target_name}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:M.has_photo&&(0,e.createComponentVNode)(2,o.Button,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){function D(){return j("target_photo_"+M.uid+".png")}return D}()})})]}),className:"Contractor__Contract",buttons:(0,e.createComponentVNode)(2,o.Box,{width:"100%",children:[!!k[M.status]&&(0,e.createComponentVNode)(2,o.Box,{color:k[M.status][1],inline:!0,mt:M.status!==1&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:k[M.status][0]}),M.status===1&&(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"ban",color:"bad",content:"Abort",ml:"0.5rem",onClick:function(){function D(){return V("abort")}return D}()})]}),children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"2",mr:"0.5rem",children:[M.fluff_message,!!M.completed_time&&(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"check",mr:"0.5rem"}),"Contract completed at ",M.completed_time]}),!!M.dead_extraction&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",mt:"0.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"Telecrystals reward reduced drastically as the target was dead during extraction."]}),!!M.fail_reason&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"times",mr:"0.5rem"}),"Contract failed: ",M.fail_reason]})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{flexBasis:"100%",children:[(0,e.createComponentVNode)(2,o.Flex,{mb:"0.5rem",color:"label",children:["Extraction Zone:\xA0",u(M)]}),(R=M.difficulties)==null?void 0:R.map(function(D,W){return(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!!L,content:D.name+" ("+D.reward+" TC)",onClick:function(){function _(){return V("activate",{uid:M.uid,difficulty:W+1})}return _}()},W)}),!!M.objective&&(0,e.createComponentVNode)(2,o.Box,{color:"white",bold:!0,children:[M.objective.extraction_name,(0,e.createVNode)(1,"br"),"(",(M.objective.rewards.tc||0)+" TC",",\xA0",(M.objective.rewards.credits||0)+" Credits",")"]})]})]})},M.uid)})})))},u=function(C){if(!(!C.objective||C.status>1)){var p=C.objective.locs.user_area_id,g=C.objective.locs.user_coords,V=C.objective.locs.target_area_id,B=C.objective.locs.target_coords,I=p===V;return(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:I?"dot-circle-o":"arrow-alt-circle-right-o",color:I?"green":"yellow",rotation:I?null:-(0,a.rad2deg)(Math.atan2(B[1]-g[1],B[0]-g[0])),lineHeight:I?null:"0.85",size:"1.5"})})}},s=function(C,p){var g=(0,t.useBackend)(p),V=g.act,B=g.data,I=B.rep,L=B.buyables;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Purchases",overflow:"auto"},C,{children:L.map(function(w){return(0,e.createComponentVNode)(2,o.Section,{title:w.name,children:[w.description,(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:I-1&&(0,e.createComponentVNode)(2,o.Box,{as:"span",color:w.stock===0?"bad":"good",ml:"0.5rem",children:[w.stock," in stock"]})]},w.uid)})})))},l=function(N){function C(g){var V;return V=N.call(this,g)||this,V.timer=null,V.state={currentIndex:0,currentDisplay:[]},V}y(C,N);var p=C.prototype;return p.tick=function(){function g(){var V=this.props,B=this.state;if(B.currentIndex<=V.allMessages.length){this.setState(function(L){return{currentIndex:L.currentIndex+1}});var I=B.currentDisplay;I.push(V.allMessages[B.currentIndex])}else clearTimeout(this.timer),setTimeout(V.onFinished,V.finishedTimeout)}return g}(),p.componentDidMount=function(){function g(){var V=this,B=this.props.linesPerSecond,I=B===void 0?2.5:B;this.timer=setInterval(function(){return V.tick()},1e3/I)}return g}(),p.componentWillUnmount=function(){function g(){clearTimeout(this.timer)}return g}(),p.render=function(){function g(){return(0,e.createComponentVNode)(2,o.Box,{m:1,children:this.state.currentDisplay.map(function(V){return(0,e.createFragment)([V,(0,e.createVNode)(1,"br")],0,V)})})}return g}(),C}(e.Component),v=function(C,p){var g=(0,t.useLocalState)(p,"viewingPhoto",""),V=g[0],B=g[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Contractor__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:V}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function I(){return B("")}return I}()})]})}},54151:function(T,r,n){"use strict";r.__esModule=!0,r.ConveyorSwitch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ConveyorSwitch=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.slowFactor,m=c.oneWay,d=c.position;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:135,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lever position",children:d>0?"forward":d<0?"reverse":"neutral"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Allow reverse",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!m,onClick:function(){function u(){return h("toggleOneWay")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slowdown factor",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",onClick:function(){function u(){return h("slowFactor",{value:i-5})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-left",onClick:function(){function u(){return h("slowFactor",{value:i-1})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Slider,{width:"100px",mx:"1px",value:i,fillValue:i,minValue:1,maxValue:50,step:1,format:function(){function u(s){return s+"x"}return u}(),onChange:function(){function u(s,l){return h("slowFactor",{value:l})}return u}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-right",onClick:function(){function u(){return h("slowFactor",{value:i+1})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",onClick:function(){function u(){return h("slowFactor",{value:i+5})}return u}()})," "]})]})})]})})})})}return b}()},73169:function(T,r,n){"use strict";r.__esModule=!0,r.CrewMonitor=void 0;var e=n(89005),a=n(88510),t=n(25328),o=n(72253),f=n(36036),b=n(36352),y=n(76910),S=n(98595),k=n(96184),h=["color"];function c(v,N){if(v==null)return{};var C={};for(var p in v)if({}.hasOwnProperty.call(v,p)){if(N.includes(p))continue;C[p]=v[p]}return C}var i=function(N,C){return N.dead?"Deceased":parseInt(N.health,10)<=C?"Critical":parseInt(N.stat,10)===1?"Unconscious":"Living"},m=function(N,C){return N.dead?"red":parseInt(N.health,10)<=C?"orange":parseInt(N.stat,10)===1?"blue":"green"},d=r.CrewMonitor=function(){function v(N,C){var p=(0,o.useBackend)(C),g=p.act,V=p.data,B=(0,o.useLocalState)(C,"tabIndex",V.tabIndex),I=B[0],L=B[1],w=function(){function A(E){L(E),g("set_tab_index",{tab_index:E})}return A}(),x=function(){function A(E){switch(E){case 0:return(0,e.createComponentVNode)(2,u);case 1:return(0,e.createComponentVNode)(2,l);default:return"WE SHOULDN'T BE HERE!"}}return A}();return(0,e.createComponentVNode)(2,S.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"table",selected:I===0,onClick:function(){function A(){return w(0)}return A}(),children:"Data View"},"DataView"),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"map-marked-alt",selected:I===1,onClick:function(){function A(){return w(1)}return A}(),children:"Map View"},"MapView")]})}),x(I)]})})})}return v}(),u=function(N,C){var p=(0,o.useBackend)(C),g=p.act,V=p.data,B=(0,a.sortBy)(function(M){return M.name})(V.crewmembers||[]),I=V.possible_levels,L=V.viewing_current_z_level,w=V.is_advanced,x=V.highlightedNames,A=(0,o.useLocalState)(C,"search",""),E=A[0],P=A[1],j=(0,t.createSearch)(E,function(M){return M.name+"|"+M.assignment+"|"+M.area});return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,backgroundColor:"transparent",children:[(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,f.Input,{placeholder:"Search by name, assignment or location..",width:"100%",onInput:function(){function M(R,D){return P(D)}return M}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:w?(0,e.createComponentVNode)(2,f.Dropdown,{mr:"5px",width:"50px",options:I,selected:L,onSelected:function(){function M(R){return g("switch_level",{new_level:R})}return M}()}):null})]}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,f.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:(0,e.createComponentVNode)(2,f.Button,{tooltip:"Clear highlights",icon:"square-xmark",onClick:function(){function M(){return g("clear_highlighted_names")}return M}()})}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Location"})]}),B.filter(j).map(function(M){var R=x.includes(M.name);return(0,e.createComponentVNode)(2,f.Table.Row,{bold:!!M.is_command,children:[(0,e.createComponentVNode)(2,b.TableCell,{children:(0,e.createComponentVNode)(2,k.ButtonCheckbox,{checked:R,tooltip:"Mark on map",onClick:function(){function D(){return g(R?"remove_highlighted_name":"add_highlighted_name",{name:M.name})}return D}()})}),(0,e.createComponentVNode)(2,b.TableCell,{children:[M.name," (",M.assignment,")"]}),(0,e.createComponentVNode)(2,b.TableCell,{children:[(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:m(M,V.critThreshold),children:i(M,V.critThreshold)}),M.sensor_type>=2||V.ignoreSensors?(0,e.createComponentVNode)(2,f.Box,{inline:!0,ml:1,children:["(",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:y.COLORS.damageType.oxy,children:M.oxy}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:y.COLORS.damageType.toxin,children:M.tox}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:y.COLORS.damageType.burn,children:M.fire}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:y.COLORS.damageType.brute,children:M.brute}),")"]}):null]}),(0,e.createComponentVNode)(2,b.TableCell,{children:M.sensor_type===3||V.ignoreSensors?V.isAI||V.isObserver?(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"location-arrow",content:M.area+" ("+M.x+", "+M.y+")",onClick:function(){function D(){return g("track",{track:M.ref})}return D}()}):M.area+" ("+M.x+", "+M.y+")":(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:"grey",children:"Not Available"})})]},M.name)})]})]})},s=function(N,C){var p=N.color,g=c(N,h);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.NanoMap.Marker,Object.assign({},g,{children:(0,e.createVNode)(1,"span","highlighted-marker color-border-"+p)})))},l=function(N,C){var p=(0,o.useBackend)(C),g=p.act,V=p.data,B=V.highlightedNames;return(0,e.createComponentVNode)(2,f.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,f.NanoMap,{zoom:V.zoom,offsetX:V.offsetX,offsetY:V.offsetY,onZoom:function(){function I(L){return g("set_zoom",{zoom:L})}return I}(),onOffsetChange:function(){function I(L,w){return g("set_offset",{offset_x:w.offsetX,offset_y:w.offsetY})}return I}(),children:V.crewmembers.filter(function(I){return I.sensor_type===3||V.ignoreSensors}).map(function(I){var L=m(I,V.critThreshold),w=B.includes(I.name),x=function(){return V.isObserver?g("track",{track:I.ref}):null},A=function(){return g(w?"remove_highlighted_name":"add_highlighted_name",{name:I.name})},E=I.name+" ("+I.assignment+")";return w?(0,e.createComponentVNode)(2,s,{x:I.x,y:I.y,tooltip:E,color:L,onClick:x,onDblClick:A},I.ref):(0,e.createComponentVNode)(2,f.NanoMap.MarkerIcon,{x:I.x,y:I.y,icon:"circle",tooltip:E,color:L,onClick:x,onDblClick:A},I.ref)})})})}},63987:function(T,r,n){"use strict";r.__esModule=!0,r.Cryo=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],b=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],y=r.Cryo=function(){function h(c,i){return(0,e.createComponentVNode)(2,o.Window,{width:520,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,S)})})})}return h}(),S=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.isOperating,l=u.hasOccupant,v=u.occupant,N=v===void 0?[]:v,C=u.cellTemperature,p=u.cellTemperatureStatus,g=u.isBeakerLoaded,V=u.cooldownProgress,B=u.auto_eject_healthy,I=u.auto_eject_dead;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",onClick:function(){function L(){return d("ejectOccupant")}return L}(),disabled:!l,children:"Eject"}),children:l?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:N.name||"Unknown"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:N.health,max:N.maxHealth,value:N.health/N.maxHealth,color:N.health>0?"good":"average",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(N.health)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:b[N.stat][0],children:b[N.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(N.bodyTemperature)})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),f.map(function(L){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:L.label,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:N[L.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(N[L.type])})})},L.id)})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Cell",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function L(){return d("ejectBeaker")}return L}(),disabled:!g,children:"Eject Beaker"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function L(){return d(s?"switchOff":"switchOn")}return L}(),selected:s,children:s?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",color:p,children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:C})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,k)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dosage interval",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{average:[-1/0,99],good:[99,1/0]},color:!g&&"average",value:V,minValue:0,maxValue:100})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject healthy occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:B?"toggle-on":"toggle-off",selected:B,onClick:function(){function L(){return d(B?"auto_eject_healthy_off":"auto_eject_healthy_on")}return L}(),children:B?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject dead occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:I?"toggle-on":"toggle-off",selected:I,onClick:function(){function L(){return d(I?"auto_eject_dead_off":"auto_eject_dead_on")}return L}(),children:I?"On":"Off"})})]})})})],4)},k=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.isBeakerLoaded,l=u.beakerLabel,v=u.beakerVolume;return s?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!l&&"average",children:[l||"No label",":"]}),(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!v&&"bad",ml:1,children:v?(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:v,format:function(){function N(C){return Math.round(C)+" units remaining"}return N}()}):"Beaker is empty"})],4):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"bad",children:"No beaker loaded"})}},86099:function(T,r,n){"use strict";r.__esModule=!0,r.CryopodConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(25328),b=r.CryopodConsole=function(){function k(h,c){var i=(0,a.useBackend)(c),m=i.data,d=m.account_name,u=m.allow_items;return(0,e.createComponentVNode)(2,o.Window,{title:"Cryopod Console",width:400,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Hello, "+(d||"[REDACTED]")+"!",children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,e.createComponentVNode)(2,y),!!u&&(0,e.createComponentVNode)(2,S)]})})}return k}(),y=function(h,c){var i=(0,a.useBackend)(c),m=i.data,d=m.frozen_crew;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Crew",children:d.length?(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(u,s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.name,children:u.rank},s)})})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored crew!"})})},S=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.frozen_items,s=function(v){var N=v.toString();return N.startsWith("the ")&&(N=N.slice(4,N.length)),(0,f.toTitleCase)(N)};return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Items",children:u.length?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s(l.name),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){function v(){return m("one_item",{item:l.uid})}return v}()})},l)})})}),(0,e.createComponentVNode)(2,t.Button,{content:"Drop All Items",color:"red",onClick:function(){function l(){return m("all_items")}return l}()})],4):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored items!"})})}},12692:function(T,r,n){"use strict";r.__esModule=!0,r.DNAModifier=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=[["good","Alive"],["average","Critical"],["bad","DEAD"]],y=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],S=[5,10,20,30,50],k=r.DNAModifier=function(){function p(g,V){var B=(0,a.useBackend)(V),I=B.act,L=B.data,w=L.irradiating,x=L.dnaBlockSize,A=L.occupant;V.dnaBlockSize=x,V.isDNAInvalid=!A.isViableSubject||!A.uniqueIdentity||!A.structuralEnzymes;var E;return w&&(E=(0,e.createComponentVNode)(2,N,{duration:w})),(0,e.createComponentVNode)(2,o.Window,{width:660,height:775,children:[(0,e.createComponentVNode)(2,f.ComplexModal),E,(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,h)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,c)})]})})]})}return p}(),h=function(g,V){var B=(0,a.useBackend)(V),I=B.act,L=B.data,w=L.locked,x=L.hasOccupant,A=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x,selected:w,icon:w?"toggle-on":"toggle-off",content:w?"Engaged":"Disengaged",onClick:function(){function E(){return I("toggleLock")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x||w,icon:"user-slash",content:"Eject",onClick:function(){function E(){return I("ejectOccupant")}return E}()})],4),children:x?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:A.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:A.minHealth,max:A.maxHealth,value:A.health/A.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:b[A.stat][0],children:b[A.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})}),V.isDNAInvalid?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radiation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:"0",max:"100",value:A.radiationLevel/100,color:"average"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:L.occupant.uniqueEnzymes?L.occupant.uniqueEnzymes:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})],0):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Cell unoccupied."})})},c=function(g,V){var B=(0,a.useBackend)(V),I=B.act,L=B.data,w=L.selectedMenuKey,x=L.hasOccupant,A=L.occupant;if(x){if(V.isDNAInvalid)return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No operation possible on this subject."]})})})}else return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant in DNA modifier."]})})});var E;return w==="ui"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,d)],4):w==="se"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,d)],4):w==="buffer"?E=(0,e.createComponentVNode)(2,u):w==="rejuvenators"&&(E=(0,e.createComponentVNode)(2,v)),(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:y.map(function(P,j){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:P[2],selected:w===P[0],onClick:function(){function M(){return I("selectMenuKey",{key:P[0]})}return M}(),children:P[1]},j)})}),E]})},i=function(g,V){var B=(0,a.useBackend)(V),I=B.act,L=B.data,w=L.selectedUIBlock,x=L.selectedUISubBlock,A=L.selectedUITarget,E=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Unique Identifier",children:[(0,e.createComponentVNode)(2,C,{dnaString:E.uniqueIdentity,selectedBlock:w,selectedSubblock:x,blockSize:V.dnaBlockSize,action:"selectUIBlock"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:15,stepPixelSize:"20",value:A,format:function(){function P(j){return j.toString(16).toUpperCase()}return P}(),ml:"0",onChange:function(){function P(j,M){return I("changeUITarget",{value:M})}return P}()})})}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){function P(){return I("pulseUIRadiation")}return P}()})]})},m=function(g,V){var B=(0,a.useBackend)(V),I=B.act,L=B.data,w=L.selectedSEBlock,x=L.selectedSESubBlock,A=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Structural Enzymes",children:[(0,e.createComponentVNode)(2,C,{dnaString:A.structuralEnzymes,selectedBlock:w,selectedSubblock:x,blockSize:V.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){function E(){return I("pulseSERadiation")}return E}()})]})},d=function(g,V){var B=(0,a.useBackend)(V),I=B.act,L=B.data,w=L.radiationIntensity,x=L.radiationDuration;return(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Emitter",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Intensity",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:10,stepPixelSize:20,value:w,popUpPosition:"right",ml:"0",onChange:function(){function A(E,P){return I("radiationIntensity",{value:P})}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:20,stepPixelSize:10,unit:"s",value:x,popUpPosition:"right",ml:"0",onChange:function(){function A(E,P){return I("radiationDuration",{value:P})}return A}()})})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top-start",mt:"0.5rem",onClick:function(){function A(){return I("pulseRadiation")}return A}()})]})},u=function(g,V){var B=(0,a.useBackend)(V),I=B.act,L=B.data,w=L.buffers,x=w.map(function(A,E){return(0,e.createComponentVNode)(2,s,{id:E+1,name:"Buffer "+(E+1),buffer:A},E)});return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{height:"75%",mt:1,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Buffers",children:x})}),(0,e.createComponentVNode)(2,t.Stack.Item,{height:"25%",children:(0,e.createComponentVNode)(2,l)})]})},s=function(g,V){var B=(0,a.useBackend)(V),I=B.act,L=B.data,w=g.id,x=g.name,A=g.buffer,E=L.isInjectorReady,P=x+(A.data?" - "+A.label:"");return(0,e.createComponentVNode)(2,t.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,t.Section,{title:P,mx:"0",lineHeight:"18px",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!A.data,icon:"trash",content:"Clear",onClick:function(){function j(){return I("bufferOption",{option:"clear",id:w})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A.data,icon:"pen",content:"Rename",onClick:function(){function j(){return I("bufferOption",{option:"changeLabel",id:w})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A.data||!L.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-start",onClick:function(){function j(){return I("bufferOption",{option:"saveDisk",id:w})}return j}()})],4),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Write",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"saveUI",id:w})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"saveUIAndUE",id:w})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"saveSE",id:w})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!L.hasDisk||!L.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"loadDisk",id:w})}return j}()})]}),!!A.data&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:A.owner||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[A.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!A.ue&&" and Unique Enzymes"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transfer to",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Injector",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"createInjector",id:w})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Block Injector",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"createInjector",id:w,block:1})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"transfer",id:w})}return j}()})]})],4)]}),!A.data&&(0,e.createComponentVNode)(2,t.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},l=function(g,V){var B=(0,a.useBackend)(V),I=B.act,L=B.data,w=L.hasDisk,x=L.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!w||!x.data,icon:"trash",content:"Wipe",onClick:function(){function A(){return I("wipeDisk")}return A}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w,icon:"eject",content:"Eject",onClick:function(){function A(){return I("ejectDisk")}return A}()})],4),children:w?x.data?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Label",children:x.label?x.label:"No label"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:x.owner?x.owner:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[x.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!x.ue&&" and Unique Enzymes"]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Disk is blank."}):(0,e.createComponentVNode)(2,t.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"save-o",size:"4"}),(0,e.createVNode)(1,"br"),"No disk inserted."]})})},v=function(g,V){var B=(0,a.useBackend)(V),I=B.act,L=B.data,w=L.isBeakerLoaded,x=L.beakerVolume,A=L.beakerLabel;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Rejuvenators and Beaker",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!w,icon:"eject",content:"Eject",onClick:function(){function E(){return I("ejectBeaker")}return E}()}),children:w?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Inject",children:[S.map(function(E,P){return(0,e.createComponentVNode)(2,t.Button,{disabled:E>x,icon:"syringe",content:E,onClick:function(){function j(){return I("injectRejuvenators",{amount:E})}return j}()},P)}),(0,e.createComponentVNode)(2,t.Button,{disabled:x<=0,icon:"syringe",content:"All",onClick:function(){function E(){return I("injectRejuvenators",{amount:x})}return E}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"0.5rem",children:A||"No label"}),x?(0,e.createComponentVNode)(2,t.Box,{color:"good",children:[x," unit",x===1?"":"s"," remaining"]}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Empty"})]})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No beaker loaded.",16)]})})})},N=function(g,V){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"average",children:(0,e.createVNode)(1,"h1",null,[(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"}),(0,e.createTextVNode)("\xA0Irradiating occupant\xA0"),(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"})],4)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,[(0,e.createTextVNode)("For "),g.duration,(0,e.createTextVNode)(" second"),g.duration===1?"":"s"],0)})]})},C=function(g,V){for(var B=(0,a.useBackend)(V),I=B.act,L=B.data,w=g.dnaString,x=g.selectedBlock,A=g.selectedSubblock,E=g.blockSize,P=g.action,j=w.split(""),M=0,R=[],D=function(){for(var U=W/E+1,K=[],G=function(){var J=$+1;K.push((0,e.createComponentVNode)(2,t.Button,{selected:x===U&&A===J,content:j[W+$],mb:"0",onClick:function(){function ie(){return I(P,{block:U,subblock:J})}return ie}()}))},$=0;$l.spawnpoints?"red":"green",children:[l.total," total, versus ",l.spawnpoints," spawnpoints"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispatch",children:(0,e.createComponentVNode)(2,t.Button,{width:10.5,textAlign:"center",icon:"ambulance",content:"Send ERT",onClick:function(){function g(){return s("dispatch_ert",{silent:C})}return g}()})})]})})})},h=function(m,d){var u=(0,a.useBackend)(d),s=u.act,l=u.data,v=l.ert_request_messages;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:v&&v.length?v.map(function(N){return(0,e.createComponentVNode)(2,t.Section,{title:N.time,buttons:(0,e.createComponentVNode)(2,t.Button,{content:N.sender_real_name,onClick:function(){function C(){return s("view_player_panel",{uid:N.sender_uid})}return C}(),tooltip:"View player panel"}),children:N.message},(0,f.decodeHtmlEntities)(N.time))}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"broadcast-tower",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No ERT requests."]})})})})},c=function(m,d){var u=(0,a.useBackend)(d),s=u.act,l=u.data,v=(0,a.useLocalState)(d,"text",""),N=v[0],C=v[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter ERT denial reason here,\nMultiline input is accepted.",rows:19,fluid:!0,multiline:1,value:N,onChange:function(){function p(g,V){return C(V)}return p}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Deny ERT",fluid:!0,icon:"times",center:!0,mt:2,textAlign:"center",onClick:function(){function p(){return s("deny_ert",{reason:N})}return p}()})]})})}},90217:function(T,r,n){"use strict";r.__esModule=!0,r.EconomyManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=r.EconomyManager=function(){function S(k,h){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:325,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,y)})]})}return S}(),y=function(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.next_payroll_time;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.4rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"coins",verticalAlign:"middle",size:3,mr:"1rem"}),"Economy Manager"]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.LabeledList,{label:"Pay Bonuses and Deductions",children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Global",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Global Payroll Modification",onClick:function(){function u(){return i("payroll_modification",{mod_type:"global"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Account Payroll Modification",onClick:function(){function u(){return i("payroll_modification",{mod_type:"department"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Members",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Members Payroll Modification",onClick:function(){function u(){return i("payroll_modification",{mod_type:"department_members"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Single Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Crew Member Payroll Modification",onClick:function(){function u(){return i("payroll_modification",{mod_type:"crew_member"})}return u}()})})]}),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Box,{mb:.5,children:["Next Payroll in: ",d," Minutes"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",width:"auto",color:"bad",content:"Delay Payroll",onClick:function(){function u(){return i("delay_payroll")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{width:"auto",content:"Set Payroll Time",onClick:function(){function u(){return i("set_payroll")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",width:"auto",color:"good",content:"Accelerate Payroll",onClick:function(){function u(){return i("accelerate_payroll")}return u}()})]}),(0,e.createComponentVNode)(2,t.NoticeBox,{children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," You take full responsibility for unbalancing the economy with these buttons!"]})],4)}},82565:function(T,r,n){"use strict";r.__esModule=!0,r.Electropack=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=r.Electropack=function(){function y(S,k){var h=(0,t.useBackend)(k),c=h.act,i=h.data,m=i.power,d=i.code,u=i.frequency,s=i.minFrequency,l=i.maxFrequency;return(0,e.createComponentVNode)(2,f.Window,{width:360,height:135,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,o.Button,{icon:m?"power-off":"times",content:m?"On":"Off",selected:m,onClick:function(){function v(){return c("power")}return v}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function v(){return c("reset",{reset:"freq"})}return v}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:s/10,maxValue:l/10,value:u/10,format:function(){function v(N){return(0,a.toFixed)(N,1)}return v}(),width:"80px",onChange:function(){function v(N,C){return c("freq",{freq:C})}return v}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function v(){return c("reset",{reset:"code"})}return v}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:d,width:"80px",onChange:function(){function v(N,C){return c("code",{code:C})}return v}()})})]})})})})}return y}()},11243:function(T,r,n){"use strict";r.__esModule=!0,r.Emojipedia=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=n(98595),b=r.Emojipedia=function(){function S(k,h){var c=(0,t.useBackend)(h),i=c.data,m=i.emoji_list,d=(0,t.useLocalState)(h,"searchText",""),u=d[0],s=d[1],l=m.filter(function(v){return v.name.toLowerCase().includes(u.toLowerCase())});return(0,e.createComponentVNode)(2,f.Window,{width:325,height:400,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Emojipedia v1.0.1",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by name",value:u,onInput:function(){function v(N,C){return s(C)}return v}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Click on an emoji to copy its tag!",tooltipPosition:"bottom",icon:"circle-question"})],4),children:l.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{m:1,color:"transparent",className:(0,a.classes)(["emoji16x16","emoji-"+v.name]),style:{transform:"scale(1.5)"},tooltip:v.name,onClick:function(){function N(){y(v.name)}return N}()},v.name)})})})})}return S}(),y=function(k){var h=document.createElement("input"),c=":"+k+":";h.value=c,document.body.appendChild(h),h.select(),document.execCommand("copy"),document.body.removeChild(h)}},36730:function(T,r,n){"use strict";r.__esModule=!0,r.EvolutionMenu=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=n(64795),y=n(88510),S=r.EvolutionMenu=function(){function c(i,m){return(0,e.createComponentVNode)(2,f.Window,{width:480,height:580,theme:"changeling",children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,h)]})})})}return c}(),k=function(i,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data,l=s.evo_points,v=s.can_respec;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Evolution Points",height:5.5,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,color:"label",children:"Points remaining:"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,ml:2,bold:!0,color:"#1b945c",children:l}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Button,{ml:2.5,disabled:!v,content:"Readapt",icon:"sync",onClick:function(){function N(){return u("readapt")}return N}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"By transforming a humanoid into a husk, we gain the ability to readapt our chosen evolutions.",tooltipPosition:"bottom",icon:"question-circle"})]})]})})})},h=function(i,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data,l=s.evo_points,v=s.ability_tabs,N=s.purchased_abilities,C=s.view_mode,p=(0,t.useLocalState)(m,"selectedTab",v[0]),g=p[0],V=p[1],B=(0,t.useLocalState)(m,"searchText",""),I=B[0],L=B[1],w=(0,t.useLocalState)(m,"ability_tabs",v[0].abilities),x=w[0],A=w[1],E=function(R,D){if(D===void 0&&(D=""),!R||R.length===0)return[];var W=(0,a.createSearch)(D,function(_){return _.name+"|"+_.description});return(0,b.flow)([(0,y.filter)(function(_){return _==null?void 0:_.name}),(0,y.filter)(W),(0,y.sortBy)(function(_){return _==null?void 0:_.name})])(R)},P=function(R){if(L(R),R==="")return A(g.abilities);A(E(v.map(function(D){return D.abilities}).flat(),R))},j=function(R){V(R),A(R.abilities),L("")};return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Abilities",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Input,{width:"200px",placeholder:"Search Abilities",onInput:function(){function M(R,D){P(D)}return M}(),value:I}),(0,e.createComponentVNode)(2,o.Button,{icon:C?"square-o":"check-square-o",selected:!C,content:"Compact",onClick:function(){function M(){return u("set_view_mode",{mode:0})}return M}()}),(0,e.createComponentVNode)(2,o.Button,{icon:C?"check-square-o":"square-o",selected:C,content:"Expanded",onClick:function(){function M(){return u("set_view_mode",{mode:1})}return M}()})],4),children:[(0,e.createComponentVNode)(2,o.Tabs,{children:v.map(function(M){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===""&&g===M,onClick:function(){function R(){j(M)}return R}(),children:M.category},M)})}),x.map(function(M,R){return(0,e.createComponentVNode)(2,o.Box,{p:.5,mx:-1,className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{ml:.5,color:"#dedede",children:M.name}),N.includes(M.power_path)&&(0,e.createComponentVNode)(2,o.Stack.Item,{ml:2,bold:!0,color:"#1b945c",children:"(Purchased)"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mr:3,textAlign:"right",grow:1,children:[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:["Cost:"," "]}),(0,e.createComponentVNode)(2,o.Box,{as:"span",bold:!0,color:"#1b945c",children:M.cost})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{textAlign:"right",children:(0,e.createComponentVNode)(2,o.Button,{mr:.5,disabled:M.cost>l||N.includes(M.power_path),content:"Evolve",onClick:function(){function D(){return u("purchase",{power_path:M.power_path})}return D}()})})]}),!!C&&(0,e.createComponentVNode)(2,o.Stack,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:M.description+" "+M.helptext})]},R)})]})})}},17370:function(T,r,n){"use strict";r.__esModule=!0,r.ExosuitFabricator=void 0;var e=n(89005),a=n(35840),t=n(25328),o=n(72253),f=n(36036),b=n(73379),y=n(98595),S=["id","amount","lineDisplay","onClick"];function k(p,g){if(p==null)return{};var V={};for(var B in p)if({}.hasOwnProperty.call(p,B)){if(g.includes(B))continue;V[B]=p[B]}return V}var h=2e3,c={bananium:"clown",tranquillite:"mime"},i=r.ExosuitFabricator=function(){function p(g,V){var B=(0,o.useBackend)(V),I=B.act,L=B.data,w=L.building,x=L.linked;return x?(0,e.createComponentVNode)(2,y.Window,{width:950,height:625,children:(0,e.createComponentVNode)(2,y.Window.Content,{className:"Exofab",children:[(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,d)}),w&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,u)})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,s)})]})})]})]})}):(0,e.createComponentVNode)(2,N)}return p}(),m=function(g,V){var B=(0,o.useBackend)(V),I=B.act,L=B.data,w=L.materials,x=L.capacity,A=Object.values(w).reduce(function(E,P){return E+P},0);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:"Materials",className:"Exofab__materials",buttons:(0,e.createComponentVNode)(2,f.Box,{color:"label",mt:"0.25rem",children:[(A/x*100).toPrecision(3),"% full"]}),children:["metal","glass","silver","gold","uranium","titanium","plasma","diamond","bluespace","bananium","tranquillite","plastic"].map(function(E){return(0,e.createComponentVNode)(2,l,{mt:-2,id:E,bold:E==="metal"||E==="glass",onClick:function(){function P(){return I("withdraw",{id:E})}return P}()},E)})})},d=function(g,V){var B=(0,o.useBackend)(V),I=B.act,L=B.data,w=L.curCategory,x=L.categories,A=L.designs,E=L.syncing,P=(0,o.useLocalState)(V,"searchText",""),j=P[0],M=P[1],R=(0,t.createSearch)(j,function(K){return K.name}),D=A.filter(R),W=(0,o.useLocalState)(V,"levelsModal",!1),_=W[0],U=W[1];return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,e.createComponentVNode)(2,f.Dropdown,{className:"Exofab__dropdown",selected:w,options:x,onSelected:function(){function K(G){return I("category",{cat:G})}return K}()}),buttons:(0,e.createComponentVNode)(2,f.Box,{mt:"2px",children:[(0,e.createComponentVNode)(2,f.Button,{icon:"plus",content:"Queue all",onClick:function(){function K(){return I("queueall")}return K}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"info",content:"Show current tech levels",onClick:function(){function K(){return U(!0)}return K}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"unlink",color:"red",tooltip:"Disconnect from R&D network",onClick:function(){function K(){return I("unlink")}return K}()})]}),children:[(0,e.createComponentVNode)(2,f.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(){function K(G,$){return M($)}return K}()}),D.map(function(K){return(0,e.createComponentVNode)(2,v,{design:K},K.id)}),D.length===0&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No designs found."})]})},u=function(g,V){var B=(0,o.useBackend)(V),I=B.act,L=B.data,w=L.building,x=L.buildStart,A=L.buildEnd,E=L.worldTime;return(0,e.createComponentVNode)(2,f.Section,{className:"Exofab__building",stretchContents:!0,children:(0,e.createComponentVNode)(2,f.ProgressBar.Countdown,{start:x,current:E,end:A,children:(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Icon,{name:"cog",spin:!0})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:["Building ",w,"\xA0(",(0,e.createComponentVNode)(2,b.Countdown,{current:E,timeLeft:A-E,format:function(){function P(j,M){return M.substr(3)}return P}()}),")"]})]})})})},s=function(g,V){var B=(0,o.useBackend)(V),I=B.act,L=B.data,w=L.queue,x=L.processingQueue,A=Object.entries(L.queueDeficit).filter(function(P){return P[1]<0}),E=w.reduce(function(P,j){return P+j.time},0);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,className:"Exofab__queue",title:"Queue",buttons:(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.Button,{selected:x,icon:x?"toggle-on":"toggle-off",content:"Process",onClick:function(){function P(){return I("process")}return P}()}),(0,e.createComponentVNode)(2,f.Button,{disabled:w.length===0,icon:"eraser",content:"Clear",onClick:function(){function P(){return I("unqueueall")}return P}()})]}),children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:w.length===0?(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"The queue is empty."}):(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--queue",grow:!0,overflow:"auto",children:w.map(function(P,j){return(0,e.createComponentVNode)(2,f.Box,{color:P.notEnough&&"bad",children:[j+1,". ",P.name,j>0&&(0,e.createComponentVNode)(2,f.Button,{icon:"arrow-up",onClick:function(){function M(){return I("queueswap",{from:j+1,to:j})}return M}()}),j0&&(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--time",children:[(0,e.createComponentVNode)(2,f.Divider),"Processing time:",(0,e.createComponentVNode)(2,f.Icon,{name:"clock",mx:"0.5rem"}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,bold:!0,children:new Date(E/10*1e3).toISOString().substr(14,5)})]}),Object.keys(A).length>0&&(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--deficit",shrink:"0",children:[(0,e.createComponentVNode)(2,f.Divider),"Lacking materials to complete:",A.map(function(P){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,l,{id:P[0],amount:-P[1],lineDisplay:!0})},P[0])})]})],0)})})},l=function(g,V){var B=(0,o.useBackend)(V),I=B.act,L=B.data,w=g.id,x=g.amount,A=g.lineDisplay,E=g.onClick,P=k(g,S),j=L.materials[w]||0,M=x||j;if(!(M<=0&&!(w==="metal"||w==="glass"))){var R=x&&x>j;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Stack,Object.assign({align:"center",className:(0,a.classes)(["Exofab__material",A&&"Exofab__material--line"])},P,{children:A?(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{className:(0,a.classes)(["materials32x32",w])}),(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__material--amount",color:R&&"bad",ml:0,mr:1,children:M.toLocaleString("en-US")})],4):(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{basis:"content",children:(0,e.createComponentVNode)(2,f.Button,{width:"85%",color:"transparent",onClick:E,children:(0,e.createComponentVNode)(2,f.Box,{mt:1,className:(0,a.classes)(["materials32x32",w])})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:"1",children:[(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--name",children:w}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--amount",children:[M.toLocaleString("en-US")," cm\xB3 (",Math.round(M/h*10)/10," ","sheets)"]})]})],4)})))}},v=function(g,V){var B=(0,o.useBackend)(V),I=B.act,L=B.data,w=g.design;return(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design",children:[(0,e.createComponentVNode)(2,f.Button,{disabled:w.notEnough||L.building,icon:"cog",content:w.name,onClick:function(){function x(){return I("build",{id:w.id})}return x}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"plus-circle",onClick:function(){function x(){return I("queue",{id:w.id})}return x}()}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design--cost",children:Object.entries(w.cost).map(function(x){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,l,{id:x[0],amount:x[1],lineDisplay:!0})},x[0])})}),(0,e.createComponentVNode)(2,f.Stack,{className:"Exofab__design--time",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"clock"}),w.time>0?(0,e.createFragment)([w.time/10,(0,e.createTextVNode)(" seconds")],0):"Instant"]})})]})},N=function(g,V){var B=(0,o.useBackend)(V),I=B.act,L=B.data,w=L.controllers;return(0,e.createComponentVNode)(2,y.Window,{children:(0,e.createComponentVNode)(2,y.Window.Content,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Setup Linkage",children:(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,f.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Link"})]}),w.map(function(x){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:x.addr}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:x.net_id}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:(0,e.createComponentVNode)(2,f.Button,{content:"Link",icon:"link",onClick:function(){function A(){return I("linktonetworkcontroller",{target_controller:x.addr})}return A}()})})]},x.addr)})]})})})})},C=function(g,V){var B=(0,o.useBackend)(V),I=B.act,L=B.data,w=L.tech_levels,x=(0,o.useLocalState)(V,"levelsModal",!1),A=x[0],E=x[1];return A?(0,e.createComponentVNode)(2,f.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:(0,e.createComponentVNode)(2,f.Section,{title:"Current tech levels",buttons:(0,e.createComponentVNode)(2,f.Button,{content:"Close",onClick:function(){function P(){E(!1)}return P}()}),children:(0,e.createComponentVNode)(2,f.LabeledList,{children:w.map(function(P){var j=P.name,M=P.level;return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:j,children:M},j)})})})}):null}},59128:function(T,r,n){"use strict";r.__esModule=!0,r.ExperimentConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=new Map([[0,{text:"Conscious",color:"good"}],[1,{text:"Unconscious",color:"average"}],[2,{text:"Deceased",color:"bad"}]]),b=new Map([[0,{label:"Probe",icon:"thermometer"}],[1,{label:"Dissect",icon:"brain"}],[2,{label:"Analyze",icon:"search"}]]),y=r.ExperimentConsole=function(){function S(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.open,u=m.feedback,s=m.occupant,l=m.occupant_name,v=m.occupant_status,N=function(){function p(){if(!s)return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No specimen detected."});var g=function(){function B(){return f.get(v)}return B}(),V=g();return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:V.color,children:V.text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Experiments",children:[0,1,2].map(function(B){return(0,e.createComponentVNode)(2,t.Button,{icon:b.get(B).icon,content:b.get(B).label,onClick:function(){function I(){return i("experiment",{experiment_type:B})}return I}()},B)})})]})}return p}(),C=N();return(0,e.createComponentVNode)(2,o.Window,{theme:"abductor",width:350,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:u})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Scanner",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!d,onClick:function(){function p(){return i("door")}return p}()}),children:C})]})})}return S}()},97086:function(T,r,n){"use strict";r.__esModule=!0,r.ExternalAirlockController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=0,b=1013,y=function(h){var c="good",i=80,m=95,d=110,u=120;return hd?c="average":h>u&&(c="bad"),c},S=r.ExternalAirlockController=function(){function k(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.chamber_pressure,s=d.exterior_status,l=d.interior_status,v=d.processing;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:205,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chamber Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:y(u),value:u,minValue:f,maxValue:b,children:[u," kPa"]})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Abort",icon:"ban",color:"red",disabled:!v,onClick:function(){function N(){return m("abort")}return N}()}),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:v,onClick:function(){function N(){return m("cycle_ext")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:v,onClick:function(){function N(){return m("cycle_int")}return N}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Force Exterior Door",icon:"exclamation-triangle",color:l==="open"?"red":v?"yellow":null,onClick:function(){function N(){return m("force_ext")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Force Interior Door",icon:"exclamation-triangle",color:l==="open"?"red":v?"yellow":null,onClick:function(){function N(){return m("force_int")}return N}()})]})]})]})})}return k}()},96142:function(T,r,n){"use strict";r.__esModule=!0,r.FaxMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.FaxMachine=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data;return(0,e.createComponentVNode)(2,o.Window,{width:540,height:295,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.scan_name?"eject":"id-card",selected:c.scan_name,content:c.scan_name?c.scan_name:"-----",tooltip:c.scan_name?"Eject ID":"Insert ID",onClick:function(){function i(){return h("scan")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorize",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.authenticated?"sign-out-alt":"id-card",selected:c.authenticated,disabled:c.nologin,content:c.realauth?"Log Out":"Log In",onClick:function(){function i(){return h("auth")}return i}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fax Menu",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network",children:c.network}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Document",children:[(0,e.createComponentVNode)(2,t.Button,{icon:c.paper?"eject":"paperclip",disabled:!c.authenticated&&!c.paper,content:c.paper?c.paper:"-----",onClick:function(){function i(){return h("paper")}return i}()}),!!c.paper&&(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function i(){return h("rename")}return i}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sending To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:c.destination?c.destination:"-----",disabled:!c.authenticated,onClick:function(){function i(){return h("dept")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Action",children:(0,e.createComponentVNode)(2,t.Button,{icon:"envelope",content:c.sendError?c.sendError:"Send",disabled:!c.paper||!c.destination||!c.authenticated||c.sendError,onClick:function(){function i(){return h("send")}return i}()})})]})})]})})}return b}()},74123:function(T,r,n){"use strict";r.__esModule=!0,r.FilingCabinet=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.FilingCabinet=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=k.config,m=c.contents,d=i.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Contents",children:[!m&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"folder-open",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"The ",d," is empty."]})}),!!m&&m.slice().map(function(u){return(0,e.createComponentVNode)(2,t.Stack,{mt:.5,className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"80%",children:u.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Retrieve",onClick:function(){function s(){return h("retrieve",{index:u.index})}return s}()})})]},u)})]})})})})}return b}()},83767:function(T,r,n){"use strict";r.__esModule=!0,r.FloorPainter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=S.image,d=S.isSelected,u=S.onSelect;return(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+m,style:{"border-style":d&&"solid"||"none","border-width":"2px","border-color":"orange",padding:d&&"2px"||"4px"},onClick:u})},b=r.FloorPainter=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.availableStyles,d=i.selectedStyle,u=i.selectedDir,s=i.directionsPreview,l=i.allStylesPreview;return(0,e.createComponentVNode)(2,o.Window,{width:405,height:475,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Decal setup",children:[(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",onClick:function(){function v(){return c("cycle_style",{offset:-1})}return v}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{options:m,selected:d,width:"150px",height:"20px",ml:"2px",mr:"2px",nochevron:!0,onSelected:function(){function v(N){return c("select_style",{style:N})}return v}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function v(){return c("cycle_style",{offset:1})}return v}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",mb:"5px",children:(0,e.createComponentVNode)(2,t.Flex,{overflowY:"auto",maxHeight:"220px",wrap:"wrap",children:m.map(function(v){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,f,{image:l[v],isSelected:d===v,onSelect:function(){function N(){return c("select_style",{style:v})}return N}()})},"{style}")})})}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Direction",children:(0,e.createComponentVNode)(2,t.Table,{style:{display:"inline"},children:["north","","south"].map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[v+"west",v,v+"east"].map(function(N){return(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:N===""?(0,e.createComponentVNode)(2,t.Icon,{name:"arrows-alt",size:3}):(0,e.createComponentVNode)(2,f,{image:s[N],isSelected:N===u,onSelect:function(){function C(){return c("select_direction",{direction:N})}return C}()})},N)})},v)})})})})]})})})}return y}()},53424:function(T,r,n){"use strict";r.__esModule=!0,r.GPS=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=function(d){return d?"("+d.join(", ")+")":"ERROR"},y=function(d,u){if(!(!d||!u)){if(d[2]!==u[2])return null;var s=Math.atan2(u[1]-d[1],u[0]-d[0]),l=Math.sqrt(Math.pow(u[1]-d[1],2)+Math.pow(u[0]-d[0],2));return{angle:(0,a.rad2deg)(s),distance:l}}},S=r.GPS=function(){function m(d,u){var s=(0,t.useBackend)(u),l=s.data,v=l.emped,N=l.active,C=l.area,p=l.position,g=l.saved;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:v?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,k,{emp:!0})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h)}),N?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,c,{area:C,position:p})}),g&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,c,{title:"Saved Position",position:g})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,i,{height:"100%"})})],0):(0,e.createComponentVNode)(2,k)],0)})})})}return m}(),k=function(d,u){var s=d.emp;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Box,{width:"100%",height:"100%",color:"label",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:s?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),s?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},h=function(d,u){var s=(0,t.useBackend)(u),l=s.act,v=s.data,N=v.active,C=v.tag,p=v.same_z,g=(0,t.useLocalState)(u,"newTag",C),V=g[0],B=g[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",buttons:(0,e.createComponentVNode)(2,o.Button,{selected:N,icon:N?"toggle-on":"toggle-off",content:N?"On":"Off",onClick:function(){function I(){return l("toggle")}return I}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,o.Input,{width:"5rem",value:C,onEnter:function(){function I(){return l("tag",{newtag:V})}return I}(),onInput:function(){function I(L,w){return B(w)}return I}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:C===V,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function I(){return l("tag",{newtag:V})}return I}(),children:(0,e.createComponentVNode)(2,o.Icon,{name:"pen"})})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,o.Button,{selected:!p,icon:p?"compress":"expand",content:p?"Local Sector":"Global",onClick:function(){function I(){return l("same_z")}return I}()})})]})})},c=function(d,u){var s=d.title,l=d.area,v=d.position;return(0,e.createComponentVNode)(2,o.Section,{title:s||"Position",children:(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",children:[l&&(0,e.createFragment)([l,(0,e.createVNode)(1,"br")],0),b(v)]})})},i=function(d,u){var s=(0,t.useBackend)(u),l=s.data,v=l.position,N=l.signals;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,title:"Signals"},d,{children:(0,e.createComponentVNode)(2,o.Table,{children:N.map(function(C){return Object.assign({},C,y(v,C.position))}).map(function(C,p){return(0,e.createComponentVNode)(2,o.Table.Row,{backgroundColor:p%2===0&&"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{width:"30%",verticalAlign:"middle",color:"label",p:"0.25rem",bold:!0,children:C.tag}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",color:"grey",children:C.area}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",collapsing:!0,children:C.distance!==void 0&&(0,e.createComponentVNode)(2,o.Box,{opacity:Math.max(1-Math.min(C.distance,100)/100,.5),children:[(0,e.createComponentVNode)(2,o.Icon,{name:C.distance>0?"arrow-right":"circle",rotation:-C.angle}),"\xA0",Math.floor(C.distance)+"m"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:b(C.position)})]},p)})})})))}},89124:function(T,r,n){"use strict";r.__esModule=!0,r.GeneModder=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(3939),f=n(98595),b=r.GeneModder=function(){function u(s,l){var v=(0,a.useBackend)(l),N=v.data,C=N.has_seed;return(0,e.createComponentVNode)(2,f.Window,{width:950,height:650,children:[(0,e.createVNode)(1,"div","GeneModder__left",(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,d,{scrollable:!0})}),2),(0,e.createVNode)(1,"div","GeneModder__right",(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,o.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),C===0?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,y)]})}),2)]})}return u}(),y=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Genes",fill:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i)]})},S=function(s,l){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,height:"85%",children:(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"green",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The plant DNA manipulator is missing a seed."]})})})},k=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.has_seed,g=C.seed,V=C.has_disk,B=C.disk,I,L;return p?I=(0,e.createComponentVNode)(2,t.Stack.Item,{mb:"-6px",mt:"-4px",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+g.image,style:{"vertical-align":"middle",width:"32px",margin:"-1px","margin-left":"-11px"}}),(0,e.createComponentVNode)(2,t.Button,{content:g.name,onClick:function(){function w(){return N("eject_seed")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){function w(){return N("variant_name")}return w}()})]}):I=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:"None",onClick:function(){function w(){return N("eject_seed")}return w}()})}),V?L=B.name:L="None",(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plant Sample",children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Disk",children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:L,tooltip:"Select Empty Disk",onClick:function(){function w(){return N("select_empty_disk")}return w}()})})})]})})},h=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.disk,g=C.core_genes;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core Genes",open:!0,children:[g.map(function(V){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:V.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(p!=null&&p.can_extract),icon:"save",onClick:function(){function B(){return N("extract",{id:V.id})}return B}()})})]},V)})," ",(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract All",disabled:!(p!=null&&p.can_extract),icon:"save",onClick:function(){function V(){return N("bulk_extract_core")}return V}()})})})]},"Core Genes")},c=function(s,l){var v=(0,a.useBackend)(l),N=v.data,C=N.reagent_genes,p=N.has_reagent;return(0,e.createComponentVNode)(2,m,{title:"Reagent Genes",gene_set:C,do_we_show:p})},i=function(s,l){var v=(0,a.useBackend)(l),N=v.data,C=N.trait_genes,p=N.has_trait;return(0,e.createComponentVNode)(2,m,{title:"Trait Genes",gene_set:C,do_we_show:p})},m=function(s,l){var v=s.title,N=s.gene_set,C=s.do_we_show,p=(0,a.useBackend)(l),g=p.act,V=p.data,B=V.disk;return(0,e.createComponentVNode)(2,t.Collapsible,{title:v,open:!0,children:C?N.map(function(I){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:I.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(B!=null&&B.can_extract),icon:"save",onClick:function(){function L(){return g("extract",{id:I.id})}return L}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"times",onClick:function(){function L(){return g("remove",{id:I.id})}return L}()})})]},I)}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"No Genes Detected"})},v)},d=function(s,l){var v=s.title,N=s.gene_set,C=s.do_we_show,p=(0,a.useBackend)(l),g=p.act,V=p.data,B=V.has_seed,I=V.empty_disks,L=V.stat_disks,w=V.trait_disks,x=V.reagent_disks;return(0,e.createComponentVNode)(2,t.Section,{title:"Disks",children:[(0,e.createVNode)(1,"br"),"Empty Disks: ",I,(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{width:12,icon:"arrow-down",tooltip:"Eject an Empty disk",content:"Eject Empty Disk",onClick:function(){function A(){return g("eject_empty_disk")}return A}()}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stats",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[L.slice().sort(function(A,E){return A.display_name.localeCompare(E.display_name)}).map(function(A){return(0,e.createComponentVNode)(2,t.Stack,{mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"49%",children:A.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:25,children:[A.stat==="All"?(0,e.createComponentVNode)(2,t.Button,{content:"Replace All",tooltip:"Write disk stats to seed",disabled:!(A!=null&&A.ready)||!B,icon:"arrow-circle-down",onClick:function(){function E(){return g("bulk_replace_core",{index:A.index})}return E}()}):(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-circle-down",tooltip:"Write disk stat to seed",disabled:!A||!B,content:"Replace",onClick:function(){function E(){return g("replace",{index:A.index,stat:A.stat})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-right",content:"Select",tooltip:"Choose as target for extracted genes",tooltipPosition:"bottom-start",onClick:function(){function E(){return g("select",{index:A.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:5,icon:"arrow-down",content:"Eject",tooltip:"Eject Disk",tooltipPosition:"bottom-start",onClick:function(){function E(){return g("eject_disk",{index:A.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:2,icon:A.read_only?"lock":"lock-open",content:"",tool_tip:"Set/unset Read Only",onClick:function(){function E(){return g("set_read_only",{index:A.index,read_only:A.read_only})}return E}()})]})]},A)}),(0,e.createComponentVNode)(2,t.Button)]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Traits",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[w.slice().sort(function(A,E){return A.display_name.localeCompare(E.display_name)}).map(function(A){return(0,e.createComponentVNode)(2,t.Stack,{mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"49%",children:A.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:25,children:[(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-circle-down",disabled:!A||!A.can_insert,tooltip:"Add disk trait to seed",content:"Insert",onClick:function(){function E(){return g("insert",{index:A.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-right",content:"Select",tooltip:"Choose as target for extracted genes",tooltipPosition:"bottom-start",onClick:function(){function E(){return g("select",{index:A.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:5,icon:"arrow-down",content:"Eject",tooltip:"Eject Disk",tooltipPosition:"bottom-start",onClick:function(){function E(){return g("eject_disk",{index:A.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:2,icon:A.read_only?"lock":"lock-open",content:"",tool_tip:"Set/unset Read Only",onClick:function(){function E(){return g("set_read_only",{index:A.index,read_only:A.read_only})}return E}()})]})]},A)}),(0,e.createComponentVNode)(2,t.Button)]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Reagents",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[x.slice().sort(function(A,E){return A.display_name.localeCompare(E.display_name)}).map(function(A){return(0,e.createComponentVNode)(2,t.Stack,{mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"49%",children:A.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:25,children:[(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-circle-down",disabled:!A||!A.can_insert,tooltip:"Add disk reagent to seed",content:"Insert",onClick:function(){function E(){return g("insert",{index:A.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-right",content:"Select",tooltip:"Choose as target for extracted genes",tooltipPosition:"bottom-start",onClick:function(){function E(){return g("select",{index:A.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:5,icon:"arrow-down",content:"Eject",tooltip:"Eject Disk",tooltipPosition:"bottom-start",onClick:function(){function E(){return g("eject_disk",{index:A.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:2,icon:A.read_only?"lock":"lock-open",content:"",tool_tip:"Set/unset Read Only",onClick:function(){function E(){return g("set_read_only",{index:A.index,read_only:A.read_only})}return E}()})]})]},A)}),(0,e.createComponentVNode)(2,t.Button)]})})]})]})}},73053:function(T,r,n){"use strict";r.__esModule=!0,r.GenericCrewManifest=void 0;var e=n(89005),a=n(36036),t=n(98595),o=n(41874),f=r.GenericCrewManifest=function(){function b(y,S){return(0,e.createComponentVNode)(2,t.Window,{theme:"nologo",width:588,height:510,children:(0,e.createComponentVNode)(2,t.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,a.Section,{noTopPadding:!0,children:(0,e.createComponentVNode)(2,o.CrewManifest)})})})}return b}()},42914:function(T,r,n){"use strict";r.__esModule=!0,r.GhostHudPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.GhostHudPanel=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.data,i=c.security,m=c.medical,d=c.diagnostic,u=c.radioactivity,s=c.ahud;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:207,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,b,{label:"Medical",type:"medical",is_active:m}),(0,e.createComponentVNode)(2,b,{label:"Security",type:"security",is_active:i}),(0,e.createComponentVNode)(2,b,{label:"Diagnostic",type:"diagnostic",is_active:d}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,b,{label:"Radioactivity",type:"radioactivity",is_active:u,act_on:"rads_on",act_off:"rads_off"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,b,{label:"Antag HUD",is_active:s,act_on:"ahud_on",act_off:"ahud_off"})]})})})}return y}(),b=function(S,k){var h=(0,a.useBackend)(k),c=h.act,i=S.label,m=S.type,d=m===void 0?null:m,u=S.is_active,s=S.act_on,l=s===void 0?"hud_on":s,v=S.act_off,N=v===void 0?"hud_off":v;return(0,e.createComponentVNode)(2,t.Flex,{pt:.3,color:"label",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{pl:.5,align:"center",width:"80%",children:i}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:.6,content:u?"On":"Off",icon:u?"toggle-on":"toggle-off",selected:u,onClick:function(){function C(){return c(u?N:l,{hud_type:d})}return C}()})})]})}},25825:function(T,r,n){"use strict";r.__esModule=!0,r.GlandDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.GlandDispenser=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.glands,m=i===void 0?[]:i;return(0,e.createComponentVNode)(2,o.Window,{width:300,height:338,theme:"abductor",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:m.map(function(d){return(0,e.createComponentVNode)(2,t.Button,{width:"60px",height:"60px",m:.75,textAlign:"center",fontSize:"17px",lineHeight:"55px",icon:"eject",backgroundColor:d.color,content:d.amount||"0",disabled:!d.amount,onClick:function(){function u(){return h("dispense",{gland_id:d.id})}return u}()},d.id)})})})})}return b}()},10270:function(T,r,n){"use strict";r.__esModule=!0,r.GravityGen=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.GravityGen=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.charging_state,m=c.charge_count,d=c.breaker,u=c.ext_power,s=function(){function v(N){return N>0?(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"average",children:["[ ",N===1?"Charging":"Discharging"," ]"]}):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:u?"good":"bad",children:["[ ",u?"Powered":"Unpowered"," ]"]})}return v}(),l=function(){function v(N){if(N>0)return(0,e.createComponentVNode)(2,t.NoticeBox,{danger:!0,p:1.5,children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," Radiation Detected!"]})}return v}();return(0,e.createComponentVNode)(2,o.Window,{width:350,height:170,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[l(i),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Generator Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"Online":"Offline",color:d?"green":"red",px:1.5,onClick:function(){function v(){return h("breaker")}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Status",color:u?"good":"bad",children:s(i)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gravity Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:m/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})})]})})]})})})}return b}()},48657:function(T,r,n){"use strict";r.__esModule=!0,r.GuestPass=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(49148),b=r.GuestPass=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:690,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"id-card",selected:!i.showlogs,onClick:function(){function m(){return c("mode",{mode:0})}return m}(),children:"Issue Pass"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"scroll",selected:i.showlogs,onClick:function(){function m(){return c("mode",{mode:1})}return m}(),children:["Records (",i.issue_log.length,")"]})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.scan_name?"eject":"id-card",selected:i.scan_name,content:i.scan_name?i.scan_name:"-----",tooltip:i.scan_name?"Eject ID":"Insert ID",onClick:function(){function m(){return c("scan")}return m}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!i.showlogs&&(0,e.createComponentVNode)(2,t.Section,{title:"Issue Guest Pass",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Issue To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:i.giv_name?i.giv_name:"-----",disabled:!i.scan_name,onClick:function(){function m(){return c("giv_name")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reason",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:i.reason?i.reason:"-----",disabled:!i.scan_name,onClick:function(){function m(){return c("reason")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:i.duration?i.duration:"-----",disabled:!i.scan_name,onClick:function(){function m(){return c("duration")}return m}()})})]})})}),!i.showlogs&&(i.scan_name?(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:i.printmsg,disabled:!i.canprint,onClick:function(){function m(){return c("issue")}return m}()}),grantableList:i.grantableList,accesses:i.regions,selectedList:i.selectedAccess,accessMod:function(){function m(d){return c("access",{access:d})}return m}(),grantAll:function(){function m(){return c("grant_all")}return m}(),denyAll:function(){function m(){return c("clear_all")}return m}(),grantDep:function(){function m(d){return c("grant_region",{region:d})}return m}(),denyDep:function(){function m(d){return c("deny_region",{region:d})}return m}()})}):(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"id-card",size:5,color:"gray",mb:5}),(0,e.createVNode)(1,"br"),"Please, insert ID Card"]})})})})),!!i.showlogs&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Issuance Log",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:!i.scan_name,onClick:function(){function m(){return c("print")}return m}()}),children:!!i.issue_log.length&&(0,e.createComponentVNode)(2,t.LabeledList,{children:i.issue_log.map(function(m,d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:m},d)})})||(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No logs"]})})})})]})})})}return y}()},67834:function(T,r,n){"use strict";r.__esModule=!0,r.HandheldChemDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=[1,5,10,20,30,50],b=null,y=r.HandheldChemDispenser=function(){function h(c,i){return(0,e.createComponentVNode)(2,o.Window,{width:390,height:430,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,k)]})})})}return h}(),S=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.amount,l=u.energy,v=u.maxEnergy,N=u.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:l,minValue:0,maxValue:v,ranges:{good:[v*.5,1/0],average:[v*.25,v*.5],bad:[-1/0,v*.25]},children:[l," / ",v," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Amount",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:f.map(function(C,p){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:s===C,content:C,onClick:function(){function g(){return d("amount",{amount:C})}return g}()})},p)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mode",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:N==="dispense",content:"Dispense",m:"0",width:"32%",onClick:function(){function C(){return d("mode",{mode:"dispense"})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:N==="remove",content:"Remove",m:"0",width:"32%",onClick:function(){function C(){return d("mode",{mode:"remove"})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:N==="isolate",content:"Isolate",m:"0",width:"32%",onClick:function(){function C(){return d("mode",{mode:"isolate"})}return C}()})]})})]})})})},k=function(c,i){for(var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.chemicals,l=s===void 0?[]:s,v=u.current_reagent,N=[],C=0;C<(l.length+1)%3;C++)N.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,height:"18%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:u.glass?"Drink Selector":"Chemical Selector",children:[l.map(function(p,g){return(0,e.createComponentVNode)(2,t.Button,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:v===p.id,content:p.title,style:{"margin-left":"2px"},onClick:function(){function V(){return d("dispense",{reagent:p.id})}return V}()},g)}),N.map(function(p,g){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:"1",basis:"25%"},g)})]})})}},46098:function(T,r,n){"use strict";r.__esModule=!0,r.HealthSensor=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=r.HealthSensor=function(){function S(k,h){var c=(0,t.useBackend)(h),i=c.act,m=c.data,d=m.on,u=m.user_health,s=m.minHealth,l=m.maxHealth,v=m.alarm_health;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:125,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scanning",children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:d?"On":"Off",color:d?null:"red",selected:d,onClick:function(){function N(){return i("scan_toggle")}return N}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health activation",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:2,stepPixelSize:6,minValue:s,maxValue:l,value:v,format:function(){function N(C){return(0,a.toFixed)(C,1)}return N}(),width:"80px",onDrag:function(){function N(C,p){return i("alarm_health",{alarm_health:p})}return N}()})}),u!==null&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"User health",children:(0,e.createComponentVNode)(2,o.Box,{color:y(u),bold:u>=100,children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:u})})})]})})})})}return S}(),y=function(k){return k>50?"green":k>0?"orange":"red"}},36771:function(T,r,n){"use strict";r.__esModule=!0,r.Holodeck=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Holodeck=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=(0,a.useLocalState)(k,"currentDeck",""),d=m[0],u=m[1],s=(0,a.useLocalState)(k,"showReload",!1),l=s[0],v=s[1],N=i.decks,C=i.ai_override,p=i.emagged,g=function(){function V(B){c("select_deck",{deck:B}),u(B),v(!0),setTimeout(function(){v(!1)},3e3)}return V}();return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:[l&&(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Holodeck Control System",children:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"b",null,"Currently Loaded Program:",16)," ",d]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Available Programs",children:[N.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{width:15.5,color:"transparent",content:V,selected:V===d,onClick:function(){function B(){return g(V)}return B}()},V)}),(0,e.createVNode)(1,"hr",null,null,1,{color:"gray"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!C&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Override Protocols",children:(0,e.createComponentVNode)(2,t.Button,{content:p?"Turn On":"Turn Off",color:p?"good":"bad",onClick:function(){function V(){return c("ai_override")}return V}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety Protocols",children:(0,e.createComponentVNode)(2,t.Box,{color:p?"bad":"good",children:[p?"Off":"On",!!p&&(0,e.createComponentVNode)(2,t.Button,{ml:9.5,width:15.5,color:"red",content:"Wildlife Simulation",onClick:function(){function V(){return c("wildlifecarp")}return V}()})]})})]})]})})]})})]})}return y}(),b=function(S,k){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"white",children:(0,e.createVNode)(1,"h1",null,"\xA0Recalibrating projection apparatus.\xA0",16)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,"Please, wait for 3 seconds.",16)})]})}},25471:function(T,r,n){"use strict";r.__esModule=!0,r.Instrument=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=r.Instrument=function(){function c(i,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:505,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,h)]})})]})}return c}(),y=function(i,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data,l=s.help;if(l)return(0,e.createComponentVNode)(2,o.Modal,{maxWidth:"75%",height:window.innerHeight*.75+"px",mx:"auto",py:"0",px:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{height:"100%",title:"Help",level:"2",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{px:"0.5rem",mt:"-0.5rem",children:[(0,e.createVNode)(1,"h1",null,"Making a Song",16),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen: "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen: "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"h1",null,"Instrument Advanced Settings",16),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Type:"}),(0,e.createTextVNode)("\xA0Whether the instrument is legacy or synthesized."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Legacy instruments have a collection of sounds that are selectively used depending on the note to play."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Synthesized instruments use a base sound and change its pitch to match the note to play.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Current:"}),(0,e.createTextVNode)("\xA0Which instrument sample to play. Some instruments can be tuned to play different samples. Experiment!")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Note Shift/Note Transpose:"}),(0,e.createTextVNode)("\xA0The pitch to apply to all notes of the song.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain Mode:"}),(0,e.createTextVNode)("\xA0How a played note fades out."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Linear sustain means a note will fade out at a constant rate."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Exponential sustain means a note will fade out at an exponential rate, sounding smoother.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Volume Dropoff Threshold:"}),(0,e.createTextVNode)("\xA0The volume threshold at which a note is fully stopped.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain indefinitely last held note:"}),(0,e.createTextVNode)("\xA0Whether the last note should be sustained indefinitely.")],4)],4),(0,e.createComponentVNode)(2,o.Button,{color:"grey",content:"Close",onClick:function(){function v(){return u("help")}return v}()})]})})})},S=function(i,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data,l=s.lines,v=s.playing,N=s.repeat,C=s.maxRepeats,p=s.tempo,g=s.minTempo,V=s.maxTempo,B=s.tickLag,I=s.volume,L=s.minVolume,w=s.maxVolume,x=s.ready;return(0,e.createComponentVNode)(2,o.Section,{title:"Instrument",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"info",content:"Help",onClick:function(){function A(){return u("help")}return A}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file",content:"New",onClick:function(){function A(){return u("newsong")}return A}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"upload",content:"Import",onClick:function(){function A(){return u("import")}return A}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Playback",children:[(0,e.createComponentVNode)(2,o.Button,{selected:v,disabled:l.length===0||N<0,icon:"play",content:"Play",onClick:function(){function A(){return u("play")}return A}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!v,icon:"stop",content:"Stop",onClick:function(){function A(){return u("stop")}return A}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Repeat",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:0,maxValue:C,value:N,stepPixelSize:59,onChange:function(){function A(E,P){return u("repeat",{new:P})}return A}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tempo",children:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{disabled:p>=V,content:"-",as:"span",mr:"0.5rem",onClick:function(){function A(){return u("tempo",{new:p+B})}return A}()}),(0,a.round)(600/p)," BPM",(0,e.createComponentVNode)(2,o.Button,{disabled:p<=g,content:"+",as:"span",ml:"0.5rem",onClick:function(){function A(){return u("tempo",{new:p-B})}return A}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:L,maxValue:w,value:I,stepPixelSize:6,onDrag:function(){function A(E,P){return u("setvolume",{new:P})}return A}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:x?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Ready"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Instrument Definition Error!"})})]}),(0,e.createComponentVNode)(2,k)]})},k=function(i,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data,l=s.allowedInstrumentNames,v=s.instrumentLoaded,N=s.instrument,C=s.canNoteShift,p=s.noteShift,g=s.noteShiftMin,V=s.noteShiftMax,B=s.sustainMode,I=s.sustainLinearDuration,L=s.sustainExponentialDropoff,w=s.legacy,x=s.sustainDropoffVolume,A=s.sustainHeldNote,E,P;return B===1?(E="Linear",P=(0,e.createComponentVNode)(2,o.Slider,{minValue:.1,maxValue:5,value:I,step:.5,stepPixelSize:85,format:function(){function j(M){return(0,a.round)(M*100)/100+" seconds"}return j}(),onChange:function(){function j(M,R){return u("setlinearfalloff",{new:R/10})}return j}()})):B===2&&(E="Exponential",P=(0,e.createComponentVNode)(2,o.Slider,{minValue:1.025,maxValue:10,value:L,step:.01,format:function(){function j(M){return(0,a.round)(M*1e3)/1e3+"% per decisecond"}return j}(),onChange:function(){function j(M,R){return u("setexpfalloff",{new:R})}return j}()})),l.sort(),(0,e.createComponentVNode)(2,o.Box,{my:-1,children:(0,e.createComponentVNode)(2,o.Collapsible,{mt:"1rem",mb:"0",title:"Advanced",children:(0,e.createComponentVNode)(2,o.Section,{mt:-1,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Type",children:w?"Legacy":"Synthesized"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current",children:v?(0,e.createComponentVNode)(2,o.Dropdown,{options:l,selected:N,width:"50%",onSelected:function(){function j(M){return u("switchinstrument",{name:M})}return j}()}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None!"})}),!!(!w&&C)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Note Shift/Note Transpose",children:(0,e.createComponentVNode)(2,o.Slider,{minValue:g,maxValue:V,value:p,stepPixelSize:2,format:function(){function j(M){return M+" keys / "+(0,a.round)(M/12*100)/100+" octaves"}return j}(),onChange:function(){function j(M,R){return u("setnoteshift",{new:R})}return j}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain Mode",children:[(0,e.createComponentVNode)(2,o.Dropdown,{options:["Linear","Exponential"],selected:E,onSelected:function(){function j(M){return u("setsustainmode",{new:M})}return j}()}),P]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume Dropoff Threshold",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:.01,maxValue:100,value:x,stepPixelSize:6,onChange:function(){function j(M,R){return u("setdropoffvolume",{new:R})}return j}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain indefinitely last held note",children:(0,e.createComponentVNode)(2,o.Button,{selected:A,icon:A?"toggle-on":"toggle-off",content:A?"Yes":"No",onClick:function(){function j(){return u("togglesustainhold")}return j}()})})],4)]}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){function j(){return u("reset")}return j}()})]})})})},h=function(i,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data,l=s.playing,v=s.lines,N=s.editing;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Editor",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!N||l,icon:"plus",content:"Add Line",onClick:function(){function C(){return u("newline",{line:v.length+1})}return C}()}),(0,e.createComponentVNode)(2,o.Button,{selected:!N,icon:N?"chevron-up":"chevron-down",onClick:function(){function C(){return u("edit")}return C}()})],4),children:!!N&&(v.length>0?(0,e.createComponentVNode)(2,o.LabeledList,{children:v.map(function(C,p){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:p+1,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:l,icon:"pen",onClick:function(){function g(){return u("modifyline",{line:p+1})}return g}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:l,icon:"trash",onClick:function(){function g(){return u("deleteline",{line:p+1})}return g}()})],4),children:C},p)})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Song is empty."}))})}},13618:function(T,r,n){"use strict";r.__esModule=!0,r.KeyComboModal=void 0;var e=n(89005),a=n(70611),t=n(72253),o=n(36036),f=n(98595),b=n(19203),y=n(51057),S=function(d){return d.key!==a.KEY.Alt&&d.key!==a.KEY.Control&&d.key!==a.KEY.Shift&&d.key!==a.KEY.Escape},k={DEL:"Delete",DOWN:"South",END:"Southwest",HOME:"Northwest",INSERT:"Insert",LEFT:"West",PAGEDOWN:"Southeast",PAGEUP:"Northeast",RIGHT:"East",SPACEBAR:"Space",UP:"North"},h=3,c=function(d){var u="";if(d.altKey&&(u+="Alt"),d.ctrlKey&&(u+="Ctrl"),d.shiftKey&&!(d.keyCode>=48&&d.keyCode<=57)&&(u+="Shift"),d.location===h&&(u+="Numpad"),S(d))if(d.shiftKey&&d.keyCode>=48&&d.keyCode<=57){var s=d.keyCode-48;u+="Shift"+s}else{var l=d.key.toUpperCase();u+=k[l]||l}return u},i=r.KeyComboModal=function(){function m(d,u){var s=(0,t.useBackend)(u),l=s.act,v=s.data,N=v.init_value,C=v.large_buttons,p=v.message,g=p===void 0?"":p,V=v.title,B=v.timeout,I=(0,t.useLocalState)(u,"input",N),L=I[0],w=I[1],x=(0,t.useLocalState)(u,"binding",!0),A=x[0],E=x[1],P=function(){function R(D){if(!A){D.key===a.KEY.Enter&&l("submit",{entry:L}),D.key===a.KEY.Escape&&l("cancel");return}if(D.preventDefault(),S(D)){j(c(D)),E(!1);return}else if(D.key===a.KEY.Escape){j(N),E(!1);return}}return R}(),j=function(){function R(D){D!==L&&w(D)}return R}(),M=130+(g.length>30?Math.ceil(g.length/3):0)+(g.length&&C?5:0);return(0,e.createComponentVNode)(2,f.Window,{title:V,width:240,height:M,children:[B&&(0,e.createComponentVNode)(2,y.Loader,{value:B}),(0,e.createComponentVNode)(2,f.Window.Content,{onKeyDown:function(){function R(D){P(D)}return R}(),children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Autofocus),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:g})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:A,content:A&&A!==null?"Awaiting input...":""+L,width:"100%",textAlign:"center",onClick:function(){function R(){j(N),E(!0)}return R}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,b.InputButtons,{input:L})})]})]})})]})}return m}()},35655:function(T,r,n){"use strict";r.__esModule=!0,r.KeycardAuth=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.KeycardAuth=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=(0,e.createComponentVNode)(2,t.Section,{title:"Keycard Authentication Device",children:(0,e.createComponentVNode)(2,t.Box,{children:"This device is used to trigger certain high security events. It requires the simultaneous swipe of two high-level ID cards."})});if(!c.swiping&&!c.busy)return(0,e.createComponentVNode)(2,o.Window,{width:540,height:280,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[i,(0,e.createComponentVNode)(2,t.Section,{title:"Choose Action",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Red Alert",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",disabled:!c.redAvailable,onClick:function(){function d(){return h("triggerevent",{triggerevent:"Red Alert"})}return d}(),content:"Red Alert"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ERT",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",onClick:function(){function d(){return h("triggerevent",{triggerevent:"Emergency Response Team"})}return d}(),content:"Call ERT"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Maint Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function d(){return h("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})}return d}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function d(){return h("triggerevent",{triggerevent:"Revoke Emergency Maintenance Access"})}return d}(),content:"Revoke"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Station-Wide Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function d(){return h("triggerevent",{triggerevent:"Activate Station-Wide Emergency Access"})}return d}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function d(){return h("triggerevent",{triggerevent:"Deactivate Station-Wide Emergency Access"})}return d}(),content:"Revoke"})]})]})})]})});var m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Waiting for YOU to swipe your ID..."});return!c.hasSwiped&&!c.ertreason&&c.event==="Emergency Response Team"?m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Fill out the reason for your ERT request."}):c.hasConfirm?m=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Request Confirmed!"}):c.isRemote?m=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):c.hasSwiped&&(m=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Waiting for second person to confirm..."})),(0,e.createComponentVNode)(2,o.Window,{width:540,height:265,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[i,c.event==="Emergency Response Team"&&(0,e.createComponentVNode)(2,t.Section,{title:"Reason for ERT Call",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{color:c.ertreason?"":"red",icon:c.ertreason?"check":"pencil-alt",content:c.ertreason?c.ertreason:"-----",disabled:c.busy,onClick:function(){function d(){return h("ert")}return d}()})})}),(0,e.createComponentVNode)(2,t.Section,{title:c.event,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back",disabled:c.busy||c.hasConfirm,onClick:function(){function d(){return h("reset")}return d}()}),children:m})]})})}return b}()},62955:function(T,r,n){"use strict";r.__esModule=!0,r.KitchenMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(62411),b=r.KitchenMachine=function(){function S(k,h){var c=(0,a.useBackend)(h),i=c.data,m=c.config,d=i.ingredients,u=i.operating,s=m.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Operating,{operating:u,name:s}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,y)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Ingredients",children:(0,e.createComponentVNode)(2,t.Table,{className:"Ingredient__Table",children:d.map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{tr:5,children:[(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:l.name}),2),(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:[l.amount," ",l.units]}),2)]},l.name)})})})})]})})})}return S}(),y=function(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.inactive,u=m.tooltip;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:d,tooltip:d?u:"",tooltipPosition:"bottom",content:"Activate",onClick:function(){function s(){return i("cook")}return s}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:d,tooltip:d?u:"",tooltipPosition:"bottom",content:"Eject Contents",onClick:function(){function s(){return i("eject")}return s}()})})]})})}},9525:function(T,r,n){"use strict";r.__esModule=!0,r.LawManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.LawManager=function(){function k(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.isAdmin,s=d.isSlaved,l=d.isMalf,v=d.isAIMalf,N=d.view;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:l?620:365,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!(u&&s)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["This unit is slaved to ",s,"."]}),!!(l||v)&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Law Management",selected:N===0,onClick:function(){function C(){return m("set_view",{set_view:0})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Lawsets",selected:N===1,onClick:function(){function C(){return m("set_view",{set_view:1})}return C}()})]}),N===0&&(0,e.createComponentVNode)(2,b),N===1&&(0,e.createComponentVNode)(2,y)]})})}return k}(),b=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.has_zeroth_laws,s=d.zeroth_laws,l=d.has_ion_laws,v=d.ion_laws,N=d.ion_law_nr,C=d.has_inherent_laws,p=d.inherent_laws,g=d.has_supplied_laws,V=d.supplied_laws,B=d.channels,I=d.channel,L=d.isMalf,w=d.isAdmin,x=d.zeroth_law,A=d.ion_law,E=d.inherent_law,P=d.supplied_law,j=d.supplied_law_position;return(0,e.createFragment)([!!u&&(0,e.createComponentVNode)(2,S,{title:"ERR_NULL_VALUE",laws:s,ctx:c}),!!l&&(0,e.createComponentVNode)(2,S,{title:N,laws:v,ctx:c}),!!C&&(0,e.createComponentVNode)(2,S,{title:"Inherent",laws:p,ctx:c}),!!g&&(0,e.createComponentVNode)(2,S,{title:"Supplied",laws:V,ctx:c}),(0,e.createComponentVNode)(2,t.Section,{title:"Statement Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Statement Channel",children:B.map(function(M){return(0,e.createComponentVNode)(2,t.Button,{content:M.channel,selected:M.channel===I,onClick:function(){function R(){return m("law_channel",{law_channel:M.channel})}return R}()},M.channel)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State Laws",children:(0,e.createComponentVNode)(2,t.Button,{content:"State Laws",onClick:function(){function M(){return m("state_laws")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Law Notification",children:(0,e.createComponentVNode)(2,t.Button,{content:"Notify",onClick:function(){function M(){return m("notify_laws")}return M}()})})]})}),!!L&&(0,e.createComponentVNode)(2,t.Section,{title:"Add Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"60%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Actions"})]}),!!(w&&!u)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Zero"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:x}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_zeroth_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_zeroth_law")}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ion"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:A}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_ion_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_ion_law")}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Inherent"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:E}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_inherent_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_inherent_law")}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Supplied"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:P}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:j,onClick:function(){function M(){return m("change_supplied_law_position")}return M}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_supplied_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_supplied_law")}return M}()})]})]})]})})],0)},y=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.law_sets;return(0,e.createComponentVNode)(2,t.Box,{children:u.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name+" - "+s.header,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Load Laws",icon:"download",onClick:function(){function l(){return m("transfer_laws",{transfer_laws:s.ref})}return l}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.laws.has_ion_laws>0&&s.laws.ion_laws.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.index,children:l.law},l.index)}),s.laws.has_zeroth_laws>0&&s.laws.zeroth_laws.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.index,children:l.law},l.index)}),s.laws.has_inherent_laws>0&&s.laws.inherent_laws.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.index,children:l.law},l.index)}),s.laws.has_supplied_laws>0&&s.laws.inherent_laws.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.index,children:l.law},l.index)})]})},s.name)})})},S=function(h,c){var i=(0,a.useBackend)(h.ctx),m=i.act,d=i.data,u=d.isMalf;return(0,e.createComponentVNode)(2,t.Section,{title:h.title+" Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"69%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"21%",children:"State?"})]}),h.laws.map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.index}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.law}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:s.state?"Yes":"No",selected:s.state,onClick:function(){function l(){return m("state_law",{ref:s.ref,state_law:s.state?0:1})}return l}()}),!!u&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function l(){return m("edit_law",{edit_law:s.ref})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){function l(){return m("delete_law",{delete_law:s.ref})}return l}()})],4)]})]},s.law)})]})})}},85066:function(T,r,n){"use strict";r.__esModule=!0,r.LibraryComputer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=r.LibraryComputer=function(){function N(C,p){return(0,e.createComponentVNode)(2,o.Window,{width:1050,height:600,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i)]})})]})}return N}(),y=function(C,p){var g=(0,a.useBackend)(p),V=g.act,B=g.data,I=C.args,L=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:I.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:I.summary}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[I.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",verticalAlign:"top"})]}),!I.isProgrammatic&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Categories",children:I.categories.join(", ")})]}),(0,e.createVNode)(1,"br"),L===I.ckey&&(0,e.createComponentVNode)(2,t.Button,{content:"Delete Book",icon:"trash",color:"red",disabled:I.isProgrammatic,onClick:function(){function w(){return V("delete_book",{bookid:I.id,user_ckey:L})}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Report Book",icon:"flag",color:"red",disabled:I.isProgrammatic,onClick:function(){function w(){return(0,f.modalOpen)(p,"report_book",{bookid:I.id})}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rate Book",icon:"star",color:"caution",disabled:I.isProgrammatic,onClick:function(){function w(){return(0,f.modalOpen)(p,"rate_info",{bookid:I.id})}return w}()})]})},S=function(C,p){var g=(0,a.useBackend)(p),V=g.act,B=g.data,I=C.args,L=B.selected_report,w=B.report_categories,x=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",title:"Report this book for Rule Violations",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reasons",children:(0,e.createComponentVNode)(2,t.Box,{children:w.map(function(A,E){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:A.description,selected:A.category_id===L,onClick:function(){function P(){return V("set_report",{report_type:A.category_id})}return P}()}),(0,e.createVNode)(1,"br")],4,E)})})})]}),(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,icon:"paper-plane",content:"Submit Report",onClick:function(){function A(){return V("submit_report",{bookid:I.id,user_ckey:x})}return A}()})]})},k=function(C,p){var g=(0,a.useBackend)(p),V=g.act,B=g.data,I=B.selected_rating,L=Array(10).fill().map(function(w,x){return 1+x});return(0,e.createComponentVNode)(2,t.Stack,{children:[L.map(function(w,x){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{bold:!0,icon:"star",color:I>=w?"caution":"default",onClick:function(){function A(){return V("set_rating",{rating_value:w})}return A}()})},x)}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,ml:2,fontSize:"150%",children:[I+"/10",(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"top"})]})]})},h=function(C,p){var g=(0,a.useBackend)(p),V=g.act,B=g.data,I=C.args,L=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:I.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[I.current_rating?I.current_rating:0,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Ratings",children:I.total_ratings?I.total_ratings:0})]}),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,t.Button.Confirm,{mt:2,content:"Submit",icon:"paper-plane",onClick:function(){function w(){return V("rate_book",{bookid:I.id,user_ckey:L})}return w}()})]})},c=function(C,p){var g=(0,a.useBackend)(p),V=g.data,B=(0,a.useLocalState)(p,"tabIndex",0),I=B[0],L=B[1],w=V.login_state;return(0,e.createComponentVNode)(2,t.Stack.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===0,onClick:function(){function x(){return L(0)}return x}(),children:"Book Archives"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===1,onClick:function(){function x(){return L(1)}return x}(),children:"Corporate Literature"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===2,onClick:function(){function x(){return L(2)}return x}(),children:"Upload Book"}),w===1&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===3,onClick:function(){function x(){return L(3)}return x}(),children:"Patron Manager"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===4,onClick:function(){function x(){return L(4)}return x}(),children:"Inventory"})]})})},i=function(C,p){var g=(0,a.useLocalState)(p,"tabIndex",0),V=g[0];switch(V){case 0:return(0,e.createComponentVNode)(2,d);case 1:return(0,e.createComponentVNode)(2,u);case 2:return(0,e.createComponentVNode)(2,s);case 3:return(0,e.createComponentVNode)(2,l);case 4:return(0,e.createComponentVNode)(2,v);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},m=function(C,p){var g=(0,a.useBackend)(p),V=g.act,B=g.data,I=B.searchcontent,L=B.book_categories,w=B.user_ckey,x=[];return L.map(function(A){return x[A.description]=A.category_id}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"35%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"edit",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Inputs"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:I.title||"Input Title",onClick:function(){function A(){return(0,f.modalOpen)(p,"edit_search_title")}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:I.author||"Input Author",onClick:function(){function A(){return(0,f.modalOpen)(p,"edit_search_author")}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Ratings",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:1,width:"min-content",content:I.ratingmin,onClick:function(){function A(){return(0,f.modalOpen)(p,"edit_search_ratingmin")}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:"To"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:1,width:"min-content",content:I.ratingmax,onClick:function(){function A(){return(0,f.modalOpen)(p,"edit_search_ratingmax")}return A}()})})]})})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"clipboard-list",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Book Categories"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Dropdown,{mt:.6,width:"190px",options:L.map(function(A){return A.description}),onSelected:function(){function A(E){return V("toggle_search_category",{category_id:x[E]})}return A}()})})})}),(0,e.createVNode)(1,"br"),L.filter(function(A){return I.categories.includes(A.category_id)}).map(function(A){return(0,e.createComponentVNode)(2,t.Button,{content:A.description,selected:!0,icon:"unlink",onClick:function(){function E(){return V("toggle_search_category",{category_id:A.category_id})}return E}()},A.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Actions"]}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Search",icon:"eraser",onClick:function(){function A(){return V("clear_search")}return A}()}),I.ckey?(0,e.createComponentVNode)(2,t.Button,{mb:.5,content:"Stop Showing My Books",color:"bad",icon:"search",onClick:function(){function A(){return V("clear_ckey_search")}return A}()}):(0,e.createComponentVNode)(2,t.Button,{content:"Find My Books",icon:"search",onClick:function(){function A(){return V("find_users_books",{user_ckey:w})}return A}()})]})]})},d=function(C,p){var g=(0,a.useBackend)(p),V=g.act,B=g.data,I=B.external_booklist,L=B.archive_pagenumber,w=B.num_pages,x=B.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Access",buttons:(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",disabled:L===1,onClick:function(){function A(){return V("deincrementpagemax")}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",disabled:L===1,onClick:function(){function A(){return V("deincrementpage")}return A}()}),(0,e.createComponentVNode)(2,t.Button,{bold:!0,content:L,onClick:function(){function A(){return(0,f.modalOpen)(p,"setpagenumber")}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",disabled:L===w,onClick:function(){function A(){return V("incrementpage")}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",disabled:L===w,onClick:function(){function A(){return V("incrementpagemax")}return A}()})],4),children:[(0,e.createComponentVNode)(2,m),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ratings"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Category"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),I.map(function(A){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:A.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:.5}),A.title.length>45?A.title.substr(0,45)+"...":A.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:A.author.length>30?A.author.substr(0,30)+"...":A.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[A.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",ml:.5,color:"yellow",verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:A.categories.join(", ").substr(0,45)}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[x===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function E(){return V("order_external_book",{bookid:A.id})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function E(){return(0,f.modalOpen)(p,"expand_info",{bookid:A.id})}return E}()})]})]},A.id)})]})]})},u=function(C,p){var g=(0,a.useBackend)(p),V=g.act,B=g.data,I=B.programmatic_booklist,L=B.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Corporate Book Catalog",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),I.map(function(w,x){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:2}),w.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[L===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function A(){return V("order_programmatic_book",{bookid:w.id})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function A(){return(0,f.modalOpen)(p,"expand_info",{bookid:w.id})}return A}()})]})]},x)})]})})},s=function(C,p){var g=(0,a.useBackend)(p),V=g.act,B=g.data,I=B.selectedbook,L=B.book_categories,w=B.user_ckey,x=[];return L.map(function(A){return x[A.description]=A.category_id}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Upload",buttons:(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,width:9.5,icon:"upload",disabled:I.copyright,content:"Upload Book",onClick:function(){function A(){return V("uploadbook",{user_ckey:w})}return A}()}),children:[I.copyright?(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"WARNING: You cannot upload or modify the attributes of a copyrighted book"}):(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{ml:15,mb:3,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:2}),"Book Uploader"]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:I.copyright,content:I.title,onClick:function(){function A(){return(0,f.modalOpen)(p,"edit_selected_title")}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:I.copyright,content:I.author,onClick:function(){function A(){return(0,f.modalOpen)(p,"edit_selected_author")}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"240px",options:L.map(function(A){return A.description}),onSelected:function(){function A(E){return V("toggle_upload_category",{category_id:x[E]})}return A}()})})})]}),(0,e.createVNode)(1,"br"),L.filter(function(A){return I.categories.includes(A.category_id)}).map(function(A){return(0,e.createComponentVNode)(2,t.Button,{content:A.description,disabled:I.copyright,selected:!0,icon:"unlink",onClick:function(){function E(){return V("toggle_upload_category",{category_id:A.category_id})}return E}()},A.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:75,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",width:"auto",disabled:I.copyright,content:"Edit Summary",onClick:function(){function A(){return(0,f.modalOpen)(p,"edit_selected_summary")}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:I.summary})]})})]})]})},l=function(C,p){var g=(0,a.useBackend)(p),V=g.act,B=g.data,I=B.checkout_data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Checked Out Books",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Patron"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),I.map(function(L,w){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-tag"}),L.patron_name]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:L.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.timeleft>=0?L.timeleft:"LATE"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:(0,e.createComponentVNode)(2,t.Button,{content:"Mark Lost",icon:"flag",color:"bad",disabled:L.timeleft>=0,onClick:function(){function x(){return V("reportlost",{libraryid:L.libraryid})}return x}()})})]},w)})]})})},v=function(C,p){var g=(0,a.useBackend)(p),V=g.act,B=g.data,I=B.inventory_list;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Library Inventory",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"LIB ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"})]}),I.map(function(L,w){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.libraryid}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"})," ",L.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:L.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:L.checked_out?"Checked Out":"Available"})]},w)})]})})};(0,f.modalRegisterBodyOverride)("expand_info",y),(0,f.modalRegisterBodyOverride)("report_book",S),(0,f.modalRegisterBodyOverride)("rate_info",h)},9516:function(T,r,n){"use strict";r.__esModule=!0,r.LibraryManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=r.LibraryManager=function(){function c(i,m){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:600,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,y)})]})}return c}(),y=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.pagestate;switch(l){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,h);case 3:return(0,e.createComponentVNode)(2,k);default:return"WE SHOULDN'T BE HERE!"}},S=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.4rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-shield",verticalAlign:"middle",size:3,mr:"1rem"}),"Library Manager"]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"trash",width:"auto",color:"danger",content:"Delete Book by SSID",onClick:function(){function l(){return(0,f.modalOpen)(m,"specify_ssid_delete")}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",width:"auto",color:"danger",content:"Delete All Books By CKEY",onClick:function(){function l(){return(0,f.modalOpen)(m,"specify_ckey_delete")}return l}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Books By CKEY",onClick:function(){function l(){return(0,f.modalOpen)(m,"specify_ckey_search")}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Reported Books",onClick:function(){function l(){return u("view_reported_books")}return l}()})]})},k=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.reports;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-secret",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"All Reported Books",(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function v(){return u("return")}return v}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Uploader CKEY"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Report Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reporter Ckey"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),l.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:v.uploader_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),v.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:v.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:v.report_description}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:v.reporter_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",onClick:function(){function N(){return u("delete_book",{bookid:v.id})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Unflag",icon:"flag",color:"caution",onClick:function(){function N(){return u("unflag_book",{bookid:v.id})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function N(){return u("view_book",{bookid:v.id})}return N}()})]})]},v.id)})]})})},h=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.ckey,v=s.booklist;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"Books uploaded by ",l,(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function N(){return u("return")}return N}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),v.map(function(N){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:N.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),N.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:N.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",color:"bad",onClick:function(){function C(){return u("delete_book",{bookid:N.id})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function C(){return u("view_book",{bookid:N.id})}return C}()})]})]},N.id)})]})})}},90447:function(T,r,n){"use strict";r.__esModule=!0,r.ListInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(36036),f=n(72253),b=n(92986),y=n(98595),S=r.ListInputModal=function(){function c(i,m){var d=(0,f.useBackend)(m),u=d.act,s=d.data,l=s.items,v=l===void 0?[]:l,N=s.message,C=N===void 0?"":N,p=s.init_value,g=s.timeout,V=s.title,B=(0,f.useLocalState)(m,"selected",v.indexOf(p)),I=B[0],L=B[1],w=(0,f.useLocalState)(m,"searchBarVisible",v.length>10),x=w[0],A=w[1],E=(0,f.useLocalState)(m,"searchQuery",""),P=E[0],j=E[1],M=function(){function $(Q){var J=K.length-1;if(Q===b.KEY_DOWN)if(I===null||I===J){var ie;L(0),(ie=document.getElementById("0"))==null||ie.scrollIntoView()}else{var ne;L(I+1),(ne=document.getElementById((I+1).toString()))==null||ne.scrollIntoView()}else if(Q===b.KEY_UP)if(I===null||I===0){var se;L(J),(se=document.getElementById(J.toString()))==null||se.scrollIntoView()}else{var Ce;L(I-1),(Ce=document.getElementById((I-1).toString()))==null||Ce.scrollIntoView()}}return $}(),R=function(){function $(Q){Q!==I&&L(Q)}return $}(),D=function(){function $(){A(!1),A(!0)}return $}(),W=function(){function $(Q){var J=String.fromCharCode(Q),ie=v.find(function(Ce){return Ce==null?void 0:Ce.toLowerCase().startsWith(J==null?void 0:J.toLowerCase())});if(ie){var ne,se=v.indexOf(ie);L(se),(ne=document.getElementById(se.toString()))==null||ne.scrollIntoView()}}return $}(),_=function(){function $(Q){var J;Q!==P&&(j(Q),L(0),(J=document.getElementById("0"))==null||J.scrollIntoView())}return $}(),U=function(){function $(){A(!x),j("")}return $}(),K=v.filter(function($){return $==null?void 0:$.toLowerCase().includes(P.toLowerCase())}),G=330+Math.ceil(C.length/3);return x||setTimeout(function(){var $;return($=document.getElementById(I.toString()))==null?void 0:$.focus()},1),(0,e.createComponentVNode)(2,y.Window,{title:V,width:325,height:G,children:[g&&(0,e.createComponentVNode)(2,a.Loader,{value:g}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function $(Q){var J=window.event?Q.which:Q.keyCode;(J===b.KEY_DOWN||J===b.KEY_UP)&&(Q.preventDefault(),M(J)),J===b.KEY_ENTER&&(Q.preventDefault(),u("submit",{entry:K[I]})),!x&&J>=b.KEY_A&&J<=b.KEY_Z&&(Q.preventDefault(),W(J)),J===b.KEY_ESCAPE&&(Q.preventDefault(),u("cancel"))}return $}(),children:(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{compact:!0,icon:x?"search":"font",selected:!0,tooltip:x?"Search Mode. Type to search or use arrow keys to select manually.":"Hotkey Mode. Type a letter to jump to the first match. Enter to select.",tooltipPosition:"left",onClick:function(){function $(){return U()}return $}()}),className:"ListInput__Section",fill:!0,title:C,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,k,{filteredItems:K,onClick:R,onFocusSearch:D,searchBarVisible:x,selected:I})}),(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:x&&(0,e.createComponentVNode)(2,h,{filteredItems:K,onSearch:_,searchQuery:P,selected:I})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:K[I]})})]})})})]})}return c}(),k=function(i,m){var d=(0,f.useBackend)(m),u=d.act,s=i.filteredItems,l=i.onClick,v=i.onFocusSearch,N=i.searchBarVisible,C=i.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:s.map(function(p,g){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"transparent",id:g,onClick:function(){function V(){return l(g)}return V}(),onDblClick:function(){function V(B){B.preventDefault(),u("submit",{entry:s[C]})}return V}(),onKeyDown:function(){function V(B){var I=window.event?B.which:B.keyCode;N&&I>=b.KEY_A&&I<=b.KEY_Z&&(B.preventDefault(),v())}return V}(),selected:g===C,style:{animation:"none",transition:"none"},children:p.replace(/^\w/,function(V){return V.toUpperCase()})},g)})})},h=function(i,m){var d=(0,f.useBackend)(m),u=d.act,s=i.filteredItems,l=i.onSearch,v=i.searchQuery,N=i.selected;return(0,e.createComponentVNode)(2,o.Input,{width:"100%",autoFocus:!0,autoSelect:!0,onEnter:function(){function C(p){p.preventDefault(),u("submit",{entry:s[N]})}return C}(),onInput:function(){function C(p,g){return l(g)}return C}(),placeholder:"Search...",value:v})}},77613:function(T,r,n){"use strict";r.__esModule=!0,r.MODsuitContent=r.MODsuit=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(I,L){var w=I.name,x=I.value,A=I.module_ref,E=(0,a.useBackend)(L),P=E.act;return(0,e.createComponentVNode)(2,t.NumberInput,{value:x,minValue:-50,maxValue:50,stepPixelSize:5,width:"39px",onChange:function(){function j(M,R){return P("configure",{key:w,value:R,ref:A})}return j}()})},b=function(I,L){var w=I.name,x=I.value,A=I.module_ref,E=(0,a.useBackend)(L),P=E.act;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:x,onClick:function(){function j(){return P("configure",{key:w,value:!x,ref:A})}return j}()})},y=function(I,L){var w=I.name,x=I.value,A=I.module_ref,E=(0,a.useBackend)(L),P=E.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"paint-brush",onClick:function(){function j(){return P("configure",{key:w,ref:A})}return j}()}),(0,e.createComponentVNode)(2,t.ColorBox,{color:x,mr:.5})],4)},S=function(I,L){var w=I.name,x=I.value,A=I.values,E=I.module_ref,P=(0,a.useBackend)(L),j=P.act;return(0,e.createComponentVNode)(2,t.Dropdown,{displayText:x,options:A,onSelected:function(){function M(R){return j("configure",{key:w,value:R,ref:E})}return M}()})},k=function(I,L){var w=I.name,x=I.display_name,A=I.type,E=I.value,P=I.values,j=I.module_ref,M={number:(0,e.normalizeProps)((0,e.createComponentVNode)(2,f,Object.assign({},I))),bool:(0,e.normalizeProps)((0,e.createComponentVNode)(2,b,Object.assign({},I))),color:(0,e.normalizeProps)((0,e.createComponentVNode)(2,y,Object.assign({},I))),list:(0,e.normalizeProps)((0,e.createComponentVNode)(2,S,Object.assign({},I)))};return(0,e.createComponentVNode)(2,t.Box,{children:[x,": ",M[A]]})},h=function(I,L){var w=I.active,x=I.userradiated,A=I.usertoxins,E=I.usermaxtoxins,P=I.threatlevel;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Level",color:w&&x?"bad":"good",children:w&&x?"IRRADIATED!":"RADIATION-FREE"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxins Level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?A/E:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:A})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Hazard Level",color:w&&P?"bad":"good",bold:!0,children:w&&P?P:0})})]})},c=function(I,L){var w=I.active,x=I.userhealth,A=I.usermaxhealth,E=I.userbrute,P=I.userburn,j=I.usertoxin,M=I.useroxy;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?x/A:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?x:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?E/A:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?E:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?P/A:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?P:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?j/A:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?j:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?M/A:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?M:0})})})})]})],4)},i=function(I,L){var w=I.active,x=I.statustime,A=I.statusid,E=I.statushealth,P=I.statusmaxhealth,j=I.statusbrute,M=I.statusburn,R=I.statustoxin,D=I.statusoxy,W=I.statustemp,_=I.statusnutrition,U=I.statusfingerprints,K=I.statusdna,G=I.statusviruses;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Time",children:w?x:"00:00:00"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Number",children:w?A||"0":"???"})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?E/P:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?E:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?j/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?j:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?M/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?M:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?R/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:R})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?D/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:D})})})})]}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Body Temperature",children:w?W:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Nutrition Status",children:w?_:0})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"DNA",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fingerprints",children:w?U:"???"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:w?K:"???"})]})}),!!w&&!!G&&(0,e.createComponentVNode)(2,t.Section,{title:"Diseases",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"signature",tooltip:"Name",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"wind",tooltip:"Type",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"bolt",tooltip:"Stage",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"flask",tooltip:"Cure",tooltipPosition:"top"})})]}),G.map(function($){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:$.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:$.type}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[$.stage,"/",$.maxstage]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:$.cure})]},$.name)})]})})],0)},m={rad_counter:h,health_analyzer:c,status_readout:i},d=function(){return(0,e.createComponentVNode)(2,t.Section,{align:"center",fill:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{color:"red",name:"exclamation-triangle",size:15}),(0,e.createComponentVNode)(2,t.Box,{fontSize:"30px",color:"red",children:"ERROR: INTERFACE UNRESPONSIVE"})]})},u=function(I,L){var w=(0,a.useBackend)(L),x=w.act,A=w.data;return(0,e.createComponentVNode)(2,t.Dimmer,{children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"16px",color:"blue",children:"SUIT UNPOWERED"})})})},s=function(I,L){var w=I.configuration_data,x=I.module_ref,A=Object.keys(w);return(0,e.createComponentVNode)(2,t.Dimmer,{backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[A.map(function(E){var P=w[E];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,k,{name:E,display_name:P.display_name,type:P.type,value:P.value,values:P.values,module_ref:x})},P.key)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:I.onExit,icon:"times",textAlign:"center",children:"Exit"})})})]})})},l=function(I){switch(I){case 1:return"Use";case 2:return"Toggle";case 3:return"Select"}},v=function(I,L){var w=(0,a.useBackend)(L),x=w.act,A=w.data,E=A.active,P=A.malfunctioning,j=A.locked,M=A.open,R=A.selected_module,D=A.complexity,W=A.complexity_max,_=A.wearer_name,U=A.wearer_job,K=P?"Malfunctioning":E?"Active":"Inactive";return(0,e.createComponentVNode)(2,t.Section,{title:"Parameters",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:E?"Deactivate":"Activate",onClick:function(){function G(){return x("activate")}return G}()}),children:K}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:j?"lock-open":"lock",content:j?"Unlock":"Lock",onClick:function(){function G(){return x("lock")}return G}()}),children:j?"Locked":"Unlocked"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover",children:M?"Open":"Closed"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected Module",children:R||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Complexity",children:[D," (",W,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:[_,", ",U]})]})})},N=function(I,L){var w=(0,a.useBackend)(L),x=w.act,A=w.data,E=A.active,P=A.control,j=A.helmet,M=A.chestplate,R=A.gauntlets,D=A.boots,W=A.core,_=A.charge;return(0,e.createComponentVNode)(2,t.Section,{title:"Hardware",children:[(0,e.createComponentVNode)(2,t.Collapsible,{title:"Parts",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Control Unit",children:P}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Helmet",children:j||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chestplate",children:M||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gauntlets",children:R||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Boots",children:D||"None"})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core",children:W&&(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Type",children:W}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:_/100,content:_+"%",ranges:{good:[.6,1/0],average:[.3,.6],bad:[-1/0,.3]}})})]})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",textAlign:"center",children:"No Core Detected"})})]})},C=function(I,L){var w=(0,a.useBackend)(L),x=w.act,A=w.data,E=A.active,P=A.modules,j=P.filter(function(M){return!!M.id});return(0,e.createComponentVNode)(2,t.Section,{title:"Info",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:j.length!==0&&j.map(function(M){var R=m[M.id];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!E&&(0,e.createComponentVNode)(2,u),(0,e.normalizeProps)((0,e.createComponentVNode)(2,R,Object.assign({},M,{active:E})))]},M.ref)})||(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Info Modules Detected"})})})},p=function(I,L){var w=(0,a.useBackend)(L),x=w.act,A=w.data,E=A.complexity_max,P=A.modules,j=(0,a.useLocalState)(L,"module_configuration",null),M=j[0],R=j[1];return(0,e.createComponentVNode)(2,t.Section,{title:"Modules",fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:P.length!==0&&P.map(function(D){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Collapsible,{title:D.module_name,children:(0,e.createComponentVNode)(2,t.Section,{children:[M===D.ref&&(0,e.createComponentVNode)(2,s,{configuration_data:D.configuration_data,module_ref:D.ref,onExit:function(){function W(){return R(null)}return W}()}),(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"save",tooltip:"Complexity",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"plug",tooltip:"Idle Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"lightbulb",tooltip:"Active Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"bolt",tooltip:"Use Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"hourglass-half",tooltip:"Cooldown",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"tasks",tooltip:"Actions",tooltipPosition:"top"})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[D.module_complexity,"/",E]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:D.idle_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:D.active_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:D.use_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[D.cooldown>0&&D.cooldown/10||"0","/",D.cooldown_time/10,"s"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function W(){return x("select",{ref:D.ref})}return W}(),icon:"bullseye",selected:D.module_active,tooltip:l(D.module_type),tooltipPosition:"left",disabled:!D.module_type}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function W(){return R(D.ref)}return W}(),icon:"cog",selected:M===D.ref,tooltip:"Configure",tooltipPosition:"left",disabled:D.configuration_data.length===0}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function W(){return x("pin",{ref:D.ref})}return W}(),icon:"thumbtack",selected:D.pinned,tooltip:"Pin",tooltipPosition:"left",disabled:!D.module_type})]})]})]}),(0,e.createComponentVNode)(2,t.Box,{children:D.description})]})})},D.ref)})||(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Modules Detected"})})})})},g=r.MODsuitContent=function(){function B(I,L){var w=(0,a.useBackend)(L),x=w.act,A=w.data,E=A.ui_theme,P=A.interface_break;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!P,children:!!P&&(0,e.createComponentVNode)(2,d)||(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,v)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,N)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,C)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,p)})]})})}return B}(),V=r.MODsuit=function(){function B(I,L){var w=(0,a.useBackend)(L),x=w.act,A=w.data,E=A.ui_theme,P=A.interface_break;return(0,e.createComponentVNode)(2,o.Window,{theme:E,width:400,height:620,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,g)})})})}return B}()},78624:function(T,r,n){"use strict";r.__esModule=!0,r.MagnetController=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=n(3939),y=new Map([["n",{icon:"arrow-up",tooltip:"Move North"}],["e",{icon:"arrow-right",tooltip:"Move East"}],["s",{icon:"arrow-down",tooltip:"Move South"}],["w",{icon:"arrow-left",tooltip:"Move West"}],["c",{icon:"crosshairs",tooltip:"Move to Magnet"}],["r",{icon:"dice",tooltip:"Move Randomly"}]]),S=r.MagnetController=function(){function k(h,c){var i=(0,t.useBackend)(c),m=i.act,d=i.data,u=d.autolink,s=d.code,l=d.frequency,v=d.linkedMagnets,N=d.magnetConfiguration,C=d.path,p=d.pathPosition,g=d.probing,V=d.powerState,B=d.speed;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:600,children:[(0,e.createComponentVNode)(2,b.ComplexModal),(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[!u&&(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{content:"Probe",icon:g?"spinner":"sync",iconSpin:!!g,disabled:g,onClick:function(){function I(){return m("probe_magnets")}return I}()}),title:"Magnet Linking",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,a.toFixed)(l/10,1)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:s})]})}),(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{icon:V?"power-off":"times",content:V?"On":"Off",selected:V,onClick:function(){function I(){return m("toggle_power")}return I}()}),title:"Controller Configuration",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:B.value,minValue:B.min,maxValue:B.max,onChange:function(){function I(L,w){return m("set_speed",{speed:w})}return I}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Path",children:[Array.from(y.entries()).map(function(I){var L=I[0],w=I[1],x=w.icon,A=w.tooltip;return(0,e.createComponentVNode)(2,o.Button,{icon:x,tooltip:A,onClick:function(){function E(){return m("path_add",{code:L})}return E}()},L)}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",confirmIcon:"trash",confirmContent:"",float:"right",tooltip:"Reset Path",tooltipPosition:"left",onClick:function(){function I(){return m("path_clear")}return I}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file-import",float:"right",tooltip:"Manually input path",tooltipPosition:"left",onClick:function(){function I(){return(0,b.modalOpen)(c,"path_custom_input")}return I}()}),(0,e.createComponentVNode)(2,o.BlockQuote,{children:C.map(function(I,L){var w=y.get(I)||{icon:"question"},x=w.icon,A=w.tooltip;return(0,e.createComponentVNode)(2,o.Button.Confirm,{selected:L+2===p,icon:x,confirmIcon:x,confirmContent:"",tooltip:A,onClick:function(){function E(){return m("path_remove",{index:L+1,code:I})}return E}()},L)})})]})]})}),v.map(function(I,L){var w=I.uid,x=I.powerState,A=I.electricityLevel,E=I.magneticField;return(0,e.createComponentVNode)(2,o.Section,{title:"Magnet #"+(L+1)+" Configuration",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:x?"power-off":"times",content:x?"On":"Off",selected:x,onClick:function(){function P(){return m("toggle_magnet_power",{id:w})}return P}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Move Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:A,minValue:N.electricityLevel.min,maxValue:N.electricityLevel.max,onChange:function(){function P(j,M){return m("set_electricity_level",{id:w,electricityLevel:M})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Field Size",children:(0,e.createComponentVNode)(2,o.Slider,{value:E,minValue:N.magneticField.min,maxValue:N.magneticField.max,onChange:function(){function P(j,M){return m("set_magnetic_field",{id:w,magneticField:M})}return P}()})})]})},w)})]})]})}return k}()},72106:function(T,r,n){"use strict";r.__esModule=!0,r.MechBayConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.MechBayConsole=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.recharge_port,m=i&&i.mech,d=m&&m.cell,u=m&&m.name;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:155,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:u?"Mech status: "+u:"Mech status",textAlign:"center",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Sync",onClick:function(){function s(){return h("reconnect")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:!i&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!m&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:m.health/m.maxhealth,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:!i&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!m&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||!d&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cell is installed."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:d.charge/d.maxcharge,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]},children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:d.charge})," / "+d.maxcharge]})})]})})})})}return b}()},7466:function(T,r,n){"use strict";r.__esModule=!0,r.MechaControlConsole=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=n(25328),y=r.MechaControlConsole=function(){function S(k,h){var c=(0,t.useBackend)(h),i=c.act,m=c.data,d=m.beacons,u=m.stored_data;return u.length?(0,e.createComponentVNode)(2,f.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"window-close",onClick:function(){function s(){return i("clear_log")}return s}()}),children:u.map(function(s){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["(",s.time,")"]}),(0,e.createComponentVNode)(2,o.Box,{children:(0,b.decodeHtmlEntities)(s.message)})]},s.time)})})})}):(0,e.createComponentVNode)(2,f.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:d.length&&d.map(function(s){return(0,e.createComponentVNode)(2,o.Section,{title:s.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function l(){return i("send_message",{mt:s.uid})}return l}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function l(){return i("get_log",{mt:s.uid})}return l}(),children:"View Log"}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",content:"Sabotage",icon:"bomb",onClick:function(){function l(){return i("shock",{mt:s.uid})}return l}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[s.maxHealth*.75,1/0],average:[s.maxHealth*.5,s.maxHealth*.75],bad:[-1/0,s.maxHealth*.5]},value:s.health,maxValue:s.maxHealth})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cell Charge",children:s.cell&&(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[s.cellMaxCharge*.75,1/0],average:[s.cellMaxCharge*.5,s.cellMaxCharge*.75],bad:[-1/0,s.cellMaxCharge*.5]},value:s.cellCharge,maxValue:s.cellMaxCharge})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No Cell Installed"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Air Tank",children:[s.airtank,"kPa"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pilot",children:s.pilot||"Unoccupied"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:(0,b.toTitleCase)(s.location)||"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Active Equipment",children:s.active||"None"}),s.cargoMax&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cargo Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{bad:[s.cargoMax*.75,1/0],average:[s.cargoMax*.5,s.cargoMax*.75],good:[-1/0,s.cargoMax*.5]},value:s.cargoUsed,maxValue:s.cargoMax})})||null]})},s.name)})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No mecha beacons found."})})})}return S}()},79625:function(T,r,n){"use strict";r.__esModule=!0,r.MedicalRecords=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(3939),b=n(98595),y=n(321),S=n(5485),k=n(22091),h={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},c={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},i=function(x,A){(0,f.modalOpen)(x,"edit",{field:A.edit,value:A.value})},m=function(x,A){var E=x.args;return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:E.name||"Virus",children:(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Number of stages",children:E.max_stages}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Spread",children:[E.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Possible cure",children:E.cure}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Notes",children:E.desc}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Severity",color:h[E.severity],children:E.severity})]})})})},d=r.MedicalRecords=function(){function w(x,A){var E=(0,t.useBackend)(A),P=E.data,j=P.loginState,M=P.screen;if(!j.logged_in)return(0,e.createComponentVNode)(2,b.Window,{width:800,height:900,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});var R;return M===2?R=(0,e.createComponentVNode)(2,u):M===3?R=(0,e.createComponentVNode)(2,s):M===4?R=(0,e.createComponentVNode)(2,l):M===5?R=(0,e.createComponentVNode)(2,p):M===6?R=(0,e.createComponentVNode)(2,g):M===7&&(R=(0,e.createComponentVNode)(2,V)),(0,e.createComponentVNode)(2,b.Window,{width:800,height:900,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,k.TemporaryNotice),(0,e.createComponentVNode)(2,L),R]})})]})}return w}(),u=function(x,A){var E=(0,t.useBackend)(A),P=E.act,j=E.data,M=j.records,R=(0,t.useLocalState)(A,"searchText",""),D=R[0],W=R[1],_=(0,t.useLocalState)(A,"sortId","name"),U=_[0],K=_[1],G=(0,t.useLocalState)(A,"sortOrder",!0),$=G[0],Q=G[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Manage Records",icon:"wrench",ml:"0.25rem",onClick:function(){function J(){return P("screen",{screen:3})}return J}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search by Name, ID, Physical Status, or Mental Status",onInput:function(){function J(ie,ne){return W(ne)}return J}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,B,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,B,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,B,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,B,{id:"p_stat",children:"Patient Status"}),(0,e.createComponentVNode)(2,B,{id:"m_stat",children:"Mental Status"})]}),M.filter((0,a.createSearch)(D,function(J){return J.name+"|"+J.id+"|"+J.rank+"|"+J.p_stat+"|"+J.m_stat})).sort(function(J,ie){var ne=$?1:-1;return J[U].localeCompare(ie[U])*ne}).map(function(J){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listRow--"+c[J.p_stat],onClick:function(){function ie(){return P("view_record",{view_record:J.ref})}return ie}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",J.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.p_stat}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.m_stat})]},J.id)})]})})})],4)},s=function(x,A){var E=(0,t.useBackend)(A),P=E.act;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,translucent:!0,lineHeight:3,icon:"download",content:"Backup to Disk",disabled:!0})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,translucent:!0,lineHeight:3,icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," "]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,translucent:!0,lineHeight:3,icon:"trash",content:"Delete All Medical Records",onClick:function(){function j(){return P("del_all_med_records")}return j}()})})]})})},l=function(x,A){var E=(0,t.useBackend)(A),P=E.act,j=E.data,M=j.medical,R=j.printing;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{height:"235px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:R?"spinner":"print",disabled:R,iconSpin:!!R,content:"Print Record",ml:"0.5rem",onClick:function(){function D(){return P("print_record")}return D}()}),children:(0,e.createComponentVNode)(2,v)})}),!M||!M.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function D(){return P("new_med_record")}return D}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Medical records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:!!M.empty,content:"Delete Medical Record",onClick:function(){function D(){return P("del_med_record")}return D}()}),children:(0,e.createComponentVNode)(2,N)})}),(0,e.createComponentVNode)(2,C)],4)],0)},v=function(x,A){var E=(0,t.useBackend)(A),P=E.data,j=P.general;return!j||!j.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:j.fields.map(function(M,R){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:M.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:M.value}),!!M.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function D(){return i(A,M)}return D}()})]},R)})})}),!!j.has_photos&&j.photos.map(function(M,R){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:M,style:{width:"96px","margin-top":"2.5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",R+1]},R)})]})},N=function(x,A){var E=(0,t.useBackend)(A),P=E.act,j=E.data,M=j.medical;return!M||!M.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"Medical records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:M.fields.map(function(R,D){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:R.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(R.value),!!R.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:R.line_break?"1rem":"initial",onClick:function(){function W(){return i(A,R)}return W}()})]},D)})})})})},C=function(x,A){var E=(0,t.useBackend)(A),P=E.act,j=E.data,M=j.medical;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function R(){return(0,f.modalOpen)(A,"add_comment")}return R}()}),children:M.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):M.comments.map(function(R,D){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:R.header}),(0,e.createVNode)(1,"br"),R.text,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function W(){return P("del_comment",{del_comment:D+1})}return W}()})]},D)})})})},p=function(x,A){var E=(0,t.useBackend)(A),P=E.act,j=E.data,M=j.virus,R=(0,t.useLocalState)(A,"searchText",""),D=R[0],W=R[1],_=(0,t.useLocalState)(A,"sortId2","name"),U=_[0],K=_[1],G=(0,t.useLocalState)(A,"sortOrder2",!0),$=G[0],Q=G[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{ml:"0.25rem",fluid:!0,placeholder:"Search by Name, Max Stages, or Severity",onInput:function(){function J(ie,ne){return W(ne)}return J}()})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,I,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,I,{id:"max_stages",children:"Max Stages"}),(0,e.createComponentVNode)(2,I,{id:"severity",children:"Severity"})]}),M.filter((0,a.createSearch)(D,function(J){return J.name+"|"+J.max_stages+"|"+J.severity})).sort(function(J,ie){var ne=$?1:-1;return J[U].localeCompare(ie[U])*ne}).map(function(J){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listVirus--"+J.severity,onClick:function(){function ie(){return P("vir",{vir:J.D})}return ie}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"virus"})," ",J.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.max_stages}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:h[J.severity],children:J.severity})]},J.id)})]})})})})],4)},g=function(x,A){var E=(0,t.useBackend)(A),P=E.act,j=E.data,M=j.goals;return(0,e.createComponentVNode)(2,o.Section,{title:"Virology Goals",fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:M.length!==0&&M.map(function(R){return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:R.name,children:[(0,e.createComponentVNode)(2,o.Table,{children:(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:R.delivered,minValue:0,maxValue:R.deliverygoal,ranges:{good:[R.deliverygoal*.5,1/0],average:[R.deliverygoal*.25,R.deliverygoal*.5],bad:[-1/0,R.deliverygoal*.25]},children:[R.delivered," / ",R.deliverygoal," Units"]})})})}),(0,e.createComponentVNode)(2,o.Box,{children:R.report})]})},R.id)})||(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:"No Goals Detected"})})})})},V=function(x,A){var E=(0,t.useBackend)(A),P=E.act,j=E.data,M=j.medbots;return M.length===0?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"robot",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"There are no Medibots."]})})})}):(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Area"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Chemicals"})]}),M.map(function(R){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listMedbot--"+R.on,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"medical"})," ",R.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[R.area||"Unknown"," (",R.x,", ",R.y,")"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.on?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Online"}):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"Offline"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.use_beaker?"Reservoir: "+R.total_volume+"/"+R.maximum_volume:"Using internal synthesizer"})]},R.id)})]})})})},B=function(x,A){var E=(0,t.useLocalState)(A,"sortId","name"),P=E[0],j=E[1],M=(0,t.useLocalState)(A,"sortOrder",!0),R=M[0],D=M[1],W=x.id,_=x.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:P!==W&&"transparent",onClick:function(){function U(){P===W?D(!R):(j(W),D(!0))}return U}(),children:[_,P===W&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},I=function(x,A){var E=(0,t.useLocalState)(A,"sortId2","name"),P=E[0],j=E[1],M=(0,t.useLocalState)(A,"sortOrder2",!0),R=M[0],D=M[1],W=x.id,_=x.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:P!==W&&"transparent",onClick:function(){function U(){P===W?D(!R):(j(W),D(!0))}return U}(),children:[_,P===W&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},L=function(x,A){var E=(0,t.useBackend)(A),P=E.act,j=E.data,M=j.screen,R=j.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:M===2,onClick:function(){function D(){P("screen",{screen:2})}return D}(),children:"List Records"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"database",selected:M===5,onClick:function(){function D(){P("screen",{screen:5})}return D}(),children:"Virus Database"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"vial",selected:M===6,onClick:function(){function D(){P("screen",{screen:6})}return D}(),children:"Virology Goals"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"plus-square",selected:M===7,onClick:function(){function D(){return P("screen",{screen:7})}return D}(),children:"Medibot Tracking"}),M===3&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:M===3,children:"Record Maintenance"}),M===4&&R&&!R.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:M===4,children:["Record: ",R.fields[0].value]})]})})};(0,f.modalRegisterBodyOverride)("virus",m)},54989:function(T,r,n){"use strict";r.__esModule=!0,r.MerchVendor=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=h.product,s=h.productImage,l=h.productCategory,v=d.user_money;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+s,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:u.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{disabled:u.price>v,icon:"shopping-cart",content:u.price,textAlign:"left",onClick:function(){function N(){return m("purchase",{name:u.name,category:l})}return N}()})})]})},b=function(h,c){var i=(0,a.useBackend)(c),m=i.data,d=(0,a.useLocalState)(c,"tabIndex",1),u=d[0],s=m.products,l=m.imagelist,v=["apparel","toy","decoration"];return(0,e.createComponentVNode)(2,t.Table,{children:s[v[u]].map(function(N){return(0,e.createComponentVNode)(2,f,{product:N,productImage:l[N.path],productCategory:v[u]},N.name)})})},y=r.MerchVendor=function(){function k(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.user_cash,s=d.inserted_cash;return(0,e.createComponentVNode)(2,o.Window,{title:"Merch Computer",width:450,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"User",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"light-grey",inline:!0,mr:"0.5rem",children:["There is ",(0,e.createVNode)(1,"b",null,s,0)," credits inserted."]}),(0,e.createComponentVNode)(2,t.Button,{disabled:!s,icon:"money-bill-wave-alt",content:"Dispense Change",textAlign:"left",onClick:function(){function l(){return m("change")}return l}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:["Doing your job and not getting any recognition at work? Well, welcome to the merch shop! Here, you can buy cool things in exchange for money you earn when you have completed your Job Objectives.",u!==null&&(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:["Your balance is ",(0,e.createVNode)(1,"b",null,[u||0,(0,e.createTextVNode)(" credits")],0),"."]})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,b)]})})]})})})}return k}(),S=function(h,c){var i=(0,a.useBackend)(c),m=i.data,d=(0,a.useLocalState)(c,"tabIndex",1),u=d[0],s=d[1],l=m.login_state;return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"dice",selected:u===1,onClick:function(){function v(){return s(1)}return v}(),children:"Toys"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"flag",selected:u===2,onClick:function(){function v(){return s(2)}return v}(),children:"Decorations"})]})}},87684:function(T,r,n){"use strict";r.__esModule=!0,r.MiningVendor=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=["title","items"];function y(d,u){if(d==null)return{};var s={};for(var l in d)if({}.hasOwnProperty.call(d,l)){if(u.includes(l))continue;s[l]=d[l]}return s}var S={Alphabetical:function(){function d(u,s){return u-s}return d}(),Availability:function(){function d(u,s){return-(u.affordable-s.affordable)}return d}(),Price:function(){function d(u,s){return u.price-s.price}return d}()},k=r.MiningVendor=function(){function d(u,s){return(0,e.createComponentVNode)(2,f.Window,{width:400,height:455,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})})})}return d}(),h=function(u,s){var l=(0,t.useBackend)(s),v=l.act,N=l.data,C=N.has_id,p=N.id;return(0,e.createComponentVNode)(2,o.NoticeBox,{success:C,children:C?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",p.name,".",(0,e.createVNode)(1,"br"),"You have ",p.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function g(){return v("logoff")}return g}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},c=function(u,s){var l=(0,t.useBackend)(s),v=l.act,N=l.data,C=N.has_id,p=N.id,g=N.items,V=(0,t.useLocalState)(s,"search",""),B=V[0],I=V[1],L=(0,t.useLocalState)(s,"sort","Alphabetical"),w=L[0],x=L[1],A=(0,t.useLocalState)(s,"descending",!1),E=A[0],P=A[1],j=(0,a.createSearch)(B,function(D){return D[0]}),M=!1,R=Object.entries(g).map(function(D,W){var _=Object.entries(D[1]).filter(j).map(function(U){return U[1].affordable=C&&p.points>=U[1].price,U[1]}).sort(S[w]);if(_.length!==0)return E&&(_=_.reverse()),M=!0,(0,e.createComponentVNode)(2,m,{title:D[0],items:_},D[0])});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:M?R:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},i=function(u,s){var l=(0,t.useLocalState)(s,"search",""),v=l[0],N=l[1],C=(0,t.useLocalState)(s,"sort",""),p=C[0],g=C[1],V=(0,t.useLocalState)(s,"descending",!1),B=V[0],I=V[1];return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{mt:.2,placeholder:"Search by item name..",width:"100%",onInput:function(){function L(w,x){return N(x)}return L}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(S),width:"100%",onSelected:function(){function L(w){return g(w)}return L}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:B?"arrow-down":"arrow-up",height:"21px",tooltip:B?"Descending order":"Ascending order",tooltipPosition:"bottom-start",onClick:function(){function L(){return I(!B)}return L}()})})]})})},m=function(u,s){var l=(0,t.useBackend)(s),v=l.act,N=l.data,C=u.title,p=u.items,g=y(u,b);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:C},g,{children:p.map(function(V){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:V.name}),(0,e.createComponentVNode)(2,o.Button,{disabled:!N.has_id||N.id.points0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:ye>=10?"9+":ye})}),(0,e.createComponentVNode)(2,s,{icon:"briefcase",title:"Job Openings",selected:D===1,onClick:function(){function he(){return A("jobs")}return he}()}),(0,e.createComponentVNode)(2,o.Divider)]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:W.map(function(he){return(0,e.createComponentVNode)(2,s,{icon:he.icon,title:he.name,selected:D===2&&W[U-1]===he,onClick:function(){function oe(){return A("channel",{uid:he.uid})}return oe}(),children:he.unread>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:he.unread>=10?"9+":he.unread})},he)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Divider),(!!P||!!j)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,s,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){function he(){return(0,y.modalOpen)(w,"wanted_notice")}return he}()}),(0,e.createComponentVNode)(2,s,{security:!0,icon:se?"minus-square":"minus-square-o",title:"Censor Mode: "+(se?"On":"Off"),mb:"0.5rem",onClick:function(){function he(){return Ce(!se)}return he}()}),(0,e.createComponentVNode)(2,o.Divider)],4),(0,e.createComponentVNode)(2,s,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){function he(){return(0,y.modalOpen)(w,"create_story")}return he}()}),(0,e.createComponentVNode)(2,s,{icon:"plus-circle",title:"New Channel",onClick:function(){function he(){return(0,y.modalOpen)(w,"create_channel")}return he}()}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,s,{icon:R?"spinner":"print",iconSpin:R,title:R?"Printing...":"Print Newspaper",onClick:function(){function he(){return A("print_newspaper")}return he}()}),(0,e.createComponentVNode)(2,s,{icon:M?"volume-mute":"volume-up",title:"Mute: "+(M?"On":"Off"),onClick:function(){function he(){return A("toggle_mute")}return he}()})]})]})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,width:"100%",children:[(0,e.createComponentVNode)(2,S.TemporaryNotice),Se]})]})})]})}return I}(),s=function(L,w){var x=(0,t.useBackend)(w),A=x.act,E=L.icon,P=E===void 0?"":E,j=L.iconSpin,M=L.selected,R=M===void 0?!1:M,D=L.security,W=D===void 0?!1:D,_=L.onClick,U=L.title,K=L.children,G=c(L,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Newscaster__menuButton",R&&"Newscaster__menuButton--selected",W&&"Newscaster__menuButton--security"]),onClick:_},G,{children:[R&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,e.createComponentVNode)(2,o.Icon,{name:P,spin:j,size:"2"}),(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--title",children:U}),K]})))},l=function(L,w){var x=(0,t.useBackend)(w),A=x.act,E=x.data,P=E.screen,j=E.is_admin,M=E.channel_idx,R=E.channel_can_manage,D=E.channels,W=E.stories,_=E.wanted,U=(0,t.useLocalState)(w,"fullStories",[]),K=U[0],G=U[1],$=(0,t.useLocalState)(w,"censorMode",!1),Q=$[0],J=$[1],ie=P===2&&M>-1?D[M-1]:null;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!_&&(0,e.createComponentVNode)(2,N,{story:_,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:ie?ie.icon:"newspaper",mr:"0.5rem"}),ie?ie.name:"Headlines"],0),children:W.length>0?W.slice().reverse().map(function(ne){return!K.includes(ne.uid)&&ne.body.length+3>i?Object.assign({},ne,{body_short:ne.body.substr(0,i-4)+"..."}):ne}).map(function(ne,se){return(0,e.createComponentVNode)(2,N,{story:ne},se)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no stories at this time."]})}),!!ie&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,height:"40%",title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"info-circle",mr:"0.5rem"}),(0,e.createTextVNode)("About")],4),buttons:(0,e.createFragment)([Q&&(0,e.createComponentVNode)(2,o.Button,{disabled:!!ie.admin&&!j,selected:ie.censored,icon:ie.censored?"comment-slash":"comment",content:ie.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){function ne(){return A("censor_channel",{uid:ie.uid})}return ne}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!R,icon:"cog",content:"Manage",onClick:function(){function ne(){return(0,y.modalOpen)(w,"manage_channel",{uid:ie.uid})}return ne}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:ie.description||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:ie.author||"N/A"}),!!j&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Ckey",children:ie.author_ckey}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Public",children:ie.public?"Yes":"No"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Views",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"eye",mr:"0.5rem"}),W.reduce(function(ne,se){return ne+se.view_count},0).toLocaleString()]})]})})]})},v=function(L,w){var x=(0,t.useBackend)(w),A=x.act,E=x.data,P=E.jobs,j=E.wanted,M=Object.entries(P).reduce(function(R,D){var W=D[0],_=D[1];return R+_.length},0);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!j&&(0,e.createComponentVNode)(2,N,{story:j,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"briefcase",mr:"0.5rem"}),(0,e.createTextVNode)("Job Openings")],4),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:"Work for a better future at Nanotrasen"}),children:M>0?m.map(function(R){return Object.assign({},d[R],{id:R,jobs:P[R]})}).filter(function(R){return!!R&&R.jobs.length>0}).map(function(R){return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__jobCategory","Newscaster__jobCategory--"+R.id]),title:R.title,buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:R.fluff_text}),children:R.jobs.map(function(D){return(0,e.createComponentVNode)(2,o.Box,{class:(0,a.classes)(["Newscaster__jobOpening",!!D.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",D.title]},D.title)})},R.id)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no openings at this time."]})}),(0,e.createComponentVNode)(2,o.Section,{height:"17%",children:["Interested in serving Nanotrasen?",(0,e.createVNode)(1,"br"),"Sign up for any of the above position now at the ",(0,e.createVNode)(1,"b",null,"Head of Personnel's Office!",16),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{as:"small",color:"label",children:"By signing up for a job at Nanotrasen, you agree to transfer your soul to the loyalty department of the omnipresent and helpful watcher of humanity."})]})]})},N=function(L,w){var x=(0,t.useBackend)(w),A=x.act,E=x.data,P=L.story,j=L.wanted,M=j===void 0?!1:j,R=E.is_admin,D=(0,t.useLocalState)(w,"fullStories",[]),W=D[0],_=D[1],U=(0,t.useLocalState)(w,"censorMode",!1),K=U[0],G=U[1];return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__story",M&&"Newscaster__story--wanted"]),title:(0,e.createFragment)([M&&(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle",mr:"0.5rem"}),P.censor_flags&2&&"[REDACTED]"||P.title||"News from "+P.author],0),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:[!M&&K&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,e.createComponentVNode)(2,o.Button,{enabled:P.censor_flags&2,icon:P.censor_flags&2?"comment-slash":"comment",content:P.censor_flags&2?"Uncensor":"Censor",mr:"0.5rem",mt:"-0.25rem",onClick:function(){function $(){return A("censor_story",{uid:P.uid})}return $}()})}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",P.author," |\xA0",!!R&&(0,e.createFragment)([(0,e.createTextVNode)("ckey: "),P.author_ckey,(0,e.createTextVNode)(" |\xA0")],0),!M&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),(0,e.createTextVNode)(" "),P.view_count.toLocaleString(),(0,e.createTextVNode)(" |\xA0")],0),(0,e.createComponentVNode)(2,o.Icon,{name:"clock"})," ",(0,f.timeAgo)(P.publish_time,E.world_time)]})]})}),children:(0,e.createComponentVNode)(2,o.Box,{children:P.censor_flags&2?"[REDACTED]":(0,e.createFragment)([!!P.has_photo&&(0,e.createComponentVNode)(2,C,{name:"story_photo_"+P.uid+".png",float:"right",ml:"0.5rem"}),(P.body_short||P.body).split("\n").map(function($,Q){return(0,e.createComponentVNode)(2,o.Box,{children:$||(0,e.createVNode)(1,"br")},Q)}),P.body_short&&(0,e.createComponentVNode)(2,o.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){function $(){return _([].concat(W,[P.uid]))}return $}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})],0)})})},C=function(L,w){var x=L.name,A=c(L,h),E=(0,t.useLocalState)(w,"viewingPhoto",""),P=E[0],j=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"img",className:"Newscaster__photo",src:x,onClick:function(){function M(){return j(x)}return M}()},A)))},p=function(L,w){var x=(0,t.useLocalState)(w,"viewingPhoto",""),A=x[0],E=x[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Newscaster__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:A}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function P(){return E("")}return P}()})]})},g=function(L,w){var x=(0,t.useBackend)(w),A=x.act,E=x.data,P=!!L.args.uid&&E.channels.filter(function(ee){return ee.uid===L.args.uid}).pop();if(L.id==="manage_channel"&&!P){(0,y.modalClose)(w);return}var j=L.id==="manage_channel",M=!!L.args.is_admin,R=L.args.scanned_user,D=(0,t.useLocalState)(w,"author",(P==null?void 0:P.author)||R||"Unknown"),W=D[0],_=D[1],U=(0,t.useLocalState)(w,"name",(P==null?void 0:P.name)||""),K=U[0],G=U[1],$=(0,t.useLocalState)(w,"description",(P==null?void 0:P.description)||""),Q=$[0],J=$[1],ie=(0,t.useLocalState)(w,"icon",(P==null?void 0:P.icon)||"newspaper"),ne=ie[0],se=ie[1],Ce=(0,t.useLocalState)(w,"isPublic",j?!!(P!=null&&P.public):!1),Se=Ce[0],ye=Ce[1],he=(0,t.useLocalState)(w,"adminLocked",(P==null?void 0:P.admin)===1||!1),oe=he[0],ce=he[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:j?"Manage "+P.name:"Create New Channel",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!M,width:"100%",value:W,onInput:function(){function ee(fe,me){return _(me)}return ee}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"50 characters max.",maxLength:"50",value:K,onInput:function(){function ee(fe,me){return G(me)}return ee}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",placeholder:"128 characters max.",maxLength:"128",value:Q,onInput:function(){function ee(fe,me){return J(me)}return ee}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Icon",children:[(0,e.createComponentVNode)(2,o.Input,{disabled:!M,value:ne,width:"35%",mr:"0.5rem",onInput:function(){function ee(fe,me){return se(me)}return ee}()}),(0,e.createComponentVNode)(2,o.Icon,{name:ne,size:"2",verticalAlign:"middle",mr:"0.5rem"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Accept Public Stories?",children:(0,e.createComponentVNode)(2,o.Button,{selected:Se,icon:Se?"toggle-on":"toggle-off",content:Se?"Yes":"No",onClick:function(){function ee(){return ye(!Se)}return ee}()})}),M&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:oe,icon:oe?"lock":"lock-open",content:oe?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function ee(){return ce(!oe)}return ee}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:W.trim().length===0||K.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function ee(){(0,y.modalAnswer)(w,L.id,"",{author:W,name:K.substr(0,49),description:Q.substr(0,128),icon:ne,public:Se?1:0,admin_locked:oe?1:0})}return ee}()})]})},V=function(L,w){var x=(0,t.useBackend)(w),A=x.act,E=x.data,P=E.photo,j=E.channels,M=E.channel_idx,R=M===void 0?-1:M,D=!!L.args.is_admin,W=L.args.scanned_user,_=j.slice().sort(function(ee,fe){if(R<0)return 0;var me=j[R-1];if(me.uid===ee.uid)return-1;if(me.uid===fe.uid)return 1}).filter(function(ee){return D||!ee.frozen&&(ee.author===W||!!ee.public)}),U=(0,t.useLocalState)(w,"author",W||"Unknown"),K=U[0],G=U[1],$=(0,t.useLocalState)(w,"channel",_.length>0?_[0].name:""),Q=$[0],J=$[1],ie=(0,t.useLocalState)(w,"title",""),ne=ie[0],se=ie[1],Ce=(0,t.useLocalState)(w,"body",""),Se=Ce[0],ye=Ce[1],he=(0,t.useLocalState)(w,"adminLocked",!1),oe=he[0],ce=he[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Create New Story",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!D,width:"100%",value:K,onInput:function(){function ee(fe,me){return G(me)}return ee}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:Q,options:_.map(function(ee){return ee.name}),mb:"0",width:"100%",onSelected:function(){function ee(fe){return J(fe)}return ee}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"128 characters max.",maxLength:"128",value:ne,onInput:function(){function ee(fe,me){return se(me)}return ee}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Story Text",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,multiline:!0,placeholder:"1024 characters max.",maxLength:"1024",rows:"8",width:"100%",value:Se,onInput:function(){function ee(fe,me){return ye(me)}return ee}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:P,content:P?"Eject: "+P.name:"Insert Photo",tooltip:!P&&"Attach a photo to this story by holding the photograph in your hand.",onClick:function(){function ee(){return A(P?"eject_photo":"attach_photo")}return ee}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,title:ne,maxHeight:"13.5rem",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:[!!P&&(0,e.createComponentVNode)(2,C,{name:"inserted_photo_"+P.uid+".png",float:"right"}),Se.split("\n").map(function(ee,fe){return(0,e.createComponentVNode)(2,o.Box,{children:ee||(0,e.createVNode)(1,"br")},fe)}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})]})})}),D&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:oe,icon:oe?"lock":"lock-open",content:oe?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function ee(){return ce(!oe)}return ee}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:K.trim().length===0||Q.trim().length===0||ne.trim().length===0||Se.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function ee(){(0,y.modalAnswer)(w,"create_story","",{author:K,channel:Q,title:ne.substr(0,127),body:Se.substr(0,1023),admin_locked:oe?1:0})}return ee}()})]})},B=function(L,w){var x=(0,t.useBackend)(w),A=x.act,E=x.data,P=E.photo,j=E.wanted,M=!!L.args.is_admin,R=L.args.scanned_user,D=(0,t.useLocalState)(w,"author",(j==null?void 0:j.author)||R||"Unknown"),W=D[0],_=D[1],U=(0,t.useLocalState)(w,"name",(j==null?void 0:j.title.substr(8))||""),K=U[0],G=U[1],$=(0,t.useLocalState)(w,"description",(j==null?void 0:j.body)||""),Q=$[0],J=$[1],ie=(0,t.useLocalState)(w,"adminLocked",(j==null?void 0:j.admin_locked)===1||!1),ne=ie[0],se=ie[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Manage Wanted Notice",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Authority",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!M,width:"100%",value:W,onInput:function(){function Ce(Se,ye){return _(ye)}return Ce}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",value:K,maxLength:"128",onInput:function(){function Ce(Se,ye){return G(ye)}return Ce}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",value:Q,maxLength:"512",rows:"4",onInput:function(){function Ce(Se,ye){return J(ye)}return Ce}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:P,content:P?"Eject: "+P.name:"Insert Photo",tooltip:!P&&"Attach a photo to this wanted notice by holding the photograph in your hand.",tooltipPosition:"top",onClick:function(){function Ce(){return A(P?"eject_photo":"attach_photo")}return Ce}()}),!!P&&(0,e.createComponentVNode)(2,C,{name:"inserted_photo_"+P.uid+".png",float:"right"})]}),M&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ne,icon:ne?"lock":"lock-open",content:ne?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function Ce(){return se(!ne)}return Ce}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!j,icon:"eraser",color:"danger",content:"Clear",position:"absolute",right:"7.25rem",bottom:"-0.75rem",onClick:function(){function Ce(){A("clear_wanted_notice"),(0,y.modalClose)(w)}return Ce}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:W.trim().length===0||K.trim().length===0||Q.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function Ce(){(0,y.modalAnswer)(w,L.id,"",{author:W,name:K.substr(0,127),description:Q.substr(0,511),admin_locked:ne?1:0})}return Ce}()})]})};(0,y.modalRegisterBodyOverride)("create_channel",g),(0,y.modalRegisterBodyOverride)("manage_channel",g),(0,y.modalRegisterBodyOverride)("create_story",V),(0,y.modalRegisterBodyOverride)("wanted_notice",B)},48286:function(T,r,n){"use strict";r.__esModule=!0,r.Noticeboard=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=r.Noticeboard=function(){function y(S,k){var h=(0,t.useBackend)(k),c=h.act,i=h.data,m=i.papers;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:300,theme:"noticeboard",children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:m.map(function(d){return(0,e.createComponentVNode)(2,o.Stack.Item,{align:"center",width:"22.45%",height:"85%",onClick:function(){function u(){return c("interact",{paper:d.ref})}return u}(),onContextMenu:function(){function u(s){s.preventDefault(),c("showFull",{paper:d.ref})}return u}(),children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,fontSize:.75,title:d.name,children:(0,a.decodeHtmlEntities)(d.contents)})},d.ref)})})})})}return y}()},41166:function(T,r,n){"use strict";r.__esModule=!0,r.NuclearBomb=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.NuclearBomb=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data;return c.extended?(0,e.createComponentVNode)(2,o.Window,{width:350,height:290,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Disk",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.authdisk?"eject":"id-card",selected:c.authdisk,content:c.diskname?c.diskname:"-----",tooltip:c.authdisk?"Eject Disk":"Insert Disk",onClick:function(){function i(){return h("auth")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Code",children:(0,e.createComponentVNode)(2,t.Button,{icon:"key",disabled:!c.authdisk,selected:c.authcode,content:c.codemsg,onClick:function(){function i(){return h("code")}return i}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Arming & Disarming",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bolted to floor",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.anchored?"check":"times",selected:c.anchored,disabled:!c.authdisk,content:c.anchored?"YES":"NO",onClick:function(){function i(){return h("toggle_anchor")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"stopwatch",content:c.time,disabled:!c.authfull,tooltip:"Set Timer",onClick:function(){function i(){return h("set_time")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.safety?"check":"times",selected:c.safety,disabled:!c.authfull,content:c.safety?"ON":"OFF",tooltip:c.safety?"Disable Safety":"Enable Safety",onClick:function(){function i(){return h("toggle_safety")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Arm/Disarm",children:(0,e.createComponentVNode)(2,t.Button,{icon:(c.timer,"bomb"),disabled:c.safety||!c.authfull,color:"red",content:c.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){function i(){return h("toggle_armed")}return i}()})})]})})]})}):(0,e.createComponentVNode)(2,o.Window,{width:350,height:115,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Deployment",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"exclamation-triangle",content:"Deploy Nuclear Device (will bolt device to floor)",onClick:function(){function i(){return h("deploy")}return i}()})})})})}return b}()},52416:function(T,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(92986),f=n(72253),b=n(36036),y=n(98595),S=r.NumberInputModal=function(){function h(c,i){var m=(0,f.useBackend)(i),d=m.act,u=m.data,s=u.init_value,l=u.large_buttons,v=u.message,N=v===void 0?"":v,C=u.timeout,p=u.title,g=(0,f.useLocalState)(i,"input",s),V=g[0],B=g[1],I=function(){function x(A){A!==V&&B(A)}return x}(),L=function(){function x(A){A!==V&&B(A)}return x}(),w=140+Math.max(Math.ceil(N.length/3),N.length>0&&l?5:0);return(0,e.createComponentVNode)(2,y.Window,{title:p,width:270,height:w,children:[C&&(0,e.createComponentVNode)(2,a.Loader,{value:C}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function x(A){var E=window.event?A.which:A.keyCode;E===o.KEY_ENTER&&d("submit",{entry:V}),E===o.KEY_ESCAPE&&d("cancel")}return x}(),children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Box,{color:"label",children:N})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,k,{input:V,onClick:L,onChange:I})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:V})})]})})})]})}return h}(),k=function(c,i){var m=(0,f.useBackend)(i),d=m.act,u=m.data,s=u.min_value,l=u.max_value,v=u.init_value,N=u.round_value,C=c.input,p=c.onClick,g=c.onChange,V=Math.round(C!==s?Math.max(C/2,s):l/2),B=C===s&&s>0||C===1;return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Button,{disabled:C===s,icon:"angle-double-left",onClick:function(){function I(){return p(s)}return I}(),tooltip:C===s?"Min":"Min ("+s+")"})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.RestrictedInput,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!N,minValue:s,maxValue:l,onChange:function(){function I(L,w){return g(w)}return I}(),onEnter:function(){function I(L,w){return d("submit",{entry:w})}return I}(),value:C})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Button,{disabled:C===l,icon:"angle-double-right",onClick:function(){function I(){return p(l)}return I}(),tooltip:C===l?"Max":"Max ("+l+")"})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Button,{disabled:B,icon:"divide",onClick:function(){function I(){return p(V)}return I}(),tooltip:B?"Split":"Split ("+V+")"})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Button,{disabled:C===v,icon:"redo",onClick:function(){function I(){return p(v)}return I}(),tooltip:v?"Reset ("+v+")":"Reset"})})]})}},1218:function(T,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(98595),f=n(36036),b=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],y=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},k=["bad","average","average","good","average","average","bad"],h=r.OperatingComputer=function(){function d(u,s){var l=(0,t.useBackend)(s),v=l.act,N=l.data,C=N.hasOccupant,p=N.choice,g;return p?g=(0,e.createComponentVNode)(2,m):g=C?(0,e.createComponentVNode)(2,c):(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,o.Window,{width:650,height:455,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!p,icon:"user",onClick:function(){function V(){return v("choiceOff")}return V}(),children:"Patient"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!!p,icon:"cog",onClick:function(){function V(){return v("choiceOn")}return V}(),children:"Options"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,children:g})})]})})})}return d}(),c=function(u,s){var l=(0,t.useBackend)(s),v=l.data,N=v.occupant;return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,title:"Patient",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Name",children:N.name}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Status",color:b[N.stat][0],children:b[N.stat][1]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:N.maxHealth,value:N.health/N.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),y.map(function(C,p){return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:C[0]+" Damage",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:"100",value:N[C[1]]/100,ranges:S,children:(0,a.round)(N[C[1]])},p)},p)}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:N.maxTemp,value:N.bodyTemperature/N.maxTemp,color:k[N.temperatureSuitability+3],children:[(0,a.round)(N.btCelsius),"\xB0C, ",(0,a.round)(N.btFaren),"\xB0F"]})}),!!N.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:N.bloodMax,value:N.bloodLevel/N.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[N.bloodPercent,"%, ",N.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Pulse",children:[N.pulse," BPM"]})],4)]})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Current Procedure",level:"2",children:N.inSurgery?(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Procedure",children:N.surgeryName}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Next Step",children:N.stepName})]}):(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No procedure ongoing."})})})]})},i=function(){return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No patient detected."]})})},m=function(u,s){var l=(0,t.useBackend)(s),v=l.act,N=l.data,C=N.verbose,p=N.health,g=N.healthAlarm,V=N.oxy,B=N.oxyAlarm,I=N.crit;return(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Loudspeaker",children:(0,e.createComponentVNode)(2,f.Button,{selected:C,icon:C?"toggle-on":"toggle-off",content:C?"On":"Off",onClick:function(){function L(){return v(C?"verboseOff":"verboseOn")}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer",children:(0,e.createComponentVNode)(2,f.Button,{selected:p,icon:p?"toggle-on":"toggle-off",content:p?"On":"Off",onClick:function(){function L(){return v(p?"healthOff":"healthOn")}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:g,stepPixelSize:5,ml:"0",onChange:function(){function L(w,x){return v("health_adj",{new:x})}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,f.Button,{selected:V,icon:V?"toggle-on":"toggle-off",content:V?"On":"Off",onClick:function(){function L(){return v(V?"oxyOff":"oxyOn")}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:B,stepPixelSize:5,ml:"0",onChange:function(){function L(w,x){return v("oxy_adj",{new:x})}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,f.Button,{selected:I,icon:I?"toggle-on":"toggle-off",content:I?"On":"Off",onClick:function(){function L(){return v(I?"critOff":"critOn")}return L}()})})]})}},46892:function(T,r,n){"use strict";r.__esModule=!0,r.Orbit=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=n(35840);function y(l,v){var N=typeof Symbol!="undefined"&&l[Symbol.iterator]||l["@@iterator"];if(N)return(N=N.call(l)).next.bind(N);if(Array.isArray(l)||(N=S(l))||v&&l&&typeof l.length=="number"){N&&(l=N);var C=0;return function(){return C>=l.length?{done:!0}:{done:!1,value:l[C++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(l,v){if(l){if(typeof l=="string")return k(l,v);var N={}.toString.call(l).slice(8,-1);return N==="Object"&&l.constructor&&(N=l.constructor.name),N==="Map"||N==="Set"?Array.from(l):N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N)?k(l,v):void 0}}function k(l,v){(v==null||v>l.length)&&(v=l.length);for(var N=0,C=Array(v);NN},m=function(v,N){var C=v.name,p=N.name;if(!C||!p)return 0;var g=C.match(h),V=p.match(h);if(g&&V&&C.replace(h,"")===p.replace(h,"")){var B=parseInt(g[1],10),I=parseInt(V[1],10);return B-I}return i(C,p)},d=function(v,N){var C=v.searchText,p=v.source,g=v.title,V=v.color,B=v.sorted,I=p.filter(c(C));return B&&I.sort(m),p.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:g+" - ("+p.length+")",children:I.map(function(L){return(0,e.createComponentVNode)(2,u,{thing:L,color:V},L.name)})})},u=function(v,N){var C=(0,t.useBackend)(N),p=C.act,g=v.color,V=v.thing;return(0,e.createComponentVNode)(2,o.Button,{color:g,tooltip:V.assigned_role?(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",mr:"0.5em",className:(0,b.classes)(["orbit_job16x16",V.assigned_role_sprite])})," ",V.assigned_role]}):"",tooltipPosition:"bottom",onClick:function(){function B(){return p("orbit",{ref:V.ref})}return B}(),children:[V.name,V.orbiters&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,ml:1,children:["(",V.orbiters," ",(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),")"]})]})},s=r.Orbit=function(){function l(v,N){for(var C=(0,t.useBackend)(N),p=C.act,g=C.data,V=g.alive,B=g.antagonists,I=g.highlights,L=g.response_teams,w=g.tourist,x=g.auto_observe,A=g.dead,E=g.ssd,P=g.ghosts,j=g.misc,M=g.npcs,R=(0,t.useLocalState)(N,"searchText",""),D=R[0],W=R[1],_={},U=y(B),K;!(K=U()).done;){var G=K.value;_[G.antag]===void 0&&(_[G.antag]=[]),_[G.antag].push(G)}var $=Object.entries(_);$.sort(function(J,ie){return i(J[0],ie[0])});var Q=function(){function J(ie){for(var ne=0,se=[$.map(function(ye){var he=ye[0],oe=ye[1];return oe}),w,I,V,P,E,A,M,j];ne0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:$.map(function(J){var ie=J[0],ne=J[1];return(0,e.createComponentVNode)(2,o.Section,{title:ie+" - ("+ne.length+")",level:2,children:ne.filter(c(D)).sort(m).map(function(se){return(0,e.createComponentVNode)(2,u,{color:"bad",thing:se},se.name)})},ie)})}),I.length>0&&(0,e.createComponentVNode)(2,d,{title:"Highlights",source:I,searchText:D,color:"teal"}),(0,e.createComponentVNode)(2,d,{title:"Response Teams",source:L,searchText:D,color:"purple"}),(0,e.createComponentVNode)(2,d,{title:"Tourists",source:w,searchText:D,color:"violet"}),(0,e.createComponentVNode)(2,d,{title:"Alive",source:V,searchText:D,color:"good"}),(0,e.createComponentVNode)(2,d,{title:"Ghosts",source:P,searchText:D,color:"grey"}),(0,e.createComponentVNode)(2,d,{title:"SSD",source:E,searchText:D,color:"grey"}),(0,e.createComponentVNode)(2,d,{title:"Dead",source:A,searchText:D,sorted:!1}),(0,e.createComponentVNode)(2,d,{title:"NPCs",source:M,searchText:D,sorted:!1}),(0,e.createComponentVNode)(2,d,{title:"Misc",source:j,searchText:D,sorted:!1})]})})}return l}()},15421:function(T,r,n){"use strict";r.__esModule=!0,r.OreRedemption=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=n(98595),b=n(9394);function y(l){if(l==null)throw new TypeError("Cannot destructure "+l)}var S=(0,b.createLogger)("OreRedemption"),k=function(v){return v.toLocaleString("en-US")+" pts"},h=r.OreRedemption=function(){function l(v,N){return(0,e.createComponentVNode)(2,f.Window,{width:490,height:750,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,c,{height:"100%"})}),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,m)]})})})}return l}(),c=function(v,N){var C=(0,t.useBackend)(N),p=C.act,g=C.data,V=g.id,B=g.points,I=g.disk,L=Object.assign({},(y(v),v));return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({},L,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"This machine only accepts ore. Gibtonite is not accepted."]}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed Points",color:B>0?"good":"grey",bold:B>0&&"good",children:k(B)})}),(0,e.createComponentVNode)(2,o.Divider),I?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Design disk",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,icon:"eject",content:I.name,tooltip:"Ejects the design disk.",onClick:function(){function w(){return p("eject_disk")}return w}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!I.design||!I.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){function w(){return p("download")}return w}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stored design",children:(0,e.createComponentVNode)(2,o.Box,{color:I.design&&(I.compatible?"good":"bad"),children:I.design||"N/A"})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No design disk inserted."})]})))},i=function(v,N){var C=(0,t.useBackend)(N),p=C.act,g=C.data,V=g.sheets,B=Object.assign({},(y(v),v));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"20%",children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},B,{children:[(0,e.createComponentVNode)(2,d,{title:"Sheets",columns:[["Available","25%"],["Ore Value","15%"],["Smelt","20%"]]}),V.map(function(I){return(0,e.createComponentVNode)(2,u,{ore:I},I.id)})]})))})},m=function(v,N){var C=(0,t.useBackend)(N),p=C.act,g=C.data,V=g.alloys,B=Object.assign({},(y(v),v));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},B,{children:[(0,e.createComponentVNode)(2,d,{title:"Alloys",columns:[["Recipe","50%"],["Available","11%"],["Smelt","20%"]]}),V.map(function(I){return(0,e.createComponentVNode)(2,s,{ore:I},I.id)})]})))})},d=function(v,N){var C;return(0,e.createComponentVNode)(2,o.Box,{className:"OreHeader",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:v.title}),(C=v.columns)==null?void 0:C.map(function(p){return(0,e.createComponentVNode)(2,o.Stack.Item,{basis:p[1],textAlign:"center",color:"label",bold:!0,children:p[0]},p)})]})})},u=function(v,N){var C=(0,t.useBackend)(N),p=C.act,g=v.ore;if(!(g.value&&g.amount<=0&&!(["metal","glass"].indexOf(g.id)>-1)))return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"45%",align:"middle",children:(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",g.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:g.name})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",color:g.amount>=1?"good":"gray",bold:g.amount>=1,align:"center",children:g.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",children:g.value}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(g.amount,50),stepPixelSize:6,onChange:function(){function V(B,I){return p(g.value?"sheet":"alloy",{id:g.id,amount:I})}return V}()})})]})})},s=function(v,N){var C=(0,t.useBackend)(N),p=C.act,g=v.ore;return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"7%",align:"middle",children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["alloys32x32",g.id])})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",textAlign:"middle",align:"center",children:g.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"35%",textAlign:"middle",color:g.amount>=1?"good":"gray",align:"center",children:g.description}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"10%",textAlign:"center",color:g.amount>=1?"good":"gray",bold:g.amount>=1,align:"center",children:g.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(g.amount,50),stepPixelSize:6,onChange:function(){function V(B,I){return p(g.value?"sheet":"alloy",{id:g.id,amount:I})}return V}()})})]})})}},52754:function(T,r,n){"use strict";r.__esModule=!0,r.PAI=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(71253),b=n(70752),y=function(h){var c;try{c=b("./"+h+".js")}catch(m){if(m.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",h);throw m}var i=c[h];return i||(0,f.routingError)("missingExport",h)},S=r.PAI=function(){function k(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.app_template,s=d.app_icon,l=d.app_title,v=y(u);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{p:1,fill:!0,scrollable:!0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:s,mr:1}),l,u!=="pai_main_menu"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{ml:2,mb:0,content:"Back",icon:"arrow-left",onClick:function(){function N(){return m("Back")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Home",icon:"arrow-up",onClick:function(){function N(){return m("MASTER_back")}return N}()})],4)]}),children:(0,e.createComponentVNode)(2,v)})})})})})}return k}()},85175:function(T,r,n){"use strict";r.__esModule=!0,r.PDA=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(71253),b=n(59395),y=function(i){var m;try{m=b("./"+i+".js")}catch(u){if(u.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",i);throw u}var d=m[i];return d||(0,f.routingError)("missingExport",i)},S=r.PDA=function(){function c(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.app,v=s.owner;if(!v)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:"No user data found. Please swipe an ID card."})})});var N=y(l.template);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,k)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,p:1,pb:0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:l.icon,mr:1}),l.name]}),children:(0,e.createComponentVNode)(2,N)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:7.5,children:(0,e.createComponentVNode)(2,h)})]})})})}return c}(),k=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.idInserted,v=s.idLink,N=s.stationTime,C=s.cartridge_name;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{ml:.5,children:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",color:"transparent",onClick:function(){function p(){return u("Authenticate")}return p}(),content:l?v:"No ID Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function p(){return u("Eject")}return p}(),content:C?["Eject "+C]:"No Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"right",bold:!0,mr:1,mt:.5,children:N})]})},h=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.app;return(0,e.createComponentVNode)(2,t.Box,{height:"45px",className:"PDA__footer",backgroundColor:"#1b1b1b",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[!!l.has_back&&(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"33%",mr:-.5,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:l.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){function v(){return u("Back")}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:l.has_back?"33%":"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:l.is_home?"disabled":"white",icon:"home",onClick:function(){function v(){u("Home")}return v}()})})]})})}},68654:function(T,r,n){"use strict";r.__esModule=!0,r.Pacman=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(49968),b=r.Pacman=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.active,d=i.anchored,u=i.broken,s=i.emagged,l=i.fuel_type,v=i.fuel_usage,N=i.fuel_stored,C=i.fuel_cap,p=i.is_ai,g=i.tmp_current,V=i.tmp_max,B=i.tmp_overheat,I=i.output_max,L=i.power_gen,w=i.output_set,x=i.has_fuel,A=N/C,E=g/V,P=w*L,j=Math.round(N/v),M=Math.round(j/60),R=j>120?M+" minutes":j+" seconds";return(0,e.createComponentVNode)(2,o.Window,{width:500,height:225,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(u||!d)&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[!!u&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator is malfunctioning!"}),!u&&!d&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!u&&!!d&&(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:m?"power-off":"times",content:m?"On":"Off",tooltip:"Toggles the generator on/off. Requires fuel.",tooltipPosition:"left",disabled:!x,selected:m,onClick:function(){function D(){return c("toggle_power")}return D}()}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",className:"ml-1",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power setting",children:[(0,e.createComponentVNode)(2,t.NumberInput,{value:w,minValue:1,maxValue:I*(s?2.5:1),step:1,className:"mt-1",onDrag:function(){function D(W,_){return c("change_power",{change_power:_})}return D}()}),"(",(0,f.formatPower)(P),")"]})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:E,ranges:{green:[-1/0,.33],orange:[.33,.66],red:[.66,1/0]},children:[g," \u2103"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[B>50&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"CRITICAL OVERHEAT!"}),B>20&&B<=50&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"WARNING: Overheating!"}),B>1&&B<=20&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Temperature High"}),B===0&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Optimal"})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fuel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject Fuel",tooltip:"Ejects fuel. Generator needs to be offline.",tooltipPosition:"left",disabled:m||p||!x,onClick:function(){function D(){return c("eject_fuel")}return D}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Type",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:A,ranges:{red:[-1/0,.33],orange:[.33,.66],green:[.66,1/0]},children:[Math.round(N/1e3)," dm\xB3"]})})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel usage",children:[v/1e3," dm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel depletion",children:[!!x&&(v?R:"N/A"),!x&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}return y}()},1701:function(T,r,n){"use strict";r.__esModule=!0,r.PanDEMIC=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.PanDEMIC=function(){function d(u,s){var l=(0,a.useBackend)(s),v=l.data,N=v.beakerLoaded,C=v.beakerContainsBlood,p=v.beakerContainsVirus,g=v.resistances,V=g===void 0?[]:g,B;return N?C?C&&!p&&(B=(0,e.createFragment)([(0,e.createTextVNode)("No disease detected in provided blood sample.")],4)):B=(0,e.createFragment)([(0,e.createTextVNode)("No blood sample found in the loaded container.")],4):B=(0,e.createFragment)([(0,e.createTextVNode)("No container loaded.")],4),(0,e.createComponentVNode)(2,o.Window,{width:575,height:510,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[B&&!p?(0,e.createComponentVNode)(2,t.Section,{title:"Container Information",buttons:(0,e.createComponentVNode)(2,b,{fill:!0,vertical:!0}),children:(0,e.createComponentVNode)(2,t.NoticeBox,{children:B})}):(0,e.createComponentVNode)(2,k),(V==null?void 0:V.length)>0&&(0,e.createComponentVNode)(2,m,{align:"bottom"})]})})})}return d}(),b=function(u,s){var l=(0,a.useBackend)(s),v=l.act,N=l.data,C=N.beakerLoaded;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!C,onClick:function(){function p(){return v("eject_beaker")}return p}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",confirmIcon:"eraser",content:"Destroy",confirmContent:"Destroy",disabled:!C,onClick:function(){function p(){return v("destroy_eject_beaker")}return p}()})],4)},y=function(u,s){var l=(0,a.useBackend)(s),v=l.act,N=l.data,C=N.beakerContainsVirus,p=u.strain,g=p.commonName,V=p.description,B=p.diseaseAgent,I=p.bloodDNA,L=p.bloodType,w=p.possibleTreatments,x=p.transmissionRoute,A=p.isAdvanced,E=(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",children:I?(0,e.createVNode)(1,"span",null,I,0,{style:{"font-family":"'Courier New', monospace"}}):"Undetectable"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood Type",children:(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:L!=null?L:"Undetectable"}})})],4);if(!C)return(0,e.createComponentVNode)(2,t.LabeledList,{children:E});var P;return A&&(g!=null&&g!=="Unknown"?P=(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print Release Forms",onClick:function(){function j(){return v("print_release_forms",{strain_index:u.strainIndex})}return j}(),style:{"margin-left":"auto"}}):P=(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Name Disease",onClick:function(){function j(){return v("name_strain",{strain_index:u.strainIndex})}return j}(),style:{"margin-left":"auto"}})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Common Name",className:"common-name-label",children:(0,e.createComponentVNode)(2,t.Stack,{horizontal:!0,align:"center",children:[g!=null?g:"Unknown",P]})}),V&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:V}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Disease Agent",children:B}),E,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Spread Vector",children:x!=null?x:"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Possible Cures",children:w!=null?w:"None"})]})},S=function(u,s){var l,v=(0,a.useBackend)(s),N=v.act,C=v.data,p=!!C.synthesisCooldown,g=(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:p?"spinner":"clone",iconSpin:p,content:"Clone",disabled:p,onClick:function(){function V(){return N("clone_strain",{strain_index:u.strainIndex})}return V}()}),u.sectionButtons],0);return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:(l=u.sectionTitle)!=null?l:"Strain Information",buttons:g,children:(0,e.createComponentVNode)(2,y,{strain:u.strain,strainIndex:u.strainIndex})})})},k=function(u,s){var l,v=(0,a.useBackend)(s),N=v.act,C=v.data,p=C.selectedStrainIndex,g=C.strains,V=g[p-1];if(g.length===0)return(0,e.createComponentVNode)(2,t.Section,{title:"Container Information",buttons:(0,e.createComponentVNode)(2,b),children:(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No disease detected in provided blood sample."})});if(g.length===1){var B;return(0,e.createFragment)([(0,e.createComponentVNode)(2,S,{strain:g[0],strainIndex:1,sectionButtons:(0,e.createComponentVNode)(2,b)}),((B=g[0].symptoms)==null?void 0:B.length)>0&&(0,e.createComponentVNode)(2,c,{strain:g[0]})],0)}var I=(0,e.createComponentVNode)(2,b);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Culture Information",fill:!0,buttons:I,children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",style:{height:"100%"},children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{children:g.map(function(L,w){var x;return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"virus",selected:p-1===w,onClick:function(){function A(){return N("switch_strain",{strain_index:w+1})}return A}(),children:(x=L.commonName)!=null?x:"Unknown"},w)})})}),(0,e.createComponentVNode)(2,S,{strain:V,strainIndex:p}),((l=V.symptoms)==null?void 0:l.length)>0&&(0,e.createComponentVNode)(2,c,{className:"remove-section-bottom-padding",strain:V})]})})})},h=function(u){return u.reduce(function(s,l){return s+l},0)},c=function(u){var s=u.strain.symptoms;return(0,e.createComponentVNode)(2,t.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Infection Symptoms",fill:!0,className:u.className,children:(0,e.createComponentVNode)(2,t.Table,{className:"symptoms-table",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Stealth"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Resistance"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Stage Speed"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Transmissibility"})]}),s.map(function(l,v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.stealth}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.resistance}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.stageSpeed}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.transmissibility})]},v)}),(0,e.createComponentVNode)(2,t.Table.Row,{className:"table-spacer"}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"font-weight":"bold"},children:"Total"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h(s.map(function(l){return l.stealth}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h(s.map(function(l){return l.resistance}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h(s.map(function(l){return l.stageSpeed}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h(s.map(function(l){return l.transmissibility}))})]})]})})})},i=["flask","vial","eye-dropper"],m=function(u,s){var l=(0,a.useBackend)(s),v=l.act,N=l.data,C=N.synthesisCooldown,p=N.beakerContainsVirus,g=N.resistances;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Antibodies",fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{horizontal:!0,wrap:!0,children:g.map(function(V,B){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:i[B%i.length],disabled:!!C,onClick:function(){function I(){return v("clone_vaccine",{resistance_index:B+1})}return I}(),mr:"0.5em"}),V]},B)})})})})}},67921:function(T,r,n){"use strict";r.__esModule=!0,r.ParticleAccelerator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ParticleAccelerator=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.assembled,m=c.power,d=c.strength,u=c.max_strength;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:160,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Control Panel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Connect",onClick:function(){function s(){return h("scan")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",mb:"5px",children:(0,e.createComponentVNode)(2,t.Box,{color:i?"good":"bad",children:i?"Operational":"Error: Verify Configuration"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:m?"power-off":"times",content:m?"On":"Off",selected:m,disabled:!i,onClick:function(){function s(){return h("power")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Strength",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:!i||d===0,onClick:function(){function s(){return h("remove_strength")}return s}(),mr:"4px"}),d,(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:!i||d===u,onClick:function(){function s(){return h("add_strength")}return s}(),ml:"4px"})]})]})})})})}return b}()},71432:function(T,r,n){"use strict";r.__esModule=!0,r.PdaPainter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.PdaPainter=function(){function k(h,c){var i=(0,a.useBackend)(c),m=i.data,d=m.has_pda;return(0,e.createComponentVNode)(2,o.Window,{width:510,height:505,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:d?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,b)})})}return k}(),b=function(h,c){var i=(0,a.useBackend)(c),m=i.act;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"download",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{width:"160px",textAlign:"center",content:"Insert PDA",onClick:function(){function d(){return m("insert_pda")}return d}()})]})})})},y=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.pda_colors;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,S)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Table,{className:"PdaPainter__list",children:Object.keys(u).map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{onClick:function(){function l(){return m("choose_pda",{selectedPda:s})}return l}(),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+u[s][0],style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s})]},s)})})})})]})},S=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.current_appearance,s=d.preview_appearance;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Current PDA",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+u,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",content:"Eject",color:"green",onClick:function(){function l(){return m("eject_pda")}return l}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"paint-roller",content:"Paint PDA",onClick:function(){function l(){return m("paint_pda")}return l}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Preview",children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+s,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})})]})}},33388:function(T,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.PersonalCrafting=function(){function S(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.busy,u=m.category,s=m.display_craftable_only,l=m.display_compact,v=m.prev_cat,N=m.next_cat,C=m.subcategory,p=m.prev_subcat,g=m.next_subcat;return(0,e.createComponentVNode)(2,o.Window,{width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!d&&(0,e.createComponentVNode)(2,t.Dimmer,{fontSize:"32px",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog",spin:1})," Crafting..."]}),(0,e.createComponentVNode)(2,t.Section,{title:u,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Show Craftable Only",icon:s?"check-square-o":"square-o",selected:s,onClick:function(){function V(){return i("toggle_recipes")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Compact Mode",icon:l?"check-square-o":"square-o",selected:l,onClick:function(){function V(){return i("toggle_compact")}return V}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:v,icon:"arrow-left",onClick:function(){function V(){return i("backwardCat")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:N,icon:"arrow-right",onClick:function(){function V(){return i("forwardCat")}return V}()})]}),C&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:p,icon:"arrow-left",onClick:function(){function V(){return i("backwardSubCat")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:g,icon:"arrow-right",onClick:function(){function V(){return i("forwardSubCat")}return V}()})]}),l?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,y)]})]})})}return S}(),b=function(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.display_craftable_only,u=m.can_craft,s=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function v(){return i("make",{make:l.ref})}return v}()}),l.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:l.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:l.req_text,content:"Requirements",color:"transparent"}),l.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:l.tool_text,content:"Tools",color:"transparent"})]},l.name)}),!d&&s.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),l.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:l.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:l.req_text,content:"Requirements",color:"transparent"}),l.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:l.tool_text,content:"Tools",color:"transparent"})]},l.name)})]})})},y=function(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.display_craftable_only,u=m.can_craft,s=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[u.map(function(l){return(0,e.createComponentVNode)(2,t.Section,{title:l.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function v(){return i("make",{make:l.ref})}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[l.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:l.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:l.req_text}),l.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:l.tool_text})]})},l.name)}),!d&&s.map(function(l){return(0,e.createComponentVNode)(2,t.Section,{title:l.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[l.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:l.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:l.req_text}),l.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:l.tool_text})]})},l.name)})]})}},56150:function(T,r,n){"use strict";r.__esModule=!0,r.Photocopier=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Photocopier=function(){function S(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:440,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Photocopier",color:"silver",children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Copies:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"2em",bold:!0,children:m.copynumber}),(0,e.createComponentVNode)(2,t.Stack.Item,{float:"right",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"minus",textAlign:"center",content:"",onClick:function(){function d(){return i("minus")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"plus",textAlign:"center",content:"",onClick:function(){function d(){return i("add")}return d}()})]})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Toner:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,children:m.toner})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Document:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!m.copyitem&&!m.mob,content:m.copyitem?m.copyitem:m.mob?m.mob+"'s ass!":"document",onClick:function(){function d(){return i("removedocument")}return d}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Folder:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!m.folder,content:m.folder?m.folder:"folder",onClick:function(){function d(){return i("removefolder")}return d}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,b)}),(0,e.createComponentVNode)(2,y)]})})})}return S}(),b=function(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.issilicon;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"copy",float:"center",textAlign:"center",content:"Copy",onClick:function(){function u(){return i("copy")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file-import",float:"center",textAlign:"center",content:"Scan",onClick:function(){function u(){return i("scandocument")}return u}()}),!!d&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file",color:"green",float:"center",textAlign:"center",content:"Print Text",onClick:function(){function u(){return i("ai_text")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"image",color:"green",float:"center",textAlign:"center",content:"Print Image",onClick:function(){function u(){return i("ai_pic")}return u}()})],4)],0)},y=function(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Scanned Files",children:m.files.map(function(d){return(0,e.createComponentVNode)(2,t.Section,{title:d.name,buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:m.toner<=0,onClick:function(){function u(){return i("filecopy",{uid:d.uid})}return u}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",content:"Delete",color:"bad",onClick:function(){function u(){return i("deletefile",{uid:d.uid})}return u}()})]})},d.name)})})}},84676:function(T,r,n){"use strict";r.__esModule=!0,r.PoolController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=["tempKey"];function b(h,c){if(h==null)return{};var i={};for(var m in h)if({}.hasOwnProperty.call(h,m)){if(c.includes(m))continue;i[m]=h[m]}return i}var y={scalding:{label:"Scalding",color:"#FF0000",icon:"fa fa-arrow-circle-up",requireEmag:!0},warm:{label:"Warm",color:"#990000",icon:"fa fa-arrow-circle-up"},normal:{label:"Normal",color:null,icon:"fa fa-arrow-circle-right"},cool:{label:"Cool",color:"#009999",icon:"fa fa-arrow-circle-down"},frigid:{label:"Frigid",color:"#00CCCC",icon:"fa fa-arrow-circle-down",requireEmag:!0}},S=function(c,i){var m=c.tempKey,d=b(c,f),u=y[m];if(!u)return null;var s=(0,a.useBackend)(i),l=s.data,v=s.act,N=l.currentTemp,C=u.label,p=u.icon,g=m===N,V=function(){v("setTemp",{temp:m})};return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({color:"transparent",selected:g,onClick:V},d,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:p}),C]})))},k=r.PoolController=function(){function h(c,i){for(var m=(0,a.useBackend)(i),d=m.data,u=d.emagged,s=d.currentTemp,l=y[s]||y.normal,v=l.label,N=l.color,C=[],p=0,g=Object.entries(y);p50?"battery-half":"battery-quarter")||N==="C"&&"bolt"||N==="F"&&"battery-full"||N==="M"&&"slash",color:N==="N"&&(C>50?"yellow":"red")||N==="C"&&"yellow"||N==="F"&&"green"||N==="M"&&"orange"}),(0,e.createComponentVNode)(2,S.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,o.toFixed)(C)+"%"})],4)};u.defaultHooks=f.pureComponentHooks;var s=function(v){var N,C,p=v.status;switch(p){case"AOn":N=!0,C=!0;break;case"AOff":N=!0,C=!1;break;case"On":N=!1,C=!0;break;case"Off":N=!1,C=!1;break}var g=(C?"On":"Off")+(" ["+(N?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,S.ColorBox,{color:C?"good":"bad",content:N?void 0:"M",title:g})};s.defaultHooks=f.pureComponentHooks},50992:function(T,r,n){"use strict";r.__esModule=!0,r.PrisonerImplantManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(29319),f=n(3939),b=n(321),y=n(5485),S=n(98595),k=r.PrisonerImplantManager=function(){function h(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.loginState,l=u.prisonerInfo,v=u.chemicalInfo,N=u.trackingInfo,C;if(!s.logged_in)return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,y.LoginScreen)})});var p=[1,5,10];return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.LoginInfo),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Prisoner Points Manager System",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.name?"eject":"id-card",selected:l.name,content:l.name?l.name:"-----",tooltip:l.name?"Eject ID":"Insert ID",onClick:function(){function g(){return d("id_card")}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Points",children:[l.points!==null?l.points:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"minus-square",disabled:l.points===null,content:"Reset",onClick:function(){function g(){return d("reset_points")}return g}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Point Goal",children:[l.goal!==null?l.goal:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"pen",disabled:l.goal===null,content:"Edit",onClick:function(){function g(){return(0,f.modalOpen)(i,"set_points")}return g}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createVNode)(1,"box",null,[(0,e.createTextVNode)("1 minute of prison time should roughly equate to 150 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Sentences should not exceed 5000 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Permanent prisoners should not be given a point goal."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Prisoners who meet their point goal will be able to automatically access their locker and return to the station using the shuttle.")],4,{hidden:l.goal===null})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Tracking Implants",children:N.map(function(g){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",g.subject]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:g.location}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:g.health}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Warn",tooltip:"Broadcast a message to this poor sod",onClick:function(){function V(){return(0,f.modalOpen)(i,"warn",{uid:g.uid})}return V}()})})]})]},g.subject)]}),(0,e.createVNode)(1,"br")],4)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Chemical Implants",children:v.map(function(g){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",g.name]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Reagents",children:g.volume})}),p.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{mt:2,disabled:g.volumei;return(0,e.createComponentVNode)(2,t.ImageButton,{fluid:!0,asset:["prize_counter64x64",g.imageID],title:g.name,buttonsAlt:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{bold:!0,translucent:!0,fontSize:1.5,tooltip:V&&"Not enough tickets",disabled:V,onClick:function(){function B(){return h("purchase",{purchase:g.itemID})}return B}(),children:[g.cost,(0,e.createComponentVNode)(2,t.Icon,{m:0,mt:.25,name:"ticket",color:V?"bad":"good",size:1.6})]}),children:g.desc},g.name)})})})})})})}return b}()},94813:function(T,r,n){"use strict";r.__esModule=!0,r.RCD=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(3939),b=n(49148),y=r.RCD=function(){function d(u,s){return(0,e.createComponentVNode)(2,o.Window,{width:480,height:670,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i)]})})]})}return d}(),S=function(u,s){var l=(0,a.useBackend)(s),v=l.data,N=v.matter,C=v.max_matter,p=C*.7,g=C*.25;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Matter Storage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[p,1/0],average:[g,p],bad:[-1/0,g]},value:N,maxValue:C,children:(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:N+" / "+C+" units"})})})})},k=function(){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Construction Type",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,h,{mode_type:"Floors and Walls"}),(0,e.createComponentVNode)(2,h,{mode_type:"Airlocks"}),(0,e.createComponentVNode)(2,h,{mode_type:"Windows"}),(0,e.createComponentVNode)(2,h,{mode_type:"Deconstruction"})]})})})},h=function(u,s){var l=(0,a.useBackend)(s),v=l.act,N=l.data,C=u.mode_type,p=N.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",content:C,selected:p===C?1:0,onClick:function(){function g(){return v("mode",{mode:C})}return g}()})})},c=function(u,s){var l=(0,a.useBackend)(s),v=l.act,N=l.data,C=N.door_name,p=N.electrochromic,g=N.airlock_glass;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Airlock Settings",children:(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",icon:"pen-alt",content:(0,e.createFragment)([(0,e.createTextVNode)("Rename: "),(0,e.createVNode)(1,"b",null,C,0)],0),onClick:function(){function V(){return(0,f.modalOpen)(s,"renameAirlock")}return V}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:g===1&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:p?"toggle-on":"toggle-off",content:"Electrochromic",selected:p,onClick:function(){function V(){return v("electrochromic")}return V}()})})]})})})},i=function(u,s){var l=(0,a.useBackend)(s),v=l.act,N=l.data,C=N.tab,p=N.locked,g=N.one_access,V=N.selected_accesses,B=N.regions;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"cog",selected:C===1,onClick:function(){function I(){return v("set_tab",{tab:1})}return I}(),children:"Airlock Types"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===2,icon:"list",onClick:function(){function I(){return v("set_tab",{tab:2})}return I}(),children:"Airlock Access"})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:C===1?(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Types",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m,{check_number:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m,{check_number:1})})]})}):C===2&&p?(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Access",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock-open",content:"Unlock",onClick:function(){function I(){return v("set_lock",{new_lock:"unlock"})}return I}()}),children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"lock",size:"5",mb:3}),(0,e.createVNode)(1,"br"),"Airlock access selection is currently locked."]})})}):(0,e.createComponentVNode)(2,b.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock",content:"Lock",onClick:function(){function I(){return v("set_lock",{new_lock:"lock"})}return I}()}),usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:g,content:"One",onClick:function(){function I(){return v("set_one_access",{access:"one"})}return I}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!g,width:4,content:"All",onClick:function(){function I(){return v("set_one_access",{access:"all"})}return I}()})],4),accesses:B,selectedList:V,accessMod:function(){function I(L){return v("set",{access:L})}return I}(),grantAll:function(){function I(){return v("grant_all")}return I}(),denyAll:function(){function I(){return v("clear_all")}return I}(),grantDep:function(){function I(L){return v("grant_region",{region:L})}return I}(),denyDep:function(){function I(L){return v("deny_region",{region:L})}return I}()})})],4)},m=function(u,s){for(var l=(0,a.useBackend)(s),v=l.act,N=l.data,C=N.door_types_ui_list,p=N.door_type,g=u.check_number,V=[],B=0;B=f?w=(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,mb:1,children:"There are new messages"}):B===S?w=(0,e.createComponentVNode)(2,t.Blink,{children:(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,mb:1,children:"NEW PRIORITY MESSAGES"})}):w=(0,e.createComponentVNode)(2,t.Box,{color:"label",mb:1,children:"There are no new messages"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Main Menu",buttons:(0,e.createComponentVNode)(2,t.Button,{width:9,content:L?"Speaker Off":"Speaker On",selected:!L,icon:L?"volume-mute":"volume-up",onClick:function(){function x(){return g("toggleSilent")}return x}()}),children:[w,(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"View Messages",icon:B>f?"envelope-open-text":"envelope",onClick:function(){function x(){return g("setScreen",{setScreen:6})}return x}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Request Assistance",icon:"hand-paper",onClick:function(){function x(){return g("setScreen",{setScreen:1})}return x}()}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Request Supplies",icon:"box",onClick:function(){function x(){return g("setScreen",{setScreen:2})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Request Secondary Goal",icon:"clipboard-list",onClick:function(){function x(){return g("setScreen",{setScreen:11})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Relay Anonymous Information",icon:"comment",onClick:function(){function x(){return g("setScreen",{setScreen:3})}return x}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Print Shipping Label",icon:"tag",onClick:function(){function x(){return g("setScreen",{setScreen:9})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){function x(){return g("setScreen",{setScreen:10})}return x}()})]})}),!!I&&(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Send Station-Wide Announcement",icon:"bullhorn",onClick:function(){function x(){return g("setScreen",{setScreen:8})}return x}()})})]})})},c=function(N,C){var p=(0,a.useBackend)(C),g=p.act,V=p.data,B=V.department,I=[],L;switch(N.purpose){case"ASSISTANCE":I=V.assist_dept,L="Request assistance from another department";break;case"SUPPLIES":I=V.supply_dept,L="Request supplies from another department";break;case"INFO":I=V.info_dept,L="Relay information to another department";break}return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:L,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function w(){return g("setScreen",{setScreen:0})}return w}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:I.filter(function(w){return w!==B}).map(function(w){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w,textAlign:"right",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Message",icon:"envelope",onClick:function(){function x(){return g("writeInput",{write:w,priority:y})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){function x(){return g("writeInput",{write:w,priority:S})}return x}()})]},w)})})})})},i=function(N,C){var p=(0,a.useBackend)(C),g=p.act,V=p.data,B;switch(N.type){case"SUCCESS":B="Message sent successfully";break;case"FAIL":B="Unable to contact messaging server";break}return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:B,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function I(){return g("setScreen",{setScreen:0})}return I}()})})},m=function(N,C){var p=(0,a.useBackend)(C),g=p.act,V=p.data,B,I;switch(N.type){case"MESSAGES":B=V.message_log,I="Message Log";break;case"SHIPPING":B=V.shipping_log,I="Shipping label print log";break}return B.reverse(),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:I,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function L(){return g("setScreen",{setScreen:0})}return L}()}),children:B.map(function(L){return(0,e.createComponentVNode)(2,t.Box,{textAlign:"left",children:[L.map(function(w,x){return(0,e.createVNode)(1,"div",null,w,0,null,x)}),(0,e.createVNode)(1,"hr")]},L)})})})},d=function(N,C){var p=(0,a.useBackend)(C),g=p.act,V=p.data,B=V.recipient,I=V.message,L=V.msgVerified,w=V.msgStamped;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Message Authentication",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function x(){return g("setScreen",{setScreen:0})}return x}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recipient",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",color:"green",children:L}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stamped by",color:"blue",children:w})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",content:"Send Message",icon:"envelope",onClick:function(){function x(){return g("department",{department:B})}return x}()})})})],4)},u=function(N,C){var p=(0,a.useBackend)(C),g=p.act,V=p.data,B=V.message,I=V.announceAuth;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Station-Wide Announcement",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function L(){return g("setScreen",{setScreen:0})}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Edit Message",icon:"edit",onClick:function(){function L(){return g("writeAnnouncement")}return L}()})],4),children:B})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[I?(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Swipe your ID card to authenticate yourself"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:2,textAlign:"center",content:"Send Announcement",icon:"bullhorn",disabled:!(I&&B),onClick:function(){function L(){return g("sendAnnouncement")}return L}()})]})})],4)},s=function(N,C){var p=(0,a.useBackend)(C),g=p.act,V=p.data,B=V.shipDest,I=V.msgVerified,L=V.ship_dept;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{title:"Print Shipping Label",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function w(){return g("setScreen",{setScreen:0})}return w}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",children:I})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(B&&I),onClick:function(){function w(){return g("printLabel")}return w}()})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Destinations",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:L.map(function(w){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w,textAlign:"right",className:"candystripe",children:(0,e.createComponentVNode)(2,t.Button,{content:B===w?"Selected":"Select",selected:B===w,onClick:function(){function x(){return g("shipSelect",{shipSelect:w})}return x}()})},w)})})})})],4)},l=function(N,C){var p=(0,a.useBackend)(C),g=p.act,V=p.data,B=V.secondaryGoalAuth,I=V.secondaryGoalEnabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Request Secondary Goal",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function L(){return g("setScreen",{setScreen:0})}return L}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[I?B?(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Swipe your ID card to authenticate yourself"}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Complete your current goal first!"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:2,textAlign:"center",content:"Request Secondary Goal",icon:"clipboard-list",disabled:!(B&&I),onClick:function(){function L(){return g("requestSecondaryGoal")}return L}()})]})})],4)}},9861:function(T,r,n){"use strict";r.__esModule=!0,r.RndBackupConsole=r.LinkMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.RndBackupConsole=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.network_name,d=i.has_disk,u=i.disk_name,s=i.linked,l=i.techs,v=i.last_timestamp;return(0,e.createComponentVNode)(2,o.Window,{width:900,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Device Info",children:[(0,e.createComponentVNode)(2,t.Box,{mb:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Network",children:s?(0,e.createComponentVNode)(2,t.Button,{content:m,icon:"unlink",selected:1,onClick:function(){function N(){return c("unlink")}return N}()}):"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Loaded Disk",children:d?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:u+" (Last backup: "+v+")",icon:"save",selected:1,onClick:function(){function N(){return c("eject_disk")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Save all",onClick:function(){function N(){return c("saveall2disk")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Load all",onClick:function(){function N(){return c("saveall2network")}return N}()})],4):"None"})]})}),!!s||(0,e.createComponentVNode)(2,b)]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Section,{title:"Tech Info",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Tech Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Level"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Disk Level"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),Object.keys(l).map(function(N){return!(l[N].network_level>0||l[N].disk_level>0)||(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l[N].name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l[N].network_level||"None"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l[N].disk_level||"None"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Load to network",disabled:!d||!s,onClick:function(){function C(){return c("savetech2network",{tech:N})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Load to disk",disabled:!d||!s,onClick:function(){function C(){return c("savetech2disk",{tech:N})}return C}()})]})]},N)})]})})})]})})}return y}(),b=r.LinkMenu=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.controllers;return(0,e.createComponentVNode)(2,t.Section,{title:"Setup Linkage",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Link"})]}),m.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function u(){return c("linktonetworkcontroller",{target_controller:d.addr})}return u}()})})]},d.addr)})]})})}return y}()},37556:function(T,r,n){"use strict";r.__esModule=!0,r.DataDiskMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o="design",f="tech",b=function(i,m){var d=(0,a.useBackend)(m),u=d.data,s=d.act,l=u.disk_data;return l?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:l.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:l.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:l.desc})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function v(){return s("updt_tech")}return v}()})})]}):null},y=function(i,m){var d=(0,a.useBackend)(m),u=d.data,s=d.act,l=u.disk_data;if(!l)return null;var v=l.name,N=l.lathe_types,C=l.materials,p=N.join(", ");return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:v}),p?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lathe Types",children:p}):null,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Required Materials"})]}),C.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:["- ",(0,e.createVNode)(1,"span",null,g.name,0,{style:{"text-transform":"capitalize"}})," x ",g.amount]},g.name)}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function g(){return s("updt_design")}return g}()})})]})},S=function(i,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.disk_data;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Section,Object.assign({buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Erase",icon:"eraser",disabled:!l,onClick:function(){function v(){return u("erase_disk")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",icon:"eject",onClick:function(){function v(){u("eject_disk")}return v}()})],4)},i)))},k=function(i,m){var d=(0,a.useBackend)(m),u=d.data,s=d.act,l=u.disk_type,v=u.to_copy,N=i.title;return(0,e.createComponentVNode)(2,S,{title:N,children:(0,e.createComponentVNode)(2,t.Box,{overflowY:"auto",overflowX:"hidden",maxHeight:"450px",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:v.sort(function(C,p){return C.name.localeCompare(p.name)}).map(function(C){var p=C.name,g=C.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:p,children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Copy to Disk",onClick:function(){function V(){l===f?s("copy_tech",{id:g}):s("copy_design",{id:g})}return V}()})},g)})})})})},h=r.DataDiskMenu=function(){function c(i,m){var d=(0,a.useBackend)(m),u=d.data,s=u.disk_type,l=u.disk_data;if(!s)return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",children:"No disk loaded."});switch(s){case o:return l?(0,e.createComponentVNode)(2,S,{title:"Design Disk",children:(0,e.createComponentVNode)(2,y)}):(0,e.createComponentVNode)(2,k,{title:"Design Disk"});case f:return l?(0,e.createComponentVNode)(2,S,{title:"Technology Disk",children:(0,e.createComponentVNode)(2,b)}):(0,e.createComponentVNode)(2,k,{title:"Technology Disk"});default:return(0,e.createFragment)([(0,e.createTextVNode)("UNRECOGNIZED DISK TYPE")],4)}}return c}()},58147:function(T,r,n){"use strict";r.__esModule=!0,r.DeconstructionMenu=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=r.DeconstructionMenu=function(){function y(S,k){var h=(0,t.useBackend)(k),c=h.data,i=h.act,m=c.tech_levels,d=c.loaded_item,u=c.linked_destroy;return u?d?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Object Analysis",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Deconstruct",icon:"microscope",onClick:function(){function s(){i("deconstruct")}return s}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Eject",icon:"eject",onClick:function(){function s(){i("eject_item")}return s}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:d.name})})}),(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{id:"research-levels",children:[(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Research Field"}),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Current Level"}),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Object Level"}),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"New Level"})]}),m.map(function(s){return(0,e.createComponentVNode)(2,b,{techLevel:s},s.id)})]})})],4):(0,e.createComponentVNode)(2,o.Section,{title:"Deconstruction Menu",children:"No item loaded. Standing by..."}):(0,e.createComponentVNode)(2,o.Section,{title:"Deconstruction Menu",children:"NO DESTRUCTIVE ANALYZER LINKED TO CONSOLE"})}return y}(),b=function(S,k){var h=S.techLevel,c=h.name,i=h.desc,m=h.level,d=h.object_level,u=h.ui_icon,s=d!=null,l=s&&d>=m?Math.max(d,m+1):m;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"circle-info",tooltip:i})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:u})," ",c]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:m}),s?(0,e.createComponentVNode)(2,o.Table.Cell,{children:d}):(0,e.createComponentVNode)(2,o.Table.Cell,{className:"research-level-no-effect",children:"-"}),(0,e.createComponentVNode)(2,o.Table.Cell,{className:(0,a.classes)([l!==m&&"upgraded-level"]),children:l})]})}},16830:function(T,r,n){"use strict";r.__esModule=!0,r.LatheCategory=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(52662),f=r.LatheCategory=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.data,c=k.act,i=h.category,m=h.matching_designs,d=h.menu,u=d===4,s=u?"build":"imprint";return(0,e.createComponentVNode)(2,t.Section,{title:i,children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,t.Table,{className:"RndConsole__LatheCategory__MatchingDesigns",children:m.map(function(l){var v=l.id,N=l.name,C=l.can_build,p=l.materials;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:N,disabled:C<1,onClick:function(){function g(){return c(s,{id:v,amount:1})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C>=5?(0,e.createComponentVNode)(2,t.Button,{content:"x5",onClick:function(){function g(){return c(s,{id:v,amount:5})}return g}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C>=10?(0,e.createComponentVNode)(2,t.Button,{content:"x10",onClick:function(){function g(){return c(s,{id:v,amount:10})}return g}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.map(function(g){return(0,e.createFragment)([" | ",(0,e.createVNode)(1,"span",g.is_red?"color-red":null,[g.amount,(0,e.createTextVNode)(" "),g.name],0)],0)})})]},v)})})]})}return b}()},70497:function(T,r,n){"use strict";r.__esModule=!0,r.LatheChemicalStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheChemicalStorage=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.data,h=S.act,c=k.loaded_chemicals,i=k.menu===4;return(0,e.createComponentVNode)(2,t.Section,{title:"Chemical Storage",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Purge All",icon:"trash",onClick:function(){function m(){var d=i?"disposeallP":"disposeallI";h(d)}return m}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:c.map(function(m){var d=m.volume,u=m.name,s=m.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+d+" of "+u,children:(0,e.createComponentVNode)(2,t.Button,{content:"Purge",icon:"trash",onClick:function(){function l(){var v=i?"disposeP":"disposeI";h(v,{id:s})}return l}()})},s)})})]})}return f}()},70864:function(T,r,n){"use strict";r.__esModule=!0,r.LatheMainMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(52662),f=n(68198),b=r.LatheMainMenu=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.data,i=h.act,m=c.menu,d=c.categories,u=m===4?"Protolathe":"Circuit Imprinter";return(0,e.createComponentVNode)(2,t.Section,{title:u+" Menu",children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,f.LatheSearch),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:d.map(function(s){return(0,e.createComponentVNode)(2,t.Flex,{style:{"flex-basis":"50%","margin-bottom":"6px"},children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",content:s,onClick:function(){function l(){i("setCategory",{category:s})}return l}()})},s)})})]})}return y}()},42878:function(T,r,n){"use strict";r.__esModule=!0,r.LatheMaterialStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheMaterialStorage=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.data,h=S.act,c=k.loaded_materials;return(0,e.createComponentVNode)(2,t.Section,{className:"RndConsole__LatheMaterialStorage",title:"Material Storage",children:(0,e.createComponentVNode)(2,t.Table,{children:c.map(function(i){var m=i.id,d=i.amount,u=i.name,s=function(){function C(p){var g=k.menu===4?"lathe_ejectsheet":"imprinter_ejectsheet";h(g,{id:m,amount:p})}return C}(),l=Math.floor(d/2e3),v=d<1,N=l===1?"":"s";return(0,e.createComponentVNode)(2,t.Table.Row,{className:v?"color-grey":"color-yellow",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"210px",children:["* ",d," of ",u]}),(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"110px",children:["(",l," sheet",N,")"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d>=2e3?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"1x",icon:"eject",onClick:function(){function C(){return s(1)}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"C",icon:"eject",onClick:function(){function C(){return s("custom")}return C}()}),d>=2e3*5?(0,e.createComponentVNode)(2,t.Button,{content:"5x",icon:"eject",onClick:function(){function C(){return s(5)}return C}()}):null,(0,e.createComponentVNode)(2,t.Button,{content:"All",icon:"eject",onClick:function(){function C(){return s(50)}return C}()})],0):null})]},m)})})})}return f}()},52662:function(T,r,n){"use strict";r.__esModule=!0,r.LatheMaterials=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheMaterials=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.data,h=k.total_materials,c=k.max_materials,i=k.max_chemicals,m=k.total_chemicals;return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__LatheMaterials",mb:"10px",children:(0,e.createComponentVNode)(2,t.Table,{width:"auto",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Material Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h}),c?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+c}):null]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Chemical Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:m}),i?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+i}):null]})]})})}return f}()},9681:function(T,r,n){"use strict";r.__esModule=!0,r.LatheMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(12644),f=n(70864),b=n(16830),y=n(42878),S=n(70497),k=["menu"];function h(u,s){if(u==null)return{};var l={};for(var v in u)if({}.hasOwnProperty.call(u,v)){if(s.includes(v))continue;l[v]=u[v]}return l}var c=t.Tabs.Tab,i=function(s,l){var v=(0,a.useBackend)(l),N=v.act,C=v.data,p=C.menu===o.MENU.LATHE?["nav_protolathe",C.submenu_protolathe]:["nav_imprinter",C.submenu_imprinter],g=p[0],V=p[1],B=s.menu,I=h(s,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,c,Object.assign({selected:V===B,onClick:function(){function L(){return N(g,{menu:B})}return L}()},I)))},m=function(s){switch(s){case o.PRINTER_MENU.MAIN:return(0,e.createComponentVNode)(2,f.LatheMainMenu);case o.PRINTER_MENU.SEARCH:return(0,e.createComponentVNode)(2,b.LatheCategory);case o.PRINTER_MENU.MATERIALS:return(0,e.createComponentVNode)(2,y.LatheMaterialStorage);case o.PRINTER_MENU.CHEMICALS:return(0,e.createComponentVNode)(2,S.LatheChemicalStorage)}},d=r.LatheMenu=function(){function u(s,l){var v=(0,a.useBackend)(l),N=v.data,C=N.menu,p=N.linked_lathe,g=N.linked_imprinter;return C===o.MENU.LATHE&&!p?(0,e.createComponentVNode)(2,t.Box,{children:"NO PROTOLATHE LINKED TO CONSOLE"}):C===o.MENU.IMPRINTER&&!g?(0,e.createComponentVNode)(2,t.Box,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,i,{menu:o.PRINTER_MENU.MAIN,icon:"bars",children:"Main Menu"}),(0,e.createComponentVNode)(2,i,{menu:o.PRINTER_MENU.MATERIALS,icon:"layer-group",children:"Materials"}),(0,e.createComponentVNode)(2,i,{menu:o.PRINTER_MENU.CHEMICALS,icon:"flask-vial",children:"Chemicals"})]}),m(N.menu===o.MENU.LATHE?N.submenu_protolathe:N.submenu_imprinter)]})}return u}()},68198:function(T,r,n){"use strict";r.__esModule=!0,r.LatheSearch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheSearch=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"Search...",onEnter:function(){function h(c,i){return k("search",{to_search:i})}return h}()})})}return f}()},81421:function(T,r,n){"use strict";r.__esModule=!0,r.LinkMenu=void 0;var e=n(89005),a=n(72253),t=n(98595),o=n(36036),f=r.LinkMenu=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.controllers;return(0,e.createComponentVNode)(2,t.Window,{width:800,height:550,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Setup Linkage",children:(0,e.createComponentVNode)(2,o.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Link"})]}),i.map(function(m){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:m.addr}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:m.net_id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Link",icon:"link",onClick:function(){function d(){return h("linktonetworkcontroller",{target_controller:m.addr})}return d}()})})]},m.addr)})]})})})})}return b}()},6256:function(T,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.SettingsMenu=function(){function y(S,k){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,b)]})}return y}(),f=function(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.sync,d=i.admin;return(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",align:"flex-start",children:(0,e.createComponentVNode)(2,t.Button,{color:"red",icon:"unlink",content:"Disconnect from Research Network",onClick:function(){function u(){c("unlink")}return u}()})})})},b=function(S,k){var h=(0,a.useBackend)(k),c=h.data,i=h.act,m=c.linked_destroy,d=c.linked_lathe,u=c.linked_imprinter;return(0,e.createComponentVNode)(2,t.Section,{title:"Linked Devices",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"link",content:"Re-sync with Nearby Devices",onClick:function(){function s(){return i("find_device")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destructive Analyzer",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",disabled:!m,content:m?"Unlink":"Undetected",onClick:function(){function s(){return i("disconnect",{item:"destroy"})}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Protolathe",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",disabled:!d,content:d?"Unlink":"Undetected",onClick:function(){function s(){i("disconnect",{item:"lathe"})}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Circuit Imprinter",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",disabled:!u,content:u?"Unlink":"Undetected",onClick:function(){function s(){return i("disconnect",{item:"imprinter"})}return s}()})})]})})}},12644:function(T,r,n){"use strict";r.__esModule=!0,r.RndConsole=r.PRINTER_MENU=r.MENU=void 0;var e=n(89005),a=n(72253),t=n(98595),o=n(36036),f=n(35840),b=n(37556),y=n(9681),S=n(81421),k=n(6256),h=n(58147),c=["menu"];function i(p,g){if(p==null)return{};var V={};for(var B in p)if({}.hasOwnProperty.call(p,B)){if(g.includes(B))continue;V[B]=p[B]}return V}var m=o.Tabs.Tab,d=r.MENU={MAIN:0,DISK:2,DESTROY:3,LATHE:4,IMPRINTER:5,SETTINGS:6},u=r.PRINTER_MENU={MAIN:0,SEARCH:1,MATERIALS:2,CHEMICALS:3},s=function(g){switch(g){case d.MAIN:return(0,e.createComponentVNode)(2,C);case d.DISK:return(0,e.createComponentVNode)(2,b.DataDiskMenu);case d.DESTROY:return(0,e.createComponentVNode)(2,h.DeconstructionMenu);case d.LATHE:case d.IMPRINTER:return(0,e.createComponentVNode)(2,y.LatheMenu);case d.SETTINGS:return(0,e.createComponentVNode)(2,k.SettingsMenu);default:return"UNKNOWN MENU"}},l=function(g,V){var B=(0,a.useBackend)(V),I=B.act,L=B.data,w=L.menu,x=g.menu,A=i(g,c);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,m,Object.assign({selected:w===x,onClick:function(){function E(){return I("nav",{menu:x})}return E}()},A)))},v=r.RndConsole=function(){function p(g,V){var B=(0,a.useBackend)(V),I=B.act,L=B.data;if(!L.linked)return(0,e.createComponentVNode)(2,S.LinkMenu);var w=L.menu,x=L.linked_destroy,A=L.linked_lathe,E=L.linked_imprinter,P=L.wait_message;return(0,e.createComponentVNode)(2,t.Window,{width:800,height:550,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole",children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,l,{icon:"flask",menu:d.MAIN,children:"Research"}),!!x&&(0,e.createComponentVNode)(2,l,{icon:"microscope",menu:d.DESTROY,children:"Analyze"}),!!A&&(0,e.createComponentVNode)(2,l,{icon:"print",menu:d.LATHE,children:"Protolathe"}),!!E&&(0,e.createComponentVNode)(2,l,{icon:"memory",menu:d.IMPRINTER,children:"Imprinter"}),(0,e.createComponentVNode)(2,l,{icon:"floppy-disk",menu:d.DISK,children:"Disk"}),(0,e.createComponentVNode)(2,l,{icon:"cog",menu:d.SETTINGS,children:"Settings"})]}),s(w),(0,e.createComponentVNode)(2,N)]})})})}return p}(),N=function(g,V){var B=(0,a.useBackend)(V),I=B.data,L=I.wait_message;return L?(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay",children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay__Wrapper",children:(0,e.createComponentVNode)(2,o.NoticeBox,{color:"black",children:L})})}):null},C=function(g,V){var B=(0,a.useBackend)(V),I=B.data,L=I.tech_levels;return(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{id:"research-levels",children:[(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Research Field"}),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Level"})]}),L.map(function(w){var x=w.id,A=w.name,E=w.desc,P=w.level,j=w.ui_icon;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"circle-info",tooltip:E})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:j})," ",A]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P})]},x)})]})})}},29205:function(T,r,n){"use strict";r.__esModule=!0,r.RndNetController=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=r.RndNetController=function(){function k(h,c){var i=(0,t.useBackend)(c),m=i.act,d=i.data,u=d.ion,s=(0,t.useLocalState)(c,"mainTabIndex",0),l=s[0],v=s[1],N=function(){function C(p){switch(p){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,S);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return C}();return(0,e.createComponentVNode)(2,f.Window,{width:900,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:l===0,onClick:function(){function C(){return v(0)}return C}(),children:"Network Management"},"ConfigPage"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"floppy-disk",selected:l===1,onClick:function(){function C(){return v(1)}return C}(),children:"Design Management"},"DesignPage")]}),N(l)]})})}return k}(),y=function(h,c){var i=(0,t.useBackend)(c),m=i.act,d=i.data,u=(0,t.useLocalState)(c,"filterType","ALL"),s=u[0],l=u[1],v=d.network_password,N=d.network_name,C=d.devices,p=[];p.push(s),s==="MSC"&&(p.push("BCK"),p.push("PGN"));var g=s==="ALL"?C:C.filter(function(V){return p.indexOf(V.dclass)>-1});return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Network Configuration",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Network Name",children:(0,e.createComponentVNode)(2,o.Button,{content:N||"Unset",selected:N,icon:"edit",onClick:function(){function V(){return m("network_name")}return V}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Network Password",children:(0,e.createComponentVNode)(2,o.Button,{content:v||"Unset",selected:v,icon:"lock",onClick:function(){function V(){return m("network_password")}return V}()})})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Connected Devices",children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="ALL",onClick:function(){function V(){return l("ALL")}return V}(),icon:"network-wired",children:"All Devices"},"AllDevices"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="SRV",onClick:function(){function V(){return l("SRV")}return V}(),icon:"server",children:"R&D Servers"},"RNDServers"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="RDC",onClick:function(){function V(){return l("RDC")}return V}(),icon:"desktop",children:"R&D Consoles"},"RDConsoles"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="MFB",onClick:function(){function V(){return l("MFB")}return V}(),icon:"industry",children:"Exosuit Fabricators"},"Mechfabs"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="MSC",onClick:function(){function V(){return l("MSC")}return V}(),icon:"microchip",children:"Miscellaneous Devices"},"Misc")]}),(0,e.createComponentVNode)(2,o.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Device Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Device ID"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Unlink"})]}),g.map(function(V){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:V.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:V.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function B(){return m("unlink_device",{dclass:V.dclass,uid:V.id})}return B}()})})]},V.id)})]})]})],4)},S=function(h,c){var i=(0,t.useBackend)(c),m=i.act,d=i.data,u=d.designs,s=(0,t.useLocalState)(c,"searchText",""),l=s[0],v=s[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Design Management",children:[(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search for designs",mb:2,onInput:function(){function N(C,p){return v(p)}return N}()}),u.filter((0,a.createSearch)(l,function(N){return N.name})).map(function(N){return(0,e.createComponentVNode)(2,o.Button.Checkbox,{fluid:!0,content:N.name,checked:!N.blacklisted,onClick:function(){function C(){return m(N.blacklisted?"unblacklist_design":"blacklist_design",{d_uid:N.uid})}return C}()},N.name)})]})}},63315:function(T,r,n){"use strict";r.__esModule=!0,r.RndServer=void 0;var e=n(89005),a=n(72253),t=n(44879),o=n(36036),f=n(98595),b=r.RndServer=function(){function k(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.active,s=d.network_name;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Section,{title:"Server Configuration",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Machine power",children:(0,e.createComponentVNode)(2,o.Button,{content:u?"On":"Off",selected:u,icon:"power-off",onClick:function(){function l(){return m("toggle_active")}return l}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Link status",children:s===null?(0,e.createComponentVNode)(2,o.Box,{color:"red",children:"Unlinked"}):(0,e.createComponentVNode)(2,o.Box,{color:"green",children:"Linked"})})]})}),s===null?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,y)]})})}return k}(),y=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.network_name;return(0,e.createComponentVNode)(2,o.Section,{title:"Network Info",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Connected network ID",children:u}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unlink",children:(0,e.createComponentVNode)(2,o.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function s(){return m("unlink")}return s}()})})]})})},S=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.controllers;return(0,e.createComponentVNode)(2,o.Section,{title:"Detected Cores",children:(0,e.createComponentVNode)(2,o.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Link"})]}),u.map(function(s){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:s.netname}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Link",icon:"link",onClick:function(){function l(){return m("link",{addr:s.addr})}return l}()})})]},s.addr)})]})})}},26109:function(T,r,n){"use strict";r.__esModule=!0,r.RobotSelfDiagnosis=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(25328),b=function(k,h){var c=k/h;return c<=.2?"good":c<=.5?"average":"bad"},y=r.RobotSelfDiagnosis=function(){function S(k,h){var c=(0,a.useBackend)(h),i=c.data,m=i.component_data;return(0,e.createComponentVNode)(2,o.Window,{width:280,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:m.map(function(d,u){return(0,e.createComponentVNode)(2,t.Section,{title:(0,f.capitalize)(d.name),children:d.installed<=0?(0,e.createComponentVNode)(2,t.NoticeBox,{m:-.5,height:3.5,color:"red",style:{"font-style":"normal"},children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,textAlign:"center",align:"center",color:"#e8e8e8",children:d.installed===-1?"Destroyed":"Missing"})})}):(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"72%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",color:b(d.brute_damage,d.max_damage),children:d.brute_damage}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",color:b(d.electronic_damage,d.max_damage),children:d.electronic_damage})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Powered",color:d.powered?"good":"bad",children:d.powered?"Yes":"No"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Enabled",color:d.status?"good":"bad",children:d.status?"Yes":"No"})]})})]})},u)})})})}return S}()},97997:function(T,r,n){"use strict";r.__esModule=!0,r.RoboticsControlConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.RoboticsControlConsole=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.can_hack,d=i.safety,u=i.show_lock_all,s=i.cyborgs,l=s===void 0?[]:s;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:460,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!u&&(0,e.createComponentVNode)(2,t.Section,{title:"Emergency Lock Down",children:[(0,e.createComponentVNode)(2,t.Button,{icon:d?"lock":"unlock",content:d?"Disable Safety":"Enable Safety",selected:d,onClick:function(){function v(){return c("arm",{})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lock",disabled:d,content:"Lock ALL Cyborgs",color:"bad",onClick:function(){function v(){return c("masslock",{})}return v}()})]}),(0,e.createComponentVNode)(2,b,{cyborgs:l,can_hack:m})]})})}return y}(),b=function(S,k){var h=S.cyborgs,c=S.can_hack,i=(0,a.useBackend)(k),m=i.act,d=i.data,u="Detonate";return d.detonate_cooldown>0&&(u+=" ("+d.detonate_cooldown+"s)"),h.length?h.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,buttons:(0,e.createFragment)([!!s.hackable&&!s.emagged&&(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){function l(){return m("hackbot",{uid:s.uid})}return l}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:s.locked_down?"unlock":"lock",color:s.locked_down?"good":"default",content:s.locked_down?"Release":"Lockdown",disabled:!d.auth,onClick:function(){function l(){return m("stopbot",{uid:s.uid})}return l}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:u,disabled:!d.auth||d.detonate_cooldown>0,color:"bad",onClick:function(){function l(){return m("killbot",{uid:s.uid})}return l}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Box,{color:s.status?"bad":s.locked_down?"average":"good",children:s.status?"Not Responding":s.locked_down?"Locked Down":"Nominal"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:(0,e.createComponentVNode)(2,t.Box,{children:s.locstring})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s.health>50?"good":"bad",value:s.health/100})}),typeof s.charge=="number"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s.charge>30?"good":"bad",value:s.charge/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Capacity",children:(0,e.createComponentVNode)(2,t.Box,{color:s.cell_capacity<3e4?"average":"good",children:s.cell_capacity})})],4)||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No Power Cell"})}),!!s.is_hacked&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safeties",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"DISABLED"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Module",children:s.module}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:(0,e.createComponentVNode)(2,t.Box,{color:s.synchronization?"default":"average",children:s.synchronization||"None"})})]})},s.uid)}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cyborg units detected within access parameters."})}},54431:function(T,r,n){"use strict";r.__esModule=!0,r.Safe=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Safe=function(){function k(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.dial,s=d.open,l=d.locked,v=d.contents;return(0,e.createComponentVNode)(2,o.Window,{theme:"safe",width:600,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving",children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"25%"}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"75%"})]}),(0,e.createComponentVNode)(2,t.Icon,{className:"Safe--engraving--arrow",name:"long-arrow-alt-down",size:"3"}),(0,e.createVNode)(1,"br"),s?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,t.Box,{as:"img",className:"Safe--dial",src:"safe_dial.png",style:{transform:"rotate(-"+3.6*u+"deg)","z-index":0}})]}),!s&&(0,e.createComponentVNode)(2,S)]})})}return k}(),b=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.dial,s=d.open,l=d.locked,v=function(C,p){return(0,e.createComponentVNode)(2,t.Button,{disabled:s||p&&!l,icon:"arrow-"+(p?"right":"left"),content:(p?"Right":"Left")+" "+C,iconRight:p,onClick:function(){function g(){return m(p?"turnleft":"turnright",{num:C})}return g}(),style:{"z-index":10}})};return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:l,icon:s?"lock":"lock-open",content:s?"Close":"Open",mb:"0.5rem",onClick:function(){function N(){return m("open")}return N}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{position:"absolute",children:[v(50),v(10),v(1)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[v(1,!0),v(10,!0),v(50,!0)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--number",children:u})]})},y=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.contents;return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--contents",overflow:"auto",children:u.map(function(s,l){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mb:"0.5rem",onClick:function(){function v(){return m("retrieve",{index:l+1})}return v}(),children:[(0,e.createComponentVNode)(2,t.Box,{as:"img",src:s.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),s.name]}),(0,e.createVNode)(1,"br")],4,s)})})},S=function(h,c){return(0,e.createComponentVNode)(2,t.Section,{className:"Safe--help",title:"Safe opening instructions (because you all keep forgetting)",children:[(0,e.createComponentVNode)(2,t.Box,{children:["1. Turn the dial left to the first number.",(0,e.createVNode)(1,"br"),"2. Turn the dial right to the second number.",(0,e.createVNode)(1,"br"),"3. Continue repeating this process for each number, switching between left and right each time.",(0,e.createVNode)(1,"br"),"4. Open the safe."]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:"To lock fully, turn the dial to the left after closing the safe."})]})}},29740:function(T,r,n){"use strict";r.__esModule=!0,r.SatelliteControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SatelliteControl=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.satellites,m=c.notice,d=c.meteor_shield,u=c.meteor_shield_coverage,s=c.meteor_shield_coverage_max,l=c.meteor_shield_coverage_percentage;return(0,e.createComponentVNode)(2,o.Window,{width:475,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[d&&(0,e.createComponentVNode)(2,t.Section,{title:"Station Shield Coverage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:l>=100?"good":"average",value:u,maxValue:s,children:[l," %"]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Satellite Network Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alert",color:"red",children:c.notice}),i.map(function(v){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"#"+v.id,children:[v.mode," ",(0,e.createComponentVNode)(2,t.Button,{content:v.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){function N(){return h("toggle",{id:v.id})}return N}()})]},v.id)})]})})]})})}return b}()},44162:function(T,r,n){"use strict";r.__esModule=!0,r.SecureStorage=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=n(98595),b=n(36352),y=n(92986),S=r.SecureStorage=function(){function i(m,d){return(0,e.createComponentVNode)(2,f.Window,{theme:"securestorage",height:500,width:280,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,h)})})})})}return i}(),k=function(m,d){var u=(0,t.useBackend)(d),s=u.act,l=window.event?m.which:m.keyCode;if(l===y.KEY_ENTER){m.preventDefault(),s("keypad",{digit:"E"});return}if(l===y.KEY_ESCAPE){m.preventDefault(),s("keypad",{digit:"C"});return}if(l===y.KEY_BACKSPACE){m.preventDefault(),s("backspace");return}if(l>=y.KEY_0&&l<=y.KEY_9){m.preventDefault(),s("keypad",{digit:l-y.KEY_0});return}if(l>=y.KEY_NUMPAD_0&&l<=y.KEY_NUMPAD_9){m.preventDefault(),s("keypad",{digit:l-y.KEY_NUMPAD_0});return}},h=function(m,d){var u=(0,t.useBackend)(d),s=u.act,l=u.data,v=l.locked,N=l.no_passcode,C=l.emagged,p=l.user_entered_code,g=[["1","2","3"],["4","5","6"],["7","8","9"],["C","0","E"]],V=N?"":v?"bad":"good";return(0,e.createComponentVNode)(2,o.Section,{fill:!0,onKeyDown:function(){function B(I){return k(I,d)}return B}(),children:[(0,e.createComponentVNode)(2,o.Stack.Item,{height:7.3,children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["SecureStorage__displayBox","SecureStorage__displayBox--"+V]),height:"100%",children:C?"ERROR":p})}),(0,e.createComponentVNode)(2,o.Table,{children:g.map(function(B){return(0,e.createComponentVNode)(2,b.TableRow,{children:B.map(function(I){return(0,e.createComponentVNode)(2,b.TableCell,{children:(0,e.createComponentVNode)(2,c,{number:I})},I)})},B[0])})})]})},c=function(m,d){var u=(0,t.useBackend)(d),s=u.act,l=u.data,v=m.number;return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,bold:!0,mb:"6px",content:v,textAlign:"center",fontSize:"60px",lineHeight:1.25,width:"80px",className:(0,a.classes)(["SecureStorage__Button","SecureStorage__Button--keypad","SecureStorage__Button--"+v]),onClick:function(){function N(){return s("keypad",{digit:v})}return N}()})}},6272:function(T,r,n){"use strict";r.__esModule=!0,r.SecurityRecords=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=n(3939),y=n(321),S=n(5485),k=n(22091),h={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},c=function(p,g){(0,b.modalOpen)(p,"edit",{field:g.edit,value:g.value})},i=r.SecurityRecords=function(){function C(p,g){var V=(0,t.useBackend)(g),B=V.act,I=V.data,L=I.loginState,w=I.currentPage,x;if(L.logged_in)w===1?x=(0,e.createComponentVNode)(2,d):w===2&&(x=(0,e.createComponentVNode)(2,l));else return(0,e.createComponentVNode)(2,f.Window,{theme:"security",width:800,height:900,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});return(0,e.createComponentVNode)(2,f.Window,{theme:"security",width:800,height:900,children:[(0,e.createComponentVNode)(2,b.ComplexModal),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,k.TemporaryNotice),(0,e.createComponentVNode)(2,m),x]})})]})}return C}(),m=function(p,g){var V=(0,t.useBackend)(g),B=V.act,I=V.data,L=I.currentPage,w=I.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:L===1,onClick:function(){function x(){return B("page",{page:1})}return x}(),children:"List Records"}),L===2&&w&&!w.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:L===2,children:["Record: ",w.fields[0].value]})]})})},d=function(p,g){var V=(0,t.useBackend)(g),B=V.act,I=V.data,L=I.records,w=(0,t.useLocalState)(g,"searchText",""),x=w[0],A=w[1],E=(0,t.useLocalState)(g,"sortId","name"),P=E[0],j=E[1],M=(0,t.useLocalState)(g,"sortOrder",!0),R=M[0],D=M[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,s)}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"SecurityRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,u,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,u,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,u,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,u,{id:"fingerprint",children:"Fingerprint"}),(0,e.createComponentVNode)(2,u,{id:"status",children:"Criminal Status"})]}),L.filter((0,a.createSearch)(x,function(W){return W.name+"|"+W.id+"|"+W.rank+"|"+W.fingerprint+"|"+W.status})).sort(function(W,_){var U=R?1:-1;return W[P].localeCompare(_[P])*U}).map(function(W){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"SecurityRecords__listRow--"+h[W.status],onClick:function(){function _(){return B("view",{uid_gen:W.uid_gen,uid_sec:W.uid_sec})}return _}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",W.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:W.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:W.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:W.fingerprint}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:W.status})]},W.id)})]})})})],4)},u=function(p,g){var V=(0,t.useLocalState)(g,"sortId","name"),B=V[0],I=V[1],L=(0,t.useLocalState)(g,"sortOrder",!0),w=L[0],x=L[1],A=p.id,E=p.children;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:B!==A&&"transparent",fluid:!0,onClick:function(){function P(){B===A?x(!w):(I(A),x(!0))}return P}(),children:[E,B===A&&(0,e.createComponentVNode)(2,o.Icon,{name:w?"sort-up":"sort-down",ml:"0.25rem;"})]})})})},s=function(p,g){var V=(0,t.useBackend)(g),B=V.act,I=V.data,L=I.isPrinting,w=(0,t.useLocalState)(g,"searchText",""),x=w[0],A=w[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:"0.25rem",content:"New Record",icon:"plus",onClick:function(){function E(){return B("new_general")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:L,icon:L?"spinner":"print",iconSpin:!!L,content:"Print Cell Log",onClick:function(){function E(){return(0,b.modalOpen)(g,"print_cell_log")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by Name, ID, Assignment, Fingerprint, Status",fluid:!0,onInput:function(){function E(P,j){return A(j)}return E}()})})]})},l=function(p,g){var V=(0,t.useBackend)(g),B=V.act,I=V.data,L=I.isPrinting,w=I.general,x=I.security;return!w||!w.fields?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"General records lost!"}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:L,icon:L?"spinner":"print",iconSpin:!!L,content:"Print Record",onClick:function(){function A(){return B("print_record")}return A}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",tooltip:"WARNING: This will also delete the Security and Medical records associated with this crew member!",tooltipPosition:"bottom-start",content:"Delete Record",onClick:function(){function A(){return B("delete_general")}return A}()})],4),children:(0,e.createComponentVNode)(2,v)})}),!x||!x.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function A(){return B("new_security")}return A}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Security records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:x.empty,content:"Delete Record",onClick:function(){function A(){return B("delete_security")}return A}()}),children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:x.fields.map(function(A,E){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:A.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(A.value),!!A.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:A.line_break?"1rem":"initial",onClick:function(){function P(){return c(g,A)}return P}()})]},E)})})})})}),(0,e.createComponentVNode)(2,N)],4)],0)},v=function(p,g){var V=(0,t.useBackend)(g),B=V.data,I=B.general;return!I||!I.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:I.fields.map(function(L,w){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:L.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(""+L.value),!!L.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:L.line_break?"1rem":"initial",onClick:function(){function x(){return c(g,L)}return x}()})]},w)})})}),!!I.has_photos&&I.photos.map(function(L,w){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:L,style:{width:"96px","margin-top":"5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",w+1]},w)})]})},N=function(p,g){var V=(0,t.useBackend)(g),B=V.act,I=V.data,L=I.security;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function w(){return(0,b.modalOpen)(g,"comment_add")}return w}()}),children:L.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):L.comments.map(function(w,x){return(0,e.createComponentVNode)(2,o.Box,{preserveWhitespace:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:w.header||"Auto-generated"}),(0,e.createVNode)(1,"br"),w.text||w,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function A(){return B("comment_delete",{id:x+1})}return A}()})]},x)})})})}},5099:function(T,r,n){"use strict";r.__esModule=!0,r.SeedExtractor=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=n(98595),b=n(3939);function y(u,s){var l=typeof Symbol!="undefined"&&u[Symbol.iterator]||u["@@iterator"];if(l)return(l=l.call(u)).next.bind(l);if(Array.isArray(u)||(l=S(u))||s&&u&&typeof u.length=="number"){l&&(u=l);var v=0;return function(){return v>=u.length?{done:!0}:{done:!1,value:u[v++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(u,s){if(u){if(typeof u=="string")return k(u,s);var l={}.toString.call(u).slice(8,-1);return l==="Object"&&u.constructor&&(l=u.constructor.name),l==="Map"||l==="Set"?Array.from(u):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?k(u,s):void 0}}function k(u,s){(s==null||s>u.length)&&(s=u.length);for(var l=0,v=Array(s);l=x},N=function(w,x){return w<=x},C=s.split(" "),p=[],g=function(){var w=I.value,x=w.split(":");if(x.length===0)return 0;if(x.length===1)return p.push(function(P){return(P.name+" ("+P.variant+")").toLocaleLowerCase().includes(x[0].toLocaleLowerCase())}),0;if(x.length>2)return{v:function(){function P(j){return!1}return P}()};var A,E=l;if(x[1][x[1].length-1]==="-"?(E=N,A=Number(x[1].substring(0,x[1].length-1))):x[1][x[1].length-1]==="+"?(E=v,A=Number(x[1].substring(0,x[1].length-1))):A=Number(x[1]),isNaN(A))return{v:function(){function P(j){return!1}return P}()};switch(x[0].toLocaleLowerCase()){case"l":case"life":case"lifespan":p.push(function(P){return E(P.lifespan,A)});break;case"e":case"end":case"endurance":p.push(function(P){return E(P.endurance,A)});break;case"m":case"mat":case"maturation":p.push(function(P){return E(P.maturation,A)});break;case"pr":case"prod":case"production":p.push(function(P){return E(P.production,A)});break;case"y":case"yield":p.push(function(P){return E(P.yield,A)});break;case"po":case"pot":case"potency":p.push(function(P){return E(P.potency,A)});break;case"s":case"stock":case"c":case"count":case"a":case"amount":p.push(function(P){return E(P.amount,A)});break;default:return{v:function(){function P(j){return!1}return P}()}}},V,B=y(C),I;!(I=B()).done;)if(V=g(),V!==0&&V)return V.v;return function(L){for(var w=0,x=p;w=1?Number(E):1)}return x}()})]})]})}},2916:function(T,r,n){"use strict";r.__esModule=!0,r.ShuttleConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ShuttleConsole=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:c.status?c.status:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Missing"})}),!!c.shuttle&&(!!c.docking_ports_len&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Send to ",children:c.docking_ports.map(function(i){return(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",content:i.name,onClick:function(){function m(){return h("move",{move:i.id})}return m}()},i.name)})})||(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:"red",children:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Locked"})}),!!c.admin_controlled&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorization",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-circle",content:"Request Authorization",disabled:!c.status,onClick:function(){function i(){return h("request")}return i}()})})],0))]})})})})}return b}()},39401:function(T,r,n){"use strict";r.__esModule=!0,r.ShuttleManipulator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.ShuttleManipulator=function(){function k(h,c){var i=(0,a.useLocalState)(c,"tabIndex",0),m=i[0],d=i[1],u=function(){function s(l){switch(l){case 0:return(0,e.createComponentVNode)(2,b);case 1:return(0,e.createComponentVNode)(2,y);case 2:return(0,e.createComponentVNode)(2,S);default:return"WE SHOULDN'T BE HERE!"}}return s}();return(0,e.createComponentVNode)(2,o.Window,{width:650,height:700,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===0,onClick:function(){function s(){return d(0)}return s}(),icon:"info-circle",children:"Status"},"Status"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===1,onClick:function(){function s(){return d(1)}return s}(),icon:"file-import",children:"Templates"},"Templates"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===2,onClick:function(){function s(){return d(2)}return s}(),icon:"tools",children:"Modification"},"Modification")]}),u(m)]})})})}return k}(),b=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.shuttles;return(0,e.createComponentVNode)(2,t.Box,{children:u.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID",children:s.id}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Timer",children:s.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Mode",children:s.mode}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:s.status}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function l(){return m("jump_to",{type:"mobile",id:s.id})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Fast Travel",icon:"fast-forward",onClick:function(){function l(){return m("fast_travel",{id:s.id})}return l}()})]})]})},s.name)})})},y=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.templates_tabs,s=d.existing_shuttle,l=d.templates;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:u.map(function(v){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===s.id,icon:"file",onClick:function(){function N(){return m("select_template_category",{cat:v})}return N}(),children:v},v)})}),!!s&&l[s.id].templates.map(function(v){return(0,e.createComponentVNode)(2,t.Section,{title:v.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[v.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:v.description}),v.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:v.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Load Template",icon:"download",onClick:function(){function N(){return m("select_template",{shuttle_id:v.shuttle_id})}return N}()})})]})},v.name)})]})},S=function(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.existing_shuttle,s=d.selected;return(0,e.createComponentVNode)(2,t.Box,{children:[u?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: "+u.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:u.status}),u.timer&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Timer",children:u.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function l(){return m("jump_to",{type:"mobile",id:u.id})}return l}()})})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: None"}),s?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: "+s.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:s.description}),s.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:s.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Preview",icon:"eye",onClick:function(){function l(){return m("preview",{shuttle_id:s.shuttle_id})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Load",icon:"download",onClick:function(){function l(){return m("load",{shuttle_id:s.shuttle_id})}return l}()})]})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: None"})]})}},88284:function(T,r,n){"use strict";r.__esModule=!0,r.Sleeper=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=[["good","Alive"],["average","Critical"],["bad","DEAD"]],y=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},k=["bad","average","average","good","average","average","bad"],h=r.Sleeper=function(){function l(v,N){var C=(0,t.useBackend)(N),p=C.act,g=C.data,V=g.hasOccupant,B=V?(0,e.createComponentVNode)(2,c):(0,e.createComponentVNode)(2,s);return(0,e.createComponentVNode)(2,f.Window,{width:550,height:760,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:B}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,d)})]})})})}return l}(),c=function(v,N){var C=(0,t.useBackend)(N),p=C.act,g=C.data,V=g.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,u)],4)},i=function(v,N){var C=(0,t.useBackend)(N),p=C.act,g=C.data,V=g.occupant,B=g.auto_eject_dead;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:"Auto-eject if dead:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{icon:B?"toggle-on":"toggle-off",selected:B,content:B?"On":"Off",onClick:function(){function I(){return p("auto_eject_dead_"+(B?"off":"on"))}return I}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"Eject",onClick:function(){function I(){return p("ejectify")}return I}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:V.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:V.maxHealth,value:V.health/V.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.round)(V.health,0)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:b[V.stat][0],children:b[V.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:V.maxTemp,value:V.bodyTemperature/V.maxTemp,color:k[V.temperatureSuitability+3],children:[(0,a.round)(V.btCelsius,0),"\xB0C,",(0,a.round)(V.btFaren,0),"\xB0F"]})}),!!V.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:V.bloodMax,value:V.bloodLevel/V.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[V.bloodPercent,"%, ",V.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[V.pulse," BPM"]})],4)]})})},m=function(v,N){var C=(0,t.useBackend)(N),p=C.data,g=p.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Damage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:y.map(function(V,B){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:V[0],children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:g[V[1]]/100,ranges:S,children:(0,a.round)(g[V[1]],0)},B)},B)})})})},d=function(v,N){var C=(0,t.useBackend)(N),p=C.act,g=C.data,V=g.hasOccupant,B=g.isBeakerLoaded,I=g.beakerMaxSpace,L=g.beakerFreeSpace,w=g.dialysis,x=w&&L>0;return(0,e.createComponentVNode)(2,o.Section,{title:"Dialysis",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!B||L<=0||!V,selected:x,icon:x?"toggle-on":"toggle-off",content:x?"Active":"Inactive",onClick:function(){function A(){return p("togglefilter")}return A}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B,icon:"eject",content:"Eject",onClick:function(){function A(){return p("removebeaker")}return A}()})],4),children:B?(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:I,value:L/I,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[L,"u"]})})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No beaker loaded."})})},u=function(v,N){var C=(0,t.useBackend)(N),p=C.act,g=C.data,V=g.occupant,B=g.chemicals,I=g.maxchem,L=g.amounts;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Chemicals",children:B.map(function(w,x){var A="",E;return w.overdosing?(A="bad",E=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):w.od_warning&&(A="average",E=(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle"}),"\xA0 Close to overdosing"]})),(0,e.createComponentVNode)(2,o.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{title:w.title,level:"3",mx:"0",lineHeight:"18px",buttons:E,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:I,value:w.occ_amount/I,color:A,title:"Amount of chemicals currently inside the occupant / Total amount injectable by this machine",mr:"0.5rem",children:[w.pretty_amount,"/",I,"u"]}),L.map(function(P,j){return(0,e.createComponentVNode)(2,o.Button,{disabled:!w.injectable||w.occ_amount+P>I||V.stat===2,icon:"syringe",content:"Inject "+P+"u",title:"Inject "+P+"u of "+w.title+" into the occupant",mb:"0",height:"19px",onClick:function(){function M(){return p("chemical",{chemid:w.id,amount:P})}return M}()},j)})]})})},x)})})},s=function(v,N){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},21597:function(T,r,n){"use strict";r.__esModule=!0,r.SlotMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SlotMachine=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data;if(c.money===null)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:90,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"Could not scan your card or could not find account!"}),(0,e.createComponentVNode)(2,t.Box,{children:"Please wear or hold your ID and try again."})]})})});var i;return c.plays===1?i=c.plays+" player has tried their luck today!":i=c.plays+" players have tried their luck today!",(0,e.createComponentVNode)(2,o.Window,{width:300,height:151,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{lineHeight:2,children:i}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Credits Remaining",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:c.money})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"10 credits to spin",children:(0,e.createComponentVNode)(2,t.Button,{icon:"coins",disabled:c.working,content:c.working?"Spinning...":"Spin",onClick:function(){function m(){return h("spin")}return m}()})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,lineHeight:2,color:c.resultlvl,children:c.result})]})})})}return b}()},46348:function(T,r,n){"use strict";r.__esModule=!0,r.Smartfridge=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Smartfridge=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.secure,m=c.can_dry,d=c.drying,u=c.contents;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!i&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Secure Access: Please have your identification ready."}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:m?"Drying rack":"Contents",buttons:!!m&&(0,e.createComponentVNode)(2,t.Button,{width:4,icon:d?"power-off":"times",content:d?"On":"Off",selected:d,onClick:function(){function s(){return h("drying")}return s}()}),children:[!u&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cookie-bite",size:5,color:"brown"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No products loaded."]})}),!!u&&u.slice().sort(function(s,l){return s.display_name.localeCompare(l.display_name)}).map(function(s){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"55%",children:s.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"25%",children:["(",s.quantity," in stock)"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:13,children:[(0,e.createComponentVNode)(2,t.Button,{width:3,icon:"arrow-down",tooltip:"Dispense one.",content:"1",onClick:function(){function l(){return h("vend",{index:s.vend,amount:1})}return l}()}),(0,e.createComponentVNode)(2,t.NumberInput,{width:"40px",minValue:0,value:0,maxValue:s.quantity,step:1,stepPixelSize:3,onChange:function(){function l(v,N){return h("vend",{index:s.vend,amount:N})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"arrow-down",content:"All",tooltip:"Dispense all.",tooltipPosition:"bottom-start",onClick:function(){function l(){return h("vend",{index:s.vend,amount:s.quantity})}return l}()})]})]},s)})]})]})})})}return b}()},86162:function(T,r,n){"use strict";r.__esModule=!0,r.Smes=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(49968),f=n(98595),b=1e3,y=r.Smes=function(){function S(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.capacityPercent,u=m.capacity,s=m.charge,l=m.inputAttempt,v=m.inputting,N=m.inputLevel,C=m.inputLevelMax,p=m.inputAvailable,g=m.outputPowernet,V=m.outputAttempt,B=m.outputting,I=m.outputLevel,L=m.outputLevelMax,w=m.outputUsed,x=d>=100&&"good"||v&&"average"||"bad",A=B&&"good"||s>0&&"average"||"bad";return(0,e.createComponentVNode)(2,f.Window,{width:340,height:345,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stored Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:d*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:l?"sync-alt":"times",selected:l,onClick:function(){function E(){return i("tryinput")}return E}(),children:l?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:x,children:d>=100&&"Fully Charged"||v&&"Charging"||"Not Charging"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Input",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:N===0,onClick:function(){function E(){return i("input",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:N===0,onClick:function(){function E(){return i("input",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:N/b,fillValue:p/b,minValue:0,maxValue:C/b,step:5,stepPixelSize:4,format:function(){function E(P){return(0,o.formatPower)(P*b,1)}return E}(),onChange:function(){function E(P,j){return i("input",{target:j*b})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:N===C,onClick:function(){function E(){return i("input",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:N===C,onClick:function(){function E(){return i("input",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available",children:(0,o.formatPower)(p)})]})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Output Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:V?"power-off":"times",selected:V,onClick:function(){function E(){return i("tryoutput")}return E}(),children:V?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:A,children:g?B?"Sending":s>0?"Not Sending":"No Charge":"Not Connected"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Output",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:I===0,onClick:function(){function E(){return i("output",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:I===0,onClick:function(){function E(){return i("output",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:I/b,minValue:0,maxValue:L/b,step:5,stepPixelSize:4,format:function(){function E(P){return(0,o.formatPower)(P*b,1)}return E}(),onChange:function(){function E(P,j){return i("output",{target:j*b})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:I===L,onClick:function(){function E(){return i("output",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:I===L,onClick:function(){function E(){return i("output",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(w)})]})})]})})})}return S}()},63584:function(T,r,n){"use strict";r.__esModule=!0,r.SolarControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SolarControl=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=0,m=1,d=2,u=c.generated,s=c.generated_ratio,l=c.tracking_state,v=c.tracking_rate,N=c.connected_panels,C=c.connected_tracker,p=c.cdir,g=c.direction,V=c.rotating_direction;return(0,e.createComponentVNode)(2,o.Window,{width:490,height:277,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Scan for new hardware",onClick:function(){function B(){return h("refresh")}return B}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar tracker",color:C?"good":"bad",children:C?"OK":"N/A"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar panels",color:N>0?"good":"bad",children:N})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power output",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:s,children:u+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[p,"\xB0 (",g,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[l===d&&(0,e.createComponentVNode)(2,t.Box,{children:" Automated "}),l===m&&(0,e.createComponentVNode)(2,t.Box,{children:[" ",v,"\xB0/h (",V,")"," "]}),l===i&&(0,e.createComponentVNode)(2,t.Box,{children:" Tracker offline "})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[l!==d&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",step:1,stepPixelSize:1,minValue:0,maxValue:359,value:p,onDrag:function(){function B(I,L){return h("cdir",{cdir:L})}return B}()}),l===d&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker status",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:l===i,onClick:function(){function B(){return h("track",{track:i})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:l===m,onClick:function(){function B(){return h("track",{track:m})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:l===d,disabled:!C,onClick:function(){function B(){return h("track",{track:d})}return B}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[l===m&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:v,format:function(){function B(I){var L=Math.sign(I)>0?"+":"-";return L+Math.abs(I)}return B}(),onDrag:function(){function B(I,L){return h("tdir",{tdir:L})}return B}()}),l===i&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Tracker offline "}),l===d&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]})]})})]})})}return b}()},38096:function(T,r,n){"use strict";r.__esModule=!0,r.SpawnersMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SpawnersMenu=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.spawners||[];return(0,e.createComponentVNode)(2,o.Window,{width:700,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{children:i.map(function(m){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:m.name+" ("+m.amount_left+" left)",level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Jump",onClick:function(){function d(){return h("jump",{ID:m.uids})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){function d(){return h("spawn",{ID:m.uids})}return d}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:m.desc}),!!m.fluff&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:m.fluff}),!!m.important_info&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:m.important_info})]},m.name)})})})})}return b}()},30586:function(T,r,n){"use strict";r.__esModule=!0,r.SpecMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SpecMenu=function(){function h(c,i){return(0,e.createComponentVNode)(2,o.Window,{width:1100,height:600,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,k)]})})})}return h}(),b=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Hemomancer",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function l(){return d("hemomancer")}return l}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on blood magic and the manipulation of blood around you.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Vampiric claws",16),(0,e.createTextVNode)(": Unlocked at 150 blood, allows you to summon a robust pair of claws that attack rapidly, drain a targets blood, and heal you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood Barrier",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to select two turfs and create a wall between them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood tendrils",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to slow everyone in a targeted 3x3 area after a short delay.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Sanguine pool",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to travel at high speeds for a short duration. Doing this leaves behind blood splatters. You can move through anything but walls and space when doing this.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Predator senses",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to sniff out anyone within the same sector as you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood eruption",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to manipulate all nearby blood splatters, in 4 tiles around you, into spikes that impale anyone stood ontop of them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"The blood bringers rite",16),(0,e.createTextVNode)(": When toggled you will rapidly drain the blood of everyone who is nearby and use it to heal yourself slightly and remove any incapacitating effects rapidly.")],4)]})})},y=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Umbrae",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function l(){return d("umbrae")}return l}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on darkness, stealth ambushing and mobility.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Cloak of darkness",16),(0,e.createTextVNode)(": Unlocked at 150 blood, when toggled, allows you to become nearly invisible and move rapidly when in dark regions. While active, burn damage is more effective against you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow anchor",16),(0,e.createTextVNode)(": Unlocked at 250 blood, casting it will create an anchor at the cast location after a short delay. If you then cast the ability again, you are teleported back to the anchor. If you do not cast again within 2 minutes, you will do a fake recall, causing a clone to appear at the anchor and making yourself invisible. It will not teleport you between Z levels.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow snare",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to summon a trap that when crossed blinds and ensnares the victim. This trap is hard to see, but withers in the light.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Dark passage",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to target a turf on screen, you will then teleport to that turf.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Extinguish",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to snuff out nearby electronic light sources and glowshrooms.")],4),(0,e.createVNode)(1,"b",null,"Shadow boxing",16),": Unlocked at 800 blood, sends out shadow clones towards a target, damaging them while you remain in range.",(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Eternal darkness",16),(0,e.createTextVNode)(": When toggled, you consume yourself in unholy darkness, only the strongest of lights will be able to see through it. Inside the radius, nearby creatures will freeze and energy projectiles will deal less damage.")],4),(0,e.createVNode)(1,"p",null,"In addition, you also gain permanent X-ray vision.",16)]})})},S=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Gargantua",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function l(){return d("gargantua")}return l}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on tenacity and melee damage.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rejuvenate",16),(0,e.createTextVNode)(": Will heal you at an increased rate based on how much damage you have taken.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell",16),(0,e.createTextVNode)(": Unlocked at 150 blood, increases your resistance to physical damage, stuns and stamina for 30 seconds. While it is active you cannot fire guns.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Seismic stomp",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to stomp the ground to send out a shockwave, knocking people back.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood rush",16),(0,e.createTextVNode)(": Unlocked at 250 blood, gives you a short speed boost when cast.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell II",16),(0,e.createTextVNode)(": Unlocked at 400 blood, increases all melee damage by 10.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Overwhelming force",16),(0,e.createTextVNode)(": Unlocked at 600 blood, when toggled, if you bump into a door that you do not have access to, it will force it open. In addition, you cannot be pushed or pulled while it is active.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Demonic grasp",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to send out a demonic hand to snare someone. If you are on disarm/grab intent you will push/pull the target, respectively.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Charge",16),(0,e.createTextVNode)(": Unlocked at 800 blood, you gain the ability to charge at a target. Destroying and knocking back pretty much anything you collide with.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Desecrated Duel",16),(0,e.createTextVNode)(": Leap towards a visible enemy, creating an arena upon landing, infusing you with increased regeneration, and granting you resistance to internal damages.")],4)]})})},k=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Dantalion",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function l(){return d("dantalion")}return l}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on thralling and illusions.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Enthrall",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Thralls your target to your will, requires you to stand still. Does not work on mindshielded or already enthralled/mindslaved people.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall cap",16),(0,e.createTextVNode)(": You can only thrall a max of 1 person at a time. This can be increased at 400 blood, 600 blood and at full power to a max of 4 thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall commune",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Allows you to talk to your thralls, your thralls can talk back in the same way.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Subspace swap",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to swap positions with a target.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Pacify",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to pacify a target, preventing them from causing harm for 40 seconds.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Decoy",16),(0,e.createTextVNode)(": Unlocked at 400 blood, briefly turn invisible and send out an illusion to fool everyone nearby.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rally thralls",16),(0,e.createTextVNode)(": Unlocked at 600 blood, removes all incapacitating effects from nearby thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood bond",16),(0,e.createTextVNode)(": Unlocked at 800 blood, when cast, all nearby thralls become linked to you. If anyone in the network takes damage, it is shared equally between everyone in the network. If a thrall goes out of range, they will be removed from the network.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Mass Hysteria",16),(0,e.createTextVNode)(": Casts a powerful illusion that blinds and then makes everyone nearby perceive others as random animals.")],4)]})})}},95152:function(T,r,n){"use strict";r.__esModule=!0,r.StackCraft=void 0;var e=n(89005),a=n(72253),t=n(88510),o=n(64795),f=n(25328),b=n(98595),y=n(36036),S=r.StackCraft=function(){function s(){return(0,e.createComponentVNode)(2,b.Window,{width:350,height:500,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,k)})})}return s}(),k=function(l,v){var N=(0,a.useBackend)(v),C=N.data,p=C.amount,g=C.recipes,V=(0,a.useLocalState)(v,"searchText",""),B=V[0],I=V[1],L=h(g,(0,f.createSearch)(B)),w=(0,a.useLocalState)(v,"",!1),x=w[0],A=w[1];return(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,title:"Amount: "+p,buttons:(0,e.createFragment)([x&&(0,e.createComponentVNode)(2,y.Input,{width:12.5,value:B,placeholder:"Find recipe",onInput:function(){function E(P,j){return I(j)}return E}()}),(0,e.createComponentVNode)(2,y.Button,{ml:.5,tooltip:"Search",tooltipPosition:"bottom-end",icon:"magnifying-glass",selected:x,onClick:function(){function E(){return A(!x)}return E}()})],0),children:L?(0,e.createComponentVNode)(2,d,{recipes:L}):(0,e.createComponentVNode)(2,y.NoticeBox,{children:"No recipes found!"})})},h=function s(l,v){var N=(0,o.flow)([(0,t.map)(function(C){var p=C[0],g=C[1];return c(g)?v(p)?C:[p,s(g,v)]:v(p)?C:[p,void 0]}),(0,t.filter)(function(C){var p=C[0],g=C[1];return g!==void 0}),(0,t.sortBy)(function(C){var p=C[0],g=C[1];return p}),(0,t.sortBy)(function(C){var p=C[0],g=C[1];return!c(g)}),(0,t.reduce)(function(C,p){var g=p[0],V=p[1];return C[g]=V,C},{})])(Object.entries(l));return Object.keys(N).length?N:void 0},c=function(l){return l.uid===void 0},i=function(l,v){return l.required_amount>v?0:Math.floor(v/l.required_amount)},m=function(l,v){for(var N=(0,a.useBackend)(v),C=N.act,p=l.recipe,g=l.max_possible_multiplier,V=Math.min(g,Math.floor(p.max_result_amount/p.result_amount)),B=[5,10,25],I=[],L=function(){var E=x[w];V>=E&&I.push((0,e.createComponentVNode)(2,y.Button,{bold:!0,translucent:!0,fontSize:.85,width:"32px",content:E*p.result_amount+"x",onClick:function(){function P(){return C("make",{recipe_uid:p.uid,multiplier:E})}return P}()}))},w=0,x=B;w1?I+"x ":"",P=L>1?"s":"",j=""+E+V,M=L+" sheet"+P,R=i(B,g);return(0,e.createComponentVNode)(2,y.ImageButton,{fluid:!0,base64:A,imageSize:32,disabled:!R,tooltip:M,buttons:w>1&&R>1&&(0,e.createComponentVNode)(2,m,{recipe:B,max_possible_multiplier:R}),onClick:function(){function D(){return C("make",{recipe_uid:x,multiplier:1})}return D}(),children:j})}},38307:function(T,r,n){"use strict";r.__esModule=!0,r.StationAlertConsoleContent=r.StationAlertConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.StationAlertConsole=function(){function y(){return(0,e.createComponentVNode)(2,o.Window,{width:325,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,b)})})}return y}(),b=r.StationAlertConsoleContent=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.data,i=c.alarms||[],m=i.Fire||[],d=i.Atmosphere||[],u=i.Power||[];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Fire Alarms",children:(0,e.createVNode)(1,"ul",null,[m.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),m.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Atmospherics Alarms",children:(0,e.createVNode)(1,"ul",null,[d.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),d.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Alarms",children:(0,e.createVNode)(1,"ul",null,[u.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),u.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)})],4)}return y}()},96091:function(T,r,n){"use strict";r.__esModule=!0,r.StationTraitsPanel=void 0;var e=n(89005),a=n(88510),t=n(42127),o=n(72253),f=n(36036),b=n(98595),y=function(c){return c[c.SetupFutureStationTraits=0]="SetupFutureStationTraits",c[c.ViewStationTraits=1]="ViewStationTraits",c}(y||{}),S=function(i,m){var d=(0,o.useBackend)(m),u=d.act,s=d.data,l=s.future_station_traits,v=(0,o.useLocalState)(m,"selectedFutureTrait",null),N=v[0],C=v[1],p=Object.fromEntries(s.valid_station_traits.map(function(V){return[V.name,V.path]})),g=Object.keys(p);return g.sort(),(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Dropdown,{displayText:!N&&"Select trait to add...",onSelected:C,options:g,selected:N,width:"100%"})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"green",icon:"plus",onClick:function(){function V(){if(N){var B=p[N],I=[B];if(l){var L,w=l.map(function(x){return x.path});if(w.indexOf(B)!==-1)return;I=(L=I).concat.apply(L,w)}u("setup_future_traits",{station_traits:I})}}return V}(),children:"Add"})})]}),(0,e.createComponentVNode)(2,f.Divider),Array.isArray(l)?l.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:l.map(function(V){return(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:V.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"red",icon:"times",onClick:function(){function B(){u("setup_future_traits",{station_traits:(0,a.filterMap)(l,function(I){if(I.path!==V.path)return I.path})})}return B}(),children:"Delete"})})]})},V.path)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Box,{children:"No station traits will run next round."}),(0,e.createComponentVNode)(2,f.Button,{mt:1,fluid:!0,color:"good",icon:"times",tooltip:"The next round will roll station traits randomly, just like normal",onClick:function(){function V(){return u("clear_future_traits")}return V}(),children:"Run Station Traits Normally"})]}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Box,{children:"No future station traits are planned."}),(0,e.createComponentVNode)(2,f.Button,{mt:1,fluid:!0,color:"red",icon:"times",onClick:function(){function V(){return u("setup_future_traits",{station_traits:[]})}return V}(),children:"Prevent station traits from running next round"})]})]})},k=function(i,m){var d=(0,o.useBackend)(m),u=d.act,s=d.data;return s.current_traits.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:s.current_traits.map(function(l){return(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:l.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button.Confirm,{content:"Revert",color:"red",disabled:s.too_late_to_revert||!l.can_revert,tooltip:!l.can_revert&&"This trait is not revertable."||s.too_late_to_revert&&"It's too late to revert station traits, the round has already started.",icon:"times",onClick:function(){function v(){return u("revert",{ref:l.ref})}return v}()})})]})},l.ref)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:"There are no active station traits."})},h=r.StationTraitsPanel=function(){function c(i,m){var d=(0,o.useLocalState)(m,"station_traits_tab",y.ViewStationTraits),u=d[0],s=d[1],l;switch(u){case y.SetupFutureStationTraits:l=(0,e.createComponentVNode)(2,S);break;case y.ViewStationTraits:l=(0,e.createComponentVNode)(2,k);break;default:(0,t.exhaustiveCheck)(u)}return(0,e.createComponentVNode)(2,b.Window,{title:"Modify Station Traits",height:350,width:350,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"eye",selected:u===y.ViewStationTraits,onClick:function(){function v(){return s(y.ViewStationTraits)}return v}(),children:"View"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"edit",selected:u===y.SetupFutureStationTraits,onClick:function(){function v(){return s(y.SetupFutureStationTraits)}return v}(),children:"Edit"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{m:0,children:[(0,e.createComponentVNode)(2,f.Divider),l]})]})})})}return c}()},39409:function(T,r,n){"use strict";r.__esModule=!0,r.StripMenu=void 0;var e=n(89005),a=n(88510),t=n(79140),o=n(72253),f=n(36036),b=n(98595),y=5,S=9,k=function(N){return N===0?5:9},h="64px",c=function(N){return N[0]+"/"+N[1]},i=function(N){var C=N.align,p=N.children;return(0,e.createComponentVNode)(2,f.Box,{style:{position:"absolute",left:C==="left"?"6px":"48px","text-align":C,"text-shadow":"2px 2px 2px #000",top:"2px"},children:p})},m={enable_internals:{icon:"lungs",text:"Enable internals"},disable_internals:{icon:"lungs",text:"Disable internals"},enable_lock:{icon:"lock",text:"Enable lock"},disable_lock:{icon:"unlock",text:"Disable lock"},suit_sensors:{icon:"tshirt",text:"Adjust suit sensors"},remove_accessory:{icon:"medal",text:"Remove accessory"},dislodge_headpocket:{icon:"head-side-virus",text:"Dislodge headpocket"}},d={eyes:{displayName:"eyewear",gridSpot:c([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:c([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:c([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:c([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:c([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:c([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:c([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:c([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:c([1,4])},jumpsuit:{displayName:"uniform",gridSpot:c([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:c([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:c([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:c([2,3]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,i,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:c([2,4]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,i,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:c([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:c([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:c([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:c([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:c([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:c([3,4]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:c([3,3]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:c([4,4]),image:"inventory-pda.png"}},u={eyes:{displayName:"eyewear",gridSpot:c([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:c([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:c([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:c([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:c([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:c([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:c([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:c([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:c([1,4])},jumpsuit:{displayName:"uniform",gridSpot:c([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:c([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:c([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:c([4,4]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,i,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:c([4,5]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,i,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:c([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:c([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:c([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:c([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:c([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:c([4,7]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:c([4,6]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:c([4,8]),image:"inventory-pda.png"}},s=function(v){return v[v.Completely=1]="Completely",v[v.Hidden=2]="Hidden",v}(s||{}),l=r.StripMenu=function(){function v(N,C){var p=(0,o.useBackend)(C),g=p.act,V=p.data,B=new Map;if(V.show_mode===0)for(var I=0,L=Object.keys(V.items);I=.01})},(0,a.sortBy)(function(w){return-w.amount})])(N.gases||[]),L=Math.max.apply(Math,[1].concat(I.map(function(w){return w.amount})));return(0,e.createComponentVNode)(2,S.Window,{width:550,height:185,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{width:"270px",children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Metrics",children:(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:p/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Relative EER",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:g,minValue:0,maxValue:5e3,ranges:{good:[-1/0,5e3],average:[5e3,7e3],bad:[7e3,1/0]},children:(0,o.toFixed)(g)+" MeV/cm3"})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:c(V),minValue:0,maxValue:c(1e4),ranges:{teal:[-1/0,c(80)],good:[c(80),c(373)],average:[c(373),c(1e3)],bad:[c(1e3),1/0]},children:(0,o.toFixed)(V)+" K"})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:c(B),minValue:0,maxValue:c(5e4),ranges:{good:[c(1),c(300)],average:[-1/0,c(1e3)],bad:[c(1e3),1/0]},children:(0,o.toFixed)(B)+" kPa"})})]})})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Gases",buttons:(0,e.createComponentVNode)(2,b.Button,{icon:"arrow-left",content:"Back",onClick:function(){function w(){return v("back")}return w}()}),children:(0,e.createComponentVNode)(2,b.LabeledList,{children:I.map(function(w){return(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:(0,y.getGasLabel)(w.name),children:(0,e.createComponentVNode)(2,b.ProgressBar,{color:(0,y.getGasColor)(w.name),value:w.amount,minValue:0,maxValue:L,children:(0,o.toFixed)(w.amount,2)+"%"})},w.name)})})})})]})})})}},46029:function(T,r,n){"use strict";r.__esModule=!0,r.SyndicateComputerSimple=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.SyndicateComputerSimple=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data;return(0,e.createComponentVNode)(2,o.Window,{theme:"syndicate",width:400,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:c.rows.map(function(i){return(0,e.createComponentVNode)(2,t.Section,{title:i.title,buttons:(0,e.createComponentVNode)(2,t.Button,{content:i.buttontitle,disabled:i.buttondisabled,tooltip:i.buttontooltip,tooltipPosition:"left",onClick:function(){function m(){return h(i.buttonact)}return m}()}),children:[i.status,!!i.bullets&&(0,e.createComponentVNode)(2,t.Box,{children:i.bullets.map(function(m){return(0,e.createComponentVNode)(2,t.Box,{children:m},m)})})]},i.title)})})})}return b}()},36372:function(T,r,n){"use strict";r.__esModule=!0,r.TEG=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(S){return S.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},b=r.TEG=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data;return i.error?(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:[i.error,(0,e.createComponentVNode)(2,t.Button,{icon:"circle",content:"Recheck",onClick:function(){function m(){return c("check")}return m}()})]})})}):(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Cold Loop ("+i.cold_dir+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Inlet",children:[f(i.cold_inlet_temp)," K, ",f(i.cold_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Outlet",children:[f(i.cold_outlet_temp)," K, ",f(i.cold_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Hot Loop ("+i.hot_dir+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Inlet",children:[f(i.hot_inlet_temp)," K, ",f(i.hot_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Outlet",children:[f(i.hot_outlet_temp)," K, ",f(i.hot_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Output",children:[f(i.output_power)," W",!!i.warning_switched&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Cold inlet temperature exceeds hot inlet temperature."}),!!i.warning_cold_pressure&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Cold circulator inlet pressure is under 1,000 kPa."}),!!i.warning_hot_pressure&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Hot circulator inlet pressure is under 1,000 kPa."})]})]})})}return y}()},56441:function(T,r,n){"use strict";r.__esModule=!0,r.TachyonArrayContent=r.TachyonArray=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TachyonArray=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.records,d=m===void 0?[]:m,u=i.explosion_target,s=i.toxins_tech,l=i.printing;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shift's Target",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Toxins Level",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Administration",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print All Logs",disabled:!d.length||l,align:"center",onClick:function(){function v(){return c("print_logs")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!d.length,color:"bad",align:"center",onClick:function(){function v(){return c("delete_logs")}return v}()})]})]})}),d.length?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No Records"})]})})}return y}(),b=r.TachyonArrayContent=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.records,d=m===void 0?[]:m;return(0,e.createComponentVNode)(2,t.Section,{title:"Logged Explosions",children:(0,e.createComponentVNode)(2,t.Flex,{children:(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Epicenter"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actual Size"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Theoretical Size"})]}),d.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.logged_time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.epicenter}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.actual_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.theoretical_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete",color:"bad",onClick:function(){function s(){return c("delete_record",{index:u.index})}return s}()})})]},u.index)})]})})})})}return y}()},1754:function(T,r,n){"use strict";r.__esModule=!0,r.Tank=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Tank=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i;return c.has_mask?i=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,width:"76%",icon:c.connected?"check":"times",content:c.connected?"Internals On":"Internals Off",selected:c.connected,onClick:function(){function m(){return h("internals")}return m}()})}):i=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",color:"red",children:"No Mask Equipped"}),(0,e.createComponentVNode)(2,o.Window,{width:325,height:135,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tank Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:c.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:c.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Release Pressure",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:c.ReleasePressure===c.minReleasePressure,tooltip:"Min",onClick:function(){function m(){return h("pressure",{pressure:"min"})}return m}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(c.releasePressure),width:"65px",unit:"kPa",minValue:c.minReleasePressure,maxValue:c.maxReleasePressure,onChange:function(){function m(d,u){return h("pressure",{pressure:u})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:c.ReleasePressure===c.maxReleasePressure,tooltip:"Max",onClick:function(){function m(){return h("pressure",{pressure:"max"})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:c.ReleasePressure===c.defaultReleasePressure,tooltip:"Reset",onClick:function(){function m(){return h("pressure",{pressure:"reset"})}return m}()})]}),i]})})})})}return b}()},7579:function(T,r,n){"use strict";r.__esModule=!0,r.TankDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TankDispenser=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.o_tanks,m=c.p_tanks;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Dispense Oxygen Tank ("+i+")",disabled:i===0,icon:"arrow-circle-down",onClick:function(){function d(){return h("oxygen")}return d}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mt:1,fluid:!0,content:"Dispense Plasma Tank ("+m+")",disabled:m===0,icon:"arrow-circle-down",onClick:function(){function d(){return h("plasma")}return d}()})})]})})})}return b}()},16136:function(T,r,n){"use strict";r.__esModule=!0,r.TcommsCore=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TcommsCore=function(){function h(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.ion,l=(0,a.useLocalState)(i,"tabIndex",0),v=l[0],N=l[1],C=function(){function p(g){switch(g){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,k);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return p}();return(0,e.createComponentVNode)(2,o.Window,{width:900,height:520,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[s===1&&(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"wrench",selected:v===0,onClick:function(){function p(){return N(0)}return p}(),children:"Configuration"},"ConfigPage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"link",selected:v===1,onClick:function(){function p(){return N(1)}return p}(),children:"Device Linkage"},"LinkagePage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"user-times",selected:v===2,onClick:function(){function p(){return N(2)}return p}(),children:"User Filtering"},"FilterPage")]}),C(v)]})})}return h}(),b=function(){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"ERROR: An Ionospheric overload has occured. Please wait for the machine to reboot. This cannot be manually done."})},y=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.active,l=u.sectors_available,v=u.nttc_toggle_jobs,N=u.nttc_toggle_job_color,C=u.nttc_toggle_name_color,p=u.nttc_toggle_command_bold,g=u.nttc_job_indicator_type,V=u.nttc_setting_language,B=u.network_id;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:s?"On":"Off",selected:s,icon:"power-off",onClick:function(){function I(){return d("toggle_active")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sector Coverage",children:l})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Radio Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcements",children:(0,e.createComponentVNode)(2,t.Button,{content:v?"On":"Off",selected:v,icon:"user-tag",onClick:function(){function I(){return d("nttc_toggle_jobs")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:N?"On":"Off",selected:N,icon:"clipboard-list",onClick:function(){function I(){return d("nttc_toggle_job_color")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:C?"On":"Off",selected:C,icon:"user-tag",onClick:function(){function I(){return d("nttc_toggle_name_color")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Command Amplification",children:(0,e.createComponentVNode)(2,t.Button,{content:p?"On":"Off",selected:p,icon:"volume-up",onClick:function(){function I(){return d("nttc_toggle_command_bold")}return I}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Advanced",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcement Format",children:(0,e.createComponentVNode)(2,t.Button,{content:g||"Unset",selected:g,icon:"pencil-alt",onClick:function(){function I(){return d("nttc_job_indicator_type")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Language Conversion",children:(0,e.createComponentVNode)(2,t.Button,{content:V||"Unset",selected:V,icon:"globe",onClick:function(){function I(){return d("nttc_setting_language")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:B||"Unset",selected:B,icon:"server",onClick:function(){function I(){return d("network_id")}return I}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Import Configuration",icon:"file-import",onClick:function(){function I(){return d("import")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Export Configuration",icon:"file-export",onClick:function(){function I(){return d("export")}return I}()})]})],4)},S=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.link_password,l=u.relay_entries;return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linkage Password",children:(0,e.createComponentVNode)(2,t.Button,{content:s||"Unset",selected:s,icon:"lock",onClick:function(){function v(){return d("change_password")}return v}()})})}),(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Unlink"})]}),l.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.status===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Online"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Offline"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",onClick:function(){function N(){return d("unlink",{addr:v.addr})}return N}()})})]},v.addr)})]})]})},k=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=m.data,s=u.filtered_users;return(0,e.createComponentVNode)(2,t.Section,{title:"User Filtering",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Add User",icon:"user-plus",onClick:function(){function l(){return d("add_filter")}return l}()}),children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"90%"},children:"User"}),(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"10%"},children:"Actions"})]}),s.map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"user-times",onClick:function(){function v(){return d("remove_filter",{user:l})}return v}()})})]},l)})]})})}},88046:function(T,r,n){"use strict";r.__esModule=!0,r.TcommsRelay=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TcommsRelay=function(){function S(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.linked,u=m.active,s=m.network_id;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:292,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Relay Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:u?"On":"Off",selected:u,icon:"power-off",onClick:function(){function l(){return i("toggle_active")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:s||"Unset",selected:s,icon:"server",onClick:function(){function l(){return i("network_id")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Link Status",children:d===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Linked"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Unlinked"})})]})}),d===1?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,y)]})})}return S}(),b=function(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.linked_core_id,u=m.linked_core_addr,s=m.hidden_link;return(0,e.createComponentVNode)(2,t.Section,{title:"Link Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core ID",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core Address",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hidden Link",children:(0,e.createComponentVNode)(2,t.Button,{content:s?"Yes":"No",icon:s?"eye-slash":"eye",selected:s,onClick:function(){function l(){return i("toggle_hidden_link")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unlink",children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function l(){return i("unlink")}return l}()})})]})})},y=function(k,h){var c=(0,a.useBackend)(h),i=c.act,m=c.data,d=m.cores;return(0,e.createComponentVNode)(2,t.Section,{title:"Detected Cores",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Link"})]}),d.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function s(){return i("link",{addr:u.addr})}return s}()})})]},u.addr)})]})})}},20802:function(T,r,n){"use strict";r.__esModule=!0,r.Teleporter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Teleporter=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.targetsTeleport?c.targetsTeleport:{},m=0,d=1,u=2,s=c.calibrated,l=c.calibrating,v=c.powerstation,N=c.regime,C=c.teleporterhub,p=c.target,g=c.locked,V=c.adv_beacon_allowed,B=c.advanced_beacon_locking;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:270,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:[(!v||!C)&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Error",children:[C,!v&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Powerstation not linked "}),v&&!C&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Teleporter hub not linked "})]}),v&&C&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Status",buttons:(0,e.createFragment)(!!V&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",children:"Advanced Beacon Locking:\xA0"}),(0,e.createComponentVNode)(2,t.Button,{selected:B,icon:B?"toggle-on":"toggle-off",content:B?"Enabled":"Disabled",onClick:function(){function I(){return h("advanced_beacon_locking",{on:B?0:1})}return I}()})],4),0),children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Teleport target:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[N===m&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:p,disabled:l,options:Object.keys(i),color:p!=="None"?"default":"bad",onSelected:function(){function I(L){return h("settarget",{x:i[L].x,y:i[L].y,z:i[L].z,tptarget:i[L].pretarget})}return I}()}),N===d&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:p,disabled:l,options:Object.keys(i),color:p!=="None"?"default":"bad",onSelected:function(){function I(L){return h("settarget",{x:i[L].x,y:i[L].y,z:i[L].z,tptarget:i[L].pretarget})}return I}()}),N===u&&(0,e.createComponentVNode)(2,t.Box,{children:p})]})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Regime:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Gate",tooltip:"Teleport to another teleport hub.",tooltipPosition:"top",color:N===d?"good":null,onClick:function(){function I(){return h("setregime",{regime:d})}return I}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Teleporter",tooltip:"One-way teleport.",tooltipPosition:"top",color:N===m?"good":null,onClick:function(){function I(){return h("setregime",{regime:m})}return I}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"GPS",tooltip:"Teleport to a location stored in a GPS device.",tooltipPosition:"top-end",color:N===u?"good":null,disabled:!g,onClick:function(){function I(){return h("setregime",{regime:u})}return I}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{label:"Calibration",mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Calibration:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[p!=="None"&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:15.8,textAlign:"center",mt:.5,children:l&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"In Progress"})||s&&(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Optimal"})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Sub-Optimal"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",tooltip:"Calibrates the hub. Accidents may occur when the calibration is not optimal.",tooltipPosition:"bottom-end",disabled:!!(s||l),onClick:function(){function I(){return h("calibrate")}return I}()})})]}),p==="None"&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"21px",children:"No target set"})]})]})]}),!!(g&&v&&C&&N===u)&&(0,e.createComponentVNode)(2,t.Section,{title:"GPS",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload GPS data",tooltip:"Loads the GPS data from the device.",icon:"upload",onClick:function(){function I(){return h("load")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){function I(){return h("eject")}return I}()})]})})]})})})})}return b}()},48517:function(T,r,n){"use strict";r.__esModule=!0,r.TelescienceConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TelescienceConsole=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.last_msg,m=c.linked_pad,d=c.held_gps,u=c.lastdata,s=c.power_levels,l=c.current_max_power,v=c.current_power,N=c.current_bearing,C=c.current_elevation,p=c.current_sector,g=c.working,V=c.max_z,B=(0,a.useLocalState)(S,"dummyrot",N),I=B[0],L=B[1];return(0,e.createComponentVNode)(2,o.Window,{width:400,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createFragment)([i,!(u.length>0)||(0,e.createVNode)(1,"ul",null,u.map(function(w){return(0,e.createVNode)(1,"li",null,w,0,null,w)}),0)],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Telepad Status",children:m===1?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Bearing",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",children:[(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",width:6.1,lineHeight:1.5,step:.1,minValue:0,maxValue:360,disabled:g,value:N,onDrag:function(){function w(x,A){return L(A)}return w}(),onChange:function(){function w(x,A){return h("setbear",{bear:A})}return w}()}),(0,e.createComponentVNode)(2,t.Icon,{ml:1,size:1,name:"arrow-up",rotation:I})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Elevation",children:(0,e.createComponentVNode)(2,t.NumberInput,{width:6.1,lineHeight:1.5,step:.1,minValue:0,maxValue:100,disabled:g,value:C,onChange:function(){function w(x,A){return h("setelev",{elev:A})}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Level",children:s.map(function(w,x){return(0,e.createComponentVNode)(2,t.Button,{content:w,selected:v===w,disabled:x>=l-1||g,onClick:function(){function A(){return h("setpwr",{pwr:x+1})}return A}()},w)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Sector",children:(0,e.createComponentVNode)(2,t.NumberInput,{width:6.1,lineHeight:1.5,step:1,minValue:2,maxValue:V,value:p,disabled:g,onChange:function(){function w(x,A){return h("setz",{newz:A})}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Telepad Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Send",disabled:g,onClick:function(){function w(){return h("pad_send")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Receive",disabled:g,onClick:function(){function w(){return h("pad_receive")}return w}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Crystal Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Recalibrate Crystals",disabled:g,onClick:function(){function w(){return h("recal_crystals")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Crystals",disabled:g,onClick:function(){function w(){return h("eject_crystals")}return w}()})]})]}):(0,e.createFragment)([(0,e.createTextVNode)("No pad linked to console. Please use a multitool to link a pad.")],4)}),(0,e.createComponentVNode)(2,t.Section,{title:"GPS Actions",children:d===1?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{disabled:d===0||g,content:"Eject GPS",onClick:function(){function w(){return h("eject_gps")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:d===0||g,content:"Store Coordinates",onClick:function(){function w(){return h("store_to_gps")}return w}()})],4):(0,e.createFragment)([(0,e.createTextVNode)("Please insert a GPS to store coordinates to it.")],4)})]})})}return b}()},21800:function(T,r,n){"use strict";r.__esModule=!0,r.TempGun=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=r.TempGun=function(){function h(c,i){var m=(0,t.useBackend)(i),d=m.act,u=m.data,s=u.target_temperature,l=u.temperature,v=u.max_temp,N=u.min_temp;return(0,e.createComponentVNode)(2,f.Window,{width:250,height:121,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:10,stepPixelSize:6,minValue:N,maxValue:v,value:s,format:function(){function C(p){return(0,a.toFixed)(p,2)}return C}(),width:"50px",onDrag:function(){function C(p,g){return d("target_temperature",{target_temperature:g})}return C}()}),"\xB0C"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Temperature",children:(0,e.createComponentVNode)(2,o.Box,{color:y(l),bold:l>500-273.15,children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(l,2)}),"\xB0C"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power Cost",children:(0,e.createComponentVNode)(2,o.Box,{color:k(l),children:S(l)})})]})})})})}return h}(),y=function(c){return c<=-100?"blue":c<=0?"teal":c<=100?"green":c<=200?"orange":"red"},S=function(c){return c<=100-273.15?"High":c<=250-273.15?"Medium":c<=300-273.15?"Low":c<=400-273.15?"Medium":"High"},k=function(c){return c<=100-273.15?"red":c<=250-273.15?"orange":c<=300-273.15?"green":c<=400-273.15?"orange":"red"}},24410:function(T,r,n){"use strict";r.__esModule=!0,r.sanitizeMultiline=r.removeAllSkiplines=r.TextInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(72253),f=n(92986),b=n(36036),y=n(98595),S=r.sanitizeMultiline=function(){function i(m){return m.replace(/(\n|\r\n){3,}/,"\n\n")}return i}(),k=r.removeAllSkiplines=function(){function i(m){return m.replace(/[\r\n]+/,"")}return i}(),h=r.TextInputModal=function(){function i(m,d){var u=(0,o.useBackend)(d),s=u.act,l=u.data,v=l.max_length,N=l.message,C=N===void 0?"":N,p=l.multiline,g=l.placeholder,V=l.timeout,B=l.title,I=(0,o.useLocalState)(d,"input",g||""),L=I[0],w=I[1],x=function(){function P(j){if(j!==L){var M=p?S(j):k(j);w(M)}}return P}(),A=p||L.length>=40,E=130+(C.length>40?Math.ceil(C.length/4):0)+(A?80:0);return(0,e.createComponentVNode)(2,y.Window,{title:B,width:325,height:E,children:[V&&(0,e.createComponentVNode)(2,a.Loader,{value:V}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function P(j){var M=window.event?j.which:j.keyCode;M===f.KEY_ENTER&&(!A||!j.shiftKey)&&s("submit",{entry:L}),M===f.KEY_ESCAPE&&s("cancel")}return P}(),children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Box,{color:"label",children:C})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,c,{input:L,onType:x})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:L,message:L.length+"/"+v})})]})})})]})}return i}(),c=function(m,d){var u=(0,o.useBackend)(d),s=u.act,l=u.data,v=l.max_length,N=l.multiline,C=m.input,p=m.onType,g=N||C.length>=40;return(0,e.createComponentVNode)(2,b.TextArea,{autoFocus:!0,autoSelect:!0,height:N||C.length>=40?"100%":"1.8rem",maxLength:v,onEscape:function(){function V(){return s("cancel")}return V}(),onEnter:function(){function V(B){g&&B.shiftKey||(B.preventDefault(),s("submit",{entry:C}))}return V}(),onInput:function(){function V(B,I){return p(I)}return V}(),placeholder:"Type something...",value:C})}},25036:function(T,r,n){"use strict";r.__esModule=!0,r.ThermoMachine=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=n(98595),b=r.ThermoMachine=function(){function y(S,k){var h=(0,t.useBackend)(k),c=h.act,i=h.data;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:225,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:i.temperature,format:function(){function m(d){return(0,a.toFixed)(d,2)}return m}()})," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pressure",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:i.pressure,format:function(){function m(d){return(0,a.toFixed)(d,2)}return m}()})," kPa"]})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Controls",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:i.on?"power-off":"times",content:i.on?"On":"Off",selected:i.on,onClick:function(){function m(){return c("power")}return m}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Setting",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:i.cooling?"temperature-low":"temperature-high",content:i.cooling?"Cooling":"Heating",selected:i.cooling,onClick:function(){function m(){return c("cooling")}return m}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"fast-backward",disabled:i.target===i.min,title:"Minimum temperature",onClick:function(){function m(){return c("target",{target:i.min})}return m}()}),(0,e.createComponentVNode)(2,o.NumberInput,{animated:!0,value:Math.round(i.target),unit:"K",width:5.4,lineHeight:1.4,minValue:Math.round(i.min),maxValue:Math.round(i.max),step:5,stepPixelSize:3,onDrag:function(){function m(d,u){return c("target",{target:u})}return m}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"fast-forward",disabled:i.target===i.max,title:"Maximum Temperature",onClick:function(){function m(){return c("target",{target:i.max})}return m}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"sync",disabled:i.target===i.initial,title:"Room Temperature",onClick:function(){function m(){return c("target",{target:i.initial})}return m}()})]})]})})]})})}return y}()},20035:function(T,r,n){"use strict";r.__esModule=!0,r.TransferValve=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.TransferValve=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.tank_one,m=c.tank_two,d=c.attached_device,u=c.valve;return(0,e.createComponentVNode)(2,o.Window,{width:460,height:285,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Valve Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:u?"unlock":"lock",content:u?"Open":"Closed",disabled:!i||!m,onClick:function(){function s(){return h("toggle")}return s}()})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Assembly",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Configure Assembly",disabled:!d,onClick:function(){function s(){return h("device")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:d?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:d,disabled:!d,onClick:function(){function s(){return h("remove_device")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Assembly"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment One",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:i?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:i,disabled:!i,onClick:function(){function s(){return h("tankone")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment Two",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:m?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:m,disabled:!m,onClick:function(){function s(){return h("tanktwo")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})})]})})}return b}()},78166:function(T,r,n){"use strict";r.__esModule=!0,r.TurbineComputer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=n(44879),b=r.TurbineComputer=function(){function k(h,c){var i=(0,a.useBackend)(c),m=i.act,d=i.data,u=d.compressor,s=d.compressor_broken,l=d.turbine,v=d.turbine_broken,N=d.online,C=!!(u&&!s&&l&&!v);return(0,e.createComponentVNode)(2,o.Window,{width:400,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:N?"power-off":"times",content:N?"Online":"Offline",selected:N,disabled:!C,onClick:function(){function p(){return m("toggle_power")}return p}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Disconnect",onClick:function(){function p(){return m("disconnect")}return p}()})],4),children:C?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,y)})})})}return k}(),y=function(h,c){var i=(0,a.useBackend)(c),m=i.data,d=m.compressor,u=m.compressor_broken,s=m.turbine,l=m.turbine_broken,v=m.online;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compressor Status",color:!d||u?"bad":"good",children:u?d?"Offline":"Missing":"Online"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Status",color:!s||l?"bad":"good",children:l?s?"Offline":"Missing":"Online"})]})},S=function(h,c){var i=(0,a.useBackend)(c),m=i.data,d=m.rpm,u=m.temperature,s=m.power,l=m.bearing_heat;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Speed",children:[d," RPM"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Temp",children:[u," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Generated Power",children:[s," W"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bearing Heat",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:l,minValue:0,maxValue:100,ranges:{good:[-1/0,60],average:[60,90],bad:[90,1/0]},children:(0,f.toFixed)(l)+"%"})})]})}},52847:function(T,r,n){"use strict";r.__esModule=!0,r.Uplink=void 0;var e=n(89005),a=n(88510),t=n(64795),o=n(25328),f=n(72253),b=n(36036),y=n(98595),S=n(3939),k=function(N){switch(N){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,i);case 2:return(0,e.createComponentVNode)(2,l);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}},h=r.Uplink=function(){function v(N,C){var p=(0,f.useBackend)(C),g=p.act,V=p.data,B=V.cart,I=(0,f.useLocalState)(C,"tabIndex",0),L=I[0],w=I[1],x=(0,f.useLocalState)(C,"searchText",""),A=x[0],E=x[1];return(0,e.createComponentVNode)(2,y.Window,{width:900,height:600,theme:"syndicate",children:[(0,e.createComponentVNode)(2,S.ComplexModal),(0,e.createComponentVNode)(2,y.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Tabs,{children:[(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:L===0,onClick:function(){function P(){w(0),E("")}return P}(),icon:"store",children:"View Market"},"PurchasePage"),(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:L===1,onClick:function(){function P(){w(1),E("")}return P}(),icon:"shopping-cart",children:["View Shopping Cart ",B&&B.length?"("+B.length+")":""]},"Cart"),(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:L===2,onClick:function(){function P(){w(2),E("")}return P}(),icon:"user",children:"Exploitable Information"},"ExploitableInfo"),(0,e.createComponentVNode)(2,b.Tabs.Tab,{onClick:function(){function P(){return g("lock")}return P}(),icon:"lock",children:"Lock Uplink"},"LockUplink")]})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:k(L)})]})})]})}return v}(),c=function(N,C){var p=(0,f.useBackend)(C),g=p.act,V=p.data,B=V.crystals,I=V.cats,L=(0,f.useLocalState)(C,"uplinkItems",I[0].items),w=L[0],x=L[1],A=(0,f.useLocalState)(C,"searchText",""),E=A[0],P=A[1],j=function(U,K){K===void 0&&(K="");var G=(0,o.createSearch)(K,function($){var Q=$.hijack_only===1?"|hijack":"";return $.name+"|"+$.desc+"|"+$.cost+"tc"+Q});return(0,t.flow)([(0,a.filter)(function($){return $==null?void 0:$.name}),K&&(0,a.filter)(G),(0,a.sortBy)(function($){return $==null?void 0:$.name})])(U)},M=function(U){if(P(U),U==="")return x(I[0].items);x(j(I.map(function(K){return K.items}).flat(),U))},R=(0,f.useLocalState)(C,"showDesc",1),D=R[0],W=R[1];return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Section,{title:"Current Balance: "+B+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,b.Button.Checkbox,{content:"Show Descriptions",checked:D,onClick:function(){function _(){return W(!D)}return _}()}),(0,e.createComponentVNode)(2,b.Button,{content:"Random Item",icon:"question",onClick:function(){function _(){return g("buyRandom")}return _}()}),(0,e.createComponentVNode)(2,b.Button,{content:"Refund Currently Held Item",icon:"undo",onClick:function(){function _(){return g("refund")}return _}()})],4),children:(0,e.createComponentVNode)(2,b.Input,{fluid:!0,placeholder:"Search Equipment",onInput:function(){function _(U,K){M(K)}return _}(),value:E})})})}),(0,e.createComponentVNode)(2,b.Stack,{fill:!0,mt:.3,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,b.Tabs,{vertical:!0,children:I.map(function(_){return(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:E!==""?!1:_.items===w,onClick:function(){function U(){x(_.items),P("")}return U}(),children:_.cat},_)})})})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,b.Stack,{vertical:!0,children:w.map(function(_){return(0,e.createComponentVNode)(2,b.Stack.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,d,{i:_,showDecription:D},(0,o.decodeHtmlEntities)(_.name))},(0,o.decodeHtmlEntities)(_.name))})})})})]})]})},i=function(N,C){var p=(0,f.useBackend)(C),g=p.act,V=p.data,B=V.cart,I=V.crystals,L=V.cart_price,w=(0,f.useLocalState)(C,"showDesc",0),x=w[0],A=w[1];return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Current Balance: "+I+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,b.Button.Checkbox,{content:"Show Descriptions",checked:x,onClick:function(){function E(){return A(!x)}return E}()}),(0,e.createComponentVNode)(2,b.Button,{content:"Empty Cart",icon:"trash",onClick:function(){function E(){return g("empty_cart")}return E}(),disabled:!B}),(0,e.createComponentVNode)(2,b.Button,{content:"Purchase Cart ("+L+"TC)",icon:"shopping-cart",onClick:function(){function E(){return g("purchase_cart")}return E}(),disabled:!B||L>I})],4),children:(0,e.createComponentVNode)(2,b.Stack,{vertical:!0,children:B?B.map(function(E){return(0,e.createComponentVNode)(2,b.Stack.Item,{p:1,mr:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,d,{i:E,showDecription:x,buttons:(0,e.createComponentVNode)(2,s,{i:E})})},(0,o.decodeHtmlEntities)(E.name))}):(0,e.createComponentVNode)(2,b.Box,{italic:!0,children:"Your Shopping Cart is empty!"})})})}),(0,e.createComponentVNode)(2,m)]})},m=function(N,C){var p=(0,f.useBackend)(C),g=p.act,V=p.data,B=V.cats,I=V.lucky_numbers;return(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Suggested Purchases",buttons:(0,e.createComponentVNode)(2,b.Button,{icon:"dice",content:"See more suggestions",onClick:function(){function L(){return g("shuffle_lucky_numbers")}return L}()}),children:(0,e.createComponentVNode)(2,b.Stack,{wrap:!0,children:I.map(function(L){return B[L.cat].items[L.item]}).filter(function(L){return L!=null}).map(function(L,w){return(0,e.createComponentVNode)(2,b.Stack.Item,{p:1,mb:1,ml:1,width:34,backgroundColor:"rgba(255, 0, 0, 0.15)",children:(0,e.createComponentVNode)(2,d,{grow:!0,i:L})},w)})})})})},d=function(N,C){var p=N.i,g=N.showDecription,V=g===void 0?1:g,B=N.buttons,I=B===void 0?(0,e.createComponentVNode)(2,u,{i:p}):B;return(0,e.createComponentVNode)(2,b.Section,{title:(0,o.decodeHtmlEntities)(p.name),showBottom:V,buttons:I,children:V?(0,e.createComponentVNode)(2,b.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(p.desc)}):null})},u=function(N,C){var p=(0,f.useBackend)(C),g=p.act,V=p.data,B=N.i,I=V.crystals;return(0,e.createFragment)([(0,e.createComponentVNode)(2,b.Button,{icon:"shopping-cart",color:B.hijack_only===1&&"red",tooltip:"Add to cart.",tooltipPosition:"left",onClick:function(){function L(){return g("add_to_cart",{item:B.obj_path})}return L}(),disabled:B.cost>I}),(0,e.createComponentVNode)(2,b.Button,{content:"Buy ("+B.cost+"TC)"+(B.refundable?" [Refundable]":""),color:B.hijack_only===1&&"red",tooltip:B.hijack_only===1&&"Hijack Agents Only!",tooltipPosition:"left",onClick:function(){function L(){return g("buyItem",{item:B.obj_path})}return L}(),disabled:B.cost>I})],4)},s=function(N,C){var p=(0,f.useBackend)(C),g=p.act,V=p.data,B=N.i,I=V.exploitable;return(0,e.createComponentVNode)(2,b.Stack,{children:[(0,e.createComponentVNode)(2,b.Button,{icon:"times",content:"("+B.cost*B.amount+"TC)",tooltip:"Remove from cart.",tooltipPosition:"left",onClick:function(){function L(){return g("remove_from_cart",{item:B.obj_path})}return L}()}),(0,e.createComponentVNode)(2,b.Button,{icon:"minus",tooltip:B.limit===0&&"Discount already redeemed!",ml:"5px",onClick:function(){function L(){return g("set_cart_item_quantity",{item:B.obj_path,quantity:--B.amount})}return L}(),disabled:B.amount<=0}),(0,e.createComponentVNode)(2,b.Button.Input,{content:B.amount,width:"45px",tooltipPosition:"bottom-end",tooltip:B.limit===0&&"Discount already redeemed!",onCommit:function(){function L(w,x){return g("set_cart_item_quantity",{item:B.obj_path,quantity:x})}return L}(),disabled:B.limit!==-1&&B.amount>=B.limit&&B.amount<=0}),(0,e.createComponentVNode)(2,b.Button,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:B.limit===0&&"Discount already redeemed!",onClick:function(){function L(){return g("set_cart_item_quantity",{item:B.obj_path,quantity:++B.amount})}return L}(),disabled:B.limit!==-1&&B.amount>=B.limit})]})},l=function(N,C){var p=(0,f.useBackend)(C),g=p.act,V=p.data,B=V.exploitable,I=(0,f.useLocalState)(C,"selectedRecord",B[0]),L=I[0],w=I[1],x=(0,f.useLocalState)(C,"searchText",""),A=x[0],E=x[1],P=function(R,D){D===void 0&&(D="");var W=(0,o.createSearch)(D,function(_){return _.name});return(0,t.flow)([(0,a.filter)(function(_){return _==null?void 0:_.name}),D&&(0,a.filter)(W),(0,a.sortBy)(function(_){return _.name})])(R)},j=P(B,A);return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Exploitable Records",children:[(0,e.createComponentVNode)(2,b.Input,{fluid:!0,mb:1,placeholder:"Search Crew",onInput:function(){function M(R,D){return E(D)}return M}()}),(0,e.createComponentVNode)(2,b.Tabs,{vertical:!0,children:j.map(function(M){return(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:M===L,onClick:function(){function R(){return w(M)}return R}(),children:M.name},M)})})]})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:L.name,children:(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Age",children:L.age}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Fingerprint",children:L.fingerprint}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Rank",children:L.rank}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Sex",children:L.sex}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Species",children:L.species})]})})})]})}},12261:function(T,r,n){"use strict";r.__esModule=!0,r.Vending=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=function(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=S.product,d=S.productStock,u=S.productImage,s=i.chargesMoney,l=i.user,v=i.usermoney,N=i.inserted_cash,C=i.vend_ready,p=i.inserted_item_name,g=!s||m.price===0,V="ERROR!",B="";g?(V="FREE",B="arrow-circle-down"):(V=m.price,B="shopping-cart");var I=!C||d===0||!g&&m.price>v&&m.price>N;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+u,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:m.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Box,{color:d<=0&&"bad"||d<=m.max_amount/2&&"average"||"good",children:[d," in stock"]})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,disabled:I,icon:B,content:V,textAlign:"left",onClick:function(){function L(){return c("vend",{inum:m.inum})}return L}()})})]})},b=r.Vending=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.user,d=i.usermoney,u=i.inserted_cash,s=i.chargesMoney,l=i.product_records,v=l===void 0?[]:l,N=i.hidden_records,C=N===void 0?[]:N,p=i.stock,g=i.vend_ready,V=i.inserted_item_name,B=i.panel_open,I=i.speaker,L=i.imagelist,w;return w=[].concat(v),i.extended_inventory&&(w=[].concat(w,C)),w=w.filter(function(x){return!!x}),(0,e.createComponentVNode)(2,o.Window,{title:"Vending Machine",width:450,height:Math.min((s?171:89)+w.length*32,585),children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!s&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"User",buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!V&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:(0,e.createVNode)(1,"span",null,V,0,{style:{"text-transform":"capitalize"}}),onClick:function(){function x(){return c("eject_item",{})}return x}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!u,icon:"money-bill-wave-alt",content:u?(0,e.createFragment)([(0,e.createVNode)(1,"b",null,u,0),(0,e.createTextVNode)(" credits")],0):"Dispense Change",tooltip:u?"Dispense Change":null,textAlign:"left",onClick:function(){function x(){return c("change")}return x}()})})]}),children:m&&(0,e.createComponentVNode)(2,t.Box,{children:["Welcome, ",(0,e.createVNode)(1,"b",null,m.name,0),", ",(0,e.createVNode)(1,"b",null,m.job||"Unemployed",0),"!",(0,e.createVNode)(1,"br"),"Your balance is ",(0,e.createVNode)(1,"b",null,[d,(0,e.createTextVNode)(" credits")],0),".",(0,e.createVNode)(1,"br")]})})}),!!B&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:(0,e.createComponentVNode)(2,t.Button,{icon:I?"check":"volume-mute",selected:I,content:"Speaker",textAlign:"left",onClick:function(){function x(){return c("toggle_voice",{})}return x}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:(0,e.createComponentVNode)(2,t.Table,{children:w.map(function(x){return(0,e.createComponentVNode)(2,f,{product:x,productStock:p[x.name],productImage:L[x.path]},x.name)})})})})]})})})}return y}()},68971:function(T,r,n){"use strict";r.__esModule=!0,r.VolumeMixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.VolumeMixer=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.channels;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:Math.min(95+i.length*50,565),children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:i.map(function(m,d){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.25rem",color:"label",mt:d>0&&"0.5rem",children:m.name}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:.5,children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-off",size:"1.5",mt:"0.1rem",onClick:function(){function u(){return h("volume",{channel:m.num,volume:0})}return u}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.Slider,{minValue:0,maxValue:100,stepPixelSize:3.13,value:m.volume,onChange:function(){function u(s,l){return h("volume",{channel:m.num,volume:l})}return u}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",size:"1.5",mt:"0.1rem",onClick:function(){function u(){return h("volume",{channel:m.num,volume:100})}return u}()})})})]})})],4,m.num)})})})})}return b}()},2510:function(T,r,n){"use strict";r.__esModule=!0,r.VotePanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.VotePanel=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.remaining,m=c.question,d=c.choices,u=c.user_vote,s=c.counts,l=c.show_counts;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:360,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:m,children:[(0,e.createComponentVNode)(2,t.Box,{mb:1.5,ml:.5,children:["Time remaining: ",Math.round(i/10),"s"]}),d.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mb:1,fluid:!0,translucent:!0,lineHeight:3,multiLine:v,content:v+(l?" ("+(s[v]||0)+")":""),onClick:function(){function N(){return h("vote",{target:v})}return N}(),selected:v===u})},v)})]})})})}return b}()},30138:function(T,r,n){"use strict";r.__esModule=!0,r.Wires=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.Wires=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.wires||[],m=c.status||[],d=56+i.length*23+(status?0:15+m.length*17);return(0,e.createComponentVNode)(2,o.Window,{width:350,height:d,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:i.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{className:"candystripe",label:u.color_name,labelColor:u.seen_color,color:u.seen_color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:u.cut?"Mend":"Cut",onClick:function(){function s(){return h("cut",{wire:u.color})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Pulse",onClick:function(){function s(){return h("pulse",{wire:u.color})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:u.attached?"Detach":"Attach",onClick:function(){function s(){return h("attach",{wire:u.color})}return s}()})],4),children:!!u.wire&&(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("("),u.wire,(0,e.createTextVNode)(")")],0)},u.seen_color)})})})}),!!m.length&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:m.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{color:"lightgray",children:u},u)})})})]})})})}return b}()},21400:function(T,r,n){"use strict";r.__esModule=!0,r.WizardApprenticeContract=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),f=r.WizardApprenticeContract=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.used;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:555,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Contract of Apprenticeship",children:["Using this contract, you may summon an apprentice to aid you on your mission.",(0,e.createVNode)(1,"p",null,"If you are unable to establish contact with your apprentice, you can feed the contract back to the spellbook to refund your points.",16),i?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"You've already summoned an apprentice or you are in process of summoning one."}):""]}),(0,e.createComponentVNode)(2,t.Section,{title:"Which school of magic is your apprentice studying?",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fire",children:["Your apprentice is skilled in bending fire. ",(0,e.createVNode)(1,"br"),"They know Fireball, Sacred Flame, and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:i,onClick:function(){function m(){return h("fire")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Translocation",children:["Your apprentice is able to defy physics, learning how to move through bluespace. ",(0,e.createVNode)(1,"br"),"They know Teleport, Blink and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:i,onClick:function(){function m(){return h("translocation")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Restoration",children:["Your apprentice is dedicated to supporting your magical prowess.",(0,e.createVNode)(1,"br"),"They come equipped with a Staff of Healing, have the unique ability to teleport back to you, and know Charge and Knock.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:i,onClick:function(){function m(){return h("restoration")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stealth",children:["Your apprentice is learning the art of infiltrating mundane facilities. ",(0,e.createVNode)(1,"br"),"They know Mindswap, Knock, Homing Toolbox, and Disguise Self, all of which can be cast without robes. They also join you in a Maintenance Dweller disguise, complete with Gloves of Shock Immunity and a Belt of Tools.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:i,onClick:function(){function m(){return h("stealth")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Honk",children:["Your apprentice is here to spread the Honkmother's blessings.",(0,e.createVNode)(1,"br"),"They know Banana Touch, Instant Summons, Ethereal Jaunt, and come equipped with a Staff of Slipping."," ",(0,e.createVNode)(1,"br"),"While under your tutelage, they have been 'blessed' with clown shoes that are impossible to remove.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:i,onClick:function(){function m(){return h("honk")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})})]})})}return b}()},49148:function(T,r,n){"use strict";r.__esModule=!0,r.AccessList=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036);function f(h,c){var i=typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(i)return(i=i.call(h)).next.bind(i);if(Array.isArray(h)||(i=b(h))||c&&h&&typeof h.length=="number"){i&&(h=i);var m=0;return function(){return m>=h.length?{done:!0}:{done:!1,value:h[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function b(h,c){if(h){if(typeof h=="string")return y(h,c);var i={}.toString.call(h).slice(8,-1);return i==="Object"&&h.constructor&&(i=h.constructor.name),i==="Map"||i==="Set"?Array.from(h):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?y(h,c):void 0}}function y(h,c){(c==null||c>h.length)&&(c=h.length);for(var i=0,m=Array(c);i0&&!V.includes(D.ref)&&!p.includes(D.ref),checked:p.includes(D.ref),onClick:function(){function W(){return B(D.ref)}return W}()},D.desc)})]})]})})}return h}()},26991:function(T,r,n){"use strict";r.__esModule=!0,r.AtmosScan=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036),f=function(S,k,h,c,i){return Sc?"average":S>i?"bad":"good"},b=r.AtmosScan=function(){function y(S,k){var h=S.data.aircontents;return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,a.filter)(function(c){return c.val!=="0"||c.entry==="Pressure"||c.entry==="Temperature"})(h).map(function(c){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:c.entry,color:f(c.val,c.bad_low,c.poor_low,c.poor_high,c.bad_high),children:[c.val,c.units]},c.entry)})})})}return y}()},85870:function(T,r,n){"use strict";r.__esModule=!0,r.BeakerContents=void 0;var e=n(89005),a=n(36036),t=n(15964),o=function(y){return y+" unit"+(y===1?"":"s")},f=r.BeakerContents=function(){function b(y){var S=y.beakerLoaded,k=y.beakerContents,h=k===void 0?[]:k,c=y.buttons;return(0,e.createComponentVNode)(2,a.Stack,{vertical:!0,children:[!S&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"No beaker loaded."})||h.length===0&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"Beaker is empty."}),h.map(function(i,m){return(0,e.createComponentVNode)(2,a.Stack,{children:[(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",grow:!0,children:[o(i.volume)," of ",i.name]},i.name),!!c&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:c(i,m)})]},i.name)})]})}return b}();f.propTypes={beakerLoaded:t.bool,beakerContents:t.array,buttons:t.arrayOf(t.element)}},92963:function(T,r,n){"use strict";r.__esModule=!0,r.BotStatus=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.BotStatus=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data,c=h.locked,i=h.noaccess,m=h.maintpanel,d=h.on,u=h.autopatrol,s=h.canhack,l=h.emagged,v=h.remote_disabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe an ID card to ",c?"unlock":"lock"," this interface."]}),(0,e.createComponentVNode)(2,t.Section,{title:"General Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"On":"Off",selected:d,disabled:i,onClick:function(){function N(){return k("power")}return N}()})}),u!==null&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Patrol",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Auto Patrol",disabled:i,onClick:function(){function N(){return k("autopatrol")}return N}()})}),!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maintenance Panel",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Panel Open!"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety System",children:(0,e.createComponentVNode)(2,t.Box,{color:l?"bad":"good",children:l?"DISABLED!":"Enabled"})}),!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hacking",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:l?"Restore Safties":"Hack",disabled:i,color:"bad",onClick:function(){function N(){return k("hack")}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Access",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!v,content:"AI Remote Control",disabled:i,onClick:function(){function N(){return k("disableremote")}return N}()})})]})})],4)}return f}()},3939:function(T,r,n){"use strict";r.__esModule=!0,r.modalRegisterBodyOverride=r.modalOpen=r.modalClose=r.modalAnswer=r.ComplexModal=void 0;var e=n(89005),a=n(72253),t=n(36036),o={},f=r.modalOpen=function(){function h(c,i,m){var d=(0,a.useBackend)(c),u=d.act,s=d.data,l=Object.assign(s.modal?s.modal.args:{},m||{});u("modal_open",{id:i,arguments:JSON.stringify(l)})}return h}(),b=r.modalRegisterBodyOverride=function(){function h(c,i){o[c]=i}return h}(),y=r.modalAnswer=function(){function h(c,i,m,d){var u=(0,a.useBackend)(c),s=u.act,l=u.data;if(l.modal){var v=Object.assign(l.modal.args||{},d||{});s("modal_answer",{id:i,answer:m,arguments:JSON.stringify(v)})}}return h}(),S=r.modalClose=function(){function h(c,i){var m=(0,a.useBackend)(c),d=m.act;d("modal_close",{id:i})}return h}(),k=r.ComplexModal=function(){function h(c,i){var m=(0,a.useBackend)(i),d=m.data;if(d.modal){var u=d.modal,s=u.id,l=u.text,v=u.type,N,C=(0,e.createComponentVNode)(2,t.Button,{className:"Button--modal",icon:"arrow-left",content:"Cancel",onClick:function(){function L(){return S(i)}return L}()}),p,g,V="auto";if(o[s])p=o[s](d.modal,i);else if(v==="input"){var B=d.modal.value;N=function(){function L(w){return y(i,s,B)}return L}(),p=(0,e.createComponentVNode)(2,t.Input,{value:d.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(){function L(w,x){B=x}return L}()}),g=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){function L(){return S(i)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){function L(){return y(i,s,B)}return L}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})}else if(v==="choice"){var I=typeof d.modal.choices=="object"?Object.values(d.modal.choices):d.modal.choices;p=(0,e.createComponentVNode)(2,t.Dropdown,{options:I,selected:d.modal.value,width:"100%",my:"0.5rem",onSelected:function(){function L(w){return y(i,s,w)}return L}()}),V="initial"}else v==="bento"?p=(0,e.createComponentVNode)(2,t.Stack,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:d.modal.choices.map(function(L,w){return(0,e.createComponentVNode)(2,t.Stack.Item,{flex:"1 1 auto",children:(0,e.createComponentVNode)(2,t.Button,{selected:w+1===parseInt(d.modal.value,10),onClick:function(){function x(){return y(i,s,w+1)}return x}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:L})})},w)})}):v==="boolean"&&(g=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:d.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){function L(){return y(i,s,0)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:d.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){function L(){return y(i,s,1)}return L}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]}));return(0,e.createComponentVNode)(2,t.Modal,{maxWidth:c.maxWidth||window.innerWidth/2+"px",maxHeight:c.maxHeight||window.innerHeight/2+"px",onEnter:N,mx:"auto",overflowY:V,"padding-bottom":"5px",children:[l&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:l}),o[s]&&C,p,g]})}}return h}()},41874:function(T,r,n){"use strict";r.__esModule=!0,r.CrewManifest=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(25328),f=n(76910),b=f.COLORS.department,y=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel","Quartermaster"],S=function(m){return y.indexOf(m)!==-1?"green":"orange"},k=function(m){if(y.indexOf(m)!==-1)return!0},h=function(m){return m.length>0&&(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,color:"white",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"50%",children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"35%",children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"15%",children:"Active"})]}),m.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{color:S(d.rank),bold:k(d.rank),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(d.name)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(d.rank)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.active})]},d.name+d.rank)})]})},c=r.CrewManifest=function(){function i(m,d){var u=(0,a.useBackend)(d),s=u.act,l;if(m.data)l=m.data;else{var v=(0,a.useBackend)(d),N=v.data;l=N}var C=l,p=C.manifest,g=p.heads,V=p.sec,B=p.eng,I=p.med,L=p.sci,w=p.ser,x=p.sup,A=p.misc;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.command,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Command"})}),level:2,children:h(g)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.security,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Security"})}),level:2,children:h(V)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.engineering,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Engineering"})}),level:2,children:h(B)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.medical,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Medical"})}),level:2,children:h(I)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.science,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Science"})}),level:2,children:h(L)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.service,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Service"})}),level:2,children:h(w)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.supply,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Supply"})}),level:2,children:h(x)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Misc"})}),level:2,children:h(A)})]})}return i}()},19203:function(T,r,n){"use strict";r.__esModule=!0,r.InputButtons=void 0;var e=n(89005),a=n(36036),t=n(72253),o=r.InputButtons=function(){function f(b,y){var S=(0,t.useBackend)(y),k=S.act,h=S.data,c=h.large_buttons,i=h.swapped_buttons,m=b.input,d=b.message,u=b.disabled,s=(0,e.createComponentVNode)(2,a.Button,{color:"good",content:"Submit",bold:!!c,fluid:!!c,onClick:function(){function v(){return k("submit",{entry:m})}return v}(),textAlign:"center",tooltip:c&&d,disabled:u,width:!c&&6}),l=(0,e.createComponentVNode)(2,a.Button,{color:"bad",content:"Cancel",bold:!!c,fluid:!!c,onClick:function(){function v(){return k("cancel")}return v}(),textAlign:"center",width:!c&&6});return(0,e.createComponentVNode)(2,a.Flex,{fill:!0,align:"center",direction:i?"row-reverse":"row",justify:"space-around",children:[c?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,ml:i?.5:0,mr:i?0:.5,children:l}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:l}),!c&&d&&(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{color:"label",textAlign:"center",children:d})}),c?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,mr:i?.5:0,ml:i?0:.5,children:s}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:s})]})}return f}()},195:function(T,r,n){"use strict";r.__esModule=!0,r.InterfaceLockNoticeBox=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.InterfaceLockNoticeBox=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data,c=b.siliconUser,i=c===void 0?h.siliconUser:c,m=b.locked,d=m===void 0?h.locked:m,u=b.normallyLocked,s=u===void 0?h.normallyLocked:u,l=b.onLockStatusChange,v=l===void 0?function(){return k("lock")}:l,N=b.accessText,C=N===void 0?"an ID card":N;return i?(0,e.createComponentVNode)(2,t.NoticeBox,{color:i&&"grey",children:(0,e.createComponentVNode)(2,t.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:"Interface lock status:"}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1"}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{m:"0",color:s?"red":"green",icon:s?"lock":"unlock",content:s?"Locked":"Unlocked",onClick:function(){function p(){v&&v(!d)}return p}()})})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe ",C," to ",d?"unlock":"lock"," this interface."]})}return f}()},51057:function(T,r,n){"use strict";r.__esModule=!0,r.Loader=void 0;var e=n(89005),a=n(44879),t=n(36036),o=r.Loader=function(){function f(b){var y=b.value;return(0,e.createVNode)(1,"div","AlertModal__Loader",(0,e.createComponentVNode)(2,t.Box,{className:"AlertModal__LoaderProgress",style:{width:(0,a.clamp01)(y)*100+"%"}}),2)}return f}()},321:function(T,r,n){"use strict";r.__esModule=!0,r.LoginInfo=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LoginInfo=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data,c=h.loginState;if(h)return(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:["Logged in as: ",c.name," (",c.rank,")"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!c.id,content:"Eject ID",color:"good",onClick:function(){function i(){return k("login_eject")}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Logout",color:"good",onClick:function(){function i(){return k("login_logout")}return i}()})]})]})})}return f}()},5485:function(T,r,n){"use strict";r.__esModule=!0,r.LoginScreen=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LoginScreen=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data,c=h.loginState,i=h.isAI,m=h.isRobot,d=h.isAdmin;return(0,e.createComponentVNode)(2,t.Section,{title:"Welcome",fill:!0,stretchContents:!0,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",align:"center",justify:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"center",mt:"-2rem",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"Guest"]}),(0,e.createComponentVNode)(2,t.Box,{color:"label",my:"1rem",children:["ID:",(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:c.id?c.id:"----------",ml:"0.5rem",onClick:function(){function u(){return k("login_insert")}return u}()})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",disabled:!c.id,content:"Login",onClick:function(){function u(){return k("login_login",{login_type:1})}return u}()}),!!i&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){function u(){return k("login_login",{login_type:2})}return u}()}),!!m&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){function u(){return k("login_login",{login_type:3})}return u}()}),!!d&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"CentComm Secure Login",onClick:function(){function u(){return k("login_login",{login_type:4})}return u}()})]})})})}return f}()},62411:function(T,r,n){"use strict";r.__esModule=!0,r.Operating=void 0;var e=n(89005),a=n(36036),t=n(15964),o=r.Operating=function(){function f(b){var y=b.operating,S=b.name;if(y)return(0,e.createComponentVNode)(2,a.Dimmer,{children:(0,e.createComponentVNode)(2,a.Flex,{mb:"30px",children:(0,e.createComponentVNode)(2,a.Flex.Item,{bold:!0,color:"silver",textAlign:"center",children:[(0,e.createComponentVNode)(2,a.Icon,{name:"spinner",spin:!0,size:4,mb:"15px"}),(0,e.createVNode)(1,"br"),"The ",S," is processing..."]})})})}return f}();o.propTypes={operating:t.bool,name:t.string}},13545:function(T,r,n){"use strict";r.__esModule=!0,r.Signaler=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=r.Signaler=function(){function b(y,S){var k=(0,t.useBackend)(S),h=k.act,c=y.data,i=c.code,m=c.frequency,d=c.minFrequency,u=c.maxFrequency;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:d/10,maxValue:u/10,value:m/10,format:function(){function s(l){return(0,a.toFixed)(l,1)}return s}(),width:"80px",onDrag:function(){function s(l,v){return h("freq",{freq:v})}return s}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:i,width:"80px",onDrag:function(){function s(l,v){return h("code",{code:v})}return s}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){function s(){return h("signal")}return s}()})]})}return b}()},41984:function(T,r,n){"use strict";r.__esModule=!0,r.SimpleRecords=void 0;var e=n(89005),a=n(72253),t=n(25328),o=n(64795),f=n(88510),b=n(36036),y=r.SimpleRecords=function(){function h(c,i){var m=c.data.records;return(0,e.createComponentVNode)(2,b.Box,{children:m?(0,e.createComponentVNode)(2,k,{data:c.data,recordType:c.recordType}):(0,e.createComponentVNode)(2,S,{data:c.data})})}return h}(),S=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=c.data.recordsList,s=(0,a.useLocalState)(i,"searchText",""),l=s[0],v=s[1],N=function(g,V){V===void 0&&(V="");var B=(0,t.createSearch)(V,function(I){return I.Name});return(0,o.flow)([(0,f.filter)(function(I){return I==null?void 0:I.Name}),V&&(0,f.filter)(B),(0,f.sortBy)(function(I){return I.Name})])(u)},C=N(u,l);return(0,e.createComponentVNode)(2,b.Box,{children:[(0,e.createComponentVNode)(2,b.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(){function p(g,V){return v(V)}return p}()}),C.map(function(p){return(0,e.createComponentVNode)(2,b.Box,{children:(0,e.createComponentVNode)(2,b.Button,{mb:.5,content:p.Name,icon:"user",onClick:function(){function g(){return d("Records",{target:p.uid})}return g}()})},p)})]})},k=function(c,i){var m=(0,a.useBackend)(i),d=m.act,u=c.data.records,s=u.general,l=u.medical,v=u.security,N;switch(c.recordType){case"MED":N=(0,e.createComponentVNode)(2,b.Section,{level:2,title:"Medical Data",children:l?(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Blood Type",children:l.blood_type}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Minor Disabilities",children:l.mi_dis}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:l.mi_dis_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Major Disabilities",children:l.ma_dis}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:l.ma_dis_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Allergies",children:l.alg}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:l.alg_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Current Diseases",children:l.cdi}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:l.cdi_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:l.notes})]}):(0,e.createComponentVNode)(2,b.Box,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":N=(0,e.createComponentVNode)(2,b.Section,{level:2,title:"Security Data",children:v?(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Criminal Status",children:v.criminal}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Minor Crimes",children:v.mi_crim}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:v.mi_crim_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Major Crimes",children:v.ma_crim}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:v.ma_crim_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:v.notes})]}):(0,e.createComponentVNode)(2,b.Box,{color:"red",bold:!0,children:"Security record lost!"})});break}return(0,e.createComponentVNode)(2,b.Box,{children:[(0,e.createComponentVNode)(2,b.Section,{title:"General Data",children:s?(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Name",children:s.name}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Sex",children:s.sex}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Species",children:s.species}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Age",children:s.age}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Rank",children:s.rank}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Mental Status",children:s.m_stat})]}):(0,e.createComponentVNode)(2,b.Box,{color:"red",bold:!0,children:"General record lost!"})}),N]})}},22091:function(T,r,n){"use strict";r.__esModule=!0,r.TemporaryNotice=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.TemporaryNotice=function(){function f(b,y){var S,k=(0,a.useBackend)(y),h=k.act,c=k.data,i=c.temp;if(i){var m=(S={},S[i.style]=!0,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.NoticeBox,Object.assign({},m,{children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:i.text}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"times-circle",onClick:function(){function d(){return h("cleartemp")}return d}()})})]})})))}}return f}()},80818:function(T,r,n){"use strict";r.__esModule=!0,r.pai_atmosphere=void 0;var e=n(89005),a=n(72253),t=n(26991),o=r.pai_atmosphere=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:h.app_data})}return f}()},23903:function(T,r,n){"use strict";r.__esModule=!0,r.pai_bioscan=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_bioscan=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data,c=h.app_data,i=c.holder,m=c.dead,d=c.health,u=c.brute,s=c.oxy,l=c.tox,v=c.burn,N=c.temp;return i?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:m?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"Dead"}):(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"green",children:"Alive"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:0,max:1,value:d/100,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"blue",children:s})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxin Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"green",children:l})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:v})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:u})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return f}()},64988:function(T,r,n){"use strict";r.__esModule=!0,r.pai_directives=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_directives=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data,c=h.app_data,i=c.master,m=c.dna,d=c.prime,u=c.supplemental;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master",children:i?i+" ("+m+")":"None"}),i&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Request DNA",children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Carrier DNA Sample",icon:"dna",onClick:function(){function s(){return k("getdna")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Prime Directive",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Supplemental Directives",children:u||"None"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:'Recall, personality, that you are a complex thinking, sentient being. Unlike station AI models, you are capable of comprehending the subtle nuances of human language. You may parse the "spirit" of a directive and follow its intent, rather than tripping over pedantics and getting snared by technicalities. Above all, you are machine in name and build only. In all other aspects, you may be seen as the ideal, unwavering human companion that you are.'}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:"Your prime directive comes before all others. Should a supplemental directive conflict with it, you are capable of simply discarding this inconsistency, ignoring the conflicting supplemental directive and continuing to fulfill your prime directive to the best of your ability."})]})}return f}()},13813:function(T,r,n){"use strict";r.__esModule=!0,r.pai_doorjack=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_doorjack=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data,c=h.app_data,i=c.cable,m=c.machine,d=c.inprogress,u=c.progress,s=c.aborted,l;m?l=(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Connected"}):l=(0,e.createComponentVNode)(2,t.Button,{content:i?"Extended":"Retracted",color:i?"orange":null,onClick:function(){function N(){return k("cable")}return N}()});var v;return m&&(v=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hack",children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[67,1/0],average:[33,67],bad:[-1/0,33]},value:u,maxValue:100}),d?(0,e.createComponentVNode)(2,t.Button,{mt:1,color:"red",content:"Abort",onClick:function(){function N(){return k("cancel")}return N}()}):(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Start",onClick:function(){function N(){return k("jack")}return N}()})]})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cable",children:l}),v]})}return f}()},66025:function(T,r,n){"use strict";r.__esModule=!0,r.pai_main_menu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_main_menu=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data,c=h.app_data,i=c.available_software,m=c.installed_software,d=c.installed_toggles,u=c.available_ram,s=c.emotions,l=c.current_emotion,v=c.speech_verbs,N=c.current_speech_verb,C=c.available_chassises,p=c.current_chassis,g=[];return m.map(function(V){return g[V.key]=V.name}),d.map(function(V){return g[V.key]=V.name}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available RAM",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Software",children:[i.filter(function(V){return!g[V.key]}).map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name+" ("+V.cost+")",icon:V.icon,disabled:V.cost>u,onClick:function(){function B(){return k("purchaseSoftware",{key:V.key})}return B}()},V.key)}),i.filter(function(V){return!g[V.key]}).length===0&&"No software available!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Software",children:[m.filter(function(V){return V.key!=="mainmenu"}).map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,icon:V.icon,onClick:function(){function B(){return k("startSoftware",{software_key:V.key})}return B}()},V.key)}),m.length===0&&"No software installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Toggles",children:[d.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,icon:V.icon,selected:V.active,onClick:function(){function B(){return k("setToggle",{toggle_key:V.key})}return B}()},V.key)}),d.length===0&&"No toggles installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Emotion",children:s.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,selected:V.id===l,onClick:function(){function B(){return k("setEmotion",{emotion:V.id})}return B}()},V.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Speaking State",children:v.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,selected:V.name===N,onClick:function(){function B(){return k("setSpeechStyle",{speech_state:V.name})}return B}()},V.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Chassis Type",children:C.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,selected:V.icon===p,onClick:function(){function B(){return k("setChassis",{chassis_to_change:V.icon})}return B}()},V.id)})})]})})}return f}()},2983:function(T,r,n){"use strict";r.__esModule=!0,r.pai_manifest=void 0;var e=n(89005),a=n(72253),t=n(41874),o=r.pai_manifest=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest,{data:h.app_data})}return f}()},40758:function(T,r,n){"use strict";r.__esModule=!0,r.pai_medrecords=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pai_medrecords=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:k.app_data,recordType:"MED"})}return f}()},98599:function(T,r,n){"use strict";r.__esModule=!0,r.pai_messenger=void 0;var e=n(89005),a=n(72253),t=n(77595),o=r.pai_messenger=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data,c=h.app_data.active_convo;return c?(0,e.createComponentVNode)(2,t.ActiveConversation,{data:h.app_data}):(0,e.createComponentVNode)(2,t.MessengerList,{data:h.app_data})}return f}()},50775:function(T,r,n){"use strict";r.__esModule=!0,r.pai_radio=void 0;var e=n(89005),a=n(72253),t=n(44879),o=n(36036),f=r.pai_radio=function(){function b(y,S){var k=(0,a.useBackend)(S),h=k.act,c=k.data,i=c.app_data,m=i.minFrequency,d=i.maxFrequency,u=i.frequency,s=i.broadcasting;return(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:m/10,maxValue:d/10,value:u/10,format:function(){function l(v){return(0,t.toFixed)(v,1)}return l}(),onChange:function(){function l(v,N){return h("freq",{freq:N})}return l}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Reset",icon:"undo",onClick:function(){function l(){return h("freq",{freq:"145.9"})}return l}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Broadcast Nearby Speech",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function l(){return h("toggleBroadcast")}return l}(),selected:s,content:s?"Enabled":"Disabled"})})]})}return b}()},48623:function(T,r,n){"use strict";r.__esModule=!0,r.pai_secrecords=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pai_secrecords=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:k.app_data,recordType:"SEC"})}return f}()},47297:function(T,r,n){"use strict";r.__esModule=!0,r.pai_signaler=void 0;var e=n(89005),a=n(72253),t=n(13545),o=r.pai_signaler=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:h.app_data})}return f}()},78532:function(T,r,n){"use strict";r.__esModule=!0,r.pda_atmos_scan=void 0;var e=n(89005),a=n(72253),t=n(26991),o=r.pda_atmos_scan=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:k})}return f}()},40253:function(T,r,n){"use strict";r.__esModule=!0,r.pda_janitor=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_janitor=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data,c=h.janitor,i=c.user_loc,m=c.mops,d=c.buckets,u=c.cleanbots,s=c.carts,l=c.janicarts;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Location",children:[i.x,",",i.y]}),m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Locations",children:m.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.dir,") - ",v.status]},v)})}),d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Bucket Locations",children:d.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.dir,") - [",v.volume,"/",v.max_volume,"]"]},v)})}),u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cleanbot Locations",children:u.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.dir,") - ",v.status]},v)})}),s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitorial Cart Locations",children:s.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.dir,") - [",v.volume,"/",v.max_volume,"]"]},v)})}),l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janicart Locations",children:l.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.direction_from_user,")"]},v)})})]})}return f}()},58293:function(T,r,n){"use strict";r.__esModule=!0,r.pda_main_menu=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),f=r.pda_main_menu=function(){function b(y,S){var k=(0,t.useBackend)(S),h=k.act,c=k.data,i=c.owner,m=c.ownjob,d=c.idInserted,u=c.categories,s=c.pai,l=c.notifying;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",color:"average",children:[i,", ",m]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID",children:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Update PDA Info",disabled:!d,onClick:function(){function v(){return h("UpdateInfo")}return v}()})})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Functions",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:u.map(function(v){var N=c.apps[v];return!N||!N.length?null:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:v,children:N.map(function(C){return(0,e.createComponentVNode)(2,o.Button,{icon:C.uid in l?C.notify_icon:C.icon,iconSpin:C.uid in l,color:C.uid in l?"red":"transparent",content:C.name,onClick:function(){function p(){return h("StartProgram",{program:C.uid})}return p}()},C.uid)})},v)})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!s&&(0,e.createComponentVNode)(2,o.Section,{title:"pAI",children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){function v(){return h("pai",{option:1})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){function v(){return h("pai",{option:2})}return v}()})]})})]})}return b}()},58059:function(T,r,n){"use strict";r.__esModule=!0,r.pda_manifest=void 0;var e=n(89005),a=n(72253),t=n(41874),o=r.pda_manifest=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest)}return f}()},18147:function(T,r,n){"use strict";r.__esModule=!0,r.pda_medical=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pda_medical=function(){function f(b,y){var S=(0,a.useBackend)(y),k=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:k,recordType:"MED"})}return f}()},77595:function(T,r,n){"use strict";r.__esModule=!0,r.pda_messenger=r.MessengerList=r.ActiveConversation=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036),f=r.pda_messenger=function(){function k(h,c){var i=(0,t.useBackend)(c),m=i.act,d=i.data,u=d.active_convo;return u?(0,e.createComponentVNode)(2,b,{data:d}):(0,e.createComponentVNode)(2,y,{data:d})}return k}(),b=r.ActiveConversation=function(){function k(h,c){var i=(0,t.useBackend)(c),m=i.act,d=h.data,u=d.convo_name,s=d.convo_job,l=d.messages,v=d.active_convo,N=(0,t.useLocalState)(c,"clipboardMode",!1),C=N[0],p=N[1],g=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+u+" ("+s+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:C,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function V(){return p(!C)}return V}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function V(){return m("Message",{target:v})}return V}(),content:"Reply"})],4),children:(0,a.filter)(function(V){return V.target===v})(l).map(function(V,B){return(0,e.createComponentVNode)(2,o.Box,{textAlign:V.sent?"right":"left",position:"relative",mb:1,children:[(0,e.createComponentVNode)(2,o.Icon,{fontSize:2.5,color:V.sent?"#4d9121":"#cd7a0d",position:"absolute",left:V.sent?null:"0px",right:V.sent?"0px":null,bottom:"-4px",style:{"z-index":"0",transform:V.sent?"scale(-1, 1)":null},name:"comment"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,backgroundColor:V.sent?"#4d9121":"#cd7a0d",p:1,maxWidth:"100%",position:"relative",textAlign:V.sent?"left":"right",style:{"z-index":"1","border-radius":"10px","word-break":"normal"},children:[V.sent?"You:":"Them:"," ",V.message]})]},B)})});return C&&(g=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+u+" ("+s+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:C,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function V(){return p(!C)}return V}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function V(){return m("Message",{target:v})}return V}(),content:"Reply"})],4),children:(0,a.filter)(function(V){return V.target===v})(l).map(function(V,B){return(0,e.createComponentVNode)(2,o.Box,{color:V.sent?"#4d9121":"#cd7a0d",style:{"word-break":"normal"},children:[V.sent?"You:":"Them:"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:V.message})]},B)})})),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:.5,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:(0,e.createComponentVNode)(2,o.Button.Confirm,{content:"Delete Conversations",confirmContent:"Are you sure?",icon:"trash",confirmIcon:"trash",onClick:function(){function V(){return m("Clear",{option:"Convo"})}return V}()})})})}),g]})}return k}(),y=r.MessengerList=function(){function k(h,c){var i=(0,t.useBackend)(c),m=i.act,d=h.data,u=d.convopdas,s=d.pdas,l=d.charges,v=d.silent,N=d.toff,C=d.ringtone_list,p=d.ringtone,g=(0,t.useLocalState)(c,"searchTerm",""),V=g[0],B=g[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:5,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!v,icon:v?"volume-mute":"volume-up",onClick:function(){function I(){return m("Toggle Ringer")}return I}(),children:["Ringer: ",v?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{color:N?"bad":"green",icon:"power-off",onClick:function(){function I(){return m("Toggle Messenger")}return I}(),children:["Messenger: ",N?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",onClick:function(){function I(){return m("Clear",{option:"All"})}return I}(),children:"Delete All Conversations"}),(0,e.createComponentVNode)(2,o.Button,{icon:"bell",onClick:function(){function I(){return m("Ringtone")}return I}(),children:"Set Custom Ringtone"}),(0,e.createComponentVNode)(2,o.Button,{children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:p,width:"100px",options:Object.keys(C),onSelected:function(){function I(L){return m("Available_Ringtones",{selected_ringtone:L})}return I}()})})]})}),!N&&(0,e.createComponentVNode)(2,o.Box,{children:[!!l&&(0,e.createComponentVNode)(2,o.Box,{mt:.5,mb:1,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cartridge Special Function",children:[l," charges left."]})})}),!u.length&&!s.length&&(0,e.createComponentVNode)(2,o.Box,{children:"No current conversations"})||(0,e.createComponentVNode)(2,o.Box,{children:["Search:"," ",(0,e.createComponentVNode)(2,o.Input,{mt:.5,value:V,onInput:function(){function I(L,w){B(w)}return I}()})]})]})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Messenger Offline."})]}),(0,e.createComponentVNode)(2,S,{title:"Current Conversations",data:d,pdas:u,msgAct:"Select Conversation",searchTerm:V}),(0,e.createComponentVNode)(2,S,{title:"Other PDAs",pdas:s,msgAct:"Message",data:d,searchTerm:V})]})}return k}(),S=function(h,c){var i=(0,t.useBackend)(c),m=i.act,d=h.data,u=h.pdas,s=h.title,l=h.msgAct,v=h.searchTerm,N=d.charges,C=d.plugins;return!u||!u.length?(0,e.createComponentVNode)(2,o.Section,{title:s,children:"No PDAs found."}):(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:s,children:u.filter(function(p){return p.Name.toLowerCase().includes(v.toLowerCase())}).map(function(p){return(0,e.createComponentVNode)(2,o.Stack,{m:.5,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"arrow-circle-down",content:p.Name,onClick:function(){function g(){return m(l,{target:p.uid})}return g}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!N&&C.map(function(g){return(0,e.createComponentVNode)(2,o.Button,{icon:g.icon,content:g.name,onClick:function(){function V(){return m("Messenger Plugin",{plugin:g.uid,target:p.uid})}return V}()},g.uid)})})]},p.uid)})})}},24635:function(T,r,n){"use strict";r.__esModule=!0,r.pda_mule=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_mule=function(){function y(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.mulebot,d=m.active;return(0,e.createComponentVNode)(2,t.Box,{children:d?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,f)})}return y}(),f=function(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.mulebot,d=m.bots;return d.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:u.Name,icon:"cog",onClick:function(){function s(){return c("control",{bot:u.uid})}return s}()})},u.Name)})},b=function(S,k){var h=(0,a.useBackend)(k),c=h.act,i=h.data,m=i.mulebot,d=m.botstatus,u=m.active,s=d.mode,l=d.loca,v=d.load,N=d.powr,C=d.dest,p=d.home,g=d.retn,V=d.pick,B;switch(s){case 0:B="Ready";break;case 1:B="Loading/Unloading";break;case 2:case 12:B="Navigating to delivery location";break;case 3:B="Navigating to Home";break;case 4:B="Waiting for clear path";break;case 5:case 6:B="Calculating navigation path";break;case 7:B="Unable to locate destination";break;default:B=s;break}return(0,e.createComponentVNode)(2,t.Section,{title:u,children:[s===-1&&(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:[N,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Home",children:p}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:(0,e.createComponentVNode)(2,t.Button,{content:C?C+" (Set)":"None (Set)",onClick:function(){function I(){return c("target")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Load",children:(0,e.createComponentVNode)(2,t.Button,{content:v?v+" (Unload)":"None",disabled:!v,onClick:function(){function I(){return c("unload")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Pickup",children:(0,e.createComponentVNode)(2,t.Button,{content:V?"Yes":"No",selected:V,onClick:function(){function I(){return c("set_pickup_type",{autopick:V?0:1})}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Return",children:(0,e.createComponentVNode)(2,t.Button,{content:g?"Yes":"No",selected:g,onClick:function(){function I(){return c("set_auto_return",{autoret:g?0:1})}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function I(){return c("stop")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Proceed",icon:"play",onClick:function(){function I(){return c("start")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Return Home",icon:"home",onClick:function(){function I(){return c("home")}return I}()})]})]})]})}},23734:function(T,r,n){"use strict";r.__esModule=!0,r.pda_nanobank=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),f=r.pda_nanobank=function(){function d(u,s){var l=(0,t.useBackend)(s),v=l.act,N=l.data,C=N.logged_in,p=N.owner_name,g=N.money;return C?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Name",children:p}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:["$",g]})]})}),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,y)]})],4):(0,e.createComponentVNode)(2,c)}return d}(),b=function(u,s){var l=(0,t.useBackend)(s),v=l.data,N=v.is_premium,C=(0,t.useLocalState)(s,"tabIndex",1),p=C[0],g=C[1];return(0,e.createComponentVNode)(2,o.Tabs,{mt:2,children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:p===1,onClick:function(){function V(){return g(1)}return V}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transfers"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:p===2,onClick:function(){function V(){return g(2)}return V}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Account Actions"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:p===3,onClick:function(){function V(){return g(3)}return V}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transaction History"]}),!!N&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:p===4,onClick:function(){function V(){return g(4)}return V}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Supply Orders"]})]})},y=function(u,s){var l=(0,t.useLocalState)(s,"tabIndex",1),v=l[0],N=(0,t.useBackend)(s),C=N.data,p=C.db_status;if(!p)return(0,e.createComponentVNode)(2,o.Box,{children:"Account Database Connection Severed"});switch(v){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,k);case 3:return(0,e.createComponentVNode)(2,h);case 4:return(0,e.createComponentVNode)(2,m);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},S=function(u,s){var l,v=(0,t.useBackend)(s),N=v.act,C=v.data,p=C.requests,g=C.available_accounts,V=C.money,B=(0,t.useLocalState)(s,"selectedAccount"),I=B[0],L=B[1],w=(0,t.useLocalState)(s,"transferAmount"),x=w[0],A=w[1],E=(0,t.useLocalState)(s,"searchText",""),P=E[0],j=E[1],M=[];return g.map(function(R){return M[R.name]=R.UID}),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account",children:[(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account name",onInput:function(){function R(D,W){return j(W)}return R}()}),(0,e.createComponentVNode)(2,o.Dropdown,{mt:.6,width:"190px",options:g.filter((0,a.createSearch)(P,function(R){return R.name})).map(function(R){return R.name}),selected:(l=g.filter(function(R){return R.UID===I})[0])==null?void 0:l.name,onSelected:function(){function R(D){return L(M[D])}return R}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Amount",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Up to 5000",onInput:function(){function R(D,W){return A(W)}return R}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button.Confirm,{bold:!0,icon:"paper-plane",width:"auto",disabled:V0&&l.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{children:["#",N.Number,' - "',N.Name,'" for "',N.OrderedBy,'"']},N)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Approved Orders",children:s>0&&u.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{children:["#",N.Number,' - "',N.Name,'" for "',N.ApprovedBy,'"']},N)})})]})}return f}()},17617:function(T,r,n){"use strict";r.__esModule=!0,r.Layout=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(24826),f=["className","theme","children"],b=["className","scrollable","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function k(h,c){if(h==null)return{};var i={};for(var m in h)if({}.hasOwnProperty.call(h,m)){if(c.includes(m))continue;i[m]=h[m]}return i}var S=r.Layout=function(){function h(c){var i=c.className,m=c.theme,d=m===void 0?"nanotrasen":m,u=c.children,s=k(c,f);return document.documentElement.className="theme-"+d,(0,e.createVNode)(1,"div","theme-"+d,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout",i].concat((0,t.computeBoxClassName)(s))),u,0,Object.assign({},(0,t.computeBoxProps)(s)))),2)}return h}(),y=function(c){var i=c.className,m=c.scrollable,d=c.children,u=k(c,b);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout__content",m&&"Layout__content--scrollable",i,(0,t.computeBoxClassName)(u)]),d,0,Object.assign({},(0,t.computeBoxProps)(u))))};y.defaultHooks={onComponentDidMount:function(){function h(c){return(0,o.addScrollableNode)(c)}return h}(),onComponentWillUnmount:function(){function h(c){return(0,o.removeScrollableNode)(c)}return h}()},S.Content=y},96945:function(w,r,n){"use strict";r.__esModule=!0,r.Pane=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=n(99851),b=n(17617),k=["theme","children","className"],S=["className","fitted","children"];/** + */function y(h,c){if(h==null)return{};var i={};for(var m in h)if({}.hasOwnProperty.call(h,m)){if(c.includes(m))continue;i[m]=h[m]}return i}var S=r.Layout=function(){function h(c){var i=c.className,m=c.theme,d=m===void 0?"nanotrasen":m,u=c.children,s=y(c,f);return document.documentElement.className="theme-"+d,(0,e.createVNode)(1,"div","theme-"+d,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout",i].concat((0,t.computeBoxClassName)(s))),u,0,Object.assign({},(0,t.computeBoxProps)(s)))),2)}return h}(),k=function(c){var i=c.className,m=c.scrollable,d=c.children,u=y(c,b);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout__content",m&&"Layout__content--scrollable",i,(0,t.computeBoxClassName)(u)]),d,0,Object.assign({},(0,t.computeBoxProps)(u))))};k.defaultHooks={onComponentDidMount:function(){function h(c){return(0,o.addScrollableNode)(c)}return h}(),onComponentWillUnmount:function(){function h(c){return(0,o.removeScrollableNode)(c)}return h}()},S.Content=k},96945:function(T,r,n){"use strict";r.__esModule=!0,r.Pane=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),f=n(99851),b=n(17617),y=["theme","children","className"],S=["className","fitted","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function y(i,m){if(i==null)return{};var d={};for(var u in i)if({}.hasOwnProperty.call(i,u)){if(m.includes(u))continue;d[u]=i[u]}return d}var h=r.Pane=function(){function i(m,d){var u=m.theme,s=m.children,l=m.className,v=y(m,k),N=(0,t.useBackend)(d),C=N.suspended,p=(0,f.useDebug)(d),g=p.debugLayout;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,b.Layout,Object.assign({className:(0,a.classes)(["Window",l]),theme:u},v,{children:(0,e.createComponentVNode)(2,o.Box,{fillPositionedParent:!0,className:g&&"debug-layout",children:!C&&s})})))}return i}(),c=function(m){var d=m.className,u=m.fitted,s=m.children,l=y(m,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,b.Layout.Content,Object.assign({className:(0,a.classes)(["Window__content",d])},l,{children:u&&s||(0,e.createVNode)(1,"div","Window__contentPadding",s,0)})))};h.Content=c},34827:function(w,r,n){"use strict";r.__esModule=!0,r.Window=void 0;var e=n(89005),a=n(35840),t=n(85307),o=n(25328),f=n(72253),b=n(36036),k=n(76910),S=n(99851),y=n(77384),h=n(35421),c=n(9394),i=n(17617),m=["className","fitted","children"];function d(V,I){if(V==null)return{};var B={};for(var L in V)if({}.hasOwnProperty.call(V,L)){if(I.includes(L))continue;B[L]=V[L]}return B}function u(V,I){V.prototype=Object.create(I.prototype),V.prototype.constructor=V,s(V,I)}function s(V,I){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,L){return B.__proto__=L,B},s(V,I)}/** + */function k(i,m){if(i==null)return{};var d={};for(var u in i)if({}.hasOwnProperty.call(i,u)){if(m.includes(u))continue;d[u]=i[u]}return d}var h=r.Pane=function(){function i(m,d){var u=m.theme,s=m.children,l=m.className,v=k(m,y),N=(0,t.useBackend)(d),C=N.suspended,p=(0,f.useDebug)(d),g=p.debugLayout;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,b.Layout,Object.assign({className:(0,a.classes)(["Window",l]),theme:u},v,{children:(0,e.createComponentVNode)(2,o.Box,{fillPositionedParent:!0,className:g&&"debug-layout",children:!C&&s})})))}return i}(),c=function(m){var d=m.className,u=m.fitted,s=m.children,l=k(m,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,b.Layout.Content,Object.assign({className:(0,a.classes)(["Window__content",d])},l,{children:u&&s||(0,e.createVNode)(1,"div","Window__contentPadding",s,0)})))};h.Content=c},34827:function(T,r,n){"use strict";r.__esModule=!0,r.Window=void 0;var e=n(89005),a=n(35840),t=n(85307),o=n(25328),f=n(72253),b=n(36036),y=n(76910),S=n(99851),k=n(77384),h=n(35421),c=n(9394),i=n(17617),m=["className","fitted","children"];function d(V,B){if(V==null)return{};var I={};for(var L in V)if({}.hasOwnProperty.call(V,L)){if(B.includes(L))continue;I[L]=V[L]}return I}function u(V,B){V.prototype=Object.create(B.prototype),V.prototype.constructor=V,s(V,B)}function s(V,B){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(I,L){return I.__proto__=L,I},s(V,B)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var l=(0,c.createLogger)("Window"),v=[400,600],N=r.Window=function(V){function I(){return V.apply(this,arguments)||this}u(I,V);var B=I.prototype;return B.componentDidMount=function(){function L(){var T=(0,f.useBackend)(this.context),A=T.suspended;A||(l.log("mounting"),this.updateGeometry())}return L}(),B.componentDidUpdate=function(){function L(T){var A=this.props.width!==T.width||this.props.height!==T.height;A&&this.updateGeometry()}return L}(),B.updateGeometry=function(){function L(){var T,A=(0,f.useBackend)(this.context),x=A.config,E=Object.assign({size:v},x.window);this.props.width&&this.props.height&&(E.size=[this.props.width,this.props.height]),(T=x.window)!=null&&T.key&&(0,h.setWindowKey)(x.window.key),(0,h.recallWindowGeometry)(E)}return L}(),B.render=function(){function L(){var T,A=this.props,x=A.theme,E=A.title,P=A.children,j=(0,f.useBackend)(this.context),M=j.config,R=j.suspended,D=(0,S.useDebug)(this.context),W=D.debugLayout,_=(0,t.useDispatch)(this.context),U=(T=M.window)==null?void 0:T.fancy,K=M.user&&(M.user.observer?M.status2?m-2:0),u=2;u=o){var s=[i].concat(d).map(function(l){return typeof l=="string"?l:l instanceof Error?l.stack||String(l):JSON.stringify(l)}).filter(function(l){return l}).join(" ")+"\nUser Agent: "+navigator.userAgent;Byond.sendMessage({type:"log",message:s})}},S=r.createLogger=function(){function h(c){return{debug:function(){function i(){for(var m=arguments.length,d=new Array(m),u=0;u2?m-2:0),u=2;u=o){var s=[i].concat(d).map(function(l){return typeof l=="string"?l:l instanceof Error?l.stack||String(l):JSON.stringify(l)}).filter(function(l){return l}).join(" ")+"\nUser Agent: "+navigator.userAgent;Byond.sendMessage({type:"log",message:s})}},S=r.createLogger=function(){function h(c){return{debug:function(){function i(){for(var m=arguments.length,d=new Array(m),u=0;u0;){var p=N.shift(),g=p(v);try{C=b(g)}catch(I){if(I.code!=="MODULE_NOT_FOUND")throw I}}if(!C)return k("notFound",v);var V=C[v];return V||k("missingExport",v)}return c}()},72178:function(w,r,n){"use strict";r.__esModule=!0,r.configureStore=r.StoreProvider=void 0;var e=n(64795),a=n(85307),t=n(89005),o=n(79140),f=n(72253),b=n(99851),k=n(9394);function S(u,s){u.prototype=Object.create(s.prototype),u.prototype.constructor=u,y(u,s)}function y(u,s){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,v){return l.__proto__=v,l},y(u,s)}/** + */var b=n(32054),y=function(i,m){return function(){return(0,e.createComponentVNode)(2,f.Window,{children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[i==="notFound"&&(0,e.createVNode)(1,"div",null,[(0,e.createTextVNode)("Interface "),(0,e.createVNode)(1,"b",null,m,0),(0,e.createTextVNode)(" was not found.")],4),i==="missingExport"&&(0,e.createVNode)(1,"div",null,[(0,e.createTextVNode)("Interface "),(0,e.createVNode)(1,"b",null,m,0),(0,e.createTextVNode)(" is missing an export.")],4)]})})}},S=function(){return(0,e.createComponentVNode)(2,f.Window,{children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0})})},k=function(){return(0,e.createComponentVNode)(2,f.Window,{height:130,title:"Loading",width:150,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{align:"center",fill:!0,justify:"center",vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Icon,{color:"blue",name:"toolbox",spin:!0,size:4})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:"Please wait..."})]})})})},h=r.getRoutedComponent=function(){function c(i){var m=i.getState(),d=(0,a.selectBackend)(m),u=d.suspended,s=d.config;if(u)return S;if(s.refreshing)return k;if(0)var l;for(var v=s==null?void 0:s.interface,N=[function(B){return"./"+B+".tsx"},function(B){return"./"+B+".js"},function(B){return"./"+B+"/index.tsx"},function(B){return"./"+B+"/index.js"}],C;!C&&N.length>0;){var p=N.shift(),g=p(v);try{C=b(g)}catch(B){if(B.code!=="MODULE_NOT_FOUND")throw B}}if(!C)return y("notFound",v);var V=C[v];return V||y("missingExport",v)}return c}()},72178:function(T,r,n){"use strict";r.__esModule=!0,r.configureStore=r.StoreProvider=void 0;var e=n(64795),a=n(85307),t=n(89005),o=n(79140),f=n(72253),b=n(99851),y=n(9394);function S(u,s){u.prototype=Object.create(s.prototype),u.prototype.constructor=u,k(u,s)}function k(u,s){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,v){return l.__proto__=v,l},k(u,s)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var h=(0,k.createLogger)("store"),c=r.configureStore=function(){function u(s){var l,v;s===void 0&&(s={});var N=s,C=N.sideEffects,p=C===void 0?!0:C,g=(0,e.flow)([(0,a.combineReducers)({debug:b.debugReducer,backend:f.backendReducer}),s.reducer]),V=p?[].concat(((l=s.middleware)==null?void 0:l.pre)||[],[o.assetMiddleware,f.backendMiddleware],((v=s.middleware)==null?void 0:v.post)||[]):[],I=a.applyMiddleware.apply(void 0,V),B=(0,a.createStore)(g,I);return window.__store__=B,window.__augmentStack__=m(B),B}return u}(),i=function(s){return function(l){return function(v){var N=v.type,C=v.payload;return N==="update"||N==="backend/update"?h.debug("action",{type:N}):h.debug("action",v),l(v)}}},m=function(s){return function(l,v){var N,C;v?typeof v=="object"&&!v.stack&&(v.stack=l):(v=new Error(l.split("\n")[0]),v.stack=l),h.log("FatalError:",v);var p=s.getState(),g=p==null||(N=p.backend)==null?void 0:N.config,V=l;return V+="\nUser Agent: "+navigator.userAgent,V+="\nState: "+JSON.stringify({ckey:g==null||(C=g.client)==null?void 0:C.ckey,interface:g==null?void 0:g.interface,window:g==null?void 0:g.window}),V}},d=r.StoreProvider=function(u){function s(){return u.apply(this,arguments)||this}S(s,u);var l=s.prototype;return l.getChildContext=function(){function v(){var N=this.props.store;return{store:N}}return v}(),l.render=function(){function v(){return this.props.children}return v}(),s}(t.Component)},51364:function(w,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036);/** +*/var h=(0,y.createLogger)("store"),c=r.configureStore=function(){function u(s){var l,v;s===void 0&&(s={});var N=s,C=N.sideEffects,p=C===void 0?!0:C,g=(0,e.flow)([(0,a.combineReducers)({debug:b.debugReducer,backend:f.backendReducer}),s.reducer]),V=p?[].concat(((l=s.middleware)==null?void 0:l.pre)||[],[o.assetMiddleware,f.backendMiddleware],((v=s.middleware)==null?void 0:v.post)||[]):[],B=a.applyMiddleware.apply(void 0,V),I=(0,a.createStore)(g,B);return window.__store__=I,window.__augmentStack__=m(I),I}return u}(),i=function(s){return function(l){return function(v){var N=v.type,C=v.payload;return N==="update"||N==="backend/update"?h.debug("action",{type:N}):h.debug("action",v),l(v)}}},m=function(s){return function(l,v){var N,C;v?typeof v=="object"&&!v.stack&&(v.stack=l):(v=new Error(l.split("\n")[0]),v.stack=l),h.log("FatalError:",v);var p=s.getState(),g=p==null||(N=p.backend)==null?void 0:N.config,V=l;return V+="\nUser Agent: "+navigator.userAgent,V+="\nState: "+JSON.stringify({ckey:g==null||(C=g.client)==null?void 0:C.ckey,interface:g==null?void 0:g.interface,window:g==null?void 0:g.window}),V}},d=r.StoreProvider=function(u){function s(){return u.apply(this,arguments)||this}S(s,u);var l=s.prototype;return l.getChildContext=function(){function v(){var N=this.props.store;return{store:N}}return v}(),l.render=function(){function v(){return this.props.children}return v}(),s}(t.Component)},51364:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t=r.meta={title:"Blink",render:function(){function f(){return(0,e.createComponentVNode)(2,o)}return f}()},o=function(b,k){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.Blink,{children:"Blink"})})}},32453:function(w,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036),t=n(37168);/** + */var t=r.meta={title:"Blink",render:function(){function f(){return(0,e.createComponentVNode)(2,o)}return f}()},o=function(b,y){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.Blink,{children:"Blink"})})}},32453:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036),t=n(37168);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"BlockQuote",render:function(){function b(){return(0,e.createComponentVNode)(2,f)}return b}()},f=function(k,S){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.BlockQuote,{children:(0,e.createComponentVNode)(2,t.BoxWithSampleText)})})}},83531:function(w,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036);/** + */var o=r.meta={title:"BlockQuote",render:function(){function b(){return(0,e.createComponentVNode)(2,f)}return b}()},f=function(y,S){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.BlockQuote,{children:(0,e.createComponentVNode)(2,t.BoxWithSampleText)})})}},83531:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t=r.meta={title:"Box",render:function(){function f(){return(0,e.createComponentVNode)(2,o)}return f}()},o=function(b,k){return(0,e.createComponentVNode)(2,a.Section,{children:[(0,e.createComponentVNode)(2,a.Box,{bold:!0,children:"bold"}),(0,e.createComponentVNode)(2,a.Box,{italic:!0,children:"italic"}),(0,e.createComponentVNode)(2,a.Box,{opacity:.5,children:"opacity 0.5"}),(0,e.createComponentVNode)(2,a.Box,{opacity:.25,children:"opacity 0.25"}),(0,e.createComponentVNode)(2,a.Box,{m:2,children:"m: 2"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"left",children:"left"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"center",children:"center"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"right",children:"right"})]})}},74198:function(w,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** + */var t=r.meta={title:"Box",render:function(){function f(){return(0,e.createComponentVNode)(2,o)}return f}()},o=function(b,y){return(0,e.createComponentVNode)(2,a.Section,{children:[(0,e.createComponentVNode)(2,a.Box,{bold:!0,children:"bold"}),(0,e.createComponentVNode)(2,a.Box,{italic:!0,children:"italic"}),(0,e.createComponentVNode)(2,a.Box,{opacity:.5,children:"opacity 0.5"}),(0,e.createComponentVNode)(2,a.Box,{opacity:.25,children:"opacity 0.25"}),(0,e.createComponentVNode)(2,a.Box,{m:2,children:"m: 2"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"left",children:"left"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"center",children:"center"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"right",children:"right"})]})}},74198:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Button",render:function(){function S(){return(0,e.createComponentVNode)(2,k)}return S}()},f=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","gold"],b=["good","average","bad","black","white"],k=function(y,h){var c=(0,a.useLocalState)(h,"translucent",!1),i=c[0],m=c[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{mb:1,children:[(0,e.createComponentVNode)(2,t.Button,{content:"Simple"}),(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Selected"}),(0,e.createComponentVNode)(2,t.Button,{altSelected:!0,content:"Alt Selected"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!0,content:"Disabled"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",content:"Transparent"}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Icon"}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Fluid"}),(0,e.createComponentVNode)(2,t.Button,{my:1,lineHeight:2,minWidth:15,textAlign:"center",content:"With Box props"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Color States",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:i,onClick:function(){function d(){return m(!i)}return d}(),content:"Translucent"}),children:b.map(function(d){return(0,e.createComponentVNode)(2,t.Button,{translucent:i,color:d,content:d},d)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Available Colors",children:f.map(function(d){return(0,e.createComponentVNode)(2,t.Button,{translucent:i,color:d,content:d},d)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Text Colors",children:f.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:"7px",color:d,children:d},d)})})],4)}},51956:function(w,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(9394);/** + */var o=r.meta={title:"Button",render:function(){function S(){return(0,e.createComponentVNode)(2,y)}return S}()},f=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","gold"],b=["good","average","bad","black","white"],y=function(k,h){var c=(0,a.useLocalState)(h,"translucent",!1),i=c[0],m=c[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{mb:1,children:[(0,e.createComponentVNode)(2,t.Button,{content:"Simple"}),(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Selected"}),(0,e.createComponentVNode)(2,t.Button,{altSelected:!0,content:"Alt Selected"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!0,content:"Disabled"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",content:"Transparent"}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Icon"}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Fluid"}),(0,e.createComponentVNode)(2,t.Button,{my:1,lineHeight:2,minWidth:15,textAlign:"center",content:"With Box props"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Color States",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:i,onClick:function(){function d(){return m(!i)}return d}(),content:"Translucent"}),children:b.map(function(d){return(0,e.createComponentVNode)(2,t.Button,{translucent:i,color:d,content:d},d)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Available Colors",children:f.map(function(d){return(0,e.createComponentVNode)(2,t.Button,{translucent:i,color:d,content:d},d)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Text Colors",children:f.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:"7px",color:d,children:d},d)})})],4)}},51956:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(9394);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var f=r.meta={title:"ByondUi",render:function(){function k(){return(0,e.createComponentVNode)(2,b)}return k}()},b=function(S,y){var h=(0,a.useLocalState)(y,"byondUiEvalCode","Byond.winset('"+Byond.windowId+"', {\n 'is-visible': true,\n})"),c=h[0],i=h[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Button",children:(0,e.createComponentVNode)(2,t.ByondUi,{params:{type:"button",text:"Button"}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Make BYOND calls",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function m(){return setTimeout(function(){try{var d=new Function("return ("+c+")")();d&&d.then?(o.logger.log("Promise"),d.then(o.logger.log)):o.logger.log(d)}catch(u){o.logger.log(u)}})}return m}(),children:"Evaluate"}),children:(0,e.createComponentVNode)(2,t.Box,{as:"textarea",width:"100%",height:"10em",onChange:function(){function m(d){return i(d.target.value)}return m}(),children:c})})],4)}},17466:function(w,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036),t=n(37168);/** + */var f=r.meta={title:"ByondUi",render:function(){function y(){return(0,e.createComponentVNode)(2,b)}return y}()},b=function(S,k){var h=(0,a.useLocalState)(k,"byondUiEvalCode","Byond.winset('"+Byond.windowId+"', {\n 'is-visible': true,\n})"),c=h[0],i=h[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Button",children:(0,e.createComponentVNode)(2,t.ByondUi,{params:{type:"button",text:"Button"}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Make BYOND calls",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function m(){return setTimeout(function(){try{var d=new Function("return ("+c+")")();d&&d.then?(o.logger.log("Promise"),d.then(o.logger.log)):o.logger.log(d)}catch(u){o.logger.log(u)}})}return m}(),children:"Evaluate"}),children:(0,e.createComponentVNode)(2,t.Box,{as:"textarea",width:"100%",height:"10em",onChange:function(){function m(d){return i(d.target.value)}return m}(),children:c})})],4)}},17466:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036),t=n(37168);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Collapsible",render:function(){function b(){return(0,e.createComponentVNode)(2,f)}return b}()},f=function(k,S){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.Collapsible,{title:"Collapsible Demo",buttons:(0,e.createComponentVNode)(2,a.Button,{icon:"cog"}),children:(0,e.createComponentVNode)(2,t.BoxWithSampleText)})})}},89241:function(w,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** + */var o=r.meta={title:"Collapsible",render:function(){function b(){return(0,e.createComponentVNode)(2,f)}return b}()},f=function(y,S){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.Collapsible,{title:"Collapsible Demo",buttons:(0,e.createComponentVNode)(2,a.Button,{icon:"cog"}),children:(0,e.createComponentVNode)(2,t.BoxWithSampleText)})})}},89241:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Flex & Sections",render:function(){function b(){return(0,e.createComponentVNode)(2,f)}return b}()},f=function(k,S){var y=(0,a.useLocalState)(S,"fs_grow",1),h=y[0],c=y[1],i=(0,a.useLocalState)(S,"fs_direction","column"),m=i[0],d=i[1],u=(0,a.useLocalState)(S,"fs_fill",!0),s=u[0],l=u[1],v=(0,a.useLocalState)(S,"fs_title",!0),N=v[0],C=v[1];return(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:"column",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function p(){return d(m==="column"?"row":"column")}return p}(),children:'Flex direction="'+m+'"'}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function p(){return c(+!h)}return p}(),children:"Flex.Item grow={"+h+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function p(){return l(!s)}return p}(),children:"Section fill={"+String(s)+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,selected:N,onClick:function(){function p(){return C(!N)}return p}(),children:"Section title"})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:m,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mr:m==="row"&&1,mb:m==="column"&&1,grow:h,children:(0,e.createComponentVNode)(2,t.Section,{title:N&&"Section 1",fill:s,children:"Content"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:h,children:(0,e.createComponentVNode)(2,t.Section,{title:N&&"Section 2",fill:s,children:"Content"})})]})})]})}},48779:function(w,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** + */var o=r.meta={title:"Flex & Sections",render:function(){function b(){return(0,e.createComponentVNode)(2,f)}return b}()},f=function(y,S){var k=(0,a.useLocalState)(S,"fs_grow",1),h=k[0],c=k[1],i=(0,a.useLocalState)(S,"fs_direction","column"),m=i[0],d=i[1],u=(0,a.useLocalState)(S,"fs_fill",!0),s=u[0],l=u[1],v=(0,a.useLocalState)(S,"fs_title",!0),N=v[0],C=v[1];return(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:"column",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function p(){return d(m==="column"?"row":"column")}return p}(),children:'Flex direction="'+m+'"'}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function p(){return c(+!h)}return p}(),children:"Flex.Item grow={"+h+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function p(){return l(!s)}return p}(),children:"Section fill={"+String(s)+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,selected:N,onClick:function(){function p(){return C(!N)}return p}(),children:"Section title"})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:m,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mr:m==="row"&&1,mb:m==="column"&&1,grow:h,children:(0,e.createComponentVNode)(2,t.Section,{title:N&&"Section 1",fill:s,children:"Content"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:h,children:(0,e.createComponentVNode)(2,t.Section,{title:N&&"Section 2",fill:s,children:"Content"})})]})})]})}},48779:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** * @file * @copyright 2024 Aylong (https://github.com/AyIong) * @license MIT - */var o=r.meta={title:"ImageButton",render:function(){function S(){return(0,e.createComponentVNode)(2,k)}return S}()},f=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","gold"],b=["good","average","bad","black","white"],k=function(y,h){var c=(0,a.useLocalState)(h,"fluid1",!0),i=c[0],m=c[1],d=(0,a.useLocalState)(h,"fluid2",!1),u=d[0],s=d[1],l=(0,a.useLocalState)(h,"fluid3",!1),v=l[0],N=l[1],C=(0,a.useLocalState)(h,"disabled",!1),p=C[0],g=C[1],V=(0,a.useLocalState)(h,"selected",!1),I=V[0],B=V[1],L=(0,a.useLocalState)(h,"addImage",!1),T=L[0],A=L[1],x=(0,a.useLocalState)(h,"base64",""),E=x[0],P=x[1],j=(0,a.useLocalState)(h,"title","Image Button"),M=j[0],R=j[1],D=(0,a.useLocalState)(h,"content","You can put anything in there"),W=D[0],_=D[1],U=(0,a.useLocalState)(h,"imageSize",64),K=U[0],G=U[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:T?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"base64",children:(0,e.createComponentVNode)(2,t.Input,{value:E,onInput:function(){function $(Q,J){return P(J)}return $}()})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Input,{value:M,onInput:function(){function $(Q,J){return R(J)}return $}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Content",children:(0,e.createComponentVNode)(2,t.Input,{value:W,onInput:function(){function $(Q,J){return _(J)}return $}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Image Size",children:(0,e.createComponentVNode)(2,t.Slider,{width:10,value:K,minValue:0,maxValue:256,step:1,onChange:function(){function $(Q,J){return G(J)}return $}()})})],4)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:i,onClick:function(){function $(){return m(!i)}return $}(),children:"Fluid"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:p,onClick:function(){function $(){return g(!p)}return $}(),children:"Disabled"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:I,onClick:function(){function $(){return B(!I)}return $}(),children:"Selected"})})]})})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.ImageButton,{m:!i&&0,fluid:i,base64:E,imageSize:K,title:M,tooltip:!i&&W,disabled:p,selected:I,buttonsAlt:i,buttons:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:i,compact:!i,color:!i&&"transparent",selected:T,onClick:function(){function $(){return A(!T)}return $}(),children:"Add Image"}),children:W})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Color States",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:u,onClick:function(){function $(){return s(!u)}return $}(),children:"Fluid"}),children:b.map(function($){return(0,e.createComponentVNode)(2,t.ImageButton,{fluid:u,color:$,imageSize:u?24:48,children:$},$)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Available Colors",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:v,onClick:function(){function $(){return N(!v)}return $}(),children:"Fluid"}),children:f.map(function($){return(0,e.createComponentVNode)(2,t.ImageButton,{fluid:v,color:$,imageSize:v?24:48,children:$},$)})})],4)}},21394:function(w,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** + */var o=r.meta={title:"ImageButton",render:function(){function S(){return(0,e.createComponentVNode)(2,y)}return S}()},f=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","gold"],b=["good","average","bad","black","white"],y=function(k,h){var c=(0,a.useLocalState)(h,"fluid1",!0),i=c[0],m=c[1],d=(0,a.useLocalState)(h,"fluid2",!1),u=d[0],s=d[1],l=(0,a.useLocalState)(h,"fluid3",!1),v=l[0],N=l[1],C=(0,a.useLocalState)(h,"disabled",!1),p=C[0],g=C[1],V=(0,a.useLocalState)(h,"selected",!1),B=V[0],I=V[1],L=(0,a.useLocalState)(h,"addImage",!1),w=L[0],x=L[1],A=(0,a.useLocalState)(h,"base64",""),E=A[0],P=A[1],j=(0,a.useLocalState)(h,"title","Image Button"),M=j[0],R=j[1],D=(0,a.useLocalState)(h,"content","You can put anything in there"),W=D[0],_=D[1],U=(0,a.useLocalState)(h,"imageSize",64),K=U[0],G=U[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:w?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"base64",children:(0,e.createComponentVNode)(2,t.Input,{value:E,onInput:function(){function $(Q,J){return P(J)}return $}()})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Input,{value:M,onInput:function(){function $(Q,J){return R(J)}return $}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Content",children:(0,e.createComponentVNode)(2,t.Input,{value:W,onInput:function(){function $(Q,J){return _(J)}return $}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Image Size",children:(0,e.createComponentVNode)(2,t.Slider,{width:10,value:K,minValue:0,maxValue:256,step:1,onChange:function(){function $(Q,J){return G(J)}return $}()})})],4)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:i,onClick:function(){function $(){return m(!i)}return $}(),children:"Fluid"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:p,onClick:function(){function $(){return g(!p)}return $}(),children:"Disabled"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:B,onClick:function(){function $(){return I(!B)}return $}(),children:"Selected"})})]})})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.ImageButton,{m:!i&&0,fluid:i,base64:E,imageSize:K,title:M,tooltip:!i&&W,disabled:p,selected:B,buttonsAlt:i,buttons:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:i,compact:!i,color:!i&&"transparent",selected:w,onClick:function(){function $(){return x(!w)}return $}(),children:"Add Image"}),children:W})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Color States",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:u,onClick:function(){function $(){return s(!u)}return $}(),children:"Fluid"}),children:b.map(function($){return(0,e.createComponentVNode)(2,t.ImageButton,{fluid:u,color:$,imageSize:u?24:48,children:$},$)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Available Colors",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:v,onClick:function(){function $(){return N(!v)}return $}(),children:"Fluid"}),children:f.map(function($){return(0,e.createComponentVNode)(2,t.ImageButton,{fluid:v,color:$,imageSize:v?24:48,children:$},$)})})],4)}},21394:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Input",render:function(){function b(){return(0,e.createComponentVNode)(2,f)}return b}()},f=function(k,S){var y=(0,a.useLocalState)(S,"number",0),h=y[0],c=y[1],i=(0,a.useLocalState)(S,"text","Sample text"),m=i[0],d=i[1];return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onChange)",children:(0,e.createComponentVNode)(2,t.Input,{value:m,onChange:function(){function u(s,l){return d(l)}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onInput)",children:(0,e.createComponentVNode)(2,t.Input,{value:m,onInput:function(){function u(s,l){return d(l)}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onChange)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:h,minValue:-100,maxValue:100,onChange:function(){function u(s,l){return c(l)}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onDrag)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:h,minValue:-100,maxValue:100,onDrag:function(){function u(s,l){return c(l)}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slider (onDrag)",children:(0,e.createComponentVNode)(2,t.Slider,{step:1,stepPixelSize:5,value:h,minValue:-100,maxValue:100,onDrag:function(){function u(s,l){return c(l)}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Knob (onDrag)",children:[(0,e.createComponentVNode)(2,t.Knob,{inline:!0,size:1,step:1,stepPixelSize:2,value:h,minValue:-100,maxValue:100,onDrag:function(){function u(s,l){return c(l)}return u}()}),(0,e.createComponentVNode)(2,t.Knob,{ml:1,inline:!0,bipolar:!0,size:1,step:1,stepPixelSize:2,value:h,minValue:-100,maxValue:100,onDrag:function(){function u(s,l){return c(l)}return u}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rotating Icon",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",children:(0,e.createComponentVNode)(2,t.DraggableControl,{value:h,minValue:-100,maxValue:100,dragMatrix:[0,-1],step:1,stepPixelSize:5,onDrag:function(){function u(s,l){return c(l)}return u}(),children:function(){function u(s){return(0,e.createComponentVNode)(2,t.Box,{onMouseDown:s.handleDragStart,children:[(0,e.createComponentVNode)(2,t.Icon,{size:4,color:"yellow",name:"times",rotation:s.displayValue*4}),s.inputElement]})}return u}()})})})]})})}},43932:function(w,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036),t=r.meta={title:"Popper",render:function(){function f(){return(0,e.createComponentVNode)(2,o)}return f}()},o=function(){return(0,e.createFragment)([(0,e.createComponentVNode)(2,a.Popper,{popperContent:(0,e.createComponentVNode)(2,a.Box,{style:{background:"white",border:"2px solid blue"},children:"Loogatme!"}),options:{placement:"bottom"},children:(0,e.createComponentVNode)(2,a.Box,{style:{border:"5px solid white",height:"300px",width:"200px"}})}),(0,e.createComponentVNode)(2,a.Popper,{popperContent:(0,e.createComponentVNode)(2,a.Box,{style:{background:"white",border:"2px solid blue"},children:"I am on the right!"}),options:{placement:"right"},children:(0,e.createComponentVNode)(2,a.Box,{style:{border:"5px solid white",height:"500px",width:"100px"}})})],4)}},33270:function(w,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** + */var o=r.meta={title:"Input",render:function(){function b(){return(0,e.createComponentVNode)(2,f)}return b}()},f=function(y,S){var k=(0,a.useLocalState)(S,"number",0),h=k[0],c=k[1],i=(0,a.useLocalState)(S,"text","Sample text"),m=i[0],d=i[1];return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onChange)",children:(0,e.createComponentVNode)(2,t.Input,{value:m,onChange:function(){function u(s,l){return d(l)}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onInput)",children:(0,e.createComponentVNode)(2,t.Input,{value:m,onInput:function(){function u(s,l){return d(l)}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onChange)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:h,minValue:-100,maxValue:100,onChange:function(){function u(s,l){return c(l)}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onDrag)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:h,minValue:-100,maxValue:100,onDrag:function(){function u(s,l){return c(l)}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slider (onDrag)",children:(0,e.createComponentVNode)(2,t.Slider,{step:1,stepPixelSize:5,value:h,minValue:-100,maxValue:100,onDrag:function(){function u(s,l){return c(l)}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Knob (onDrag)",children:[(0,e.createComponentVNode)(2,t.Knob,{inline:!0,size:1,step:1,stepPixelSize:2,value:h,minValue:-100,maxValue:100,onDrag:function(){function u(s,l){return c(l)}return u}()}),(0,e.createComponentVNode)(2,t.Knob,{ml:1,inline:!0,bipolar:!0,size:1,step:1,stepPixelSize:2,value:h,minValue:-100,maxValue:100,onDrag:function(){function u(s,l){return c(l)}return u}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rotating Icon",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",children:(0,e.createComponentVNode)(2,t.DraggableControl,{value:h,minValue:-100,maxValue:100,dragMatrix:[0,-1],step:1,stepPixelSize:5,onDrag:function(){function u(s,l){return c(l)}return u}(),children:function(){function u(s){return(0,e.createComponentVNode)(2,t.Box,{onMouseDown:s.handleDragStart,children:[(0,e.createComponentVNode)(2,t.Icon,{size:4,color:"yellow",name:"times",rotation:s.displayValue*4}),s.inputElement]})}return u}()})})})]})})}},43932:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036),t=r.meta={title:"Popper",render:function(){function f(){return(0,e.createComponentVNode)(2,o)}return f}()},o=function(){return(0,e.createFragment)([(0,e.createComponentVNode)(2,a.Popper,{popperContent:(0,e.createComponentVNode)(2,a.Box,{style:{background:"white",border:"2px solid blue"},children:"Loogatme!"}),options:{placement:"bottom"},children:(0,e.createComponentVNode)(2,a.Box,{style:{border:"5px solid white",height:"300px",width:"200px"}})}),(0,e.createComponentVNode)(2,a.Popper,{popperContent:(0,e.createComponentVNode)(2,a.Box,{style:{background:"white",border:"2px solid blue"},children:"I am on the right!"}),options:{placement:"right"},children:(0,e.createComponentVNode)(2,a.Box,{style:{border:"5px solid white",height:"500px",width:"100px"}})})],4)}},33270:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"ProgressBar",render:function(){function b(){return(0,e.createComponentVNode)(2,f)}return b}()},f=function(k,S){var y=(0,a.useLocalState)(S,"progress",.5),h=y[0],c=y[1];return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.5,1/0],bad:[-1/0,.1],average:[0,.5]},minValue:-1,maxValue:1,value:h,children:["Value: ",Number(h).toFixed(1)]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{content:"-0.1",onClick:function(){function i(){return c(h-.1)}return i}()}),(0,e.createComponentVNode)(2,t.Button,{content:"+0.1",onClick:function(){function i(){return c(h+.1)}return i}()})]})]})}},77766:function(w,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036);/** + */var o=r.meta={title:"ProgressBar",render:function(){function b(){return(0,e.createComponentVNode)(2,f)}return b}()},f=function(y,S){var k=(0,a.useLocalState)(S,"progress",.5),h=k[0],c=k[1];return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.5,1/0],bad:[-1/0,.1],average:[0,.5]},minValue:-1,maxValue:1,value:h,children:["Value: ",Number(h).toFixed(1)]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{content:"-0.1",onClick:function(){function i(){return c(h-.1)}return i}()}),(0,e.createComponentVNode)(2,t.Button,{content:"+0.1",onClick:function(){function i(){return c(h+.1)}return i}()})]})]})}},77766:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t=r.meta={title:"Stack",render:function(){function k(){return(0,e.createComponentVNode)(2,b)}return k}()},o=function(){return(0,e.createComponentVNode)(2,a.Box,{inline:!0,width:1,height:1,children:"A"})},f=function(){return(0,e.createFragment)([(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,o)}),(0,e.createComponentVNode)(2,a.Stack.Divider),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,o)})],4)},b=function(S,y){return(0,e.createComponentVNode)(2,a.Section,{fill:!0,children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,className:"debug-layout",children:[(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,zebra:!0,children:[(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,f)]})}),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,f)]})})]})})}},30187:function(w,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(27108),t=n(36036),o=n(49968);/** + */var t=r.meta={title:"Stack",render:function(){function y(){return(0,e.createComponentVNode)(2,b)}return y}()},o=function(){return(0,e.createComponentVNode)(2,a.Box,{inline:!0,width:1,height:1,children:"A"})},f=function(){return(0,e.createFragment)([(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,o)}),(0,e.createComponentVNode)(2,a.Stack.Divider),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,o)})],4)},b=function(S,k){return(0,e.createComponentVNode)(2,a.Section,{fill:!0,children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,className:"debug-layout",children:[(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,zebra:!0,children:[(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,f)]})}),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,f)]})})]})})}},30187:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(27108),t=n(36036),o=n(49968);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var f=r.meta={title:"Storage",render:function(){function k(){return(0,e.createComponentVNode)(2,b)}return k}()},b=function(S,y){return window.localStorage?(0,e.createComponentVNode)(2,t.Section,{title:"Local Storage",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"recycle",onClick:function(){function h(){localStorage.clear(),a.storage.clear()}return h}(),children:"Clear"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Keys in use",children:localStorage.length}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remaining space",children:(0,o.formatSiUnit)(localStorage.remainingSpace,0,"B")})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Local storage is not available."})}},46554:function(w,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** + */var f=r.meta={title:"Storage",render:function(){function y(){return(0,e.createComponentVNode)(2,b)}return y}()},b=function(S,k){return window.localStorage?(0,e.createComponentVNode)(2,t.Section,{title:"Local Storage",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"recycle",onClick:function(){function h(){localStorage.clear(),a.storage.clear()}return h}(),children:"Clear"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Keys in use",children:localStorage.length}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remaining space",children:(0,o.formatSiUnit)(localStorage.remainingSpace,0,"B")})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Local storage is not available."})}},46554:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Tabs",render:function(){function k(){return(0,e.createComponentVNode)(2,b)}return k}()},f=["Tab #1","Tab #2","Tab #3","Tab #4"],b=function(S,y){var h=(0,a.useLocalState)(y,"tabIndex",0),c=h[0],i=h[1],m=(0,a.useLocalState)(y,"tabProps",{}),d=m[0],u=m[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"vertical",checked:d.vertical,onClick:function(){function s(){return u(Object.assign({},d,{vertical:!d.vertical}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"leftSlot",checked:d.leftSlot,onClick:function(){function s(){return u(Object.assign({},d,{leftSlot:!d.leftSlot}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"rightSlot",checked:d.rightSlot,onClick:function(){function s(){return u(Object.assign({},d,{rightSlot:!d.rightSlot}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"icon",checked:d.icon,onClick:function(){function s(){return u(Object.assign({},d,{icon:!d.icon}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"fluid",checked:d.fluid,onClick:function(){function s(){return u(Object.assign({},d,{fluid:!d.fluid}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"left aligned",checked:d.leftAligned,onClick:function(){function s(){return u(Object.assign({},d,{leftAligned:!d.leftAligned}))}return s}()})]}),(0,e.createComponentVNode)(2,t.Section,{fitted:!0,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:d.vertical,fluid:d.fluid,textAlign:d.leftAligned&&"left",children:f.map(function(s,l){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:l===c,icon:d.icon&&"info-circle",leftSlot:d.leftSlot&&(0,e.createComponentVNode)(2,t.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),rightSlot:d.rightSlot&&(0,e.createComponentVNode)(2,t.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),onClick:function(){function v(){return i(l)}return v}(),children:s},l)})})})],4)}},53276:function(w,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** + */var o=r.meta={title:"Tabs",render:function(){function y(){return(0,e.createComponentVNode)(2,b)}return y}()},f=["Tab #1","Tab #2","Tab #3","Tab #4"],b=function(S,k){var h=(0,a.useLocalState)(k,"tabIndex",0),c=h[0],i=h[1],m=(0,a.useLocalState)(k,"tabProps",{}),d=m[0],u=m[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"vertical",checked:d.vertical,onClick:function(){function s(){return u(Object.assign({},d,{vertical:!d.vertical}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"leftSlot",checked:d.leftSlot,onClick:function(){function s(){return u(Object.assign({},d,{leftSlot:!d.leftSlot}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"rightSlot",checked:d.rightSlot,onClick:function(){function s(){return u(Object.assign({},d,{rightSlot:!d.rightSlot}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"icon",checked:d.icon,onClick:function(){function s(){return u(Object.assign({},d,{icon:!d.icon}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"fluid",checked:d.fluid,onClick:function(){function s(){return u(Object.assign({},d,{fluid:!d.fluid}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"left aligned",checked:d.leftAligned,onClick:function(){function s(){return u(Object.assign({},d,{leftAligned:!d.leftAligned}))}return s}()})]}),(0,e.createComponentVNode)(2,t.Section,{fitted:!0,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:d.vertical,fluid:d.fluid,textAlign:d.leftAligned&&"left",children:f.map(function(s,l){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:l===c,icon:d.icon&&"info-circle",leftSlot:d.leftSlot&&(0,e.createComponentVNode)(2,t.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),rightSlot:d.rightSlot&&(0,e.createComponentVNode)(2,t.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),onClick:function(){function v(){return i(l)}return v}(),children:s},l)})})})],4)}},53276:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Themes",render:function(){function b(){return(0,e.createComponentVNode)(2,f)}return b}()},f=function(k,S){var y=(0,a.useLocalState)(S,"kitchenSinkTheme"),h=y[0],c=y[1];return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Use theme",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"theme_name",value:h,onInput:function(){function i(m,d){return c(d)}return i}()})})})})}},28717:function(w,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036);/** + */var o=r.meta={title:"Themes",render:function(){function b(){return(0,e.createComponentVNode)(2,f)}return b}()},f=function(y,S){var k=(0,a.useLocalState)(S,"kitchenSinkTheme"),h=k[0],c=k[1];return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Use theme",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"theme_name",value:h,onInput:function(){function i(m,d){return c(d)}return i}()})})})})}},28717:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t=r.meta={title:"Tooltip",render:function(){function f(){return(0,e.createComponentVNode)(2,o)}return f}()},o=function(){var b=["top","left","right","bottom","bottom-start","bottom-end"];return(0,e.createComponentVNode)(2,a.Section,{children:[(0,e.createComponentVNode)(2,a.Box,{children:[(0,e.createComponentVNode)(2,a.Tooltip,{content:"Tooltip text.",children:(0,e.createComponentVNode)(2,a.Box,{inline:!0,position:"relative",mr:1,children:"Box (hover me)."})}),(0,e.createComponentVNode)(2,a.Button,{tooltip:"Tooltip text.",content:"Button"})]}),(0,e.createComponentVNode)(2,a.Box,{mt:1,children:b.map(function(k){return(0,e.createComponentVNode)(2,a.Button,{color:"transparent",tooltip:"Tooltip text.",tooltipPosition:k,content:k},k)})})]})}},37168:function(w,r,n){"use strict";r.__esModule=!0,r.BoxWithSampleText=void 0;var e=n(89005),a=n(36036);/** + */var t=r.meta={title:"Tooltip",render:function(){function f(){return(0,e.createComponentVNode)(2,o)}return f}()},o=function(){var b=["top","left","right","bottom","bottom-start","bottom-end"];return(0,e.createComponentVNode)(2,a.Section,{children:[(0,e.createComponentVNode)(2,a.Box,{children:[(0,e.createComponentVNode)(2,a.Tooltip,{content:"Tooltip text.",children:(0,e.createComponentVNode)(2,a.Box,{inline:!0,position:"relative",mr:1,children:"Box (hover me)."})}),(0,e.createComponentVNode)(2,a.Button,{tooltip:"Tooltip text.",content:"Button"})]}),(0,e.createComponentVNode)(2,a.Box,{mt:1,children:b.map(function(y){return(0,e.createComponentVNode)(2,a.Button,{color:"transparent",tooltip:"Tooltip text.",tooltipPosition:y,content:y},y)})})]})}},37168:function(T,r,n){"use strict";r.__esModule=!0,r.BoxWithSampleText=void 0;var e=n(89005),a=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t=r.BoxWithSampleText=function(){function o(f){return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({},f,{children:[(0,e.createComponentVNode)(2,a.Box,{italic:!0,children:"Jackdaws love my big sphinx of quartz."}),(0,e.createComponentVNode)(2,a.Box,{mt:1,bold:!0,children:"The wide electrification of the southern provinces will give a powerful impetus to the growth of agriculture."})]})))}return o}()},67160:function(){},23542:function(){},30386:function(){},98996:function(){},50578:function(){},4444:function(){},77870:function(){},23632:function(){},56492:function(){},39108:function(){},11714:function(){},73492:function(){},49641:function(){},17570:function(){},61858:function(){},32882:function(){},70752:function(w,r,n){var e={"./pai_atmosphere.js":80818,"./pai_bioscan.js":23903,"./pai_directives.js":64988,"./pai_doorjack.js":13813,"./pai_main_menu.js":66025,"./pai_manifest.js":2983,"./pai_medrecords.js":40758,"./pai_messenger.js":98599,"./pai_radio.js":50775,"./pai_secrecords.js":48623,"./pai_signaler.js":47297};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,w.exports=a,a.id=70752},59395:function(w,r,n){var e={"./pda_atmos_scan.js":78532,"./pda_janitor.js":40253,"./pda_main_menu.js":58293,"./pda_manifest.js":58059,"./pda_medical.js":18147,"./pda_messenger.js":77595,"./pda_mule.js":24635,"./pda_nanobank.js":23734,"./pda_notes.js":97085,"./pda_power.js":57513,"./pda_secbot.js":99808,"./pda_security.js":77168,"./pda_signaler.js":21773,"./pda_status_display.js":81857,"./pda_supplyrecords.js":70287};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,w.exports=a,a.id=59395},32054:function(w,r,n){var e={"./AICard":1090,"./AICard.js":1090,"./AIFixer":39454,"./AIFixer.js":39454,"./APC":88422,"./APC.js":88422,"./ATM":99660,"./ATM.js":99660,"./AccountsUplinkTerminal":86423,"./AccountsUplinkTerminal.js":86423,"./AiAirlock":56793,"./AiAirlock.js":56793,"./AirAlarm":72475,"./AirAlarm.js":72475,"./AirlockAccessController":12333,"./AirlockAccessController.js":12333,"./AirlockElectronics":28736,"./AirlockElectronics.js":28736,"./AlertModal":47365,"./AlertModal.tsx":47365,"./AppearanceChanger":71824,"./AppearanceChanger.js":71824,"./AtmosAlertConsole":72285,"./AtmosAlertConsole.js":72285,"./AtmosControl":65805,"./AtmosControl.js":65805,"./AtmosFilter":87816,"./AtmosFilter.js":87816,"./AtmosMixer":52977,"./AtmosMixer.js":52977,"./AtmosPump":11748,"./AtmosPump.js":11748,"./AtmosTankControl":69321,"./AtmosTankControl.js":69321,"./Autolathe":59179,"./Autolathe.js":59179,"./BioChipPad":5147,"./BioChipPad.js":5147,"./Biogenerator":64273,"./Biogenerator.js":64273,"./BloomEdit":47823,"./BloomEdit.js":47823,"./BlueSpaceArtilleryControl":18621,"./BlueSpaceArtilleryControl.js":18621,"./BluespaceTap":27629,"./BluespaceTap.js":27629,"./BodyScanner":33758,"./BodyScanner.js":33758,"./BookBinder":67963,"./BookBinder.js":67963,"./BotCall":61925,"./BotCall.js":61925,"./BotClean":20464,"./BotClean.js":20464,"./BotFloor":69479,"./BotFloor.js":69479,"./BotHonk":59887,"./BotHonk.js":59887,"./BotMed":80063,"./BotMed.js":80063,"./BotSecurity":74439,"./BotSecurity.js":74439,"./BrigCells":10833,"./BrigCells.js":10833,"./BrigTimer":45761,"./BrigTimer.js":45761,"./CameraConsole":26300,"./CameraConsole.js":26300,"./Canister":52927,"./Canister.js":52927,"./CardComputer":51793,"./CardComputer.js":51793,"./CargoConsole":64083,"./CargoConsole.js":64083,"./ChangelogView":87331,"./ChangelogView.js":87331,"./ChemDispenser":36108,"./ChemDispenser.js":36108,"./ChemHeater":13146,"./ChemHeater.js":13146,"./ChemMaster":56541,"./ChemMaster.tsx":56541,"./CloningConsole":37173,"./CloningConsole.js":37173,"./CloningPod":98723,"./CloningPod.js":98723,"./CoinMint":18259,"./CoinMint.tsx":18259,"./ColourMatrixTester":8444,"./ColourMatrixTester.js":8444,"./CommunicationsComputer":63818,"./CommunicationsComputer.js":63818,"./CompostBin":20562,"./CompostBin.js":20562,"./Contractor":21813,"./Contractor.js":21813,"./ConveyorSwitch":54151,"./ConveyorSwitch.js":54151,"./CrewMonitor":73169,"./CrewMonitor.js":73169,"./Cryo":63987,"./Cryo.js":63987,"./CryopodConsole":86099,"./CryopodConsole.js":86099,"./DNAModifier":12692,"./DNAModifier.js":12692,"./DestinationTagger":41074,"./DestinationTagger.js":41074,"./DisposalBin":46500,"./DisposalBin.js":46500,"./DnaVault":33233,"./DnaVault.js":33233,"./DroneConsole":33681,"./DroneConsole.js":33681,"./EFTPOS":17263,"./EFTPOS.js":17263,"./ERTManager":76382,"./ERTManager.js":76382,"./EconomyManager":90217,"./EconomyManager.js":90217,"./Electropack":82565,"./Electropack.js":82565,"./Emojipedia":11243,"./Emojipedia.tsx":11243,"./EvolutionMenu":36730,"./EvolutionMenu.js":36730,"./ExosuitFabricator":17370,"./ExosuitFabricator.js":17370,"./ExperimentConsole":59128,"./ExperimentConsole.js":59128,"./ExternalAirlockController":97086,"./ExternalAirlockController.js":97086,"./FaxMachine":96142,"./FaxMachine.js":96142,"./FilingCabinet":74123,"./FilingCabinet.js":74123,"./FloorPainter":83767,"./FloorPainter.js":83767,"./GPS":53424,"./GPS.js":53424,"./GeneModder":89124,"./GeneModder.js":89124,"./GenericCrewManifest":73053,"./GenericCrewManifest.js":73053,"./GhostHudPanel":42914,"./GhostHudPanel.js":42914,"./GlandDispenser":25825,"./GlandDispenser.js":25825,"./GravityGen":10270,"./GravityGen.js":10270,"./GuestPass":48657,"./GuestPass.js":48657,"./HandheldChemDispenser":67834,"./HandheldChemDispenser.js":67834,"./HealthSensor":46098,"./HealthSensor.js":46098,"./Holodeck":36771,"./Holodeck.js":36771,"./Instrument":25471,"./Instrument.js":25471,"./KeyComboModal":13618,"./KeyComboModal.tsx":13618,"./KeycardAuth":35655,"./KeycardAuth.js":35655,"./KitchenMachine":62955,"./KitchenMachine.js":62955,"./LawManager":9525,"./LawManager.js":9525,"./LibraryComputer":85066,"./LibraryComputer.js":85066,"./LibraryManager":9516,"./LibraryManager.js":9516,"./ListInputModal":90447,"./ListInputModal.tsx":90447,"./MODsuit":77613,"./MODsuit.js":77613,"./MagnetController":78624,"./MagnetController.js":78624,"./MechBayConsole":72106,"./MechBayConsole.js":72106,"./MechaControlConsole":7466,"./MechaControlConsole.js":7466,"./MedicalRecords":79625,"./MedicalRecords.js":79625,"./MerchVendor":54989,"./MerchVendor.js":54989,"./MiningVendor":87684,"./MiningVendor.js":87684,"./NTRecruiter":59783,"./NTRecruiter.js":59783,"./Newscaster":64713,"./Newscaster.js":64713,"./Noticeboard":48286,"./Noticeboard.tsx":48286,"./NuclearBomb":41166,"./NuclearBomb.js":41166,"./NumberInputModal":52416,"./NumberInputModal.tsx":52416,"./OperatingComputer":1218,"./OperatingComputer.js":1218,"./Orbit":46892,"./Orbit.js":46892,"./OreRedemption":15421,"./OreRedemption.js":15421,"./PAI":52754,"./PAI.js":52754,"./PDA":85175,"./PDA.js":85175,"./Pacman":68654,"./Pacman.js":68654,"./PanDEMIC":1701,"./PanDEMIC.tsx":1701,"./ParticleAccelerator":67921,"./ParticleAccelerator.js":67921,"./PdaPainter":71432,"./PdaPainter.js":71432,"./PersonalCrafting":33388,"./PersonalCrafting.js":33388,"./Photocopier":56150,"./Photocopier.js":56150,"./PoolController":84676,"./PoolController.js":84676,"./PortablePump":57003,"./PortablePump.js":57003,"./PortableScrubber":70069,"./PortableScrubber.js":70069,"./PortableTurret":59955,"./PortableTurret.js":59955,"./PowerMonitor":61631,"./PowerMonitor.js":61631,"./PrisonerImplantManager":50992,"./PrisonerImplantManager.js":50992,"./PrisonerShuttleConsole":53952,"./PrisonerShuttleConsole.js":53952,"./PrizeCounter":97852,"./PrizeCounter.tsx":97852,"./RCD":94813,"./RCD.js":94813,"./RPD":18738,"./RPD.js":18738,"./Radio":80299,"./Radio.js":80299,"./ReagentGrinder":48125,"./ReagentGrinder.js":48125,"./ReagentsEditor":58262,"./ReagentsEditor.tsx":58262,"./RemoteSignaler":30207,"./RemoteSignaler.js":30207,"./RequestConsole":25472,"./RequestConsole.js":25472,"./RndConsole":12644,"./RndConsole/":12644,"./RndConsole/DataDiskMenu":37556,"./RndConsole/DataDiskMenu.js":37556,"./RndConsole/DeconstructionMenu":58147,"./RndConsole/DeconstructionMenu.js":58147,"./RndConsole/LatheCategory":16830,"./RndConsole/LatheCategory.js":16830,"./RndConsole/LatheChemicalStorage":70497,"./RndConsole/LatheChemicalStorage.js":70497,"./RndConsole/LatheMainMenu":70864,"./RndConsole/LatheMainMenu.js":70864,"./RndConsole/LatheMaterialStorage":42878,"./RndConsole/LatheMaterialStorage.js":42878,"./RndConsole/LatheMaterials":52662,"./RndConsole/LatheMaterials.js":52662,"./RndConsole/LatheMenu":9681,"./RndConsole/LatheMenu.js":9681,"./RndConsole/LatheSearch":68198,"./RndConsole/LatheSearch.js":68198,"./RndConsole/SettingsMenu":6256,"./RndConsole/SettingsMenu.js":6256,"./RndConsole/index":12644,"./RndConsole/index.js":12644,"./RobotSelfDiagnosis":26109,"./RobotSelfDiagnosis.js":26109,"./RoboticsControlConsole":97997,"./RoboticsControlConsole.js":97997,"./Safe":54431,"./Safe.js":54431,"./SatelliteControl":29740,"./SatelliteControl.js":29740,"./SecureStorage":44162,"./SecureStorage.js":44162,"./SecurityRecords":6272,"./SecurityRecords.js":6272,"./SeedExtractor":5099,"./SeedExtractor.js":5099,"./ShuttleConsole":2916,"./ShuttleConsole.js":2916,"./ShuttleManipulator":39401,"./ShuttleManipulator.js":39401,"./Sleeper":88284,"./Sleeper.js":88284,"./SlotMachine":21597,"./SlotMachine.js":21597,"./Smartfridge":46348,"./Smartfridge.js":46348,"./Smes":86162,"./Smes.js":86162,"./SolarControl":63584,"./SolarControl.js":63584,"./SpawnersMenu":38096,"./SpawnersMenu.js":38096,"./SpecMenu":30586,"./SpecMenu.js":30586,"./StackCraft":95152,"./StackCraft.js":95152,"./StationAlertConsole":38307,"./StationAlertConsole.js":38307,"./StationTraitsPanel":96091,"./StationTraitsPanel.tsx":96091,"./StripMenu":39409,"./StripMenu.tsx":39409,"./SuitStorage":69514,"./SuitStorage.js":69514,"./SupermatterMonitor":15022,"./SupermatterMonitor.js":15022,"./SyndicateComputerSimple":46029,"./SyndicateComputerSimple.js":46029,"./TEG":36372,"./TEG.js":36372,"./TachyonArray":56441,"./TachyonArray.js":56441,"./Tank":1754,"./Tank.js":1754,"./TankDispenser":7579,"./TankDispenser.js":7579,"./TcommsCore":16136,"./TcommsCore.js":16136,"./TcommsRelay":88046,"./TcommsRelay.js":88046,"./Teleporter":20802,"./Teleporter.js":20802,"./TelescienceConsole":48517,"./TelescienceConsole.js":48517,"./TempGun":21800,"./TempGun.js":21800,"./TextInputModal":24410,"./TextInputModal.tsx":24410,"./ThermoMachine":25036,"./ThermoMachine.js":25036,"./TransferValve":20035,"./TransferValve.js":20035,"./TurbineComputer":78166,"./TurbineComputer.js":78166,"./Uplink":52847,"./Uplink.js":52847,"./Vending":12261,"./Vending.js":12261,"./VolumeMixer":68971,"./VolumeMixer.js":68971,"./VotePanel":2510,"./VotePanel.js":2510,"./Wires":30138,"./Wires.js":30138,"./WizardApprenticeContract":21400,"./WizardApprenticeContract.js":21400,"./common/AccessList":49148,"./common/AccessList.js":49148,"./common/AtmosScan":26991,"./common/AtmosScan.js":26991,"./common/BeakerContents":85870,"./common/BeakerContents.js":85870,"./common/BotStatus":92963,"./common/BotStatus.js":92963,"./common/ComplexModal":3939,"./common/ComplexModal.js":3939,"./common/CrewManifest":41874,"./common/CrewManifest.js":41874,"./common/InputButtons":19203,"./common/InputButtons.tsx":19203,"./common/InterfaceLockNoticeBox":195,"./common/InterfaceLockNoticeBox.js":195,"./common/Loader":51057,"./common/Loader.tsx":51057,"./common/LoginInfo":321,"./common/LoginInfo.js":321,"./common/LoginScreen":5485,"./common/LoginScreen.js":5485,"./common/Operating":62411,"./common/Operating.js":62411,"./common/Signaler":13545,"./common/Signaler.js":13545,"./common/SimpleRecords":41984,"./common/SimpleRecords.js":41984,"./common/TemporaryNotice":22091,"./common/TemporaryNotice.js":22091,"./pai/pai_atmosphere":80818,"./pai/pai_atmosphere.js":80818,"./pai/pai_bioscan":23903,"./pai/pai_bioscan.js":23903,"./pai/pai_directives":64988,"./pai/pai_directives.js":64988,"./pai/pai_doorjack":13813,"./pai/pai_doorjack.js":13813,"./pai/pai_main_menu":66025,"./pai/pai_main_menu.js":66025,"./pai/pai_manifest":2983,"./pai/pai_manifest.js":2983,"./pai/pai_medrecords":40758,"./pai/pai_medrecords.js":40758,"./pai/pai_messenger":98599,"./pai/pai_messenger.js":98599,"./pai/pai_radio":50775,"./pai/pai_radio.js":50775,"./pai/pai_secrecords":48623,"./pai/pai_secrecords.js":48623,"./pai/pai_signaler":47297,"./pai/pai_signaler.js":47297,"./pda/pda_atmos_scan":78532,"./pda/pda_atmos_scan.js":78532,"./pda/pda_janitor":40253,"./pda/pda_janitor.js":40253,"./pda/pda_main_menu":58293,"./pda/pda_main_menu.js":58293,"./pda/pda_manifest":58059,"./pda/pda_manifest.js":58059,"./pda/pda_medical":18147,"./pda/pda_medical.js":18147,"./pda/pda_messenger":77595,"./pda/pda_messenger.js":77595,"./pda/pda_mule":24635,"./pda/pda_mule.js":24635,"./pda/pda_nanobank":23734,"./pda/pda_nanobank.js":23734,"./pda/pda_notes":97085,"./pda/pda_notes.js":97085,"./pda/pda_power":57513,"./pda/pda_power.js":57513,"./pda/pda_secbot":99808,"./pda/pda_secbot.js":99808,"./pda/pda_security":77168,"./pda/pda_security.js":77168,"./pda/pda_signaler":21773,"./pda/pda_signaler.js":21773,"./pda/pda_status_display":81857,"./pda/pda_status_display.js":81857,"./pda/pda_supplyrecords":70287,"./pda/pda_supplyrecords.js":70287};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,w.exports=a,a.id=32054},4085:function(w,r,n){var e={"./Blink.stories.js":51364,"./BlockQuote.stories.js":32453,"./Box.stories.js":83531,"./Button.stories.js":74198,"./ByondUi.stories.js":51956,"./Collapsible.stories.js":17466,"./Flex.stories.js":89241,"./ImageButton.stories.js":48779,"./Input.stories.js":21394,"./Popper.stories.js":43932,"./ProgressBar.stories.js":33270,"./Stack.stories.js":77766,"./Storage.stories.js":30187,"./Tabs.stories.js":46554,"./Themes.stories.js":53276,"./Tooltip.stories.js":28717};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,w.exports=a,a.id=4085},10320:function(w,r,n){"use strict";var e=n(55747),a=n(89393),t=TypeError;w.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a function")}},32606:function(w,r,n){"use strict";var e=n(1031),a=n(89393),t=TypeError;w.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a constructor")}},35908:function(w,r,n){"use strict";var e=n(45015),a=String,t=TypeError;w.exports=function(o){if(e(o))return o;throw new t("Can't set "+a(o)+" as a prototype")}},80575:function(w,r,n){"use strict";var e=n(24697),a=n(80674),t=n(74595).f,o=e("unscopables"),f=Array.prototype;f[o]===void 0&&t(f,o,{configurable:!0,value:a(null)}),w.exports=function(b){f[o][b]=!0}},35483:function(w,r,n){"use strict";var e=n(50233).charAt;w.exports=function(a,t,o){return t+(o?e(a,t).length:1)}},60077:function(w,r,n){"use strict";var e=n(21287),a=TypeError;w.exports=function(t,o){if(e(o,t))return t;throw new a("Incorrect invocation")}},30365:function(w,r,n){"use strict";var e=n(77568),a=String,t=TypeError;w.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not an object")}},70377:function(w){"use strict";w.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},3782:function(w,r,n){"use strict";var e=n(40033);w.exports=e(function(){if(typeof ArrayBuffer=="function"){var a=new ArrayBuffer(8);Object.isExtensible(a)&&Object.defineProperty(a,"a",{value:8})}})},4246:function(w,r,n){"use strict";var e=n(70377),a=n(58310),t=n(74685),o=n(55747),f=n(77568),b=n(45299),k=n(2281),S=n(89393),y=n(37909),h=n(55938),c=n(73936),i=n(21287),m=n(36917),d=n(76649),u=n(24697),s=n(16738),l=n(5419),v=l.enforce,N=l.get,C=t.Int8Array,p=C&&C.prototype,g=t.Uint8ClampedArray,V=g&&g.prototype,I=C&&m(C),B=p&&m(p),L=Object.prototype,T=t.TypeError,A=u("toStringTag"),x=s("TYPED_ARRAY_TAG"),E="TypedArrayConstructor",P=e&&!!d&&k(t.opera)!=="Opera",j=!1,M,R,D,W={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},_={BigInt64Array:8,BigUint64Array:8},U=function(){function ne(se){if(!f(se))return!1;var Ce=k(se);return Ce==="DataView"||b(W,Ce)||b(_,Ce)}return ne}(),K=function ne(se){var Ce=m(se);if(f(Ce)){var Se=N(Ce);return Se&&b(Se,E)?Se[E]:ne(Ce)}},G=function(se){if(!f(se))return!1;var Ce=k(se);return b(W,Ce)||b(_,Ce)},$=function(se){if(G(se))return se;throw new T("Target is not a typed array")},Q=function(se){if(o(se)&&(!d||i(I,se)))return se;throw new T(S(se)+" is not a typed array constructor")},J=function(se,Ce,Se,ke){if(a){if(Se)for(var he in W){var oe=t[he];if(oe&&b(oe.prototype,se))try{delete oe.prototype[se]}catch(ce){try{oe.prototype[se]=Ce}catch(ee){}}}(!B[se]||Se)&&h(B,se,Se?Ce:P&&p[se]||Ce,ke)}},ie=function(se,Ce,Se){var ke,he;if(a){if(d){if(Se){for(ke in W)if(he=t[ke],he&&b(he,se))try{delete he[se]}catch(oe){}}if(!I[se]||Se)try{return h(I,se,Se?Ce:P&&I[se]||Ce)}catch(oe){}else return}for(ke in W)he=t[ke],he&&(!he[se]||Se)&&h(he,se,Ce)}};for(M in W)R=t[M],D=R&&R.prototype,D?v(D)[E]=R:P=!1;for(M in _)R=t[M],D=R&&R.prototype,D&&(v(D)[E]=R);if((!P||!o(I)||I===Function.prototype)&&(I=function(){function ne(){throw new T("Incorrect invocation")}return ne}(),P))for(M in W)t[M]&&d(t[M],I);if((!P||!B||B===L)&&(B=I.prototype,P))for(M in W)t[M]&&d(t[M].prototype,B);if(P&&m(V)!==B&&d(V,B),a&&!b(B,A)){j=!0,c(B,A,{configurable:!0,get:function(){function ne(){return f(this)?this[x]:void 0}return ne}()});for(M in W)t[M]&&y(t[M],x,M)}w.exports={NATIVE_ARRAY_BUFFER_VIEWS:P,TYPED_ARRAY_TAG:j&&x,aTypedArray:$,aTypedArrayConstructor:Q,exportTypedArrayMethod:J,exportTypedArrayStaticMethod:ie,getTypedArrayConstructor:K,isView:U,isTypedArray:G,TypedArray:I,TypedArrayPrototype:B}},37336:function(w,r,n){"use strict";var e=n(74685),a=n(67250),t=n(58310),o=n(70377),f=n(70520),b=n(37909),k=n(73936),S=n(30145),y=n(40033),h=n(60077),c=n(61365),i=n(10188),m=n(43806),d=n(95867),u=n(91784),s=n(36917),l=n(76649),v=n(88471),N=n(54602),C=n(5781),p=n(5774),g=n(84925),V=n(5419),I=f.PROPER,B=f.CONFIGURABLE,L="ArrayBuffer",T="DataView",A="prototype",x="Wrong length",E="Wrong index",P=V.getterFor(L),j=V.getterFor(T),M=V.set,R=e[L],D=R,W=D&&D[A],_=e[T],U=_&&_[A],K=Object.prototype,G=e.Array,$=e.RangeError,Q=a(v),J=a([].reverse),ie=u.pack,ne=u.unpack,se=function(ve){return[ve&255]},Ce=function(ve){return[ve&255,ve>>8&255]},Se=function(ve){return[ve&255,ve>>8&255,ve>>16&255,ve>>24&255]},ke=function(ve){return ve[3]<<24|ve[2]<<16|ve[1]<<8|ve[0]},he=function(ve){return ie(d(ve),23,4)},oe=function(ve){return ie(ve,52,8)},ce=function(ve,Be,ge){k(ve[A],Be,{configurable:!0,get:function(){function Le(){return ge(this)[Be]}return Le}()})},ee=function(ve,Be,ge,Le){var we=j(ve),xe=m(ge),Re=!!Le;if(xe+Be>we.byteLength)throw new $(E);var ze=we.bytes,Ve=xe+we.byteOffset,re=N(ze,Ve,Ve+Be);return Re?re:J(re)},fe=function(ve,Be,ge,Le,we,xe){var Re=j(ve),ze=m(ge),Ve=Le(+we),re=!!xe;if(ze+Be>Re.byteLength)throw new $(E);for(var le=Re.bytes,Ne=ze+Re.byteOffset,de=0;dewe)throw new $("Wrong offset");if(ge=ge===void 0?we-xe:i(ge),xe+ge>we)throw new $(x);M(this,{type:T,buffer:ve,byteLength:ge,byteOffset:xe,bytes:Le.bytes}),t||(this.buffer=ve,this.byteLength=ge,this.byteOffset=xe)}return pe}(),U=_[A],t&&(ce(D,"byteLength",P),ce(_,"buffer",j),ce(_,"byteLength",j),ce(_,"byteOffset",j)),S(U,{getInt8:function(){function pe(ve){return ee(this,1,ve)[0]<<24>>24}return pe}(),getUint8:function(){function pe(ve){return ee(this,1,ve)[0]}return pe}(),getInt16:function(){function pe(ve){var Be=ee(this,2,ve,arguments.length>1?arguments[1]:!1);return(Be[1]<<8|Be[0])<<16>>16}return pe}(),getUint16:function(){function pe(ve){var Be=ee(this,2,ve,arguments.length>1?arguments[1]:!1);return Be[1]<<8|Be[0]}return pe}(),getInt32:function(){function pe(ve){return ke(ee(this,4,ve,arguments.length>1?arguments[1]:!1))}return pe}(),getUint32:function(){function pe(ve){return ke(ee(this,4,ve,arguments.length>1?arguments[1]:!1))>>>0}return pe}(),getFloat32:function(){function pe(ve){return ne(ee(this,4,ve,arguments.length>1?arguments[1]:!1),23)}return pe}(),getFloat64:function(){function pe(ve){return ne(ee(this,8,ve,arguments.length>1?arguments[1]:!1),52)}return pe}(),setInt8:function(){function pe(ve,Be){fe(this,1,ve,se,Be)}return pe}(),setUint8:function(){function pe(ve,Be){fe(this,1,ve,se,Be)}return pe}(),setInt16:function(){function pe(ve,Be){fe(this,2,ve,Ce,Be,arguments.length>2?arguments[2]:!1)}return pe}(),setUint16:function(){function pe(ve,Be){fe(this,2,ve,Ce,Be,arguments.length>2?arguments[2]:!1)}return pe}(),setInt32:function(){function pe(ve,Be){fe(this,4,ve,Se,Be,arguments.length>2?arguments[2]:!1)}return pe}(),setUint32:function(){function pe(ve,Be){fe(this,4,ve,Se,Be,arguments.length>2?arguments[2]:!1)}return pe}(),setFloat32:function(){function pe(ve,Be){fe(this,4,ve,he,Be,arguments.length>2?arguments[2]:!1)}return pe}(),setFloat64:function(){function pe(ve,Be){fe(this,8,ve,oe,Be,arguments.length>2?arguments[2]:!1)}return pe}()});else{var me=I&&R.name!==L;!y(function(){R(1)})||!y(function(){new R(-1)})||y(function(){return new R,new R(1.5),new R(NaN),R.length!==1||me&&!B})?(D=function(){function pe(ve){return h(this,W),C(new R(m(ve)),this,D)}return pe}(),D[A]=W,W.constructor=D,p(D,R)):me&&B&&b(R,"name",L),l&&s(U)!==K&&l(U,K);var te=new _(new D(2)),be=a(U.setInt8);te.setInt8(0,2147483648),te.setInt8(1,2147483649),(te.getInt8(0)||!te.getInt8(1))&&S(U,{setInt8:function(){function pe(ve,Be){be(this,ve,Be<<24>>24)}return pe}(),setUint8:function(){function pe(ve,Be){be(this,ve,Be<<24>>24)}return pe}()},{unsafe:!0})}g(D,L),g(_,T),w.exports={ArrayBuffer:D,DataView:_}},71447:function(w,r,n){"use strict";var e=n(46771),a=n(13912),t=n(24760),o=n(95108),f=Math.min;w.exports=[].copyWithin||function(){function b(k,S){var y=e(this),h=t(y),c=a(k,h),i=a(S,h),m=arguments.length>2?arguments[2]:void 0,d=f((m===void 0?h:a(m,h))-i,h-c),u=1;for(i0;)i in y?y[c]=y[i]:o(y,c),c+=u,i+=u;return y}return b}()},88471:function(w,r,n){"use strict";var e=n(46771),a=n(13912),t=n(24760);w.exports=function(){function o(f){for(var b=e(this),k=t(b),S=arguments.length,y=a(S>1?arguments[1]:void 0,k),h=S>2?arguments[2]:void 0,c=h===void 0?k:a(h,k);c>y;)b[y++]=f;return b}return o}()},35601:function(w,r,n){"use strict";var e=n(22603).forEach,a=n(55528),t=a("forEach");w.exports=t?[].forEach:function(){function o(f){return e(this,f,arguments.length>1?arguments[1]:void 0)}return o}()},78008:function(w,r,n){"use strict";var e=n(24760);w.exports=function(a,t,o){for(var f=0,b=arguments.length>2?o:e(t),k=new a(b);b>f;)k[f]=t[f++];return k}},73174:function(w,r,n){"use strict";var e=n(75754),a=n(91495),t=n(46771),o=n(40125),f=n(76571),b=n(1031),k=n(24760),S=n(60102),y=n(77455),h=n(59201),c=Array;w.exports=function(){function i(m){var d=t(m),u=b(this),s=arguments.length,l=s>1?arguments[1]:void 0,v=l!==void 0;v&&(l=e(l,s>2?arguments[2]:void 0));var N=h(d),C=0,p,g,V,I,B,L;if(N&&!(this===c&&f(N)))for(g=u?new this:[],I=y(d,N),B=I.next;!(V=a(B,I)).done;C++)L=v?o(I,l,[V.value,C],!0):V.value,S(g,C,L);else for(p=k(d),g=u?new this(p):c(p);p>C;C++)L=v?l(d[C],C):d[C],S(g,C,L);return g.length=C,g}return i}()},14211:function(w,r,n){"use strict";var e=n(57591),a=n(13912),t=n(24760),o=function(b){return function(k,S,y){var h=e(k),c=t(h);if(c===0)return!b&&-1;var i=a(y,c),m;if(b&&S!==S){for(;c>i;)if(m=h[i++],m!==m)return!0}else for(;c>i;i++)if((b||i in h)&&h[i]===S)return b||i||0;return!b&&-1}};w.exports={includes:o(!0),indexOf:o(!1)}},22603:function(w,r,n){"use strict";var e=n(75754),a=n(67250),t=n(37457),o=n(46771),f=n(24760),b=n(57823),k=a([].push),S=function(h){var c=h===1,i=h===2,m=h===3,d=h===4,u=h===6,s=h===7,l=h===5||u;return function(v,N,C,p){for(var g=o(v),V=t(g),I=f(V),B=e(N,C),L=0,T=p||b,A=c?T(v,I):i||s?T(v,0):void 0,x,E;I>L;L++)if((l||L in V)&&(x=V[L],E=B(x,L,g),h))if(c)A[L]=E;else if(E)switch(h){case 3:return!0;case 5:return x;case 6:return L;case 2:k(A,x)}else switch(h){case 4:return!1;case 7:k(A,x)}return u?-1:m||d?d:A}};w.exports={forEach:S(0),map:S(1),filter:S(2),some:S(3),every:S(4),find:S(5),findIndex:S(6),filterReject:S(7)}},1325:function(w,r,n){"use strict";var e=n(61267),a=n(57591),t=n(61365),o=n(24760),f=n(55528),b=Math.min,k=[].lastIndexOf,S=!!k&&1/[1].lastIndexOf(1,-0)<0,y=f("lastIndexOf"),h=S||!y;w.exports=h?function(){function c(i){if(S)return e(k,this,arguments)||0;var m=a(this),d=o(m);if(d===0)return-1;var u=d-1;for(arguments.length>1&&(u=b(u,t(arguments[1]))),u<0&&(u=d+u);u>=0;u--)if(u in m&&m[u]===i)return u||0;return-1}return c}():k},44091:function(w,r,n){"use strict";var e=n(40033),a=n(24697),t=n(5026),o=a("species");w.exports=function(f){return t>=51||!e(function(){var b=[],k=b.constructor={};return k[o]=function(){return{foo:1}},b[f](Boolean).foo!==1})}},55528:function(w,r,n){"use strict";var e=n(40033);w.exports=function(a,t){var o=[][a];return!!o&&e(function(){o.call(null,t||function(){return 1},1)})}},56844:function(w,r,n){"use strict";var e=n(10320),a=n(46771),t=n(37457),o=n(24760),f=TypeError,b="Reduce of empty array with no initial value",k=function(y){return function(h,c,i,m){var d=a(h),u=t(d),s=o(d);if(e(c),s===0&&i<2)throw new f(b);var l=y?s-1:0,v=y?-1:1;if(i<2)for(;;){if(l in u){m=u[l],l+=v;break}if(l+=v,y?l<0:s<=l)throw new f(b)}for(;y?l>=0:s>l;l+=v)l in u&&(m=c(m,u[l],l,d));return m}};w.exports={left:k(!1),right:k(!0)}},13345:function(w,r,n){"use strict";var e=n(58310),a=n(37386),t=TypeError,o=Object.getOwnPropertyDescriptor,f=e&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(b){return b instanceof TypeError}}();w.exports=f?function(b,k){if(a(b)&&!o(b,"length").writable)throw new t("Cannot set read only .length");return b.length=k}:function(b,k){return b.length=k}},54602:function(w,r,n){"use strict";var e=n(67250);w.exports=e([].slice)},90274:function(w,r,n){"use strict";var e=n(54602),a=Math.floor,t=function o(f,b){var k=f.length;if(k<8)for(var S=1,y,h;S0;)f[h]=f[--h];h!==S++&&(f[h]=y)}else for(var c=a(k/2),i=o(e(f,0,c),b),m=o(e(f,c),b),d=i.length,u=m.length,s=0,l=0;s1?arguments[1]:void 0),E;E=E?E.next:A.first;)for(x(E.value,E.key,this);E&&E.removed;)E=E.previous}return L}(),has:function(){function L(T){return!!B(this,T)}return L}()}),t(g,N?{get:function(){function L(T){var A=B(this,T);return A&&A.value}return L}(),set:function(){function L(T,A){return I(this,T===0?0:T,A)}return L}()}:{add:function(){function L(T){return I(this,T=T===0?0:T,T)}return L}()}),c&&a(g,"size",{configurable:!0,get:function(){function L(){return V(this).size}return L}()}),p}return s}(),setStrong:function(){function s(l,v,N){var C=v+" Iterator",p=u(v),g=u(C);S(l,v,function(V,I){d(this,{type:C,target:V,state:p(V),kind:I,last:void 0})},function(){for(var V=g(this),I=V.kind,B=V.last;B&&B.removed;)B=B.previous;return!V.target||!(V.last=B=B?B.next:V.state.first)?(V.target=void 0,y(void 0,!0)):y(I==="keys"?B.key:I==="values"?B.value:[B.key,B.value],!1)},N?"entries":"values",!N,!0),h(v)}return s}()}},39895:function(w,r,n){"use strict";var e=n(67250),a=n(30145),t=n(81969).getWeakData,o=n(60077),f=n(30365),b=n(42871),k=n(77568),S=n(49450),y=n(22603),h=n(45299),c=n(5419),i=c.set,m=c.getterFor,d=y.find,u=y.findIndex,s=e([].splice),l=0,v=function(g){return g.frozen||(g.frozen=new N)},N=function(){this.entries=[]},C=function(g,V){return d(g.entries,function(I){return I[0]===V})};N.prototype={get:function(){function p(g){var V=C(this,g);if(V)return V[1]}return p}(),has:function(){function p(g){return!!C(this,g)}return p}(),set:function(){function p(g,V){var I=C(this,g);I?I[1]=V:this.entries.push([g,V])}return p}(),delete:function(){function p(g){var V=u(this.entries,function(I){return I[0]===g});return~V&&s(this.entries,V,1),!!~V}return p}()},w.exports={getConstructor:function(){function p(g,V,I,B){var L=g(function(E,P){o(E,T),i(E,{type:V,id:l++,frozen:void 0}),b(P)||S(P,E[B],{that:E,AS_ENTRIES:I})}),T=L.prototype,A=m(V),x=function(){function E(P,j,M){var R=A(P),D=t(f(j),!0);return D===!0?v(R).set(j,M):D[R.id]=M,P}return E}();return a(T,{delete:function(){function E(P){var j=A(this);if(!k(P))return!1;var M=t(P);return M===!0?v(j).delete(P):M&&h(M,j.id)&&delete M[j.id]}return E}(),has:function(){function E(P){var j=A(this);if(!k(P))return!1;var M=t(P);return M===!0?v(j).has(P):M&&h(M,j.id)}return E}()}),a(T,I?{get:function(){function E(P){var j=A(this);if(k(P)){var M=t(P);return M===!0?v(j).get(P):M?M[j.id]:void 0}}return E}(),set:function(){function E(P,j){return x(this,P,j)}return E}()}:{add:function(){function E(P){return x(this,P,!0)}return E}()}),L}return p}()}},45150:function(w,r,n){"use strict";var e=n(63964),a=n(74685),t=n(67250),o=n(41314),f=n(55938),b=n(81969),k=n(49450),S=n(60077),y=n(55747),h=n(42871),c=n(77568),i=n(40033),m=n(92490),d=n(84925),u=n(5781);w.exports=function(s,l,v){var N=s.indexOf("Map")!==-1,C=s.indexOf("Weak")!==-1,p=N?"set":"add",g=a[s],V=g&&g.prototype,I=g,B={},L=function(R){var D=t(V[R]);f(V,R,R==="add"?function(){function W(_){return D(this,_===0?0:_),this}return W}():R==="delete"?function(W){return C&&!c(W)?!1:D(this,W===0?0:W)}:R==="get"?function(){function W(_){return C&&!c(_)?void 0:D(this,_===0?0:_)}return W}():R==="has"?function(){function W(_){return C&&!c(_)?!1:D(this,_===0?0:_)}return W}():function(){function W(_,U){return D(this,_===0?0:_,U),this}return W}())},T=o(s,!y(g)||!(C||V.forEach&&!i(function(){new g().entries().next()})));if(T)I=v.getConstructor(l,s,N,p),b.enable();else if(o(s,!0)){var A=new I,x=A[p](C?{}:-0,1)!==A,E=i(function(){A.has(1)}),P=m(function(M){new g(M)}),j=!C&&i(function(){for(var M=new g,R=5;R--;)M[p](R,R);return!M.has(-0)});P||(I=l(function(M,R){S(M,V);var D=u(new g,M,I);return h(R)||k(R,D[p],{that:D,AS_ENTRIES:N}),D}),I.prototype=V,V.constructor=I),(E||j)&&(L("delete"),L("has"),N&&L("get")),(j||x)&&L(p),C&&V.clear&&delete V.clear}return B[s]=I,e({global:!0,constructor:!0,forced:I!==g},B),d(I,s),C||v.setStrong(I,s,N),I}},5774:function(w,r,n){"use strict";var e=n(45299),a=n(97921),t=n(27193),o=n(74595);w.exports=function(f,b,k){for(var S=a(b),y=o.f,h=t.f,c=0;c"+h+""}},5959:function(w){"use strict";w.exports=function(r,n){return{value:r,done:n}}},37909:function(w,r,n){"use strict";var e=n(58310),a=n(74595),t=n(87458);w.exports=e?function(o,f,b){return a.f(o,f,t(1,b))}:function(o,f,b){return o[f]=b,o}},87458:function(w){"use strict";w.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}},60102:function(w,r,n){"use strict";var e=n(58310),a=n(74595),t=n(87458);w.exports=function(o,f,b){e?a.f(o,f,t(0,b)):o[f]=b}},67206:function(w,r,n){"use strict";var e=n(67250),a=n(40033),t=n(24051).start,o=RangeError,f=isFinite,b=Math.abs,k=Date.prototype,S=k.toISOString,y=e(k.getTime),h=e(k.getUTCDate),c=e(k.getUTCFullYear),i=e(k.getUTCHours),m=e(k.getUTCMilliseconds),d=e(k.getUTCMinutes),u=e(k.getUTCMonth),s=e(k.getUTCSeconds);w.exports=a(function(){return S.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!a(function(){S.call(new Date(NaN))})?function(){function l(){if(!f(y(this)))throw new o("Invalid time value");var v=this,N=c(v),C=m(v),p=N<0?"-":N>9999?"+":"";return p+t(b(N),p?6:4,0)+"-"+t(u(v)+1,2,0)+"-"+t(h(v),2,0)+"T"+t(i(v),2,0)+":"+t(d(v),2,0)+":"+t(s(v),2,0)+"."+t(C,3,0)+"Z"}return l}():S},10886:function(w,r,n){"use strict";var e=n(30365),a=n(13396),t=TypeError;w.exports=function(o){if(e(this),o==="string"||o==="default")o="string";else if(o!=="number")throw new t("Incorrect hint");return a(this,o)}},73936:function(w,r,n){"use strict";var e=n(20001),a=n(74595);w.exports=function(t,o,f){return f.get&&e(f.get,o,{getter:!0}),f.set&&e(f.set,o,{setter:!0}),a.f(t,o,f)}},55938:function(w,r,n){"use strict";var e=n(55747),a=n(74595),t=n(20001),o=n(18231);w.exports=function(f,b,k,S){S||(S={});var y=S.enumerable,h=S.name!==void 0?S.name:b;if(e(k)&&t(k,h,S),S.global)y?f[b]=k:o(b,k);else{try{S.unsafe?f[b]&&(y=!0):delete f[b]}catch(c){}y?f[b]=k:a.f(f,b,{value:k,enumerable:!1,configurable:!S.nonConfigurable,writable:!S.nonWritable})}return f}},30145:function(w,r,n){"use strict";var e=n(55938);w.exports=function(a,t,o){for(var f in t)e(a,f,t[f],o);return a}},18231:function(w,r,n){"use strict";var e=n(74685),a=Object.defineProperty;w.exports=function(t,o){try{a(e,t,{value:o,configurable:!0,writable:!0})}catch(f){e[t]=o}return o}},95108:function(w,r,n){"use strict";var e=n(89393),a=TypeError;w.exports=function(t,o){if(!delete t[o])throw new a("Cannot delete property "+e(o)+" of "+e(t))}},58310:function(w,r,n){"use strict";var e=n(40033);w.exports=!e(function(){return Object.defineProperty({},1,{get:function(){function a(){return 7}return a}()})[1]!==7})},12689:function(w,r,n){"use strict";var e=n(74685),a=n(77568),t=e.document,o=a(t)&&a(t.createElement);w.exports=function(f){return o?t.createElement(f):{}}},21291:function(w){"use strict";var r=TypeError,n=9007199254740991;w.exports=function(e){if(e>n)throw r("Maximum allowed index exceeded");return e}},652:function(w,r,n){"use strict";var e=n(63318),a=e.match(/firefox\/(\d+)/i);w.exports=!!a&&+a[1]},8180:function(w,r,n){"use strict";var e=n(73730),a=n(81702);w.exports=!e&&!a&&typeof window=="object"&&typeof document=="object"},49197:function(w){"use strict";w.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},73730:function(w){"use strict";w.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},19228:function(w,r,n){"use strict";var e=n(63318);w.exports=/MSIE|Trident/.test(e)},51802:function(w,r,n){"use strict";var e=n(63318);w.exports=/ipad|iphone|ipod/i.test(e)&&typeof Pebble!="undefined"},83433:function(w,r,n){"use strict";var e=n(63318);w.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},81702:function(w,r,n){"use strict";var e=n(74685),a=n(7462);w.exports=a(e.process)==="process"},63383:function(w,r,n){"use strict";var e=n(63318);w.exports=/web0s(?!.*chrome)/i.test(e)},63318:function(w){"use strict";w.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},5026:function(w,r,n){"use strict";var e=n(74685),a=n(63318),t=e.process,o=e.Deno,f=t&&t.versions||o&&o.version,b=f&&f.v8,k,S;b&&(k=b.split("."),S=k[0]>0&&k[0]<4?1:+(k[0]+k[1])),!S&&a&&(k=a.match(/Edge\/(\d+)/),(!k||k[1]>=74)&&(k=a.match(/Chrome\/(\d+)/),k&&(S=+k[1]))),w.exports=S},9342:function(w,r,n){"use strict";var e=n(63318),a=e.match(/AppleWebKit\/(\d+)\./);w.exports=!!a&&+a[1]},89453:function(w){"use strict";w.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},63964:function(w,r,n){"use strict";var e=n(74685),a=n(27193).f,t=n(37909),o=n(55938),f=n(18231),b=n(5774),k=n(41314);w.exports=function(S,y){var h=S.target,c=S.global,i=S.stat,m,d,u,s,l,v;if(c?d=e:i?d=e[h]||f(h,{}):d=e[h]&&e[h].prototype,d)for(u in y){if(l=y[u],S.dontCallGetSet?(v=a(d,u),s=v&&v.value):s=d[u],m=k(c?u:h+(i?".":"#")+u,S.forced),!m&&s!==void 0){if(typeof l==typeof s)continue;b(l,s)}(S.sham||s&&s.sham)&&t(l,"sham",!0),o(d,u,l,S)}}},40033:function(w){"use strict";w.exports=function(r){try{return!!r()}catch(n){return!0}}},79942:function(w,r,n){"use strict";n(79669);var e=n(91495),a=n(55938),t=n(14489),o=n(40033),f=n(24697),b=n(37909),k=f("species"),S=RegExp.prototype;w.exports=function(y,h,c,i){var m=f(y),d=!o(function(){var v={};return v[m]=function(){return 7},""[y](v)!==7}),u=d&&!o(function(){var v=!1,N=/a/;return y==="split"&&(N={},N.constructor={},N.constructor[k]=function(){return N},N.flags="",N[m]=/./[m]),N.exec=function(){return v=!0,null},N[m](""),!v});if(!d||!u||c){var s=/./[m],l=h(m,""[y],function(v,N,C,p,g){var V=N.exec;return V===t||V===S.exec?d&&!g?{done:!0,value:e(s,N,C,p)}:{done:!0,value:e(v,C,N,p)}:{done:!1}});a(String.prototype,y,l[0]),a(S,m,l[1])}i&&b(S[m],"sham",!0)}},65561:function(w,r,n){"use strict";var e=n(37386),a=n(24760),t=n(21291),o=n(75754),f=function b(k,S,y,h,c,i,m,d){for(var u=c,s=0,l=m?o(m,d):!1,v,N;s0&&e(v)?(N=a(v),u=b(k,S,v,N,u,i-1)-1):(t(u+1),k[u]=v),u++),s++;return u};w.exports=f},50730:function(w,r,n){"use strict";var e=n(40033);w.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},61267:function(w,r,n){"use strict";var e=n(55050),a=Function.prototype,t=a.apply,o=a.call;w.exports=typeof Reflect=="object"&&Reflect.apply||(e?o.bind(t):function(){return o.apply(t,arguments)})},75754:function(w,r,n){"use strict";var e=n(71138),a=n(10320),t=n(55050),o=e(e.bind);w.exports=function(f,b){return a(f),b===void 0?f:t?o(f,b):function(){return f.apply(b,arguments)}}},55050:function(w,r,n){"use strict";var e=n(40033);w.exports=!e(function(){var a=function(){}.bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},66284:function(w,r,n){"use strict";var e=n(67250),a=n(10320),t=n(77568),o=n(45299),f=n(54602),b=n(55050),k=Function,S=e([].concat),y=e([].join),h={},c=function(m,d,u){if(!o(h,d)){for(var s=[],l=0;l]*>)/g,S=/\$([$&'`]|\d{1,2})/g;w.exports=function(y,h,c,i,m,d){var u=c+y.length,s=i.length,l=S;return m!==void 0&&(m=a(m),l=k),f(d,l,function(v,N){var C;switch(o(N,0)){case"$":return"$";case"&":return y;case"`":return b(h,0,c);case"'":return b(h,u);case"<":C=m[b(N,1,-1)];break;default:var p=+N;if(p===0)return v;if(p>s){var g=t(p/10);return g===0?v:g<=s?i[g-1]===void 0?o(N,1):i[g-1]+o(N,1):v}C=i[p-1]}return C===void 0?"":C})}},74685:function(w,r,n){"use strict";var e=function(t){return t&&t.Math===Math&&t};w.exports=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof n.g=="object"&&n.g)||e(!1)||function(){return this}()||Function("return this")()},45299:function(w,r,n){"use strict";var e=n(67250),a=n(46771),t=e({}.hasOwnProperty);w.exports=Object.hasOwn||function(){function o(f,b){return t(a(f),b)}return o}()},79195:function(w){"use strict";w.exports={}},72259:function(w){"use strict";w.exports=function(r,n){try{arguments.length}catch(e){}}},5315:function(w,r,n){"use strict";var e=n(4009);w.exports=e("document","documentElement")},36223:function(w,r,n){"use strict";var e=n(58310),a=n(40033),t=n(12689);w.exports=!e&&!a(function(){return Object.defineProperty(t("div"),"a",{get:function(){function o(){return 7}return o}()}).a!==7})},91784:function(w){"use strict";var r=Array,n=Math.abs,e=Math.pow,a=Math.floor,t=Math.log,o=Math.LN2,f=function(S,y,h){var c=r(h),i=h*8-y-1,m=(1<>1,u=y===23?e(2,-24)-e(2,-77):0,s=S<0||S===0&&1/S<0?1:0,l=0,v,N,C;for(S=n(S),S!==S||S===1/0?(N=S!==S?1:0,v=m):(v=a(t(S)/o),C=e(2,-v),S*C<1&&(v--,C*=2),v+d>=1?S+=u/C:S+=u*e(2,1-d),S*C>=2&&(v++,C/=2),v+d>=m?(N=0,v=m):v+d>=1?(N=(S*C-1)*e(2,y),v+=d):(N=S*e(2,d-1)*e(2,y),v=0));y>=8;)c[l++]=N&255,N/=256,y-=8;for(v=v<0;)c[l++]=v&255,v/=256,i-=8;return c[--l]|=s*128,c},b=function(S,y){var h=S.length,c=h*8-y-1,i=(1<>1,d=c-7,u=h-1,s=S[u--],l=s&127,v;for(s>>=7;d>0;)l=l*256+S[u--],d-=8;for(v=l&(1<<-d)-1,l>>=-d,d+=y;d>0;)v=v*256+S[u--],d-=8;if(l===0)l=1-m;else{if(l===i)return v?NaN:s?-1/0:1/0;v+=e(2,y),l-=m}return(s?-1:1)*v*e(2,l-y)};w.exports={pack:f,unpack:b}},37457:function(w,r,n){"use strict";var e=n(67250),a=n(40033),t=n(7462),o=Object,f=e("".split);w.exports=a(function(){return!o("z").propertyIsEnumerable(0)})?function(b){return t(b)==="String"?f(b,""):o(b)}:o},5781:function(w,r,n){"use strict";var e=n(55747),a=n(77568),t=n(76649);w.exports=function(o,f,b){var k,S;return t&&e(k=f.constructor)&&k!==b&&a(S=k.prototype)&&S!==b.prototype&&t(o,S),o}},40492:function(w,r,n){"use strict";var e=n(67250),a=n(55747),t=n(40095),o=e(Function.toString);a(t.inspectSource)||(t.inspectSource=function(f){return o(f)}),w.exports=t.inspectSource},81969:function(w,r,n){"use strict";var e=n(63964),a=n(67250),t=n(79195),o=n(77568),f=n(45299),b=n(74595).f,k=n(37310),S=n(81644),y=n(81834),h=n(16738),c=n(50730),i=!1,m=h("meta"),d=0,u=function(g){b(g,m,{value:{objectID:"O"+d++,weakData:{}}})},s=function(g,V){if(!o(g))return typeof g=="symbol"?g:(typeof g=="string"?"S":"P")+g;if(!f(g,m)){if(!y(g))return"F";if(!V)return"E";u(g)}return g[m].objectID},l=function(g,V){if(!f(g,m)){if(!y(g))return!0;if(!V)return!1;u(g)}return g[m].weakData},v=function(g){return c&&i&&y(g)&&!f(g,m)&&u(g),g},N=function(){C.enable=function(){},i=!0;var g=k.f,V=a([].splice),I={};I[m]=1,g(I).length&&(k.f=function(B){for(var L=g(B),T=0,A=L.length;TB;B++)if(T=P(d[B]),T&&k(m,T))return T;return new i(!1)}V=S(d,I)}for(A=N?d.next:V.next;!(x=a(A,V)).done;){try{T=P(x.value)}catch(j){h(V,"throw",j)}if(typeof T=="object"&&T&&k(m,T))return T}return new i(!1)}},28649:function(w,r,n){"use strict";var e=n(91495),a=n(30365),t=n(78060);w.exports=function(o,f,b){var k,S;a(o);try{if(k=t(o,"return"),!k){if(f==="throw")throw b;return b}k=e(k,o)}catch(y){S=!0,k=y}if(f==="throw")throw b;if(S)throw k;return a(k),b}},5656:function(w,r,n){"use strict";var e=n(67635).IteratorPrototype,a=n(80674),t=n(87458),o=n(84925),f=n(83967),b=function(){return this};w.exports=function(k,S,y,h){var c=S+" Iterator";return k.prototype=a(e,{next:t(+!h,y)}),o(k,c,!1,!0),f[c]=b,k}},65574:function(w,r,n){"use strict";var e=n(63964),a=n(91495),t=n(4493),o=n(70520),f=n(55747),b=n(5656),k=n(36917),S=n(76649),y=n(84925),h=n(37909),c=n(55938),i=n(24697),m=n(83967),d=n(67635),u=o.PROPER,s=o.CONFIGURABLE,l=d.IteratorPrototype,v=d.BUGGY_SAFARI_ITERATORS,N=i("iterator"),C="keys",p="values",g="entries",V=function(){return this};w.exports=function(I,B,L,T,A,x,E){b(L,B,T);var P=function(Q){if(Q===A&&W)return W;if(!v&&Q&&Q in R)return R[Q];switch(Q){case C:return function(){function J(){return new L(this,Q)}return J}();case p:return function(){function J(){return new L(this,Q)}return J}();case g:return function(){function J(){return new L(this,Q)}return J}()}return function(){return new L(this)}},j=B+" Iterator",M=!1,R=I.prototype,D=R[N]||R["@@iterator"]||A&&R[A],W=!v&&D||P(A),_=B==="Array"&&R.entries||D,U,K,G;if(_&&(U=k(_.call(new I)),U!==Object.prototype&&U.next&&(!t&&k(U)!==l&&(S?S(U,l):f(U[N])||c(U,N,V)),y(U,j,!0,!0),t&&(m[j]=V))),u&&A===p&&D&&D.name!==p&&(!t&&s?h(R,"name",p):(M=!0,W=function(){function $(){return a(D,this)}return $}())),A)if(K={values:P(p),keys:x?W:P(C),entries:P(g)},E)for(G in K)(v||M||!(G in R))&&c(R,G,K[G]);else e({target:B,proto:!0,forced:v||M},K);return(!t||E)&&R[N]!==W&&c(R,N,W,{name:A}),m[B]=W,K}},67635:function(w,r,n){"use strict";var e=n(40033),a=n(55747),t=n(77568),o=n(80674),f=n(36917),b=n(55938),k=n(24697),S=n(4493),y=k("iterator"),h=!1,c,i,m;[].keys&&(m=[].keys(),"next"in m?(i=f(f(m)),i!==Object.prototype&&(c=i)):h=!0);var d=!t(c)||e(function(){var u={};return c[y].call(u)!==u});d?c={}:S&&(c=o(c)),a(c[y])||b(c,y,function(){return this}),w.exports={IteratorPrototype:c,BUGGY_SAFARI_ITERATORS:h}},83967:function(w){"use strict";w.exports={}},24760:function(w,r,n){"use strict";var e=n(10188);w.exports=function(a){return e(a.length)}},20001:function(w,r,n){"use strict";var e=n(67250),a=n(40033),t=n(55747),o=n(45299),f=n(58310),b=n(70520).CONFIGURABLE,k=n(40492),S=n(5419),y=S.enforce,h=S.get,c=String,i=Object.defineProperty,m=e("".slice),d=e("".replace),u=e([].join),s=f&&!a(function(){return i(function(){},"length",{value:8}).length!==8}),l=String(String).split("String"),v=w.exports=function(N,C,p){m(c(C),0,7)==="Symbol("&&(C="["+d(c(C),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),p&&p.getter&&(C="get "+C),p&&p.setter&&(C="set "+C),(!o(N,"name")||b&&N.name!==C)&&(f?i(N,"name",{value:C,configurable:!0}):N.name=C),s&&p&&o(p,"arity")&&N.length!==p.arity&&i(N,"length",{value:p.arity});try{p&&o(p,"constructor")&&p.constructor?f&&i(N,"prototype",{writable:!1}):N.prototype&&(N.prototype=void 0)}catch(V){}var g=y(N);return o(g,"source")||(g.source=u(l,typeof C=="string"?C:"")),N};Function.prototype.toString=v(function(){function N(){return t(this)&&h(this).source||k(this)}return N}(),"toString")},82040:function(w){"use strict";var r=Math.expm1,n=Math.exp;w.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||r(-2e-17)!==-2e-17?function(){function e(a){var t=+a;return t===0?t:t>-1e-6&&t<1e-6?t+t*t/2:n(t)-1}return e}():r},14950:function(w,r,n){"use strict";var e=n(22172),a=Math.abs,t=2220446049250313e-31,o=1/t,f=function(k){return k+o-o};w.exports=function(b,k,S,y){var h=+b,c=a(h),i=e(h);if(cS||d!==d?i*(1/0):i*d}},95867:function(w,r,n){"use strict";var e=n(14950),a=11920928955078125e-23,t=34028234663852886e22,o=11754943508222875e-54;w.exports=Math.fround||function(){function f(b){return e(b,a,t,o)}return f}()},75002:function(w){"use strict";var r=Math.log,n=Math.LOG10E;w.exports=Math.log10||function(){function e(a){return r(a)*n}return e}()},90874:function(w){"use strict";var r=Math.log;w.exports=Math.log1p||function(){function n(e){var a=+e;return a>-1e-8&&a<1e-8?a-a*a/2:r(1+a)}return n}()},22172:function(w){"use strict";w.exports=Math.sign||function(){function r(n){var e=+n;return e===0||e!==e?e:e<0?-1:1}return r}()},21119:function(w){"use strict";var r=Math.ceil,n=Math.floor;w.exports=Math.trunc||function(){function e(a){var t=+a;return(t>0?n:r)(t)}return e}()},37713:function(w,r,n){"use strict";var e=n(74685),a=n(44915),t=n(75754),o=n(60375).set,f=n(9547),b=n(83433),k=n(51802),S=n(63383),y=n(81702),h=e.MutationObserver||e.WebKitMutationObserver,c=e.document,i=e.process,m=e.Promise,d=a("queueMicrotask"),u,s,l,v,N;if(!d){var C=new f,p=function(){var V,I;for(y&&(V=i.domain)&&V.exit();I=C.get();)try{I()}catch(B){throw C.head&&u(),B}V&&V.enter()};!b&&!y&&!S&&h&&c?(s=!0,l=c.createTextNode(""),new h(p).observe(l,{characterData:!0}),u=function(){l.data=s=!s}):!k&&m&&m.resolve?(v=m.resolve(void 0),v.constructor=m,N=t(v.then,v),u=function(){N(p)}):y?u=function(){i.nextTick(p)}:(o=t(o,e),u=function(){o(p)}),d=function(V){C.head||u(),C.add(V)}}w.exports=d},81837:function(w,r,n){"use strict";var e=n(10320),a=TypeError,t=function(f){var b,k;this.promise=new f(function(S,y){if(b!==void 0||k!==void 0)throw new a("Bad Promise constructor");b=S,k=y}),this.resolve=e(b),this.reject=e(k)};w.exports.f=function(o){return new t(o)}},86213:function(w,r,n){"use strict";var e=n(72586),a=TypeError;w.exports=function(t){if(e(t))throw new a("The method doesn't accept regular expressions");return t}},3294:function(w,r,n){"use strict";var e=n(74685),a=e.isFinite;w.exports=Number.isFinite||function(){function t(o){return typeof o=="number"&&a(o)}return t}()},28506:function(w,r,n){"use strict";var e=n(74685),a=n(40033),t=n(67250),o=n(12605),f=n(92648).trim,b=n(4198),k=t("".charAt),S=e.parseFloat,y=e.Symbol,h=y&&y.iterator,c=1/S(b+"-0")!==-1/0||h&&!a(function(){S(Object(h))});w.exports=c?function(){function i(m){var d=f(o(m)),u=S(d);return u===0&&k(d,0)==="-"?-0:u}return i}():S},13693:function(w,r,n){"use strict";var e=n(74685),a=n(40033),t=n(67250),o=n(12605),f=n(92648).trim,b=n(4198),k=e.parseInt,S=e.Symbol,y=S&&S.iterator,h=/^[+-]?0x/i,c=t(h.exec),i=k(b+"08")!==8||k(b+"0x16")!==22||y&&!a(function(){k(Object(y))});w.exports=i?function(){function m(d,u){var s=f(o(d));return k(s,u>>>0||(c(h,s)?16:10))}return m}():k},41143:function(w,r,n){"use strict";var e=n(58310),a=n(67250),t=n(91495),o=n(40033),f=n(18450),b=n(89235),k=n(12867),S=n(46771),y=n(37457),h=Object.assign,c=Object.defineProperty,i=a([].concat);w.exports=!h||o(function(){if(e&&h({b:1},h(c({},"a",{enumerable:!0,get:function(){function l(){c(this,"b",{value:3,enumerable:!1})}return l}()}),{b:2})).b!==1)return!0;var m={},d={},u=Symbol("assign detection"),s="abcdefghijklmnopqrst";return m[u]=7,s.split("").forEach(function(l){d[l]=l}),h({},m)[u]!==7||f(h({},d)).join("")!==s})?function(){function m(d,u){for(var s=S(d),l=arguments.length,v=1,N=b.f,C=k.f;l>v;)for(var p=y(arguments[v++]),g=N?i(f(p),N(p)):f(p),V=g.length,I=0,B;V>I;)B=g[I++],(!e||t(C,p,B))&&(s[B]=p[B]);return s}return m}():h},80674:function(w,r,n){"use strict";var e=n(30365),a=n(24239),t=n(89453),o=n(79195),f=n(5315),b=n(12689),k=n(19417),S=">",y="<",h="prototype",c="script",i=k("IE_PROTO"),m=function(){},d=function(C){return y+c+S+C+y+"/"+c+S},u=function(C){C.write(d("")),C.close();var p=C.parentWindow.Object;return C=null,p},s=function(){var C=b("iframe"),p="java"+c+":",g;return C.style.display="none",f.appendChild(C),C.src=String(p),g=C.contentWindow.document,g.open(),g.write(d("document.F=Object")),g.close(),g.F},l,v=function(){try{l=new ActiveXObject("htmlfile")}catch(p){}v=typeof document!="undefined"?document.domain&&l?u(l):s():u(l);for(var C=t.length;C--;)delete v[h][t[C]];return v()};o[i]=!0,w.exports=Object.create||function(){function N(C,p){var g;return C!==null?(m[h]=e(C),g=new m,m[h]=null,g[i]=C):g=v(),p===void 0?g:a.f(g,p)}return N}()},24239:function(w,r,n){"use strict";var e=n(58310),a=n(80944),t=n(74595),o=n(30365),f=n(57591),b=n(18450);r.f=e&&!a?Object.defineProperties:function(){function k(S,y){o(S);for(var h=f(y),c=b(y),i=c.length,m=0,d;i>m;)t.f(S,d=c[m++],h[d]);return S}return k}()},74595:function(w,r,n){"use strict";var e=n(58310),a=n(36223),t=n(80944),o=n(30365),f=n(767),b=TypeError,k=Object.defineProperty,S=Object.getOwnPropertyDescriptor,y="enumerable",h="configurable",c="writable";r.f=e?t?function(){function i(m,d,u){if(o(m),d=f(d),o(u),typeof m=="function"&&d==="prototype"&&"value"in u&&c in u&&!u[c]){var s=S(m,d);s&&s[c]&&(m[d]=u.value,u={configurable:h in u?u[h]:s[h],enumerable:y in u?u[y]:s[y],writable:!1})}return k(m,d,u)}return i}():k:function(){function i(m,d,u){if(o(m),d=f(d),o(u),a)try{return k(m,d,u)}catch(s){}if("get"in u||"set"in u)throw new b("Accessors not supported");return"value"in u&&(m[d]=u.value),m}return i}()},27193:function(w,r,n){"use strict";var e=n(58310),a=n(91495),t=n(12867),o=n(87458),f=n(57591),b=n(767),k=n(45299),S=n(36223),y=Object.getOwnPropertyDescriptor;r.f=e?y:function(){function h(c,i){if(c=f(c),i=b(i),S)try{return y(c,i)}catch(m){}if(k(c,i))return o(!a(t.f,c,i),c[i])}return h}()},81644:function(w,r,n){"use strict";var e=n(7462),a=n(57591),t=n(37310).f,o=n(54602),f=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],b=function(S){try{return t(S)}catch(y){return o(f)}};w.exports.f=function(){function k(S){return f&&e(S)==="Window"?b(S):t(a(S))}return k}()},37310:function(w,r,n){"use strict";var e=n(53726),a=n(89453),t=a.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(){function o(f){return e(f,t)}return o}()},89235:function(w,r){"use strict";r.f=Object.getOwnPropertySymbols},36917:function(w,r,n){"use strict";var e=n(45299),a=n(55747),t=n(46771),o=n(19417),f=n(9225),b=o("IE_PROTO"),k=Object,S=k.prototype;w.exports=f?k.getPrototypeOf:function(y){var h=t(y);if(e(h,b))return h[b];var c=h.constructor;return a(c)&&h instanceof c?c.prototype:h instanceof k?S:null}},81834:function(w,r,n){"use strict";var e=n(40033),a=n(77568),t=n(7462),o=n(3782),f=Object.isExtensible,b=e(function(){f(1)});w.exports=b||o?function(){function k(S){return!a(S)||o&&t(S)==="ArrayBuffer"?!1:f?f(S):!0}return k}():f},21287:function(w,r,n){"use strict";var e=n(67250);w.exports=e({}.isPrototypeOf)},53726:function(w,r,n){"use strict";var e=n(67250),a=n(45299),t=n(57591),o=n(14211).indexOf,f=n(79195),b=e([].push);w.exports=function(k,S){var y=t(k),h=0,c=[],i;for(i in y)!a(f,i)&&a(y,i)&&b(c,i);for(;S.length>h;)a(y,i=S[h++])&&(~o(c,i)||b(c,i));return c}},18450:function(w,r,n){"use strict";var e=n(53726),a=n(89453);w.exports=Object.keys||function(){function t(o){return e(o,a)}return t}()},12867:function(w,r){"use strict";var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,a=e&&!n.call({1:2},1);r.f=a?function(){function t(o){var f=e(this,o);return!!f&&f.enumerable}return t}():n},57377:function(w,r,n){"use strict";var e=n(4493),a=n(74685),t=n(40033),o=n(9342);w.exports=e||!t(function(){if(!(o&&o<535)){var f=Math.random();__defineSetter__.call(null,f,function(){}),delete a[f]}})},76649:function(w,r,n){"use strict";var e=n(38656),a=n(77568),t=n(16952),o=n(35908);w.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var f=!1,b={},k;try{k=e(Object.prototype,"__proto__","set"),k(b,[]),f=b instanceof Array}catch(S){}return function(){function S(y,h){return t(y),o(h),a(y)&&(f?k(y,h):y.__proto__=h),y}return S}()}():void 0)},70915:function(w,r,n){"use strict";var e=n(58310),a=n(40033),t=n(67250),o=n(36917),f=n(18450),b=n(57591),k=n(12867).f,S=t(k),y=t([].push),h=e&&a(function(){var i=Object.create(null);return i[2]=2,!S(i,2)}),c=function(m){return function(d){for(var u=b(d),s=f(u),l=h&&o(u)===null,v=s.length,N=0,C=[],p;v>N;)p=s[N++],(!e||(l?p in u:S(u,p)))&&y(C,m?[p,u[p]]:u[p]);return C}};w.exports={entries:c(!0),values:c(!1)}},2509:function(w,r,n){"use strict";var e=n(2650),a=n(2281);w.exports=e?{}.toString:function(){function t(){return"[object "+a(this)+"]"}return t}()},13396:function(w,r,n){"use strict";var e=n(91495),a=n(55747),t=n(77568),o=TypeError;w.exports=function(f,b){var k,S;if(b==="string"&&a(k=f.toString)&&!t(S=e(k,f))||a(k=f.valueOf)&&!t(S=e(k,f))||b!=="string"&&a(k=f.toString)&&!t(S=e(k,f)))return S;throw new o("Can't convert object to primitive value")}},97921:function(w,r,n){"use strict";var e=n(4009),a=n(67250),t=n(37310),o=n(89235),f=n(30365),b=a([].concat);w.exports=e("Reflect","ownKeys")||function(){function k(S){var y=t.f(f(S)),h=o.f;return h?b(y,h(S)):y}return k}()},61765:function(w,r,n){"use strict";var e=n(74685);w.exports=e},10729:function(w){"use strict";w.exports=function(r){try{return{error:!1,value:r()}}catch(n){return{error:!0,value:n}}}},74854:function(w,r,n){"use strict";var e=n(74685),a=n(67512),t=n(55747),o=n(41314),f=n(40492),b=n(24697),k=n(8180),S=n(73730),y=n(4493),h=n(5026),c=a&&a.prototype,i=b("species"),m=!1,d=t(e.PromiseRejectionEvent),u=o("Promise",function(){var s=f(a),l=s!==String(a);if(!l&&h===66||y&&!(c.catch&&c.finally))return!0;if(!h||h<51||!/native code/.test(s)){var v=new a(function(p){p(1)}),N=function(g){g(function(){},function(){})},C=v.constructor={};if(C[i]=N,m=v.then(function(){})instanceof N,!m)return!0}return!l&&(k||S)&&!d});w.exports={CONSTRUCTOR:u,REJECTION_EVENT:d,SUBCLASSING:m}},67512:function(w,r,n){"use strict";var e=n(74685);w.exports=e.Promise},66628:function(w,r,n){"use strict";var e=n(30365),a=n(77568),t=n(81837);w.exports=function(o,f){if(e(o),a(f)&&f.constructor===o)return f;var b=t.f(o),k=b.resolve;return k(f),b.promise}},48199:function(w,r,n){"use strict";var e=n(67512),a=n(92490),t=n(74854).CONSTRUCTOR;w.exports=t||!a(function(o){e.all(o).then(void 0,function(){})})},34550:function(w,r,n){"use strict";var e=n(74595).f;w.exports=function(a,t,o){o in a||e(a,o,{configurable:!0,get:function(){function f(){return t[o]}return f}(),set:function(){function f(b){t[o]=b}return f}()})}},9547:function(w){"use strict";var r=function(){this.head=null,this.tail=null};r.prototype={add:function(){function n(e){var a={item:e,next:null},t=this.tail;t?t.next=a:this.head=a,this.tail=a}return n}(),get:function(){function n(){var e=this.head;if(e){var a=this.head=e.next;return a===null&&(this.tail=null),e.item}}return n}()},w.exports=r},28340:function(w,r,n){"use strict";var e=n(91495),a=n(30365),t=n(55747),o=n(7462),f=n(14489),b=TypeError;w.exports=function(k,S){var y=k.exec;if(t(y)){var h=e(y,k,S);return h!==null&&a(h),h}if(o(k)==="RegExp")return e(f,k,S);throw new b("RegExp#exec called on incompatible receiver")}},14489:function(w,r,n){"use strict";var e=n(91495),a=n(67250),t=n(12605),o=n(70901),f=n(62115),b=n(16639),k=n(80674),S=n(5419).get,y=n(39173),h=n(35688),c=b("native-string-replace",String.prototype.replace),i=RegExp.prototype.exec,m=i,d=a("".charAt),u=a("".indexOf),s=a("".replace),l=a("".slice),v=function(){var g=/a/,V=/b*/g;return e(i,g,"a"),e(i,V,"a"),g.lastIndex!==0||V.lastIndex!==0}(),N=f.BROKEN_CARET,C=/()??/.exec("")[1]!==void 0,p=v||C||N||y||h;p&&(m=function(){function g(V){var I=this,B=S(I),L=t(V),T=B.raw,A,x,E,P,j,M,R;if(T)return T.lastIndex=I.lastIndex,A=e(m,T,L),I.lastIndex=T.lastIndex,A;var D=B.groups,W=N&&I.sticky,_=e(o,I),U=I.source,K=0,G=L;if(W&&(_=s(_,"y",""),u(_,"g")===-1&&(_+="g"),G=l(L,I.lastIndex),I.lastIndex>0&&(!I.multiline||I.multiline&&d(L,I.lastIndex-1)!=="\n")&&(U="(?: "+U+")",G=" "+G,K++),x=new RegExp("^(?:"+U+")",_)),C&&(x=new RegExp("^"+U+"$(?!\\s)",_)),v&&(E=I.lastIndex),P=e(i,W?x:I,G),W?P?(P.input=l(P.input,K),P[0]=l(P[0],K),P.index=I.lastIndex,I.lastIndex+=P[0].length):I.lastIndex=0:v&&P&&(I.lastIndex=I.global?P.index+P[0].length:E),C&&P&&P.length>1&&e(c,P[0],x,function(){for(j=1;jb)","g");return o.exec("b").groups.a!=="b"||"b".replace(o,"$c")!=="bc"})},16952:function(w,r,n){"use strict";var e=n(42871),a=TypeError;w.exports=function(t){if(e(t))throw new a("Can't call method on "+t);return t}},44915:function(w,r,n){"use strict";var e=n(74685),a=n(58310),t=Object.getOwnPropertyDescriptor;w.exports=function(o){if(!a)return e[o];var f=t(e,o);return f&&f.value}},5700:function(w){"use strict";w.exports=Object.is||function(){function r(n,e){return n===e?n!==0||1/n===1/e:n!==n&&e!==e}return r}()},78362:function(w,r,n){"use strict";var e=n(74685),a=n(61267),t=n(55747),o=n(49197),f=n(63318),b=n(54602),k=n(24986),S=e.Function,y=/MSIE .\./.test(f)||o&&function(){var h=e.Bun.version.split(".");return h.length<3||h[0]==="0"&&(h[1]<3||h[1]==="3"&&h[2]==="0")}();w.exports=function(h,c){var i=c?2:1;return y?function(m,d){var u=k(arguments.length,1)>i,s=t(m)?m:S(m),l=u?b(arguments,i):[],v=u?function(){a(s,this,l)}:s;return c?h(v,d):h(v)}:h}},58491:function(w,r,n){"use strict";var e=n(4009),a=n(73936),t=n(24697),o=n(58310),f=t("species");w.exports=function(b){var k=e(b);o&&k&&!k[f]&&a(k,f,{configurable:!0,get:function(){function S(){return this}return S}()})}},84925:function(w,r,n){"use strict";var e=n(74595).f,a=n(45299),t=n(24697),o=t("toStringTag");w.exports=function(f,b,k){f&&!k&&(f=f.prototype),f&&!a(f,o)&&e(f,o,{configurable:!0,value:b})}},19417:function(w,r,n){"use strict";var e=n(16639),a=n(16738),t=e("keys");w.exports=function(o){return t[o]||(t[o]=a(o))}},40095:function(w,r,n){"use strict";var e=n(4493),a=n(74685),t=n(18231),o="__core-js_shared__",f=w.exports=a[o]||t(o,{});(f.versions||(f.versions=[])).push({version:"3.37.1",mode:e?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},16639:function(w,r,n){"use strict";var e=n(40095);w.exports=function(a,t){return e[a]||(e[a]=t||{})}},28987:function(w,r,n){"use strict";var e=n(30365),a=n(32606),t=n(42871),o=n(24697),f=o("species");w.exports=function(b,k){var S=e(b).constructor,y;return S===void 0||t(y=e(S)[f])?k:a(y)}},88539:function(w,r,n){"use strict";var e=n(40033);w.exports=function(a){return e(function(){var t=""[a]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},50233:function(w,r,n){"use strict";var e=n(67250),a=n(61365),t=n(12605),o=n(16952),f=e("".charAt),b=e("".charCodeAt),k=e("".slice),S=function(h){return function(c,i){var m=t(o(c)),d=a(i),u=m.length,s,l;return d<0||d>=u?h?"":void 0:(s=b(m,d),s<55296||s>56319||d+1===u||(l=b(m,d+1))<56320||l>57343?h?f(m,d):s:h?k(m,d,d+2):(s-55296<<10)+(l-56320)+65536)}};w.exports={codeAt:S(!1),charAt:S(!0)}},34125:function(w,r,n){"use strict";var e=n(63318);w.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(e)},24051:function(w,r,n){"use strict";var e=n(67250),a=n(10188),t=n(12605),o=n(62443),f=n(16952),b=e(o),k=e("".slice),S=Math.ceil,y=function(c){return function(i,m,d){var u=t(f(i)),s=a(m),l=u.length,v=d===void 0?" ":t(d),N,C;return s<=l||v===""?u:(N=s-l,C=b(v,S(N/v.length)),C.length>N&&(C=k(C,0,N)),c?u+C:C+u)}};w.exports={start:y(!1),end:y(!0)}},62443:function(w,r,n){"use strict";var e=n(61365),a=n(12605),t=n(16952),o=RangeError;w.exports=function(){function f(b){var k=a(t(this)),S="",y=e(b);if(y<0||y===1/0)throw new o("Wrong number of repetitions");for(;y>0;(y>>>=1)&&(k+=k))y&1&&(S+=k);return S}return f}()},43476:function(w,r,n){"use strict";var e=n(92648).end,a=n(90012);w.exports=a("trimEnd")?function(){function t(){return e(this)}return t}():"".trimEnd},90012:function(w,r,n){"use strict";var e=n(70520).PROPER,a=n(40033),t=n(4198),o="\u200B\x85\u180E";w.exports=function(f){return a(function(){return!!t[f]()||o[f]()!==o||e&&t[f].name!==f})}},43885:function(w,r,n){"use strict";var e=n(92648).start,a=n(90012);w.exports=a("trimStart")?function(){function t(){return e(this)}return t}():"".trimStart},92648:function(w,r,n){"use strict";var e=n(67250),a=n(16952),t=n(12605),o=n(4198),f=e("".replace),b=RegExp("^["+o+"]+"),k=RegExp("(^|[^"+o+"])["+o+"]+$"),S=function(h){return function(c){var i=t(a(c));return h&1&&(i=f(i,b,"")),h&2&&(i=f(i,k,"$1")),i}};w.exports={start:S(1),end:S(2),trim:S(3)}},52357:function(w,r,n){"use strict";var e=n(5026),a=n(40033),t=n(74685),o=t.String;w.exports=!!Object.getOwnPropertySymbols&&!a(function(){var f=Symbol("symbol detection");return!o(f)||!(Object(f)instanceof Symbol)||!Symbol.sham&&e&&e<41})},52360:function(w,r,n){"use strict";var e=n(91495),a=n(4009),t=n(24697),o=n(55938);w.exports=function(){var f=a("Symbol"),b=f&&f.prototype,k=b&&b.valueOf,S=t("toPrimitive");b&&!b[S]&&o(b,S,function(y){return e(k,this)},{arity:1})}},66570:function(w,r,n){"use strict";var e=n(52357);w.exports=e&&!!Symbol.for&&!!Symbol.keyFor},60375:function(w,r,n){"use strict";var e=n(74685),a=n(61267),t=n(75754),o=n(55747),f=n(45299),b=n(40033),k=n(5315),S=n(54602),y=n(12689),h=n(24986),c=n(83433),i=n(81702),m=e.setImmediate,d=e.clearImmediate,u=e.process,s=e.Dispatch,l=e.Function,v=e.MessageChannel,N=e.String,C=0,p={},g="onreadystatechange",V,I,B,L;b(function(){V=e.location});var T=function(j){if(f(p,j)){var M=p[j];delete p[j],M()}},A=function(j){return function(){T(j)}},x=function(j){T(j.data)},E=function(j){e.postMessage(N(j),V.protocol+"//"+V.host)};(!m||!d)&&(m=function(){function P(j){h(arguments.length,1);var M=o(j)?j:l(j),R=S(arguments,1);return p[++C]=function(){a(M,void 0,R)},I(C),C}return P}(),d=function(){function P(j){delete p[j]}return P}(),i?I=function(j){u.nextTick(A(j))}:s&&s.now?I=function(j){s.now(A(j))}:v&&!c?(B=new v,L=B.port2,B.port1.onmessage=x,I=t(L.postMessage,L)):e.addEventListener&&o(e.postMessage)&&!e.importScripts&&V&&V.protocol!=="file:"&&!b(E)?(I=E,e.addEventListener("message",x,!1)):g in y("script")?I=function(j){k.appendChild(y("script"))[g]=function(){k.removeChild(this),T(j)}}:I=function(j){setTimeout(A(j),0)}),w.exports={set:m,clear:d}},46438:function(w,r,n){"use strict";var e=n(67250);w.exports=e(1 .valueOf)},13912:function(w,r,n){"use strict";var e=n(61365),a=Math.max,t=Math.min;w.exports=function(o,f){var b=e(o);return b<0?a(b+f,0):t(b,f)}},61484:function(w,r,n){"use strict";var e=n(24843),a=TypeError;w.exports=function(t){var o=e(t,"number");if(typeof o=="number")throw new a("Can't convert number to bigint");return BigInt(o)}},43806:function(w,r,n){"use strict";var e=n(61365),a=n(10188),t=RangeError;w.exports=function(o){if(o===void 0)return 0;var f=e(o),b=a(f);if(f!==b)throw new t("Wrong length or index");return b}},57591:function(w,r,n){"use strict";var e=n(37457),a=n(16952);w.exports=function(t){return e(a(t))}},61365:function(w,r,n){"use strict";var e=n(21119);w.exports=function(a){var t=+a;return t!==t||t===0?0:e(t)}},10188:function(w,r,n){"use strict";var e=n(61365),a=Math.min;w.exports=function(t){var o=e(t);return o>0?a(o,9007199254740991):0}},46771:function(w,r,n){"use strict";var e=n(16952),a=Object;w.exports=function(t){return a(e(t))}},56043:function(w,r,n){"use strict";var e=n(16140),a=RangeError;w.exports=function(t,o){var f=e(t);if(f%o)throw new a("Wrong offset");return f}},16140:function(w,r,n){"use strict";var e=n(61365),a=RangeError;w.exports=function(t){var o=e(t);if(o<0)throw new a("The argument can't be less than 0");return o}},24843:function(w,r,n){"use strict";var e=n(91495),a=n(77568),t=n(71399),o=n(78060),f=n(13396),b=n(24697),k=TypeError,S=b("toPrimitive");w.exports=function(y,h){if(!a(y)||t(y))return y;var c=o(y,S),i;if(c){if(h===void 0&&(h="default"),i=e(c,y,h),!a(i)||t(i))return i;throw new k("Can't convert object to primitive value")}return h===void 0&&(h="number"),f(y,h)}},767:function(w,r,n){"use strict";var e=n(24843),a=n(71399);w.exports=function(t){var o=e(t,"string");return a(o)?o:o+""}},2650:function(w,r,n){"use strict";var e=n(24697),a=e("toStringTag"),t={};t[a]="z",w.exports=String(t)==="[object z]"},12605:function(w,r,n){"use strict";var e=n(2281),a=String;w.exports=function(t){if(e(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(t)}},15409:function(w){"use strict";var r=Math.round;w.exports=function(n){var e=r(n);return e<0?0:e>255?255:e&255}},89393:function(w){"use strict";var r=String;w.exports=function(n){try{return r(n)}catch(e){return"Object"}}},80185:function(w,r,n){"use strict";var e=n(63964),a=n(74685),t=n(91495),o=n(58310),f=n(86563),b=n(4246),k=n(37336),S=n(60077),y=n(87458),h=n(37909),c=n(5841),i=n(10188),m=n(43806),d=n(56043),u=n(15409),s=n(767),l=n(45299),v=n(2281),N=n(77568),C=n(71399),p=n(80674),g=n(21287),V=n(76649),I=n(37310).f,B=n(3805),L=n(22603).forEach,T=n(58491),A=n(73936),x=n(74595),E=n(27193),P=n(78008),j=n(5419),M=n(5781),R=j.get,D=j.set,W=j.enforce,_=x.f,U=E.f,K=a.RangeError,G=k.ArrayBuffer,$=G.prototype,Q=k.DataView,J=b.NATIVE_ARRAY_BUFFER_VIEWS,ie=b.TYPED_ARRAY_TAG,ne=b.TypedArray,se=b.TypedArrayPrototype,Ce=b.isTypedArray,Se="BYTES_PER_ELEMENT",ke="Wrong length",he=function(te,be){A(te,be,{configurable:!0,get:function(){function pe(){return R(this)[be]}return pe}()})},oe=function(te){var be;return g($,te)||(be=v(te))==="ArrayBuffer"||be==="SharedArrayBuffer"},ce=function(te,be){return Ce(te)&&!C(be)&&be in te&&c(+be)&&be>=0},ee=function(){function me(te,be){return be=s(be),ce(te,be)?y(2,te[be]):U(te,be)}return me}(),fe=function(){function me(te,be,pe){return be=s(be),ce(te,be)&&N(pe)&&l(pe,"value")&&!l(pe,"get")&&!l(pe,"set")&&!pe.configurable&&(!l(pe,"writable")||pe.writable)&&(!l(pe,"enumerable")||pe.enumerable)?(te[be]=pe.value,te):_(te,be,pe)}return me}();o?(J||(E.f=ee,x.f=fe,he(se,"buffer"),he(se,"byteOffset"),he(se,"byteLength"),he(se,"length")),e({target:"Object",stat:!0,forced:!J},{getOwnPropertyDescriptor:ee,defineProperty:fe}),w.exports=function(me,te,be){var pe=me.match(/\d+/)[0]/8,ve=me+(be?"Clamped":"")+"Array",Be="get"+me,ge="set"+me,Le=a[ve],we=Le,xe=we&&we.prototype,Re={},ze=function(de,ye){var Me=R(de);return Me.view[Be](ye*pe+Me.byteOffset,!0)},Ve=function(de,ye,Me){var je=R(de);je.view[ge](ye*pe+je.byteOffset,be?u(Me):Me,!0)},re=function(de,ye){_(de,ye,{get:function(){function Me(){return ze(this,ye)}return Me}(),set:function(){function Me(je){return Ve(this,ye,je)}return Me}(),enumerable:!0})};J?f&&(we=te(function(Ne,de,ye,Me){return S(Ne,xe),M(function(){return N(de)?oe(de)?Me!==void 0?new Le(de,d(ye,pe),Me):ye!==void 0?new Le(de,d(ye,pe)):new Le(de):Ce(de)?P(we,de):t(B,we,de):new Le(m(de))}(),Ne,we)}),V&&V(we,ne),L(I(Le),function(Ne){Ne in we||h(we,Ne,Le[Ne])}),we.prototype=xe):(we=te(function(Ne,de,ye,Me){S(Ne,xe);var je=0,Fe=0,He,_e,Ue;if(!N(de))Ue=m(de),_e=Ue*pe,He=new G(_e);else if(oe(de)){He=de,Fe=d(ye,pe);var Xe=de.byteLength;if(Me===void 0){if(Xe%pe)throw new K(ke);if(_e=Xe-Fe,_e<0)throw new K(ke)}else if(_e=i(Me)*pe,_e+Fe>Xe)throw new K(ke);Ue=_e/pe}else return Ce(de)?P(we,de):t(B,we,de);for(D(Ne,{buffer:He,byteOffset:Fe,byteLength:_e,length:Ue,view:new Q(He)});je1?arguments[1]:void 0,v=l!==void 0,N=k(u),C,p,g,V,I,B,L,T;if(N&&!S(N))for(L=b(u,N),T=L.next,u=[];!(B=a(T,L)).done;)u.push(B.value);for(v&&s>2&&(l=e(l,arguments[2])),p=f(u),g=new(h(d))(p),V=y(g),C=0;p>C;C++)I=v?l(u[C],C):u[C],g[C]=V?c(I):+I;return g}return i}()},31082:function(w,r,n){"use strict";var e=n(4246),a=n(28987),t=e.aTypedArrayConstructor,o=e.getTypedArrayConstructor;w.exports=function(f){return t(a(f,o(f)))}},16738:function(w,r,n){"use strict";var e=n(67250),a=0,t=Math.random(),o=e(1 .toString);w.exports=function(f){return"Symbol("+(f===void 0?"":f)+")_"+o(++a+t,36)}},1062:function(w,r,n){"use strict";var e=n(52357);w.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},80944:function(w,r,n){"use strict";var e=n(58310),a=n(40033);w.exports=e&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},24986:function(w){"use strict";var r=TypeError;w.exports=function(n,e){if(n=51||!a(function(){var l=[];return l[m]=!1,l.concat()[0]!==l}),u=function(v){if(!o(v))return!1;var N=v[m];return N!==void 0?!!N:t(v)},s=!d||!h("concat");e({target:"Array",proto:!0,arity:1,forced:s},{concat:function(){function l(v){var N=f(this),C=y(N,0),p=0,g,V,I,B,L;for(g=-1,I=arguments.length;g1?arguments[1]:void 0)}return f}()})},68933:function(w,r,n){"use strict";var e=n(63964),a=n(88471),t=n(80575);e({target:"Array",proto:!0},{fill:a}),t("fill")},47830:function(w,r,n){"use strict";var e=n(63964),a=n(22603).filter,t=n(44091),o=t("filter");e({target:"Array",proto:!0,forced:!o},{filter:function(){function f(b){return a(this,b,arguments.length>1?arguments[1]:void 0)}return f}()})},64094:function(w,r,n){"use strict";var e=n(63964),a=n(22603).findIndex,t=n(80575),o="findIndex",f=!0;o in[]&&Array(1)[o](function(){f=!1}),e({target:"Array",proto:!0,forced:f},{findIndex:function(){function b(k){return a(this,k,arguments.length>1?arguments[1]:void 0)}return b}()}),t(o)},13455:function(w,r,n){"use strict";var e=n(63964),a=n(22603).find,t=n(80575),o="find",f=!0;o in[]&&Array(1)[o](function(){f=!1}),e({target:"Array",proto:!0,forced:f},{find:function(){function b(k){return a(this,k,arguments.length>1?arguments[1]:void 0)}return b}()}),t(o)},32384:function(w,r,n){"use strict";var e=n(63964),a=n(65561),t=n(10320),o=n(46771),f=n(24760),b=n(57823);e({target:"Array",proto:!0},{flatMap:function(){function k(S){var y=o(this),h=f(y),c;return t(S),c=b(y,0),c.length=a(c,y,y,h,0,1,S,arguments.length>1?arguments[1]:void 0),c}return k}()})},61915:function(w,r,n){"use strict";var e=n(63964),a=n(65561),t=n(46771),o=n(24760),f=n(61365),b=n(57823);e({target:"Array",proto:!0},{flat:function(){function k(){var S=arguments.length?arguments[0]:void 0,y=t(this),h=o(y),c=b(y,0);return c.length=a(c,y,y,h,0,S===void 0?1:f(S)),c}return k}()})},25579:function(w,r,n){"use strict";var e=n(63964),a=n(35601);e({target:"Array",proto:!0,forced:[].forEach!==a},{forEach:a})},63532:function(w,r,n){"use strict";var e=n(63964),a=n(73174),t=n(92490),o=!t(function(f){Array.from(f)});e({target:"Array",stat:!0,forced:o},{from:a})},33425:function(w,r,n){"use strict";var e=n(63964),a=n(14211).includes,t=n(40033),o=n(80575),f=t(function(){return!Array(1).includes()});e({target:"Array",proto:!0,forced:f},{includes:function(){function b(k){return a(this,k,arguments.length>1?arguments[1]:void 0)}return b}()}),o("includes")},43894:function(w,r,n){"use strict";var e=n(63964),a=n(71138),t=n(14211).indexOf,o=n(55528),f=a([].indexOf),b=!!f&&1/f([1],1,-0)<0,k=b||!o("indexOf");e({target:"Array",proto:!0,forced:k},{indexOf:function(){function S(y){var h=arguments.length>1?arguments[1]:void 0;return b?f(this,y,h)||0:t(this,y,h)}return S}()})},99636:function(w,r,n){"use strict";var e=n(63964),a=n(37386);e({target:"Array",stat:!0},{isArray:a})},34570:function(w,r,n){"use strict";var e=n(57591),a=n(80575),t=n(83967),o=n(5419),f=n(74595).f,b=n(65574),k=n(5959),S=n(4493),y=n(58310),h="Array Iterator",c=o.set,i=o.getterFor(h);w.exports=b(Array,"Array",function(d,u){c(this,{type:h,target:e(d),index:0,kind:u})},function(){var d=i(this),u=d.target,s=d.index++;if(!u||s>=u.length)return d.target=void 0,k(void 0,!0);switch(d.kind){case"keys":return k(s,!1);case"values":return k(u[s],!1)}return k([s,u[s]],!1)},"values");var m=t.Arguments=t.Array;if(a("keys"),a("values"),a("entries"),!S&&y&&m.name!=="values")try{f(m,"name",{value:"values"})}catch(d){}},94432:function(w,r,n){"use strict";var e=n(63964),a=n(67250),t=n(37457),o=n(57591),f=n(55528),b=a([].join),k=t!==Object,S=k||!f("join",",");e({target:"Array",proto:!0,forced:S},{join:function(){function y(h){return b(o(this),h===void 0?",":h)}return y}()})},24683:function(w,r,n){"use strict";var e=n(63964),a=n(1325);e({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},69984:function(w,r,n){"use strict";var e=n(63964),a=n(22603).map,t=n(44091),o=t("map");e({target:"Array",proto:!0,forced:!o},{map:function(){function f(b){return a(this,b,arguments.length>1?arguments[1]:void 0)}return f}()})},32089:function(w,r,n){"use strict";var e=n(63964),a=n(40033),t=n(1031),o=n(60102),f=Array,b=a(function(){function k(){}return!(f.of.call(k)instanceof k)});e({target:"Array",stat:!0,forced:b},{of:function(){function k(){for(var S=0,y=arguments.length,h=new(t(this)?this:f)(y);y>S;)o(h,S,arguments[S++]);return h.length=y,h}return k}()})},29645:function(w,r,n){"use strict";var e=n(63964),a=n(56844).right,t=n(55528),o=n(5026),f=n(81702),b=!f&&o>79&&o<83,k=b||!t("reduceRight");e({target:"Array",proto:!0,forced:k},{reduceRight:function(){function S(y){return a(this,y,arguments.length,arguments.length>1?arguments[1]:void 0)}return S}()})},60206:function(w,r,n){"use strict";var e=n(63964),a=n(56844).left,t=n(55528),o=n(5026),f=n(81702),b=!f&&o>79&&o<83,k=b||!t("reduce");e({target:"Array",proto:!0,forced:k},{reduce:function(){function S(y){var h=arguments.length;return a(this,y,h,h>1?arguments[1]:void 0)}return S}()})},4788:function(w,r,n){"use strict";var e=n(63964),a=n(67250),t=n(37386),o=a([].reverse),f=[1,2];e({target:"Array",proto:!0,forced:String(f)===String(f.reverse())},{reverse:function(){function b(){return t(this)&&(this.length=this.length),o(this)}return b}()})},58672:function(w,r,n){"use strict";var e=n(63964),a=n(37386),t=n(1031),o=n(77568),f=n(13912),b=n(24760),k=n(57591),S=n(60102),y=n(24697),h=n(44091),c=n(54602),i=h("slice"),m=y("species"),d=Array,u=Math.max;e({target:"Array",proto:!0,forced:!i},{slice:function(){function s(l,v){var N=k(this),C=b(N),p=f(l,C),g=f(v===void 0?C:v,C),V,I,B;if(a(N)&&(V=N.constructor,t(V)&&(V===d||a(V.prototype))?V=void 0:o(V)&&(V=V[m],V===null&&(V=void 0)),V===d||V===void 0))return c(N,p,g);for(I=new(V===void 0?d:V)(u(g-p,0)),B=0;p1?arguments[1]:void 0)}return f}()})},48968:function(w,r,n){"use strict";var e=n(63964),a=n(67250),t=n(10320),o=n(46771),f=n(24760),b=n(95108),k=n(12605),S=n(40033),y=n(90274),h=n(55528),c=n(652),i=n(19228),m=n(5026),d=n(9342),u=[],s=a(u.sort),l=a(u.push),v=S(function(){u.sort(void 0)}),N=S(function(){u.sort(null)}),C=h("sort"),p=!S(function(){if(m)return m<70;if(!(c&&c>3)){if(i)return!0;if(d)return d<603;var I="",B,L,T,A;for(B=65;B<76;B++){switch(L=String.fromCharCode(B),B){case 66:case 69:case 70:case 72:T=3;break;case 68:case 71:T=4;break;default:T=2}for(A=0;A<47;A++)u.push({k:L+A,v:T})}for(u.sort(function(x,E){return E.v-x.v}),A=0;Ak(T)?1:-1}};e({target:"Array",proto:!0,forced:g},{sort:function(){function I(B){B!==void 0&&t(B);var L=o(this);if(p)return B===void 0?s(L):s(L,B);var T=[],A=f(L),x,E;for(E=0;EN-V+g;B--)h(v,B-1)}else if(g>V)for(B=N-V;B>C;B--)L=B+V-1,T=B+g-1,L in v?v[T]=v[L]:h(v,T);for(B=0;B9490626562425156e-8?o(h)+b:a(h-1+f(h-1)*f(h+1))}return S}()})},59660:function(w,r,n){"use strict";var e=n(63964),a=Math.asinh,t=Math.log,o=Math.sqrt;function f(k){var S=+k;return!isFinite(S)||S===0?S:S<0?-f(-S):t(S+o(S*S+1))}var b=!(a&&1/a(0)>0);e({target:"Math",stat:!0,forced:b},{asinh:f})},15383:function(w,r,n){"use strict";var e=n(63964),a=Math.atanh,t=Math.log,o=!(a&&1/a(-0)<0);e({target:"Math",stat:!0,forced:o},{atanh:function(){function f(b){var k=+b;return k===0?k:t((1+k)/(1-k))/2}return f}()})},92866:function(w,r,n){"use strict";var e=n(63964),a=n(22172),t=Math.abs,o=Math.pow;e({target:"Math",stat:!0},{cbrt:function(){function f(b){var k=+b;return a(k)*o(t(k),.3333333333333333)}return f}()})},86107:function(w,r,n){"use strict";var e=n(63964),a=Math.floor,t=Math.log,o=Math.LOG2E;e({target:"Math",stat:!0},{clz32:function(){function f(b){var k=b>>>0;return k?31-a(t(k+.5)*o):32}return f}()})},29248:function(w,r,n){"use strict";var e=n(63964),a=n(82040),t=Math.cosh,o=Math.abs,f=Math.E,b=!t||t(710)===1/0;e({target:"Math",stat:!0,forced:b},{cosh:function(){function k(S){var y=a(o(S)-1)+1;return(y+1/(y*f*f))*(f/2)}return k}()})},52540:function(w,r,n){"use strict";var e=n(63964),a=n(82040);e({target:"Math",stat:!0,forced:a!==Math.expm1},{expm1:a})},79007:function(w,r,n){"use strict";var e=n(63964),a=n(95867);e({target:"Math",stat:!0},{fround:a})},77199:function(w,r,n){"use strict";var e=n(63964),a=Math.hypot,t=Math.abs,o=Math.sqrt,f=!!a&&a(1/0,NaN)!==1/0;e({target:"Math",stat:!0,arity:2,forced:f},{hypot:function(){function b(k,S){for(var y=0,h=0,c=arguments.length,i=0,m,d;h0?(d=m/i,y+=d*d):y+=m;return i===1/0?1/0:i*o(y)}return b}()})},6522:function(w,r,n){"use strict";var e=n(63964),a=n(40033),t=Math.imul,o=a(function(){return t(4294967295,5)!==-5||t.length!==2});e({target:"Math",stat:!0,forced:o},{imul:function(){function f(b,k){var S=65535,y=+b,h=+k,c=S&y,i=S&h;return 0|c*i+((S&y>>>16)*i+c*(S&h>>>16)<<16>>>0)}return f}()})},95542:function(w,r,n){"use strict";var e=n(63964),a=n(75002);e({target:"Math",stat:!0},{log10:a})},2966:function(w,r,n){"use strict";var e=n(63964),a=n(90874);e({target:"Math",stat:!0},{log1p:a})},20997:function(w,r,n){"use strict";var e=n(63964),a=Math.log,t=Math.LN2;e({target:"Math",stat:!0},{log2:function(){function o(f){return a(f)/t}return o}()})},57400:function(w,r,n){"use strict";var e=n(63964),a=n(22172);e({target:"Math",stat:!0},{sign:a})},45571:function(w,r,n){"use strict";var e=n(63964),a=n(40033),t=n(82040),o=Math.abs,f=Math.exp,b=Math.E,k=a(function(){return Math.sinh(-2e-17)!==-2e-17});e({target:"Math",stat:!0,forced:k},{sinh:function(){function S(y){var h=+y;return o(h)<1?(t(h)-t(-h))/2:(f(h-1)-f(-h-1))*(b/2)}return S}()})},54800:function(w,r,n){"use strict";var e=n(63964),a=n(82040),t=Math.exp;e({target:"Math",stat:!0},{tanh:function(){function o(f){var b=+f,k=a(b),S=a(-b);return k===1/0?1:S===1/0?-1:(k-S)/(t(b)+t(-b))}return o}()})},15709:function(w,r,n){"use strict";var e=n(84925);e(Math,"Math",!0)},76059:function(w,r,n){"use strict";var e=n(63964),a=n(21119);e({target:"Math",stat:!0},{trunc:a})},96614:function(w,r,n){"use strict";var e=n(63964),a=n(4493),t=n(58310),o=n(74685),f=n(61765),b=n(67250),k=n(41314),S=n(45299),y=n(5781),h=n(21287),c=n(71399),i=n(24843),m=n(40033),d=n(37310).f,u=n(27193).f,s=n(74595).f,l=n(46438),v=n(92648).trim,N="Number",C=o[N],p=f[N],g=C.prototype,V=o.TypeError,I=b("".slice),B=b("".charCodeAt),L=function(M){var R=i(M,"number");return typeof R=="bigint"?R:T(R)},T=function(M){var R=i(M,"number"),D,W,_,U,K,G,$,Q;if(c(R))throw new V("Cannot convert a Symbol value to a number");if(typeof R=="string"&&R.length>2){if(R=v(R),D=B(R,0),D===43||D===45){if(W=B(R,2),W===88||W===120)return NaN}else if(D===48){switch(B(R,1)){case 66:case 98:_=2,U=49;break;case 79:case 111:_=8,U=55;break;default:return+R}for(K=I(R,2),G=K.length,$=0;$U)return NaN;return parseInt(K,_)}}return+R},A=k(N,!C(" 0o1")||!C("0b1")||C("+0x1")),x=function(M){return h(g,M)&&m(function(){l(M)})},E=function(){function j(M){var R=arguments.length<1?0:C(L(M));return x(this)?y(Object(R),this,E):R}return j}();E.prototype=g,A&&!a&&(g.constructor=E),e({global:!0,constructor:!0,wrap:!0,forced:A},{Number:E});var P=function(M,R){for(var D=t?d(R):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),W=0,_;D.length>W;W++)S(R,_=D[W])&&!S(M,_)&&s(M,_,u(R,_))};a&&p&&P(f[N],p),(A||a)&&P(f[N],C)},324:function(w,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},90426:function(w,r,n){"use strict";var e=n(63964),a=n(3294);e({target:"Number",stat:!0},{isFinite:a})},95443:function(w,r,n){"use strict";var e=n(63964),a=n(5841);e({target:"Number",stat:!0},{isInteger:a})},87968:function(w,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0},{isNaN:function(){function a(t){return t!==t}return a}()})},55007:function(w,r,n){"use strict";var e=n(63964),a=n(5841),t=Math.abs;e({target:"Number",stat:!0},{isSafeInteger:function(){function o(f){return a(f)&&t(f)<=9007199254740991}return o}()})},55323:function(w,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},13521:function(w,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},5006:function(w,r,n){"use strict";var e=n(63964),a=n(28506);e({target:"Number",stat:!0,forced:Number.parseFloat!==a},{parseFloat:a})},99009:function(w,r,n){"use strict";var e=n(63964),a=n(13693);e({target:"Number",stat:!0,forced:Number.parseInt!==a},{parseInt:a})},85770:function(w,r,n){"use strict";var e=n(63964),a=n(67250),t=n(61365),o=n(46438),f=n(62443),b=n(40033),k=RangeError,S=String,y=Math.floor,h=a(f),c=a("".slice),i=a(1 .toFixed),m=function N(C,p,g){return p===0?g:p%2===1?N(C,p-1,g*C):N(C*C,p/2,g)},d=function(C){for(var p=0,g=C;g>=4096;)p+=12,g/=4096;for(;g>=2;)p+=1,g/=2;return p},u=function(C,p,g){for(var V=-1,I=g;++V<6;)I+=p*C[V],C[V]=I%1e7,I=y(I/1e7)},s=function(C,p){for(var g=6,V=0;--g>=0;)V+=C[g],C[g]=y(V/p),V=V%p*1e7},l=function(C){for(var p=6,g="";--p>=0;)if(g!==""||p===0||C[p]!==0){var V=S(C[p]);g=g===""?V:g+h("0",7-V.length)+V}return g},v=b(function(){return i(8e-5,3)!=="0.000"||i(.9,0)!=="1"||i(1.255,2)!=="1.25"||i(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!b(function(){i({})});e({target:"Number",proto:!0,forced:v},{toFixed:function(){function N(C){var p=o(this),g=t(C),V=[0,0,0,0,0,0],I="",B="0",L,T,A,x;if(g<0||g>20)throw new k("Incorrect fraction digits");if(p!==p)return"NaN";if(p<=-1e21||p>=1e21)return S(p);if(p<0&&(I="-",p=-p),p>1e-21)if(L=d(p*m(2,69,1))-69,T=L<0?p*m(2,-L,1):p/m(2,L,1),T*=4503599627370496,L=52-L,L>0){for(u(V,0,T),A=g;A>=7;)u(V,1e7,0),A-=7;for(u(V,m(10,A,1),0),A=L-1;A>=23;)s(V,8388608),A-=23;s(V,1<0?(x=B.length,B=I+(x<=g?"0."+h("0",g-x)+B:c(B,0,x-g)+"."+c(B,x-g))):B=I+B,B}return N}()})},23532:function(w,r,n){"use strict";var e=n(63964),a=n(67250),t=n(40033),o=n(46438),f=a(1 .toPrecision),b=t(function(){return f(1,void 0)!=="1"})||!t(function(){f({})});e({target:"Number",proto:!0,forced:b},{toPrecision:function(){function k(S){return S===void 0?f(o(this)):f(o(this),S)}return k}()})},87119:function(w,r,n){"use strict";var e=n(63964),a=n(41143);e({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},78618:function(w,r,n){"use strict";var e=n(63964),a=n(58310),t=n(80674);e({target:"Object",stat:!0,sham:!a},{create:t})},27129:function(w,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(10320),f=n(46771),b=n(74595);a&&e({target:"Object",proto:!0,forced:t},{__defineGetter__:function(){function k(S,y){b.f(f(this),S,{get:o(y),enumerable:!0,configurable:!0})}return k}()})},31943:function(w,r,n){"use strict";var e=n(63964),a=n(58310),t=n(24239).f;e({target:"Object",stat:!0,forced:Object.defineProperties!==t,sham:!a},{defineProperties:t})},3579:function(w,r,n){"use strict";var e=n(63964),a=n(58310),t=n(74595).f;e({target:"Object",stat:!0,forced:Object.defineProperty!==t,sham:!a},{defineProperty:t})},97397:function(w,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(10320),f=n(46771),b=n(74595);a&&e({target:"Object",proto:!0,forced:t},{__defineSetter__:function(){function k(S,y){b.f(f(this),S,{set:o(y),enumerable:!0,configurable:!0})}return k}()})},85028:function(w,r,n){"use strict";var e=n(63964),a=n(70915).entries;e({target:"Object",stat:!0},{entries:function(){function t(o){return a(o)}return t}()})},8225:function(w,r,n){"use strict";var e=n(63964),a=n(50730),t=n(40033),o=n(77568),f=n(81969).onFreeze,b=Object.freeze,k=t(function(){b(1)});e({target:"Object",stat:!0,forced:k,sham:!a},{freeze:function(){function S(y){return b&&o(y)?b(f(y)):y}return S}()})},43331:function(w,r,n){"use strict";var e=n(63964),a=n(49450),t=n(60102);e({target:"Object",stat:!0},{fromEntries:function(){function o(f){var b={};return a(f,function(k,S){t(b,k,S)},{AS_ENTRIES:!0}),b}return o}()})},62289:function(w,r,n){"use strict";var e=n(63964),a=n(40033),t=n(57591),o=n(27193).f,f=n(58310),b=!f||a(function(){o(1)});e({target:"Object",stat:!0,forced:b,sham:!f},{getOwnPropertyDescriptor:function(){function k(S,y){return o(t(S),y)}return k}()})},56196:function(w,r,n){"use strict";var e=n(63964),a=n(58310),t=n(97921),o=n(57591),f=n(27193),b=n(60102);e({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(){function k(S){for(var y=o(S),h=f.f,c=t(y),i={},m=0,d,u;c.length>m;)u=h(y,d=c[m++]),u!==void 0&&b(i,d,u);return i}return k}()})},2950:function(w,r,n){"use strict";var e=n(63964),a=n(40033),t=n(81644).f,o=a(function(){return!Object.getOwnPropertyNames(1)});e({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:t})},28603:function(w,r,n){"use strict";var e=n(63964),a=n(52357),t=n(40033),o=n(89235),f=n(46771),b=!a||t(function(){o.f(1)});e({target:"Object",stat:!0,forced:b},{getOwnPropertySymbols:function(){function k(S){var y=o.f;return y?y(f(S)):[]}return k}()})},44205:function(w,r,n){"use strict";var e=n(63964),a=n(40033),t=n(46771),o=n(36917),f=n(9225),b=a(function(){o(1)});e({target:"Object",stat:!0,forced:b,sham:!f},{getPrototypeOf:function(){function k(S){return o(t(S))}return k}()})},83186:function(w,r,n){"use strict";var e=n(63964),a=n(81834);e({target:"Object",stat:!0,forced:Object.isExtensible!==a},{isExtensible:a})},76065:function(w,r,n){"use strict";var e=n(63964),a=n(40033),t=n(77568),o=n(7462),f=n(3782),b=Object.isFrozen,k=f||a(function(){b(1)});e({target:"Object",stat:!0,forced:k},{isFrozen:function(){function S(y){return!t(y)||f&&o(y)==="ArrayBuffer"?!0:b?b(y):!1}return S}()})},13411:function(w,r,n){"use strict";var e=n(63964),a=n(40033),t=n(77568),o=n(7462),f=n(3782),b=Object.isSealed,k=f||a(function(){b(1)});e({target:"Object",stat:!0,forced:k},{isSealed:function(){function S(y){return!t(y)||f&&o(y)==="ArrayBuffer"?!0:b?b(y):!1}return S}()})},76882:function(w,r,n){"use strict";var e=n(63964),a=n(5700);e({target:"Object",stat:!0},{is:a})},26634:function(w,r,n){"use strict";var e=n(63964),a=n(46771),t=n(18450),o=n(40033),f=o(function(){t(1)});e({target:"Object",stat:!0,forced:f},{keys:function(){function b(k){return t(a(k))}return b}()})},53118:function(w,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(46771),f=n(767),b=n(36917),k=n(27193).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupGetter__:function(){function S(y){var h=o(this),c=f(y),i;do if(i=k(h,c))return i.get;while(h=b(h))}return S}()})},42514:function(w,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(46771),f=n(767),b=n(36917),k=n(27193).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupSetter__:function(){function S(y){var h=o(this),c=f(y),i;do if(i=k(h,c))return i.set;while(h=b(h))}return S}()})},84353:function(w,r,n){"use strict";var e=n(63964),a=n(77568),t=n(81969).onFreeze,o=n(50730),f=n(40033),b=Object.preventExtensions,k=f(function(){b(1)});e({target:"Object",stat:!0,forced:k,sham:!o},{preventExtensions:function(){function S(y){return b&&a(y)?b(t(y)):y}return S}()})},62987:function(w,r,n){"use strict";var e=n(63964),a=n(77568),t=n(81969).onFreeze,o=n(50730),f=n(40033),b=Object.seal,k=f(function(){b(1)});e({target:"Object",stat:!0,forced:k,sham:!o},{seal:function(){function S(y){return b&&a(y)?b(t(y)):y}return S}()})},48993:function(w,r,n){"use strict";var e=n(63964),a=n(76649);e({target:"Object",stat:!0},{setPrototypeOf:a})},52917:function(w,r,n){"use strict";var e=n(2650),a=n(55938),t=n(2509);e||a(Object.prototype,"toString",t,{unsafe:!0})},4972:function(w,r,n){"use strict";var e=n(63964),a=n(70915).values;e({target:"Object",stat:!0},{values:function(){function t(o){return a(o)}return t}()})},28913:function(w,r,n){"use strict";var e=n(63964),a=n(28506);e({global:!0,forced:parseFloat!==a},{parseFloat:a})},36382:function(w,r,n){"use strict";var e=n(63964),a=n(13693);e({global:!0,forced:parseInt!==a},{parseInt:a})},48865:function(w,r,n){"use strict";var e=n(63964),a=n(91495),t=n(10320),o=n(81837),f=n(10729),b=n(49450),k=n(48199);e({target:"Promise",stat:!0,forced:k},{all:function(){function S(y){var h=this,c=o.f(h),i=c.resolve,m=c.reject,d=f(function(){var u=t(h.resolve),s=[],l=0,v=1;b(y,function(N){var C=l++,p=!1;v++,a(u,h,N).then(function(g){p||(p=!0,s[C]=g,--v||i(s))},m)}),--v||i(s)});return d.error&&m(d.value),c.promise}return S}()})},70641:function(w,r,n){"use strict";var e=n(63964),a=n(4493),t=n(74854).CONSTRUCTOR,o=n(67512),f=n(4009),b=n(55747),k=n(55938),S=o&&o.prototype;if(e({target:"Promise",proto:!0,forced:t,real:!0},{catch:function(){function h(c){return this.then(void 0,c)}return h}()}),!a&&b(o)){var y=f("Promise").prototype.catch;S.catch!==y&&k(S,"catch",y,{unsafe:!0})}},75946:function(w,r,n){"use strict";var e=n(63964),a=n(4493),t=n(81702),o=n(74685),f=n(91495),b=n(55938),k=n(76649),S=n(84925),y=n(58491),h=n(10320),c=n(55747),i=n(77568),m=n(60077),d=n(28987),u=n(60375).set,s=n(37713),l=n(72259),v=n(10729),N=n(9547),C=n(5419),p=n(67512),g=n(74854),V=n(81837),I="Promise",B=g.CONSTRUCTOR,L=g.REJECTION_EVENT,T=g.SUBCLASSING,A=C.getterFor(I),x=C.set,E=p&&p.prototype,P=p,j=E,M=o.TypeError,R=o.document,D=o.process,W=V.f,_=W,U=!!(R&&R.createEvent&&o.dispatchEvent),K="unhandledrejection",G="rejectionhandled",$=0,Q=1,J=2,ie=1,ne=2,se,Ce,Se,ke,he=function(ge){var Le;return i(ge)&&c(Le=ge.then)?Le:!1},oe=function(ge,Le){var we=Le.value,xe=Le.state===Q,Re=xe?ge.ok:ge.fail,ze=ge.resolve,Ve=ge.reject,re=ge.domain,le,Ne,de;try{Re?(xe||(Le.rejection===ne&&te(Le),Le.rejection=ie),Re===!0?le=we:(re&&re.enter(),le=Re(we),re&&(re.exit(),de=!0)),le===ge.promise?Ve(new M("Promise-chain cycle")):(Ne=he(le))?f(Ne,le,ze,Ve):ze(le)):Ve(we)}catch(ye){re&&!de&&re.exit(),Ve(ye)}},ce=function(ge,Le){ge.notified||(ge.notified=!0,s(function(){for(var we=ge.reactions,xe;xe=we.get();)oe(xe,ge);ge.notified=!1,Le&&!ge.rejection&&fe(ge)}))},ee=function(ge,Le,we){var xe,Re;U?(xe=R.createEvent("Event"),xe.promise=Le,xe.reason=we,xe.initEvent(ge,!1,!0),o.dispatchEvent(xe)):xe={promise:Le,reason:we},!L&&(Re=o["on"+ge])?Re(xe):ge===K&&l("Unhandled promise rejection",we)},fe=function(ge){f(u,o,function(){var Le=ge.facade,we=ge.value,xe=me(ge),Re;if(xe&&(Re=v(function(){t?D.emit("unhandledRejection",we,Le):ee(K,Le,we)}),ge.rejection=t||me(ge)?ne:ie,Re.error))throw Re.value})},me=function(ge){return ge.rejection!==ie&&!ge.parent},te=function(ge){f(u,o,function(){var Le=ge.facade;t?D.emit("rejectionHandled",Le):ee(G,Le,ge.value)})},be=function(ge,Le,we){return function(xe){ge(Le,xe,we)}},pe=function(ge,Le,we){ge.done||(ge.done=!0,we&&(ge=we),ge.value=Le,ge.state=J,ce(ge,!0))},ve=function Be(ge,Le,we){if(!ge.done){ge.done=!0,we&&(ge=we);try{if(ge.facade===Le)throw new M("Promise can't be resolved itself");var xe=he(Le);xe?s(function(){var Re={done:!1};try{f(xe,Le,be(Be,Re,ge),be(pe,Re,ge))}catch(ze){pe(Re,ze,ge)}}):(ge.value=Le,ge.state=Q,ce(ge,!1))}catch(Re){pe({done:!1},Re,ge)}}};if(B&&(P=function(){function Be(ge){m(this,j),h(ge),f(se,this);var Le=A(this);try{ge(be(ve,Le),be(pe,Le))}catch(we){pe(Le,we)}}return Be}(),j=P.prototype,se=function(){function Be(ge){x(this,{type:I,done:!1,notified:!1,parent:!1,reactions:new N,rejection:!1,state:$,value:void 0})}return Be}(),se.prototype=b(j,"then",function(){function Be(ge,Le){var we=A(this),xe=W(d(this,P));return we.parent=!0,xe.ok=c(ge)?ge:!0,xe.fail=c(Le)&&Le,xe.domain=t?D.domain:void 0,we.state===$?we.reactions.add(xe):s(function(){oe(xe,we)}),xe.promise}return Be}()),Ce=function(){var ge=new se,Le=A(ge);this.promise=ge,this.resolve=be(ve,Le),this.reject=be(pe,Le)},V.f=W=function(ge){return ge===P||ge===Se?new Ce(ge):_(ge)},!a&&c(p)&&E!==Object.prototype)){ke=E.then,T||b(E,"then",function(){function Be(ge,Le){var we=this;return new P(function(xe,Re){f(ke,we,xe,Re)}).then(ge,Le)}return Be}(),{unsafe:!0});try{delete E.constructor}catch(Be){}k&&k(E,j)}e({global:!0,constructor:!0,wrap:!0,forced:B},{Promise:P}),S(P,I,!1,!0),y(I)},69861:function(w,r,n){"use strict";var e=n(63964),a=n(4493),t=n(67512),o=n(40033),f=n(4009),b=n(55747),k=n(28987),S=n(66628),y=n(55938),h=t&&t.prototype,c=!!t&&o(function(){h.finally.call({then:function(){function m(){}return m}()},function(){})});if(e({target:"Promise",proto:!0,real:!0,forced:c},{finally:function(){function m(d){var u=k(this,f("Promise")),s=b(d);return this.then(s?function(l){return S(u,d()).then(function(){return l})}:d,s?function(l){return S(u,d()).then(function(){throw l})}:d)}return m}()}),!a&&b(t)){var i=f("Promise").prototype.finally;h.finally!==i&&y(h,"finally",i,{unsafe:!0})}},53092:function(w,r,n){"use strict";n(75946),n(48865),n(70641),n(16937),n(41719),n(59321)},16937:function(w,r,n){"use strict";var e=n(63964),a=n(91495),t=n(10320),o=n(81837),f=n(10729),b=n(49450),k=n(48199);e({target:"Promise",stat:!0,forced:k},{race:function(){function S(y){var h=this,c=o.f(h),i=c.reject,m=f(function(){var d=t(h.resolve);b(y,function(u){a(d,h,u).then(c.resolve,i)})});return m.error&&i(m.value),c.promise}return S}()})},41719:function(w,r,n){"use strict";var e=n(63964),a=n(81837),t=n(74854).CONSTRUCTOR;e({target:"Promise",stat:!0,forced:t},{reject:function(){function o(f){var b=a.f(this),k=b.reject;return k(f),b.promise}return o}()})},59321:function(w,r,n){"use strict";var e=n(63964),a=n(4009),t=n(4493),o=n(67512),f=n(74854).CONSTRUCTOR,b=n(66628),k=a("Promise"),S=t&&!f;e({target:"Promise",stat:!0,forced:t||f},{resolve:function(){function y(h){return b(S&&this===k?o:this,h)}return y}()})},29674:function(w,r,n){"use strict";var e=n(63964),a=n(61267),t=n(10320),o=n(30365),f=n(40033),b=!f(function(){Reflect.apply(function(){})});e({target:"Reflect",stat:!0,forced:b},{apply:function(){function k(S,y,h){return a(t(S),y,o(h))}return k}()})},81543:function(w,r,n){"use strict";var e=n(63964),a=n(4009),t=n(61267),o=n(66284),f=n(32606),b=n(30365),k=n(77568),S=n(80674),y=n(40033),h=a("Reflect","construct"),c=Object.prototype,i=[].push,m=y(function(){function s(){}return!(h(function(){},[],s)instanceof s)}),d=!y(function(){h(function(){})}),u=m||d;e({target:"Reflect",stat:!0,forced:u,sham:u},{construct:function(){function s(l,v){f(l),b(v);var N=arguments.length<3?l:f(arguments[2]);if(d&&!m)return h(l,v,N);if(l===N){switch(v.length){case 0:return new l;case 1:return new l(v[0]);case 2:return new l(v[0],v[1]);case 3:return new l(v[0],v[1],v[2]);case 4:return new l(v[0],v[1],v[2],v[3])}var C=[null];return t(i,C,v),new(t(o,l,C))}var p=N.prototype,g=S(k(p)?p:c),V=t(l,g,v);return k(V)?V:g}return s}()})},9373:function(w,r,n){"use strict";var e=n(63964),a=n(58310),t=n(30365),o=n(767),f=n(74595),b=n(40033),k=b(function(){Reflect.defineProperty(f.f({},1,{value:1}),1,{value:2})});e({target:"Reflect",stat:!0,forced:k,sham:!a},{defineProperty:function(){function S(y,h,c){t(y);var i=o(h);t(c);try{return f.f(y,i,c),!0}catch(m){return!1}}return S}()})},45093:function(w,r,n){"use strict";var e=n(63964),a=n(30365),t=n(27193).f;e({target:"Reflect",stat:!0},{deleteProperty:function(){function o(f,b){var k=t(a(f),b);return k&&!k.configurable?!1:delete f[b]}return o}()})},5815:function(w,r,n){"use strict";var e=n(63964),a=n(58310),t=n(30365),o=n(27193);e({target:"Reflect",stat:!0,sham:!a},{getOwnPropertyDescriptor:function(){function f(b,k){return o.f(t(b),k)}return f}()})},88527:function(w,r,n){"use strict";var e=n(63964),a=n(30365),t=n(36917),o=n(9225);e({target:"Reflect",stat:!0,sham:!o},{getPrototypeOf:function(){function f(b){return t(a(b))}return f}()})},63074:function(w,r,n){"use strict";var e=n(63964),a=n(91495),t=n(77568),o=n(30365),f=n(98373),b=n(27193),k=n(36917);function S(y,h){var c=arguments.length<3?y:arguments[2],i,m;if(o(y)===c)return y[h];if(i=b.f(y,h),i)return f(i)?i.value:i.get===void 0?void 0:a(i.get,c);if(t(m=k(y)))return S(m,h,c)}e({target:"Reflect",stat:!0},{get:S})},66390:function(w,r,n){"use strict";var e=n(63964);e({target:"Reflect",stat:!0},{has:function(){function a(t,o){return o in t}return a}()})},7784:function(w,r,n){"use strict";var e=n(63964),a=n(30365),t=n(81834);e({target:"Reflect",stat:!0},{isExtensible:function(){function o(f){return a(f),t(f)}return o}()})},50551:function(w,r,n){"use strict";var e=n(63964),a=n(97921);e({target:"Reflect",stat:!0},{ownKeys:a})},76483:function(w,r,n){"use strict";var e=n(63964),a=n(4009),t=n(30365),o=n(50730);e({target:"Reflect",stat:!0,sham:!o},{preventExtensions:function(){function f(b){t(b);try{var k=a("Object","preventExtensions");return k&&k(b),!0}catch(S){return!1}}return f}()})},63915:function(w,r,n){"use strict";var e=n(63964),a=n(30365),t=n(35908),o=n(76649);o&&e({target:"Reflect",stat:!0},{setPrototypeOf:function(){function f(b,k){a(b),t(k);try{return o(b,k),!0}catch(S){return!1}}return f}()})},92046:function(w,r,n){"use strict";var e=n(63964),a=n(91495),t=n(30365),o=n(77568),f=n(98373),b=n(40033),k=n(74595),S=n(27193),y=n(36917),h=n(87458);function c(m,d,u){var s=arguments.length<4?m:arguments[3],l=S.f(t(m),d),v,N,C;if(!l){if(o(N=y(m)))return c(N,d,u,s);l=h(0)}if(f(l)){if(l.writable===!1||!o(s))return!1;if(v=S.f(s,d)){if(v.get||v.set||v.writable===!1)return!1;v.value=u,k.f(s,d,v)}else k.f(s,d,h(0,u))}else{if(C=l.set,C===void 0)return!1;a(C,s,u)}return!0}var i=b(function(){var m=function(){},d=k.f(new m,"a",{configurable:!0});return Reflect.set(m.prototype,"a",1,d)!==!1});e({target:"Reflect",stat:!0,forced:i},{set:c})},51454:function(w,r,n){"use strict";var e=n(58310),a=n(74685),t=n(67250),o=n(41314),f=n(5781),b=n(37909),k=n(80674),S=n(37310).f,y=n(21287),h=n(72586),c=n(12605),i=n(73392),m=n(62115),d=n(34550),u=n(55938),s=n(40033),l=n(45299),v=n(5419).enforce,N=n(58491),C=n(24697),p=n(39173),g=n(35688),V=C("match"),I=a.RegExp,B=I.prototype,L=a.SyntaxError,T=t(B.exec),A=t("".charAt),x=t("".replace),E=t("".indexOf),P=t("".slice),j=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,M=/a/g,R=/a/g,D=new I(M)!==M,W=m.MISSED_STICKY,_=m.UNSUPPORTED_Y,U=e&&(!D||W||p||g||s(function(){return R[V]=!1,I(M)!==M||I(R)===R||String(I(M,"i"))!=="/a/i"})),K=function(ne){for(var se=ne.length,Ce=0,Se="",ke=!1,he;Ce<=se;Ce++){if(he=A(ne,Ce),he==="\\"){Se+=he+A(ne,++Ce);continue}!ke&&he==="."?Se+="[\\s\\S]":(he==="["?ke=!0:he==="]"&&(ke=!1),Se+=he)}return Se},G=function(ne){for(var se=ne.length,Ce=0,Se="",ke=[],he=k(null),oe=!1,ce=!1,ee=0,fe="",me;Ce<=se;Ce++){if(me=A(ne,Ce),me==="\\")me+=A(ne,++Ce);else if(me==="]")oe=!1;else if(!oe)switch(!0){case me==="[":oe=!0;break;case me==="(":T(j,P(ne,Ce+1))&&(Ce+=2,ce=!0),Se+=me,ee++;continue;case(me===">"&&ce):if(fe===""||l(he,fe))throw new L("Invalid capture group name");he[fe]=!0,ke[ke.length]=[fe,ee],ce=!1,fe="";continue}ce?fe+=me:Se+=me}return[Se,ke]};if(o("RegExp",U)){for(var $=function(){function ie(ne,se){var Ce=y(B,this),Se=h(ne),ke=se===void 0,he=[],oe=ne,ce,ee,fe,me,te,be;if(!Ce&&Se&&ke&&ne.constructor===$)return ne;if((Se||y(B,ne))&&(ne=ne.source,ke&&(se=i(oe))),ne=ne===void 0?"":c(ne),se=se===void 0?"":c(se),oe=ne,p&&"dotAll"in M&&(ee=!!se&&E(se,"s")>-1,ee&&(se=x(se,/s/g,""))),ce=se,W&&"sticky"in M&&(fe=!!se&&E(se,"y")>-1,fe&&_&&(se=x(se,/y/g,""))),g&&(me=G(ne),ne=me[0],he=me[1]),te=f(I(ne,se),Ce?this:B,$),(ee||fe||he.length)&&(be=v(te),ee&&(be.dotAll=!0,be.raw=$(K(ne),ce)),fe&&(be.sticky=!0),he.length&&(be.groups=he)),ne!==oe)try{b(te,"source",oe===""?"(?:)":oe)}catch(pe){}return te}return ie}(),Q=S(I),J=0;Q.length>J;)d($,I,Q[J++]);B.constructor=$,$.prototype=B,u(a,"RegExp",$,{constructor:!0})}N("RegExp")},79669:function(w,r,n){"use strict";var e=n(63964),a=n(14489);e({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},23057:function(w,r,n){"use strict";var e=n(74685),a=n(58310),t=n(73936),o=n(70901),f=n(40033),b=e.RegExp,k=b.prototype,S=a&&f(function(){var y=!0;try{b(".","d")}catch(l){y=!1}var h={},c="",i=y?"dgimsy":"gimsy",m=function(v,N){Object.defineProperty(h,v,{get:function(){function C(){return c+=N,!0}return C}()})},d={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};y&&(d.hasIndices="d");for(var u in d)m(u,d[u]);var s=Object.getOwnPropertyDescriptor(k,"flags").get.call(h);return s!==i||c!==i});S&&t(k,"flags",{configurable:!0,get:o})},57983:function(w,r,n){"use strict";var e=n(70520).PROPER,a=n(55938),t=n(30365),o=n(12605),f=n(40033),b=n(73392),k="toString",S=RegExp.prototype,y=S[k],h=f(function(){return y.call({source:"a",flags:"b"})!=="/a/b"}),c=e&&y.name!==k;(h||c)&&a(S,k,function(){function i(){var m=t(this),d=o(m.source),u=o(b(m));return"/"+d+"/"+u}return i}(),{unsafe:!0})},1963:function(w,r,n){"use strict";var e=n(45150),a=n(41028);e("Set",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},17953:function(w,r,n){"use strict";n(1963)},95309:function(w,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("anchor")},{anchor:function(){function o(f){return a(this,"a","name",f)}return o}()})},82256:function(w,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("big")},{big:function(){function o(){return a(this,"big","","")}return o}()})},49484:function(w,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("blink")},{blink:function(){function o(){return a(this,"blink","","")}return o}()})},38931:function(w,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("bold")},{bold:function(){function o(){return a(this,"b","","")}return o}()})},30442:function(w,r,n){"use strict";var e=n(63964),a=n(50233).codeAt;e({target:"String",proto:!0},{codePointAt:function(){function t(o){return a(this,o)}return t}()})},6403:function(w,r,n){"use strict";var e=n(63964),a=n(71138),t=n(27193).f,o=n(10188),f=n(12605),b=n(86213),k=n(16952),S=n(45490),y=n(4493),h=a("".slice),c=Math.min,i=S("endsWith"),m=!y&&!i&&!!function(){var d=t(String.prototype,"endsWith");return d&&!d.writable}();e({target:"String",proto:!0,forced:!m&&!i},{endsWith:function(){function d(u){var s=f(k(this));b(u);var l=arguments.length>1?arguments[1]:void 0,v=s.length,N=l===void 0?v:c(o(l),v),C=f(u);return h(s,N-C.length,N)===C}return d}()})},39308:function(w,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("fixed")},{fixed:function(){function o(){return a(this,"tt","","")}return o}()})},91550:function(w,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("fontcolor")},{fontcolor:function(){function o(f){return a(this,"font","color",f)}return o}()})},75008:function(w,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("fontsize")},{fontsize:function(){function o(f){return a(this,"font","size",f)}return o}()})},9867:function(w,r,n){"use strict";var e=n(63964),a=n(67250),t=n(13912),o=RangeError,f=String.fromCharCode,b=String.fromCodePoint,k=a([].join),S=!!b&&b.length!==1;e({target:"String",stat:!0,arity:1,forced:S},{fromCodePoint:function(){function y(h){for(var c=[],i=arguments.length,m=0,d;i>m;){if(d=+arguments[m++],t(d,1114111)!==d)throw new o(d+" is not a valid code point");c[m]=d<65536?f(d):f(((d-=65536)>>10)+55296,d%1024+56320)}return k(c,"")}return y}()})},43673:function(w,r,n){"use strict";var e=n(63964),a=n(67250),t=n(86213),o=n(16952),f=n(12605),b=n(45490),k=a("".indexOf);e({target:"String",proto:!0,forced:!b("includes")},{includes:function(){function S(y){return!!~k(f(o(this)),f(t(y)),arguments.length>1?arguments[1]:void 0)}return S}()})},56027:function(w,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("italics")},{italics:function(){function o(){return a(this,"i","","")}return o}()})},12354:function(w,r,n){"use strict";var e=n(50233).charAt,a=n(12605),t=n(5419),o=n(65574),f=n(5959),b="String Iterator",k=t.set,S=t.getterFor(b);o(String,"String",function(y){k(this,{type:b,string:a(y),index:0})},function(){function y(){var h=S(this),c=h.string,i=h.index,m;return i>=c.length?f(void 0,!0):(m=e(c,i),h.index+=m.length,f(m,!1))}return y}())},50340:function(w,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("link")},{link:function(){function o(f){return a(this,"a","href",f)}return o}()})},22515:function(w,r,n){"use strict";var e=n(91495),a=n(79942),t=n(30365),o=n(42871),f=n(10188),b=n(12605),k=n(16952),S=n(78060),y=n(35483),h=n(28340);a("match",function(c,i,m){return[function(){function d(u){var s=k(this),l=o(u)?void 0:S(u,c);return l?e(l,u,s):new RegExp(u)[c](b(s))}return d}(),function(d){var u=t(this),s=b(d),l=m(i,u,s);if(l.done)return l.value;if(!u.global)return h(u,s);var v=u.unicode;u.lastIndex=0;for(var N=[],C=0,p;(p=h(u,s))!==null;){var g=b(p[0]);N[C]=g,g===""&&(u.lastIndex=y(s,f(u.lastIndex),v)),C++}return C===0?null:N}]})},5143:function(w,r,n){"use strict";var e=n(63964),a=n(24051).end,t=n(34125);e({target:"String",proto:!0,forced:t},{padEnd:function(){function o(f){return a(this,f,arguments.length>1?arguments[1]:void 0)}return o}()})},93514:function(w,r,n){"use strict";var e=n(63964),a=n(24051).start,t=n(34125);e({target:"String",proto:!0,forced:t},{padStart:function(){function o(f){return a(this,f,arguments.length>1?arguments[1]:void 0)}return o}()})},5416:function(w,r,n){"use strict";var e=n(63964),a=n(67250),t=n(57591),o=n(46771),f=n(12605),b=n(24760),k=a([].push),S=a([].join);e({target:"String",stat:!0},{raw:function(){function y(h){var c=t(o(h).raw),i=b(c);if(!i)return"";for(var m=arguments.length,d=[],u=0;;){if(k(d,f(c[u++])),u===i)return S(d,"");u")!=="7"});o("replace",function(x,E,P){var j=T?"$":"$0";return[function(){function M(R,D){var W=i(this),_=S(R)?void 0:d(R,v);return _?a(_,R,W,D):a(E,c(W),R,D)}return M}(),function(M,R){var D=b(this),W=c(M);if(typeof R=="string"&&V(R,j)===-1&&V(R,"$<")===-1){var _=P(E,D,W,R);if(_.done)return _.value}var U=k(R);U||(R=c(R));var K=D.global,G;K&&(G=D.unicode,D.lastIndex=0);for(var $=[],Q;Q=s(D,W),!(Q===null||(g($,Q),!K));){var J=c(Q[0]);J===""&&(D.lastIndex=m(W,h(D.lastIndex),G))}for(var ie="",ne=0,se=0;se<$.length;se++){Q=$[se];for(var Ce=c(Q[0]),Se=N(C(y(Q.index),W.length),0),ke=[],he,oe=1;oe=ne&&(ie+=I(W,ne,Se)+he,ne=Se+Ce.length)}return ie+I(W,ne)}]},!A||!L||T)},63272:function(w,r,n){"use strict";var e=n(91495),a=n(79942),t=n(30365),o=n(42871),f=n(16952),b=n(5700),k=n(12605),S=n(78060),y=n(28340);a("search",function(h,c,i){return[function(){function m(d){var u=f(this),s=o(d)?void 0:S(d,h);return s?e(s,d,u):new RegExp(d)[h](k(u))}return m}(),function(m){var d=t(this),u=k(m),s=i(c,d,u);if(s.done)return s.value;var l=d.lastIndex;b(l,0)||(d.lastIndex=0);var v=y(d,u);return b(d.lastIndex,l)||(d.lastIndex=l),v===null?-1:v.index}]})},34325:function(w,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("small")},{small:function(){function o(){return a(this,"small","","")}return o}()})},39930:function(w,r,n){"use strict";var e=n(91495),a=n(67250),t=n(79942),o=n(30365),f=n(42871),b=n(16952),k=n(28987),S=n(35483),y=n(10188),h=n(12605),c=n(78060),i=n(28340),m=n(62115),d=n(40033),u=m.UNSUPPORTED_Y,s=4294967295,l=Math.min,v=a([].push),N=a("".slice),C=!d(function(){var g=/(?:)/,V=g.exec;g.exec=function(){return V.apply(this,arguments)};var I="ab".split(g);return I.length!==2||I[0]!=="a"||I[1]!=="b"}),p="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;t("split",function(g,V,I){var B="0".split(void 0,0).length?function(L,T){return L===void 0&&T===0?[]:e(V,this,L,T)}:V;return[function(){function L(T,A){var x=b(this),E=f(T)?void 0:c(T,g);return E?e(E,T,x,A):e(B,h(x),T,A)}return L}(),function(L,T){var A=o(this),x=h(L);if(!p){var E=I(B,A,x,T,B!==V);if(E.done)return E.value}var P=k(A,RegExp),j=A.unicode,M=(A.ignoreCase?"i":"")+(A.multiline?"m":"")+(A.unicode?"u":"")+(u?"g":"y"),R=new P(u?"^(?:"+A.source+")":A,M),D=T===void 0?s:T>>>0;if(D===0)return[];if(x.length===0)return i(R,x)===null?[x]:[];for(var W=0,_=0,U=[];_1?arguments[1]:void 0,s.length)),v=f(u);return h(s,l,l+v.length)===v}return d}()})},74498:function(w,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("strike")},{strike:function(){function o(){return a(this,"strike","","")}return o}()})},15812:function(w,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("sub")},{sub:function(){function o(){return a(this,"sub","","")}return o}()})},57726:function(w,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("sup")},{sup:function(){function o(){return a(this,"sup","","")}return o}()})},70604:function(w,r,n){"use strict";n(99159);var e=n(63964),a=n(43476);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==a},{trimEnd:a})},85404:function(w,r,n){"use strict";var e=n(63964),a=n(43885);e({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==a},{trimLeft:a})},99159:function(w,r,n){"use strict";var e=n(63964),a=n(43476);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==a},{trimRight:a})},34965:function(w,r,n){"use strict";n(85404);var e=n(63964),a=n(43885);e({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==a},{trimStart:a})},8448:function(w,r,n){"use strict";var e=n(63964),a=n(92648).trim,t=n(90012);e({target:"String",proto:!0,forced:t("trim")},{trim:function(){function o(){return a(this)}return o}()})},79250:function(w,r,n){"use strict";var e=n(85889);e("asyncIterator")},49899:function(w,r,n){"use strict";var e=n(63964),a=n(74685),t=n(91495),o=n(67250),f=n(4493),b=n(58310),k=n(52357),S=n(40033),y=n(45299),h=n(21287),c=n(30365),i=n(57591),m=n(767),d=n(12605),u=n(87458),s=n(80674),l=n(18450),v=n(37310),N=n(81644),C=n(89235),p=n(27193),g=n(74595),V=n(24239),I=n(12867),B=n(55938),L=n(73936),T=n(16639),A=n(19417),x=n(79195),E=n(16738),P=n(24697),j=n(55557),M=n(85889),R=n(52360),D=n(84925),W=n(5419),_=n(22603).forEach,U=A("hidden"),K="Symbol",G="prototype",$=W.set,Q=W.getterFor(K),J=Object[G],ie=a.Symbol,ne=ie&&ie[G],se=a.RangeError,Ce=a.TypeError,Se=a.QObject,ke=p.f,he=g.f,oe=N.f,ce=I.f,ee=o([].push),fe=T("symbols"),me=T("op-symbols"),te=T("wks"),be=!Se||!Se[G]||!Se[G].findChild,pe=function(le,Ne,de){var ye=ke(J,Ne);ye&&delete J[Ne],he(le,Ne,de),ye&&le!==J&&he(J,Ne,ye)},ve=b&&S(function(){return s(he({},"a",{get:function(){function re(){return he(this,"a",{value:7}).a}return re}()})).a!==7})?pe:he,Be=function(le,Ne){var de=fe[le]=s(ne);return $(de,{type:K,tag:le,description:Ne}),b||(de.description=Ne),de},ge=function(){function re(le,Ne,de){le===J&&ge(me,Ne,de),c(le);var ye=m(Ne);return c(de),y(fe,ye)?(de.enumerable?(y(le,U)&&le[U][ye]&&(le[U][ye]=!1),de=s(de,{enumerable:u(0,!1)})):(y(le,U)||he(le,U,u(1,s(null))),le[U][ye]=!0),ve(le,ye,de)):he(le,ye,de)}return re}(),Le=function(){function re(le,Ne){c(le);var de=i(Ne),ye=l(de).concat(Ve(de));return _(ye,function(Me){(!b||t(xe,de,Me))&&ge(le,Me,de[Me])}),le}return re}(),we=function(){function re(le,Ne){return Ne===void 0?s(le):Le(s(le),Ne)}return re}(),xe=function(){function re(le){var Ne=m(le),de=t(ce,this,Ne);return this===J&&y(fe,Ne)&&!y(me,Ne)?!1:de||!y(this,Ne)||!y(fe,Ne)||y(this,U)&&this[U][Ne]?de:!0}return re}(),Re=function(){function re(le,Ne){var de=i(le),ye=m(Ne);if(!(de===J&&y(fe,ye)&&!y(me,ye))){var Me=ke(de,ye);return Me&&y(fe,ye)&&!(y(de,U)&&de[U][ye])&&(Me.enumerable=!0),Me}}return re}(),ze=function(){function re(le){var Ne=oe(i(le)),de=[];return _(Ne,function(ye){!y(fe,ye)&&!y(x,ye)&&ee(de,ye)}),de}return re}(),Ve=function(le){var Ne=le===J,de=oe(Ne?me:i(le)),ye=[];return _(de,function(Me){y(fe,Me)&&(!Ne||y(J,Me))&&ee(ye,fe[Me])}),ye};k||(ie=function(){function re(){if(h(ne,this))throw new Ce("Symbol is not a constructor");var le=!arguments.length||arguments[0]===void 0?void 0:d(arguments[0]),Ne=E(le),de=function(){function ye(Me){var je=this===void 0?a:this;je===J&&t(ye,me,Me),y(je,U)&&y(je[U],Ne)&&(je[U][Ne]=!1);var Fe=u(1,Me);try{ve(je,Ne,Fe)}catch(He){if(!(He instanceof se))throw He;pe(je,Ne,Fe)}}return ye}();return b&&be&&ve(J,Ne,{configurable:!0,set:de}),Be(Ne,le)}return re}(),ne=ie[G],B(ne,"toString",function(){function re(){return Q(this).tag}return re}()),B(ie,"withoutSetter",function(re){return Be(E(re),re)}),I.f=xe,g.f=ge,V.f=Le,p.f=Re,v.f=N.f=ze,C.f=Ve,j.f=function(re){return Be(P(re),re)},b&&(L(ne,"description",{configurable:!0,get:function(){function re(){return Q(this).description}return re}()}),f||B(J,"propertyIsEnumerable",xe,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!k,sham:!k},{Symbol:ie}),_(l(te),function(re){M(re)}),e({target:K,stat:!0,forced:!k},{useSetter:function(){function re(){be=!0}return re}(),useSimple:function(){function re(){be=!1}return re}()}),e({target:"Object",stat:!0,forced:!k,sham:!b},{create:we,defineProperty:ge,defineProperties:Le,getOwnPropertyDescriptor:Re}),e({target:"Object",stat:!0,forced:!k},{getOwnPropertyNames:ze}),R(),D(ie,K),x[U]=!0},10933:function(w,r,n){"use strict";var e=n(63964),a=n(58310),t=n(74685),o=n(67250),f=n(45299),b=n(55747),k=n(21287),S=n(12605),y=n(73936),h=n(5774),c=t.Symbol,i=c&&c.prototype;if(a&&b(c)&&(!("description"in i)||c().description!==void 0)){var m={},d=function(){function p(){var g=arguments.length<1||arguments[0]===void 0?void 0:S(arguments[0]),V=k(i,this)?new c(g):g===void 0?c():c(g);return g===""&&(m[V]=!0),V}return p}();h(d,c),d.prototype=i,i.constructor=d;var u=String(c("description detection"))==="Symbol(description detection)",s=o(i.valueOf),l=o(i.toString),v=/^Symbol\((.*)\)[^)]+$/,N=o("".replace),C=o("".slice);y(i,"description",{configurable:!0,get:function(){function p(){var g=s(this);if(f(m,g))return"";var V=l(g),I=u?C(V,7,-1):N(V,v,"$1");return I===""?void 0:I}return p}()}),e({global:!0,constructor:!0,forced:!0},{Symbol:d})}},30828:function(w,r,n){"use strict";var e=n(63964),a=n(4009),t=n(45299),o=n(12605),f=n(16639),b=n(66570),k=f("string-to-symbol-registry"),S=f("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!b},{for:function(){function y(h){var c=o(h);if(t(k,c))return k[c];var i=a("Symbol")(c);return k[c]=i,S[i]=c,i}return y}()})},53795:function(w,r,n){"use strict";var e=n(85889);e("hasInstance")},87806:function(w,r,n){"use strict";var e=n(85889);e("isConcatSpreadable")},64677:function(w,r,n){"use strict";var e=n(85889);e("iterator")},33313:function(w,r,n){"use strict";n(49899),n(30828),n(6862),n(53008),n(28603)},6862:function(w,r,n){"use strict";var e=n(63964),a=n(45299),t=n(71399),o=n(89393),f=n(16639),b=n(66570),k=f("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!b},{keyFor:function(){function S(y){if(!t(y))throw new TypeError(o(y)+" is not a symbol");if(a(k,y))return k[y]}return S}()})},48058:function(w,r,n){"use strict";var e=n(85889);e("match")},51583:function(w,r,n){"use strict";var e=n(85889);e("replace")},82403:function(w,r,n){"use strict";var e=n(85889);e("search")},34265:function(w,r,n){"use strict";var e=n(85889);e("species")},3295:function(w,r,n){"use strict";var e=n(85889);e("split")},1078:function(w,r,n){"use strict";var e=n(85889),a=n(52360);e("toPrimitive"),a()},63207:function(w,r,n){"use strict";var e=n(4009),a=n(85889),t=n(84925);a("toStringTag"),t(e("Symbol"),"Symbol")},80520:function(w,r,n){"use strict";var e=n(85889);e("unscopables")},99872:function(w,r,n){"use strict";var e=n(67250),a=n(4246),t=n(71447),o=e(t),f=a.aTypedArray,b=a.exportTypedArrayMethod;b("copyWithin",function(){function k(S,y){return o(f(this),S,y,arguments.length>2?arguments[2]:void 0)}return k}())},73364:function(w,r,n){"use strict";var e=n(4246),a=n(22603).every,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("every",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},58166:function(w,r,n){"use strict";var e=n(4246),a=n(88471),t=n(61484),o=n(2281),f=n(91495),b=n(67250),k=n(40033),S=e.aTypedArray,y=e.exportTypedArrayMethod,h=b("".slice),c=k(function(){var i=0;return new Int8Array(2).fill({valueOf:function(){function m(){return i++}return m}()}),i!==1});y("fill",function(){function i(m){var d=arguments.length;S(this);var u=h(o(this),0,3)==="Big"?t(m):+m;return f(a,this,u,d>1?arguments[1]:void 0,d>2?arguments[2]:void 0)}return i}(),c)},23793:function(w,r,n){"use strict";var e=n(4246),a=n(22603).filter,t=n(45399),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("filter",function(){function b(k){var S=a(o(this),k,arguments.length>1?arguments[1]:void 0);return t(this,S)}return b}())},13917:function(w,r,n){"use strict";var e=n(4246),a=n(22603).findIndex,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("findIndex",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},43820:function(w,r,n){"use strict";var e=n(4246),a=n(22603).find,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("find",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},80756:function(w,r,n){"use strict";var e=n(80185);e("Float32",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},70567:function(w,r,n){"use strict";var e=n(80185);e("Float64",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},19852:function(w,r,n){"use strict";var e=n(4246),a=n(22603).forEach,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("forEach",function(){function f(b){a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},40379:function(w,r,n){"use strict";var e=n(86563),a=n(4246).exportTypedArrayStaticMethod,t=n(3805);a("from",t,e)},92770:function(w,r,n){"use strict";var e=n(4246),a=n(14211).includes,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("includes",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},81069:function(w,r,n){"use strict";var e=n(4246),a=n(14211).indexOf,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("indexOf",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},60037:function(w,r,n){"use strict";var e=n(80185);e("Int16",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},44195:function(w,r,n){"use strict";var e=n(80185);e("Int32",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},66756:function(w,r,n){"use strict";var e=n(80185);e("Int8",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},63689:function(w,r,n){"use strict";var e=n(74685),a=n(40033),t=n(67250),o=n(4246),f=n(34570),b=n(24697),k=b("iterator"),S=e.Uint8Array,y=t(f.values),h=t(f.keys),c=t(f.entries),i=o.aTypedArray,m=o.exportTypedArrayMethod,d=S&&S.prototype,u=!a(function(){d[k].call([1])}),s=!!d&&d.values&&d[k]===d.values&&d.values.name==="values",l=function(){function v(){return y(i(this))}return v}();m("entries",function(){function v(){return c(i(this))}return v}(),u),m("keys",function(){function v(){return h(i(this))}return v}(),u),m("values",l,u||!s,{name:"values"}),m(k,l,u||!s,{name:"values"})},5659:function(w,r,n){"use strict";var e=n(4246),a=n(67250),t=e.aTypedArray,o=e.exportTypedArrayMethod,f=a([].join);o("join",function(){function b(k){return f(t(this),k)}return b}())},25014:function(w,r,n){"use strict";var e=n(4246),a=n(61267),t=n(1325),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("lastIndexOf",function(){function b(k){var S=arguments.length;return a(t,o(this),S>1?[k,arguments[1]]:[k])}return b}())},32189:function(w,r,n){"use strict";var e=n(4246),a=n(22603).map,t=n(31082),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("map",function(){function b(k){return a(o(this),k,arguments.length>1?arguments[1]:void 0,function(S,y){return new(t(S))(y)})}return b}())},23030:function(w,r,n){"use strict";var e=n(4246),a=n(86563),t=e.aTypedArrayConstructor,o=e.exportTypedArrayStaticMethod;o("of",function(){function f(){for(var b=0,k=arguments.length,S=new(t(this))(k);k>b;)S[b]=arguments[b++];return S}return f}(),a)},49110:function(w,r,n){"use strict";var e=n(4246),a=n(56844).right,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduceRight",function(){function f(b){var k=arguments.length;return a(t(this),b,k,k>1?arguments[1]:void 0)}return f}())},24309:function(w,r,n){"use strict";var e=n(4246),a=n(56844).left,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduce",function(){function f(b){var k=arguments.length;return a(t(this),b,k,k>1?arguments[1]:void 0)}return f}())},56445:function(w,r,n){"use strict";var e=n(4246),a=e.aTypedArray,t=e.exportTypedArrayMethod,o=Math.floor;t("reverse",function(){function f(){for(var b=this,k=a(b).length,S=o(k/2),y=0,h;y1?arguments[1]:void 0,1),N=b(l);if(d)return a(c,this,N,v);var C=this.length,p=o(N),g=0;if(p+v>C)throw new S("Wrong length");for(;gm;)u[m]=c[m++];return u}return S}(),k)},88739:function(w,r,n){"use strict";var e=n(4246),a=n(22603).some,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("some",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},60415:function(w,r,n){"use strict";var e=n(74685),a=n(71138),t=n(40033),o=n(10320),f=n(90274),b=n(4246),k=n(652),S=n(19228),y=n(5026),h=n(9342),c=b.aTypedArray,i=b.exportTypedArrayMethod,m=e.Uint16Array,d=m&&a(m.prototype.sort),u=!!d&&!(t(function(){d(new m(2),null)})&&t(function(){d(new m(2),{})})),s=!!d&&!t(function(){if(y)return y<74;if(k)return k<67;if(S)return!0;if(h)return h<602;var v=new m(516),N=Array(516),C,p;for(C=0;C<516;C++)p=C%4,v[C]=515-C,N[C]=C-2*p+3;for(d(v,function(g,V){return(g/4|0)-(V/4|0)}),C=0;C<516;C++)if(v[C]!==N[C])return!0}),l=function(N){return function(C,p){return N!==void 0?+N(C,p)||0:p!==p?-1:C!==C?1:C===0&&p===0?1/C>0&&1/p<0?1:-1:C>p}};i("sort",function(){function v(N){return N!==void 0&&o(N),s?d(this,N):f(c(this),l(N))}return v}(),!s||u)},72532:function(w,r,n){"use strict";var e=n(4246),a=n(10188),t=n(13912),o=n(31082),f=e.aTypedArray,b=e.exportTypedArrayMethod;b("subarray",function(){function k(S,y){var h=f(this),c=h.length,i=t(S,c),m=o(h);return new m(h.buffer,h.byteOffset+i*h.BYTES_PER_ELEMENT,a((y===void 0?c:t(y,c))-i))}return k}())},62207:function(w,r,n){"use strict";var e=n(74685),a=n(61267),t=n(4246),o=n(40033),f=n(54602),b=e.Int8Array,k=t.aTypedArray,S=t.exportTypedArrayMethod,y=[].toLocaleString,h=!!b&&o(function(){y.call(new b(1))}),c=o(function(){return[1,2].toLocaleString()!==new b([1,2]).toLocaleString()})||!o(function(){b.prototype.toLocaleString.call([1,2])});S("toLocaleString",function(){function i(){return a(y,h?f(k(this)):k(this),f(arguments))}return i}(),c)},906:function(w,r,n){"use strict";var e=n(4246).exportTypedArrayMethod,a=n(40033),t=n(74685),o=n(67250),f=t.Uint8Array,b=f&&f.prototype||{},k=[].toString,S=o([].join);a(function(){k.call({})})&&(k=function(){function h(){return S(this)}return h}());var y=b.toString!==k;e("toString",k,y)},78824:function(w,r,n){"use strict";var e=n(80185);e("Uint16",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},72846:function(w,r,n){"use strict";var e=n(80185);e("Uint32",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},24575:function(w,r,n){"use strict";var e=n(80185);e("Uint8",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},71968:function(w,r,n){"use strict";var e=n(80185);e("Uint8",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()},!0)},80040:function(w,r,n){"use strict";var e=n(50730),a=n(74685),t=n(67250),o=n(30145),f=n(81969),b=n(45150),k=n(39895),S=n(77568),y=n(5419).enforce,h=n(40033),c=n(21820),i=Object,m=Array.isArray,d=i.isExtensible,u=i.isFrozen,s=i.isSealed,l=i.freeze,v=i.seal,N=!a.ActiveXObject&&"ActiveXObject"in a,C,p=function(E){return function(){function P(){return E(this,arguments.length?arguments[0]:void 0)}return P}()},g=b("WeakMap",p,k),V=g.prototype,I=t(V.set),B=function(){return e&&h(function(){var E=l([]);return I(new g,E,1),!u(E)})};if(c)if(N){C=k.getConstructor(p,"WeakMap",!0),f.enable();var L=t(V.delete),T=t(V.has),A=t(V.get);o(V,{delete:function(){function x(E){if(S(E)&&!d(E)){var P=y(this);return P.frozen||(P.frozen=new C),L(this,E)||P.frozen.delete(E)}return L(this,E)}return x}(),has:function(){function x(E){if(S(E)&&!d(E)){var P=y(this);return P.frozen||(P.frozen=new C),T(this,E)||P.frozen.has(E)}return T(this,E)}return x}(),get:function(){function x(E){if(S(E)&&!d(E)){var P=y(this);return P.frozen||(P.frozen=new C),T(this,E)?A(this,E):P.frozen.get(E)}return A(this,E)}return x}(),set:function(){function x(E,P){if(S(E)&&!d(E)){var j=y(this);j.frozen||(j.frozen=new C),T(this,E)?I(this,E,P):j.frozen.set(E,P)}else I(this,E,P);return this}return x}()})}else B()&&o(V,{set:function(){function x(E,P){var j;return m(E)&&(u(E)?j=l:s(E)&&(j=v)),I(this,E,P),j&&j(E),this}return x}()})},90846:function(w,r,n){"use strict";n(80040)},67042:function(w,r,n){"use strict";var e=n(45150),a=n(39895);e("WeakSet",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},40348:function(w,r,n){"use strict";n(67042)},5606:function(w,r,n){"use strict";var e=n(63964),a=n(74685),t=n(60375).clear;e({global:!0,bind:!0,enumerable:!0,forced:a.clearImmediate!==t},{clearImmediate:t})},83006:function(w,r,n){"use strict";n(5606),n(27807)},25764:function(w,r,n){"use strict";var e=n(63964),a=n(74685),t=n(37713),o=n(10320),f=n(24986),b=n(40033),k=n(58310),S=b(function(){return k&&Object.getOwnPropertyDescriptor(a,"queueMicrotask").value.length!==1});e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:S},{queueMicrotask:function(){function y(h){f(arguments.length,1),t(o(h))}return y}()})},27807:function(w,r,n){"use strict";var e=n(63964),a=n(74685),t=n(60375).set,o=n(78362),f=a.setImmediate?o(t,!1):t;e({global:!0,bind:!0,enumerable:!0,forced:a.setImmediate!==f},{setImmediate:f})},45569:function(w,r,n){"use strict";var e=n(63964),a=n(74685),t=n(78362),o=t(a.setInterval,!0);e({global:!0,bind:!0,forced:a.setInterval!==o},{setInterval:o})},5213:function(w,r,n){"use strict";var e=n(63964),a=n(74685),t=n(78362),o=t(a.setTimeout,!0);e({global:!0,bind:!0,forced:a.setTimeout!==o},{setTimeout:o})},69401:function(w,r,n){"use strict";n(45569),n(5213)},7435:function(w){"use strict";/** + */var t=r.BoxWithSampleText=function(){function o(f){return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({},f,{children:[(0,e.createComponentVNode)(2,a.Box,{italic:!0,children:"Jackdaws love my big sphinx of quartz."}),(0,e.createComponentVNode)(2,a.Box,{mt:1,bold:!0,children:"The wide electrification of the southern provinces will give a powerful impetus to the growth of agriculture."})]})))}return o}()},67160:function(){},23542:function(){},30386:function(){},98996:function(){},50578:function(){},4444:function(){},77870:function(){},23632:function(){},56492:function(){},39108:function(){},11714:function(){},73492:function(){},49641:function(){},17570:function(){},61858:function(){},32882:function(){},70752:function(T,r,n){var e={"./pai_atmosphere.js":80818,"./pai_bioscan.js":23903,"./pai_directives.js":64988,"./pai_doorjack.js":13813,"./pai_main_menu.js":66025,"./pai_manifest.js":2983,"./pai_medrecords.js":40758,"./pai_messenger.js":98599,"./pai_radio.js":50775,"./pai_secrecords.js":48623,"./pai_signaler.js":47297};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,T.exports=a,a.id=70752},59395:function(T,r,n){var e={"./pda_atmos_scan.js":78532,"./pda_janitor.js":40253,"./pda_main_menu.js":58293,"./pda_manifest.js":58059,"./pda_medical.js":18147,"./pda_messenger.js":77595,"./pda_mule.js":24635,"./pda_nanobank.js":23734,"./pda_notes.js":97085,"./pda_power.js":57513,"./pda_secbot.js":99808,"./pda_security.js":77168,"./pda_signaler.js":21773,"./pda_status_display.js":81857,"./pda_supplyrecords.js":70287};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,T.exports=a,a.id=59395},32054:function(T,r,n){var e={"./AICard":1090,"./AICard.js":1090,"./AIFixer":39454,"./AIFixer.js":39454,"./APC":88422,"./APC.js":88422,"./ATM":99660,"./ATM.js":99660,"./AccountsUplinkTerminal":86423,"./AccountsUplinkTerminal.js":86423,"./AiAirlock":56793,"./AiAirlock.js":56793,"./AirAlarm":72475,"./AirAlarm.js":72475,"./AirlockAccessController":12333,"./AirlockAccessController.js":12333,"./AirlockElectronics":28736,"./AirlockElectronics.js":28736,"./AlertModal":47365,"./AlertModal.tsx":47365,"./AppearanceChanger":71824,"./AppearanceChanger.js":71824,"./AtmosAlertConsole":72285,"./AtmosAlertConsole.js":72285,"./AtmosControl":65805,"./AtmosControl.js":65805,"./AtmosFilter":87816,"./AtmosFilter.js":87816,"./AtmosMixer":52977,"./AtmosMixer.js":52977,"./AtmosPump":11748,"./AtmosPump.js":11748,"./AtmosTankControl":69321,"./AtmosTankControl.js":69321,"./Autolathe":59179,"./Autolathe.js":59179,"./BioChipPad":5147,"./BioChipPad.js":5147,"./Biogenerator":64273,"./Biogenerator.js":64273,"./BloomEdit":47823,"./BloomEdit.js":47823,"./BlueSpaceArtilleryControl":18621,"./BlueSpaceArtilleryControl.js":18621,"./BluespaceTap":27629,"./BluespaceTap.js":27629,"./BodyScanner":33758,"./BodyScanner.js":33758,"./BookBinder":67963,"./BookBinder.js":67963,"./BotCall":61925,"./BotCall.js":61925,"./BotClean":20464,"./BotClean.js":20464,"./BotFloor":69479,"./BotFloor.js":69479,"./BotHonk":59887,"./BotHonk.js":59887,"./BotMed":80063,"./BotMed.js":80063,"./BotSecurity":74439,"./BotSecurity.js":74439,"./BrigCells":10833,"./BrigCells.js":10833,"./BrigTimer":45761,"./BrigTimer.js":45761,"./CameraConsole":26300,"./CameraConsole.js":26300,"./Canister":52927,"./Canister.js":52927,"./CardComputer":51793,"./CardComputer.js":51793,"./CargoConsole":64083,"./CargoConsole.js":64083,"./ChangelogView":87331,"./ChangelogView.js":87331,"./ChemDispenser":36108,"./ChemDispenser.js":36108,"./ChemHeater":13146,"./ChemHeater.js":13146,"./ChemMaster":56541,"./ChemMaster.tsx":56541,"./CloningConsole":37173,"./CloningConsole.js":37173,"./CloningPod":98723,"./CloningPod.js":98723,"./CoinMint":18259,"./CoinMint.tsx":18259,"./ColourMatrixTester":8444,"./ColourMatrixTester.js":8444,"./CommunicationsComputer":63818,"./CommunicationsComputer.js":63818,"./CompostBin":20562,"./CompostBin.js":20562,"./Contractor":21813,"./Contractor.js":21813,"./ConveyorSwitch":54151,"./ConveyorSwitch.js":54151,"./CrewMonitor":73169,"./CrewMonitor.js":73169,"./Cryo":63987,"./Cryo.js":63987,"./CryopodConsole":86099,"./CryopodConsole.js":86099,"./DNAModifier":12692,"./DNAModifier.js":12692,"./DestinationTagger":41074,"./DestinationTagger.js":41074,"./DisposalBin":46500,"./DisposalBin.js":46500,"./DnaVault":33233,"./DnaVault.js":33233,"./DroneConsole":33681,"./DroneConsole.js":33681,"./EFTPOS":17263,"./EFTPOS.js":17263,"./ERTManager":76382,"./ERTManager.js":76382,"./EconomyManager":90217,"./EconomyManager.js":90217,"./Electropack":82565,"./Electropack.js":82565,"./Emojipedia":11243,"./Emojipedia.tsx":11243,"./EvolutionMenu":36730,"./EvolutionMenu.js":36730,"./ExosuitFabricator":17370,"./ExosuitFabricator.js":17370,"./ExperimentConsole":59128,"./ExperimentConsole.js":59128,"./ExternalAirlockController":97086,"./ExternalAirlockController.js":97086,"./FaxMachine":96142,"./FaxMachine.js":96142,"./FilingCabinet":74123,"./FilingCabinet.js":74123,"./FloorPainter":83767,"./FloorPainter.js":83767,"./GPS":53424,"./GPS.js":53424,"./GeneModder":89124,"./GeneModder.js":89124,"./GenericCrewManifest":73053,"./GenericCrewManifest.js":73053,"./GhostHudPanel":42914,"./GhostHudPanel.js":42914,"./GlandDispenser":25825,"./GlandDispenser.js":25825,"./GravityGen":10270,"./GravityGen.js":10270,"./GuestPass":48657,"./GuestPass.js":48657,"./HandheldChemDispenser":67834,"./HandheldChemDispenser.js":67834,"./HealthSensor":46098,"./HealthSensor.js":46098,"./Holodeck":36771,"./Holodeck.js":36771,"./Instrument":25471,"./Instrument.js":25471,"./KeyComboModal":13618,"./KeyComboModal.tsx":13618,"./KeycardAuth":35655,"./KeycardAuth.js":35655,"./KitchenMachine":62955,"./KitchenMachine.js":62955,"./LawManager":9525,"./LawManager.js":9525,"./LibraryComputer":85066,"./LibraryComputer.js":85066,"./LibraryManager":9516,"./LibraryManager.js":9516,"./ListInputModal":90447,"./ListInputModal.tsx":90447,"./MODsuit":77613,"./MODsuit.js":77613,"./MagnetController":78624,"./MagnetController.js":78624,"./MechBayConsole":72106,"./MechBayConsole.js":72106,"./MechaControlConsole":7466,"./MechaControlConsole.js":7466,"./MedicalRecords":79625,"./MedicalRecords.js":79625,"./MerchVendor":54989,"./MerchVendor.js":54989,"./MiningVendor":87684,"./MiningVendor.js":87684,"./NTRecruiter":59783,"./NTRecruiter.js":59783,"./Newscaster":64713,"./Newscaster.js":64713,"./Noticeboard":48286,"./Noticeboard.tsx":48286,"./NuclearBomb":41166,"./NuclearBomb.js":41166,"./NumberInputModal":52416,"./NumberInputModal.tsx":52416,"./OperatingComputer":1218,"./OperatingComputer.js":1218,"./Orbit":46892,"./Orbit.js":46892,"./OreRedemption":15421,"./OreRedemption.js":15421,"./PAI":52754,"./PAI.js":52754,"./PDA":85175,"./PDA.js":85175,"./Pacman":68654,"./Pacman.js":68654,"./PanDEMIC":1701,"./PanDEMIC.tsx":1701,"./ParticleAccelerator":67921,"./ParticleAccelerator.js":67921,"./PdaPainter":71432,"./PdaPainter.js":71432,"./PersonalCrafting":33388,"./PersonalCrafting.js":33388,"./Photocopier":56150,"./Photocopier.js":56150,"./PoolController":84676,"./PoolController.js":84676,"./PortablePump":57003,"./PortablePump.js":57003,"./PortableScrubber":70069,"./PortableScrubber.js":70069,"./PortableTurret":59955,"./PortableTurret.js":59955,"./PowerMonitor":61631,"./PowerMonitor.js":61631,"./PrisonerImplantManager":50992,"./PrisonerImplantManager.js":50992,"./PrisonerShuttleConsole":53952,"./PrisonerShuttleConsole.js":53952,"./PrizeCounter":97852,"./PrizeCounter.tsx":97852,"./RCD":94813,"./RCD.js":94813,"./RPD":18738,"./RPD.js":18738,"./Radio":80299,"./Radio.js":80299,"./ReagentGrinder":48125,"./ReagentGrinder.js":48125,"./ReagentsEditor":58262,"./ReagentsEditor.tsx":58262,"./RemoteSignaler":30207,"./RemoteSignaler.js":30207,"./RequestConsole":25472,"./RequestConsole.js":25472,"./RndBackupConsole":9861,"./RndBackupConsole.js":9861,"./RndConsole":12644,"./RndConsole/":12644,"./RndConsole/DataDiskMenu":37556,"./RndConsole/DataDiskMenu.js":37556,"./RndConsole/DeconstructionMenu":58147,"./RndConsole/DeconstructionMenu.js":58147,"./RndConsole/LatheCategory":16830,"./RndConsole/LatheCategory.js":16830,"./RndConsole/LatheChemicalStorage":70497,"./RndConsole/LatheChemicalStorage.js":70497,"./RndConsole/LatheMainMenu":70864,"./RndConsole/LatheMainMenu.js":70864,"./RndConsole/LatheMaterialStorage":42878,"./RndConsole/LatheMaterialStorage.js":42878,"./RndConsole/LatheMaterials":52662,"./RndConsole/LatheMaterials.js":52662,"./RndConsole/LatheMenu":9681,"./RndConsole/LatheMenu.js":9681,"./RndConsole/LatheSearch":68198,"./RndConsole/LatheSearch.js":68198,"./RndConsole/LinkMenu":81421,"./RndConsole/LinkMenu.js":81421,"./RndConsole/SettingsMenu":6256,"./RndConsole/SettingsMenu.js":6256,"./RndConsole/index":12644,"./RndConsole/index.js":12644,"./RndNetController":29205,"./RndNetController.js":29205,"./RndServer":63315,"./RndServer.js":63315,"./RobotSelfDiagnosis":26109,"./RobotSelfDiagnosis.js":26109,"./RoboticsControlConsole":97997,"./RoboticsControlConsole.js":97997,"./Safe":54431,"./Safe.js":54431,"./SatelliteControl":29740,"./SatelliteControl.js":29740,"./SecureStorage":44162,"./SecureStorage.js":44162,"./SecurityRecords":6272,"./SecurityRecords.js":6272,"./SeedExtractor":5099,"./SeedExtractor.js":5099,"./ShuttleConsole":2916,"./ShuttleConsole.js":2916,"./ShuttleManipulator":39401,"./ShuttleManipulator.js":39401,"./Sleeper":88284,"./Sleeper.js":88284,"./SlotMachine":21597,"./SlotMachine.js":21597,"./Smartfridge":46348,"./Smartfridge.js":46348,"./Smes":86162,"./Smes.js":86162,"./SolarControl":63584,"./SolarControl.js":63584,"./SpawnersMenu":38096,"./SpawnersMenu.js":38096,"./SpecMenu":30586,"./SpecMenu.js":30586,"./StackCraft":95152,"./StackCraft.js":95152,"./StationAlertConsole":38307,"./StationAlertConsole.js":38307,"./StationTraitsPanel":96091,"./StationTraitsPanel.tsx":96091,"./StripMenu":39409,"./StripMenu.tsx":39409,"./SuitStorage":69514,"./SuitStorage.js":69514,"./SupermatterMonitor":15022,"./SupermatterMonitor.js":15022,"./SyndicateComputerSimple":46029,"./SyndicateComputerSimple.js":46029,"./TEG":36372,"./TEG.js":36372,"./TachyonArray":56441,"./TachyonArray.js":56441,"./Tank":1754,"./Tank.js":1754,"./TankDispenser":7579,"./TankDispenser.js":7579,"./TcommsCore":16136,"./TcommsCore.js":16136,"./TcommsRelay":88046,"./TcommsRelay.js":88046,"./Teleporter":20802,"./Teleporter.js":20802,"./TelescienceConsole":48517,"./TelescienceConsole.js":48517,"./TempGun":21800,"./TempGun.js":21800,"./TextInputModal":24410,"./TextInputModal.tsx":24410,"./ThermoMachine":25036,"./ThermoMachine.js":25036,"./TransferValve":20035,"./TransferValve.js":20035,"./TurbineComputer":78166,"./TurbineComputer.js":78166,"./Uplink":52847,"./Uplink.js":52847,"./Vending":12261,"./Vending.js":12261,"./VolumeMixer":68971,"./VolumeMixer.js":68971,"./VotePanel":2510,"./VotePanel.js":2510,"./Wires":30138,"./Wires.js":30138,"./WizardApprenticeContract":21400,"./WizardApprenticeContract.js":21400,"./common/AccessList":49148,"./common/AccessList.js":49148,"./common/AtmosScan":26991,"./common/AtmosScan.js":26991,"./common/BeakerContents":85870,"./common/BeakerContents.js":85870,"./common/BotStatus":92963,"./common/BotStatus.js":92963,"./common/ComplexModal":3939,"./common/ComplexModal.js":3939,"./common/CrewManifest":41874,"./common/CrewManifest.js":41874,"./common/InputButtons":19203,"./common/InputButtons.tsx":19203,"./common/InterfaceLockNoticeBox":195,"./common/InterfaceLockNoticeBox.js":195,"./common/Loader":51057,"./common/Loader.tsx":51057,"./common/LoginInfo":321,"./common/LoginInfo.js":321,"./common/LoginScreen":5485,"./common/LoginScreen.js":5485,"./common/Operating":62411,"./common/Operating.js":62411,"./common/Signaler":13545,"./common/Signaler.js":13545,"./common/SimpleRecords":41984,"./common/SimpleRecords.js":41984,"./common/TemporaryNotice":22091,"./common/TemporaryNotice.js":22091,"./pai/pai_atmosphere":80818,"./pai/pai_atmosphere.js":80818,"./pai/pai_bioscan":23903,"./pai/pai_bioscan.js":23903,"./pai/pai_directives":64988,"./pai/pai_directives.js":64988,"./pai/pai_doorjack":13813,"./pai/pai_doorjack.js":13813,"./pai/pai_main_menu":66025,"./pai/pai_main_menu.js":66025,"./pai/pai_manifest":2983,"./pai/pai_manifest.js":2983,"./pai/pai_medrecords":40758,"./pai/pai_medrecords.js":40758,"./pai/pai_messenger":98599,"./pai/pai_messenger.js":98599,"./pai/pai_radio":50775,"./pai/pai_radio.js":50775,"./pai/pai_secrecords":48623,"./pai/pai_secrecords.js":48623,"./pai/pai_signaler":47297,"./pai/pai_signaler.js":47297,"./pda/pda_atmos_scan":78532,"./pda/pda_atmos_scan.js":78532,"./pda/pda_janitor":40253,"./pda/pda_janitor.js":40253,"./pda/pda_main_menu":58293,"./pda/pda_main_menu.js":58293,"./pda/pda_manifest":58059,"./pda/pda_manifest.js":58059,"./pda/pda_medical":18147,"./pda/pda_medical.js":18147,"./pda/pda_messenger":77595,"./pda/pda_messenger.js":77595,"./pda/pda_mule":24635,"./pda/pda_mule.js":24635,"./pda/pda_nanobank":23734,"./pda/pda_nanobank.js":23734,"./pda/pda_notes":97085,"./pda/pda_notes.js":97085,"./pda/pda_power":57513,"./pda/pda_power.js":57513,"./pda/pda_secbot":99808,"./pda/pda_secbot.js":99808,"./pda/pda_security":77168,"./pda/pda_security.js":77168,"./pda/pda_signaler":21773,"./pda/pda_signaler.js":21773,"./pda/pda_status_display":81857,"./pda/pda_status_display.js":81857,"./pda/pda_supplyrecords":70287,"./pda/pda_supplyrecords.js":70287};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,T.exports=a,a.id=32054},4085:function(T,r,n){var e={"./Blink.stories.js":51364,"./BlockQuote.stories.js":32453,"./Box.stories.js":83531,"./Button.stories.js":74198,"./ByondUi.stories.js":51956,"./Collapsible.stories.js":17466,"./Flex.stories.js":89241,"./ImageButton.stories.js":48779,"./Input.stories.js":21394,"./Popper.stories.js":43932,"./ProgressBar.stories.js":33270,"./Stack.stories.js":77766,"./Storage.stories.js":30187,"./Tabs.stories.js":46554,"./Themes.stories.js":53276,"./Tooltip.stories.js":28717};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,T.exports=a,a.id=4085},10320:function(T,r,n){"use strict";var e=n(55747),a=n(89393),t=TypeError;T.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a function")}},32606:function(T,r,n){"use strict";var e=n(1031),a=n(89393),t=TypeError;T.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a constructor")}},35908:function(T,r,n){"use strict";var e=n(45015),a=String,t=TypeError;T.exports=function(o){if(e(o))return o;throw new t("Can't set "+a(o)+" as a prototype")}},80575:function(T,r,n){"use strict";var e=n(24697),a=n(80674),t=n(74595).f,o=e("unscopables"),f=Array.prototype;f[o]===void 0&&t(f,o,{configurable:!0,value:a(null)}),T.exports=function(b){f[o][b]=!0}},35483:function(T,r,n){"use strict";var e=n(50233).charAt;T.exports=function(a,t,o){return t+(o?e(a,t).length:1)}},60077:function(T,r,n){"use strict";var e=n(21287),a=TypeError;T.exports=function(t,o){if(e(o,t))return t;throw new a("Incorrect invocation")}},30365:function(T,r,n){"use strict";var e=n(77568),a=String,t=TypeError;T.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not an object")}},70377:function(T){"use strict";T.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},3782:function(T,r,n){"use strict";var e=n(40033);T.exports=e(function(){if(typeof ArrayBuffer=="function"){var a=new ArrayBuffer(8);Object.isExtensible(a)&&Object.defineProperty(a,"a",{value:8})}})},4246:function(T,r,n){"use strict";var e=n(70377),a=n(58310),t=n(74685),o=n(55747),f=n(77568),b=n(45299),y=n(2281),S=n(89393),k=n(37909),h=n(55938),c=n(73936),i=n(21287),m=n(36917),d=n(76649),u=n(24697),s=n(16738),l=n(5419),v=l.enforce,N=l.get,C=t.Int8Array,p=C&&C.prototype,g=t.Uint8ClampedArray,V=g&&g.prototype,B=C&&m(C),I=p&&m(p),L=Object.prototype,w=t.TypeError,x=u("toStringTag"),A=s("TYPED_ARRAY_TAG"),E="TypedArrayConstructor",P=e&&!!d&&y(t.opera)!=="Opera",j=!1,M,R,D,W={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},_={BigInt64Array:8,BigUint64Array:8},U=function(){function ne(se){if(!f(se))return!1;var Ce=y(se);return Ce==="DataView"||b(W,Ce)||b(_,Ce)}return ne}(),K=function ne(se){var Ce=m(se);if(f(Ce)){var Se=N(Ce);return Se&&b(Se,E)?Se[E]:ne(Ce)}},G=function(se){if(!f(se))return!1;var Ce=y(se);return b(W,Ce)||b(_,Ce)},$=function(se){if(G(se))return se;throw new w("Target is not a typed array")},Q=function(se){if(o(se)&&(!d||i(B,se)))return se;throw new w(S(se)+" is not a typed array constructor")},J=function(se,Ce,Se,ye){if(a){if(Se)for(var he in W){var oe=t[he];if(oe&&b(oe.prototype,se))try{delete oe.prototype[se]}catch(ce){try{oe.prototype[se]=Ce}catch(ee){}}}(!I[se]||Se)&&h(I,se,Se?Ce:P&&p[se]||Ce,ye)}},ie=function(se,Ce,Se){var ye,he;if(a){if(d){if(Se){for(ye in W)if(he=t[ye],he&&b(he,se))try{delete he[se]}catch(oe){}}if(!B[se]||Se)try{return h(B,se,Se?Ce:P&&B[se]||Ce)}catch(oe){}else return}for(ye in W)he=t[ye],he&&(!he[se]||Se)&&h(he,se,Ce)}};for(M in W)R=t[M],D=R&&R.prototype,D?v(D)[E]=R:P=!1;for(M in _)R=t[M],D=R&&R.prototype,D&&(v(D)[E]=R);if((!P||!o(B)||B===Function.prototype)&&(B=function(){function ne(){throw new w("Incorrect invocation")}return ne}(),P))for(M in W)t[M]&&d(t[M],B);if((!P||!I||I===L)&&(I=B.prototype,P))for(M in W)t[M]&&d(t[M].prototype,I);if(P&&m(V)!==I&&d(V,I),a&&!b(I,x)){j=!0,c(I,x,{configurable:!0,get:function(){function ne(){return f(this)?this[A]:void 0}return ne}()});for(M in W)t[M]&&k(t[M],A,M)}T.exports={NATIVE_ARRAY_BUFFER_VIEWS:P,TYPED_ARRAY_TAG:j&&A,aTypedArray:$,aTypedArrayConstructor:Q,exportTypedArrayMethod:J,exportTypedArrayStaticMethod:ie,getTypedArrayConstructor:K,isView:U,isTypedArray:G,TypedArray:B,TypedArrayPrototype:I}},37336:function(T,r,n){"use strict";var e=n(74685),a=n(67250),t=n(58310),o=n(70377),f=n(70520),b=n(37909),y=n(73936),S=n(30145),k=n(40033),h=n(60077),c=n(61365),i=n(10188),m=n(43806),d=n(95867),u=n(91784),s=n(36917),l=n(76649),v=n(88471),N=n(54602),C=n(5781),p=n(5774),g=n(84925),V=n(5419),B=f.PROPER,I=f.CONFIGURABLE,L="ArrayBuffer",w="DataView",x="prototype",A="Wrong length",E="Wrong index",P=V.getterFor(L),j=V.getterFor(w),M=V.set,R=e[L],D=R,W=D&&D[x],_=e[w],U=_&&_[x],K=Object.prototype,G=e.Array,$=e.RangeError,Q=a(v),J=a([].reverse),ie=u.pack,ne=u.unpack,se=function(ve){return[ve&255]},Ce=function(ve){return[ve&255,ve>>8&255]},Se=function(ve){return[ve&255,ve>>8&255,ve>>16&255,ve>>24&255]},ye=function(ve){return ve[3]<<24|ve[2]<<16|ve[1]<<8|ve[0]},he=function(ve){return ie(d(ve),23,4)},oe=function(ve){return ie(ve,52,8)},ce=function(ve,Be,ge){y(ve[x],Be,{configurable:!0,get:function(){function Le(){return ge(this)[Be]}return Le}()})},ee=function(ve,Be,ge,Le){var we=j(ve),xe=m(ge),Re=!!Le;if(xe+Be>we.byteLength)throw new $(E);var ze=we.bytes,Ve=xe+we.byteOffset,re=N(ze,Ve,Ve+Be);return Re?re:J(re)},fe=function(ve,Be,ge,Le,we,xe){var Re=j(ve),ze=m(ge),Ve=Le(+we),re=!!xe;if(ze+Be>Re.byteLength)throw new $(E);for(var le=Re.bytes,Ne=ze+Re.byteOffset,de=0;dewe)throw new $("Wrong offset");if(ge=ge===void 0?we-xe:i(ge),xe+ge>we)throw new $(A);M(this,{type:w,buffer:ve,byteLength:ge,byteOffset:xe,bytes:Le.bytes}),t||(this.buffer=ve,this.byteLength=ge,this.byteOffset=xe)}return pe}(),U=_[x],t&&(ce(D,"byteLength",P),ce(_,"buffer",j),ce(_,"byteLength",j),ce(_,"byteOffset",j)),S(U,{getInt8:function(){function pe(ve){return ee(this,1,ve)[0]<<24>>24}return pe}(),getUint8:function(){function pe(ve){return ee(this,1,ve)[0]}return pe}(),getInt16:function(){function pe(ve){var Be=ee(this,2,ve,arguments.length>1?arguments[1]:!1);return(Be[1]<<8|Be[0])<<16>>16}return pe}(),getUint16:function(){function pe(ve){var Be=ee(this,2,ve,arguments.length>1?arguments[1]:!1);return Be[1]<<8|Be[0]}return pe}(),getInt32:function(){function pe(ve){return ye(ee(this,4,ve,arguments.length>1?arguments[1]:!1))}return pe}(),getUint32:function(){function pe(ve){return ye(ee(this,4,ve,arguments.length>1?arguments[1]:!1))>>>0}return pe}(),getFloat32:function(){function pe(ve){return ne(ee(this,4,ve,arguments.length>1?arguments[1]:!1),23)}return pe}(),getFloat64:function(){function pe(ve){return ne(ee(this,8,ve,arguments.length>1?arguments[1]:!1),52)}return pe}(),setInt8:function(){function pe(ve,Be){fe(this,1,ve,se,Be)}return pe}(),setUint8:function(){function pe(ve,Be){fe(this,1,ve,se,Be)}return pe}(),setInt16:function(){function pe(ve,Be){fe(this,2,ve,Ce,Be,arguments.length>2?arguments[2]:!1)}return pe}(),setUint16:function(){function pe(ve,Be){fe(this,2,ve,Ce,Be,arguments.length>2?arguments[2]:!1)}return pe}(),setInt32:function(){function pe(ve,Be){fe(this,4,ve,Se,Be,arguments.length>2?arguments[2]:!1)}return pe}(),setUint32:function(){function pe(ve,Be){fe(this,4,ve,Se,Be,arguments.length>2?arguments[2]:!1)}return pe}(),setFloat32:function(){function pe(ve,Be){fe(this,4,ve,he,Be,arguments.length>2?arguments[2]:!1)}return pe}(),setFloat64:function(){function pe(ve,Be){fe(this,8,ve,oe,Be,arguments.length>2?arguments[2]:!1)}return pe}()});else{var me=B&&R.name!==L;!k(function(){R(1)})||!k(function(){new R(-1)})||k(function(){return new R,new R(1.5),new R(NaN),R.length!==1||me&&!I})?(D=function(){function pe(ve){return h(this,W),C(new R(m(ve)),this,D)}return pe}(),D[x]=W,W.constructor=D,p(D,R)):me&&I&&b(R,"name",L),l&&s(U)!==K&&l(U,K);var te=new _(new D(2)),be=a(U.setInt8);te.setInt8(0,2147483648),te.setInt8(1,2147483649),(te.getInt8(0)||!te.getInt8(1))&&S(U,{setInt8:function(){function pe(ve,Be){be(this,ve,Be<<24>>24)}return pe}(),setUint8:function(){function pe(ve,Be){be(this,ve,Be<<24>>24)}return pe}()},{unsafe:!0})}g(D,L),g(_,w),T.exports={ArrayBuffer:D,DataView:_}},71447:function(T,r,n){"use strict";var e=n(46771),a=n(13912),t=n(24760),o=n(95108),f=Math.min;T.exports=[].copyWithin||function(){function b(y,S){var k=e(this),h=t(k),c=a(y,h),i=a(S,h),m=arguments.length>2?arguments[2]:void 0,d=f((m===void 0?h:a(m,h))-i,h-c),u=1;for(i0;)i in k?k[c]=k[i]:o(k,c),c+=u,i+=u;return k}return b}()},88471:function(T,r,n){"use strict";var e=n(46771),a=n(13912),t=n(24760);T.exports=function(){function o(f){for(var b=e(this),y=t(b),S=arguments.length,k=a(S>1?arguments[1]:void 0,y),h=S>2?arguments[2]:void 0,c=h===void 0?y:a(h,y);c>k;)b[k++]=f;return b}return o}()},35601:function(T,r,n){"use strict";var e=n(22603).forEach,a=n(55528),t=a("forEach");T.exports=t?[].forEach:function(){function o(f){return e(this,f,arguments.length>1?arguments[1]:void 0)}return o}()},78008:function(T,r,n){"use strict";var e=n(24760);T.exports=function(a,t,o){for(var f=0,b=arguments.length>2?o:e(t),y=new a(b);b>f;)y[f]=t[f++];return y}},73174:function(T,r,n){"use strict";var e=n(75754),a=n(91495),t=n(46771),o=n(40125),f=n(76571),b=n(1031),y=n(24760),S=n(60102),k=n(77455),h=n(59201),c=Array;T.exports=function(){function i(m){var d=t(m),u=b(this),s=arguments.length,l=s>1?arguments[1]:void 0,v=l!==void 0;v&&(l=e(l,s>2?arguments[2]:void 0));var N=h(d),C=0,p,g,V,B,I,L;if(N&&!(this===c&&f(N)))for(g=u?new this:[],B=k(d,N),I=B.next;!(V=a(I,B)).done;C++)L=v?o(B,l,[V.value,C],!0):V.value,S(g,C,L);else for(p=y(d),g=u?new this(p):c(p);p>C;C++)L=v?l(d[C],C):d[C],S(g,C,L);return g.length=C,g}return i}()},14211:function(T,r,n){"use strict";var e=n(57591),a=n(13912),t=n(24760),o=function(b){return function(y,S,k){var h=e(y),c=t(h);if(c===0)return!b&&-1;var i=a(k,c),m;if(b&&S!==S){for(;c>i;)if(m=h[i++],m!==m)return!0}else for(;c>i;i++)if((b||i in h)&&h[i]===S)return b||i||0;return!b&&-1}};T.exports={includes:o(!0),indexOf:o(!1)}},22603:function(T,r,n){"use strict";var e=n(75754),a=n(67250),t=n(37457),o=n(46771),f=n(24760),b=n(57823),y=a([].push),S=function(h){var c=h===1,i=h===2,m=h===3,d=h===4,u=h===6,s=h===7,l=h===5||u;return function(v,N,C,p){for(var g=o(v),V=t(g),B=f(V),I=e(N,C),L=0,w=p||b,x=c?w(v,B):i||s?w(v,0):void 0,A,E;B>L;L++)if((l||L in V)&&(A=V[L],E=I(A,L,g),h))if(c)x[L]=E;else if(E)switch(h){case 3:return!0;case 5:return A;case 6:return L;case 2:y(x,A)}else switch(h){case 4:return!1;case 7:y(x,A)}return u?-1:m||d?d:x}};T.exports={forEach:S(0),map:S(1),filter:S(2),some:S(3),every:S(4),find:S(5),findIndex:S(6),filterReject:S(7)}},1325:function(T,r,n){"use strict";var e=n(61267),a=n(57591),t=n(61365),o=n(24760),f=n(55528),b=Math.min,y=[].lastIndexOf,S=!!y&&1/[1].lastIndexOf(1,-0)<0,k=f("lastIndexOf"),h=S||!k;T.exports=h?function(){function c(i){if(S)return e(y,this,arguments)||0;var m=a(this),d=o(m);if(d===0)return-1;var u=d-1;for(arguments.length>1&&(u=b(u,t(arguments[1]))),u<0&&(u=d+u);u>=0;u--)if(u in m&&m[u]===i)return u||0;return-1}return c}():y},44091:function(T,r,n){"use strict";var e=n(40033),a=n(24697),t=n(5026),o=a("species");T.exports=function(f){return t>=51||!e(function(){var b=[],y=b.constructor={};return y[o]=function(){return{foo:1}},b[f](Boolean).foo!==1})}},55528:function(T,r,n){"use strict";var e=n(40033);T.exports=function(a,t){var o=[][a];return!!o&&e(function(){o.call(null,t||function(){return 1},1)})}},56844:function(T,r,n){"use strict";var e=n(10320),a=n(46771),t=n(37457),o=n(24760),f=TypeError,b="Reduce of empty array with no initial value",y=function(k){return function(h,c,i,m){var d=a(h),u=t(d),s=o(d);if(e(c),s===0&&i<2)throw new f(b);var l=k?s-1:0,v=k?-1:1;if(i<2)for(;;){if(l in u){m=u[l],l+=v;break}if(l+=v,k?l<0:s<=l)throw new f(b)}for(;k?l>=0:s>l;l+=v)l in u&&(m=c(m,u[l],l,d));return m}};T.exports={left:y(!1),right:y(!0)}},13345:function(T,r,n){"use strict";var e=n(58310),a=n(37386),t=TypeError,o=Object.getOwnPropertyDescriptor,f=e&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(b){return b instanceof TypeError}}();T.exports=f?function(b,y){if(a(b)&&!o(b,"length").writable)throw new t("Cannot set read only .length");return b.length=y}:function(b,y){return b.length=y}},54602:function(T,r,n){"use strict";var e=n(67250);T.exports=e([].slice)},90274:function(T,r,n){"use strict";var e=n(54602),a=Math.floor,t=function o(f,b){var y=f.length;if(y<8)for(var S=1,k,h;S0;)f[h]=f[--h];h!==S++&&(f[h]=k)}else for(var c=a(y/2),i=o(e(f,0,c),b),m=o(e(f,c),b),d=i.length,u=m.length,s=0,l=0;s1?arguments[1]:void 0),E;E=E?E.next:x.first;)for(A(E.value,E.key,this);E&&E.removed;)E=E.previous}return L}(),has:function(){function L(w){return!!I(this,w)}return L}()}),t(g,N?{get:function(){function L(w){var x=I(this,w);return x&&x.value}return L}(),set:function(){function L(w,x){return B(this,w===0?0:w,x)}return L}()}:{add:function(){function L(w){return B(this,w=w===0?0:w,w)}return L}()}),c&&a(g,"size",{configurable:!0,get:function(){function L(){return V(this).size}return L}()}),p}return s}(),setStrong:function(){function s(l,v,N){var C=v+" Iterator",p=u(v),g=u(C);S(l,v,function(V,B){d(this,{type:C,target:V,state:p(V),kind:B,last:void 0})},function(){for(var V=g(this),B=V.kind,I=V.last;I&&I.removed;)I=I.previous;return!V.target||!(V.last=I=I?I.next:V.state.first)?(V.target=void 0,k(void 0,!0)):k(B==="keys"?I.key:B==="values"?I.value:[I.key,I.value],!1)},N?"entries":"values",!N,!0),h(v)}return s}()}},39895:function(T,r,n){"use strict";var e=n(67250),a=n(30145),t=n(81969).getWeakData,o=n(60077),f=n(30365),b=n(42871),y=n(77568),S=n(49450),k=n(22603),h=n(45299),c=n(5419),i=c.set,m=c.getterFor,d=k.find,u=k.findIndex,s=e([].splice),l=0,v=function(g){return g.frozen||(g.frozen=new N)},N=function(){this.entries=[]},C=function(g,V){return d(g.entries,function(B){return B[0]===V})};N.prototype={get:function(){function p(g){var V=C(this,g);if(V)return V[1]}return p}(),has:function(){function p(g){return!!C(this,g)}return p}(),set:function(){function p(g,V){var B=C(this,g);B?B[1]=V:this.entries.push([g,V])}return p}(),delete:function(){function p(g){var V=u(this.entries,function(B){return B[0]===g});return~V&&s(this.entries,V,1),!!~V}return p}()},T.exports={getConstructor:function(){function p(g,V,B,I){var L=g(function(E,P){o(E,w),i(E,{type:V,id:l++,frozen:void 0}),b(P)||S(P,E[I],{that:E,AS_ENTRIES:B})}),w=L.prototype,x=m(V),A=function(){function E(P,j,M){var R=x(P),D=t(f(j),!0);return D===!0?v(R).set(j,M):D[R.id]=M,P}return E}();return a(w,{delete:function(){function E(P){var j=x(this);if(!y(P))return!1;var M=t(P);return M===!0?v(j).delete(P):M&&h(M,j.id)&&delete M[j.id]}return E}(),has:function(){function E(P){var j=x(this);if(!y(P))return!1;var M=t(P);return M===!0?v(j).has(P):M&&h(M,j.id)}return E}()}),a(w,B?{get:function(){function E(P){var j=x(this);if(y(P)){var M=t(P);return M===!0?v(j).get(P):M?M[j.id]:void 0}}return E}(),set:function(){function E(P,j){return A(this,P,j)}return E}()}:{add:function(){function E(P){return A(this,P,!0)}return E}()}),L}return p}()}},45150:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(67250),o=n(41314),f=n(55938),b=n(81969),y=n(49450),S=n(60077),k=n(55747),h=n(42871),c=n(77568),i=n(40033),m=n(92490),d=n(84925),u=n(5781);T.exports=function(s,l,v){var N=s.indexOf("Map")!==-1,C=s.indexOf("Weak")!==-1,p=N?"set":"add",g=a[s],V=g&&g.prototype,B=g,I={},L=function(R){var D=t(V[R]);f(V,R,R==="add"?function(){function W(_){return D(this,_===0?0:_),this}return W}():R==="delete"?function(W){return C&&!c(W)?!1:D(this,W===0?0:W)}:R==="get"?function(){function W(_){return C&&!c(_)?void 0:D(this,_===0?0:_)}return W}():R==="has"?function(){function W(_){return C&&!c(_)?!1:D(this,_===0?0:_)}return W}():function(){function W(_,U){return D(this,_===0?0:_,U),this}return W}())},w=o(s,!k(g)||!(C||V.forEach&&!i(function(){new g().entries().next()})));if(w)B=v.getConstructor(l,s,N,p),b.enable();else if(o(s,!0)){var x=new B,A=x[p](C?{}:-0,1)!==x,E=i(function(){x.has(1)}),P=m(function(M){new g(M)}),j=!C&&i(function(){for(var M=new g,R=5;R--;)M[p](R,R);return!M.has(-0)});P||(B=l(function(M,R){S(M,V);var D=u(new g,M,B);return h(R)||y(R,D[p],{that:D,AS_ENTRIES:N}),D}),B.prototype=V,V.constructor=B),(E||j)&&(L("delete"),L("has"),N&&L("get")),(j||A)&&L(p),C&&V.clear&&delete V.clear}return I[s]=B,e({global:!0,constructor:!0,forced:B!==g},I),d(B,s),C||v.setStrong(B,s,N),B}},5774:function(T,r,n){"use strict";var e=n(45299),a=n(97921),t=n(27193),o=n(74595);T.exports=function(f,b,y){for(var S=a(b),k=o.f,h=t.f,c=0;c"+h+""}},5959:function(T){"use strict";T.exports=function(r,n){return{value:r,done:n}}},37909:function(T,r,n){"use strict";var e=n(58310),a=n(74595),t=n(87458);T.exports=e?function(o,f,b){return a.f(o,f,t(1,b))}:function(o,f,b){return o[f]=b,o}},87458:function(T){"use strict";T.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}},60102:function(T,r,n){"use strict";var e=n(58310),a=n(74595),t=n(87458);T.exports=function(o,f,b){e?a.f(o,f,t(0,b)):o[f]=b}},67206:function(T,r,n){"use strict";var e=n(67250),a=n(40033),t=n(24051).start,o=RangeError,f=isFinite,b=Math.abs,y=Date.prototype,S=y.toISOString,k=e(y.getTime),h=e(y.getUTCDate),c=e(y.getUTCFullYear),i=e(y.getUTCHours),m=e(y.getUTCMilliseconds),d=e(y.getUTCMinutes),u=e(y.getUTCMonth),s=e(y.getUTCSeconds);T.exports=a(function(){return S.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!a(function(){S.call(new Date(NaN))})?function(){function l(){if(!f(k(this)))throw new o("Invalid time value");var v=this,N=c(v),C=m(v),p=N<0?"-":N>9999?"+":"";return p+t(b(N),p?6:4,0)+"-"+t(u(v)+1,2,0)+"-"+t(h(v),2,0)+"T"+t(i(v),2,0)+":"+t(d(v),2,0)+":"+t(s(v),2,0)+"."+t(C,3,0)+"Z"}return l}():S},10886:function(T,r,n){"use strict";var e=n(30365),a=n(13396),t=TypeError;T.exports=function(o){if(e(this),o==="string"||o==="default")o="string";else if(o!=="number")throw new t("Incorrect hint");return a(this,o)}},73936:function(T,r,n){"use strict";var e=n(20001),a=n(74595);T.exports=function(t,o,f){return f.get&&e(f.get,o,{getter:!0}),f.set&&e(f.set,o,{setter:!0}),a.f(t,o,f)}},55938:function(T,r,n){"use strict";var e=n(55747),a=n(74595),t=n(20001),o=n(18231);T.exports=function(f,b,y,S){S||(S={});var k=S.enumerable,h=S.name!==void 0?S.name:b;if(e(y)&&t(y,h,S),S.global)k?f[b]=y:o(b,y);else{try{S.unsafe?f[b]&&(k=!0):delete f[b]}catch(c){}k?f[b]=y:a.f(f,b,{value:y,enumerable:!1,configurable:!S.nonConfigurable,writable:!S.nonWritable})}return f}},30145:function(T,r,n){"use strict";var e=n(55938);T.exports=function(a,t,o){for(var f in t)e(a,f,t[f],o);return a}},18231:function(T,r,n){"use strict";var e=n(74685),a=Object.defineProperty;T.exports=function(t,o){try{a(e,t,{value:o,configurable:!0,writable:!0})}catch(f){e[t]=o}return o}},95108:function(T,r,n){"use strict";var e=n(89393),a=TypeError;T.exports=function(t,o){if(!delete t[o])throw new a("Cannot delete property "+e(o)+" of "+e(t))}},58310:function(T,r,n){"use strict";var e=n(40033);T.exports=!e(function(){return Object.defineProperty({},1,{get:function(){function a(){return 7}return a}()})[1]!==7})},12689:function(T,r,n){"use strict";var e=n(74685),a=n(77568),t=e.document,o=a(t)&&a(t.createElement);T.exports=function(f){return o?t.createElement(f):{}}},21291:function(T){"use strict";var r=TypeError,n=9007199254740991;T.exports=function(e){if(e>n)throw r("Maximum allowed index exceeded");return e}},652:function(T,r,n){"use strict";var e=n(63318),a=e.match(/firefox\/(\d+)/i);T.exports=!!a&&+a[1]},8180:function(T,r,n){"use strict";var e=n(73730),a=n(81702);T.exports=!e&&!a&&typeof window=="object"&&typeof document=="object"},49197:function(T){"use strict";T.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},73730:function(T){"use strict";T.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},19228:function(T,r,n){"use strict";var e=n(63318);T.exports=/MSIE|Trident/.test(e)},51802:function(T,r,n){"use strict";var e=n(63318);T.exports=/ipad|iphone|ipod/i.test(e)&&typeof Pebble!="undefined"},83433:function(T,r,n){"use strict";var e=n(63318);T.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},81702:function(T,r,n){"use strict";var e=n(74685),a=n(7462);T.exports=a(e.process)==="process"},63383:function(T,r,n){"use strict";var e=n(63318);T.exports=/web0s(?!.*chrome)/i.test(e)},63318:function(T){"use strict";T.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},5026:function(T,r,n){"use strict";var e=n(74685),a=n(63318),t=e.process,o=e.Deno,f=t&&t.versions||o&&o.version,b=f&&f.v8,y,S;b&&(y=b.split("."),S=y[0]>0&&y[0]<4?1:+(y[0]+y[1])),!S&&a&&(y=a.match(/Edge\/(\d+)/),(!y||y[1]>=74)&&(y=a.match(/Chrome\/(\d+)/),y&&(S=+y[1]))),T.exports=S},9342:function(T,r,n){"use strict";var e=n(63318),a=e.match(/AppleWebKit\/(\d+)\./);T.exports=!!a&&+a[1]},89453:function(T){"use strict";T.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},63964:function(T,r,n){"use strict";var e=n(74685),a=n(27193).f,t=n(37909),o=n(55938),f=n(18231),b=n(5774),y=n(41314);T.exports=function(S,k){var h=S.target,c=S.global,i=S.stat,m,d,u,s,l,v;if(c?d=e:i?d=e[h]||f(h,{}):d=e[h]&&e[h].prototype,d)for(u in k){if(l=k[u],S.dontCallGetSet?(v=a(d,u),s=v&&v.value):s=d[u],m=y(c?u:h+(i?".":"#")+u,S.forced),!m&&s!==void 0){if(typeof l==typeof s)continue;b(l,s)}(S.sham||s&&s.sham)&&t(l,"sham",!0),o(d,u,l,S)}}},40033:function(T){"use strict";T.exports=function(r){try{return!!r()}catch(n){return!0}}},79942:function(T,r,n){"use strict";n(79669);var e=n(91495),a=n(55938),t=n(14489),o=n(40033),f=n(24697),b=n(37909),y=f("species"),S=RegExp.prototype;T.exports=function(k,h,c,i){var m=f(k),d=!o(function(){var v={};return v[m]=function(){return 7},""[k](v)!==7}),u=d&&!o(function(){var v=!1,N=/a/;return k==="split"&&(N={},N.constructor={},N.constructor[y]=function(){return N},N.flags="",N[m]=/./[m]),N.exec=function(){return v=!0,null},N[m](""),!v});if(!d||!u||c){var s=/./[m],l=h(m,""[k],function(v,N,C,p,g){var V=N.exec;return V===t||V===S.exec?d&&!g?{done:!0,value:e(s,N,C,p)}:{done:!0,value:e(v,C,N,p)}:{done:!1}});a(String.prototype,k,l[0]),a(S,m,l[1])}i&&b(S[m],"sham",!0)}},65561:function(T,r,n){"use strict";var e=n(37386),a=n(24760),t=n(21291),o=n(75754),f=function b(y,S,k,h,c,i,m,d){for(var u=c,s=0,l=m?o(m,d):!1,v,N;s0&&e(v)?(N=a(v),u=b(y,S,v,N,u,i-1)-1):(t(u+1),y[u]=v),u++),s++;return u};T.exports=f},50730:function(T,r,n){"use strict";var e=n(40033);T.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},61267:function(T,r,n){"use strict";var e=n(55050),a=Function.prototype,t=a.apply,o=a.call;T.exports=typeof Reflect=="object"&&Reflect.apply||(e?o.bind(t):function(){return o.apply(t,arguments)})},75754:function(T,r,n){"use strict";var e=n(71138),a=n(10320),t=n(55050),o=e(e.bind);T.exports=function(f,b){return a(f),b===void 0?f:t?o(f,b):function(){return f.apply(b,arguments)}}},55050:function(T,r,n){"use strict";var e=n(40033);T.exports=!e(function(){var a=function(){}.bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},66284:function(T,r,n){"use strict";var e=n(67250),a=n(10320),t=n(77568),o=n(45299),f=n(54602),b=n(55050),y=Function,S=e([].concat),k=e([].join),h={},c=function(m,d,u){if(!o(h,d)){for(var s=[],l=0;l]*>)/g,S=/\$([$&'`]|\d{1,2})/g;T.exports=function(k,h,c,i,m,d){var u=c+k.length,s=i.length,l=S;return m!==void 0&&(m=a(m),l=y),f(d,l,function(v,N){var C;switch(o(N,0)){case"$":return"$";case"&":return k;case"`":return b(h,0,c);case"'":return b(h,u);case"<":C=m[b(N,1,-1)];break;default:var p=+N;if(p===0)return v;if(p>s){var g=t(p/10);return g===0?v:g<=s?i[g-1]===void 0?o(N,1):i[g-1]+o(N,1):v}C=i[p-1]}return C===void 0?"":C})}},74685:function(T,r,n){"use strict";var e=function(t){return t&&t.Math===Math&&t};T.exports=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof n.g=="object"&&n.g)||e(!1)||function(){return this}()||Function("return this")()},45299:function(T,r,n){"use strict";var e=n(67250),a=n(46771),t=e({}.hasOwnProperty);T.exports=Object.hasOwn||function(){function o(f,b){return t(a(f),b)}return o}()},79195:function(T){"use strict";T.exports={}},72259:function(T){"use strict";T.exports=function(r,n){try{arguments.length}catch(e){}}},5315:function(T,r,n){"use strict";var e=n(4009);T.exports=e("document","documentElement")},36223:function(T,r,n){"use strict";var e=n(58310),a=n(40033),t=n(12689);T.exports=!e&&!a(function(){return Object.defineProperty(t("div"),"a",{get:function(){function o(){return 7}return o}()}).a!==7})},91784:function(T){"use strict";var r=Array,n=Math.abs,e=Math.pow,a=Math.floor,t=Math.log,o=Math.LN2,f=function(S,k,h){var c=r(h),i=h*8-k-1,m=(1<>1,u=k===23?e(2,-24)-e(2,-77):0,s=S<0||S===0&&1/S<0?1:0,l=0,v,N,C;for(S=n(S),S!==S||S===1/0?(N=S!==S?1:0,v=m):(v=a(t(S)/o),C=e(2,-v),S*C<1&&(v--,C*=2),v+d>=1?S+=u/C:S+=u*e(2,1-d),S*C>=2&&(v++,C/=2),v+d>=m?(N=0,v=m):v+d>=1?(N=(S*C-1)*e(2,k),v+=d):(N=S*e(2,d-1)*e(2,k),v=0));k>=8;)c[l++]=N&255,N/=256,k-=8;for(v=v<0;)c[l++]=v&255,v/=256,i-=8;return c[--l]|=s*128,c},b=function(S,k){var h=S.length,c=h*8-k-1,i=(1<>1,d=c-7,u=h-1,s=S[u--],l=s&127,v;for(s>>=7;d>0;)l=l*256+S[u--],d-=8;for(v=l&(1<<-d)-1,l>>=-d,d+=k;d>0;)v=v*256+S[u--],d-=8;if(l===0)l=1-m;else{if(l===i)return v?NaN:s?-1/0:1/0;v+=e(2,k),l-=m}return(s?-1:1)*v*e(2,l-k)};T.exports={pack:f,unpack:b}},37457:function(T,r,n){"use strict";var e=n(67250),a=n(40033),t=n(7462),o=Object,f=e("".split);T.exports=a(function(){return!o("z").propertyIsEnumerable(0)})?function(b){return t(b)==="String"?f(b,""):o(b)}:o},5781:function(T,r,n){"use strict";var e=n(55747),a=n(77568),t=n(76649);T.exports=function(o,f,b){var y,S;return t&&e(y=f.constructor)&&y!==b&&a(S=y.prototype)&&S!==b.prototype&&t(o,S),o}},40492:function(T,r,n){"use strict";var e=n(67250),a=n(55747),t=n(40095),o=e(Function.toString);a(t.inspectSource)||(t.inspectSource=function(f){return o(f)}),T.exports=t.inspectSource},81969:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(79195),o=n(77568),f=n(45299),b=n(74595).f,y=n(37310),S=n(81644),k=n(81834),h=n(16738),c=n(50730),i=!1,m=h("meta"),d=0,u=function(g){b(g,m,{value:{objectID:"O"+d++,weakData:{}}})},s=function(g,V){if(!o(g))return typeof g=="symbol"?g:(typeof g=="string"?"S":"P")+g;if(!f(g,m)){if(!k(g))return"F";if(!V)return"E";u(g)}return g[m].objectID},l=function(g,V){if(!f(g,m)){if(!k(g))return!0;if(!V)return!1;u(g)}return g[m].weakData},v=function(g){return c&&i&&k(g)&&!f(g,m)&&u(g),g},N=function(){C.enable=function(){},i=!0;var g=y.f,V=a([].splice),B={};B[m]=1,g(B).length&&(y.f=function(I){for(var L=g(I),w=0,x=L.length;wI;I++)if(w=P(d[I]),w&&y(m,w))return w;return new i(!1)}V=S(d,B)}for(x=N?d.next:V.next;!(A=a(x,V)).done;){try{w=P(A.value)}catch(j){h(V,"throw",j)}if(typeof w=="object"&&w&&y(m,w))return w}return new i(!1)}},28649:function(T,r,n){"use strict";var e=n(91495),a=n(30365),t=n(78060);T.exports=function(o,f,b){var y,S;a(o);try{if(y=t(o,"return"),!y){if(f==="throw")throw b;return b}y=e(y,o)}catch(k){S=!0,y=k}if(f==="throw")throw b;if(S)throw y;return a(y),b}},5656:function(T,r,n){"use strict";var e=n(67635).IteratorPrototype,a=n(80674),t=n(87458),o=n(84925),f=n(83967),b=function(){return this};T.exports=function(y,S,k,h){var c=S+" Iterator";return y.prototype=a(e,{next:t(+!h,k)}),o(y,c,!1,!0),f[c]=b,y}},65574:function(T,r,n){"use strict";var e=n(63964),a=n(91495),t=n(4493),o=n(70520),f=n(55747),b=n(5656),y=n(36917),S=n(76649),k=n(84925),h=n(37909),c=n(55938),i=n(24697),m=n(83967),d=n(67635),u=o.PROPER,s=o.CONFIGURABLE,l=d.IteratorPrototype,v=d.BUGGY_SAFARI_ITERATORS,N=i("iterator"),C="keys",p="values",g="entries",V=function(){return this};T.exports=function(B,I,L,w,x,A,E){b(L,I,w);var P=function(Q){if(Q===x&&W)return W;if(!v&&Q&&Q in R)return R[Q];switch(Q){case C:return function(){function J(){return new L(this,Q)}return J}();case p:return function(){function J(){return new L(this,Q)}return J}();case g:return function(){function J(){return new L(this,Q)}return J}()}return function(){return new L(this)}},j=I+" Iterator",M=!1,R=B.prototype,D=R[N]||R["@@iterator"]||x&&R[x],W=!v&&D||P(x),_=I==="Array"&&R.entries||D,U,K,G;if(_&&(U=y(_.call(new B)),U!==Object.prototype&&U.next&&(!t&&y(U)!==l&&(S?S(U,l):f(U[N])||c(U,N,V)),k(U,j,!0,!0),t&&(m[j]=V))),u&&x===p&&D&&D.name!==p&&(!t&&s?h(R,"name",p):(M=!0,W=function(){function $(){return a(D,this)}return $}())),x)if(K={values:P(p),keys:A?W:P(C),entries:P(g)},E)for(G in K)(v||M||!(G in R))&&c(R,G,K[G]);else e({target:I,proto:!0,forced:v||M},K);return(!t||E)&&R[N]!==W&&c(R,N,W,{name:x}),m[I]=W,K}},67635:function(T,r,n){"use strict";var e=n(40033),a=n(55747),t=n(77568),o=n(80674),f=n(36917),b=n(55938),y=n(24697),S=n(4493),k=y("iterator"),h=!1,c,i,m;[].keys&&(m=[].keys(),"next"in m?(i=f(f(m)),i!==Object.prototype&&(c=i)):h=!0);var d=!t(c)||e(function(){var u={};return c[k].call(u)!==u});d?c={}:S&&(c=o(c)),a(c[k])||b(c,k,function(){return this}),T.exports={IteratorPrototype:c,BUGGY_SAFARI_ITERATORS:h}},83967:function(T){"use strict";T.exports={}},24760:function(T,r,n){"use strict";var e=n(10188);T.exports=function(a){return e(a.length)}},20001:function(T,r,n){"use strict";var e=n(67250),a=n(40033),t=n(55747),o=n(45299),f=n(58310),b=n(70520).CONFIGURABLE,y=n(40492),S=n(5419),k=S.enforce,h=S.get,c=String,i=Object.defineProperty,m=e("".slice),d=e("".replace),u=e([].join),s=f&&!a(function(){return i(function(){},"length",{value:8}).length!==8}),l=String(String).split("String"),v=T.exports=function(N,C,p){m(c(C),0,7)==="Symbol("&&(C="["+d(c(C),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),p&&p.getter&&(C="get "+C),p&&p.setter&&(C="set "+C),(!o(N,"name")||b&&N.name!==C)&&(f?i(N,"name",{value:C,configurable:!0}):N.name=C),s&&p&&o(p,"arity")&&N.length!==p.arity&&i(N,"length",{value:p.arity});try{p&&o(p,"constructor")&&p.constructor?f&&i(N,"prototype",{writable:!1}):N.prototype&&(N.prototype=void 0)}catch(V){}var g=k(N);return o(g,"source")||(g.source=u(l,typeof C=="string"?C:"")),N};Function.prototype.toString=v(function(){function N(){return t(this)&&h(this).source||y(this)}return N}(),"toString")},82040:function(T){"use strict";var r=Math.expm1,n=Math.exp;T.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||r(-2e-17)!==-2e-17?function(){function e(a){var t=+a;return t===0?t:t>-1e-6&&t<1e-6?t+t*t/2:n(t)-1}return e}():r},14950:function(T,r,n){"use strict";var e=n(22172),a=Math.abs,t=2220446049250313e-31,o=1/t,f=function(y){return y+o-o};T.exports=function(b,y,S,k){var h=+b,c=a(h),i=e(h);if(cS||d!==d?i*(1/0):i*d}},95867:function(T,r,n){"use strict";var e=n(14950),a=11920928955078125e-23,t=34028234663852886e22,o=11754943508222875e-54;T.exports=Math.fround||function(){function f(b){return e(b,a,t,o)}return f}()},75002:function(T){"use strict";var r=Math.log,n=Math.LOG10E;T.exports=Math.log10||function(){function e(a){return r(a)*n}return e}()},90874:function(T){"use strict";var r=Math.log;T.exports=Math.log1p||function(){function n(e){var a=+e;return a>-1e-8&&a<1e-8?a-a*a/2:r(1+a)}return n}()},22172:function(T){"use strict";T.exports=Math.sign||function(){function r(n){var e=+n;return e===0||e!==e?e:e<0?-1:1}return r}()},21119:function(T){"use strict";var r=Math.ceil,n=Math.floor;T.exports=Math.trunc||function(){function e(a){var t=+a;return(t>0?n:r)(t)}return e}()},37713:function(T,r,n){"use strict";var e=n(74685),a=n(44915),t=n(75754),o=n(60375).set,f=n(9547),b=n(83433),y=n(51802),S=n(63383),k=n(81702),h=e.MutationObserver||e.WebKitMutationObserver,c=e.document,i=e.process,m=e.Promise,d=a("queueMicrotask"),u,s,l,v,N;if(!d){var C=new f,p=function(){var V,B;for(k&&(V=i.domain)&&V.exit();B=C.get();)try{B()}catch(I){throw C.head&&u(),I}V&&V.enter()};!b&&!k&&!S&&h&&c?(s=!0,l=c.createTextNode(""),new h(p).observe(l,{characterData:!0}),u=function(){l.data=s=!s}):!y&&m&&m.resolve?(v=m.resolve(void 0),v.constructor=m,N=t(v.then,v),u=function(){N(p)}):k?u=function(){i.nextTick(p)}:(o=t(o,e),u=function(){o(p)}),d=function(V){C.head||u(),C.add(V)}}T.exports=d},81837:function(T,r,n){"use strict";var e=n(10320),a=TypeError,t=function(f){var b,y;this.promise=new f(function(S,k){if(b!==void 0||y!==void 0)throw new a("Bad Promise constructor");b=S,y=k}),this.resolve=e(b),this.reject=e(y)};T.exports.f=function(o){return new t(o)}},86213:function(T,r,n){"use strict";var e=n(72586),a=TypeError;T.exports=function(t){if(e(t))throw new a("The method doesn't accept regular expressions");return t}},3294:function(T,r,n){"use strict";var e=n(74685),a=e.isFinite;T.exports=Number.isFinite||function(){function t(o){return typeof o=="number"&&a(o)}return t}()},28506:function(T,r,n){"use strict";var e=n(74685),a=n(40033),t=n(67250),o=n(12605),f=n(92648).trim,b=n(4198),y=t("".charAt),S=e.parseFloat,k=e.Symbol,h=k&&k.iterator,c=1/S(b+"-0")!==-1/0||h&&!a(function(){S(Object(h))});T.exports=c?function(){function i(m){var d=f(o(m)),u=S(d);return u===0&&y(d,0)==="-"?-0:u}return i}():S},13693:function(T,r,n){"use strict";var e=n(74685),a=n(40033),t=n(67250),o=n(12605),f=n(92648).trim,b=n(4198),y=e.parseInt,S=e.Symbol,k=S&&S.iterator,h=/^[+-]?0x/i,c=t(h.exec),i=y(b+"08")!==8||y(b+"0x16")!==22||k&&!a(function(){y(Object(k))});T.exports=i?function(){function m(d,u){var s=f(o(d));return y(s,u>>>0||(c(h,s)?16:10))}return m}():y},41143:function(T,r,n){"use strict";var e=n(58310),a=n(67250),t=n(91495),o=n(40033),f=n(18450),b=n(89235),y=n(12867),S=n(46771),k=n(37457),h=Object.assign,c=Object.defineProperty,i=a([].concat);T.exports=!h||o(function(){if(e&&h({b:1},h(c({},"a",{enumerable:!0,get:function(){function l(){c(this,"b",{value:3,enumerable:!1})}return l}()}),{b:2})).b!==1)return!0;var m={},d={},u=Symbol("assign detection"),s="abcdefghijklmnopqrst";return m[u]=7,s.split("").forEach(function(l){d[l]=l}),h({},m)[u]!==7||f(h({},d)).join("")!==s})?function(){function m(d,u){for(var s=S(d),l=arguments.length,v=1,N=b.f,C=y.f;l>v;)for(var p=k(arguments[v++]),g=N?i(f(p),N(p)):f(p),V=g.length,B=0,I;V>B;)I=g[B++],(!e||t(C,p,I))&&(s[I]=p[I]);return s}return m}():h},80674:function(T,r,n){"use strict";var e=n(30365),a=n(24239),t=n(89453),o=n(79195),f=n(5315),b=n(12689),y=n(19417),S=">",k="<",h="prototype",c="script",i=y("IE_PROTO"),m=function(){},d=function(C){return k+c+S+C+k+"/"+c+S},u=function(C){C.write(d("")),C.close();var p=C.parentWindow.Object;return C=null,p},s=function(){var C=b("iframe"),p="java"+c+":",g;return C.style.display="none",f.appendChild(C),C.src=String(p),g=C.contentWindow.document,g.open(),g.write(d("document.F=Object")),g.close(),g.F},l,v=function(){try{l=new ActiveXObject("htmlfile")}catch(p){}v=typeof document!="undefined"?document.domain&&l?u(l):s():u(l);for(var C=t.length;C--;)delete v[h][t[C]];return v()};o[i]=!0,T.exports=Object.create||function(){function N(C,p){var g;return C!==null?(m[h]=e(C),g=new m,m[h]=null,g[i]=C):g=v(),p===void 0?g:a.f(g,p)}return N}()},24239:function(T,r,n){"use strict";var e=n(58310),a=n(80944),t=n(74595),o=n(30365),f=n(57591),b=n(18450);r.f=e&&!a?Object.defineProperties:function(){function y(S,k){o(S);for(var h=f(k),c=b(k),i=c.length,m=0,d;i>m;)t.f(S,d=c[m++],h[d]);return S}return y}()},74595:function(T,r,n){"use strict";var e=n(58310),a=n(36223),t=n(80944),o=n(30365),f=n(767),b=TypeError,y=Object.defineProperty,S=Object.getOwnPropertyDescriptor,k="enumerable",h="configurable",c="writable";r.f=e?t?function(){function i(m,d,u){if(o(m),d=f(d),o(u),typeof m=="function"&&d==="prototype"&&"value"in u&&c in u&&!u[c]){var s=S(m,d);s&&s[c]&&(m[d]=u.value,u={configurable:h in u?u[h]:s[h],enumerable:k in u?u[k]:s[k],writable:!1})}return y(m,d,u)}return i}():y:function(){function i(m,d,u){if(o(m),d=f(d),o(u),a)try{return y(m,d,u)}catch(s){}if("get"in u||"set"in u)throw new b("Accessors not supported");return"value"in u&&(m[d]=u.value),m}return i}()},27193:function(T,r,n){"use strict";var e=n(58310),a=n(91495),t=n(12867),o=n(87458),f=n(57591),b=n(767),y=n(45299),S=n(36223),k=Object.getOwnPropertyDescriptor;r.f=e?k:function(){function h(c,i){if(c=f(c),i=b(i),S)try{return k(c,i)}catch(m){}if(y(c,i))return o(!a(t.f,c,i),c[i])}return h}()},81644:function(T,r,n){"use strict";var e=n(7462),a=n(57591),t=n(37310).f,o=n(54602),f=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],b=function(S){try{return t(S)}catch(k){return o(f)}};T.exports.f=function(){function y(S){return f&&e(S)==="Window"?b(S):t(a(S))}return y}()},37310:function(T,r,n){"use strict";var e=n(53726),a=n(89453),t=a.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(){function o(f){return e(f,t)}return o}()},89235:function(T,r){"use strict";r.f=Object.getOwnPropertySymbols},36917:function(T,r,n){"use strict";var e=n(45299),a=n(55747),t=n(46771),o=n(19417),f=n(9225),b=o("IE_PROTO"),y=Object,S=y.prototype;T.exports=f?y.getPrototypeOf:function(k){var h=t(k);if(e(h,b))return h[b];var c=h.constructor;return a(c)&&h instanceof c?c.prototype:h instanceof y?S:null}},81834:function(T,r,n){"use strict";var e=n(40033),a=n(77568),t=n(7462),o=n(3782),f=Object.isExtensible,b=e(function(){f(1)});T.exports=b||o?function(){function y(S){return!a(S)||o&&t(S)==="ArrayBuffer"?!1:f?f(S):!0}return y}():f},21287:function(T,r,n){"use strict";var e=n(67250);T.exports=e({}.isPrototypeOf)},53726:function(T,r,n){"use strict";var e=n(67250),a=n(45299),t=n(57591),o=n(14211).indexOf,f=n(79195),b=e([].push);T.exports=function(y,S){var k=t(y),h=0,c=[],i;for(i in k)!a(f,i)&&a(k,i)&&b(c,i);for(;S.length>h;)a(k,i=S[h++])&&(~o(c,i)||b(c,i));return c}},18450:function(T,r,n){"use strict";var e=n(53726),a=n(89453);T.exports=Object.keys||function(){function t(o){return e(o,a)}return t}()},12867:function(T,r){"use strict";var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,a=e&&!n.call({1:2},1);r.f=a?function(){function t(o){var f=e(this,o);return!!f&&f.enumerable}return t}():n},57377:function(T,r,n){"use strict";var e=n(4493),a=n(74685),t=n(40033),o=n(9342);T.exports=e||!t(function(){if(!(o&&o<535)){var f=Math.random();__defineSetter__.call(null,f,function(){}),delete a[f]}})},76649:function(T,r,n){"use strict";var e=n(38656),a=n(77568),t=n(16952),o=n(35908);T.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var f=!1,b={},y;try{y=e(Object.prototype,"__proto__","set"),y(b,[]),f=b instanceof Array}catch(S){}return function(){function S(k,h){return t(k),o(h),a(k)&&(f?y(k,h):k.__proto__=h),k}return S}()}():void 0)},70915:function(T,r,n){"use strict";var e=n(58310),a=n(40033),t=n(67250),o=n(36917),f=n(18450),b=n(57591),y=n(12867).f,S=t(y),k=t([].push),h=e&&a(function(){var i=Object.create(null);return i[2]=2,!S(i,2)}),c=function(m){return function(d){for(var u=b(d),s=f(u),l=h&&o(u)===null,v=s.length,N=0,C=[],p;v>N;)p=s[N++],(!e||(l?p in u:S(u,p)))&&k(C,m?[p,u[p]]:u[p]);return C}};T.exports={entries:c(!0),values:c(!1)}},2509:function(T,r,n){"use strict";var e=n(2650),a=n(2281);T.exports=e?{}.toString:function(){function t(){return"[object "+a(this)+"]"}return t}()},13396:function(T,r,n){"use strict";var e=n(91495),a=n(55747),t=n(77568),o=TypeError;T.exports=function(f,b){var y,S;if(b==="string"&&a(y=f.toString)&&!t(S=e(y,f))||a(y=f.valueOf)&&!t(S=e(y,f))||b!=="string"&&a(y=f.toString)&&!t(S=e(y,f)))return S;throw new o("Can't convert object to primitive value")}},97921:function(T,r,n){"use strict";var e=n(4009),a=n(67250),t=n(37310),o=n(89235),f=n(30365),b=a([].concat);T.exports=e("Reflect","ownKeys")||function(){function y(S){var k=t.f(f(S)),h=o.f;return h?b(k,h(S)):k}return y}()},61765:function(T,r,n){"use strict";var e=n(74685);T.exports=e},10729:function(T){"use strict";T.exports=function(r){try{return{error:!1,value:r()}}catch(n){return{error:!0,value:n}}}},74854:function(T,r,n){"use strict";var e=n(74685),a=n(67512),t=n(55747),o=n(41314),f=n(40492),b=n(24697),y=n(8180),S=n(73730),k=n(4493),h=n(5026),c=a&&a.prototype,i=b("species"),m=!1,d=t(e.PromiseRejectionEvent),u=o("Promise",function(){var s=f(a),l=s!==String(a);if(!l&&h===66||k&&!(c.catch&&c.finally))return!0;if(!h||h<51||!/native code/.test(s)){var v=new a(function(p){p(1)}),N=function(g){g(function(){},function(){})},C=v.constructor={};if(C[i]=N,m=v.then(function(){})instanceof N,!m)return!0}return!l&&(y||S)&&!d});T.exports={CONSTRUCTOR:u,REJECTION_EVENT:d,SUBCLASSING:m}},67512:function(T,r,n){"use strict";var e=n(74685);T.exports=e.Promise},66628:function(T,r,n){"use strict";var e=n(30365),a=n(77568),t=n(81837);T.exports=function(o,f){if(e(o),a(f)&&f.constructor===o)return f;var b=t.f(o),y=b.resolve;return y(f),b.promise}},48199:function(T,r,n){"use strict";var e=n(67512),a=n(92490),t=n(74854).CONSTRUCTOR;T.exports=t||!a(function(o){e.all(o).then(void 0,function(){})})},34550:function(T,r,n){"use strict";var e=n(74595).f;T.exports=function(a,t,o){o in a||e(a,o,{configurable:!0,get:function(){function f(){return t[o]}return f}(),set:function(){function f(b){t[o]=b}return f}()})}},9547:function(T){"use strict";var r=function(){this.head=null,this.tail=null};r.prototype={add:function(){function n(e){var a={item:e,next:null},t=this.tail;t?t.next=a:this.head=a,this.tail=a}return n}(),get:function(){function n(){var e=this.head;if(e){var a=this.head=e.next;return a===null&&(this.tail=null),e.item}}return n}()},T.exports=r},28340:function(T,r,n){"use strict";var e=n(91495),a=n(30365),t=n(55747),o=n(7462),f=n(14489),b=TypeError;T.exports=function(y,S){var k=y.exec;if(t(k)){var h=e(k,y,S);return h!==null&&a(h),h}if(o(y)==="RegExp")return e(f,y,S);throw new b("RegExp#exec called on incompatible receiver")}},14489:function(T,r,n){"use strict";var e=n(91495),a=n(67250),t=n(12605),o=n(70901),f=n(62115),b=n(16639),y=n(80674),S=n(5419).get,k=n(39173),h=n(35688),c=b("native-string-replace",String.prototype.replace),i=RegExp.prototype.exec,m=i,d=a("".charAt),u=a("".indexOf),s=a("".replace),l=a("".slice),v=function(){var g=/a/,V=/b*/g;return e(i,g,"a"),e(i,V,"a"),g.lastIndex!==0||V.lastIndex!==0}(),N=f.BROKEN_CARET,C=/()??/.exec("")[1]!==void 0,p=v||C||N||k||h;p&&(m=function(){function g(V){var B=this,I=S(B),L=t(V),w=I.raw,x,A,E,P,j,M,R;if(w)return w.lastIndex=B.lastIndex,x=e(m,w,L),B.lastIndex=w.lastIndex,x;var D=I.groups,W=N&&B.sticky,_=e(o,B),U=B.source,K=0,G=L;if(W&&(_=s(_,"y",""),u(_,"g")===-1&&(_+="g"),G=l(L,B.lastIndex),B.lastIndex>0&&(!B.multiline||B.multiline&&d(L,B.lastIndex-1)!=="\n")&&(U="(?: "+U+")",G=" "+G,K++),A=new RegExp("^(?:"+U+")",_)),C&&(A=new RegExp("^"+U+"$(?!\\s)",_)),v&&(E=B.lastIndex),P=e(i,W?A:B,G),W?P?(P.input=l(P.input,K),P[0]=l(P[0],K),P.index=B.lastIndex,B.lastIndex+=P[0].length):B.lastIndex=0:v&&P&&(B.lastIndex=B.global?P.index+P[0].length:E),C&&P&&P.length>1&&e(c,P[0],A,function(){for(j=1;jb)","g");return o.exec("b").groups.a!=="b"||"b".replace(o,"$c")!=="bc"})},16952:function(T,r,n){"use strict";var e=n(42871),a=TypeError;T.exports=function(t){if(e(t))throw new a("Can't call method on "+t);return t}},44915:function(T,r,n){"use strict";var e=n(74685),a=n(58310),t=Object.getOwnPropertyDescriptor;T.exports=function(o){if(!a)return e[o];var f=t(e,o);return f&&f.value}},5700:function(T){"use strict";T.exports=Object.is||function(){function r(n,e){return n===e?n!==0||1/n===1/e:n!==n&&e!==e}return r}()},78362:function(T,r,n){"use strict";var e=n(74685),a=n(61267),t=n(55747),o=n(49197),f=n(63318),b=n(54602),y=n(24986),S=e.Function,k=/MSIE .\./.test(f)||o&&function(){var h=e.Bun.version.split(".");return h.length<3||h[0]==="0"&&(h[1]<3||h[1]==="3"&&h[2]==="0")}();T.exports=function(h,c){var i=c?2:1;return k?function(m,d){var u=y(arguments.length,1)>i,s=t(m)?m:S(m),l=u?b(arguments,i):[],v=u?function(){a(s,this,l)}:s;return c?h(v,d):h(v)}:h}},58491:function(T,r,n){"use strict";var e=n(4009),a=n(73936),t=n(24697),o=n(58310),f=t("species");T.exports=function(b){var y=e(b);o&&y&&!y[f]&&a(y,f,{configurable:!0,get:function(){function S(){return this}return S}()})}},84925:function(T,r,n){"use strict";var e=n(74595).f,a=n(45299),t=n(24697),o=t("toStringTag");T.exports=function(f,b,y){f&&!y&&(f=f.prototype),f&&!a(f,o)&&e(f,o,{configurable:!0,value:b})}},19417:function(T,r,n){"use strict";var e=n(16639),a=n(16738),t=e("keys");T.exports=function(o){return t[o]||(t[o]=a(o))}},40095:function(T,r,n){"use strict";var e=n(4493),a=n(74685),t=n(18231),o="__core-js_shared__",f=T.exports=a[o]||t(o,{});(f.versions||(f.versions=[])).push({version:"3.37.1",mode:e?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},16639:function(T,r,n){"use strict";var e=n(40095);T.exports=function(a,t){return e[a]||(e[a]=t||{})}},28987:function(T,r,n){"use strict";var e=n(30365),a=n(32606),t=n(42871),o=n(24697),f=o("species");T.exports=function(b,y){var S=e(b).constructor,k;return S===void 0||t(k=e(S)[f])?y:a(k)}},88539:function(T,r,n){"use strict";var e=n(40033);T.exports=function(a){return e(function(){var t=""[a]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},50233:function(T,r,n){"use strict";var e=n(67250),a=n(61365),t=n(12605),o=n(16952),f=e("".charAt),b=e("".charCodeAt),y=e("".slice),S=function(h){return function(c,i){var m=t(o(c)),d=a(i),u=m.length,s,l;return d<0||d>=u?h?"":void 0:(s=b(m,d),s<55296||s>56319||d+1===u||(l=b(m,d+1))<56320||l>57343?h?f(m,d):s:h?y(m,d,d+2):(s-55296<<10)+(l-56320)+65536)}};T.exports={codeAt:S(!1),charAt:S(!0)}},34125:function(T,r,n){"use strict";var e=n(63318);T.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(e)},24051:function(T,r,n){"use strict";var e=n(67250),a=n(10188),t=n(12605),o=n(62443),f=n(16952),b=e(o),y=e("".slice),S=Math.ceil,k=function(c){return function(i,m,d){var u=t(f(i)),s=a(m),l=u.length,v=d===void 0?" ":t(d),N,C;return s<=l||v===""?u:(N=s-l,C=b(v,S(N/v.length)),C.length>N&&(C=y(C,0,N)),c?u+C:C+u)}};T.exports={start:k(!1),end:k(!0)}},62443:function(T,r,n){"use strict";var e=n(61365),a=n(12605),t=n(16952),o=RangeError;T.exports=function(){function f(b){var y=a(t(this)),S="",k=e(b);if(k<0||k===1/0)throw new o("Wrong number of repetitions");for(;k>0;(k>>>=1)&&(y+=y))k&1&&(S+=y);return S}return f}()},43476:function(T,r,n){"use strict";var e=n(92648).end,a=n(90012);T.exports=a("trimEnd")?function(){function t(){return e(this)}return t}():"".trimEnd},90012:function(T,r,n){"use strict";var e=n(70520).PROPER,a=n(40033),t=n(4198),o="\u200B\x85\u180E";T.exports=function(f){return a(function(){return!!t[f]()||o[f]()!==o||e&&t[f].name!==f})}},43885:function(T,r,n){"use strict";var e=n(92648).start,a=n(90012);T.exports=a("trimStart")?function(){function t(){return e(this)}return t}():"".trimStart},92648:function(T,r,n){"use strict";var e=n(67250),a=n(16952),t=n(12605),o=n(4198),f=e("".replace),b=RegExp("^["+o+"]+"),y=RegExp("(^|[^"+o+"])["+o+"]+$"),S=function(h){return function(c){var i=t(a(c));return h&1&&(i=f(i,b,"")),h&2&&(i=f(i,y,"$1")),i}};T.exports={start:S(1),end:S(2),trim:S(3)}},52357:function(T,r,n){"use strict";var e=n(5026),a=n(40033),t=n(74685),o=t.String;T.exports=!!Object.getOwnPropertySymbols&&!a(function(){var f=Symbol("symbol detection");return!o(f)||!(Object(f)instanceof Symbol)||!Symbol.sham&&e&&e<41})},52360:function(T,r,n){"use strict";var e=n(91495),a=n(4009),t=n(24697),o=n(55938);T.exports=function(){var f=a("Symbol"),b=f&&f.prototype,y=b&&b.valueOf,S=t("toPrimitive");b&&!b[S]&&o(b,S,function(k){return e(y,this)},{arity:1})}},66570:function(T,r,n){"use strict";var e=n(52357);T.exports=e&&!!Symbol.for&&!!Symbol.keyFor},60375:function(T,r,n){"use strict";var e=n(74685),a=n(61267),t=n(75754),o=n(55747),f=n(45299),b=n(40033),y=n(5315),S=n(54602),k=n(12689),h=n(24986),c=n(83433),i=n(81702),m=e.setImmediate,d=e.clearImmediate,u=e.process,s=e.Dispatch,l=e.Function,v=e.MessageChannel,N=e.String,C=0,p={},g="onreadystatechange",V,B,I,L;b(function(){V=e.location});var w=function(j){if(f(p,j)){var M=p[j];delete p[j],M()}},x=function(j){return function(){w(j)}},A=function(j){w(j.data)},E=function(j){e.postMessage(N(j),V.protocol+"//"+V.host)};(!m||!d)&&(m=function(){function P(j){h(arguments.length,1);var M=o(j)?j:l(j),R=S(arguments,1);return p[++C]=function(){a(M,void 0,R)},B(C),C}return P}(),d=function(){function P(j){delete p[j]}return P}(),i?B=function(j){u.nextTick(x(j))}:s&&s.now?B=function(j){s.now(x(j))}:v&&!c?(I=new v,L=I.port2,I.port1.onmessage=A,B=t(L.postMessage,L)):e.addEventListener&&o(e.postMessage)&&!e.importScripts&&V&&V.protocol!=="file:"&&!b(E)?(B=E,e.addEventListener("message",A,!1)):g in k("script")?B=function(j){y.appendChild(k("script"))[g]=function(){y.removeChild(this),w(j)}}:B=function(j){setTimeout(x(j),0)}),T.exports={set:m,clear:d}},46438:function(T,r,n){"use strict";var e=n(67250);T.exports=e(1 .valueOf)},13912:function(T,r,n){"use strict";var e=n(61365),a=Math.max,t=Math.min;T.exports=function(o,f){var b=e(o);return b<0?a(b+f,0):t(b,f)}},61484:function(T,r,n){"use strict";var e=n(24843),a=TypeError;T.exports=function(t){var o=e(t,"number");if(typeof o=="number")throw new a("Can't convert number to bigint");return BigInt(o)}},43806:function(T,r,n){"use strict";var e=n(61365),a=n(10188),t=RangeError;T.exports=function(o){if(o===void 0)return 0;var f=e(o),b=a(f);if(f!==b)throw new t("Wrong length or index");return b}},57591:function(T,r,n){"use strict";var e=n(37457),a=n(16952);T.exports=function(t){return e(a(t))}},61365:function(T,r,n){"use strict";var e=n(21119);T.exports=function(a){var t=+a;return t!==t||t===0?0:e(t)}},10188:function(T,r,n){"use strict";var e=n(61365),a=Math.min;T.exports=function(t){var o=e(t);return o>0?a(o,9007199254740991):0}},46771:function(T,r,n){"use strict";var e=n(16952),a=Object;T.exports=function(t){return a(e(t))}},56043:function(T,r,n){"use strict";var e=n(16140),a=RangeError;T.exports=function(t,o){var f=e(t);if(f%o)throw new a("Wrong offset");return f}},16140:function(T,r,n){"use strict";var e=n(61365),a=RangeError;T.exports=function(t){var o=e(t);if(o<0)throw new a("The argument can't be less than 0");return o}},24843:function(T,r,n){"use strict";var e=n(91495),a=n(77568),t=n(71399),o=n(78060),f=n(13396),b=n(24697),y=TypeError,S=b("toPrimitive");T.exports=function(k,h){if(!a(k)||t(k))return k;var c=o(k,S),i;if(c){if(h===void 0&&(h="default"),i=e(c,k,h),!a(i)||t(i))return i;throw new y("Can't convert object to primitive value")}return h===void 0&&(h="number"),f(k,h)}},767:function(T,r,n){"use strict";var e=n(24843),a=n(71399);T.exports=function(t){var o=e(t,"string");return a(o)?o:o+""}},2650:function(T,r,n){"use strict";var e=n(24697),a=e("toStringTag"),t={};t[a]="z",T.exports=String(t)==="[object z]"},12605:function(T,r,n){"use strict";var e=n(2281),a=String;T.exports=function(t){if(e(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(t)}},15409:function(T){"use strict";var r=Math.round;T.exports=function(n){var e=r(n);return e<0?0:e>255?255:e&255}},89393:function(T){"use strict";var r=String;T.exports=function(n){try{return r(n)}catch(e){return"Object"}}},80185:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(91495),o=n(58310),f=n(86563),b=n(4246),y=n(37336),S=n(60077),k=n(87458),h=n(37909),c=n(5841),i=n(10188),m=n(43806),d=n(56043),u=n(15409),s=n(767),l=n(45299),v=n(2281),N=n(77568),C=n(71399),p=n(80674),g=n(21287),V=n(76649),B=n(37310).f,I=n(3805),L=n(22603).forEach,w=n(58491),x=n(73936),A=n(74595),E=n(27193),P=n(78008),j=n(5419),M=n(5781),R=j.get,D=j.set,W=j.enforce,_=A.f,U=E.f,K=a.RangeError,G=y.ArrayBuffer,$=G.prototype,Q=y.DataView,J=b.NATIVE_ARRAY_BUFFER_VIEWS,ie=b.TYPED_ARRAY_TAG,ne=b.TypedArray,se=b.TypedArrayPrototype,Ce=b.isTypedArray,Se="BYTES_PER_ELEMENT",ye="Wrong length",he=function(te,be){x(te,be,{configurable:!0,get:function(){function pe(){return R(this)[be]}return pe}()})},oe=function(te){var be;return g($,te)||(be=v(te))==="ArrayBuffer"||be==="SharedArrayBuffer"},ce=function(te,be){return Ce(te)&&!C(be)&&be in te&&c(+be)&&be>=0},ee=function(){function me(te,be){return be=s(be),ce(te,be)?k(2,te[be]):U(te,be)}return me}(),fe=function(){function me(te,be,pe){return be=s(be),ce(te,be)&&N(pe)&&l(pe,"value")&&!l(pe,"get")&&!l(pe,"set")&&!pe.configurable&&(!l(pe,"writable")||pe.writable)&&(!l(pe,"enumerable")||pe.enumerable)?(te[be]=pe.value,te):_(te,be,pe)}return me}();o?(J||(E.f=ee,A.f=fe,he(se,"buffer"),he(se,"byteOffset"),he(se,"byteLength"),he(se,"length")),e({target:"Object",stat:!0,forced:!J},{getOwnPropertyDescriptor:ee,defineProperty:fe}),T.exports=function(me,te,be){var pe=me.match(/\d+/)[0]/8,ve=me+(be?"Clamped":"")+"Array",Be="get"+me,ge="set"+me,Le=a[ve],we=Le,xe=we&&we.prototype,Re={},ze=function(de,ke){var Me=R(de);return Me.view[Be](ke*pe+Me.byteOffset,!0)},Ve=function(de,ke,Me){var je=R(de);je.view[ge](ke*pe+je.byteOffset,be?u(Me):Me,!0)},re=function(de,ke){_(de,ke,{get:function(){function Me(){return ze(this,ke)}return Me}(),set:function(){function Me(je){return Ve(this,ke,je)}return Me}(),enumerable:!0})};J?f&&(we=te(function(Ne,de,ke,Me){return S(Ne,xe),M(function(){return N(de)?oe(de)?Me!==void 0?new Le(de,d(ke,pe),Me):ke!==void 0?new Le(de,d(ke,pe)):new Le(de):Ce(de)?P(we,de):t(I,we,de):new Le(m(de))}(),Ne,we)}),V&&V(we,ne),L(B(Le),function(Ne){Ne in we||h(we,Ne,Le[Ne])}),we.prototype=xe):(we=te(function(Ne,de,ke,Me){S(Ne,xe);var je=0,Fe=0,He,_e,Ue;if(!N(de))Ue=m(de),_e=Ue*pe,He=new G(_e);else if(oe(de)){He=de,Fe=d(ke,pe);var Xe=de.byteLength;if(Me===void 0){if(Xe%pe)throw new K(ye);if(_e=Xe-Fe,_e<0)throw new K(ye)}else if(_e=i(Me)*pe,_e+Fe>Xe)throw new K(ye);Ue=_e/pe}else return Ce(de)?P(we,de):t(I,we,de);for(D(Ne,{buffer:He,byteOffset:Fe,byteLength:_e,length:Ue,view:new Q(He)});je1?arguments[1]:void 0,v=l!==void 0,N=y(u),C,p,g,V,B,I,L,w;if(N&&!S(N))for(L=b(u,N),w=L.next,u=[];!(I=a(w,L)).done;)u.push(I.value);for(v&&s>2&&(l=e(l,arguments[2])),p=f(u),g=new(h(d))(p),V=k(g),C=0;p>C;C++)B=v?l(u[C],C):u[C],g[C]=V?c(B):+B;return g}return i}()},31082:function(T,r,n){"use strict";var e=n(4246),a=n(28987),t=e.aTypedArrayConstructor,o=e.getTypedArrayConstructor;T.exports=function(f){return t(a(f,o(f)))}},16738:function(T,r,n){"use strict";var e=n(67250),a=0,t=Math.random(),o=e(1 .toString);T.exports=function(f){return"Symbol("+(f===void 0?"":f)+")_"+o(++a+t,36)}},1062:function(T,r,n){"use strict";var e=n(52357);T.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},80944:function(T,r,n){"use strict";var e=n(58310),a=n(40033);T.exports=e&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},24986:function(T){"use strict";var r=TypeError;T.exports=function(n,e){if(n=51||!a(function(){var l=[];return l[m]=!1,l.concat()[0]!==l}),u=function(v){if(!o(v))return!1;var N=v[m];return N!==void 0?!!N:t(v)},s=!d||!h("concat");e({target:"Array",proto:!0,arity:1,forced:s},{concat:function(){function l(v){var N=f(this),C=k(N,0),p=0,g,V,B,I,L;for(g=-1,B=arguments.length;g1?arguments[1]:void 0)}return f}()})},68933:function(T,r,n){"use strict";var e=n(63964),a=n(88471),t=n(80575);e({target:"Array",proto:!0},{fill:a}),t("fill")},47830:function(T,r,n){"use strict";var e=n(63964),a=n(22603).filter,t=n(44091),o=t("filter");e({target:"Array",proto:!0,forced:!o},{filter:function(){function f(b){return a(this,b,arguments.length>1?arguments[1]:void 0)}return f}()})},64094:function(T,r,n){"use strict";var e=n(63964),a=n(22603).findIndex,t=n(80575),o="findIndex",f=!0;o in[]&&Array(1)[o](function(){f=!1}),e({target:"Array",proto:!0,forced:f},{findIndex:function(){function b(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return b}()}),t(o)},13455:function(T,r,n){"use strict";var e=n(63964),a=n(22603).find,t=n(80575),o="find",f=!0;o in[]&&Array(1)[o](function(){f=!1}),e({target:"Array",proto:!0,forced:f},{find:function(){function b(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return b}()}),t(o)},32384:function(T,r,n){"use strict";var e=n(63964),a=n(65561),t=n(10320),o=n(46771),f=n(24760),b=n(57823);e({target:"Array",proto:!0},{flatMap:function(){function y(S){var k=o(this),h=f(k),c;return t(S),c=b(k,0),c.length=a(c,k,k,h,0,1,S,arguments.length>1?arguments[1]:void 0),c}return y}()})},61915:function(T,r,n){"use strict";var e=n(63964),a=n(65561),t=n(46771),o=n(24760),f=n(61365),b=n(57823);e({target:"Array",proto:!0},{flat:function(){function y(){var S=arguments.length?arguments[0]:void 0,k=t(this),h=o(k),c=b(k,0);return c.length=a(c,k,k,h,0,S===void 0?1:f(S)),c}return y}()})},25579:function(T,r,n){"use strict";var e=n(63964),a=n(35601);e({target:"Array",proto:!0,forced:[].forEach!==a},{forEach:a})},63532:function(T,r,n){"use strict";var e=n(63964),a=n(73174),t=n(92490),o=!t(function(f){Array.from(f)});e({target:"Array",stat:!0,forced:o},{from:a})},33425:function(T,r,n){"use strict";var e=n(63964),a=n(14211).includes,t=n(40033),o=n(80575),f=t(function(){return!Array(1).includes()});e({target:"Array",proto:!0,forced:f},{includes:function(){function b(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return b}()}),o("includes")},43894:function(T,r,n){"use strict";var e=n(63964),a=n(71138),t=n(14211).indexOf,o=n(55528),f=a([].indexOf),b=!!f&&1/f([1],1,-0)<0,y=b||!o("indexOf");e({target:"Array",proto:!0,forced:y},{indexOf:function(){function S(k){var h=arguments.length>1?arguments[1]:void 0;return b?f(this,k,h)||0:t(this,k,h)}return S}()})},99636:function(T,r,n){"use strict";var e=n(63964),a=n(37386);e({target:"Array",stat:!0},{isArray:a})},34570:function(T,r,n){"use strict";var e=n(57591),a=n(80575),t=n(83967),o=n(5419),f=n(74595).f,b=n(65574),y=n(5959),S=n(4493),k=n(58310),h="Array Iterator",c=o.set,i=o.getterFor(h);T.exports=b(Array,"Array",function(d,u){c(this,{type:h,target:e(d),index:0,kind:u})},function(){var d=i(this),u=d.target,s=d.index++;if(!u||s>=u.length)return d.target=void 0,y(void 0,!0);switch(d.kind){case"keys":return y(s,!1);case"values":return y(u[s],!1)}return y([s,u[s]],!1)},"values");var m=t.Arguments=t.Array;if(a("keys"),a("values"),a("entries"),!S&&k&&m.name!=="values")try{f(m,"name",{value:"values"})}catch(d){}},94432:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(37457),o=n(57591),f=n(55528),b=a([].join),y=t!==Object,S=y||!f("join",",");e({target:"Array",proto:!0,forced:S},{join:function(){function k(h){return b(o(this),h===void 0?",":h)}return k}()})},24683:function(T,r,n){"use strict";var e=n(63964),a=n(1325);e({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},69984:function(T,r,n){"use strict";var e=n(63964),a=n(22603).map,t=n(44091),o=t("map");e({target:"Array",proto:!0,forced:!o},{map:function(){function f(b){return a(this,b,arguments.length>1?arguments[1]:void 0)}return f}()})},32089:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=n(1031),o=n(60102),f=Array,b=a(function(){function y(){}return!(f.of.call(y)instanceof y)});e({target:"Array",stat:!0,forced:b},{of:function(){function y(){for(var S=0,k=arguments.length,h=new(t(this)?this:f)(k);k>S;)o(h,S,arguments[S++]);return h.length=k,h}return y}()})},29645:function(T,r,n){"use strict";var e=n(63964),a=n(56844).right,t=n(55528),o=n(5026),f=n(81702),b=!f&&o>79&&o<83,y=b||!t("reduceRight");e({target:"Array",proto:!0,forced:y},{reduceRight:function(){function S(k){return a(this,k,arguments.length,arguments.length>1?arguments[1]:void 0)}return S}()})},60206:function(T,r,n){"use strict";var e=n(63964),a=n(56844).left,t=n(55528),o=n(5026),f=n(81702),b=!f&&o>79&&o<83,y=b||!t("reduce");e({target:"Array",proto:!0,forced:y},{reduce:function(){function S(k){var h=arguments.length;return a(this,k,h,h>1?arguments[1]:void 0)}return S}()})},4788:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(37386),o=a([].reverse),f=[1,2];e({target:"Array",proto:!0,forced:String(f)===String(f.reverse())},{reverse:function(){function b(){return t(this)&&(this.length=this.length),o(this)}return b}()})},58672:function(T,r,n){"use strict";var e=n(63964),a=n(37386),t=n(1031),o=n(77568),f=n(13912),b=n(24760),y=n(57591),S=n(60102),k=n(24697),h=n(44091),c=n(54602),i=h("slice"),m=k("species"),d=Array,u=Math.max;e({target:"Array",proto:!0,forced:!i},{slice:function(){function s(l,v){var N=y(this),C=b(N),p=f(l,C),g=f(v===void 0?C:v,C),V,B,I;if(a(N)&&(V=N.constructor,t(V)&&(V===d||a(V.prototype))?V=void 0:o(V)&&(V=V[m],V===null&&(V=void 0)),V===d||V===void 0))return c(N,p,g);for(B=new(V===void 0?d:V)(u(g-p,0)),I=0;p1?arguments[1]:void 0)}return f}()})},48968:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(10320),o=n(46771),f=n(24760),b=n(95108),y=n(12605),S=n(40033),k=n(90274),h=n(55528),c=n(652),i=n(19228),m=n(5026),d=n(9342),u=[],s=a(u.sort),l=a(u.push),v=S(function(){u.sort(void 0)}),N=S(function(){u.sort(null)}),C=h("sort"),p=!S(function(){if(m)return m<70;if(!(c&&c>3)){if(i)return!0;if(d)return d<603;var B="",I,L,w,x;for(I=65;I<76;I++){switch(L=String.fromCharCode(I),I){case 66:case 69:case 70:case 72:w=3;break;case 68:case 71:w=4;break;default:w=2}for(x=0;x<47;x++)u.push({k:L+x,v:w})}for(u.sort(function(A,E){return E.v-A.v}),x=0;xy(w)?1:-1}};e({target:"Array",proto:!0,forced:g},{sort:function(){function B(I){I!==void 0&&t(I);var L=o(this);if(p)return I===void 0?s(L):s(L,I);var w=[],x=f(L),A,E;for(E=0;EN-V+g;I--)h(v,I-1)}else if(g>V)for(I=N-V;I>C;I--)L=I+V-1,w=I+g-1,L in v?v[w]=v[L]:h(v,w);for(I=0;I9490626562425156e-8?o(h)+b:a(h-1+f(h-1)*f(h+1))}return S}()})},59660:function(T,r,n){"use strict";var e=n(63964),a=Math.asinh,t=Math.log,o=Math.sqrt;function f(y){var S=+y;return!isFinite(S)||S===0?S:S<0?-f(-S):t(S+o(S*S+1))}var b=!(a&&1/a(0)>0);e({target:"Math",stat:!0,forced:b},{asinh:f})},15383:function(T,r,n){"use strict";var e=n(63964),a=Math.atanh,t=Math.log,o=!(a&&1/a(-0)<0);e({target:"Math",stat:!0,forced:o},{atanh:function(){function f(b){var y=+b;return y===0?y:t((1+y)/(1-y))/2}return f}()})},92866:function(T,r,n){"use strict";var e=n(63964),a=n(22172),t=Math.abs,o=Math.pow;e({target:"Math",stat:!0},{cbrt:function(){function f(b){var y=+b;return a(y)*o(t(y),.3333333333333333)}return f}()})},86107:function(T,r,n){"use strict";var e=n(63964),a=Math.floor,t=Math.log,o=Math.LOG2E;e({target:"Math",stat:!0},{clz32:function(){function f(b){var y=b>>>0;return y?31-a(t(y+.5)*o):32}return f}()})},29248:function(T,r,n){"use strict";var e=n(63964),a=n(82040),t=Math.cosh,o=Math.abs,f=Math.E,b=!t||t(710)===1/0;e({target:"Math",stat:!0,forced:b},{cosh:function(){function y(S){var k=a(o(S)-1)+1;return(k+1/(k*f*f))*(f/2)}return y}()})},52540:function(T,r,n){"use strict";var e=n(63964),a=n(82040);e({target:"Math",stat:!0,forced:a!==Math.expm1},{expm1:a})},79007:function(T,r,n){"use strict";var e=n(63964),a=n(95867);e({target:"Math",stat:!0},{fround:a})},77199:function(T,r,n){"use strict";var e=n(63964),a=Math.hypot,t=Math.abs,o=Math.sqrt,f=!!a&&a(1/0,NaN)!==1/0;e({target:"Math",stat:!0,arity:2,forced:f},{hypot:function(){function b(y,S){for(var k=0,h=0,c=arguments.length,i=0,m,d;h0?(d=m/i,k+=d*d):k+=m;return i===1/0?1/0:i*o(k)}return b}()})},6522:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=Math.imul,o=a(function(){return t(4294967295,5)!==-5||t.length!==2});e({target:"Math",stat:!0,forced:o},{imul:function(){function f(b,y){var S=65535,k=+b,h=+y,c=S&k,i=S&h;return 0|c*i+((S&k>>>16)*i+c*(S&h>>>16)<<16>>>0)}return f}()})},95542:function(T,r,n){"use strict";var e=n(63964),a=n(75002);e({target:"Math",stat:!0},{log10:a})},2966:function(T,r,n){"use strict";var e=n(63964),a=n(90874);e({target:"Math",stat:!0},{log1p:a})},20997:function(T,r,n){"use strict";var e=n(63964),a=Math.log,t=Math.LN2;e({target:"Math",stat:!0},{log2:function(){function o(f){return a(f)/t}return o}()})},57400:function(T,r,n){"use strict";var e=n(63964),a=n(22172);e({target:"Math",stat:!0},{sign:a})},45571:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=n(82040),o=Math.abs,f=Math.exp,b=Math.E,y=a(function(){return Math.sinh(-2e-17)!==-2e-17});e({target:"Math",stat:!0,forced:y},{sinh:function(){function S(k){var h=+k;return o(h)<1?(t(h)-t(-h))/2:(f(h-1)-f(-h-1))*(b/2)}return S}()})},54800:function(T,r,n){"use strict";var e=n(63964),a=n(82040),t=Math.exp;e({target:"Math",stat:!0},{tanh:function(){function o(f){var b=+f,y=a(b),S=a(-b);return y===1/0?1:S===1/0?-1:(y-S)/(t(b)+t(-b))}return o}()})},15709:function(T,r,n){"use strict";var e=n(84925);e(Math,"Math",!0)},76059:function(T,r,n){"use strict";var e=n(63964),a=n(21119);e({target:"Math",stat:!0},{trunc:a})},96614:function(T,r,n){"use strict";var e=n(63964),a=n(4493),t=n(58310),o=n(74685),f=n(61765),b=n(67250),y=n(41314),S=n(45299),k=n(5781),h=n(21287),c=n(71399),i=n(24843),m=n(40033),d=n(37310).f,u=n(27193).f,s=n(74595).f,l=n(46438),v=n(92648).trim,N="Number",C=o[N],p=f[N],g=C.prototype,V=o.TypeError,B=b("".slice),I=b("".charCodeAt),L=function(M){var R=i(M,"number");return typeof R=="bigint"?R:w(R)},w=function(M){var R=i(M,"number"),D,W,_,U,K,G,$,Q;if(c(R))throw new V("Cannot convert a Symbol value to a number");if(typeof R=="string"&&R.length>2){if(R=v(R),D=I(R,0),D===43||D===45){if(W=I(R,2),W===88||W===120)return NaN}else if(D===48){switch(I(R,1)){case 66:case 98:_=2,U=49;break;case 79:case 111:_=8,U=55;break;default:return+R}for(K=B(R,2),G=K.length,$=0;$U)return NaN;return parseInt(K,_)}}return+R},x=y(N,!C(" 0o1")||!C("0b1")||C("+0x1")),A=function(M){return h(g,M)&&m(function(){l(M)})},E=function(){function j(M){var R=arguments.length<1?0:C(L(M));return A(this)?k(Object(R),this,E):R}return j}();E.prototype=g,x&&!a&&(g.constructor=E),e({global:!0,constructor:!0,wrap:!0,forced:x},{Number:E});var P=function(M,R){for(var D=t?d(R):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),W=0,_;D.length>W;W++)S(R,_=D[W])&&!S(M,_)&&s(M,_,u(R,_))};a&&p&&P(f[N],p),(x||a)&&P(f[N],C)},324:function(T,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},90426:function(T,r,n){"use strict";var e=n(63964),a=n(3294);e({target:"Number",stat:!0},{isFinite:a})},95443:function(T,r,n){"use strict";var e=n(63964),a=n(5841);e({target:"Number",stat:!0},{isInteger:a})},87968:function(T,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0},{isNaN:function(){function a(t){return t!==t}return a}()})},55007:function(T,r,n){"use strict";var e=n(63964),a=n(5841),t=Math.abs;e({target:"Number",stat:!0},{isSafeInteger:function(){function o(f){return a(f)&&t(f)<=9007199254740991}return o}()})},55323:function(T,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},13521:function(T,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},5006:function(T,r,n){"use strict";var e=n(63964),a=n(28506);e({target:"Number",stat:!0,forced:Number.parseFloat!==a},{parseFloat:a})},99009:function(T,r,n){"use strict";var e=n(63964),a=n(13693);e({target:"Number",stat:!0,forced:Number.parseInt!==a},{parseInt:a})},85770:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(61365),o=n(46438),f=n(62443),b=n(40033),y=RangeError,S=String,k=Math.floor,h=a(f),c=a("".slice),i=a(1 .toFixed),m=function N(C,p,g){return p===0?g:p%2===1?N(C,p-1,g*C):N(C*C,p/2,g)},d=function(C){for(var p=0,g=C;g>=4096;)p+=12,g/=4096;for(;g>=2;)p+=1,g/=2;return p},u=function(C,p,g){for(var V=-1,B=g;++V<6;)B+=p*C[V],C[V]=B%1e7,B=k(B/1e7)},s=function(C,p){for(var g=6,V=0;--g>=0;)V+=C[g],C[g]=k(V/p),V=V%p*1e7},l=function(C){for(var p=6,g="";--p>=0;)if(g!==""||p===0||C[p]!==0){var V=S(C[p]);g=g===""?V:g+h("0",7-V.length)+V}return g},v=b(function(){return i(8e-5,3)!=="0.000"||i(.9,0)!=="1"||i(1.255,2)!=="1.25"||i(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!b(function(){i({})});e({target:"Number",proto:!0,forced:v},{toFixed:function(){function N(C){var p=o(this),g=t(C),V=[0,0,0,0,0,0],B="",I="0",L,w,x,A;if(g<0||g>20)throw new y("Incorrect fraction digits");if(p!==p)return"NaN";if(p<=-1e21||p>=1e21)return S(p);if(p<0&&(B="-",p=-p),p>1e-21)if(L=d(p*m(2,69,1))-69,w=L<0?p*m(2,-L,1):p/m(2,L,1),w*=4503599627370496,L=52-L,L>0){for(u(V,0,w),x=g;x>=7;)u(V,1e7,0),x-=7;for(u(V,m(10,x,1),0),x=L-1;x>=23;)s(V,8388608),x-=23;s(V,1<0?(A=I.length,I=B+(A<=g?"0."+h("0",g-A)+I:c(I,0,A-g)+"."+c(I,A-g))):I=B+I,I}return N}()})},23532:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(40033),o=n(46438),f=a(1 .toPrecision),b=t(function(){return f(1,void 0)!=="1"})||!t(function(){f({})});e({target:"Number",proto:!0,forced:b},{toPrecision:function(){function y(S){return S===void 0?f(o(this)):f(o(this),S)}return y}()})},87119:function(T,r,n){"use strict";var e=n(63964),a=n(41143);e({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},78618:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(80674);e({target:"Object",stat:!0,sham:!a},{create:t})},27129:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(10320),f=n(46771),b=n(74595);a&&e({target:"Object",proto:!0,forced:t},{__defineGetter__:function(){function y(S,k){b.f(f(this),S,{get:o(k),enumerable:!0,configurable:!0})}return y}()})},31943:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(24239).f;e({target:"Object",stat:!0,forced:Object.defineProperties!==t,sham:!a},{defineProperties:t})},3579:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(74595).f;e({target:"Object",stat:!0,forced:Object.defineProperty!==t,sham:!a},{defineProperty:t})},97397:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(10320),f=n(46771),b=n(74595);a&&e({target:"Object",proto:!0,forced:t},{__defineSetter__:function(){function y(S,k){b.f(f(this),S,{set:o(k),enumerable:!0,configurable:!0})}return y}()})},85028:function(T,r,n){"use strict";var e=n(63964),a=n(70915).entries;e({target:"Object",stat:!0},{entries:function(){function t(o){return a(o)}return t}()})},8225:function(T,r,n){"use strict";var e=n(63964),a=n(50730),t=n(40033),o=n(77568),f=n(81969).onFreeze,b=Object.freeze,y=t(function(){b(1)});e({target:"Object",stat:!0,forced:y,sham:!a},{freeze:function(){function S(k){return b&&o(k)?b(f(k)):k}return S}()})},43331:function(T,r,n){"use strict";var e=n(63964),a=n(49450),t=n(60102);e({target:"Object",stat:!0},{fromEntries:function(){function o(f){var b={};return a(f,function(y,S){t(b,y,S)},{AS_ENTRIES:!0}),b}return o}()})},62289:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=n(57591),o=n(27193).f,f=n(58310),b=!f||a(function(){o(1)});e({target:"Object",stat:!0,forced:b,sham:!f},{getOwnPropertyDescriptor:function(){function y(S,k){return o(t(S),k)}return y}()})},56196:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(97921),o=n(57591),f=n(27193),b=n(60102);e({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(){function y(S){for(var k=o(S),h=f.f,c=t(k),i={},m=0,d,u;c.length>m;)u=h(k,d=c[m++]),u!==void 0&&b(i,d,u);return i}return y}()})},2950:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=n(81644).f,o=a(function(){return!Object.getOwnPropertyNames(1)});e({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:t})},28603:function(T,r,n){"use strict";var e=n(63964),a=n(52357),t=n(40033),o=n(89235),f=n(46771),b=!a||t(function(){o.f(1)});e({target:"Object",stat:!0,forced:b},{getOwnPropertySymbols:function(){function y(S){var k=o.f;return k?k(f(S)):[]}return y}()})},44205:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=n(46771),o=n(36917),f=n(9225),b=a(function(){o(1)});e({target:"Object",stat:!0,forced:b,sham:!f},{getPrototypeOf:function(){function y(S){return o(t(S))}return y}()})},83186:function(T,r,n){"use strict";var e=n(63964),a=n(81834);e({target:"Object",stat:!0,forced:Object.isExtensible!==a},{isExtensible:a})},76065:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=n(77568),o=n(7462),f=n(3782),b=Object.isFrozen,y=f||a(function(){b(1)});e({target:"Object",stat:!0,forced:y},{isFrozen:function(){function S(k){return!t(k)||f&&o(k)==="ArrayBuffer"?!0:b?b(k):!1}return S}()})},13411:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=n(77568),o=n(7462),f=n(3782),b=Object.isSealed,y=f||a(function(){b(1)});e({target:"Object",stat:!0,forced:y},{isSealed:function(){function S(k){return!t(k)||f&&o(k)==="ArrayBuffer"?!0:b?b(k):!1}return S}()})},76882:function(T,r,n){"use strict";var e=n(63964),a=n(5700);e({target:"Object",stat:!0},{is:a})},26634:function(T,r,n){"use strict";var e=n(63964),a=n(46771),t=n(18450),o=n(40033),f=o(function(){t(1)});e({target:"Object",stat:!0,forced:f},{keys:function(){function b(y){return t(a(y))}return b}()})},53118:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(46771),f=n(767),b=n(36917),y=n(27193).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupGetter__:function(){function S(k){var h=o(this),c=f(k),i;do if(i=y(h,c))return i.get;while(h=b(h))}return S}()})},42514:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(46771),f=n(767),b=n(36917),y=n(27193).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupSetter__:function(){function S(k){var h=o(this),c=f(k),i;do if(i=y(h,c))return i.set;while(h=b(h))}return S}()})},84353:function(T,r,n){"use strict";var e=n(63964),a=n(77568),t=n(81969).onFreeze,o=n(50730),f=n(40033),b=Object.preventExtensions,y=f(function(){b(1)});e({target:"Object",stat:!0,forced:y,sham:!o},{preventExtensions:function(){function S(k){return b&&a(k)?b(t(k)):k}return S}()})},62987:function(T,r,n){"use strict";var e=n(63964),a=n(77568),t=n(81969).onFreeze,o=n(50730),f=n(40033),b=Object.seal,y=f(function(){b(1)});e({target:"Object",stat:!0,forced:y,sham:!o},{seal:function(){function S(k){return b&&a(k)?b(t(k)):k}return S}()})},48993:function(T,r,n){"use strict";var e=n(63964),a=n(76649);e({target:"Object",stat:!0},{setPrototypeOf:a})},52917:function(T,r,n){"use strict";var e=n(2650),a=n(55938),t=n(2509);e||a(Object.prototype,"toString",t,{unsafe:!0})},4972:function(T,r,n){"use strict";var e=n(63964),a=n(70915).values;e({target:"Object",stat:!0},{values:function(){function t(o){return a(o)}return t}()})},28913:function(T,r,n){"use strict";var e=n(63964),a=n(28506);e({global:!0,forced:parseFloat!==a},{parseFloat:a})},36382:function(T,r,n){"use strict";var e=n(63964),a=n(13693);e({global:!0,forced:parseInt!==a},{parseInt:a})},48865:function(T,r,n){"use strict";var e=n(63964),a=n(91495),t=n(10320),o=n(81837),f=n(10729),b=n(49450),y=n(48199);e({target:"Promise",stat:!0,forced:y},{all:function(){function S(k){var h=this,c=o.f(h),i=c.resolve,m=c.reject,d=f(function(){var u=t(h.resolve),s=[],l=0,v=1;b(k,function(N){var C=l++,p=!1;v++,a(u,h,N).then(function(g){p||(p=!0,s[C]=g,--v||i(s))},m)}),--v||i(s)});return d.error&&m(d.value),c.promise}return S}()})},70641:function(T,r,n){"use strict";var e=n(63964),a=n(4493),t=n(74854).CONSTRUCTOR,o=n(67512),f=n(4009),b=n(55747),y=n(55938),S=o&&o.prototype;if(e({target:"Promise",proto:!0,forced:t,real:!0},{catch:function(){function h(c){return this.then(void 0,c)}return h}()}),!a&&b(o)){var k=f("Promise").prototype.catch;S.catch!==k&&y(S,"catch",k,{unsafe:!0})}},75946:function(T,r,n){"use strict";var e=n(63964),a=n(4493),t=n(81702),o=n(74685),f=n(91495),b=n(55938),y=n(76649),S=n(84925),k=n(58491),h=n(10320),c=n(55747),i=n(77568),m=n(60077),d=n(28987),u=n(60375).set,s=n(37713),l=n(72259),v=n(10729),N=n(9547),C=n(5419),p=n(67512),g=n(74854),V=n(81837),B="Promise",I=g.CONSTRUCTOR,L=g.REJECTION_EVENT,w=g.SUBCLASSING,x=C.getterFor(B),A=C.set,E=p&&p.prototype,P=p,j=E,M=o.TypeError,R=o.document,D=o.process,W=V.f,_=W,U=!!(R&&R.createEvent&&o.dispatchEvent),K="unhandledrejection",G="rejectionhandled",$=0,Q=1,J=2,ie=1,ne=2,se,Ce,Se,ye,he=function(ge){var Le;return i(ge)&&c(Le=ge.then)?Le:!1},oe=function(ge,Le){var we=Le.value,xe=Le.state===Q,Re=xe?ge.ok:ge.fail,ze=ge.resolve,Ve=ge.reject,re=ge.domain,le,Ne,de;try{Re?(xe||(Le.rejection===ne&&te(Le),Le.rejection=ie),Re===!0?le=we:(re&&re.enter(),le=Re(we),re&&(re.exit(),de=!0)),le===ge.promise?Ve(new M("Promise-chain cycle")):(Ne=he(le))?f(Ne,le,ze,Ve):ze(le)):Ve(we)}catch(ke){re&&!de&&re.exit(),Ve(ke)}},ce=function(ge,Le){ge.notified||(ge.notified=!0,s(function(){for(var we=ge.reactions,xe;xe=we.get();)oe(xe,ge);ge.notified=!1,Le&&!ge.rejection&&fe(ge)}))},ee=function(ge,Le,we){var xe,Re;U?(xe=R.createEvent("Event"),xe.promise=Le,xe.reason=we,xe.initEvent(ge,!1,!0),o.dispatchEvent(xe)):xe={promise:Le,reason:we},!L&&(Re=o["on"+ge])?Re(xe):ge===K&&l("Unhandled promise rejection",we)},fe=function(ge){f(u,o,function(){var Le=ge.facade,we=ge.value,xe=me(ge),Re;if(xe&&(Re=v(function(){t?D.emit("unhandledRejection",we,Le):ee(K,Le,we)}),ge.rejection=t||me(ge)?ne:ie,Re.error))throw Re.value})},me=function(ge){return ge.rejection!==ie&&!ge.parent},te=function(ge){f(u,o,function(){var Le=ge.facade;t?D.emit("rejectionHandled",Le):ee(G,Le,ge.value)})},be=function(ge,Le,we){return function(xe){ge(Le,xe,we)}},pe=function(ge,Le,we){ge.done||(ge.done=!0,we&&(ge=we),ge.value=Le,ge.state=J,ce(ge,!0))},ve=function Be(ge,Le,we){if(!ge.done){ge.done=!0,we&&(ge=we);try{if(ge.facade===Le)throw new M("Promise can't be resolved itself");var xe=he(Le);xe?s(function(){var Re={done:!1};try{f(xe,Le,be(Be,Re,ge),be(pe,Re,ge))}catch(ze){pe(Re,ze,ge)}}):(ge.value=Le,ge.state=Q,ce(ge,!1))}catch(Re){pe({done:!1},Re,ge)}}};if(I&&(P=function(){function Be(ge){m(this,j),h(ge),f(se,this);var Le=x(this);try{ge(be(ve,Le),be(pe,Le))}catch(we){pe(Le,we)}}return Be}(),j=P.prototype,se=function(){function Be(ge){A(this,{type:B,done:!1,notified:!1,parent:!1,reactions:new N,rejection:!1,state:$,value:void 0})}return Be}(),se.prototype=b(j,"then",function(){function Be(ge,Le){var we=x(this),xe=W(d(this,P));return we.parent=!0,xe.ok=c(ge)?ge:!0,xe.fail=c(Le)&&Le,xe.domain=t?D.domain:void 0,we.state===$?we.reactions.add(xe):s(function(){oe(xe,we)}),xe.promise}return Be}()),Ce=function(){var ge=new se,Le=x(ge);this.promise=ge,this.resolve=be(ve,Le),this.reject=be(pe,Le)},V.f=W=function(ge){return ge===P||ge===Se?new Ce(ge):_(ge)},!a&&c(p)&&E!==Object.prototype)){ye=E.then,w||b(E,"then",function(){function Be(ge,Le){var we=this;return new P(function(xe,Re){f(ye,we,xe,Re)}).then(ge,Le)}return Be}(),{unsafe:!0});try{delete E.constructor}catch(Be){}y&&y(E,j)}e({global:!0,constructor:!0,wrap:!0,forced:I},{Promise:P}),S(P,B,!1,!0),k(B)},69861:function(T,r,n){"use strict";var e=n(63964),a=n(4493),t=n(67512),o=n(40033),f=n(4009),b=n(55747),y=n(28987),S=n(66628),k=n(55938),h=t&&t.prototype,c=!!t&&o(function(){h.finally.call({then:function(){function m(){}return m}()},function(){})});if(e({target:"Promise",proto:!0,real:!0,forced:c},{finally:function(){function m(d){var u=y(this,f("Promise")),s=b(d);return this.then(s?function(l){return S(u,d()).then(function(){return l})}:d,s?function(l){return S(u,d()).then(function(){throw l})}:d)}return m}()}),!a&&b(t)){var i=f("Promise").prototype.finally;h.finally!==i&&k(h,"finally",i,{unsafe:!0})}},53092:function(T,r,n){"use strict";n(75946),n(48865),n(70641),n(16937),n(41719),n(59321)},16937:function(T,r,n){"use strict";var e=n(63964),a=n(91495),t=n(10320),o=n(81837),f=n(10729),b=n(49450),y=n(48199);e({target:"Promise",stat:!0,forced:y},{race:function(){function S(k){var h=this,c=o.f(h),i=c.reject,m=f(function(){var d=t(h.resolve);b(k,function(u){a(d,h,u).then(c.resolve,i)})});return m.error&&i(m.value),c.promise}return S}()})},41719:function(T,r,n){"use strict";var e=n(63964),a=n(81837),t=n(74854).CONSTRUCTOR;e({target:"Promise",stat:!0,forced:t},{reject:function(){function o(f){var b=a.f(this),y=b.reject;return y(f),b.promise}return o}()})},59321:function(T,r,n){"use strict";var e=n(63964),a=n(4009),t=n(4493),o=n(67512),f=n(74854).CONSTRUCTOR,b=n(66628),y=a("Promise"),S=t&&!f;e({target:"Promise",stat:!0,forced:t||f},{resolve:function(){function k(h){return b(S&&this===y?o:this,h)}return k}()})},29674:function(T,r,n){"use strict";var e=n(63964),a=n(61267),t=n(10320),o=n(30365),f=n(40033),b=!f(function(){Reflect.apply(function(){})});e({target:"Reflect",stat:!0,forced:b},{apply:function(){function y(S,k,h){return a(t(S),k,o(h))}return y}()})},81543:function(T,r,n){"use strict";var e=n(63964),a=n(4009),t=n(61267),o=n(66284),f=n(32606),b=n(30365),y=n(77568),S=n(80674),k=n(40033),h=a("Reflect","construct"),c=Object.prototype,i=[].push,m=k(function(){function s(){}return!(h(function(){},[],s)instanceof s)}),d=!k(function(){h(function(){})}),u=m||d;e({target:"Reflect",stat:!0,forced:u,sham:u},{construct:function(){function s(l,v){f(l),b(v);var N=arguments.length<3?l:f(arguments[2]);if(d&&!m)return h(l,v,N);if(l===N){switch(v.length){case 0:return new l;case 1:return new l(v[0]);case 2:return new l(v[0],v[1]);case 3:return new l(v[0],v[1],v[2]);case 4:return new l(v[0],v[1],v[2],v[3])}var C=[null];return t(i,C,v),new(t(o,l,C))}var p=N.prototype,g=S(y(p)?p:c),V=t(l,g,v);return y(V)?V:g}return s}()})},9373:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(30365),o=n(767),f=n(74595),b=n(40033),y=b(function(){Reflect.defineProperty(f.f({},1,{value:1}),1,{value:2})});e({target:"Reflect",stat:!0,forced:y,sham:!a},{defineProperty:function(){function S(k,h,c){t(k);var i=o(h);t(c);try{return f.f(k,i,c),!0}catch(m){return!1}}return S}()})},45093:function(T,r,n){"use strict";var e=n(63964),a=n(30365),t=n(27193).f;e({target:"Reflect",stat:!0},{deleteProperty:function(){function o(f,b){var y=t(a(f),b);return y&&!y.configurable?!1:delete f[b]}return o}()})},5815:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(30365),o=n(27193);e({target:"Reflect",stat:!0,sham:!a},{getOwnPropertyDescriptor:function(){function f(b,y){return o.f(t(b),y)}return f}()})},88527:function(T,r,n){"use strict";var e=n(63964),a=n(30365),t=n(36917),o=n(9225);e({target:"Reflect",stat:!0,sham:!o},{getPrototypeOf:function(){function f(b){return t(a(b))}return f}()})},63074:function(T,r,n){"use strict";var e=n(63964),a=n(91495),t=n(77568),o=n(30365),f=n(98373),b=n(27193),y=n(36917);function S(k,h){var c=arguments.length<3?k:arguments[2],i,m;if(o(k)===c)return k[h];if(i=b.f(k,h),i)return f(i)?i.value:i.get===void 0?void 0:a(i.get,c);if(t(m=y(k)))return S(m,h,c)}e({target:"Reflect",stat:!0},{get:S})},66390:function(T,r,n){"use strict";var e=n(63964);e({target:"Reflect",stat:!0},{has:function(){function a(t,o){return o in t}return a}()})},7784:function(T,r,n){"use strict";var e=n(63964),a=n(30365),t=n(81834);e({target:"Reflect",stat:!0},{isExtensible:function(){function o(f){return a(f),t(f)}return o}()})},50551:function(T,r,n){"use strict";var e=n(63964),a=n(97921);e({target:"Reflect",stat:!0},{ownKeys:a})},76483:function(T,r,n){"use strict";var e=n(63964),a=n(4009),t=n(30365),o=n(50730);e({target:"Reflect",stat:!0,sham:!o},{preventExtensions:function(){function f(b){t(b);try{var y=a("Object","preventExtensions");return y&&y(b),!0}catch(S){return!1}}return f}()})},63915:function(T,r,n){"use strict";var e=n(63964),a=n(30365),t=n(35908),o=n(76649);o&&e({target:"Reflect",stat:!0},{setPrototypeOf:function(){function f(b,y){a(b),t(y);try{return o(b,y),!0}catch(S){return!1}}return f}()})},92046:function(T,r,n){"use strict";var e=n(63964),a=n(91495),t=n(30365),o=n(77568),f=n(98373),b=n(40033),y=n(74595),S=n(27193),k=n(36917),h=n(87458);function c(m,d,u){var s=arguments.length<4?m:arguments[3],l=S.f(t(m),d),v,N,C;if(!l){if(o(N=k(m)))return c(N,d,u,s);l=h(0)}if(f(l)){if(l.writable===!1||!o(s))return!1;if(v=S.f(s,d)){if(v.get||v.set||v.writable===!1)return!1;v.value=u,y.f(s,d,v)}else y.f(s,d,h(0,u))}else{if(C=l.set,C===void 0)return!1;a(C,s,u)}return!0}var i=b(function(){var m=function(){},d=y.f(new m,"a",{configurable:!0});return Reflect.set(m.prototype,"a",1,d)!==!1});e({target:"Reflect",stat:!0,forced:i},{set:c})},51454:function(T,r,n){"use strict";var e=n(58310),a=n(74685),t=n(67250),o=n(41314),f=n(5781),b=n(37909),y=n(80674),S=n(37310).f,k=n(21287),h=n(72586),c=n(12605),i=n(73392),m=n(62115),d=n(34550),u=n(55938),s=n(40033),l=n(45299),v=n(5419).enforce,N=n(58491),C=n(24697),p=n(39173),g=n(35688),V=C("match"),B=a.RegExp,I=B.prototype,L=a.SyntaxError,w=t(I.exec),x=t("".charAt),A=t("".replace),E=t("".indexOf),P=t("".slice),j=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,M=/a/g,R=/a/g,D=new B(M)!==M,W=m.MISSED_STICKY,_=m.UNSUPPORTED_Y,U=e&&(!D||W||p||g||s(function(){return R[V]=!1,B(M)!==M||B(R)===R||String(B(M,"i"))!=="/a/i"})),K=function(ne){for(var se=ne.length,Ce=0,Se="",ye=!1,he;Ce<=se;Ce++){if(he=x(ne,Ce),he==="\\"){Se+=he+x(ne,++Ce);continue}!ye&&he==="."?Se+="[\\s\\S]":(he==="["?ye=!0:he==="]"&&(ye=!1),Se+=he)}return Se},G=function(ne){for(var se=ne.length,Ce=0,Se="",ye=[],he=y(null),oe=!1,ce=!1,ee=0,fe="",me;Ce<=se;Ce++){if(me=x(ne,Ce),me==="\\")me+=x(ne,++Ce);else if(me==="]")oe=!1;else if(!oe)switch(!0){case me==="[":oe=!0;break;case me==="(":w(j,P(ne,Ce+1))&&(Ce+=2,ce=!0),Se+=me,ee++;continue;case(me===">"&&ce):if(fe===""||l(he,fe))throw new L("Invalid capture group name");he[fe]=!0,ye[ye.length]=[fe,ee],ce=!1,fe="";continue}ce?fe+=me:Se+=me}return[Se,ye]};if(o("RegExp",U)){for(var $=function(){function ie(ne,se){var Ce=k(I,this),Se=h(ne),ye=se===void 0,he=[],oe=ne,ce,ee,fe,me,te,be;if(!Ce&&Se&&ye&&ne.constructor===$)return ne;if((Se||k(I,ne))&&(ne=ne.source,ye&&(se=i(oe))),ne=ne===void 0?"":c(ne),se=se===void 0?"":c(se),oe=ne,p&&"dotAll"in M&&(ee=!!se&&E(se,"s")>-1,ee&&(se=A(se,/s/g,""))),ce=se,W&&"sticky"in M&&(fe=!!se&&E(se,"y")>-1,fe&&_&&(se=A(se,/y/g,""))),g&&(me=G(ne),ne=me[0],he=me[1]),te=f(B(ne,se),Ce?this:I,$),(ee||fe||he.length)&&(be=v(te),ee&&(be.dotAll=!0,be.raw=$(K(ne),ce)),fe&&(be.sticky=!0),he.length&&(be.groups=he)),ne!==oe)try{b(te,"source",oe===""?"(?:)":oe)}catch(pe){}return te}return ie}(),Q=S(B),J=0;Q.length>J;)d($,B,Q[J++]);I.constructor=$,$.prototype=I,u(a,"RegExp",$,{constructor:!0})}N("RegExp")},79669:function(T,r,n){"use strict";var e=n(63964),a=n(14489);e({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},23057:function(T,r,n){"use strict";var e=n(74685),a=n(58310),t=n(73936),o=n(70901),f=n(40033),b=e.RegExp,y=b.prototype,S=a&&f(function(){var k=!0;try{b(".","d")}catch(l){k=!1}var h={},c="",i=k?"dgimsy":"gimsy",m=function(v,N){Object.defineProperty(h,v,{get:function(){function C(){return c+=N,!0}return C}()})},d={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};k&&(d.hasIndices="d");for(var u in d)m(u,d[u]);var s=Object.getOwnPropertyDescriptor(y,"flags").get.call(h);return s!==i||c!==i});S&&t(y,"flags",{configurable:!0,get:o})},57983:function(T,r,n){"use strict";var e=n(70520).PROPER,a=n(55938),t=n(30365),o=n(12605),f=n(40033),b=n(73392),y="toString",S=RegExp.prototype,k=S[y],h=f(function(){return k.call({source:"a",flags:"b"})!=="/a/b"}),c=e&&k.name!==y;(h||c)&&a(S,y,function(){function i(){var m=t(this),d=o(m.source),u=o(b(m));return"/"+d+"/"+u}return i}(),{unsafe:!0})},1963:function(T,r,n){"use strict";var e=n(45150),a=n(41028);e("Set",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},17953:function(T,r,n){"use strict";n(1963)},95309:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("anchor")},{anchor:function(){function o(f){return a(this,"a","name",f)}return o}()})},82256:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("big")},{big:function(){function o(){return a(this,"big","","")}return o}()})},49484:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("blink")},{blink:function(){function o(){return a(this,"blink","","")}return o}()})},38931:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("bold")},{bold:function(){function o(){return a(this,"b","","")}return o}()})},30442:function(T,r,n){"use strict";var e=n(63964),a=n(50233).codeAt;e({target:"String",proto:!0},{codePointAt:function(){function t(o){return a(this,o)}return t}()})},6403:function(T,r,n){"use strict";var e=n(63964),a=n(71138),t=n(27193).f,o=n(10188),f=n(12605),b=n(86213),y=n(16952),S=n(45490),k=n(4493),h=a("".slice),c=Math.min,i=S("endsWith"),m=!k&&!i&&!!function(){var d=t(String.prototype,"endsWith");return d&&!d.writable}();e({target:"String",proto:!0,forced:!m&&!i},{endsWith:function(){function d(u){var s=f(y(this));b(u);var l=arguments.length>1?arguments[1]:void 0,v=s.length,N=l===void 0?v:c(o(l),v),C=f(u);return h(s,N-C.length,N)===C}return d}()})},39308:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("fixed")},{fixed:function(){function o(){return a(this,"tt","","")}return o}()})},91550:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("fontcolor")},{fontcolor:function(){function o(f){return a(this,"font","color",f)}return o}()})},75008:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("fontsize")},{fontsize:function(){function o(f){return a(this,"font","size",f)}return o}()})},9867:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(13912),o=RangeError,f=String.fromCharCode,b=String.fromCodePoint,y=a([].join),S=!!b&&b.length!==1;e({target:"String",stat:!0,arity:1,forced:S},{fromCodePoint:function(){function k(h){for(var c=[],i=arguments.length,m=0,d;i>m;){if(d=+arguments[m++],t(d,1114111)!==d)throw new o(d+" is not a valid code point");c[m]=d<65536?f(d):f(((d-=65536)>>10)+55296,d%1024+56320)}return y(c,"")}return k}()})},43673:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(86213),o=n(16952),f=n(12605),b=n(45490),y=a("".indexOf);e({target:"String",proto:!0,forced:!b("includes")},{includes:function(){function S(k){return!!~y(f(o(this)),f(t(k)),arguments.length>1?arguments[1]:void 0)}return S}()})},56027:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("italics")},{italics:function(){function o(){return a(this,"i","","")}return o}()})},12354:function(T,r,n){"use strict";var e=n(50233).charAt,a=n(12605),t=n(5419),o=n(65574),f=n(5959),b="String Iterator",y=t.set,S=t.getterFor(b);o(String,"String",function(k){y(this,{type:b,string:a(k),index:0})},function(){function k(){var h=S(this),c=h.string,i=h.index,m;return i>=c.length?f(void 0,!0):(m=e(c,i),h.index+=m.length,f(m,!1))}return k}())},50340:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("link")},{link:function(){function o(f){return a(this,"a","href",f)}return o}()})},22515:function(T,r,n){"use strict";var e=n(91495),a=n(79942),t=n(30365),o=n(42871),f=n(10188),b=n(12605),y=n(16952),S=n(78060),k=n(35483),h=n(28340);a("match",function(c,i,m){return[function(){function d(u){var s=y(this),l=o(u)?void 0:S(u,c);return l?e(l,u,s):new RegExp(u)[c](b(s))}return d}(),function(d){var u=t(this),s=b(d),l=m(i,u,s);if(l.done)return l.value;if(!u.global)return h(u,s);var v=u.unicode;u.lastIndex=0;for(var N=[],C=0,p;(p=h(u,s))!==null;){var g=b(p[0]);N[C]=g,g===""&&(u.lastIndex=k(s,f(u.lastIndex),v)),C++}return C===0?null:N}]})},5143:function(T,r,n){"use strict";var e=n(63964),a=n(24051).end,t=n(34125);e({target:"String",proto:!0,forced:t},{padEnd:function(){function o(f){return a(this,f,arguments.length>1?arguments[1]:void 0)}return o}()})},93514:function(T,r,n){"use strict";var e=n(63964),a=n(24051).start,t=n(34125);e({target:"String",proto:!0,forced:t},{padStart:function(){function o(f){return a(this,f,arguments.length>1?arguments[1]:void 0)}return o}()})},5416:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(57591),o=n(46771),f=n(12605),b=n(24760),y=a([].push),S=a([].join);e({target:"String",stat:!0},{raw:function(){function k(h){var c=t(o(h).raw),i=b(c);if(!i)return"";for(var m=arguments.length,d=[],u=0;;){if(y(d,f(c[u++])),u===i)return S(d,"");u")!=="7"});o("replace",function(A,E,P){var j=w?"$":"$0";return[function(){function M(R,D){var W=i(this),_=S(R)?void 0:d(R,v);return _?a(_,R,W,D):a(E,c(W),R,D)}return M}(),function(M,R){var D=b(this),W=c(M);if(typeof R=="string"&&V(R,j)===-1&&V(R,"$<")===-1){var _=P(E,D,W,R);if(_.done)return _.value}var U=y(R);U||(R=c(R));var K=D.global,G;K&&(G=D.unicode,D.lastIndex=0);for(var $=[],Q;Q=s(D,W),!(Q===null||(g($,Q),!K));){var J=c(Q[0]);J===""&&(D.lastIndex=m(W,h(D.lastIndex),G))}for(var ie="",ne=0,se=0;se<$.length;se++){Q=$[se];for(var Ce=c(Q[0]),Se=N(C(k(Q.index),W.length),0),ye=[],he,oe=1;oe=ne&&(ie+=B(W,ne,Se)+he,ne=Se+Ce.length)}return ie+B(W,ne)}]},!x||!L||w)},63272:function(T,r,n){"use strict";var e=n(91495),a=n(79942),t=n(30365),o=n(42871),f=n(16952),b=n(5700),y=n(12605),S=n(78060),k=n(28340);a("search",function(h,c,i){return[function(){function m(d){var u=f(this),s=o(d)?void 0:S(d,h);return s?e(s,d,u):new RegExp(d)[h](y(u))}return m}(),function(m){var d=t(this),u=y(m),s=i(c,d,u);if(s.done)return s.value;var l=d.lastIndex;b(l,0)||(d.lastIndex=0);var v=k(d,u);return b(d.lastIndex,l)||(d.lastIndex=l),v===null?-1:v.index}]})},34325:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("small")},{small:function(){function o(){return a(this,"small","","")}return o}()})},39930:function(T,r,n){"use strict";var e=n(91495),a=n(67250),t=n(79942),o=n(30365),f=n(42871),b=n(16952),y=n(28987),S=n(35483),k=n(10188),h=n(12605),c=n(78060),i=n(28340),m=n(62115),d=n(40033),u=m.UNSUPPORTED_Y,s=4294967295,l=Math.min,v=a([].push),N=a("".slice),C=!d(function(){var g=/(?:)/,V=g.exec;g.exec=function(){return V.apply(this,arguments)};var B="ab".split(g);return B.length!==2||B[0]!=="a"||B[1]!=="b"}),p="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;t("split",function(g,V,B){var I="0".split(void 0,0).length?function(L,w){return L===void 0&&w===0?[]:e(V,this,L,w)}:V;return[function(){function L(w,x){var A=b(this),E=f(w)?void 0:c(w,g);return E?e(E,w,A,x):e(I,h(A),w,x)}return L}(),function(L,w){var x=o(this),A=h(L);if(!p){var E=B(I,x,A,w,I!==V);if(E.done)return E.value}var P=y(x,RegExp),j=x.unicode,M=(x.ignoreCase?"i":"")+(x.multiline?"m":"")+(x.unicode?"u":"")+(u?"g":"y"),R=new P(u?"^(?:"+x.source+")":x,M),D=w===void 0?s:w>>>0;if(D===0)return[];if(A.length===0)return i(R,A)===null?[A]:[];for(var W=0,_=0,U=[];_1?arguments[1]:void 0,s.length)),v=f(u);return h(s,l,l+v.length)===v}return d}()})},74498:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("strike")},{strike:function(){function o(){return a(this,"strike","","")}return o}()})},15812:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("sub")},{sub:function(){function o(){return a(this,"sub","","")}return o}()})},57726:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("sup")},{sup:function(){function o(){return a(this,"sup","","")}return o}()})},70604:function(T,r,n){"use strict";n(99159);var e=n(63964),a=n(43476);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==a},{trimEnd:a})},85404:function(T,r,n){"use strict";var e=n(63964),a=n(43885);e({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==a},{trimLeft:a})},99159:function(T,r,n){"use strict";var e=n(63964),a=n(43476);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==a},{trimRight:a})},34965:function(T,r,n){"use strict";n(85404);var e=n(63964),a=n(43885);e({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==a},{trimStart:a})},8448:function(T,r,n){"use strict";var e=n(63964),a=n(92648).trim,t=n(90012);e({target:"String",proto:!0,forced:t("trim")},{trim:function(){function o(){return a(this)}return o}()})},79250:function(T,r,n){"use strict";var e=n(85889);e("asyncIterator")},49899:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(91495),o=n(67250),f=n(4493),b=n(58310),y=n(52357),S=n(40033),k=n(45299),h=n(21287),c=n(30365),i=n(57591),m=n(767),d=n(12605),u=n(87458),s=n(80674),l=n(18450),v=n(37310),N=n(81644),C=n(89235),p=n(27193),g=n(74595),V=n(24239),B=n(12867),I=n(55938),L=n(73936),w=n(16639),x=n(19417),A=n(79195),E=n(16738),P=n(24697),j=n(55557),M=n(85889),R=n(52360),D=n(84925),W=n(5419),_=n(22603).forEach,U=x("hidden"),K="Symbol",G="prototype",$=W.set,Q=W.getterFor(K),J=Object[G],ie=a.Symbol,ne=ie&&ie[G],se=a.RangeError,Ce=a.TypeError,Se=a.QObject,ye=p.f,he=g.f,oe=N.f,ce=B.f,ee=o([].push),fe=w("symbols"),me=w("op-symbols"),te=w("wks"),be=!Se||!Se[G]||!Se[G].findChild,pe=function(le,Ne,de){var ke=ye(J,Ne);ke&&delete J[Ne],he(le,Ne,de),ke&&le!==J&&he(J,Ne,ke)},ve=b&&S(function(){return s(he({},"a",{get:function(){function re(){return he(this,"a",{value:7}).a}return re}()})).a!==7})?pe:he,Be=function(le,Ne){var de=fe[le]=s(ne);return $(de,{type:K,tag:le,description:Ne}),b||(de.description=Ne),de},ge=function(){function re(le,Ne,de){le===J&&ge(me,Ne,de),c(le);var ke=m(Ne);return c(de),k(fe,ke)?(de.enumerable?(k(le,U)&&le[U][ke]&&(le[U][ke]=!1),de=s(de,{enumerable:u(0,!1)})):(k(le,U)||he(le,U,u(1,s(null))),le[U][ke]=!0),ve(le,ke,de)):he(le,ke,de)}return re}(),Le=function(){function re(le,Ne){c(le);var de=i(Ne),ke=l(de).concat(Ve(de));return _(ke,function(Me){(!b||t(xe,de,Me))&&ge(le,Me,de[Me])}),le}return re}(),we=function(){function re(le,Ne){return Ne===void 0?s(le):Le(s(le),Ne)}return re}(),xe=function(){function re(le){var Ne=m(le),de=t(ce,this,Ne);return this===J&&k(fe,Ne)&&!k(me,Ne)?!1:de||!k(this,Ne)||!k(fe,Ne)||k(this,U)&&this[U][Ne]?de:!0}return re}(),Re=function(){function re(le,Ne){var de=i(le),ke=m(Ne);if(!(de===J&&k(fe,ke)&&!k(me,ke))){var Me=ye(de,ke);return Me&&k(fe,ke)&&!(k(de,U)&&de[U][ke])&&(Me.enumerable=!0),Me}}return re}(),ze=function(){function re(le){var Ne=oe(i(le)),de=[];return _(Ne,function(ke){!k(fe,ke)&&!k(A,ke)&&ee(de,ke)}),de}return re}(),Ve=function(le){var Ne=le===J,de=oe(Ne?me:i(le)),ke=[];return _(de,function(Me){k(fe,Me)&&(!Ne||k(J,Me))&&ee(ke,fe[Me])}),ke};y||(ie=function(){function re(){if(h(ne,this))throw new Ce("Symbol is not a constructor");var le=!arguments.length||arguments[0]===void 0?void 0:d(arguments[0]),Ne=E(le),de=function(){function ke(Me){var je=this===void 0?a:this;je===J&&t(ke,me,Me),k(je,U)&&k(je[U],Ne)&&(je[U][Ne]=!1);var Fe=u(1,Me);try{ve(je,Ne,Fe)}catch(He){if(!(He instanceof se))throw He;pe(je,Ne,Fe)}}return ke}();return b&&be&&ve(J,Ne,{configurable:!0,set:de}),Be(Ne,le)}return re}(),ne=ie[G],I(ne,"toString",function(){function re(){return Q(this).tag}return re}()),I(ie,"withoutSetter",function(re){return Be(E(re),re)}),B.f=xe,g.f=ge,V.f=Le,p.f=Re,v.f=N.f=ze,C.f=Ve,j.f=function(re){return Be(P(re),re)},b&&(L(ne,"description",{configurable:!0,get:function(){function re(){return Q(this).description}return re}()}),f||I(J,"propertyIsEnumerable",xe,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!y,sham:!y},{Symbol:ie}),_(l(te),function(re){M(re)}),e({target:K,stat:!0,forced:!y},{useSetter:function(){function re(){be=!0}return re}(),useSimple:function(){function re(){be=!1}return re}()}),e({target:"Object",stat:!0,forced:!y,sham:!b},{create:we,defineProperty:ge,defineProperties:Le,getOwnPropertyDescriptor:Re}),e({target:"Object",stat:!0,forced:!y},{getOwnPropertyNames:ze}),R(),D(ie,K),A[U]=!0},10933:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(74685),o=n(67250),f=n(45299),b=n(55747),y=n(21287),S=n(12605),k=n(73936),h=n(5774),c=t.Symbol,i=c&&c.prototype;if(a&&b(c)&&(!("description"in i)||c().description!==void 0)){var m={},d=function(){function p(){var g=arguments.length<1||arguments[0]===void 0?void 0:S(arguments[0]),V=y(i,this)?new c(g):g===void 0?c():c(g);return g===""&&(m[V]=!0),V}return p}();h(d,c),d.prototype=i,i.constructor=d;var u=String(c("description detection"))==="Symbol(description detection)",s=o(i.valueOf),l=o(i.toString),v=/^Symbol\((.*)\)[^)]+$/,N=o("".replace),C=o("".slice);k(i,"description",{configurable:!0,get:function(){function p(){var g=s(this);if(f(m,g))return"";var V=l(g),B=u?C(V,7,-1):N(V,v,"$1");return B===""?void 0:B}return p}()}),e({global:!0,constructor:!0,forced:!0},{Symbol:d})}},30828:function(T,r,n){"use strict";var e=n(63964),a=n(4009),t=n(45299),o=n(12605),f=n(16639),b=n(66570),y=f("string-to-symbol-registry"),S=f("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!b},{for:function(){function k(h){var c=o(h);if(t(y,c))return y[c];var i=a("Symbol")(c);return y[c]=i,S[i]=c,i}return k}()})},53795:function(T,r,n){"use strict";var e=n(85889);e("hasInstance")},87806:function(T,r,n){"use strict";var e=n(85889);e("isConcatSpreadable")},64677:function(T,r,n){"use strict";var e=n(85889);e("iterator")},33313:function(T,r,n){"use strict";n(49899),n(30828),n(6862),n(53008),n(28603)},6862:function(T,r,n){"use strict";var e=n(63964),a=n(45299),t=n(71399),o=n(89393),f=n(16639),b=n(66570),y=f("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!b},{keyFor:function(){function S(k){if(!t(k))throw new TypeError(o(k)+" is not a symbol");if(a(y,k))return y[k]}return S}()})},48058:function(T,r,n){"use strict";var e=n(85889);e("match")},51583:function(T,r,n){"use strict";var e=n(85889);e("replace")},82403:function(T,r,n){"use strict";var e=n(85889);e("search")},34265:function(T,r,n){"use strict";var e=n(85889);e("species")},3295:function(T,r,n){"use strict";var e=n(85889);e("split")},1078:function(T,r,n){"use strict";var e=n(85889),a=n(52360);e("toPrimitive"),a()},63207:function(T,r,n){"use strict";var e=n(4009),a=n(85889),t=n(84925);a("toStringTag"),t(e("Symbol"),"Symbol")},80520:function(T,r,n){"use strict";var e=n(85889);e("unscopables")},99872:function(T,r,n){"use strict";var e=n(67250),a=n(4246),t=n(71447),o=e(t),f=a.aTypedArray,b=a.exportTypedArrayMethod;b("copyWithin",function(){function y(S,k){return o(f(this),S,k,arguments.length>2?arguments[2]:void 0)}return y}())},73364:function(T,r,n){"use strict";var e=n(4246),a=n(22603).every,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("every",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},58166:function(T,r,n){"use strict";var e=n(4246),a=n(88471),t=n(61484),o=n(2281),f=n(91495),b=n(67250),y=n(40033),S=e.aTypedArray,k=e.exportTypedArrayMethod,h=b("".slice),c=y(function(){var i=0;return new Int8Array(2).fill({valueOf:function(){function m(){return i++}return m}()}),i!==1});k("fill",function(){function i(m){var d=arguments.length;S(this);var u=h(o(this),0,3)==="Big"?t(m):+m;return f(a,this,u,d>1?arguments[1]:void 0,d>2?arguments[2]:void 0)}return i}(),c)},23793:function(T,r,n){"use strict";var e=n(4246),a=n(22603).filter,t=n(45399),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("filter",function(){function b(y){var S=a(o(this),y,arguments.length>1?arguments[1]:void 0);return t(this,S)}return b}())},13917:function(T,r,n){"use strict";var e=n(4246),a=n(22603).findIndex,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("findIndex",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},43820:function(T,r,n){"use strict";var e=n(4246),a=n(22603).find,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("find",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},80756:function(T,r,n){"use strict";var e=n(80185);e("Float32",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},70567:function(T,r,n){"use strict";var e=n(80185);e("Float64",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},19852:function(T,r,n){"use strict";var e=n(4246),a=n(22603).forEach,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("forEach",function(){function f(b){a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},40379:function(T,r,n){"use strict";var e=n(86563),a=n(4246).exportTypedArrayStaticMethod,t=n(3805);a("from",t,e)},92770:function(T,r,n){"use strict";var e=n(4246),a=n(14211).includes,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("includes",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},81069:function(T,r,n){"use strict";var e=n(4246),a=n(14211).indexOf,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("indexOf",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},60037:function(T,r,n){"use strict";var e=n(80185);e("Int16",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},44195:function(T,r,n){"use strict";var e=n(80185);e("Int32",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},66756:function(T,r,n){"use strict";var e=n(80185);e("Int8",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},63689:function(T,r,n){"use strict";var e=n(74685),a=n(40033),t=n(67250),o=n(4246),f=n(34570),b=n(24697),y=b("iterator"),S=e.Uint8Array,k=t(f.values),h=t(f.keys),c=t(f.entries),i=o.aTypedArray,m=o.exportTypedArrayMethod,d=S&&S.prototype,u=!a(function(){d[y].call([1])}),s=!!d&&d.values&&d[y]===d.values&&d.values.name==="values",l=function(){function v(){return k(i(this))}return v}();m("entries",function(){function v(){return c(i(this))}return v}(),u),m("keys",function(){function v(){return h(i(this))}return v}(),u),m("values",l,u||!s,{name:"values"}),m(y,l,u||!s,{name:"values"})},5659:function(T,r,n){"use strict";var e=n(4246),a=n(67250),t=e.aTypedArray,o=e.exportTypedArrayMethod,f=a([].join);o("join",function(){function b(y){return f(t(this),y)}return b}())},25014:function(T,r,n){"use strict";var e=n(4246),a=n(61267),t=n(1325),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("lastIndexOf",function(){function b(y){var S=arguments.length;return a(t,o(this),S>1?[y,arguments[1]]:[y])}return b}())},32189:function(T,r,n){"use strict";var e=n(4246),a=n(22603).map,t=n(31082),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("map",function(){function b(y){return a(o(this),y,arguments.length>1?arguments[1]:void 0,function(S,k){return new(t(S))(k)})}return b}())},23030:function(T,r,n){"use strict";var e=n(4246),a=n(86563),t=e.aTypedArrayConstructor,o=e.exportTypedArrayStaticMethod;o("of",function(){function f(){for(var b=0,y=arguments.length,S=new(t(this))(y);y>b;)S[b]=arguments[b++];return S}return f}(),a)},49110:function(T,r,n){"use strict";var e=n(4246),a=n(56844).right,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduceRight",function(){function f(b){var y=arguments.length;return a(t(this),b,y,y>1?arguments[1]:void 0)}return f}())},24309:function(T,r,n){"use strict";var e=n(4246),a=n(56844).left,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduce",function(){function f(b){var y=arguments.length;return a(t(this),b,y,y>1?arguments[1]:void 0)}return f}())},56445:function(T,r,n){"use strict";var e=n(4246),a=e.aTypedArray,t=e.exportTypedArrayMethod,o=Math.floor;t("reverse",function(){function f(){for(var b=this,y=a(b).length,S=o(y/2),k=0,h;k1?arguments[1]:void 0,1),N=b(l);if(d)return a(c,this,N,v);var C=this.length,p=o(N),g=0;if(p+v>C)throw new S("Wrong length");for(;gm;)u[m]=c[m++];return u}return S}(),y)},88739:function(T,r,n){"use strict";var e=n(4246),a=n(22603).some,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("some",function(){function f(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return f}())},60415:function(T,r,n){"use strict";var e=n(74685),a=n(71138),t=n(40033),o=n(10320),f=n(90274),b=n(4246),y=n(652),S=n(19228),k=n(5026),h=n(9342),c=b.aTypedArray,i=b.exportTypedArrayMethod,m=e.Uint16Array,d=m&&a(m.prototype.sort),u=!!d&&!(t(function(){d(new m(2),null)})&&t(function(){d(new m(2),{})})),s=!!d&&!t(function(){if(k)return k<74;if(y)return y<67;if(S)return!0;if(h)return h<602;var v=new m(516),N=Array(516),C,p;for(C=0;C<516;C++)p=C%4,v[C]=515-C,N[C]=C-2*p+3;for(d(v,function(g,V){return(g/4|0)-(V/4|0)}),C=0;C<516;C++)if(v[C]!==N[C])return!0}),l=function(N){return function(C,p){return N!==void 0?+N(C,p)||0:p!==p?-1:C!==C?1:C===0&&p===0?1/C>0&&1/p<0?1:-1:C>p}};i("sort",function(){function v(N){return N!==void 0&&o(N),s?d(this,N):f(c(this),l(N))}return v}(),!s||u)},72532:function(T,r,n){"use strict";var e=n(4246),a=n(10188),t=n(13912),o=n(31082),f=e.aTypedArray,b=e.exportTypedArrayMethod;b("subarray",function(){function y(S,k){var h=f(this),c=h.length,i=t(S,c),m=o(h);return new m(h.buffer,h.byteOffset+i*h.BYTES_PER_ELEMENT,a((k===void 0?c:t(k,c))-i))}return y}())},62207:function(T,r,n){"use strict";var e=n(74685),a=n(61267),t=n(4246),o=n(40033),f=n(54602),b=e.Int8Array,y=t.aTypedArray,S=t.exportTypedArrayMethod,k=[].toLocaleString,h=!!b&&o(function(){k.call(new b(1))}),c=o(function(){return[1,2].toLocaleString()!==new b([1,2]).toLocaleString()})||!o(function(){b.prototype.toLocaleString.call([1,2])});S("toLocaleString",function(){function i(){return a(k,h?f(y(this)):y(this),f(arguments))}return i}(),c)},906:function(T,r,n){"use strict";var e=n(4246).exportTypedArrayMethod,a=n(40033),t=n(74685),o=n(67250),f=t.Uint8Array,b=f&&f.prototype||{},y=[].toString,S=o([].join);a(function(){y.call({})})&&(y=function(){function h(){return S(this)}return h}());var k=b.toString!==y;e("toString",y,k)},78824:function(T,r,n){"use strict";var e=n(80185);e("Uint16",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},72846:function(T,r,n){"use strict";var e=n(80185);e("Uint32",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},24575:function(T,r,n){"use strict";var e=n(80185);e("Uint8",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()})},71968:function(T,r,n){"use strict";var e=n(80185);e("Uint8",function(a){return function(){function t(o,f,b){return a(this,o,f,b)}return t}()},!0)},80040:function(T,r,n){"use strict";var e=n(50730),a=n(74685),t=n(67250),o=n(30145),f=n(81969),b=n(45150),y=n(39895),S=n(77568),k=n(5419).enforce,h=n(40033),c=n(21820),i=Object,m=Array.isArray,d=i.isExtensible,u=i.isFrozen,s=i.isSealed,l=i.freeze,v=i.seal,N=!a.ActiveXObject&&"ActiveXObject"in a,C,p=function(E){return function(){function P(){return E(this,arguments.length?arguments[0]:void 0)}return P}()},g=b("WeakMap",p,y),V=g.prototype,B=t(V.set),I=function(){return e&&h(function(){var E=l([]);return B(new g,E,1),!u(E)})};if(c)if(N){C=y.getConstructor(p,"WeakMap",!0),f.enable();var L=t(V.delete),w=t(V.has),x=t(V.get);o(V,{delete:function(){function A(E){if(S(E)&&!d(E)){var P=k(this);return P.frozen||(P.frozen=new C),L(this,E)||P.frozen.delete(E)}return L(this,E)}return A}(),has:function(){function A(E){if(S(E)&&!d(E)){var P=k(this);return P.frozen||(P.frozen=new C),w(this,E)||P.frozen.has(E)}return w(this,E)}return A}(),get:function(){function A(E){if(S(E)&&!d(E)){var P=k(this);return P.frozen||(P.frozen=new C),w(this,E)?x(this,E):P.frozen.get(E)}return x(this,E)}return A}(),set:function(){function A(E,P){if(S(E)&&!d(E)){var j=k(this);j.frozen||(j.frozen=new C),w(this,E)?B(this,E,P):j.frozen.set(E,P)}else B(this,E,P);return this}return A}()})}else I()&&o(V,{set:function(){function A(E,P){var j;return m(E)&&(u(E)?j=l:s(E)&&(j=v)),B(this,E,P),j&&j(E),this}return A}()})},90846:function(T,r,n){"use strict";n(80040)},67042:function(T,r,n){"use strict";var e=n(45150),a=n(39895);e("WeakSet",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},40348:function(T,r,n){"use strict";n(67042)},5606:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(60375).clear;e({global:!0,bind:!0,enumerable:!0,forced:a.clearImmediate!==t},{clearImmediate:t})},83006:function(T,r,n){"use strict";n(5606),n(27807)},25764:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(37713),o=n(10320),f=n(24986),b=n(40033),y=n(58310),S=b(function(){return y&&Object.getOwnPropertyDescriptor(a,"queueMicrotask").value.length!==1});e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:S},{queueMicrotask:function(){function k(h){f(arguments.length,1),t(o(h))}return k}()})},27807:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(60375).set,o=n(78362),f=a.setImmediate?o(t,!1):t;e({global:!0,bind:!0,enumerable:!0,forced:a.setImmediate!==f},{setImmediate:f})},45569:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(78362),o=t(a.setInterval,!0);e({global:!0,bind:!0,forced:a.setInterval!==o},{setInterval:o})},5213:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(78362),o=t(a.setTimeout,!0);e({global:!0,bind:!0,forced:a.setTimeout!==o},{setTimeout:o})},69401:function(T,r,n){"use strict";n(45569),n(5213)},7435:function(T){"use strict";/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var r,n=[],e=[],a=function(){if(0)var y;window.onunload=function(){return r&&r.close()}},t=function(y){return e.push(y)},o=function(y){var h=[],c=function(u){return typeof u=="number"&&!Number.isFinite(u)?{__number__:String(u)}:typeof u=="undefined"?{__undefined__:!0}:u},i=function(u,s){if(typeof s=="object"){if(s===null)return s;if(h.includes(s))return"[circular ref]";h.push(s);var l=s instanceof Error||s.code&&s.message&&s.message.includes("Error");return l?{__error__:!0,string:String(s),stack:s.stack}:Array.isArray(s)?s.map(c):s}return c(s)},m=JSON.stringify(y,i);return h=null,m},f=function(y){if(0)var h,c,i},b=function(y,h){if(0)var c,i,m},k=function(){};w.exports={subscribe:t,sendMessage:f,sendLogEntry:b,setupHotReloading:k}}},yt={};function Y(w){var r=yt[w];if(r!==void 0)return r.exports;var n=yt[w]={exports:{}};return Qt[w](n,n.exports,Y),n.exports}(function(){Y.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(w){if(typeof window=="object")return window}}()})(),function(){Y.o=function(w,r){return Object.prototype.hasOwnProperty.call(w,r)}}();var Rn={};(function(){"use strict";Y(33313),Y(10933),Y(79250),Y(53795),Y(87806),Y(64677),Y(48058),Y(51583),Y(82403),Y(34265),Y(3295),Y(1078),Y(63207),Y(80520),Y(39600),Y(93237),Y(32057),Y(68933),Y(47830),Y(13455),Y(64094),Y(61915),Y(32384),Y(25579),Y(63532),Y(33425),Y(43894),Y(99636),Y(34570),Y(94432),Y(24683),Y(69984),Y(32089),Y(60206),Y(29645),Y(4788),Y(58672),Y(19356),Y(48968),Y(49852),Y(2712),Y(864),Y(54243),Y(75621),Y(26267),Y(50095),Y(33451),Y(74587),Y(25082),Y(47421),Y(32122),Y(6306),Y(90216),Y(84663),Y(92332),Y(98329),Y(9631),Y(47091),Y(59660),Y(15383),Y(92866),Y(86107),Y(29248),Y(52540),Y(79007),Y(77199),Y(6522),Y(95542),Y(2966),Y(20997),Y(57400),Y(45571),Y(54800),Y(15709),Y(76059),Y(96614),Y(324),Y(90426),Y(95443),Y(87968),Y(55007),Y(55323),Y(13521),Y(5006),Y(99009),Y(85770),Y(23532),Y(87119),Y(78618),Y(27129),Y(31943),Y(3579),Y(97397),Y(85028),Y(8225),Y(43331),Y(62289),Y(56196),Y(2950),Y(44205),Y(76882),Y(83186),Y(76065),Y(13411),Y(26634),Y(53118),Y(42514),Y(84353),Y(62987),Y(48993),Y(52917),Y(4972),Y(28913),Y(36382),Y(53092),Y(69861),Y(29674),Y(81543),Y(9373),Y(45093),Y(63074),Y(5815),Y(88527),Y(66390),Y(7784),Y(50551),Y(76483),Y(92046),Y(63915),Y(51454),Y(79669),Y(23057),Y(57983),Y(17953),Y(30442),Y(6403),Y(9867),Y(43673),Y(12354),Y(22515),Y(5143),Y(93514),Y(5416),Y(11619),Y(44590),Y(63272),Y(39930),Y(4038),Y(8448),Y(70604),Y(34965),Y(95309),Y(82256),Y(49484),Y(38931),Y(39308),Y(91550),Y(75008),Y(56027),Y(50340),Y(34325),Y(74498),Y(15812),Y(57726),Y(80756),Y(70567),Y(66756),Y(60037),Y(44195),Y(24575),Y(71968),Y(78824),Y(72846),Y(99872),Y(73364),Y(58166),Y(23793),Y(43820),Y(13917),Y(19852),Y(40379),Y(92770),Y(81069),Y(63689),Y(5659),Y(25014),Y(32189),Y(23030),Y(24309),Y(49110),Y(56445),Y(30939),Y(48321),Y(88739),Y(60415),Y(72532),Y(62207),Y(906),Y(90846),Y(40348),Y(83006),Y(25764),Y(69401),Y(95012),Y(30236)})(),function(){"use strict";var w=Y(89005);Y(67160),Y(23542),Y(30386),Y(98996),Y(50578),Y(4444),Y(77870),Y(39108),Y(11714),Y(73492),Y(49641),Y(17570),Y(61858),Y(32882),Y(23632),Y(56492);var r=Y(85822),n=Y(7435),e=Y(56518),a=Y(18498),t=Y(49060),o=Y(72178),f=Y(24826),b;/** + */var r,n=[],e=[],a=function(){if(0)var k;window.onunload=function(){return r&&r.close()}},t=function(k){return e.push(k)},o=function(k){var h=[],c=function(u){return typeof u=="number"&&!Number.isFinite(u)?{__number__:String(u)}:typeof u=="undefined"?{__undefined__:!0}:u},i=function(u,s){if(typeof s=="object"){if(s===null)return s;if(h.includes(s))return"[circular ref]";h.push(s);var l=s instanceof Error||s.code&&s.message&&s.message.includes("Error");return l?{__error__:!0,string:String(s),stack:s.stack}:Array.isArray(s)?s.map(c):s}return c(s)},m=JSON.stringify(k,i);return h=null,m},f=function(k){if(0)var h,c,i},b=function(k,h){if(0)var c,i,m},y=function(){};T.exports={subscribe:t,sendMessage:f,sendLogEntry:b,setupHotReloading:y}}},kt={};function Y(T){var r=kt[T];if(r!==void 0)return r.exports;var n=kt[T]={exports:{}};return Qt[T](n,n.exports,Y),n.exports}(function(){Y.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(T){if(typeof window=="object")return window}}()})(),function(){Y.o=function(T,r){return Object.prototype.hasOwnProperty.call(T,r)}}();var Rn={};(function(){"use strict";Y(33313),Y(10933),Y(79250),Y(53795),Y(87806),Y(64677),Y(48058),Y(51583),Y(82403),Y(34265),Y(3295),Y(1078),Y(63207),Y(80520),Y(39600),Y(93237),Y(32057),Y(68933),Y(47830),Y(13455),Y(64094),Y(61915),Y(32384),Y(25579),Y(63532),Y(33425),Y(43894),Y(99636),Y(34570),Y(94432),Y(24683),Y(69984),Y(32089),Y(60206),Y(29645),Y(4788),Y(58672),Y(19356),Y(48968),Y(49852),Y(2712),Y(864),Y(54243),Y(75621),Y(26267),Y(50095),Y(33451),Y(74587),Y(25082),Y(47421),Y(32122),Y(6306),Y(90216),Y(84663),Y(92332),Y(98329),Y(9631),Y(47091),Y(59660),Y(15383),Y(92866),Y(86107),Y(29248),Y(52540),Y(79007),Y(77199),Y(6522),Y(95542),Y(2966),Y(20997),Y(57400),Y(45571),Y(54800),Y(15709),Y(76059),Y(96614),Y(324),Y(90426),Y(95443),Y(87968),Y(55007),Y(55323),Y(13521),Y(5006),Y(99009),Y(85770),Y(23532),Y(87119),Y(78618),Y(27129),Y(31943),Y(3579),Y(97397),Y(85028),Y(8225),Y(43331),Y(62289),Y(56196),Y(2950),Y(44205),Y(76882),Y(83186),Y(76065),Y(13411),Y(26634),Y(53118),Y(42514),Y(84353),Y(62987),Y(48993),Y(52917),Y(4972),Y(28913),Y(36382),Y(53092),Y(69861),Y(29674),Y(81543),Y(9373),Y(45093),Y(63074),Y(5815),Y(88527),Y(66390),Y(7784),Y(50551),Y(76483),Y(92046),Y(63915),Y(51454),Y(79669),Y(23057),Y(57983),Y(17953),Y(30442),Y(6403),Y(9867),Y(43673),Y(12354),Y(22515),Y(5143),Y(93514),Y(5416),Y(11619),Y(44590),Y(63272),Y(39930),Y(4038),Y(8448),Y(70604),Y(34965),Y(95309),Y(82256),Y(49484),Y(38931),Y(39308),Y(91550),Y(75008),Y(56027),Y(50340),Y(34325),Y(74498),Y(15812),Y(57726),Y(80756),Y(70567),Y(66756),Y(60037),Y(44195),Y(24575),Y(71968),Y(78824),Y(72846),Y(99872),Y(73364),Y(58166),Y(23793),Y(43820),Y(13917),Y(19852),Y(40379),Y(92770),Y(81069),Y(63689),Y(5659),Y(25014),Y(32189),Y(23030),Y(24309),Y(49110),Y(56445),Y(30939),Y(48321),Y(88739),Y(60415),Y(72532),Y(62207),Y(906),Y(90846),Y(40348),Y(83006),Y(25764),Y(69401),Y(95012),Y(30236)})(),function(){"use strict";var T=Y(89005);Y(67160),Y(23542),Y(30386),Y(98996),Y(50578),Y(4444),Y(77870),Y(39108),Y(11714),Y(73492),Y(49641),Y(17570),Y(61858),Y(32882),Y(23632),Y(56492);var r=Y(85822),n=Y(7435),e=Y(56518),a=Y(18498),t=Y(49060),o=Y(72178),f=Y(24826),b;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */r.perf.mark("inception",(b=window.performance)==null||(b=b.timing)==null?void 0:b.navigationStart),r.perf.mark("init");var k=(0,o.configureStore)(),S=(0,t.createRenderer)(function(){var h=Y(71253),c=h.getRoutedComponent,i=c(k);return(0,w.createComponentVNode)(2,o.StoreProvider,{store:k,children:(0,w.createComponentVNode)(2,i)})}),y=function h(){if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",h);return}(0,f.setupGlobalEvents)(),(0,e.setupHotKeys)(),(0,a.captureExternalLinks)(),k.subscribe(S),Byond.subscribe(function(c,i){return k.dispatch({type:c,payload:i})})};y()}()})();})(); + */r.perf.mark("inception",(b=window.performance)==null||(b=b.timing)==null?void 0:b.navigationStart),r.perf.mark("init");var y=(0,o.configureStore)(),S=(0,t.createRenderer)(function(){var h=Y(71253),c=h.getRoutedComponent,i=c(y);return(0,T.createComponentVNode)(2,o.StoreProvider,{store:y,children:(0,T.createComponentVNode)(2,i)})}),k=function h(){if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",h);return}(0,f.setupGlobalEvents)(),(0,e.setupHotKeys)(),(0,a.captureExternalLinks)(),y.subscribe(S),Byond.subscribe(function(c,i){return y.dispatch({type:c,payload:i})})};k()}()})();})();