diff --git a/code/__defines/_planes+layers.dm b/code/__defines/_planes+layers.dm index 586a87cd4e..a63681cc21 100644 --- a/code/__defines/_planes+layers.dm +++ b/code/__defines/_planes+layers.dm @@ -138,6 +138,8 @@ What is the naming convention for planes or layers? #define PLANE_MESONS 30 //Stuff seen with mesons, like open ceilings. This is 30 for downstreams. +#define PLANE_STATUS 31 //Status Indicators that show over mobs' heads when certain things like stuns affect them. + #define PLANE_ADMIN2 33 //Purely for shenanigans (above lighting) #define PLANE_BUILDMODE 39 //Things that only show up when you have buildmode on diff --git a/code/__defines/mobs.dm b/code/__defines/mobs.dm index c7b1c0eb80..0019c3cbd7 100644 --- a/code/__defines/mobs.dm +++ b/code/__defines/mobs.dm @@ -399,7 +399,9 @@ #define VIS_CLOAKED 23 -#define VIS_COUNT 23 //Must be highest number from above. +#define VIS_STATUS 24 + +#define VIS_COUNT 24 //Must be highest number from above. //Some mob icon layering defines #define BODY_LAYER -100 diff --git a/code/__defines/sound.dm b/code/__defines/sound.dm index d954d34b2a..bd225bde45 100644 --- a/code/__defines/sound.dm +++ b/code/__defines/sound.dm @@ -124,8 +124,7 @@ 'sound/ambience/maintenance/maintenance2.ogg',\ 'sound/ambience/maintenance/maintenance3.ogg',\ 'sound/ambience/maintenance/maintenance4.ogg',\ - 'sound/ambience/maintenance/maintenance5.ogg',\ - 'sound/ambience/maintenance/maintenance6.ogg'\ + 'sound/ambience/maintenance/maintenance5.ogg'\ ) // Life support machinery at work, keeping everyone breathing. @@ -155,7 +154,11 @@ // Concerning sounds, for when one discovers something horrible happened in a PoI. #define AMBIENCE_FOREBODING list(\ 'sound/ambience/foreboding/foreboding1.ogg',\ - 'sound/ambience/foreboding/foreboding2.ogg'\ + 'sound/ambience/foreboding/foreboding2.ogg',\ + 'sound/ambience/foreboding/foreboding3.ogg',\ + 'sound/ambience/foreboding/foreboding4.ogg',\ + 'sound/ambience/foreboding/foreboding5.ogg',\ + 'sound/ambience/foreboding/foreboding6.ogg'\ ) // Ambience heard when aboveground on Sif and not in a Point of Interest. diff --git a/code/_helpers/type2type.dm b/code/_helpers/type2type.dm index 18a94a501d..77019ab7b9 100644 --- a/code/_helpers/type2type.dm +++ b/code/_helpers/type2type.dm @@ -281,3 +281,103 @@ return strtype return copytext(strtype, delim_pos) +// Concatenates a list of strings into a single string. A seperator may optionally be provided. +/proc/list2text(list/ls, sep) + if (ls.len <= 1) // Early-out code for empty or singleton lists. + return ls.len ? ls[1] : "" + + var/l = ls.len // Made local for sanic speed. + var/i = 0 // Incremented every time a list index is accessed. + + if (sep != null) + // Macros expand to long argument lists like so: sep, ls[++i], sep, ls[++i], sep, ls[++i], etc... + #define S1 sep, ls[++i] + #define S4 S1, S1, S1, S1 + #define S16 S4, S4, S4, S4 + #define S64 S16, S16, S16, S16 + + . = "[ls[++i]]" // Make sure the initial element is converted to text. + + // Having the small concatenations come before the large ones boosted speed by an average of at least 5%. + if (l-1 & 0x01) // 'i' will always be 1 here. + . = text("[][][]", ., S1) // Append 1 element if the remaining elements are not a multiple of 2. + if (l-i & 0x02) + . = text("[][][][][]", ., S1, S1) // Append 2 elements if the remaining elements are not a multiple of 4. + if (l-i & 0x04) + . = text("[][][][][][][][][]", ., S4) // And so on.... + if (l-i & 0x08) + . = text("[][][][][][][][][][][][][][][][][]", ., S4, S4) + if (l-i & 0x10) + . = text("[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]", ., S16) + if (l-i & 0x20) + . = text("[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]\ + [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]", ., S16, S16) + if (l-i & 0x40) + . = text("[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]\ + [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]\ + [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]\ + [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]", ., S64) + while (l > i) // Chomp through the rest of the list, 128 elements at a time. + . = text("[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]\ + [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]\ + [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]\ + [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]\ + [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]\ + [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]\ + [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]\ + [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]", ., S64, S64) + + #undef S64 + #undef S16 + #undef S4 + #undef S1 + else + // Macros expand to long argument lists like so: ls[++i], ls[++i], ls[++i], etc... + #define S1 ls[++i] + #define S4 S1, S1, S1, S1 + #define S16 S4, S4, S4, S4 + #define S64 S16, S16, S16, S16 + + . = "[ls[++i]]" // Make sure the initial element is converted to text. + + if (l-1 & 0x01) // 'i' will always be 1 here. + . += S1 // Append 1 element if the remaining elements are not a multiple of 2. + if (l-i & 0x02) + . = text("[][][]", ., S1, S1) // Append 2 elements if the remaining elements are not a multiple of 4. + if (l-i & 0x04) + . = text("[][][][][]", ., S4) // And so on... + if (l-i & 0x08) + . = text("[][][][][][][][][]", ., S4, S4) + if (l-i & 0x10) + . = text("[][][][][][][][][][][][][][][][][]", ., S16) + if (l-i & 0x20) + . = text("[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]", ., S16, S16) + if (l-i & 0x40) + . = text("[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]\ + [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]", ., S64) + while (l > i) // Chomp through the rest of the list, 128 elements at a time. + . = text("[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]\ + [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]\ + [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]\ + [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]", ., S64, S64) + + #undef S64 + #undef S16 + #undef S4 + #undef S1 + +// Converts a string into a list by splitting the string at each delimiter found. (discarding the seperator) +/proc/text2list(text, delimiter="\n") + var/delim_len = length(delimiter) + if (delim_len < 1) + return list(text) + + . = list() + var/last_found = 1 + var/found + + do + found = findtext(text, delimiter, last_found, 0) + . += copytext(text, last_found, found) + last_found = found + delim_len + while (found) diff --git a/code/_helpers/type2type_vr.dm b/code/_helpers/type2type_vr.dm deleted file mode 100644 index e6df531806..0000000000 --- a/code/_helpers/type2type_vr.dm +++ /dev/null @@ -1,107 +0,0 @@ -/* -// Contains VOREStation type2type functions -// list2text - takes delimiter and returns text -// text2list - takes delimiter, and creates list -// -*/ - -// Concatenates a list of strings into a single string. A seperator may optionally be provided. -/proc/list2text(list/ls, sep) - if (ls.len <= 1) // Early-out code for empty or singleton lists. - return ls.len ? ls[1] : "" - - var/l = ls.len // Made local for sanic speed. - var/i = 0 // Incremented every time a list index is accessed. - - if (sep <> null) - // Macros expand to long argument lists like so: sep, ls[++i], sep, ls[++i], sep, ls[++i], etc... - #define S1 sep, ls[++i] - #define S4 S1, S1, S1, S1 - #define S16 S4, S4, S4, S4 - #define S64 S16, S16, S16, S16 - - . = "[ls[++i]]" // Make sure the initial element is converted to text. - - // Having the small concatenations come before the large ones boosted speed by an average of at least 5%. - if (l-1 & 0x01) // 'i' will always be 1 here. - . = text("[][][]", ., S1) // Append 1 element if the remaining elements are not a multiple of 2. - if (l-i & 0x02) - . = text("[][][][][]", ., S1, S1) // Append 2 elements if the remaining elements are not a multiple of 4. - if (l-i & 0x04) - . = text("[][][][][][][][][]", ., S4) // And so on.... - if (l-i & 0x08) - . = text("[][][][][][][][][][][][][][][][][]", ., S4, S4) - if (l-i & 0x10) - . = text("[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]", ., S16) - if (l-i & 0x20) - . = text("[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]\ - [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]", ., S16, S16) - if (l-i & 0x40) - . = text("[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]\ - [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]\ - [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]\ - [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]", ., S64) - while (l > i) // Chomp through the rest of the list, 128 elements at a time. - . = text("[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]\ - [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]\ - [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]\ - [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]\ - [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]\ - [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]\ - [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]\ - [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]", ., S64, S64) - - #undef S64 - #undef S16 - #undef S4 - #undef S1 - else - // Macros expand to long argument lists like so: ls[++i], ls[++i], ls[++i], etc... - #define S1 ls[++i] - #define S4 S1, S1, S1, S1 - #define S16 S4, S4, S4, S4 - #define S64 S16, S16, S16, S16 - - . = "[ls[++i]]" // Make sure the initial element is converted to text. - - if (l-1 & 0x01) // 'i' will always be 1 here. - . += S1 // Append 1 element if the remaining elements are not a multiple of 2. - if (l-i & 0x02) - . = text("[][][]", ., S1, S1) // Append 2 elements if the remaining elements are not a multiple of 4. - if (l-i & 0x04) - . = text("[][][][][]", ., S4) // And so on... - if (l-i & 0x08) - . = text("[][][][][][][][][]", ., S4, S4) - if (l-i & 0x10) - . = text("[][][][][][][][][][][][][][][][][]", ., S16) - if (l-i & 0x20) - . = text("[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]", ., S16, S16) - if (l-i & 0x40) - . = text("[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]\ - [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]", ., S64) - while (l > i) // Chomp through the rest of the list, 128 elements at a time. - . = text("[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]\ - [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]\ - [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]\ - [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]", ., S64, S64) - - #undef S64 - #undef S16 - #undef S4 - #undef S1 - -// Converts a string into a list by splitting the string at each delimiter found. (discarding the seperator) -/proc/text2list(text, delimiter="\n") - var/delim_len = length(delimiter) - if (delim_len < 1) - return list(text) - - . = list() - var/last_found = 1 - var/found - - do - found = findtext(text, delimiter, last_found, 0) - . += copytext(text, last_found, found) - last_found = found + delim_len - while (found) diff --git a/code/_helpers/visual_filters.dm b/code/_helpers/visual_filters.dm new file mode 100644 index 0000000000..6cafa5a04d --- /dev/null +++ b/code/_helpers/visual_filters.dm @@ -0,0 +1,36 @@ +// These involve BYOND's built in filters that do visual effects, and not stuff that distinguishes between things. + +// All of this ported from TG. +/atom/movable + var/list/filter_data // For handling persistent filters + +/proc/cmp_filter_data_priority(list/A, list/B) + return A["priority"] - B["priority"] + +/atom/movable/proc/add_filter(filter_name, priority, list/params) + LAZYINITLIST(filter_data) + var/list/p = params.Copy() + p["priority"] = priority + filter_data[filter_name] = p + update_filters() + +/atom/movable/proc/update_filters() + filters = null + filter_data = sortTim(filter_data, /proc/cmp_filter_data_priority, TRUE) + for(var/f in filter_data) + var/list/data = filter_data[f] + var/list/arguments = data.Copy() + arguments -= "priority" + filters += filter(arglist(arguments)) + +/atom/movable/proc/get_filter(filter_name) + if(filter_data && filter_data[filter_name]) + return filters[filter_data.Find(filter_name)] + +// Polaris Extensions +/atom/movable/proc/remove_filter(filter_name) + var/thing = get_filter(filter_name) + if(thing) + LAZYREMOVE(filter_data, filter_name) + filters -= thing + update_filters() \ No newline at end of file diff --git a/code/controllers/subsystems/ticker.dm b/code/controllers/subsystems/ticker.dm index 70ff36fb1b..43431b049c 100644 --- a/code/controllers/subsystems/ticker.dm +++ b/code/controllers/subsystems/ticker.dm @@ -261,6 +261,8 @@ var/global/datum/controller/subsystem/ticker/ticker to_world("An admin has delayed the round end.") end_game_state = END_GAME_DELAYED else if(restart_timeleft <= 0) + to_world("Restarting world!") + sleep(5) world.Reboot() else if (world.time - last_restart_notify >= 1 MINUTE) to_world("Restarting in [round(restart_timeleft/600, 1)] minute\s.") diff --git a/code/datums/autolathe/general.dm b/code/datums/autolathe/general.dm index 40d036300e..c11319972f 100644 --- a/code/datums/autolathe/general.dm +++ b/code/datums/autolathe/general.dm @@ -54,6 +54,10 @@ name = "jar" path =/obj/item/glass_jar +/datum/category_item/autolathe/general/fishtank + name = "fish tank" + path =/obj/item/glass_jar + /datum/category_item/autolathe/general/radio_headset name = "radio headset" path =/obj/item/device/radio/headset diff --git a/code/datums/helper_datums/teleport.dm b/code/datums/helper_datums/teleport.dm index 65576a52a7..abc7ade225 100644 --- a/code/datums/helper_datums/teleport.dm +++ b/code/datums/helper_datums/teleport.dm @@ -202,7 +202,9 @@ var/obj/belly/destination_belly = destination.loc var/mob/living/telenommer = destination_belly.owner if(istype(telenommer)) - if(!isliving(teleatom)) + if(istype(teleatom, /obj/machinery) || istype(teleatom, /obj/structure)) + return 0 + else if(!isliving(teleatom)) return 1 else var/mob/living/telemob = teleatom diff --git a/code/datums/supplypacks/misc_yw.dm b/code/datums/supplypacks/misc_yw.dm index 1ac3e73218..6a5e26f1d0 100644 --- a/code/datums/supplypacks/misc_yw.dm +++ b/code/datums/supplypacks/misc_yw.dm @@ -12,7 +12,7 @@ cost = 80 containertype = /obj/structure/closet/crate/secure/weapon containername = "Blueshield equipment" - access = access_blueshield + access = access_blueshield_exclusive /datum/supply_pack/misc/blueshieldweapons name = "Blueshield Weapon Kits" @@ -23,7 +23,7 @@ cost = 100 containertype = /obj/structure/closet/crate/secure/weapon containername = "Blueshield armaments" - access = access_blueshield + access = access_blueshield_exclusive /datum/supply_pack/misc/bluespaceradioyw name = "Bluespace Radio Packs" diff --git a/code/game/area/areas.dm b/code/game/area/areas.dm index 49c481be15..f6f2ddfce8 100644 --- a/code/game/area/areas.dm +++ b/code/game/area/areas.dm @@ -49,6 +49,7 @@ var/sound_env = STANDARD_STATION var/turf/base_turf //The base turf type of the area, which can be used to override the z-level's base turf var/forbid_events = FALSE // If true, random events will not start inside this area. + var/no_spoilers = FALSE // If true, makes it much more difficult to see what is inside an area with things like mesons. /area/Initialize() . = ..() @@ -64,6 +65,8 @@ power_equip = 0 power_environ = 0 power_change() // all machines set to current power level, also updates lighting icon + if(no_spoilers) + set_spoiler_obfuscation(TRUE) return INITIALIZE_HINT_LATELOAD // Changes the area of T to A. Do not do this manually. @@ -367,7 +370,10 @@ var/list/mob/living/forced_ambiance_list = new L.update_floating( L.Check_Dense_Object() ) L.lastarea = newarea + L.lastareachange = world.time play_ambience(L) + if(no_spoilers) + L.disable_spoiler_vision() /area/proc/play_ambience(var/mob/living/L) // Ambience goes down here -- make sure to list each area seperately for ease of adding things in later, thanks! Note: areas adjacent to each other should have the same sounds to prevent cutoff when possible.- LastyScratch @@ -500,4 +506,16 @@ var/list/ghostteleportlocs = list() /area/proc/get_name() if(secret_name) return "Unknown Area" - return name \ No newline at end of file + return name + +GLOBAL_DATUM(spoiler_obfuscation_image, /image) + +/area/proc/set_spoiler_obfuscation(should_obfuscate) + if(!GLOB.spoiler_obfuscation_image) + GLOB.spoiler_obfuscation_image = image(icon = 'icons/misc/static.dmi') + GLOB.spoiler_obfuscation_image.plane = PLANE_MESONS + + if(should_obfuscate) + add_overlay(GLOB.spoiler_obfuscation_image) + else + cut_overlay(GLOB.spoiler_obfuscation_image) \ No newline at end of file diff --git a/code/game/atoms_movable.dm b/code/game/atoms_movable.dm index 09b226a076..bf5fc0ab18 100644 --- a/code/game/atoms_movable.dm +++ b/code/game/atoms_movable.dm @@ -19,6 +19,8 @@ var/icon_scale_x = 1 // Used to scale icons up or down horizonally in update_transform(). var/icon_scale_y = 1 // Used to scale icons up or down vertically in update_transform(). var/icon_rotation = 0 // Used to rotate icons in update_transform() + var/icon_expected_height = 32 + var/icon_expected_width = 32 var/old_x = 0 var/old_y = 0 var/datum/riding/riding_datum = null @@ -561,6 +563,14 @@ return null return text2num(pickweight(candidates)) +// Returns the current scaling of the sprite. +// Note this DOES NOT measure the height or width of the icon, but returns what number is being multiplied with to scale the icons, if any. +/atom/movable/proc/get_icon_scale_x() + return icon_scale_x + +/atom/movable/proc/get_icon_scale_y() + return icon_scale_y + /atom/movable/proc/update_transform() var/matrix/M = matrix() M.Scale(icon_scale_x, icon_scale_y) diff --git a/code/game/gamemodes/technomancer/spells/audible_deception.dm b/code/game/gamemodes/technomancer/spells/audible_deception.dm index 1914b72f14..8faff2b4e6 100644 --- a/code/game/gamemodes/technomancer/spells/audible_deception.dm +++ b/code/game/gamemodes/technomancer/spells/audible_deception.dm @@ -83,7 +83,7 @@ for(var/mob/living/carbon/M in ohearers(6, T)) if(M.get_ear_protection() >= 2) continue - M.sleeping = 0 + M.SetSleeping(0) M.stuttering += 20 M.ear_deaf += 30 M.Weaken(3) diff --git a/code/game/jobs/access_datum_yw.dm b/code/game/jobs/access_datum_yw.dm index 3abc2750e9..3baa9c6f7b 100644 --- a/code/game/jobs/access_datum_yw.dm +++ b/code/game/jobs/access_datum_yw.dm @@ -7,9 +7,18 @@ /var/const/access_blueshield = 52 /datum/access/blueshield id = access_blueshield - desc = "Blueshield Special Access" + desc = "Blueshield Guard" region = ACCESS_REGION_COMMAND +//special restricted access level, required for the secret locker and crates +//downside is you can't add/remove it via ID consoles, but I figure that's an acceptable tradeoff? +/var/const/access_blueshield_exclusive = 350 +/datum/access/blueshield_exclusive + id = access_blueshield_exclusive + desc = "Blueshield Special Reserve" + access_type = ACCESS_TYPE_CENTCOM +//that last line is what makes it inaccessible: you can add a region but that only makes it appear in the list, and if it has this access_type not even a CD's ID can add/remove it + var/const/access_fieldmedic = 68 /datum/access/fieldmedic id = access_fieldmedic diff --git a/code/game/jobs/job/blueshield.dm b/code/game/jobs/job/blueshield.dm index 29102d2fef..388645def3 100644 --- a/code/game/jobs/job/blueshield.dm +++ b/code/game/jobs/job/blueshield.dm @@ -6,7 +6,7 @@ faction = "Station" total_positions = 1 spawn_positions = 1 - supervisors = "the Colony Director" //Reports directly to CD + supervisors = "the Colony Director and Central Command" //Reports directly to CD, or failing that, CC selection_color = "#006cb3" req_admin_notify = 1 minimum_character_age = 25 @@ -16,8 +16,8 @@ access = list(access_security, access_sec_doors, access_brig, access_medical, access_eva, access_heads, access_teleporter, access_maint_tunnels, access_morgue, - access_crematorium, access_research, access_hop, access_RC_announce, access_keycard_auth, access_gateway, access_blueshield) - minimal_access = list(access_forensics_lockers, access_sec_doors, access_medical, access_maint_tunnels, access_RC_announce, access_keycard_auth, access_heads, access_blueshield) + access_crematorium, access_research, access_hop, access_RC_announce, access_keycard_auth, access_gateway, access_blueshield, access_blueshield_exclusive) + minimal_access = list(access_forensics_lockers, access_sec_doors, access_medical, access_maint_tunnels, access_RC_announce, access_keycard_auth, access_heads, access_blueshield, access_blueshield_exclusive) outfit_type = /decl/hierarchy/outfit/job/blueshield job_description = "Placeholder desc: General rules is to not get involved with security matters, your job is only to keep command personnel alive." diff --git a/code/game/jobs/job/science_vr.dm b/code/game/jobs/job/science_vr.dm index 62f7b6eadf..551784cfa5 100644 --- a/code/game/jobs/job/science_vr.dm +++ b/code/game/jobs/job/science_vr.dm @@ -7,12 +7,12 @@ access_tox_storage, access_teleporter, access_sec_doors, access_research, access_robotics, access_xenobiology, access_ai_upload, access_tech_storage, access_RC_announce, access_keycard_auth, access_tcomsat, access_gateway, access_xenoarch, access_eva, access_network, - access_explorer, access_pathfinder) //YW Edit access_gateway, _explorer, and _pathfinder + access_explorer, access_pathfinder, access_xenobotany) //YW Edit access_gateway, _explorer, _pathfinder, and _xenobotany minimal_access = list(access_rd, access_heads, access_tox, access_genetics, access_morgue, access_tox_storage, access_teleporter, access_sec_doors, access_research, access_robotics, access_xenobiology, access_ai_upload, access_tech_storage, access_RC_announce, access_keycard_auth, access_tcomsat, access_gateway, access_xenoarch, access_eva, access_network, - access_explorer, access_pathfinder) //YW Edit access_gateway, _explorer, and _pathfinder + access_explorer, access_pathfinder, access_xenobotany) //YW Edit access_gateway, _explorer, _pathfinder, and _xenobotany /datum/job/scientist spawn_positions = 5 diff --git a/code/game/machinery/adv_med.dm b/code/game/machinery/adv_med.dm index 8654df1c24..12f3b28b97 100644 --- a/code/game/machinery/adv_med.dm +++ b/code/game/machinery/adv_med.dm @@ -162,6 +162,11 @@ else return +/obj/machinery/bodyscanner/tgui_host(mob/user) + if(user == occupant) + return src + return console ? console : src + /obj/machinery/bodyscanner/tgui_interact(mob/user, datum/tgui/ui = null) ui = SStgui.try_update_ui(user, src, ui) if(!ui) diff --git a/code/game/machinery/air_alarm.dm b/code/game/machinery/air_alarm.dm index dc17042f15..3160af3c60 100644 --- a/code/game/machinery/air_alarm.dm +++ b/code/game/machinery/air_alarm.dm @@ -788,3 +788,14 @@ ..() spawn(rand(0,15)) update_icon() + +// VOREStation Edit Start +/obj/machinery/alarm/freezer + target_temperature = T0C - 13.15 // Chilly freezer room + +/obj/machinery/alarm/freezer/first_run() + . = ..() + + TLV["temperature"] = list(T0C - 40, T0C - 20, T0C + 40, T0C + 66) // K, Lower Temperature for Freezer Air Alarms (This is because TLV is hardcoded to be generated on first_run, and therefore the only way to modify this without changing TLV generation) + +// VOREStation Edit End \ No newline at end of file diff --git a/code/game/machinery/computer/aifixer.dm b/code/game/machinery/computer/aifixer.dm index c3041344a0..f83a87c266 100644 --- a/code/game/machinery/computer/aifixer.dm +++ b/code/game/machinery/computer/aifixer.dm @@ -85,7 +85,10 @@ return if(!occupier) restoring = FALSE - + + if(action) + playsound(src, "terminal_type", 50, 1) + switch(action) if("PRG_beginReconstruction") if(occupier?.health < 100) diff --git a/code/game/machinery/computer/arcade.dm b/code/game/machinery/computer/arcade.dm index 0ce27d99bb..ffc99e4733 100644 --- a/code/game/machinery/computer/arcade.dm +++ b/code/game/machinery/computer/arcade.dm @@ -156,6 +156,7 @@ blocked = 1 var/attackamt = rand(2,6) temp = "You attack for [attackamt] damage!" + playsound(src, 'sound/arcade/hit.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE) if(turtle > 0) turtle-- @@ -168,6 +169,7 @@ var/pointamt = rand(1,3) var/healamt = rand(6,8) temp = "You use [pointamt] magic to heal for [healamt] damage!" + playsound(src, 'sound/arcade/heal.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE) turtle++ sleep(10) @@ -180,6 +182,7 @@ blocked = 1 var/chargeamt = rand(4,7) temp = "You regain [chargeamt] points" + playsound(src, 'sound/arcade/mana.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE) player_mp += chargeamt if(turtle > 0) turtle-- @@ -210,6 +213,7 @@ if(!gameover) gameover = 1 temp = "[enemy_name] has fallen! Rejoice!" + playsound(src, 'sound/arcade/win.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE) if(emagged) feedback_inc("arcade_win_emagged") @@ -230,11 +234,13 @@ else if (emagged && (turtle >= 4)) var/boomamt = rand(5,10) enemy_action = "[enemy_name] throws a bomb, exploding you for [boomamt] damage!" + playsound(src, 'sound/arcade/boom.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE) player_hp -= boomamt else if ((enemy_mp <= 5) && (prob(70))) var/stealamt = rand(2,3) enemy_action = "[enemy_name] steals [stealamt] of your power!" + playsound(src, 'sound/arcade/steal.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE) player_mp -= stealamt if (player_mp <= 0) @@ -249,17 +255,20 @@ else if ((enemy_hp <= 10) && (enemy_mp > 4)) enemy_action = "[enemy_name] heals for 4 health!" + playsound(src, 'sound/arcade/heal.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE) enemy_hp += 4 enemy_mp -= 4 else var/attackamt = rand(3,6) enemy_action = "[enemy_name] attacks for [attackamt] damage!" + playsound(src, 'sound/arcade/hit.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE) player_hp -= attackamt if ((player_mp <= 0) || (player_hp <= 0)) gameover = 1 temp = "You have been crushed! GAME OVER" + playsound(src, 'sound/arcade/lose.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE) if(emagged) feedback_inc("arcade_loss_hp_emagged") usr.gib() @@ -393,6 +402,7 @@ user.set_machine(src) var/dat = "" if(gameStatus == ORION_STATUS_GAMEOVER) + playsound(src, 'sound/arcade/Ori_fail.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE) dat = "

Game Over

" dat += "Like many before you, your crew never made it to Orion, lost to space...
forever." if(settlers.len == 0) @@ -527,6 +537,7 @@ else if(href_list["newgame"]) //Reset everything if(gameStatus == ORION_STATUS_START) + playsound(src, 'sound/arcade/Ori_begin.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE) newgame() else if(href_list["menu"]) //back to the main menu if(gameStatus == ORION_STATUS_GAMEOVER) @@ -598,6 +609,7 @@ else if(href_list["killcrew"]) //shoot a crewmember if(gameStatus == ORION_STATUS_NORMAL || event == ORION_TRAIL_MUTINY) + playsound(src, 'sound/arcade/kill_crew.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE) var/sheriff = remove_crewmember() //I shot the sheriff var/mob/living/L = usr if(!istype(L)) @@ -623,6 +635,7 @@ else if(href_list["buycrew"]) //buy a crewmember if(gameStatus == ORION_STATUS_MARKET) if(!spaceport_raided && food >= 10 && fuel >= 10) + playsound(src, 'sound/arcade/get_fuel.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE) var/bought = add_crewmember() last_spaceport_action = "You hired [bought] as a new crewmember." fuel -= 10 @@ -632,6 +645,7 @@ else if(href_list["sellcrew"]) //sell a crewmember if(gameStatus == ORION_STATUS_MARKET) if(!spaceport_raided && settlers.len > 1) + playsound(src, 'sound/arcade/lose_fuel.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE) var/sold = remove_crewmember() last_spaceport_action = "You sold your crewmember, [sold]!" fuel += 7 @@ -649,6 +663,7 @@ else if(href_list["raid_spaceport"]) if(gameStatus == ORION_STATUS_MARKET) if(!spaceport_raided) + playsound(src, 'sound/arcade/raid.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE) var/success = min(15 * alive,100) //default crew (4) have a 60% chance spaceport_raided = 1 @@ -687,6 +702,7 @@ else if(href_list["buyparts"]) if(gameStatus == ORION_STATUS_MARKET) if(!spaceport_raided && fuel > 5) + playsound(src, 'sound/arcade/get_fuel.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE) switch(text2num(href_list["buyparts"])) if(1) //Engine Parts engine++ @@ -703,6 +719,7 @@ else if(href_list["trade"]) if(gameStatus == ORION_STATUS_MARKET) if(!spaceport_raided) + playsound(src, 'sound/arcade/get_fuel.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE) switch(text2num(href_list["trade"])) if(1) //Fuel if(fuel > 5) @@ -745,6 +762,7 @@ canContinueEvent = 1 if(ORION_TRAIL_FLUX) + playsound(src, 'sound/arcade/explo.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE) eventdat += "This region of space is highly turbulent.
If we go slowly we may avoid more damage, but if we keep our speed we won't waste supplies." eventdat += "
What will you do?" eventdat += "

Slow Down Continue

" @@ -759,6 +777,7 @@ canContinueEvent = 1 if(ORION_TRAIL_BREAKDOWN) + playsound(src, 'sound/arcade/explo.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE) eventdat += "Oh no! The engine has broken down!" eventdat += "
You can repair it with an engine part, or you can make repairs for 3 days." if(engine >= 1) @@ -777,6 +796,7 @@ eventdat += "

Close

" if(ORION_TRAIL_COLLISION) + playsound(src, 'sound/arcade/explo.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE) eventdat += "Something hit us! Looks like there's some hull damage." if(prob(25)) var/sfood = rand(5,15) @@ -992,6 +1012,7 @@ /obj/machinery/computer/arcade/orion_trail/proc/win() gameStatus = ORION_STATUS_START src.visible_message("\The [src] plays a triumpant tune, stating 'CONGRATULATIONS, YOU HAVE MADE IT TO ORION.'") + playsound(src, 'sound/arcade/Ori_win.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE) if(emagged) new /obj/item/weapon/orion_ship(src.loc) message_admins("[key_name_admin(usr)] made it to Orion on an emagged machine and got an explosive toy ship.") diff --git a/code/game/machinery/computer/computer.dm b/code/game/machinery/computer/computer.dm index 49ba537a2d..cae1788af1 100644 --- a/code/game/machinery/computer/computer.dm +++ b/code/game/machinery/computer/computer.dm @@ -70,11 +70,13 @@ set_light(0) if(icon_keyboard) add_overlay("[icon_keyboard]_off") + playsound(src, 'sound/machines/terminal_off.ogg', 50, 1) // Yes power else if(icon_keyboard) add_overlay(icon_keyboard) set_light(light_range_on, light_power_on) + playsound(src, 'sound/machines/terminal_on.ogg', 50, 1) // Broken if(stat & BROKEN) diff --git a/code/game/machinery/cryo.dm b/code/game/machinery/cryo.dm index 7f2c21baeb..d279a9773b 100644 --- a/code/game/machinery/cryo.dm +++ b/code/game/machinery/cryo.dm @@ -216,7 +216,7 @@ occupant.set_stat(UNCONSCIOUS) occupant.dir = SOUTH if(occupant.bodytemperature < T0C) - occupant.sleeping = max(5, (1/occupant.bodytemperature)*2000) + occupant.Sleeping(max(5, (1/occupant.bodytemperature)*2000)) occupant.Paralyse(max(5, (1/occupant.bodytemperature)*3000)) if(air_contents.gas["oxygen"] > 2) if(occupant.getOxyLoss()) occupant.adjustOxyLoss(-1) diff --git a/code/game/machinery/doors/blast_door.dm b/code/game/machinery/doors/blast_door.dm index 136b793f10..ebf1beceaf 100644 --- a/code/game/machinery/doors/blast_door.dm +++ b/code/game/machinery/doors/blast_door.dm @@ -22,6 +22,8 @@ var/icon_state_opening = null var/icon_state_closed = null var/icon_state_closing = null + var/open_sound = 'sound/machines/blastdooropen.ogg' + var/close_sound = 'sound/machines/blastdoorclose.ogg' closed_layer = ON_WINDOW_LAYER // Above airlocks when closed var/id = 1.0 @@ -72,6 +74,7 @@ // Description: Opens the door. No checks are done inside this proc. /obj/machinery/door/blast/proc/force_open() src.operating = 1 + playsound(src, open_sound, 100, 1) flick(icon_state_opening, src) src.density = 0 update_nearby_tiles() @@ -86,6 +89,7 @@ // Description: Closes the door. No checks are done inside this proc. /obj/machinery/door/blast/proc/force_close() src.operating = 1 + playsound(src, close_sound, 100, 1) src.layer = closed_layer flick(icon_state_closing, src) src.density = 1 diff --git a/code/game/machinery/iv_drip.dm b/code/game/machinery/iv_drip.dm index a4654a31a4..0f57b816d0 100644 --- a/code/game/machinery/iv_drip.dm +++ b/code/game/machinery/iv_drip.dm @@ -128,7 +128,7 @@ return // If the human is losing too much blood, beep. - if(((T.vessel.get_reagent_amount("blood")/T.species.blood_volume)*100) < BLOOD_VOLUME_SAFE) + if(T.vessel.get_reagent_amount("blood") < T.species.blood_volume*T.species.blood_level_safe) visible_message("\The [src] beeps loudly.") var/datum/reagent/B = T.take_blood(beaker,amount) diff --git a/code/game/machinery/jukebox.dm b/code/game/machinery/jukebox.dm index 54ea37b5c6..f08178f03d 100644 --- a/code/game/machinery/jukebox.dm +++ b/code/game/machinery/jukebox.dm @@ -221,7 +221,7 @@ for(var/mob/living/carbon/M in ohearers(6, src)) if(M.get_ear_protection() >= 2) continue - M.sleeping = 0 + M.SetSleeping(0) M.stuttering += 20 M.ear_deaf += 30 M.Weaken(3) diff --git a/code/game/machinery/portable_turret.dm b/code/game/machinery/portable_turret.dm index c307017d8a..1ed44c61bc 100644 --- a/code/game/machinery/portable_turret.dm +++ b/code/game/machinery/portable_turret.dm @@ -822,6 +822,7 @@ var/atom/flick_holder = new /atom/movable/porta_turret_cover(loc) flick_holder.layer = layer + 0.1 flick("popup_[turret_type]", flick_holder) + playsound(src, 'sound/machines/turrets/turret_deploy.ogg', 100, 1) sleep(10) qdel(flick_holder) @@ -843,6 +844,7 @@ var/atom/flick_holder = new /atom/movable/porta_turret_cover(loc) flick_holder.layer = layer + 0.1 flick("popdown_[turret_type]", flick_holder) + playsound(src, 'sound/machines/turrets/turret_retract.ogg', 100, 1) sleep(10) qdel(flick_holder) @@ -863,6 +865,7 @@ spawn() popUp() //pop the turret up if it's not already up. set_dir(get_dir(src, target)) //even if you can't shoot, follow the target + playsound(src, 'sound/machines/turrets/turret_rotate.ogg', 100, 1) // Play rotating sound spawn() shootAt(target) return 1 diff --git a/code/game/machinery/vending_machines.dm b/code/game/machinery/vending_machines.dm index 59524f869a..b631ee807e 100644 --- a/code/game/machinery/vending_machines.dm +++ b/code/game/machinery/vending_machines.dm @@ -558,11 +558,13 @@ /obj/item/weapon/storage/box/wormcan = 4, /obj/item/weapon/storage/box/wormcan/sickly = 10, /obj/item/weapon/material/fishing_net = 2, + /obj/item/glass_jar/fish = 4, /obj/item/stack/cable_coil/random = 6) prices = list(/obj/item/weapon/material/fishing_rod/modern/cheap = 50, /obj/item/weapon/storage/box/wormcan = 12, /obj/item/weapon/storage/box/wormcan/sickly = 6, /obj/item/weapon/material/fishing_net = 40, + /obj/item/glass_jar/fish = 10, /obj/item/stack/cable_coil/random = 4) premium = list(/obj/item/weapon/storage/box/wormcan/deluxe = 1) contraband = list(/obj/item/weapon/storage/box/wormcan/deluxe = 1) diff --git a/code/game/mecha/equipment/weapons/honk.dm b/code/game/mecha/equipment/weapons/honk.dm index 427d53295c..e7bee193dd 100644 --- a/code/game/mecha/equipment/weapons/honk.dm +++ b/code/game/mecha/equipment/weapons/honk.dm @@ -26,7 +26,7 @@ return to_chat(M, "Your ears feel like they're bleeding!") playsound(M, 'sound/effects/bang.ogg', 70, 1, 30) - M.sleeping = 0 + M.SetSleeping(0) M.ear_deaf += 30 M.ear_damage += rand(5, 20) M.Weaken(3) diff --git a/code/game/mecha/mecha.dm b/code/game/mecha/mecha.dm index 57a1731098..ca2bcab7b9 100644 --- a/code/game/mecha/mecha.dm +++ b/code/game/mecha/mecha.dm @@ -44,7 +44,7 @@ ) var/damage_minimum = 10 //Incoming damage lower than this won't actually deal damage. Scrapes shouldn't be a real thing. - var/minimum_penetration = 20 //Incoming damage won't be fully applied if you don't have at least 20. Almost all AP clears this. + var/minimum_penetration = 15 //Incoming damage won't be fully applied if you don't have at least 20. Almost all AP clears this. var/fail_penetration_value = 0.66 //By how much failing to penetrate reduces your shit. 66% by default. var/obj/item/weapon/cell/cell @@ -75,8 +75,9 @@ var/obj/item/device/radio/radio = null - var/max_temperature = 25000 - var/internal_damage_threshold = 50 //health percentage below which internal damage is possible + var/max_temperature = 25000 //Kelvin values. + var/internal_damage_threshold = 33 //health percentage below which internal damage is possible + var/internal_damage_minimum = 15 //At least this much damage to trigger some real bad hurt. var/internal_damage = 0 //contains bitflags var/list/operation_req_access = list()//required access level for mecha operation @@ -583,6 +584,15 @@ last_message = world.time return 0 + +/* +//A first draft of a check to stop mechs from moving fully. TBD when all thrusters modules are unified. + if(!thrusters && !src.pr_inertial_movement.active() && isspace(src.loc))//No thrsters, not drifting, in space + src.occupant_message("Error 543")//debug + return 0 +*/ + + if(!thrusters && src.pr_inertial_movement.active()) //I think this mean 'if you try to move in space without thruster, u no move' return 0 @@ -721,18 +731,21 @@ //////// Internal damage //////// /////////////////////////////////// +//ATM, the ignore_threshold is literally only used for the pulse rifles beams used mostly by deathsquads. /obj/mecha/proc/check_for_internal_damage(var/list/possible_int_damage,var/ignore_threshold=null) if(!islist(possible_int_damage) || isemptylist(possible_int_damage)) return - if(prob(20)) - if(ignore_threshold || src.health*100/initial(src.health)You slash at the armored suit!") visible_message("\The [user] slashes at [src.name]'s armor!") @@ -824,8 +839,9 @@ src.log_append_to_last("Armor saved.") return else if ((HULK in user.mutations) && !prob(src.deflect_chance)) - src.take_damage(15) - src.check_for_internal_damage(list(MECHA_INT_TEMP_CONTROL,MECHA_INT_TANK_BREACH,MECHA_INT_CONTROL_LOST)) + src.take_damage(15) //The take_damage() proc handles armor values + if(prob(25)) //Hulks punch hard but lets not give them consistent internal damage. + src.check_for_internal_damage(list(MECHA_INT_TEMP_CONTROL,MECHA_INT_TANK_BREACH,MECHA_INT_CONTROL_LOST)) user.visible_message("[user] hits [src.name], doing some damage.", "You hit [src.name] with all your might. The metal creaks and bends.") else user.visible_message("[user] hits [src.name]. Nothing happens.","You hit [src.name] with no visible effect.") @@ -877,8 +893,9 @@ pass_damage = ME.handle_ranged_contact(A, pass_damage) pass_damage = (pass_damage*pass_damage_reduc_mod)//Applying damage reduction - src.take_damage(pass_damage) - src.check_for_internal_damage(list(MECHA_INT_TEMP_CONTROL,MECHA_INT_TANK_BREACH,MECHA_INT_CONTROL_LOST)) + src.take_damage(pass_damage) //The take_damage() proc handles armor values + if(pass_damage > internal_damage_minimum) //Only decently painful attacks trigger a chance of mech damage. + src.check_for_internal_damage(list(MECHA_INT_TEMP_CONTROL,MECHA_INT_TANK_BREACH,MECHA_INT_CONTROL_LOST)) return @@ -905,7 +922,7 @@ if(!(Proj.nodamage)) var/ignore_threshold - if(istype(Proj, /obj/item/projectile/beam/pulse)) + if(istype(Proj, /obj/item/projectile/beam/pulse)) //ATM, this is literally only for the pulse rifles used mostly by deathsquads. ignore_threshold = 1 var/pass_damage = Proj.damage @@ -922,15 +939,18 @@ src.occupant_message("\The [Proj] struggles to pierce \the [src] armor.") src.visible_message("\The [Proj] struggles to pierce \the [src] armor") pass_damage_reduc_mod = fail_penetration_value //This will apply to reduce damage to 2/3 or 66% by default - else + + else //You go through completely because you use AP. Nice. src.occupant_message("\The [Proj] manages to pierce \the [src] armor.") src.visible_message("\The [Proj] manages to pierce \the [src] armor") pass_damage_reduc_mod = 1 pass_damage = (pass_damage_reduc_mod*pass_damage)//Apply damage reduction before usage. - src.take_damage(pass_damage, Proj.check_armour) - if(prob(25)) spark_system.start() - src.check_for_internal_damage(list(MECHA_INT_FIRE,MECHA_INT_TEMP_CONTROL,MECHA_INT_TANK_BREACH,MECHA_INT_CONTROL_LOST,MECHA_INT_SHORT_CIRCUIT),ignore_threshold) + src.take_damage(pass_damage, Proj.check_armour) //The take_damage() proc handles armor values + if(prob(25)) + spark_system.start() + if(pass_damage > internal_damage_minimum) //Only decently painful attacks trigger a chance of mech damage. + src.check_for_internal_damage(list(MECHA_INT_FIRE,MECHA_INT_TEMP_CONTROL,MECHA_INT_TANK_BREACH,MECHA_INT_CONTROL_LOST,MECHA_INT_SHORT_CIRCUIT),ignore_threshold) //AP projectiles have a chance to cause additional damage if(Proj.penetrating) @@ -941,7 +961,8 @@ Proj.attack_mob(src.occupant, distance) hit_occupant = 0 else - src.check_for_internal_damage(list(MECHA_INT_FIRE,MECHA_INT_TEMP_CONTROL,MECHA_INT_TANK_BREACH,MECHA_INT_CONTROL_LOST,MECHA_INT_SHORT_CIRCUIT), 1) + if(pass_damage > internal_damage_minimum) //Only decently painful attacks trigger a chance of mech damage. + src.check_for_internal_damage(list(MECHA_INT_FIRE,MECHA_INT_TEMP_CONTROL,MECHA_INT_TANK_BREACH,MECHA_INT_CONTROL_LOST,MECHA_INT_SHORT_CIRCUIT), 1) Proj.penetrating-- @@ -964,13 +985,13 @@ if (prob(30)) qdel(src) else - src.take_damage(initial(src.health)/2) + src.take_damage(initial(src.health)/2) //The take_damage() proc handles armor values src.check_for_internal_damage(list(MECHA_INT_FIRE,MECHA_INT_TEMP_CONTROL,MECHA_INT_TANK_BREACH,MECHA_INT_CONTROL_LOST,MECHA_INT_SHORT_CIRCUIT),1) if(3.0) if (prob(5)) qdel(src) else - src.take_damage(initial(src.health)/5) + src.take_damage(initial(src.health)/5) //The take_damage() proc handles armor values src.check_for_internal_damage(list(MECHA_INT_FIRE,MECHA_INT_TEMP_CONTROL,MECHA_INT_TANK_BREACH,MECHA_INT_CONTROL_LOST,MECHA_INT_SHORT_CIRCUIT),1) return @@ -1001,13 +1022,14 @@ use_power((cell.charge/2)/severity) take_damage(50 / severity,"energy") src.log_message("EMP detected",1) - check_for_internal_damage(list(MECHA_INT_FIRE,MECHA_INT_TEMP_CONTROL,MECHA_INT_CONTROL_LOST,MECHA_INT_SHORT_CIRCUIT),1) + if(prob(80)) + check_for_internal_damage(list(MECHA_INT_FIRE,MECHA_INT_TEMP_CONTROL,MECHA_INT_CONTROL_LOST,MECHA_INT_SHORT_CIRCUIT),1) return /obj/mecha/fire_act(datum/gas_mixture/air, exposed_temperature, exposed_volume) if(exposed_temperature>src.max_temperature) src.log_message("Exposed to dangerous temperature.",1) - src.take_damage(5,"fire") + src.take_damage(5,"fire") //The take_damage() proc handles armor values src.check_for_internal_damage(list(MECHA_INT_FIRE, MECHA_INT_TEMP_CONTROL)) return @@ -1037,11 +1059,12 @@ user.visible_message("[user] hits [src] with [W].", "You hit [src] with [W].") var/pass_damage = W.force - pass_damage = (pass_damage*pass_damage_reduc_mod) //Apply the reduction of damage from not having enough armor penetration. + pass_damage = (pass_damage*pass_damage_reduc_mod) //Apply the reduction of damage from not having enough armor penetration. This is not regular armor values at play. for(var/obj/item/mecha_parts/mecha_equipment/ME in equipment) - pass_damage = ME.handle_projectile_contact(W, pass_damage) - src.take_damage(pass_damage,W.damtype) - src.check_for_internal_damage(list(MECHA_INT_TEMP_CONTROL,MECHA_INT_TANK_BREACH,MECHA_INT_CONTROL_LOST)) + pass_damage = ME.handle_projectile_contact(W, user, pass_damage) + src.take_damage(pass_damage,W.damtype) //The take_damage() proc handles armor values + if(pass_damage > internal_damage_minimum) //Only decently painful attacks trigger a chance of mech damage. + src.check_for_internal_damage(list(MECHA_INT_TEMP_CONTROL,MECHA_INT_TANK_BREACH,MECHA_INT_CONTROL_LOST)) return ////////////////////// @@ -2290,8 +2313,6 @@ src.log_message("Attacked. Attacker - [user].",1) user.do_attack_animation(src) - //var/pass_damage //See the comment in the larger greyed out block below. - //var/pass_damage_reduc_mod if(prob(src.deflect_chance))//Deflected src.log_append_to_last("Armor saved.") src.occupant_message("\The [user]'s attack is stopped by the armor.") @@ -2306,17 +2327,10 @@ playsound(src, 'sound/effects/Glasshit.ogg', 50, 1) return -/*//Commented out for not playing well with penetration questions. - else if(user.mob.attack_armor_pen < minimum_penetration)//Not enough armor penetration - src.occupant_message("\The [user] struggles to pierce \the [src] armor.") - src.visible_message("\The [user] struggles to pierce \the [src] armor") - pass_damage_reduc_mod = fail_penetration_value //This will apply to reduce damage to 2/3 or 66% by default. -*/ - else - //pass_damage = (pass_damage_reduc_mod*damage) - src.take_damage(damage)//apply damage - src.check_for_internal_damage(list(MECHA_INT_TEMP_CONTROL,MECHA_INT_TANK_BREACH,MECHA_INT_CONTROL_LOST)) + src.take_damage(damage) //Apply damage - The take_damage() proc handles armor values + if(damage > internal_damage_minimum) //Only decently painful attacks trigger a chance of mech damage. + src.check_for_internal_damage(list(MECHA_INT_TEMP_CONTROL,MECHA_INT_TANK_BREACH,MECHA_INT_CONTROL_LOST)) visible_message("[user] [attack_message] [src]!") user.attack_log += text("\[[time_stamp()]\] attacked [src.name]") @@ -2399,7 +2413,7 @@ if(mecha.cabin_air && mecha.cabin_air.volume>0) mecha.cabin_air.temperature = min(6000+T0C, mecha.cabin_air.temperature+rand(10,15)) if(mecha.cabin_air.temperature>mecha.max_temperature/2) - mecha.take_damage(4/round(mecha.max_temperature/mecha.cabin_air.temperature,0.1),"fire") + mecha.take_damage(4/round(mecha.max_temperature/mecha.cabin_air.temperature,0.1),"fire") //The take_damage() proc handles armor values if(mecha.hasInternalDamage(MECHA_INT_TEMP_CONTROL)) //stop the mecha_preserve_temp loop datum mecha.pr_int_temp_processor.stop() if(mecha.hasInternalDamage(MECHA_INT_TANK_BREACH)) //remove some air from internal tank diff --git a/code/game/objects/effects/decals/Cleanable/fuel.dm b/code/game/objects/effects/decals/Cleanable/fuel.dm index b69226815e..bd6e1e97f6 100644 --- a/code/game/objects/effects/decals/Cleanable/fuel.dm +++ b/code/game/objects/effects/decals/Cleanable/fuel.dm @@ -5,6 +5,8 @@ plane = DIRTY_PLANE anchored = 1 var/amount = 1 + generic_filth = TRUE + persistent = FALSE /obj/effect/decal/cleanable/liquid_fuel/New(turf/newLoc,amt=1,nologs=1) if(!nologs) diff --git a/code/game/objects/items/devices/defib.dm b/code/game/objects/items/devices/defib.dm index 680bebf6e9..8e5fa683c9 100644 --- a/code/game/objects/items/devices/defib.dm +++ b/code/game/objects/items/devices/defib.dm @@ -338,14 +338,14 @@ if(!heart) return TRUE - var/blood_volume = round((H.vessel.get_reagent_amount("blood")/H.species.blood_volume)*100) + var/blood_volume = H.vessel.get_reagent_amount("blood") if(!heart || heart.is_broken()) blood_volume *= 0.3 else if(heart.is_bruised()) blood_volume *= 0.7 else if(heart.damage > 1) blood_volume *= 0.8 - return blood_volume < BLOOD_VOLUME_SURVIVE + return blood_volume < H.species.blood_volume*H.species.blood_level_fatal /obj/item/weapon/shockpaddles/proc/check_charge(var/charge_amt) return 0 diff --git a/code/game/objects/items/devices/megaphone.dm b/code/game/objects/items/devices/megaphone.dm index 5516ccb099..32c9d75959 100644 --- a/code/game/objects/items/devices/megaphone.dm +++ b/code/game/objects/items/devices/megaphone.dm @@ -138,7 +138,7 @@ for(var/mob/living/carbon/M in oviewers(4, T)) if(M.get_ear_protection() >= 2) continue - M.sleeping = 0 + M.SetSleeping(0) M.stuttering += 20 M.ear_deaf += 30 M.Weaken(3) diff --git a/code/game/objects/items/devices/scanners.dm b/code/game/objects/items/devices/scanners.dm index 06197f202d..5ff1f46cde 100644 --- a/code/game/objects/items/devices/scanners.dm +++ b/code/game/objects/items/devices/scanners.dm @@ -272,9 +272,11 @@ HALOGEN COUNTER - Radcount on mobs var/blood_volume = H.vessel.get_reagent_amount("blood") var/blood_percent = round((blood_volume / H.species.blood_volume)*100) var/blood_type = H.dna.b_type - if(blood_percent <= BLOOD_VOLUME_BAD) + if(blood_volume <= H.species.blood_volume*H.species.blood_level_danger) dat += "Warning: Blood Level CRITICAL: [blood_percent]% [blood_volume]cl. Type: [blood_type]
" - else if(blood_percent <= BLOOD_VOLUME_SAFE) + else if(blood_volume <= H.species.blood_volume*H.species.blood_level_warning) + dat += "Warning: Blood Level VERY LOW: [blood_percent]% [blood_volume]cl. Type: [blood_type]
" + else if(blood_volume <= H.species.blood_volume*H.species.blood_level_safe) dat += "Warning: Blood Level LOW: [blood_percent]% [blood_volume]cl. Type: [blood_type]
" else dat += "Blood Level Normal: [blood_percent]% [blood_volume]cl. Type: [blood_type]
" diff --git a/code/game/objects/items/glassjar.dm b/code/game/objects/items/glassjar.dm index 60fd8b19eb..e55285e9da 100644 --- a/code/game/objects/items/glassjar.dm +++ b/code/game/objects/items/glassjar.dm @@ -1,3 +1,9 @@ + +#define JAR_NOTHING 0 +#define JAR_MONEY 1 +#define JAR_ANIMAL 2 +#define JAR_SPIDER 3 + /obj/item/glass_jar name = "glass jar" desc = "A small empty jar." @@ -27,7 +33,7 @@ var/mob/L = A user.visible_message("[user] scoops [L] into \the [src].", "You scoop [L] into \the [src].") L.loc = src - contains = 2 + contains = JAR_ANIMAL update_icon() return else if(istype(A, /obj/effect/spider/spiderling)) @@ -35,40 +41,40 @@ user.visible_message("[user] scoops [S] into \the [src].", "You scoop [S] into \the [src].") S.loc = src STOP_PROCESSING(SSobj, S) // No growing inside jars - contains = 3 + contains = JAR_SPIDER update_icon() return /obj/item/glass_jar/attack_self(var/mob/user) switch(contains) - if(1) + if(JAR_MONEY) for(var/obj/O in src) O.loc = user.loc to_chat(user, "You take money out of \the [src].") - contains = 0 + contains = JAR_NOTHING update_icon() return - if(2) + if(JAR_ANIMAL) for(var/mob/M in src) M.loc = user.loc user.visible_message("[user] releases [M] from \the [src].", "You release [M] from \the [src].") - contains = 0 + contains = JAR_NOTHING update_icon() return - if(3) + if(JAR_SPIDER) for(var/obj/effect/spider/spiderling/S in src) S.loc = user.loc user.visible_message("[user] releases [S] from \the [src].", "You release [S] from \the [src].") START_PROCESSING(SSobj, S) // They can grow after being let out though - contains = 0 + contains = JAR_NOTHING update_icon() return /obj/item/glass_jar/attackby(var/obj/item/W, var/mob/user) if(istype(W, /obj/item/weapon/spacecash)) - if(contains == 0) - contains = 1 - if(contains != 1) + if(contains == JAR_NOTHING) + contains = JAR_MONEY + if(contains != JAR_MONEY) return var/obj/item/weapon/spacecash/S = W user.visible_message("[user] puts [S.worth] [S.worth > 1 ? "thalers" : "thaler"] into \the [src].") @@ -80,10 +86,10 @@ underlays.Cut() overlays.Cut() switch(contains) - if(0) + if(JAR_NOTHING) name = initial(name) desc = initial(desc) - if(1) + if(JAR_MONEY) name = "tip jar" desc = "A small jar with money inside." for(var/obj/item/weapon/spacecash/S in src) @@ -92,7 +98,7 @@ money.pixel_y = rand(-6, 6) money.transform *= 0.6 underlays += money - if(2) + if(JAR_ANIMAL) for(var/mob/M in src) var/image/victim = image(M.icon, M.icon_state) victim.pixel_y = 6 @@ -105,10 +111,109 @@ underlays += victim name = "glass jar with [M]" desc = "A small jar with [M] inside." - if(3) + if(JAR_SPIDER) for(var/obj/effect/spider/spiderling/S in src) var/image/victim = image(S.icon, S.icon_state) underlays += victim name = "glass jar with [S]" desc = "A small jar with [S] inside." - return \ No newline at end of file + return + +/obj/item/glass_jar/fish + name = "glass tank" + desc = "A large glass tank." + + var/filled = FALSE + + w_class = ITEMSIZE_NORMAL + + accept_mobs = list(/mob/living/simple_mob/animal/passive/lizard, /mob/living/simple_mob/animal/passive/mouse, /mob/living/simple_mob/animal/sif/leech, /mob/living/simple_mob/animal/sif/frostfly, /mob/living/simple_mob/animal/sif/glitterfly, /mob/living/simple_mob/animal/passive/fish) + +/obj/item/glass_jar/fish/plastic + name = "plastic tank" + desc = "A large plastic tank." + matter = list("plastic" = 4000) + +/obj/item/glass_jar/fish/update_icon() // Also updates name and desc + underlays.Cut() + overlays.Cut() + + if(filled) + underlays += image(icon, "[icon_state]_water") + + switch(contains) + if(JAR_NOTHING) + name = initial(name) + desc = initial(desc) + if(JAR_MONEY) + name = "tip tank" + desc = "A large [name] with money inside." + for(var/obj/item/weapon/spacecash/S in src) + var/image/money = image(S.icon, S.icon_state) + money.pixel_x = rand(-2, 3) + money.pixel_y = rand(-6, 6) + money.transform *= 0.6 + underlays += money + if(JAR_ANIMAL) + for(var/mob/M in src) + var/image/victim = image(M.icon, M.icon_state) + var/initial_x_scale = M.icon_scale_x + var/initial_y_scale = M.icon_scale_y + M.adjust_scale(0.7) + victim.appearance = M.appearance + M.adjust_scale(initial_x_scale, initial_y_scale) + victim.pixel_y = 4 + underlays += victim + name = "[name] with [M]" + desc = "A large [name] with [M] inside." + if(JAR_SPIDER) + for(var/obj/effect/spider/spiderling/S in src) + var/image/victim = image(S.icon, S.icon_state) + underlays += victim + name = "[name] with [S]" + desc = "A large tank with [S] inside." + + if(filled) + desc = "[desc] It contains water." + + return + +/obj/item/glass_jar/fish/afterattack(var/atom/A, var/mob/user, var/proximity) + if(!filled) + if(istype(A, /obj/structure/sink) || istype(A, /turf/simulated/floor/water)) + if(contains && user.a_intent == "help") + to_chat(user, "That probably isn't the best idea.") + return + + to_chat(user, "You fill \the [src] with water!") + filled = TRUE + update_icon() + return + + return ..() + +/obj/item/glass_jar/fish/attack_self(var/mob/user) + if(filled) + if(contains == JAR_ANIMAL) + if(user.a_intent == "help") + to_chat(user, "Maybe you shouldn't empty the water...") + return + + else + filled = FALSE + user.visible_message("[user] dumps out \the [src]'s water!") + update_icon() + return + + else + user.visible_message("[user] dumps \the [src]'s water.") + filled = FALSE + update_icon() + return + + return ..() + +#undef JAR_NOTHING +#undef JAR_MONEY +#undef JAR_ANIMAL +#undef JAR_SPIDER diff --git a/code/game/objects/items/pizza_voucher_vr.dm b/code/game/objects/items/pizza_voucher_vr.dm index e2efd9c6b6..1d48bc9cda 100644 --- a/code/game/objects/items/pizza_voucher_vr.dm +++ b/code/game/objects/items/pizza_voucher_vr.dm @@ -25,7 +25,9 @@ user.visible_message("[user] presses a button on [src]!") desc = desc + " This one seems to be used-up." spent = TRUE - user.visible_message("A small bluespace rift opens just above your head and spits out a pizza box!") + user.visible_message("A small bluespace rift opens just above [user]'s head and spits out a pizza box!", + "A small bluespace rift opens just above your head and spits out a pizza box!", + "You hear a fwoosh followed by a thump.") if(special_delivery) command_announcement.Announce("SPECIAL DELIVERY PIZZA ORDER #[rand(1000,9999)]-[rand(100,999)] HAS BEEN RECIEVED. SHIPMENT DISPATCHED VIA EXTRA-POWERFUL BALLISTIC LAUNCHERS FOR IMMEDIATE DELIVERY! THANK YOU AND ENJOY YOUR PIZZA!", "WE ALWAYS DELIVER!") new /obj/effect/falling_effect/pizza_delivery/special(user.loc) @@ -59,4 +61,4 @@ return INITIALIZE_HINT_LATELOAD /obj/effect/falling_effect/pizza_delivery/special - crushing = TRUE \ No newline at end of file + crushing = TRUE diff --git a/code/game/objects/items/toys_vr.dm b/code/game/objects/items/toys_vr.dm index e609bbc5fa..91c3ed7e06 100644 --- a/code/game/objects/items/toys_vr.dm +++ b/code/game/objects/items/toys_vr.dm @@ -14,6 +14,14 @@ drop_sound = 'sound/voice/weh.ogg' attack_verb = list("raided", "kobolded", "weh'd") +/obj/item/toy/plushie/lizardplushie/resh + name = "security unathi plushie" + desc = "An adorable stuffed toy that resembles an unathi wearing a head of security uniform. Perfect example of a monitor lizard." + icon = 'icons/obj/toy_vr.dmi' + icon_state = "marketable_resh" + pokephrase = "Halt! Sssecurity!" //"Butts!" would be too obvious + attack_verb = list("valided", "justiced", "batoned") + /obj/item/toy/plushie/slimeplushie name = "slime plushie" desc = "An adorable stuffed toy that resembles a slime. It is practically just a hacky sack." diff --git a/code/game/objects/random/misc.dm b/code/game/objects/random/misc.dm index 07a5d46efb..73796038e1 100644 --- a/code/game/objects/random/misc.dm +++ b/code/game/objects/random/misc.dm @@ -473,6 +473,7 @@ //VOREStation Add Start /obj/item/toy/plushie/lizardplushie, /obj/item/toy/plushie/lizardplushie/kobold, + /obj/item/toy/plushie/lizardplushie/resh, /obj/item/toy/plushie/slimeplushie, /obj/item/toy/plushie/box, /obj/item/toy/plushie/borgplushie, diff --git a/code/game/objects/structures/crates_lockers/closets/egg_vr.dm b/code/game/objects/structures/crates_lockers/closets/egg_vr.dm index 3efa8ded8b..ba0809f638 100644 --- a/code/game/objects/structures/crates_lockers/closets/egg_vr.dm +++ b/code/game/objects/structures/crates_lockers/closets/egg_vr.dm @@ -7,6 +7,7 @@ var/icon_closed = "egg" var/icon_opened = "egg_open" var/icon_locked = "egg" + closet_appearance = null open_sound = 'sound/vore/schlorp.ogg' close_sound = 'sound/vore/schlorp.ogg' opened = 0 diff --git a/code/game/objects/structures/crates_lockers/closets/secure/closets_yw.dm b/code/game/objects/structures/crates_lockers/closets/secure/closets_yw.dm index e7ff3d88f2..35b7d9165d 100644 --- a/code/game/objects/structures/crates_lockers/closets/secure/closets_yw.dm +++ b/code/game/objects/structures/crates_lockers/closets/secure/closets_yw.dm @@ -1,6 +1,6 @@ /obj/structure/closet/secure_closet/blueshield name = "blueshield's closet" - req_access = list(access_blueshield) + req_access = list(access_blueshield_exclusive) closet_appearance = /decl/closet_appearance/secure_closet/blueshield storage_capacity = 2.5 * MOB_MEDIUM diff --git a/code/game/objects/structures/crates_lockers/largecrate.dm b/code/game/objects/structures/crates_lockers/largecrate.dm index 7ed37d0620..c9909656f4 100644 --- a/code/game/objects/structures/crates_lockers/largecrate.dm +++ b/code/game/objects/structures/crates_lockers/largecrate.dm @@ -1,7 +1,7 @@ /obj/structure/largecrate name = "large crate" desc = "A hefty wooden crate." - icon = 'icons/obj/storage_vr.dmi' //VOREStation Edit + icon = 'icons/obj/storage.dmi' icon_state = "densecrate" density = 1 var/list/starts_with diff --git a/code/game/objects/structures/medical_stand_vr.dm b/code/game/objects/structures/medical_stand_vr.dm index e32a1a39df..eb3031eca8 100644 --- a/code/game/objects/structures/medical_stand_vr.dm +++ b/code/game/objects/structures/medical_stand_vr.dm @@ -423,7 +423,7 @@ return // If the human is losing too much blood, beep. - if(((H.vessel.get_reagent_amount("blood")/H.species.blood_volume)*100) < BLOOD_VOLUME_SAFE) + if(H.vessel.get_reagent_amount("blood") < H.species.blood_volume*H.species.blood_level_safe) visible_message("\The [src] beeps loudly.") var/datum/reagent/B = H.take_blood(beaker,amount) diff --git a/code/game/turfs/flooring/flooring_premade.dm b/code/game/turfs/flooring/flooring_premade.dm index b6b1e8d4ed..7f67f9e8f5 100644 --- a/code/game/turfs/flooring/flooring_premade.dm +++ b/code/game/turfs/flooring/flooring_premade.dm @@ -317,6 +317,7 @@ name = "tiles" icon_state = "freezer" initial_flooring = /decl/flooring/tiling/freezer + temperature = T0C - 5 // VOREStation Edit: Chillier Freezer Tiles on-start /turf/simulated/floor/lino name = "lino" diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index 3ee9ddccb4..b8abe8619e 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -1468,12 +1468,12 @@ var/datum/announcement/minor/admin_min_announcer = new if(check_rights(R_ADMIN|R_MOD|R_EVENT)) if (H.paralysis == 0) - H.paralysis = 8000 + H.SetParalysis(8000) msg = "has paralyzed [key_name(H)]." log_and_message_admins(msg) else if(alert(src, "[key_name(H)] is paralyzed, would you like to unparalyze them?",,"Yes","No") == "Yes") - H.paralysis = 0 + H.SetParalysis(0) msg = "has unparalyzed [key_name(H)]." log_and_message_admins(msg) diff --git a/code/modules/catalogue/cataloguer_vr.dm b/code/modules/catalogue/cataloguer_vr.dm index d1dfac5dea..8a8322c581 100644 --- a/code/modules/catalogue/cataloguer_vr.dm +++ b/code/modules/catalogue/cataloguer_vr.dm @@ -1,3 +1,6 @@ +/obj/item/device/cataloguer + credit_sharing_range = 280 + /obj/item/device/cataloguer/compact name = "compact cataloguer" icon = 'icons/vore/custom_items_vr.dmi' diff --git a/code/modules/client/preference_setup/global/setting_datums.dm b/code/modules/client/preference_setup/global/setting_datums.dm index 7e99122312..f69d04aa72 100644 --- a/code/modules/client/preference_setup/global/setting_datums.dm +++ b/code/modules/client/preference_setup/global/setting_datums.dm @@ -266,6 +266,18 @@ var/list/_client_preferences_by_type enabled_description = "Enabled" disabled_description = "Disabled" +/datum/client_preference/status_indicators + description = "Status Indicators" + key = "SHOW_STATUS" + enabled_description = "Show" + disabled_description = "Hide" + +/datum/client_preference/status_indicators/toggled(mob/preference_mob, enabled) + . = ..() + if(preference_mob && preference_mob.plane_holder) + var/datum/plane_holder/PH = preference_mob.plane_holder + PH.set_vis(VIS_STATUS, enabled) + /******************** * Staff Preferences * ********************/ diff --git a/code/modules/client/preference_setup/loadout/loadout_accessories.dm b/code/modules/client/preference_setup/loadout/loadout_accessories.dm index 242dc0b777..337aba62fa 100644 --- a/code/modules/client/preference_setup/loadout/loadout_accessories.dm +++ b/code/modules/client/preference_setup/loadout/loadout_accessories.dm @@ -279,3 +279,7 @@ /datum/gear/accessory/cowledvest display_name = "cowled vest" path = /obj/item/clothing/accessory/cowledvest + +/datum/gear/accessory/asymovercoat + display_name = "orange asymmetrical overcoat" + path = /obj/item/clothing/accessory/asymovercoat diff --git a/code/modules/client/preference_setup/loadout/loadout_head.dm b/code/modules/client/preference_setup/loadout/loadout_head.dm index c41bcd6cae..81b5888b37 100644 --- a/code/modules/client/preference_setup/loadout/loadout_head.dm +++ b/code/modules/client/preference_setup/loadout/loadout_head.dm @@ -366,4 +366,20 @@ /datum/gear/head/jingasa display_name = "jingasa" - path = /obj/item/clothing/head/jingasa \ No newline at end of file + path = /obj/item/clothing/head/jingasa + +/datum/gear/head/sunflower_crown + display_name = "sunflower crown" + path = /obj/item/clothing/head/sunflower_crown + +/datum/gear/head/lavender_crown + display_name = "lavender crown" + path = /obj/item/clothing/head/lavender_crown + +/datum/gear/head/poppy_crown + display_name = "poppy crown" + path = /obj/item/clothing/head/poppy_crown + +/datum/gear/head/rose_crown + display_name = "rose crown" + path = /obj/item/clothing/head/rose_crown diff --git a/code/modules/client/preference_setup/loadout/loadout_uniform.dm b/code/modules/client/preference_setup/loadout/loadout_uniform.dm index 6cb522c319..5a213d2186 100644 --- a/code/modules/client/preference_setup/loadout/loadout_uniform.dm +++ b/code/modules/client/preference_setup/loadout/loadout_uniform.dm @@ -580,4 +580,12 @@ /datum/gear/uniform/yellowswoop display_name = "yellow swooped dress" - path = /obj/item/clothing/under/dress/yellowswoop \ No newline at end of file + path = /obj/item/clothing/under/dress/yellowswoop + +/datum/gear/uniform/greenasym + display_name = "green asymmetrical jumpsuit" + path = /obj/item/clothing/under/greenasym + +/datum/gear/uniform/cyberpunkharness + display_name = "cyberpunk strapped harness" + path = /obj/item/clothing/under/cyberpunkharness \ No newline at end of file diff --git a/code/modules/client/preferences_toggle_procs.dm b/code/modules/client/preferences_toggle_procs.dm index 9439c90125..e488badc39 100644 --- a/code/modules/client/preferences_toggle_procs.dm +++ b/code/modules/client/preferences_toggle_procs.dm @@ -334,6 +334,19 @@ You will have to reload VChat and/or reconnect to the server for these changes to take place. \ VChat message persistence is not guaranteed if you change this again before the start of the next round.") +/client/verb/toggle_status_indicators() + set name = "Toggle Status Indicators" + set category = "Preferences" + set desc = "Enable/Disable seeing status indicators over peoples' heads." + + var/pref_path = /datum/client_preference/status_indicators + toggle_preference(pref_path) + SScharacter_setup.queue_preferences_save(prefs) + + to_chat(src, "You will now [(is_preference_enabled(/datum/client_preference/status_indicators)) ? "see" : "not see"] status indicators.") + + feedback_add_details("admin_verb","TStatusIndicators") + // Not attached to a pref datum because those are strict binary toggles /client/verb/toggle_examine_mode() diff --git a/code/modules/clothing/glasses/glasses.dm b/code/modules/clothing/glasses/glasses.dm index f0a9c64d95..06f67f4971 100644 --- a/code/modules/clothing/glasses/glasses.dm +++ b/code/modules/clothing/glasses/glasses.dm @@ -41,28 +41,49 @@ BLIND // can't see anything var/mob/M = src.loc M.update_inv_glasses() +/obj/item/clothing/glasses/proc/can_toggle(mob/living/user) + if(!toggleable) + return FALSE + + // Prevent people from just turning their goggles back on. + if(!active && (vision_flags & (SEE_TURFS|SEE_OBJS))) + var/area/A = get_area(src) + if(A.no_spoilers) + return FALSE + + return TRUE + +/obj/item/clothing/glasses/proc/toggle_active(mob/living/user) + if(active) + active = FALSE + icon_state = off_state + user.update_inv_glasses() + flash_protection = FLASH_PROTECTION_NONE + tint = TINT_NONE + away_planes = enables_planes + enables_planes = null + + else + active = TRUE + icon_state = initial(icon_state) + user.update_inv_glasses() + flash_protection = initial(flash_protection) + tint = initial(tint) + enables_planes = away_planes + away_planes = null + user.update_action_buttons() + user.recalculate_vis() + /obj/item/clothing/glasses/attack_self(mob/user) if(toggleable) - if(active) - active = 0 - icon_state = off_state - user.update_inv_glasses() - flash_protection = FLASH_PROTECTION_NONE - tint = TINT_NONE - away_planes = enables_planes - enables_planes = null - to_chat(usr, "You deactivate the optical matrix on the [src].") + if(!can_toggle(user)) + to_chat(user, span("warning", "You don't seem to be able to toggle \the [src] here.")) else - active = 1 - icon_state = initial(icon_state) - user.update_inv_glasses() - flash_protection = initial(flash_protection) - tint = initial(tint) - enables_planes = away_planes - away_planes = null - to_chat(usr, "You activate the optical matrix on the [src].") - user.update_action_buttons() - user.recalculate_vis() + toggle_active(user) + if(active) + to_chat(user, span("notice", "You activate the optical matrix on the [src].")) + else + to_chat(user, span("notice", "You deactivate the optical matrix on the [src].")) ..() /obj/item/clothing/glasses/meson diff --git a/code/modules/clothing/spacesuits/void/ert.dm b/code/modules/clothing/spacesuits/void/ert.dm index a89ff26f07..b9fe70383d 100644 --- a/code/modules/clothing/spacesuits/void/ert.dm +++ b/code/modules/clothing/spacesuits/void/ert.dm @@ -44,6 +44,18 @@ ..() helmet = new /obj/item/clothing/head/helmet/space/void/responseteam/security //autoinstall the helmet +/obj/item/clothing/suit/space/void/responseteam/janitor + name = "Mark VII-J Emergency Cleanup Response Suit" + icon_state = "ertsuit_j" + item_state = "ertsuit_j" + armor = list(melee = 30, bullet = 20, laser = 20, energy = 20, bomb = 20, bio = 100, rad = 100) //awful armor + slowdown = 0 //light armor means no slowdown + item_flags = NOSLIP //INBUILT NANOGALOSHES + +/obj/item/clothing/suit/space/void/responseteam/janitor/Initialize() + ..() + helmet = new /obj/item/clothing/head/helmet/space/void/responseteam/janitor //autoinstall the helmet + /obj/item/clothing/suit/space/void/responseteam sprite_sheets = list( SPECIES_HUMAN = 'icons/mob/spacesuit_vr.dmi', @@ -137,6 +149,11 @@ icon_state = "erthelmet_s" item_state = "erthelmet_s" +/obj/item/clothing/head/helmet/space/void/responseteam/janitor + name = "Mark VII-J Emergency Cleanup Response Helmet" + icon_state = "erthelmet_j" + item_state = "erthelmet_j" + /obj/item/clothing/head/helmet/space/void/responseteam sprite_sheets = list( SPECIES_HUMAN = 'icons/mob/head_vr.dmi', diff --git a/code/modules/clothing/under/accessories/clothing.dm b/code/modules/clothing/under/accessories/clothing.dm index 1f60ddf4c6..0ef50ce43a 100644 --- a/code/modules/clothing/under/accessories/clothing.dm +++ b/code/modules/clothing/under/accessories/clothing.dm @@ -398,3 +398,8 @@ name = "green asymmetrical jacket" desc = "Insultingly avant-garde in aqua." icon_state = "asym_green" + +/obj/item/clothing/accessory/asymovercoat + name = "orange asymmetrical overcoat" + desc = "An asymmetrical orange overcoat in a 2560's fashion." + icon_state = "asymovercoat" diff --git a/code/modules/clothing/under/miscellaneous.dm b/code/modules/clothing/under/miscellaneous.dm index 1fcddc2b77..3cc22185d4 100644 --- a/code/modules/clothing/under/miscellaneous.dm +++ b/code/modules/clothing/under/miscellaneous.dm @@ -804,6 +804,18 @@ Uniforms and such icon_state = "rippedpunk" index = 1 +/obj/item/clothing/under/greenasym + name = "green asymmetrical jumpsuit" + desc = "A green futuristic uniform with asymmetrical pants. Trendy!" + icon_state = "greenasym" + index = 1 + +/obj/item/clothing/under/cyberpunkharness + name = "cyberpunk strapped harness" + desc = "A cyberpunk styled harness and pants. Perfect for your dystopian future." + icon_state = "cyberhell" + index = 1 + /* * swimsuit */ diff --git a/code/modules/detectivework/tools/rag.dm b/code/modules/detectivework/tools/rag.dm index 2e5223420a..dd22e7c22e 100644 --- a/code/modules/detectivework/tools/rag.dm +++ b/code/modules/detectivework/tools/rag.dm @@ -109,29 +109,37 @@ T.clean(src, user) //VOREStation Edit End /obj/item/weapon/reagent_containers/glass/rag/attack(atom/target as obj|turf|area, mob/user as mob , flag) - if(isliving(target)) + if(isliving(target)) //Leaving this as isliving. var/mob/living/M = target - if(on_fire) + if(on_fire) //Check if rag is on fire, if so igniting them and stopping. user.visible_message("\The [user] hits [target] with [src]!",) user.do_attack_animation(src) M.IgniteMob() - else if(reagents.total_volume) - if(user.zone_sel.selecting == O_MOUTH) - user.do_attack_animation(src) - user.visible_message( - "\The [user] smothers [target] with [src]!", - "You smother [target] with [src]!", - "You hear some struggling and muffled cries of surprise" - ) - - //it's inhaled, so... maybe CHEM_BLOOD doesn't make a whole lot of sense but it's the best we can do for now - reagents.trans_to_mob(target, amount_per_transfer_from_this, CHEM_BLOOD) - update_name() + else if(user.zone_sel.selecting == O_MOUTH) //Check player target location, provided the rag is not on fire. Then check if mouth is exposed. + if(ishuman(target)) //Added this since player species process reagents in majority of cases. + var/mob/living/carbon/human/H = target + if(H.head && (H.head.body_parts_covered & FACE)) //Check human head coverage. + to_chat(user, "Remove their [H.head] first.") + return + else if(reagents.total_volume) //Final check. If the rag is not on fire and their face is uncovered, smother target. + user.do_attack_animation(src) + user.visible_message( + "\The [user] smothers [target] with [src]!", + "You smother [target] with [src]!", + "You hear some struggling and muffled cries of surprise" + ) + //it's inhaled, so... maybe CHEM_BLOOD doesn't make a whole lot of sense but it's the best we can do for now + reagents.trans_to_mob(target, amount_per_transfer_from_this, CHEM_BLOOD) + update_name() + else + to_chat(user, "You can't smother this creature.") else - wipe_down(target, user) - return - - return ..() + to_chat(user, "You can't smother this creature.") + else + wipe_down(target, user) + else + wipe_down(target, user) + return /obj/item/weapon/reagent_containers/glass/rag/afterattack(atom/A as obj|turf|area, mob/user as mob, proximity) if(!proximity) diff --git a/code/modules/detectivework/tools/scanner.dm b/code/modules/detectivework/tools/scanner.dm index b917ddcf38..a3b813f96f 100644 --- a/code/modules/detectivework/tools/scanner.dm +++ b/code/modules/detectivework/tools/scanner.dm @@ -139,7 +139,7 @@ set category = "Object" set src in view(1) - to_world("usr is [usr]") + //to_world("usr is [usr]") //why was this a thing? -KK. display_data(usr) /obj/item/device/detective_scanner/proc/display_data(var/mob/user) diff --git a/code/modules/flufftext/Hallucination.dm b/code/modules/flufftext/Hallucination.dm index 64a31b5bb2..d4c41e0642 100644 --- a/code/modules/flufftext/Hallucination.dm +++ b/code/modules/flufftext/Hallucination.dm @@ -168,12 +168,12 @@ mob/living/carbon/proc/handle_hallucinations() if(71 to 72) //Fake death // src.sleeping_willingly = 1 - src.sleeping = 20 + SetSleeping(20) hal_crit = 1 hal_screwyhud = 1 spawn(rand(50,100)) // src.sleeping_willingly = 0 - src.sleeping = 0 + SetSleeping(0) hal_crit = 0 hal_screwyhud = 0 handling_hal = 0 diff --git a/code/modules/food/food/snacks.dm b/code/modules/food/food/snacks.dm index 9557434372..d65679f6f7 100644 --- a/code/modules/food/food/snacks.dm +++ b/code/modules/food/food/snacks.dm @@ -157,7 +157,7 @@ . = ..() if(Adjacent(user)) if(coating) - to_chat(user, "It's coated in [coating.name]!") + . += "It's coated in [coating.name]!" if(bitecount==0) return . else if (bitecount==1) @@ -4528,12 +4528,14 @@ filling_color = "#DB0000" center_of_mass = list("x"=16, "y"=16) do_coating_prefix = 0 - New() - . = ..() - reagents.add_reagent("protein", 6) - reagents.add_reagent("batter", 1.7) - reagents.add_reagent("oil", 1.5) - bitesize = 2 + bitesize = 2 + + +/obj/item/weapon/reagent_containers/food/snacks/sausage/battered/Initialize() + . = ..() + reagents.add_reagent("protein", 6) + reagents.add_reagent("batter", 1.7) + reagents.add_reagent("oil", 1.5) /obj/item/weapon/reagent_containers/food/snacks/jalapeno_poppers name = "jalapeno popper" @@ -4558,10 +4560,11 @@ icon = 'icons/obj/food_syn.dmi' icon_state = "ratburger" center_of_mass = list("x"=16, "y"=11) - New() - . = ..() - reagents.add_reagent("protein", 4) - bitesize = 2 + bitesize = 2 + +/obj/item/weapon/reagent_containers/food/snacks/mouseburger/Initialize() + . = ..() + reagents.add_reagent("protein", 4) /obj/item/weapon/reagent_containers/food/snacks/chickenkatsu name = "chicken katsu" @@ -4637,13 +4640,13 @@ nutriment_amt = 25 nutriment_desc = list("fried pizza" = 25) center_of_mass = list("x"=16, "y"=11) + bitesize = 2 - New() - . = ..() - reagents.add_reagent("batter", 6.5) - coating = reagents.get_reagent("batter") - reagents.add_reagent("oil", 4) - bitesize = 2 +/obj/item/weapon/reagent_containers/food/snacks/sliceable/pizza/crunch/Initialize() + . = ..() + reagents.add_reagent("batter", 6.5) + coating = reagents.get_reagent("batter") + reagents.add_reagent("oil", 4) /obj/item/weapon/reagent_containers/food/snacks/pizzacrunchslice name = "pizza crunch" @@ -6032,4 +6035,16 @@ /obj/item/weapon/reagent_containers/food/snacks/cosmicbrowniesslice/filled/Initialize() . = ..() - reagents.add_reagent("protein", 1) \ No newline at end of file + reagents.add_reagent("protein", 1) + +/obj/item/weapon/reagent_containers/food/snacks/lasagna + name = "lasagna" + desc = "Meaty, tomato-y, and ready to eat-y. Favorite of cats." + icon = 'icons/obj/food.dmi' + icon_state = "lasagna" + nutriment_amt = 5 + nutriment_desc = list("tomato" = 4, "meat" = 2) + +/obj/item/weapon/reagent_containers/food/snacks/lasagna/Initialize() + ..() + reagents.add_reagent("protein", 2) //For meaty things. diff --git a/code/modules/food/food/snacks_vr.dm b/code/modules/food/food/snacks_vr.dm index d5633dee75..f881d9e43c 100644 --- a/code/modules/food/food/snacks_vr.dm +++ b/code/modules/food/food/snacks_vr.dm @@ -42,20 +42,6 @@ /obj/item/weapon/reagent_containers/food/snacks/slice/sushi/filled/filled filled = TRUE - -/obj/item/weapon/reagent_containers/food/snacks/lasagna - name = "lasagna" - desc = "Meaty, tomato-y, and ready to eat-y. Favorite of cats." - icon = 'icons/obj/food_vr.dmi' - icon_state = "lasagna" - nutriment_amt = 5 - nutriment_desc = list("tomato" = 4, "meat" = 2) - -/obj/item/weapon/reagent_containers/food/snacks/lasagna/Initialize() - ..() - reagents.add_reagent("protein", 2) //For meaty things. - - /obj/item/weapon/reagent_containers/food/snacks/goulash name = "goulash" desc = "Paprika put to good use, finally, in a soup of meat and vegetables." diff --git a/code/modules/food/kitchen/cooking_machines/_appliance.dm b/code/modules/food/kitchen/cooking_machines/_appliance.dm index 265b0c95bc..61666aacff 100644 --- a/code/modules/food/kitchen/cooking_machines/_appliance.dm +++ b/code/modules/food/kitchen/cooking_machines/_appliance.dm @@ -53,12 +53,10 @@ if (!available_recipes) available_recipes = new - for (var/type in subtypesof(/datum/recipe)) - var/datum/recipe/test = new type - if ((appliancetype & test.appliance)) - available_recipes += test - else - qdel(test) + for(var/type in subtypesof(/datum/recipe)) + var/datum/recipe/test = type + if((appliancetype & initial(test.appliance))) + available_recipes += new test /obj/machinery/appliance/Destroy() for (var/a in cooking_objs) @@ -79,7 +77,7 @@ for (var/a in cooking_objs) var/datum/cooking_item/CI = a string += "-\a [CI.container.label(null, CI.combine_target)], [report_progress(CI)]
" - to_chat(user, string) + return string else to_chat(user, "") @@ -125,14 +123,14 @@ return if (!user.IsAdvancedToolUser()) - to_chat(user, "You lack the dexterity to do that!") + to_chat(user, "You lack the dexterity to do that!") return if (user.stat || user.restrained() || user.incapacitated()) return if (!Adjacent(user) && !issilicon(user)) - to_chat(user, "You can't reach [src] from here.") + to_chat(user, "You can't reach [src] from here!") return if (stat & POWEROFF)//Its turned off @@ -234,10 +232,10 @@ //This function is overridden by cookers that do stuff with containers /obj/machinery/appliance/proc/has_space(var/obj/item/I) - if (cooking_objs.len >= max_contents) + if(cooking_objs.len >= max_contents) return FALSE - else return TRUE + return TRUE /obj/machinery/appliance/attackby(var/obj/item/I, var/mob/user) if(!cook_type || (stat & (BROKEN))) @@ -246,12 +244,9 @@ var/result = can_insert(I, user) if(!result) - if(default_deconstruction_screwdriver(user, I)) - return - else if(default_part_replacement(user, I)) - return - else - return + if(!(default_deconstruction_screwdriver(user, I))) + default_part_replacement(user, I) + return if(result == 2) var/obj/item/weapon/grab/G = I @@ -572,17 +567,17 @@ var/datum/cooking_item/CI = menuoptions[selection] eject(CI, user) update_icon() - return 1 - return 0 + return TRUE + return FALSE /obj/machinery/appliance/proc/can_remove_items(var/mob/user) if (!Adjacent(user)) - return 0 + return FALSE if (isanimal(user)) - return 0 + return FALSE - return 1 + return TRUE /obj/machinery/appliance/proc/eject(var/datum/cooking_item/CI, var/mob/user = null) var/obj/item/thing diff --git a/code/modules/food/kitchen/cooking_machines/_cooker.dm b/code/modules/food/kitchen/cooking_machines/_cooker.dm index 1e7193f166..94b40b44b2 100644 --- a/code/modules/food/kitchen/cooking_machines/_cooker.dm +++ b/code/modules/food/kitchen/cooking_machines/_cooker.dm @@ -19,12 +19,12 @@ if(.) //no need to duplicate adjacency check if(!stat) if (temperature < min_temp) - to_chat(user, "\The [src] is still heating up and is too cold to cook anything yet.") + . += "\The [src] is still heating up and is too cold to cook anything yet." else - to_chat(user, "It is running at [round(get_efficiency(), 0.1)]% efficiency!") - to_chat(user, "Temperature: [round(temperature - T0C, 0.1)]C / [round(optimal_temp - T0C, 0.1)]C") + . += "It is running at [round(get_efficiency(), 0.1)]% efficiency!" + . += "Temperature: [round(temperature - T0C, 0.1)]C / [round(optimal_temp - T0C, 0.1)]C" else - to_chat(user, "It is switched off.") + . += "It is switched off." /obj/machinery/appliance/cooker/list_contents(var/mob/user) if (cooking_objs.len) diff --git a/code/modules/food/kitchen/cooking_machines/_mixer.dm b/code/modules/food/kitchen/cooking_machines/_mixer.dm index 18b75998d9..ce17e55d91 100644 --- a/code/modules/food/kitchen/cooking_machines/_mixer.dm +++ b/code/modules/food/kitchen/cooking_machines/_mixer.dm @@ -17,7 +17,7 @@ fundamental differences /obj/machinery/appliance/mixer/examine(var/mob/user) . = ..() if(Adjacent(user)) - to_chat(user, "It is currently set to make a [selected_option]") + . += "It is currently set to make a [selected_option]" /obj/machinery/appliance/mixer/Initialize() . = ..() @@ -27,7 +27,7 @@ fundamental differences //Mixers cannot-not do combining mode. So the default option is removed from this. A combine target must be chosen /obj/machinery/appliance/mixer/choose_output() - set src in oview(1) + set src in view(1) set name = "Choose output" set category = "Object" @@ -91,7 +91,7 @@ fundamental differences /obj/machinery/appliance/mixer/toggle_power() - set src in view() + set src in view(1) set name = "Toggle Power" set category = "Object" diff --git a/code/modules/food/kitchen/cooking_machines/fryer.dm b/code/modules/food/kitchen/cooking_machines/fryer.dm index f3ab3df0bb..941c7d6b64 100644 --- a/code/modules/food/kitchen/cooking_machines/fryer.dm +++ b/code/modules/food/kitchen/cooking_machines/fryer.dm @@ -14,6 +14,8 @@ active_power_usage = 12 KILOWATTS heating_power = 12000 + light_y = 15 + min_temp = 140 + T0C // Same as above, increasing this to just under 2x to make the % increase on efficiency not quite so painful as it would be at 80. optimal_temp = 400 + T0C // Increasing this to be 2x Oven to allow for a much higher/realistic frying temperatures. Doesn't really do anything but make heating the fryer take a bit longer. optimal_power = 0.95 // .35 higher than the default to give fryers faster cooking speed. @@ -55,6 +57,19 @@ if(Adjacent(user)) to_chat(user, "Oil Level: [oil.total_volume]/[optimal_oil]") +/obj/machinery/appliance/cooker/fryer/update_icon() // We add our own version of the proc to use the special fryer double-lights. + cut_overlays() + var/image/light + if(use_power == 1 && !stat) + light = image(icon, "fryer_light_idle") + else if(use_power == 2 && !stat) + light = image(icon, "fryer_light_preheating") + else + light = image(icon, "fryer_light_off") + light.pixel_x = light_x + light.pixel_y = light_y + add_overlay(light) + /obj/machinery/appliance/cooker/fryer/heat_up() if (..()) //Set temperature of oil reagent diff --git a/code/modules/food/kitchen/cooking_machines/oven.dm b/code/modules/food/kitchen/cooking_machines/oven.dm index 2c0c8b6c2e..df9394f599 100644 --- a/code/modules/food/kitchen/cooking_machines/oven.dm +++ b/code/modules/food/kitchen/cooking_machines/oven.dm @@ -17,7 +17,8 @@ //uses ~30% power to stay warm optimal_power = 0.8 // Oven cooks .2 faster than the default speed. - light_x = 2 + light_x = 3 + light_y = 4 max_contents = 5 container_type = /obj/item/weapon/reagent_containers/cooking_container/oven diff --git a/code/modules/food/recipe.dm b/code/modules/food/recipe.dm index e5b5a02eb0..8c7f1092bd 100644 --- a/code/modules/food/recipe.dm +++ b/code/modules/food/recipe.dm @@ -71,31 +71,31 @@ // This is a bitfield, more than one type can be used // Grill is presently unused and not listed -/datum/recipe/proc/check_reagents(var/datum/reagents/avail_reagents) +/datum/recipe/proc/check_reagents(var/datum/reagents/avail_reagents, var/exact = FALSE) if(!reagents || !reagents.len) - return 1 + return TRUE if(!avail_reagents) - return 0 + return FALSE - . = 1 + . = TRUE for(var/r_r in reagents) var/aval_r_amnt = avail_reagents.get_reagent_amount(r_r) if(aval_r_amnt - reagents[r_r] >= 0) - if(aval_r_amnt>reagents[r_r]) - . = 0 + if(aval_r_amnt>(reagents[r_r]) && exact) + . = FALSE else - return -1 + return FALSE if((reagents?(reagents.len):(0)) < avail_reagents.reagent_list.len) - return 0 + return FALSE return . -/datum/recipe/proc/check_fruit(var/obj/container) +/datum/recipe/proc/check_fruit(var/obj/container, var/exact = FALSE) if (!fruit || !fruit.len) - return 1 + return TRUE - . = 1 + . = TRUE if(fruit && fruit.len) var/list/checklist = list() // You should trust Copy(). @@ -107,18 +107,18 @@ checklist[G.seed.kitchen_tag]-- for(var/ktag in checklist) if(!isnull(checklist[ktag])) - if(checklist[ktag] < 0) - . = 0 + if(checklist[ktag] < 0 && exact) + . = FALSE else if(checklist[ktag] > 0) - . = -1 + . = FALSE break return . -/datum/recipe/proc/check_items(var/obj/container as obj) +/datum/recipe/proc/check_items(var/obj/container as obj, var/exact = FALSE) if(!items || !items.len) - return 1 + return TRUE - . = 1 + . = TRUE if(items && items.len) var/list/checklist = list() checklist = items.Copy() // You should really trust Copy @@ -127,50 +127,50 @@ for(var/obj/O in ((machine.contents - machine.component_parts) - machine.circuit)) if(istype(O,/obj/item/weapon/reagent_containers/food/snacks/grown)) continue // Fruit is handled in check_fruit(). - var/found = 0 + var/found = FALSE for(var/i = 1; i < checklist.len+1; i++) var/item_type = checklist[i] if (istype(O,item_type)) checklist.Cut(i, i+1) - found = 1 + found = TRUE break - if(!found) - . = 0 + if(!found && exact) + return FALSE else for(var/obj/O in container.contents) if(istype(O,/obj/item/weapon/reagent_containers/food/snacks/grown)) continue // Fruit is handled in check_fruit(). - var/found = 0 + var/found = FALSE for(var/i = 1; i < checklist.len+1; i++) var/item_type = checklist[i] if (istype(O,item_type)) if(check_coating(O)) checklist.Cut(i, i+1) - found = 1 + found = TRUE break - if (!found) - . = 0 + if (!found && exact) + return FALSE if(checklist.len) - . = -1 + return FALSE return . //This is called on individual items within the container. -/datum/recipe/proc/check_coating(var/obj/O) +/datum/recipe/proc/check_coating(var/obj/O, var/exact = FALSE) if(!istype(O,/obj/item/weapon/reagent_containers/food/snacks)) - return 1//Only snacks can be battered + return TRUE //Only snacks can be battered if (coating == -1) - return 1 //-1 value doesnt care + return TRUE //-1 value doesnt care var/obj/item/weapon/reagent_containers/food/snacks/S = O if (!S.coating) if (!coating) - return 1 - return 0 + return TRUE + return FALSE else if (S.coating.type == coating) - return 1 + return TRUE - return 0 + return FALSE //general version /datum/recipe/proc/make(var/obj/container as obj) @@ -308,7 +308,7 @@ /proc/select_recipe(var/list/datum/recipe/available_recipes, var/obj/obj as obj, var/exact) var/list/datum/recipe/possible_recipes = list() for (var/datum/recipe/recipe in available_recipes) - if((recipe.check_reagents(obj.reagents) < exact) || (recipe.check_items(obj) < exact) || (recipe.check_fruit(obj) < exact)) + if(!recipe.check_reagents(obj.reagents, exact) || !recipe.check_items(obj, exact) || !recipe.check_fruit(obj, exact)) continue possible_recipes |= recipe if (!possible_recipes.len) diff --git a/code/modules/food/recipes_fryer.dm b/code/modules/food/recipes_fryer.dm index b0347d154d..a5a3fee6e7 100644 --- a/code/modules/food/recipes_fryer.dm +++ b/code/modules/food/recipes_fryer.dm @@ -6,6 +6,7 @@ result = /obj/item/weapon/reagent_containers/food/snacks/fries /datum/recipe/cheesyfries + appliance = FRYER items = list( /obj/item/weapon/reagent_containers/food/snacks/fries, /obj/item/weapon/reagent_containers/food/snacks/cheesewedge, @@ -100,13 +101,11 @@ ) result = /obj/item/weapon/reagent_containers/food/snacks/donut/poisonberry -/datum/recipe/jellydonut/slime - appliance = FRYER +/datum/recipe/jellydonut/slime // Subtypes of jellydonut, appliance inheritance applies. reagents = list("slimejelly" = 5, "sugar" = 5) result = /obj/item/weapon/reagent_containers/food/snacks/donut/slimejelly -/datum/recipe/jellydonut/cherry - appliance = FRYER +/datum/recipe/jellydonut/cherry // Subtypes of jellydonut, appliance inheritance applies. reagents = list("cherryjelly" = 5, "sugar" = 5) result = /obj/item/weapon/reagent_containers/food/snacks/donut/cherryjelly @@ -177,4 +176,4 @@ /obj/item/weapon/reagent_containers/food/snacks/meat, /obj/item/weapon/reagent_containers/food/snacks/meat ) - result = /obj/item/weapon/storage/box/wings //This is kinda like the donut box. \ No newline at end of file + result = /obj/item/weapon/storage/box/wings //This is kinda like the donut box. diff --git a/code/modules/food/recipes_microwave.dm b/code/modules/food/recipes_microwave.dm index 1245c7e021..22a61e0d37 100644 --- a/code/modules/food/recipes_microwave.dm +++ b/code/modules/food/recipes_microwave.dm @@ -208,10 +208,11 @@ I said no! /datum/recipe/amanitajelly reagents = list("water" = 5, "vodka" = 5, "amatoxin" = 5) result = /obj/item/weapon/reagent_containers/food/snacks/amanitajelly - make_food(var/obj/container as obj) - . = ..(container) - for(var/obj/item/weapon/reagent_containers/food/snacks/amanitajelly/being_cooked in .) - being_cooked.reagents.del_reagent("amatoxin") + +/datum/recipe/amanitajelly/make_food(var/obj/container as obj) + . = ..(container) + for(var/obj/item/weapon/reagent_containers/food/snacks/amanitajelly/being_cooked in .) + being_cooked.reagents.del_reagent("amatoxin") /datum/recipe/meatballsoup fruit = list("carrot" = 1, "potato" = 1) @@ -531,11 +532,11 @@ I said no! fruit = list("potato" = 1, "ambrosia" = 3) items = list(/obj/item/weapon/reagent_containers/food/snacks/meatball) result = /obj/item/weapon/reagent_containers/food/snacks/validsalad - make_food(var/obj/container as obj) - - . = ..(container) - for (var/obj/item/weapon/reagent_containers/food/snacks/validsalad/being_cooked in .) - being_cooked.reagents.del_reagent("toxin") + +/datum/recipe/validsalad/make_food(var/obj/container as obj) + . = ..(container) + for (var/obj/item/weapon/reagent_containers/food/snacks/validsalad/being_cooked in .) + being_cooked.reagents.del_reagent("toxin") /datum/recipe/stuffing reagents = list("water" = 5, "sodiumchloride" = 1, "blackpepper" = 1) @@ -1028,7 +1029,6 @@ I said no! ) result = /obj/item/weapon/reagent_containers/food/snacks/sashimi - /datum/recipe/nugget reagents = list("flour" = 5) items = list( diff --git a/code/modules/food/recipes_oven.dm b/code/modules/food/recipes_oven.dm index 3f89560372..7a477cf943 100644 --- a/code/modules/food/recipes_oven.dm +++ b/code/modules/food/recipes_oven.dm @@ -83,6 +83,7 @@ result = /obj/item/weapon/reagent_containers/food/snacks/flatbread /datum/recipe/tortilla + appliance = OVEN reagents = list("flour" = 5) items = list( /obj/item/weapon/reagent_containers/food/snacks/sliceable/flatdough diff --git a/code/modules/materials/material_recipes.dm b/code/modules/materials/material_recipes.dm index a5079be720..2efef5783f 100644 --- a/code/modules/materials/material_recipes.dm +++ b/code/modules/materials/material_recipes.dm @@ -138,6 +138,7 @@ recipes += new/datum/stack_recipe("water-cooler", /obj/structure/reagent_dispensers/water_cooler, 4, time = 10, one_per_turf = 1, on_floor = 1, pass_stack_color = TRUE) recipes += new/datum/stack_recipe("lampshade", /obj/item/weapon/lampshade, 1, time = 1, pass_stack_color = TRUE) recipes += new/datum/stack_recipe("plastic net", /obj/item/weapon/material/fishing_net, 25, time = 1 MINUTE, pass_stack_color = TRUE) + recipes += new/datum/stack_recipe("plastic fishtank", /obj/item/glass_jar/fish/plastic, 2, time = 30 SECONDS) /material/wood/generate_recipes() ..() diff --git a/code/modules/mob/_modifiers/modifiers.dm b/code/modules/mob/_modifiers/modifiers.dm index af463d6f32..66afd732a2 100644 --- a/code/modules/mob/_modifiers/modifiers.dm +++ b/code/modules/mob/_modifiers/modifiers.dm @@ -20,7 +20,10 @@ var/light_intensity = null // Ditto. Not implemented yet. var/mob_overlay_state = null // Icon_state for an overlay to apply to a (human) mob while this exists. This is actually implemented. var/client_color = null // If set, the client will have the world be shown in this color, from their perspective. - var/wire_colors_replace = null // If set, the client will have wires replaced by the given replacement list. For colorblindness. + var/wire_colors_replace = null // If set, the client will have wires replaced by the given replacement list. For colorblindness. //VOREStation Add + var/list/filter_parameters = null // If set, will add a filter to the holder with the parameters in this var. Must be a list. + var/filter_priority = 1 // Used to make filters be applied in a specific order, if that is important. + var/filter_instance = null // Instance of a filter created with the `filter_parameters` list. This exists to make `animate()` calls easier. Don't set manually. // Now for all the different effects. // Percentage modifiers are expressed as a multipler. (e.g. +25% damage should be written as 1.25) @@ -83,6 +86,8 @@ holder.update_transform() if(client_color) holder.update_client_color() + if(LAZYLEN(filter_parameters)) + holder.remove_filter(REF(src)) qdel(src) // Override this for special effects when it gets added to the mob. @@ -151,6 +156,9 @@ update_transform() if(mod.client_color) update_client_color() + if(LAZYLEN(mod.filter_parameters)) + add_filter(REF(mod), mod.filter_priority, mod.filter_parameters) + mod.filter_instance = get_filter(REF(mod)) return mod diff --git a/code/modules/mob/_modifiers/modifiers_misc.dm b/code/modules/mob/_modifiers/modifiers_misc.dm index e7af15895c..2efa5c0ef9 100644 --- a/code/modules/mob/_modifiers/modifiers_misc.dm +++ b/code/modules/mob/_modifiers/modifiers_misc.dm @@ -388,3 +388,13 @@ the artifact triggers the rage. if(holder.stat != DEAD) holder.visible_message("\The [holder] collapses, the life draining from their body.") holder.death() + +/datum/modifier/outline_test + name = "Outline Test" + desc = "This only exists to prove filter effects work and gives an example of how to animate() the resulting filter object." + + filter_parameters = list(type = "outline", size = 1, color = "#FFFFFF", flags = OUTLINE_SHARP) + +/datum/modifier/outline_test/tick() + animate(filter_instance, size = 3, time = 0.25 SECONDS) + animate(size = 1, 0.25 SECONDS) \ No newline at end of file diff --git a/code/modules/mob/living/bot/bot.dm b/code/modules/mob/living/bot/bot.dm index 4ea28b3eea..0822dca375 100644 --- a/code/modules/mob/living/bot/bot.dm +++ b/code/modules/mob/living/bot/bot.dm @@ -68,9 +68,9 @@ if(health <= 0) death() return - weakened = 0 - stunned = 0 - paralysis = 0 + SetWeakened(0) + SetStunned(0) + SetParalysis(0) if(on && !client && !busy) spawn(0) diff --git a/code/modules/mob/living/carbon/alien/life.dm b/code/modules/mob/living/carbon/alien/life.dm index 370ec77422..43bcdde499 100644 --- a/code/modules/mob/living/carbon/alien/life.dm +++ b/code/modules/mob/living/carbon/alien/life.dm @@ -59,7 +59,7 @@ adjustHalLoss(-3) if (mind) if(mind.active && client != null) - sleeping = max(sleeping-1, 0) + AdjustSleeping(-1) blinded = 1 set_stat(UNCONSCIOUS) else if(resting) diff --git a/code/modules/mob/living/carbon/brain/login.dm b/code/modules/mob/living/carbon/brain/login.dm index e90297dfe5..107b8e0ab7 100644 --- a/code/modules/mob/living/carbon/brain/login.dm +++ b/code/modules/mob/living/carbon/brain/login.dm @@ -1,3 +1,3 @@ /mob/living/carbon/brain/Login() ..() - sleeping = 0 \ No newline at end of file + SetSleeping(0) \ No newline at end of file diff --git a/code/modules/mob/living/carbon/carbon.dm b/code/modules/mob/living/carbon/carbon.dm index dde3927a59..fa55f0c087 100644 --- a/code/modules/mob/living/carbon/carbon.dm +++ b/code/modules/mob/living/carbon/carbon.dm @@ -136,7 +136,7 @@ to_chat(src, "Oh god, everything's spinning!") Confuse(max(0,confuse_dur)) if(species.emp_sensitivity & EMP_WEAKEN) - if(weaken_dur >= 1) + if(weaken_dur >= 1) to_chat(src, "Your limbs go slack!") Weaken(max(0,weaken_dur)) //physical damage block, deals (minor-4) 5-15, 10-20, 15-25, 20-30 (extreme-1) of *each* type @@ -287,7 +287,7 @@ M.visible_message("[M] shakes [src] trying to wake [T.him] up!", \ "You shake [src], but [T.he] [T.does] not respond... Maybe [T.he] [T.has] S.S.D?") else if(lying || src.sleeping) - src.sleeping = max(0,src.sleeping-5) + AdjustSleeping(-5) if(src.sleeping == 0) src.resting = 0 if(H) H.in_stasis = 0 //VOREStation Add - Just In Case @@ -403,7 +403,7 @@ to_chat(usr, "You are already sleeping") return if(alert(src,"You sure you want to sleep for a while?","Sleep","Yes","No") == "Yes") - usr.sleeping = 20 //Short nap + usr.AdjustSleeping(20) /mob/living/carbon/Bump(atom/A) if(now_pushing) diff --git a/code/modules/mob/living/carbon/human/emote.dm b/code/modules/mob/living/carbon/human/emote.dm index 07653c5f71..b01bce1aa6 100644 --- a/code/modules/mob/living/carbon/human/emote.dm +++ b/code/modules/mob/living/carbon/human/emote.dm @@ -240,7 +240,7 @@ message = "faints." if(sleeping) return //Can't faint while asleep - sleeping += 10 //Short-short nap + Sleeping(10) m_type = 1 if("cough", "coughs") diff --git a/code/modules/mob/living/carbon/human/human.dm b/code/modules/mob/living/carbon/human/human.dm index 3c3be42243..17c2e87969 100644 --- a/code/modules/mob/living/carbon/human/human.dm +++ b/code/modules/mob/living/carbon/human/human.dm @@ -1676,8 +1676,8 @@ if(species?.flags & NO_BLOOD) bloodtrail = 0 else - var/blood_volume = round((vessel.get_reagent_amount("blood")/species.blood_volume)*100) - if(blood_volume < BLOOD_VOLUME_SURVIVE) + var/blood_volume = vessel.get_reagent_amount("blood") + if(blood_volume < species?.blood_volume*species?.blood_level_fatal) bloodtrail = 0 //Most of it's gone already, just leave it be else vessel.remove_reagent("blood", 1) @@ -1687,6 +1687,26 @@ T.add_blood(src) . = ..() +// Tries to turn off item-based things that let you see through walls, like mesons. +// Certain stuff like genetic xray vision is allowed to be kept on. +/mob/living/carbon/human/disable_spoiler_vision() + // Glasses. + if(istype(glasses, /obj/item/clothing/glasses)) + var/obj/item/clothing/glasses/goggles = glasses + if(goggles.active && (goggles.vision_flags & (SEE_TURFS|SEE_OBJS))) + goggles.toggle_active(src) + to_chat(src, span("warning", "Your [goggles.name] have suddenly turned off!")) + + // RIGs. + var/obj/item/weapon/rig/rig = get_rig() + if(istype(rig) && rig.visor?.active && rig.visor.vision?.glasses) + var/obj/item/clothing/glasses/rig_goggles = rig.visor.vision.glasses + if(rig_goggles.vision_flags & (SEE_TURFS|SEE_OBJS)) + rig.visor.deactivate() + to_chat(src, span("warning", "\The [rig]'s visor has shuddenly deactivated!")) + + ..() + /mob/living/carbon/human/reduce_cuff_time() if(istype(gloves, /obj/item/clothing/gloves/gauntlets/rig)) return 2 diff --git a/code/modules/mob/living/carbon/human/life.dm b/code/modules/mob/living/carbon/human/life.dm index b08e4e2c3d..b29afe4da5 100644 --- a/code/modules/mob/living/carbon/human/life.dm +++ b/code/modules/mob/living/carbon/human/life.dm @@ -1103,7 +1103,7 @@ drowsyness = max(0, drowsyness - 1) eye_blurry = max(2, eye_blurry) if (prob(5)) - sleeping += 1 + Sleeping(1) Paralyse(5) // If you're dirty, your gloves will become dirty, too. @@ -1258,7 +1258,14 @@ if(blinded) overlay_fullscreen("blind", /obj/screen/fullscreen/blind) throw_alert("blind", /obj/screen/alert/blind) - + + else + clear_fullscreens() + clear_alert("blind") + + if(blinded) + overlay_fullscreen("blind", /obj/screen/fullscreen/blind) + else if(!machine) clear_fullscreens() clear_alert("blind") @@ -1321,6 +1328,11 @@ sight &= ~(SEE_TURFS|SEE_MOBS|SEE_OBJS) see_invisible = see_in_dark>2 ? SEE_INVISIBLE_LEVEL_ONE : see_invisible_default + // Do this early so certain stuff gets turned off before vision is assigned. + var/area/A = get_area(src) + if(A?.no_spoilers) + disable_spoiler_vision() + if(XRAY in mutations) sight |= SEE_TURFS|SEE_MOBS|SEE_OBJS see_in_dark = 8 @@ -1591,7 +1603,7 @@ if(Pump) temp += Pump.standard_pulse_level - PULSE_NORM - if(round(vessel.get_reagent_amount("blood")) <= BLOOD_VOLUME_BAD) //how much blood do we have + if(round(vessel.get_reagent_amount("blood")) <= species.blood_volume*species.blood_level_danger) //how much blood do we have temp = temp + 3 //not enough :( if(status_flags & FAKEDEATH) diff --git a/code/modules/mob/living/carbon/human/species/outsider/vox_vr.dm b/code/modules/mob/living/carbon/human/species/outsider/vox_vr.dm index 422c95be92..d4a96209dd 100644 --- a/code/modules/mob/living/carbon/human/species/outsider/vox_vr.dm +++ b/code/modules/mob/living/carbon/human/species/outsider/vox_vr.dm @@ -1,3 +1,4 @@ /datum/species/vox default_language = LANGUAGE_GALCOM + secondary_langs = list(LANGUAGE_VOX) speech_sounds = list() // Remove obnoxious noises on every single 'say'. Should really only be a thing for event-exclusive species like benos. \ No newline at end of file diff --git a/code/modules/mob/living/carbon/human/species/species.dm b/code/modules/mob/living/carbon/human/species/species.dm index 619e011510..237428e24b 100644 --- a/code/modules/mob/living/carbon/human/species/species.dm +++ b/code/modules/mob/living/carbon/human/species/species.dm @@ -43,6 +43,10 @@ var/short_sighted // Permanent weldervision. var/blood_volume = 560 // Initial blood volume. var/bloodloss_rate = 1 // Multiplier for how fast a species bleeds out. Higher = Faster + var/blood_level_safe = 0.85 //"Safe" blood level; above this, you're OK + var/blood_level_warning = 0.75 //"Warning" blood level; above this, you're a bit woozy and will have low-level oxydamage (no more than 20, or 15 with inap) + var/blood_level_danger = 0.6 //"Danger" blood level; above this, you'll rapidly take up to 50 oxyloss, and it will then steadily accumulate at a lower rate + var/blood_level_fatal = 0.4 //"Fatal" blood level; below this, you take extremely high oxydamage var/hunger_factor = 0.05 // Multiplier for hunger. var/active_regen_mult = 1 // Multiplier for 'Regenerate' power speed, in human_powers.dm diff --git a/code/modules/mob/living/carbon/human/species/station/blank_vr.dm b/code/modules/mob/living/carbon/human/species/station/blank_vr.dm index 2c70bef929..6fd2e5db2d 100644 --- a/code/modules/mob/living/carbon/human/species/station/blank_vr.dm +++ b/code/modules/mob/living/carbon/human/species/station/blank_vr.dm @@ -93,6 +93,8 @@ //Set up a mob H.species = new_copy + H.maxHealth = new_copy.total_health + H.hunger_rate = new_copy.hunger_factor if(new_copy.holder_type) H.holder_type = new_copy.holder_type diff --git a/code/modules/mob/living/carbon/human/species/station/protean_vr/protean_blob.dm b/code/modules/mob/living/carbon/human/species/station/protean_vr/protean_blob.dm index 6c33b9c300..282f8b6c3d 100644 --- a/code/modules/mob/living/carbon/human/species/station/protean_vr/protean_blob.dm +++ b/code/modules/mob/living/carbon/human/species/station/protean_vr/protean_blob.dm @@ -298,6 +298,12 @@ return ..() +var/global/list/disallowed_protean_accessories = list( + /obj/item/clothing/accessory/holster, + /obj/item/clothing/accessory/storage, + /obj/item/clothing/accessory/armor + ) + // Helpers - Unsafe, WILL perform change. /mob/living/carbon/human/proc/nano_intoblob() var/panel_was_up = FALSE @@ -343,7 +349,8 @@ var/obj/item/clothing/uniform = w_uniform if(LAZYLEN(uniform.accessories)) for(var/obj/item/clothing/accessory/A in uniform.accessories) - uniform.remove_accessory(null,A) //First param is user, but adds fingerprints and messages + if(is_type_in_list(A, disallowed_protean_accessories)) + uniform.remove_accessory(null,A) //First param is user, but adds fingerprints and messages //Size update blob.transform = matrix()*size_multiplier diff --git a/code/modules/mob/living/carbon/human/species/station/traits_vr/neutral.dm b/code/modules/mob/living/carbon/human/species/station/traits_vr/neutral.dm index 3723f672bc..7342c7c443 100644 --- a/code/modules/mob/living/carbon/human/species/station/traits_vr/neutral.dm +++ b/code/modules/mob/living/carbon/human/species/station/traits_vr/neutral.dm @@ -68,16 +68,16 @@ /* YW Commented out will be moved to Positive/Negative for map balance /datum/trait/coldadapt name = "Cold-Adapted" - desc = "You are able to withstand much colder temperatures than other species, and can even be comfortable in extremely cold environments. You are also more vulnerable to hot environments as a consequence of these adaptations." + desc = "You are able to withstand much colder temperatures than other species, and can even be comfortable in extremely cold environments. You are also more vulnerable to hot environments, and have a lower body temperature as a consequence of these adaptations." cost = 0 - var_changes = list("cold_level_1" = 200, "cold_level_2" = 150, "cold_level_3" = 90, "breath_cold_level_1" = 180, "breath_cold_level_2" = 100, "breath_cold_level_3" = 60, "cold_discomfort_level" = 210, "heat_level_1" = 305, "heat_level_2" = 360, "heat_level_3" = 700, "breath_heat_level_1" = 345, "breath_heat_level_2" = 380, "breath_heat_level_3" = 780, "heat_discomfort_level" = 295) + var_changes = list("cold_level_1" = 200, "cold_level_2" = 150, "cold_level_3" = 90, "breath_cold_level_1" = 180, "breath_cold_level_2" = 100, "breath_cold_level_3" = 60, "cold_discomfort_level" = 210, "heat_level_1" = 305, "heat_level_2" = 360, "heat_level_3" = 700, "breath_heat_level_1" = 345, "breath_heat_level_2" = 380, "breath_heat_level_3" = 780, "heat_discomfort_level" = 295, "body_temperature" = 290) excludes = list(/datum/trait/hotadapt) /datum/trait/hotadapt name = "Heat-Adapted" - desc = "You are able to withstand much hotter temperatures than other species, and can even be comfortable in extremely hot environments. You are also more vulnerable to cold environments as a consequence of these adaptations." + desc = "You are able to withstand much hotter temperatures than other species, and can even be comfortable in extremely hot environments. You are also more vulnerable to cold environments, and have a higher body temperature as a consequence of these adaptations." cost = 0 - var_changes = list("heat_level_1" = 420, "heat_level_2" = 460, "heat_level_3" = 1100, "breath_heat_level_1" = 440, "breath_heat_level_2" = 510, "breath_heat_level_3" = 1500, "heat_discomfort_level" = 390, "cold_level_1" = 280, "cold_level_2" = 220, "cold_level_3" = 140, "breath_cold_level_1" = 260, "breath_cold_level_2" = 240, "breath_cold_level_3" = 120, "cold_discomfort_level" = 280) + var_changes = list("heat_level_1" = 420, "heat_level_2" = 460, "heat_level_3" = 1100, "breath_heat_level_1" = 440, "breath_heat_level_2" = 510, "breath_heat_level_3" = 1500, "heat_discomfort_level" = 390, "cold_level_1" = 280, "cold_level_2" = 220, "cold_level_3" = 140, "breath_cold_level_1" = 260, "breath_cold_level_2" = 240, "breath_cold_level_3" = 120, "cold_discomfort_level" = 280, "body_temperature" = 330) excludes = list(/datum/trait/coldadapt) YW change end */ diff --git a/code/modules/mob/living/life.dm b/code/modules/mob/living/life.dm index 1076c1fc94..a74a4a22b3 100644 --- a/code/modules/mob/living/life.dm +++ b/code/modules/mob/living/life.dm @@ -45,7 +45,10 @@ //Check if we're on fire handle_fire() - + + // Handle re-running ambience to mobs if they've remained in an area. + handle_ambience() + //stuff in the stomach //handle_stomach() //VOREStation Code @@ -89,6 +92,12 @@ /mob/living/proc/handle_stomach() return +/mob/living/proc/handle_ambience() // If you're in an ambient area and have not moved out of it for x time, we're going to play ambience again to you, to help break up the silence. + if(world.time >= (lastareachange + 30 SECONDS)) // Every 30 seconds, we're going to run a 35% chance to play ambience. + var/area/A = get_area(src) + if(A) + A.play_ambience(src) + /mob/living/proc/update_pulling() if(pulling) if(incapacitated()) @@ -126,7 +135,7 @@ /mob/living/proc/handle_weakened() if(weakened) - weakened = max(weakened-1,0) + AdjustWeakened(-1) throw_alert("weakened", /obj/screen/alert/weakened) else clear_alert("weakened") @@ -181,7 +190,7 @@ throw_alert("blind", /obj/screen/alert/blind) else clear_alert("blind") - + if(eye_blurry) //blurry eyes heal slowly eye_blurry = max(eye_blurry-1, 0) diff --git a/code/modules/mob/living/living.dm b/code/modules/mob/living/living.dm index 08d7a7ae8c..e8e5fd3361 100644 --- a/code/modules/mob/living/living.dm +++ b/code/modules/mob/living/living.dm @@ -491,6 +491,15 @@ default behaviour is: if(!isnull(M.disable_duration_percent)) amount = round(amount * M.disable_duration_percent) ..(amount) + if(stunned > 0) + add_status_indicator("stunned") + +/mob/living/SetStunned(amount) + ..() + if(stunned <= 0) + remove_status_indicator("stunned") + else + add_status_indicator("stunned") /mob/living/AdjustStunned(amount) if(amount > 0) @@ -498,12 +507,25 @@ default behaviour is: if(!isnull(M.disable_duration_percent)) amount = round(amount * M.disable_duration_percent) ..(amount) + if(stunned <= 0) + remove_status_indicator("stunned") + else + add_status_indicator("stunned") /mob/living/Weaken(amount) for(var/datum/modifier/M in modifiers) if(!isnull(M.disable_duration_percent)) amount = round(amount * M.disable_duration_percent) ..(amount) + if(weakened > 0) + add_status_indicator("weakened") + +/mob/living/SetWeakened(amount) + ..() + if(weakened <= 0) + remove_status_indicator("weakened") + else + add_status_indicator("weakened") /mob/living/AdjustWeakened(amount) if(amount > 0) @@ -511,12 +533,25 @@ default behaviour is: if(!isnull(M.disable_duration_percent)) amount = round(amount * M.disable_duration_percent) ..(amount) + if(weakened <= 0) + remove_status_indicator("weakened") + else + add_status_indicator("weakened") /mob/living/Paralyse(amount) for(var/datum/modifier/M in modifiers) if(!isnull(M.disable_duration_percent)) amount = round(amount * M.disable_duration_percent) ..(amount) + if(paralysis > 0) + add_status_indicator("paralysis") + +/mob/living/SetParalysis(amount) + ..() + if(paralysis <= 0) + remove_status_indicator("paralysis") + else + add_status_indicator("paralysis") /mob/living/AdjustParalysis(amount) if(amount > 0) @@ -524,12 +559,25 @@ default behaviour is: if(!isnull(M.disable_duration_percent)) amount = round(amount * M.disable_duration_percent) ..(amount) + if(paralysis <= 0) + remove_status_indicator("paralysis") + else + add_status_indicator("paralysis") /mob/living/Sleeping(amount) for(var/datum/modifier/M in modifiers) if(!isnull(M.disable_duration_percent)) amount = round(amount * M.disable_duration_percent) ..(amount) + if(sleeping > 0) + add_status_indicator("sleeping") + +/mob/living/SetSleeping(amount) + ..() + if(sleeping <= 0) + remove_status_indicator("sleeping") + else + add_status_indicator("sleeping") /mob/living/AdjustSleeping(amount) if(amount > 0) @@ -537,12 +585,25 @@ default behaviour is: if(!isnull(M.disable_duration_percent)) amount = round(amount * M.disable_duration_percent) ..(amount) + if(sleeping <= 0) + remove_status_indicator("sleeping") + else + add_status_indicator("sleeping") /mob/living/Confuse(amount) for(var/datum/modifier/M in modifiers) if(!isnull(M.disable_duration_percent)) amount = round(amount * M.disable_duration_percent) ..(amount) + if(confused > 0) + add_status_indicator("confused") + +/mob/living/SetConfused(amount) + ..() + if(confused <= 0) + remove_status_indicator("confused") + else + add_status_indicator("confused") /mob/living/AdjustConfused(amount) if(amount > 0) @@ -550,12 +611,25 @@ default behaviour is: if(!isnull(M.disable_duration_percent)) amount = round(amount * M.disable_duration_percent) ..(amount) + if(confused <= 0) + remove_status_indicator("confused") + else + add_status_indicator("confused") /mob/living/Blind(amount) for(var/datum/modifier/M in modifiers) if(!isnull(M.disable_duration_percent)) amount = round(amount * M.disable_duration_percent) ..(amount) + if(eye_blind > 0) + add_status_indicator("blinded") + +/mob/living/SetBlinded(amount) + ..() + if(eye_blind <= 0) + remove_status_indicator("blinded") + else + add_status_indicator("blinded") /mob/living/AdjustBlinded(amount) if(amount > 0) @@ -563,6 +637,10 @@ default behaviour is: if(!isnull(M.disable_duration_percent)) amount = round(amount * M.disable_duration_percent) ..(amount) + if(eye_blind <= 0) + remove_status_indicator("blinded") + else + add_status_indicator("blinded") // ++++ROCKDTBEN++++ MOB PROCS //END @@ -827,10 +905,10 @@ default behaviour is: if(pulling) // we were pulling a thing and didn't lose it during our move. var/pull_dir = get_dir(src, pulling) - + if(pulling.anchored || !isturf(pulling.loc)) stop_pulling() - + else if(get_dist(src, pulling) > 1 || (moving_diagonally != SECOND_DIAG_STEP && ((pull_dir - 1) & pull_dir))) // puller and pullee more than one tile away or in diagonal position // If it is too far away or across z-levels from old location, stop pulling. if(get_dist(pulling.loc, oldloc) > 1 || pulling.loc.z != oldloc?.z) @@ -846,7 +924,7 @@ default behaviour is: stop_pulling() if(!isturf(loc)) - return + return else if(lastarea?.has_gravity == 0) inertial_drift() //VOREStation Edit Start @@ -863,7 +941,7 @@ default behaviour is: if(Process_Spacemove(1)) inertia_dir = 0 return - + var/locthen = loc spawn(5) if(!anchored && !pulledby && loc == locthen) @@ -1145,22 +1223,29 @@ default behaviour is: /mob/living/proc/is_sentient() return TRUE +/mob/living/get_icon_scale_x() + . = ..() + for(var/datum/modifier/M in modifiers) + if(!isnull(M.icon_scale_x_percent)) + . *= M.icon_scale_x_percent + +/mob/living/get_icon_scale_y() + . = ..() + for(var/datum/modifier/M in modifiers) + if(!isnull(M.icon_scale_y_percent)) + . *= M.icon_scale_y_percent /mob/living/update_transform() // First, get the correct size. var/desired_scale_x = size_multiplier //VOREStation edit var/desired_scale_y = size_multiplier //VOREStation edit - for(var/datum/modifier/M in modifiers) - if(!isnull(M.icon_scale_x_percent)) - desired_scale_x *= M.icon_scale_x_percent - if(!isnull(M.icon_scale_y_percent)) - desired_scale_y *= M.icon_scale_y_percent // Now for the regular stuff. var/matrix/M = matrix() M.Scale(desired_scale_x, desired_scale_y) M.Translate(0, (vis_height/2)*(desired_scale_y-1)) //VOREStation edit src.transform = M //VOREStation edit + handle_status_indicators() // This handles setting the client's color variable, which makes everything look a specific color. // This proc is here so it can be called without needing to check if the client exists, or if the client relogs. @@ -1350,3 +1435,8 @@ default behaviour is: clear_alert("weightless") else throw_alert("weightless", /obj/screen/alert/weightless) + +// Tries to turn off things that let you see through walls, like mesons. +// Each mob does vision a bit differently so this is just for inheritence and also so overrided procs can make the vision apply instantly if they call `..()`. +/mob/living/proc/disable_spoiler_vision() + handle_vision() \ No newline at end of file diff --git a/code/modules/mob/living/silicon/login.dm b/code/modules/mob/living/silicon/login.dm index 3ffefc73c8..f2e15af0e8 100644 --- a/code/modules/mob/living/silicon/login.dm +++ b/code/modules/mob/living/silicon/login.dm @@ -1,3 +1,3 @@ /mob/living/silicon/Login() - sleeping = 0 + SetSleeping(0) ..() \ No newline at end of file diff --git a/code/modules/mob/living/silicon/robot/custom_sprites.dm b/code/modules/mob/living/silicon/robot/custom_sprites.dm index 310f558bad..b189e1a84c 100644 --- a/code/modules/mob/living/silicon/robot/custom_sprites.dm +++ b/code/modules/mob/living/silicon/robot/custom_sprites.dm @@ -11,7 +11,7 @@ GLOBAL_LIST_EMPTY(robot_custom_icons) GLOB.robot_custom_icons = list() for(var/line in lines) //split entry into ckey and real_name - var/list/split_idx = splittext(line, "-") //this works if ckeys and borg names cannot contain dashes, and splittext starts from the beginning ~Mech + var/list/split_idx = splittext(line, "|") //this was set to a - before, even though a good 30% of the borgs I see have a - in their name, set it to | instead if(!split_idx || !split_idx.len) continue //bad entry @@ -32,3 +32,9 @@ GLOBAL_LIST_EMPTY(robot_custom_icons) icon = CUSTOM_ITEM_SYNTH if(icon_state == "robot") icon_state = "[ckey]-[sprite_name]-Standard" //Compliant with robot.dm line 236 ~Mech +// To summarize, if you want to add a whitelisted borg sprite, you have to +// 1. Add ckey and character name to config/custom_sprites, separated by a | +// 2. Add your custom sprite to custom_synthetic.dmi under icon/mob/custom_synthetic.dmi +// 3. Name the sprite, and all of its components, as ckey-charname-module +// Note that, due to the last couple lines of code, your sprite may appear invisible until you select a module. +// You can fix this by adding a 'standard' configuration, or you could probably just ignore it if you're lazy. \ No newline at end of file diff --git a/code/modules/mob/living/silicon/robot/dogborg/dog_modules_vr.dm b/code/modules/mob/living/silicon/robot/dogborg/dog_modules_vr.dm index b331cef0ae..95c14bc195 100644 --- a/code/modules/mob/living/silicon/robot/dogborg/dog_modules_vr.dm +++ b/code/modules/mob/living/silicon/robot/dogborg/dog_modules_vr.dm @@ -213,6 +213,7 @@ user.visible_message("[user] begins to lap up water from [target.name].", "You begin to lap up water from [target.name].") if(do_after (user, 50)) water.add_charge(50) + to_chat(src, "You refill some of your water reserves.") else if(water.energy < 5) to_chat(user, "Your mouth feels dry. You should drink up some water .") return diff --git a/code/modules/mob/living/silicon/robot/dogborg/dog_sleeper_vr.dm b/code/modules/mob/living/silicon/robot/dogborg/dog_sleeper_vr.dm index 3f1c60170e..570e60bb51 100644 --- a/code/modules/mob/living/silicon/robot/dogborg/dog_sleeper_vr.dm +++ b/code/modules/mob/living/silicon/robot/dogborg/dog_sleeper_vr.dm @@ -39,6 +39,7 @@ var/digest_brute = 2 var/digest_burn = 3 var/recycles = FALSE + var/medsensor = TRUE //Does belly sprite come with patient ok/dead light? /obj/item/device/dogborg/sleeper/New() ..() @@ -426,21 +427,25 @@ //Well, we HAD one, what happened to them? if(patient in contents) - if(patient_laststat != patient.stat) - if(cleaning) - hound.sleeper_r = TRUE - hound.sleeper_g = FALSE - patient_laststat = patient.stat - else if(patient.stat & DEAD) - hound.sleeper_r = TRUE - hound.sleeper_g = FALSE - patient_laststat = patient.stat - else - hound.sleeper_r = FALSE - hound.sleeper_g = TRUE - patient_laststat = patient.stat - //Update icon - hound.updateicon() + if(medsensor) + if(patient_laststat != patient.stat) + if(cleaning) + hound.sleeper_r = TRUE + hound.sleeper_g = FALSE + patient_laststat = patient.stat + else if(patient.stat & DEAD) + hound.sleeper_r = TRUE + hound.sleeper_g = FALSE + patient_laststat = patient.stat + else + hound.sleeper_r = FALSE + hound.sleeper_g = TRUE + patient_laststat = patient.stat + else + hound.sleeper_r = TRUE + patient_laststat = patient.stat + //Update icon + hound.updateicon() //Return original patient return(patient) @@ -448,17 +453,21 @@ else for(var/mob/living/carbon/human/C in contents) patient = C - if(cleaning) - hound.sleeper_r = TRUE - hound.sleeper_g = FALSE - patient_laststat = patient.stat - else if(patient.stat & DEAD) - hound.sleeper_r = TRUE - hound.sleeper_g = FALSE - patient_laststat = patient.stat + if(medsensor) + if(cleaning) + hound.sleeper_r = TRUE + hound.sleeper_g = FALSE + patient_laststat = patient.stat + else if(patient.stat & DEAD) + hound.sleeper_r = TRUE + hound.sleeper_g = FALSE + patient_laststat = patient.stat + else + hound.sleeper_r = FALSE + hound.sleeper_g = TRUE + patient_laststat = patient.stat else - hound.sleeper_r = FALSE - hound.sleeper_g = TRUE + hound.sleeper_r = TRUE patient_laststat = patient.stat //Update icon and return new patient hound.updateicon() @@ -659,6 +668,7 @@ desc = "Equipment for a K9 unit. A mounted portable-brig that holds criminals." icon_state = "sleeperb" injection_chems = null //So they don't have all the same chems as the medihound! + medsensor = FALSE /obj/item/device/dogborg/sleeper/compactor //Janihound gut. name = "Garbage Processor" @@ -668,6 +678,7 @@ compactor = TRUE recycles = TRUE max_item_count = 25 + medsensor = FALSE /obj/item/device/dogborg/sleeper/compactor/analyzer //sci-borg gut. name = "Digestive Analyzer" diff --git a/code/modules/mob/living/silicon/robot/life.dm b/code/modules/mob/living/silicon/robot/life.dm index 1e57f825a9..6db31e60da 100644 --- a/code/modules/mob/living/silicon/robot/life.dm +++ b/code/modules/mob/living/silicon/robot/life.dm @@ -32,7 +32,7 @@ // SetStunned(min(stunned, 30)) SetParalysis(min(paralysis, 30)) // SetWeakened(min(weakened, 20)) - sleeping = 0 + SetSleeping(0) adjustBruteLoss(0) adjustToxLoss(0) adjustOxyLoss(0) @@ -78,7 +78,7 @@ if(src.sleeping) Paralyse(3) - src.sleeping-- + AdjustSleeping(-1) //if(src.resting) // VOREStation edit. Our borgos would rather not. // Weaken(5) @@ -153,7 +153,13 @@ /mob/living/silicon/robot/handle_regular_hud_updates() var/fullbright = FALSE var/seemeson = FALSE - if (src.stat == 2 || (XRAY in mutations) || (src.sight_mode & BORGXRAY)) + + var/area/A = get_area(src) + if(A?.no_spoilers) + disable_spoiler_vision() + + + if (src.stat == DEAD || (XRAY in mutations) || (src.sight_mode & BORGXRAY)) src.sight |= SEE_TURFS src.sight |= SEE_MOBS src.sight |= SEE_OBJS @@ -187,13 +193,14 @@ src.sight &= ~SEE_OBJS src.see_in_dark = 8 src.see_invisible = SEE_INVISIBLE_NOLIGHTING - else if (src.stat != 2) + else if (src.stat != DEAD) src.sight &= ~SEE_MOBS src.sight &= ~SEE_TURFS src.sight &= ~SEE_OBJS src.see_in_dark = 8 // see_in_dark means you can FAINTLY see in the dark, humans have a range of 3 or so, tajaran have it at 8 src.see_invisible = SEE_INVISIBLE_LIVING // This is normal vision (25), setting it lower for normal vision means you don't "see" things like darkness since darkness // has a "invisible" value of 15 + plane_holder.set_vis(VIS_FULLBRIGHT,fullbright) plane_holder.set_vis(VIS_MESONS,seemeson) ..() diff --git a/code/modules/mob/living/silicon/robot/robot.dm b/code/modules/mob/living/silicon/robot/robot.dm index 79a7e135e3..bfa6879c8b 100644 --- a/code/modules/mob/living/silicon/robot/robot.dm +++ b/code/modules/mob/living/silicon/robot/robot.dm @@ -1142,3 +1142,19 @@ if(module_active && istype(module_active,/obj/item/weapon/gripper)) var/obj/item/weapon/gripper/G = module_active G.drop_item_nm() + +/mob/living/silicon/robot/disable_spoiler_vision() + if(sight_mode & (BORGMESON|BORGMATERIAL|BORGXRAY)) // Whyyyyyyyy have seperate defines. + var/i = 0 + // Borg inventory code is very . . interesting and as such, unequiping a specific item requires jumping through some (for) loops. + var/current_selection_index = get_selected_module() // Will be 0 if nothing is selected. + for(var/thing in list(module_state_1, module_state_2, module_state_3)) + i++ + if(istype(thing, /obj/item/borg/sight)) + var/obj/item/borg/sight/S = thing + if(S.sight_mode & (BORGMESON|BORGMATERIAL|BORGXRAY)) + select_module(i) + uneq_active() + + if(current_selection_index) // Select what the player had before if possible. + select_module(current_selection_index) \ No newline at end of file diff --git a/code/modules/mob/living/silicon/robot/robot_modules/station_vr.dm b/code/modules/mob/living/silicon/robot/robot_modules/station_vr.dm index 34d5d81448..a701a2588d 100644 --- a/code/modules/mob/living/silicon/robot/robot_modules/station_vr.dm +++ b/code/modules/mob/living/silicon/robot/robot_modules/station_vr.dm @@ -167,7 +167,8 @@ "K9 hound" = "k9", "K9 Alternative" = "k92", "Secborg model V-2" = "secborg", - "Borgi" = "borgi-sec" + "Borgi" = "borgi-sec", + "Otieborg" = "oties" ) channels = list("Security" = 1) networks = list(NETWORK_SECURITY) @@ -261,7 +262,7 @@ var/datum/matter_synth/medicine = new /datum/matter_synth/medicine(2000) synths += medicine - + var/obj/item/stack/medical/advanced/clotting/C = new (src) C.uses_charge = 1 C.charge_costs = list(1000) @@ -376,8 +377,8 @@ name = "Custodial Hound module" sprites = list( "Custodial Hound" = "scrubpup", - "Custodial Doggo" = "J9", - "Borgi" = "borgi-jani" + "Borgi" = "borgi-jani", + "Otieborg" = "otiej" ) channels = list("Service" = 1) pto_type = PTO_CIVILIAN diff --git a/code/modules/mob/living/silicon/silicon.dm b/code/modules/mob/living/silicon/silicon.dm index 3be377b366..b6cf748fb8 100644 --- a/code/modules/mob/living/silicon/silicon.dm +++ b/code/modules/mob/living/silicon/silicon.dm @@ -115,25 +115,7 @@ /mob/living/silicon/apply_effect(var/effect = 0,var/effecttype = STUN, var/blocked = 0) return 0//The only effect that can hit them atm is flashes and they still directly edit so this works for now -/* - if(!effect || (blocked >= 2)) return 0 - switch(effecttype) - if(STUN) - stunned = max(stunned,(effect/(blocked+1))) - if(WEAKEN) - weakened = max(weakened,(effect/(blocked+1))) - if(PARALYZE) - paralysis = max(paralysis,(effect/(blocked+1))) - if(IRRADIATE) - radiation += min((effect - (effect*getarmor(null, "rad"))), 0)//Rads auto check armor - if(STUTTER) - stuttering = max(stuttering,(effect/(blocked+1))) - if(EYE_BLUR) - eye_blurry = max(eye_blurry,(effect/(blocked+1))) - if(DROWSY) - drowsyness = max(drowsyness,(effect/(blocked+1))) - updatehealth() - return 1*/ + /proc/islinked(var/mob/living/silicon/robot/bot, var/mob/living/silicon/ai/ai) if(!istype(bot) || !istype(ai)) diff --git a/code/modules/mob/living/simple_mob/combat.dm b/code/modules/mob/living/simple_mob/combat.dm index 7a950bf11a..1dce673601 100644 --- a/code/modules/mob/living/simple_mob/combat.dm +++ b/code/modules/mob/living/simple_mob/combat.dm @@ -143,7 +143,7 @@ if(do_after(src, reload_time)) if(reload_sound) - playsound(src, reload_sound, 50, 1) + playsound(src, reload_sound, 70, 1) reload_count = 0 . = TRUE else diff --git a/code/modules/mob/living/simple_mob/simple_mob.dm b/code/modules/mob/living/simple_mob/simple_mob.dm index ba77999be8..3a27d98d01 100644 --- a/code/modules/mob/living/simple_mob/simple_mob.dm +++ b/code/modules/mob/living/simple_mob/simple_mob.dm @@ -92,7 +92,7 @@ var/needs_reload = FALSE // If TRUE, mob needs to reload occasionally var/reload_max = 1 // How many shots the mob gets before it has to reload, will not be used if needs_reload is FALSE var/reload_count = 0 // A counter to keep track of how many shots the mob has fired so far. Reloads when it hits reload_max. - var/reload_time = 1 SECONDS // How long it takes for a mob to reload. This is to buy a player a bit of time to run or fight. + var/reload_time = 4 SECONDS // How long it takes for a mob to reload. This is to buy a player a bit of time to run or fight. var/reload_sound = 'sound/weapons/flipblade.ogg' // What sound gets played when the mob successfully reloads. Defaults to the same sound as reloading guns. Can be null. //Mob melee settings diff --git a/code/modules/mob/living/simple_mob/subtypes/animal/passive/fish.dm b/code/modules/mob/living/simple_mob/subtypes/animal/passive/fish.dm index 198f99a3f4..b5c811b81c 100644 --- a/code/modules/mob/living/simple_mob/subtypes/animal/passive/fish.dm +++ b/code/modules/mob/living/simple_mob/subtypes/animal/passive/fish.dm @@ -31,6 +31,17 @@ /turf/simulated/floor/water ) + var/randomize_location = TRUE + +/mob/living/simple_mob/animal/passive/fish/Initialize() + ..() + + if(!default_pixel_x && randomize_location) + default_pixel_x = rand(-12, 12) + + if(!default_pixel_y && randomize_location) + default_pixel_y = rand(-6, 10) + // Makes the AI unable to willingly go on land. /mob/living/simple_mob/animal/passive/fish/IMove(newloc) if(is_type_in_list(newloc, suitable_turf_types)) @@ -39,6 +50,11 @@ // Take damage if we are not in water /mob/living/simple_mob/animal/passive/fish/handle_breathing() + if(istype(loc, /obj/item/glass_jar/fish)) + var/obj/item/glass_jar/fish/F = loc + if(F.filled) + return + var/turf/T = get_turf(src) if(T && !is_type_in_list(T, suitable_turf_types)) if(prob(50)) @@ -178,8 +194,8 @@ dorsal_image.color = dorsal_color belly_image.color = belly_color - overlays += dorsal_image - overlays += belly_image + add_overlay(dorsal_image) + add_overlay(belly_image) /datum/category_item/catalogue/fauna/rockfish name = "Sivian Fauna - Rock Puffer" @@ -234,6 +250,7 @@ /mob/living/simple_mob/animal/passive/fish/rockfish/Initialize() ..() head_color = rgb(rand(min_red,max_red), rand(min_green,max_green), rand(min_blue,max_blue)) + update_icon() /mob/living/simple_mob/animal/passive/fish/rockfish/update_icon() overlays.Cut() @@ -245,7 +262,7 @@ head_image.color = head_color - overlays += head_image + add_overlay(head_image) /datum/category_item/catalogue/fauna/solarfish name = "Sivian Fauna - Solar Fin" diff --git a/code/modules/mob/living/simple_mob/subtypes/animal/space/alien.dm b/code/modules/mob/living/simple_mob/subtypes/animal/space/alien.dm index 7de14dc6e7..9502940343 100644 --- a/code/modules/mob/living/simple_mob/subtypes/animal/space/alien.dm +++ b/code/modules/mob/living/simple_mob/subtypes/animal/space/alien.dm @@ -64,6 +64,8 @@ pixel_x = -16 old_x = -16 + icon_expected_width = 64 + icon_expected_height = 64 meat_amount = 5 /mob/living/simple_mob/animal/space/alien/queen @@ -95,6 +97,8 @@ pixel_x = -16 old_x = -16 + icon_expected_width = 64 + icon_expected_height = 64 /mob/living/simple_mob/animal/space/alien/queen/empress/mother name = "alien mother" @@ -111,6 +115,8 @@ pixel_x = -32 old_x = -32 + icon_expected_width = 96 + icon_expected_height = 96 /mob/living/simple_mob/animal/space/alien/death() ..() diff --git a/code/modules/mob/living/simple_mob/subtypes/animal/space/carp.dm b/code/modules/mob/living/simple_mob/subtypes/animal/space/carp.dm index ddd852f779..52b8e369a9 100644 --- a/code/modules/mob/living/simple_mob/subtypes/animal/space/carp.dm +++ b/code/modules/mob/living/simple_mob/subtypes/animal/space/carp.dm @@ -87,6 +87,8 @@ pixel_x = -16 default_pixel_x = -16 + icon_expected_width = 64 + icon_expected_height = 32 meat_amount = 3 @@ -108,6 +110,8 @@ pixel_y = -16 default_pixel_y = -16 + icon_expected_width = 64 + icon_expected_height = 64 meat_amount = 10 diff --git a/code/modules/mob/living/simple_mob/subtypes/occult/constructs/juggernaut.dm b/code/modules/mob/living/simple_mob/subtypes/occult/constructs/juggernaut.dm index 8a56f08ddd..2898eecf45 100644 --- a/code/modules/mob/living/simple_mob/subtypes/occult/constructs/juggernaut.dm +++ b/code/modules/mob/living/simple_mob/subtypes/occult/constructs/juggernaut.dm @@ -45,7 +45,7 @@ "rad" = 100) /mob/living/simple_mob/construct/juggernaut/Life() - weakened = 0 + SetWeakened(0) ..() /mob/living/simple_mob/construct/juggernaut/bullet_act(var/obj/item/projectile/P) diff --git a/code/modules/mob/living/status_indicators.dm b/code/modules/mob/living/status_indicators.dm new file mode 100644 index 0000000000..a3f386b9e6 --- /dev/null +++ b/code/modules/mob/living/status_indicators.dm @@ -0,0 +1,88 @@ +#define STATUS_INDICATOR_Y_OFFSET 2 // Offset from the edge of the icon sprite, so 32 pixels plus whatever number is here. +#define STATUS_INDICATOR_ICON_X_SIZE 16 // Don't need to care about the Y size due to the origin being on the bottom side. +#define STATUS_INDICATOR_ICON_MARGIN 2 // The space between two status indicators. + +// 'Status indicators' are icons that display over a mob's head, that visually indicate that the mob is suffering +// from some kind of effect, such as being stunned, blinded, confused, asleep, etc. +// The icons are managed automatically by the mob itself, so that their positions will shift if another indicator is added, +// and it will try to always be above the mob sprite, even for larger sprites like xenos. + +/mob/living + var/list/status_indicators = null // Will become a list as needed. + +// Adds an icon_state, or image overlay, to the list of indicators to be managed automatically. +// Also initializes the list if one doesn't exist. +/mob/living/proc/add_status_indicator(image/thing) + if(get_status_indicator(thing)) // No duplicates, please. + return + + if(!istype(thing, /image)) + thing = image(icon = 'icons/mob/status_indicators.dmi', icon_state = thing) + + LAZYADD(status_indicators, thing) + handle_status_indicators() + +// Similar to above but removes it instead, and nulls the list if it becomes empty as a result. +/mob/living/proc/remove_status_indicator(image/thing) + thing = get_status_indicator(thing) + + cut_overlay(thing) + LAZYREMOVE(status_indicators, thing) + handle_status_indicators() + +/mob/living/proc/get_status_indicator(image/thing) + if(!istype(thing, /image)) + for(var/image/I in status_indicators) + if(I.icon_state == thing) + return I + return LAZYACCESS(status_indicators, LAZYFIND(status_indicators, thing)) + +// Refreshes the indicators over a mob's head. Should only be called when adding or removing a status indicator with the above procs, +// or when the mob changes size visually for some reason. +/mob/living/proc/handle_status_indicators() + // First, get rid of all the overlays. + for(var/thing in status_indicators) + cut_overlay(thing) + + if(!LAZYLEN(status_indicators)) + return + + if(stat == DEAD) + return + + // Now put them back on in the right spot. + var/our_sprite_x = icon_expected_width * get_icon_scale_x() + var/our_sprite_y = icon_expected_height * get_icon_scale_y() + + var/x_offset = our_sprite_x // Add your own offset here later if you want. + var/y_offset = our_sprite_y + STATUS_INDICATOR_Y_OFFSET + + // Calculates how 'long' the row of indicators and the margin between them should be. + // The goal is to have the center of that row be horizontally aligned with the sprite's center. + var/expected_status_indicator_length = (STATUS_INDICATOR_ICON_X_SIZE * status_indicators.len) + (STATUS_INDICATOR_ICON_MARGIN * max(status_indicators.len - 1, 0)) + var/current_x_position = (x_offset / 2) - (expected_status_indicator_length / 2) + + // In /mob/living's `update_transform()`, the sprite is horizontally shifted when scaled up, so that the center of the sprite doesn't move to the right. + // Because of that, this adjustment needs to happen with the future indicator row as well, or it will look bad. + current_x_position -= (icon_expected_width / 2) * (get_icon_scale_y() - 1) + + // Now the indicator row can actually be built. + for(var/thing in status_indicators) + var/image/I = thing + + // This is a semi-HUD element, in a similar manner as medHUDs, in that they're 'above' everything else in the world, + // but don't pierce obfuscation layers such as blindness or darkness, unlike actual HUD elements like inventory slots. + I.plane = PLANE_STATUS + I.layer = HUD_LAYER + I.appearance_flags = PIXEL_SCALE|TILE_BOUND|NO_CLIENT_COLOR|RESET_COLOR|RESET_ALPHA|RESET_TRANSFORM|KEEP_APART + I.pixel_y = y_offset + I.pixel_x = current_x_position + add_overlay(I) + // Adding the margin space every time saves a conditional check on the last iteration, + // and it won't cause any issues since no more icons will be added, and the var is not used for anything else. + current_x_position += STATUS_INDICATOR_ICON_X_SIZE + STATUS_INDICATOR_ICON_MARGIN + + +#undef STATUS_INDICATOR_Y_OFFSET +#undef STATUS_INDICATOR_ICON_X_SIZE +#undef STATUS_INDICATOR_ICON_MARGIN diff --git a/code/modules/mob/login.dm b/code/modules/mob/login.dm index e83f10116a..d6f04cd0d5 100644 --- a/code/modules/mob/login.dm +++ b/code/modules/mob/login.dm @@ -66,6 +66,10 @@ plane_holder.set_ao(VIS_OBJS, ao_enabled) plane_holder.set_ao(VIS_MOBS, ao_enabled) + // Status indicators + var/status_enabled = client.is_preference_enabled(/datum/client_preference/status_indicators) + plane_holder.set_vis(VIS_STATUS, status_enabled) + //set macro to normal incase it was overriden (like cyborg currently does) client.set_hotkeys_macro("macro", "hotkeymode") diff --git a/code/modules/mob/mob_defines.dm b/code/modules/mob/mob_defines.dm index 0413dbc766..7be3255cbd 100644 --- a/code/modules/mob/mob_defines.dm +++ b/code/modules/mob/mob_defines.dm @@ -181,6 +181,7 @@ var/status_flags = CANSTUN|CANWEAKEN|CANPARALYSE|CANPUSH //bitflags defining which status effects can be inflicted (replaces canweaken, canstun, etc) var/area/lastarea = null + var/lastareachange = null var/digitalcamo = 0 // Can they be tracked by the AI? diff --git a/code/modules/mob/mob_movement.dm b/code/modules/mob/mob_movement.dm index 58d00da19f..3de17ee8ef 100644 --- a/code/modules/mob/mob_movement.dm +++ b/code/modules/mob/mob_movement.dm @@ -197,7 +197,7 @@ return result // Can't control ourselves when drifting - if(isspace(loc) || my_mob.lastarea?.has_gravity == 0) + if((isspace(loc) || my_mob.lastarea?.has_gravity == 0) && !my_mob.in_enclosed_vehicle) //If(In space or last area had no gravity) or(you in vehicle) if(!my_mob.Process_Spacemove(0)) return 0 @@ -295,7 +295,7 @@ // It's just us and another person if(grablist.len == 1) var/mob/M = grablist[1] - if(!my_mob.Adjacent(M)) //Oh no, we moved away + if(M && !my_mob.Adjacent(M)) //Oh no, we moved away M.Move(pre_move_loc, get_dir(M, pre_move_loc), total_delay) //Have them step towards where we were // It's a grab chain diff --git a/code/modules/mob/mob_planes.dm b/code/modules/mob/mob_planes.dm index e1c33efe72..241840321a 100644 --- a/code/modules/mob/mob_planes.dm +++ b/code/modules/mob/mob_planes.dm @@ -11,6 +11,7 @@ my_mob = this_guy //It'd be nice to lazy init these but some of them are important to just EXIST. Like without ghost planemaster, you can see ghosts. Go figure. + //Note, if you're adding a new plane master, please update code\modules\tgui\modules\camera.dm. // 'Utility' planes plane_masters[VIS_FULLBRIGHT] = new /obj/screen/plane_master/fullbright //Lighting system (lighting_overlay objects) @@ -29,6 +30,8 @@ plane_masters[VIS_CH_SPECIAL] = new /obj/screen/plane_master{plane = PLANE_CH_SPECIAL} //"Special" role stuff plane_masters[VIS_CH_STATUS_OOC]= new /obj/screen/plane_master{plane = PLANE_CH_STATUS_OOC} //OOC status HUD + plane_masters[VIS_STATUS] = new /obj/screen/plane_master{plane = PLANE_STATUS} //Status indicators that show over mob heads. + plane_masters[VIS_ADMIN1] = new /obj/screen/plane_master{plane = PLANE_ADMIN1} //For admin use plane_masters[VIS_ADMIN2] = new /obj/screen/plane_master{plane = PLANE_ADMIN2} //For admin use plane_masters[VIS_ADMIN3] = new /obj/screen/plane_master{plane = PLANE_ADMIN3} //For admin use diff --git a/code/modules/organs/blood.dm b/code/modules/organs/blood.dm index 931eaab0cb..cc66674b87 100644 --- a/code/modules/organs/blood.dm +++ b/code/modules/organs/blood.dm @@ -2,10 +2,13 @@ BLOOD SYSTEM ****************************************************/ //Blood levels. These are percentages based on the species blood_volume var. +//Retained for archival/reference purposes - KK +/* var/const/BLOOD_VOLUME_SAFE = 85 var/const/BLOOD_VOLUME_OKAY = 75 var/const/BLOOD_VOLUME_BAD = 60 var/const/BLOOD_VOLUME_SURVIVE = 40 +*/ var/const/CE_STABLE_THRESHOLD = 0.5 /mob/living/carbon/human/var/datum/reagents/vessel // Container for blood and BLOOD ONLY. Do not transfer other chems here. @@ -88,22 +91,22 @@ var/const/CE_STABLE_THRESHOLD = 0.5 // dmg_coef = min(1, 10/chem_effects[CE_STABLE]) //TODO: add effect for increased damage // threshold_coef = min(dmg_coef / CE_STABLE_THRESHOLD, 1) - if(blood_volume >= BLOOD_VOLUME_SAFE) + if(blood_volume_raw >= species.blood_volume*species.blood_level_safe) if(pale) pale = 0 update_icons_body() - else if(blood_volume >= BLOOD_VOLUME_OKAY) + else if(blood_volume_raw >= species.blood_volume*species.blood_level_warning) if(!pale) pale = 1 update_icons_body() - var/word = pick("dizzy","woosey","faint") - to_chat(src, "You feel [word]") + var/word = pick("dizzy","woozy","faint","disoriented","unsteady") + to_chat(src, "You feel slightly [word]") if(prob(1)) - var/word = pick("dizzy","woosey","faint") + var/word = pick("dizzy","woozy","faint","disoriented","unsteady") to_chat(src, "You feel [word]") if(getOxyLoss() < 20 * threshold_coef) adjustOxyLoss(3 * dmg_coef) - else if(blood_volume >= BLOOD_VOLUME_BAD) + else if(blood_volume_raw >= species.blood_volume*species.blood_level_danger) if(!pale) pale = 1 update_icons_body() @@ -113,13 +116,13 @@ var/const/CE_STABLE_THRESHOLD = 0.5 adjustOxyLoss(1 * dmg_coef) if(prob(15)) Paralyse(rand(1,3)) - var/word = pick("dizzy","woosey","faint") - to_chat(src, "You feel extremely [word]") - else if(blood_volume >= BLOOD_VOLUME_SURVIVE) + var/word = pick("dizzy","woozy","faint","disoriented","unsteady") + to_chat(src, "You feel dangerously [word]") + else if(blood_volume_raw >= species.blood_volume*species.blood_level_fatal) adjustOxyLoss(5 * dmg_coef) // adjustToxLoss(3 * dmg_coef) if(prob(15)) - var/word = pick("dizzy","woosey","faint") + var/word = pick("dizzy","woozy","faint","disoriented","unsteady") to_chat(src, "You feel extremely [word]") else //Not enough blood to survive (usually) if(!pale) @@ -131,7 +134,7 @@ var/const/CE_STABLE_THRESHOLD = 0.5 adjustOxyLoss(75 * dmg_coef) // 15 more than dexp fixes (also more than dex+dexp+tricord) // Without enough blood you slowly go hungry. - if(blood_volume < BLOOD_VOLUME_SAFE) + if(blood_volume_raw < species.blood_volume*species.blood_level_safe) if(nutrition >= 300) adjust_nutrition(-10) else if(nutrition >= 200) diff --git a/code/modules/organs/organ_external.dm b/code/modules/organs/organ_external.dm index 080b19b32d..8cad30e19c 100644 --- a/code/modules/organs/organ_external.dm +++ b/code/modules/organs/organ_external.dm @@ -525,7 +525,7 @@ This function completely restores a damaged organ to perfect condition. //Burn damage can cause fluid loss due to blistering and cook-off if((damage > 5 || damage + burn_dam >= 15) && type == BURN && (robotic < ORGAN_ROBOT) && !(species.flags & NO_BLOOD)) - var/fluid_loss = 0.4 * (damage/(owner.getMaxHealth() - config.health_threshold_dead)) * owner.species.blood_volume*(1 - BLOOD_VOLUME_SURVIVE/100) + var/fluid_loss = 0.4 * (damage/(owner.getMaxHealth() - config.health_threshold_dead)) * owner.species.blood_volume*(1 - owner.species.blood_level_fatal) owner.remove_blood(fluid_loss) // first check whether we can widen an existing wound diff --git a/code/modules/organs/pain.dm b/code/modules/organs/pain.dm index df7d81a142..ffc9a6149b 100644 --- a/code/modules/organs/pain.dm +++ b/code/modules/organs/pain.dm @@ -42,7 +42,7 @@ mob/living/carbon/human/proc/handle_pain() maxdam = dam if(damaged_organ && chem_effects[CE_PAINKILLER] < maxdam) if(maxdam > 10 && paralysis) - paralysis = max(0, paralysis - round(maxdam/10)) + AdjustParalysis(-round(maxdam/10)) if(maxdam > 50 && prob(maxdam / 5)) drop_item() var/burning = damaged_organ.burn_dam > damaged_organ.brute_dam diff --git a/code/modules/persistence/noticeboard_yw.dm b/code/modules/persistence/noticeboard_yw.dm new file mode 100644 index 0000000000..50256d441a --- /dev/null +++ b/code/modules/persistence/noticeboard_yw.dm @@ -0,0 +1,114 @@ +/obj/structure/noticeboard/anomaly + name = "xenoarchaeology notice board" + +/obj/structure/noticeboard/medical + name = "medical notice board" + notices = 2 + icon_state = "nboard02" + +/obj/structure/noticeboard/medical/New() + var/obj/item/weapon/paper/P = new() + P.name = "Staff Notice: Patient rooms" + P.info = "
No matter how many times I've said this, it doesn't seem to stick, so I'm leaving this reminder: Screwing patients in the patient rooms is a serious breach of professionality and your code of ethics. Take it to the dorms." + P.stamped = list(/obj/item/weapon/stamp/cmo) + P.overlays = list("paper_stamped_cmo") + src.contents += P + + P = new() + P.name = "Staff Notice: Breakroom \& Storage" + P.info = "
Enjoy the view from the new breakroom. You've also got a storage room full of leftover supplies from the shift before yours." + P.stamped = list(/obj/item/weapon/stamp/cmo) + P.overlays = list("paper_stamped_cmo") + src.contents += P + +/obj/structure/noticeboard/toxins + name = "toxins lab notice board" + notices = 1 + icon_state = "nboard01" + +/obj/structure/noticeboard/toxins/New() + var/obj/item/weapon/paper/P = new() + P.name = "Staff Notice: Toxins Mixing" + P.info = "
Toxins Mixing is currently shut down for the time being, due to damage requiring parts from off station to fix. Please do not use at this time, or risk setting the entire outpost on fire." + P.stamped = list(/obj/item/weapon/stamp/rd) + P.overlays = list("paper_stamped_rd") + src.contents += P + +/obj/structure/noticeboard/nanite + name = "nanite lab notice board" + notices = 1 + icon_state = "nboard01" + +/obj/structure/noticeboard/nanite/New() + var/obj/item/weapon/paper/P = new() + P.name = "Staff Notice: Nanite Laboratory" + P.info = "
The Nanite Laboratory is nearly complete. We're simply awaiting specialized machinery and equipment from central. The lab is currently shut down. Please do not use at this time." + P.stamped = list(/obj/item/weapon/stamp/rd) + P.overlays = list("paper_stamped_rd") + src.contents += P + +/obj/structure/noticeboard/blueshield + name = "blueshield notice board" + notices = 1 + icon_state = "nboard01" + +/obj/structure/noticeboard/blueshield/New() + var/obj/item/weapon/paper/P = new() + P.name = "Staff Notice: Blueshield Special Reserve" + P.info = "
This secure storage unit is intended to be used for special equipment specifically for the use of Blueshield Agents in the event of a Code Red threat to Heads of Staff. Heads of Staff found 'commandeering' this equipment can expect to be severely reprimanded.

(Underneath, there is a messy handwritten addition.)
Sorry, we haven't had time or spare funds to issue anything yet. You know how frontier budgets are! Sit tight, champ. -Z.V." + P.stamped = list(/obj/item/weapon/stamp/centcomm) + P.overlays = list("paper_stamped_cent") + src.contents += P + +/obj/structure/noticeboard/library + notices = 2 + icon_state = "nboard02" + +/obj/structure/noticeboard/library/New() + var/obj/item/weapon/paper/P = new() + P.name = "Library Warning: coffee stains" + P.info = "
I seem to tell you guys this daily, but please, stop bringing coffee to carpeted areas. It's hard enough to get the stains off wood,let alone carpet." + src.contents += P + + P = new() + P.name = "Library Warning: loud noises" + P.info = "Ssshh!
People are trying to read in the library, stop bringing the jukebox over there!" + src.contents += P + +/obj/structure/noticeboard/exploration + notices = 3 + icon_state = "nboard03" + +/obj/structure/noticeboard/exploration/New() + var/obj/item/weapon/paper/P = new() + P.name = "Memo: Prototype ship" + P.info = "
With the lost of our last Research installation and the damage sustained to the old exploration shuttle,We've decided to finally approve the construction of the Prototype Star-Runner class Exploration Vessel. Keep in mind it's a prototype, so try not to scratch it's paint. We don't have a second." + P.stamped = list(/obj/item/weapon/stamp/centcomm) + P.overlays = list("paper_stamped_cent") + src.contents += P + + P = new() + P.name = "Memo RE: Expedition Requirements" + P.info = "Jones,
For the last time, Expeditions regulations require atleast three crew members, including the Pathfinder and/or Research Director. The next time you activate your bluespace drive with less then that, and you're fired from the department.I won't have this conversation again.
- R.F" + P.stamped = list(/obj/item/weapon/stamp/rd) + P.overlays = list("paper_stamped_rd") + src.contents += P + + P = new() + P.name = "Memo RE: Pilot duties" + P.info = "Pilots, As you're fully aware, we're on the edge of civilized space out here.
Leaving the shuttle area is dangerious. This is why the Prototype is equipped with a proper camera system to keep an eye on the explorers. If you get yourselves killed, and an explorer has to crash land the ship back here, the company is NOT going to be happy.
- R.F" + P.stamped = list(/obj/item/weapon/stamp/rd) + P.overlays = list("paper_stamped_rd") + src.contents += P + +/obj/structure/noticeboard/airlock + notices = 1 + icon_state = "nboard01" + +/obj/structure/noticeboard/airlock/New() + var/obj/item/weapon/paper/P = new() + P.name = "Staff Notice: Airlock Proceedure" + P.info = "
Due to the large amount of new staff unfamiliar with our proceedures we've left you some instructions.
To exit through an airlock, simply hit the button to open the interior, and then cycle to exterior once inside. To re-enter the station, enter the airlock, Close the exterior hatch, and look for the customized thermal regulators installed on the wall.
This should heat up the air in the airlock, allowing you to open the interior door with no issues." + P.stamped = list(/obj/item/weapon/stamp/captain) + P.overlays = list("paper_stamp-cap") + src.contents += P \ No newline at end of file diff --git a/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Dispenser.dm b/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Dispenser.dm index ae953a4a70..e19ee6117b 100644 --- a/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Dispenser.dm +++ b/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Dispenser.dm @@ -122,8 +122,8 @@ if(effective_dose >= strength * 6) // Toxic dose M.add_chemical_effect(CE_ALCOHOL_TOXIC, toxicity*3) if(effective_dose >= strength * 7) // Pass out - M.paralysis = max(M.paralysis, 60) - M.sleeping = max(M.sleeping, 90) + M.Paralyse(60) + M.Sleeping(90) if(druggy != 0) M.druggy = max(M.druggy, druggy*3) @@ -166,8 +166,8 @@ if(dose * strength_mod >= strength * 6) // Toxic dose M.add_chemical_effect(CE_ALCOHOL_TOXIC, toxicity) if(dose * strength_mod >= strength * 7) // Pass out - M.paralysis = max(M.paralysis, 20) - M.sleeping = max(M.sleeping, 30) + M.Paralyse(20) + M.Sleeping(30) if(druggy != 0) M.druggy = max(M.druggy, druggy) @@ -469,7 +469,7 @@ M.Weaken(2) M.drowsyness = max(M.drowsyness, 20) else - M.sleeping = max(M.sleeping, 20) + M.Sleeping(20) M.drowsyness = max(M.drowsyness, 60) /datum/reagent/sulfur diff --git a/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Food-Drinks.dm b/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Food-Drinks.dm index a70f477779..43a3bf269c 100644 --- a/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Food-Drinks.dm +++ b/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Food-Drinks.dm @@ -69,14 +69,14 @@ /datum/reagent/nutriment/coating/affect_ingest(var/mob/living/carbon/M, var/alien, var/removed) //We'll assume that the batter isnt going to be regurgitated and eaten by someone else. Only show this once - if (data["cooked"] != 1) + if(data["cooked"] != 1) if (!messaged) - to_chat(M, "Ugh, this raw [name] tastes disgusting.") + to_chat(M, "Ugh, this raw [name] tastes disgusting.") nutriment_factor *= 0.5 messaged = 1 - //Raw coatings will sometimes cause vomiting - if (prob(1)) + //Raw coatings will sometimes cause vomiting. 75% chance of this happening. + if(prob(75)) M.vomit() ..() @@ -327,7 +327,7 @@ M.Weaken(2) M.drowsyness = max(M.drowsyness, 20) else - M.sleeping = max(M.sleeping, 20) + M.Sleeping(20) M.drowsyness = max(M.drowsyness, 60) /datum/reagent/nutriment/mayo @@ -834,7 +834,7 @@ M.adjust_nutrition(nutrition * removed) M.dizziness = max(0, M.dizziness + adj_dizzy) M.drowsyness = max(0, M.drowsyness + adj_drowsy) - M.sleeping = max(0, M.sleeping + adj_sleepy) + M.AdjustSleeping(adj_sleepy) if(adj_temp > 0 && M.bodytemperature < 310) // 310 is the normal bodytemp. 310.055 M.bodytemperature = min(310, M.bodytemperature + (adj_temp * TEMPERATURE_DAMAGE_COEFFICIENT)) if(adj_temp < 0 && M.bodytemperature > 310) @@ -922,7 +922,7 @@ M.Weaken(2) M.drowsyness = max(M.drowsyness, 20) else - M.sleeping = max(M.sleeping, 20) + M.Sleeping(20) M.drowsyness = max(M.drowsyness, 60) */ @@ -1506,7 +1506,7 @@ M.Weaken(2) M.drowsyness = max(M.drowsyness, 20) else - M.sleeping = max(M.sleeping, 20) + M.Sleeping(20) M.drowsyness = max(M.drowsyness, 60) /datum/reagent/drink/milkshake/chocoshake @@ -2168,7 +2168,7 @@ ..() M.dizziness = max(0, M.dizziness - 5) M.drowsyness = max(0, M.drowsyness - 3) - M.sleeping = max(0, M.sleeping - 2) + M.AdjustSleeping(-2) if(M.bodytemperature > 310) M.bodytemperature = max(310, M.bodytemperature - (5 * TEMPERATURE_DAMAGE_COEFFICIENT)) //if(alien == IS_TAJARA) diff --git a/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Other.dm b/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Other.dm index 0a6d9099e6..240397c0e0 100644 --- a/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Other.dm +++ b/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Other.dm @@ -197,7 +197,7 @@ M.drowsyness = 0 M.stuttering = 0 M.SetConfused(0) - M.sleeping = 0 + M.SetSleeping(0) M.jitteriness = 0 M.radiation = 0 M.ExtinguishMob() diff --git a/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Toxins.dm b/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Toxins.dm index 7ac94215f4..b541d66b44 100644 --- a/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Toxins.dm +++ b/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Toxins.dm @@ -170,7 +170,7 @@ /datum/reagent/toxin/cyanide/affect_blood(var/mob/living/carbon/M, var/alien, var/removed) ..() M.adjustOxyLoss(20 * removed) - M.sleeping += 1 + M.Sleeping(1) /datum/reagent/toxin/mold name = "Mold" @@ -645,7 +645,7 @@ else M.Weaken(2) else - M.sleeping = max(M.sleeping, 20) + M.Sleeping(20) M.drowsyness = max(M.drowsyness, 60) /datum/reagent/chloralhydrate @@ -689,7 +689,7 @@ M.Weaken(30) M.Confuse(40) else - M.sleeping = max(M.sleeping, 30) + M.Sleeping(30) if(effective_dose > 1 * threshold) M.adjustToxLoss(removed) diff --git a/code/modules/reagents/Chemistry-Recipes_vr.dm b/code/modules/reagents/Chemistry-Recipes_vr.dm index c91583c217..33f2c637b0 100644 --- a/code/modules/reagents/Chemistry-Recipes_vr.dm +++ b/code/modules/reagents/Chemistry-Recipes_vr.dm @@ -47,6 +47,9 @@ s.start() holder.clear_reagents() +/////////////////////////////////////////////////////////////////////////////////// +/// Miscellaneous Reactions + /datum/chemical_reaction/xenolazarus name = "Discount Lazarus" id = "discountlazarus" @@ -72,6 +75,9 @@ H.visible_message("[H] twitches for a moment, but remains still.") // no nutriment +/datum/chemical_reaction/foam/softdrink + required_reagents = list("cola" = 1, "mint" = 1) + /////////////////////////////////////////////////////////////////////////////////// /// Vore Drugs diff --git a/code/modules/research/designs/circuits/circuits.dm b/code/modules/research/designs/circuits/circuits.dm index 28e76ceac9..e2479a8e1c 100644 --- a/code/modules/research/designs/circuits/circuits.dm +++ b/code/modules/research/designs/circuits/circuits.dm @@ -626,6 +626,7 @@ CIRCUITS BELOW build_path = /obj/item/weapon/circuitboard/microwave/advanced sort_string = "HACAA" + /datum/design/circuit/shield_generator name = "shield generator" id = "shield_generator" diff --git a/code/modules/tgui/modules/camera.dm b/code/modules/tgui/modules/camera.dm index 301d43d9d5..b7305ca165 100644 --- a/code/modules/tgui/modules/camera.dm +++ b/code/modules/tgui/modules/camera.dm @@ -36,14 +36,44 @@ cam_screen.assigned_map = map_name cam_screen.del_on_map_removal = FALSE cam_screen.screen_loc = "[map_name]:1,1" - cam_plane_masters = list() - for(var/plane in subtypesof(/obj/screen/plane_master)) - var/obj/screen/instance = new plane() + cam_plane_masters = list() + + // 'Utility' planes + cam_plane_masters += new /obj/screen/plane_master/fullbright //Lighting system (lighting_overlay objects) + cam_plane_masters += new /obj/screen/plane_master/lighting //Lighting system (but different!) + cam_plane_masters += new /obj/screen/plane_master/ghosts //Ghosts! + cam_plane_masters += new /obj/screen/plane_master{plane = PLANE_AI_EYE} //AI Eye! + + cam_plane_masters += new /obj/screen/plane_master{plane = PLANE_CH_STATUS} //Status is the synth/human icon left side of medhuds + cam_plane_masters += new /obj/screen/plane_master{plane = PLANE_CH_HEALTH} //Health bar + cam_plane_masters += new /obj/screen/plane_master{plane = PLANE_CH_LIFE} //Alive-or-not icon + cam_plane_masters += new /obj/screen/plane_master{plane = PLANE_CH_ID} //Job ID icon + cam_plane_masters += new /obj/screen/plane_master{plane = PLANE_CH_WANTED} //Wanted status + cam_plane_masters += new /obj/screen/plane_master{plane = PLANE_CH_IMPLOYAL} //Loyalty implants + cam_plane_masters += new /obj/screen/plane_master{plane = PLANE_CH_IMPTRACK} //Tracking implants + cam_plane_masters += new /obj/screen/plane_master{plane = PLANE_CH_IMPCHEM} //Chemical implants + cam_plane_masters += new /obj/screen/plane_master{plane = PLANE_CH_SPECIAL} //"Special" role stuff + cam_plane_masters += new /obj/screen/plane_master{plane = PLANE_CH_STATUS_OOC} //OOC status HUD + + cam_plane_masters += new /obj/screen/plane_master{plane = PLANE_ADMIN1} //For admin use + cam_plane_masters += new /obj/screen/plane_master{plane = PLANE_ADMIN2} //For admin use + cam_plane_masters += new /obj/screen/plane_master{plane = PLANE_ADMIN3} //For admin use + + cam_plane_masters += new /obj/screen/plane_master{plane = PLANE_MESONS} //Meson-specific things like open ceilings. + cam_plane_masters += new /obj/screen/plane_master{plane = PLANE_BUILDMODE} //Things that only show up while in build mode + + // Real tangible stuff planes + cam_plane_masters += new /obj/screen/plane_master/main{plane = TURF_PLANE} + cam_plane_masters += new /obj/screen/plane_master/main{plane = OBJ_PLANE} + cam_plane_masters += new /obj/screen/plane_master/main{plane = MOB_PLANE} + cam_plane_masters += new /obj/screen/plane_master/cloaked //Cloaked atoms! + + for(var/plane in cam_plane_masters) + var/obj/screen/instance = plane instance.assigned_map = map_name instance.del_on_map_removal = FALSE instance.screen_loc = "[map_name]:CENTER" - cam_plane_masters += instance local_skybox = new() local_skybox.assigned_map = map_name @@ -131,7 +161,10 @@ /datum/tgui_module/camera/tgui_act(action, params) if(..()) return - + + if(action && !issilicon(usr)) + playsound(tgui_host(), "terminal_type", 50, 1) + if(action == "switch_camera") var/c_tag = params["name"] var/list/cameras = get_available_cameras(usr) diff --git a/code/modules/tgui/modules/crew_monitor.dm b/code/modules/tgui/modules/crew_monitor.dm index f4be8c87c1..247db8cb6c 100644 --- a/code/modules/tgui/modules/crew_monitor.dm +++ b/code/modules/tgui/modules/crew_monitor.dm @@ -5,6 +5,9 @@ /datum/tgui_module/crew_monitor/tgui_act(action, params, datum/tgui/ui) if(..()) return TRUE + + if(action && !issilicon(usr)) + playsound(tgui_host(), "terminal_type", 50, 1) var/turf/T = get_turf(usr) if(!T || !(T.z in using_map.player_levels)) diff --git a/code/modules/virus2/effect.dm b/code/modules/virus2/effect.dm index 790bf3cdbd..876d0d30b6 100644 --- a/code/modules/virus2/effect.dm +++ b/code/modules/virus2/effect.dm @@ -404,7 +404,7 @@ stage = 2 /datum/disease2/effect/blind/activate(var/mob/living/carbon/mob,var/multiplier) - mob.eye_blind = max(mob.eye_blind, 4) + mob.SetBlinded(4) /datum/disease2/effect/cough name = "Severe Cough" diff --git a/code/modules/xenoarcheaology/finds/special.dm b/code/modules/xenoarcheaology/finds/special.dm index 93bfa10966..2a7f149dfa 100644 --- a/code/modules/xenoarcheaology/finds/special.dm +++ b/code/modules/xenoarcheaology/finds/special.dm @@ -194,7 +194,7 @@ 'sound/hallucinations/turn_around1.ogg',\ 'sound/hallucinations/turn_around2.ogg',\ ), 50, 1, -3) - M.sleeping = max(M.sleeping,rand(5,10)) + M.Sleeping(rand(5, 10)) src.loc = null else STOP_PROCESSING(SSobj, src) diff --git a/code/modules/xenoarcheaology/misc.dm b/code/modules/xenoarcheaology/misc.dm index d46d3656e6..1b41daa697 100644 --- a/code/modules/xenoarcheaology/misc.dm +++ b/code/modules/xenoarcheaology/misc.dm @@ -1,123 +1,3 @@ -//YW change start -//TODO -/obj/structure/noticeboard/anomaly - notices = 5 - icon_state = "nboard05" - -/obj/structure/noticeboard/anomaly/New() - var/obj/item/weapon/paper/P = new() - P.name = "Memo RE: proper analysis procedure" - P.info = "
We keep test dummies in pens here for a reason, so standard procedure should be to activate newfound alien artifacts and place the two in close proximity. Promising items I might even approve monkey testing on." - P.stamped = list(/obj/item/weapon/stamp/rd) - P.overlays = list("paper_stamped_rd") - src.contents += P - - P = new() - P.name = "Memo RE: materials gathering" - P.info = "Corasang,
the hands-on approach to gathering our samples may very well be slow at times, but it's safer than allowing the blundering miners to roll willy-nilly over our dig sites in their mechs, destroying everything in the process. And don't forget the escavation tools on your way out there!
- R.W" - P.stamped = list(/obj/item/weapon/stamp/rd) - P.overlays = list("paper_stamped_rd") - src.contents += P - - P = new() - P.name = "Memo RE: ethical quandaries" - P.info = "Darion-

I don't care what his rank is, our business is that of science and knowledge - questions of moral application do not come into this. Sure, so there are those who would employ the energy-wave particles my modified device has managed to abscond for their own personal gain, but I can hardly see the practical benefits of some of these artifacts our benefactors left behind. Ward--" - P.stamped = list(/obj/item/weapon/stamp/rd) - P.overlays = list("paper_stamped_rd") - src.contents += P - - P = new() - P.name = "READ ME! Before you people destroy any more samples" - P.info = "how many times do i have to tell you people, these xeno-arch samples are del-i-cate, and should be handled so! careful application of a focussed, concentrated heat or some corrosive liquids should clear away the extraneous carbon matter, while application of an energy beam will most decidedly destroy it entirely - like someone did to the chemical dispenser! W, the one who signs your paychecks" - P.stamped = list(/obj/item/weapon/stamp/rd) - P.overlays = list("paper_stamped_rd") - src.contents += P - - P = new() - P.name = "Reminder regarding the anomalous material suits" - P.info = "Do you people think the anomaly suits are cheap to come by? I'm about a hair trigger away from instituting a log book for the damn things. Only wear them if you're going out for a dig, and for god's sake don't go tramping around in them unless you're field testing something, R" - P.stamped = list(/obj/item/weapon/stamp/rd) - P.overlays = list("paper_stamped_rd") - src.contents += P - -/obj/structure/noticeboard/medical - notices = 1 - icon_state = "nboard01" - -/obj/structure/noticeboard/medical/New() - var/obj/item/weapon/paper/P = new() - P.name = "Staff Notice: Patient rooms" - P.info = "
No matter how many times I've said this, it doesn't seem to stick, so I'm leaving this reminder: Screwing patients in the patient rooms is a serious breach of professionality and your code of ethics. Take it to the dorms." - P.stamped = list(/obj/item/weapon/stamp/cmo) - P.overlays = list("paper_stamped_cmo") - src.contents += P - -/obj/structure/noticeboard/toxins - notices = 1 - icon_state = "nboard01" - -/obj/structure/noticeboard/toxins/New() - var/obj/item/weapon/paper/P = new() - P.name = "Staff Notice: Toxins Mixing" - P.info = "
Toxins Mixing is currently shut down for the time being, due to damage requiring parts from off station to fix. Please do not use at this time, or risk setting the entire outpost on fire." - P.stamped = list(/obj/item/weapon/stamp/rd) - P.overlays = list("paper_stamped_rd") - src.contents += P - -/obj/structure/noticeboard/nanite - notices = 1 - icon_state = "nboard01" - -/obj/structure/noticeboard/nanite/New() - var/obj/item/weapon/paper/P = new() - P.name = "Staff Notice: Nanite Laboratory" - P.info = "
The Nanite Laboratory is nearly complete. We're simply awaiting specialized machinery and equipment from central. The lab is currently shut down. Please do not use at this time." - P.stamped = list(/obj/item/weapon/stamp/rd) - P.overlays = list("paper_stamped_rd") - src.contents += P - -/obj/structure/noticeboard/library - notices = 2 - icon_state = "nboard02" - -/obj/structure/noticeboard/library/New() - var/obj/item/weapon/paper/P = new() - P.name = "Library Warning: coffee stains" - P.info = "
I seem to tell you guys this daily, but please, stop bringing coffee to carpeted areas. It's hard enough to get the stains off wood,let alone carpet." - src.contents += P - - P = new() - P.name = "Library Warning: loud noises" - P.info = "Ssshh!
People are trying to read in the library, stop bringing the jukebox over there!" - src.contents += P - -/obj/structure/noticeboard/exploration - notices = 3 - icon_state = "nboard03" - -/obj/structure/noticeboard/exploration/New() - var/obj/item/weapon/paper/P = new() - P.name = "Memo: Prototype ship" - P.info = "
With the lost of our last Research installation and the damage sustained to the old exploration shuttle,We've decided to finally approve the construction of the Prototype Star-Runner class Exploration Vessel. Keep in mind it's a prototype, so try not to scratch it's paint. We don't have a second." - P.stamped = list(/obj/item/weapon/stamp/centcomm) - P.overlays = list("paper_stamped_cent") - src.contents += P - - P = new() - P.name = "Memo RE: Expedition Requirements" - P.info = "Jones,
For the last time, Expeditions regulations require atleast three crew members, including the Pathfinder and/or Research Director. The next time you activate your bluespace drive with less then that, and you're fired from the department.I won't have this conversation again.
- R.F" - P.stamped = list(/obj/item/weapon/stamp/rd) - P.overlays = list("paper_stamped_rd") - src.contents += P - - P = new() - P.name = "Memo RE: Pilot duties" - P.info = "Pilots, As you're fully aware, we're on the edge of civilized space out here.
Leaving the shuttle area is dangerious. This is why the Prototype is equipped with a proper camera system to keep an eye on the explorers. If you get yourselves killed, and an explorer has to crash land the ship back here, the company is NOT going to be happy.
- R.F" - P.stamped = list(/obj/item/weapon/stamp/rd) - P.overlays = list("paper_stamped_rd") - src.contents += P - -//YW Change stop /obj/structure/bookcase/manuals/xenoarchaeology name = "Xenoarchaeology Manuals bookcase" @@ -135,16 +15,4 @@ req_one_access = list(access_research, access_atmospherics, access_engine_equip) /obj/machinery/alarm/monitor/isolation - req_one_access = list(access_research, access_atmospherics, access_engine_equip) - -/obj/structure/noticeboard/airlock - notices = 1 - icon_state = "nboard01" - -/obj/structure/noticeboard/airlock/New() - var/obj/item/weapon/paper/P = new() - P.name = "Staff Notice: Airlock Proceedure" - P.info = "
Due to the large amount of new staff unfamiliar with our proceedures we've left you some instructions.
To exit through an airlock, simply hit the button to open the interior, and then cycle to exterior once inside. To re-enter the station, enter the airlock, Close the exterior hatch, and look for the customized thermal regulators installed on the wall.
This should heat up the air in the airlock, allowing you to open the interior door with no issues." - P.stamped = list(/obj/item/weapon/stamp/captain) - P.overlays = list("paper_stamp-cap") - src.contents += P \ No newline at end of file + req_one_access = list(access_research, access_atmospherics, access_engine_equip) \ No newline at end of file diff --git a/code/modules/xenoarcheaology/tools/suspension_generator.dm b/code/modules/xenoarcheaology/tools/suspension_generator.dm index f4a60f1bfd..561ac1028f 100644 --- a/code/modules/xenoarcheaology/tools/suspension_generator.dm +++ b/code/modules/xenoarcheaology/tools/suspension_generator.dm @@ -21,7 +21,7 @@ var/turf/T = get_turf(suspension_field) for(var/mob/living/M in T) - M.weakened = max(M.weakened, 3) + M.Weaken(3) cell.charge -= power_use if(prob(5)) to_chat(M, "[pick("You feel tingly","You feel like floating","It is hard to speak","You can barely move")].") @@ -208,7 +208,7 @@ for(var/mob/living/M in T) to_chat(M, "You no longer feel like floating.") - M.weakened = min(M.weakened, 3) + M.Weaken(3) src.visible_message("[bicon(src)] [src] deactivates with a gentle shudder.") qdel(suspension_field) diff --git a/config/alienwhitelist.txt b/config/alienwhitelist.txt index 43f188c8b1..da91b16248 100644 --- a/config/alienwhitelist.txt +++ b/config/alienwhitelist.txt @@ -8,6 +8,7 @@ aruis - Diona aruis - Xenochimera amarewolf - Xenochimera azmodan412 - Xenochimera +alphaprime1 - Protean bothnevarbackwards - Diona bricker98 - Protean crossexonar - Protean diff --git a/html/changelogs/mechoid - fishtank.yml b/html/changelogs/mechoid - fishtank.yml new file mode 100644 index 0000000000..b30268dacd --- /dev/null +++ b/html/changelogs/mechoid - fishtank.yml @@ -0,0 +1,36 @@ +################################ +# Example Changelog File +# +# Note: This file, and files beginning with ".", and files that don't end in ".yml" will not be read. If you change this file, you will look really dumb. +# +# Your changelog will be merged with a master changelog. (New stuff added only, and only on the date entry for the day it was merged.) +# When it is, any changes listed below will disappear. +# +# Valid Prefixes: +# bugfix +# wip (For works in progress) +# tweak +# soundadd +# sounddel +# rscadd (general adding of nice things) +# rscdel (general deleting of nice things) +# imageadd +# imagedel +# maptweak +# spellcheck (typo fixes) +# experiment +################################# + +# Your name. +author: Mechoid + +# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again. +delete-after: True + +# Any changes you've made. See valid prefix list above. +# INDENT WITH TWO SPACES. NOT TABS. SPACES. +# SCREW THIS UP AND IT WON'T WORK. +# Also, all entries are changed into a single [] after a master changelog generation. Just remove the brackets when you add new entries. +# Please surround your changes in double quotes ("), as certain characters otherwise screws up compiling. The quotes will not show up in the changelog. +changes: + - rscadd: "Adds a glass jar subtype, the glass tank, that can be used to hold live fish. Remember water!" diff --git a/html/changelogs/rykka-stormheart-pr-7344.yml b/html/changelogs/rykka-stormheart-pr-7344.yml new file mode 100644 index 0000000000..e8394c72cb --- /dev/null +++ b/html/changelogs/rykka-stormheart-pr-7344.yml @@ -0,0 +1,43 @@ +################################ +# Example Changelog File +# +# Note: This file, and files beginning with ".", and files that don't end in ".yml" will not be read. If you change this file, you will look really dumb. +# +# Your changelog will be merged with a master changelog. (New stuff added only, and only on the date entry for the day it was merged.) +# When it is, any changes listed below will disappear. +# +# Valid Prefixes: +# bugfix +# wip (For works in progress) +# tweak +# soundadd +# sounddel +# rscadd (general adding of nice things) +# rscdel (general deleting of nice things) +# imageadd +# imagedel +# maptweak +# spellcheck (typo fixes) +# experiment +################################# + +# Your name. +author: Rykka Stormheart + +# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again. +delete-after: True + +# Any changes you've made. See valid prefix list above. +# INDENT WITH TWO SPACES. NOT TABS. SPACES. +# SCREW THIS UP AND IT WON'T WORK. +# Also, all entries are changed into a single [] after a master changelog generation. Just remove the brackets when you add new entries. +# Please surround your changes in double quotes ("), as certain characters otherwise screws up compiling. The quotes will not show up in the changelog. +changes: + - rscadd: "Ported over Aurora Cooking from AuroraStation and Citadel-RP!" + - rscadd: "Refactored Recipes to be separated per-appliance, and all appliances have a use!" + - rscadd: "Please take note, Chefs, to pre-heat you appliances at the start of your shift." + - rscadd: "Fryer Recipes require batter before they can be made!" + - rscadd: "Fire alarms will go off if you burn food!" + - rscadd: "The largest change - Cooking takes TIME. Around 6 minutes for the largest recipes in the game." + - rscadd: "Too many other changes to list - refer to PR #7344 https://github.com/PolarisSS13/Polaris/pull/7344" + - rscdel: "Removed fun, and any sense of joy in the game." diff --git a/icons/mob/head_vr.dmi b/icons/mob/head_vr.dmi index da75092bd0..8823243859 100644 Binary files a/icons/mob/head_vr.dmi and b/icons/mob/head_vr.dmi differ diff --git a/icons/mob/spacesuit_vr.dmi b/icons/mob/spacesuit_vr.dmi index 4196b2055e..836b3a623d 100644 Binary files a/icons/mob/spacesuit_vr.dmi and b/icons/mob/spacesuit_vr.dmi differ diff --git a/icons/mob/species/akula/suit_vr.dmi b/icons/mob/species/akula/suit_vr.dmi index 5298666e0a..d8ff65f802 100644 Binary files a/icons/mob/species/akula/suit_vr.dmi and b/icons/mob/species/akula/suit_vr.dmi differ diff --git a/icons/mob/species/sergal/suit_vr.dmi b/icons/mob/species/sergal/suit_vr.dmi index 4dcd686873..03adea85fc 100644 Binary files a/icons/mob/species/sergal/suit_vr.dmi and b/icons/mob/species/sergal/suit_vr.dmi differ diff --git a/icons/mob/species/skrell/helmet_vr.dmi b/icons/mob/species/skrell/helmet_vr.dmi index b9806b4a58..be0c1ce344 100644 Binary files a/icons/mob/species/skrell/helmet_vr.dmi and b/icons/mob/species/skrell/helmet_vr.dmi differ diff --git a/icons/mob/species/skrell/suit_vr.dmi b/icons/mob/species/skrell/suit_vr.dmi index f6ca26a428..ab071d5069 100644 Binary files a/icons/mob/species/skrell/suit_vr.dmi and b/icons/mob/species/skrell/suit_vr.dmi differ diff --git a/icons/mob/species/tajaran/helmet_vr.dmi b/icons/mob/species/tajaran/helmet_vr.dmi index c2092f4d20..49cbece23f 100644 Binary files a/icons/mob/species/tajaran/helmet_vr.dmi and b/icons/mob/species/tajaran/helmet_vr.dmi differ diff --git a/icons/mob/species/tajaran/suit_vr.dmi b/icons/mob/species/tajaran/suit_vr.dmi index 738585d622..c20178dacb 100644 Binary files a/icons/mob/species/tajaran/suit_vr.dmi and b/icons/mob/species/tajaran/suit_vr.dmi differ diff --git a/icons/mob/species/unathi/helmet_vr.dmi b/icons/mob/species/unathi/helmet_vr.dmi index 1c26c6271c..e10d5b31ae 100644 Binary files a/icons/mob/species/unathi/helmet_vr.dmi and b/icons/mob/species/unathi/helmet_vr.dmi differ diff --git a/icons/mob/species/unathi/suit_vr.dmi b/icons/mob/species/unathi/suit_vr.dmi index 9cc3bc89d5..f1625306a7 100644 Binary files a/icons/mob/species/unathi/suit_vr.dmi and b/icons/mob/species/unathi/suit_vr.dmi differ diff --git a/icons/mob/species/vulpkanin/helmet_vr.dmi b/icons/mob/species/vulpkanin/helmet_vr.dmi index d0c2f42d32..7ccdf2a14c 100644 Binary files a/icons/mob/species/vulpkanin/helmet_vr.dmi and b/icons/mob/species/vulpkanin/helmet_vr.dmi differ diff --git a/icons/mob/species/vulpkanin/suit_vr.dmi b/icons/mob/species/vulpkanin/suit_vr.dmi index 81229b4f40..e0c20b6092 100644 Binary files a/icons/mob/species/vulpkanin/suit_vr.dmi and b/icons/mob/species/vulpkanin/suit_vr.dmi differ diff --git a/icons/mob/status_indicators.dmi b/icons/mob/status_indicators.dmi new file mode 100644 index 0000000000..64103b82ff Binary files /dev/null and b/icons/mob/status_indicators.dmi differ diff --git a/icons/mob/uniform_1.dmi b/icons/mob/uniform_1.dmi index 32b15484a0..20749c8afc 100644 Binary files a/icons/mob/uniform_1.dmi and b/icons/mob/uniform_1.dmi differ diff --git a/icons/mob/widerobot_vr.dmi b/icons/mob/widerobot_vr.dmi index bf7c205d1f..33381425cd 100644 Binary files a/icons/mob/widerobot_vr.dmi and b/icons/mob/widerobot_vr.dmi differ diff --git a/icons/obj/clothing/hats_vr.dmi b/icons/obj/clothing/hats_vr.dmi index 8a1d7143c6..8f9ad629a7 100644 Binary files a/icons/obj/clothing/hats_vr.dmi and b/icons/obj/clothing/hats_vr.dmi differ diff --git a/icons/obj/clothing/suits_vr.dmi b/icons/obj/clothing/suits_vr.dmi index 6c685554d8..a02c4756df 100644 Binary files a/icons/obj/clothing/suits_vr.dmi and b/icons/obj/clothing/suits_vr.dmi differ diff --git a/icons/obj/clothing/ties.dmi b/icons/obj/clothing/ties.dmi index 0bc7a9fcb2..aa0df8a3b2 100644 Binary files a/icons/obj/clothing/ties.dmi and b/icons/obj/clothing/ties.dmi differ diff --git a/icons/obj/clothing/uniforms_1.dmi b/icons/obj/clothing/uniforms_1.dmi index 47b06c8b29..32a55ec9c2 100644 Binary files a/icons/obj/clothing/uniforms_1.dmi and b/icons/obj/clothing/uniforms_1.dmi differ diff --git a/icons/obj/cooking_machines.dmi b/icons/obj/cooking_machines.dmi index 2badbd97e9..4009cb6224 100644 Binary files a/icons/obj/cooking_machines.dmi and b/icons/obj/cooking_machines.dmi differ diff --git a/icons/obj/food.dmi b/icons/obj/food.dmi index a4f740f88e..efe9039a41 100644 Binary files a/icons/obj/food.dmi and b/icons/obj/food.dmi differ diff --git a/icons/obj/food_custom.dmi b/icons/obj/food_custom.dmi index 4057be3993..ee26eb7777 100644 Binary files a/icons/obj/food_custom.dmi and b/icons/obj/food_custom.dmi differ diff --git a/icons/obj/food_syn.dmi b/icons/obj/food_syn.dmi index f794f3f7de..1104d4ddbf 100644 Binary files a/icons/obj/food_syn.dmi and b/icons/obj/food_syn.dmi differ diff --git a/icons/obj/library.dmi b/icons/obj/library.dmi index 40cde48d26..df5a8757be 100644 Binary files a/icons/obj/library.dmi and b/icons/obj/library.dmi differ diff --git a/icons/obj/toy_vr.dmi b/icons/obj/toy_vr.dmi index 6e927e0f8b..9333c6b938 100644 Binary files a/icons/obj/toy_vr.dmi and b/icons/obj/toy_vr.dmi differ diff --git a/icons/obj/virology.dmi b/icons/obj/virology.dmi index 02a426049b..224c4c9014 100644 Binary files a/icons/obj/virology.dmi and b/icons/obj/virology.dmi differ diff --git a/maps/submaps/surface_submaps/wilderness/Manor1.dmm b/maps/submaps/surface_submaps/wilderness/Manor1.dmm index 311e2b7bb1..4d561d5402 100644 --- a/maps/submaps/surface_submaps/wilderness/Manor1.dmm +++ b/maps/submaps/surface_submaps/wilderness/Manor1.dmm @@ -185,4 +185,4 @@ cNaaaaaaaaaaaaaaaaababcwcFcGabcwcJabcKcLabaaaaaaaaaaaaaaaaaaaaaaaaabcMalalagagag cNaaaaaacOaaaaaaaaaaabababababababababababaaaaaaaaaaaaaaaaaaaaaaaaabababababababababababababaaaaaaaaaaaaaacN cNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaacN cNcNcNcNcNcNcNcNcNcNcNcNcNcNcNcNcNcNcNcNcNcNcNcNcNcNcNcNcNcNcNcNcNcNcNcNcNcNcNcNcNcNcNcNcNcNcNcNcNcNcNcNcNcN -"} \ No newline at end of file +"} diff --git a/maps/tether/submaps/admin_use/ert.dmm b/maps/tether/submaps/admin_use/ert.dmm index b453af2930..6c09554428 100644 --- a/maps/tether/submaps/admin_use/ert.dmm +++ b/maps/tether/submaps/admin_use/ert.dmm @@ -1305,6 +1305,18 @@ /obj/machinery/light, /obj/structure/table/standard, /obj/item/weapon/soap, +/obj/item/weapon/soap, +/obj/item/weapon/soap, +/obj/item/weapon/soap, +/obj/item/weapon/towel{ + color = "#0000FF" + }, +/obj/item/weapon/towel{ + color = "#0000FF" + }, +/obj/item/weapon/towel{ + color = "#0000FF" + }, /obj/item/weapon/towel{ color = "#0000FF" }, @@ -1315,16 +1327,22 @@ name = "custodial" }, /obj/item/weapon/reagent_containers/spray/cleaner, +/obj/item/weapon/reagent_containers/spray/cleaner, +/obj/item/weapon/reagent_containers/spray/cleaner, +/obj/item/weapon/reagent_containers/spray/cleaner, +/obj/item/weapon/reagent_containers/glass/bucket, +/obj/item/weapon/reagent_containers/glass/bucket, +/obj/item/weapon/reagent_containers/glass/bucket, /obj/item/weapon/reagent_containers/glass/bucket, /obj/item/weapon/mop, +/obj/item/weapon/mop, +/obj/item/weapon/mop, +/obj/item/weapon/mop, /obj/item/weapon/rig/ert/janitor, -/turf/simulated/shuttle/floor/black, -/area/shuttle/specops/centcom) -"cG" = ( -/obj/machinery/door/airlock/multi_tile/glass{ - dir = 2; - req_access = list(103) - }, +/obj/item/device/lightreplacer, +/obj/item/device/lightreplacer, +/obj/item/weapon/storage/box/lights/mixed, +/obj/item/weapon/storage/box/lights/mixed, /turf/simulated/shuttle/floor/black, /area/shuttle/specops/centcom) "cH" = ( @@ -2114,6 +2132,12 @@ /obj/item/device/suit_cooling_unit, /turf/simulated/shuttle/floor/black, /area/shuttle/specops/centcom) +"zV" = ( +/obj/machinery/door/airlock/glass_command{ + req_one_access = list(103) + }, +/turf/simulated/shuttle/floor/black, +/area/shuttle/specops/centcom) "HG" = ( /obj/structure/closet/walllocker/emerglocker{ pixel_y = -32 @@ -2133,6 +2157,18 @@ /obj/item/clothing/suit/space/void/responseteam/security, /turf/simulated/shuttle/floor/black, /area/shuttle/specops/centcom) +"WJ" = ( +/obj/structure/table/rack/steel, +/obj/item/clothing/suit/space/void/responseteam/janitor, +/obj/item/clothing/suit/space/void/responseteam/janitor, +/obj/item/clothing/suit/space/void/responseteam/janitor, +/obj/item/clothing/suit/space/void/responseteam/janitor, +/obj/item/weapon/storage/belt/janitor, +/obj/item/weapon/storage/belt/janitor, +/obj/item/weapon/storage/belt/janitor, +/obj/item/weapon/storage/belt/janitor, +/turf/simulated/shuttle/floor/black, +/area/shuttle/specops/centcom) (1,1,1) = {" aa @@ -2800,7 +2836,7 @@ ap am bZ aH -aH +WJ ap ap ap @@ -2837,8 +2873,8 @@ ap ap ap ap -aH -cG +zV +ap am ap da diff --git a/maps/tether/tether-03-surface3.dmm b/maps/tether/tether-03-surface3.dmm index 0a95e78b11..bb3d6a7e1d 100644 --- a/maps/tether/tether-03-surface3.dmm +++ b/maps/tether/tether-03-surface3.dmm @@ -16289,10 +16289,14 @@ /turf/simulated/floor/tiled, /area/rnd/research/testingrange) "aBJ" = ( -/obj/structure/shuttle/engine/propulsion, -/turf/simulated/floor/reinforced, -/turf/simulated/shuttle/plating/carry, -/area/shuttle/tether) +/obj/structure/kitchenspike, +/obj/machinery/alarm/freezer{ + dir = 1; + icon_state = "alarm0"; + pixel_y = -25 + }, +/turf/simulated/floor/tiled/freezer, +/area/crew_quarters/freezer) "aBK" = ( /obj/machinery/door/firedoor/glass, /obj/effect/floor_decal/borderfloorblack, @@ -16333,12 +16337,10 @@ /turf/simulated/floor/tiled, /area/rnd/research/researchdivision) "aBM" = ( -/obj/machinery/atmospherics/unary/engine{ - dir = 1 - }, +/obj/structure/shuttle/engine/propulsion, /turf/simulated/floor/reinforced, /turf/simulated/shuttle/plating/carry, -/area/shuttle/tourbus/engines) +/area/shuttle/tether) "aBN" = ( /obj/structure/disposalpipe/segment{ dir = 4 @@ -32858,14 +32860,12 @@ /turf/simulated/floor/tiled/white, /area/crew_quarters/kitchen) "bet" = ( -/obj/structure/kitchenspike, -/obj/machinery/alarm{ - dir = 1; - pixel_y = -25; - target_temperature = 270 +/obj/machinery/atmospherics/unary/engine{ + dir = 1 }, -/turf/simulated/floor/tiled/freezer, -/area/crew_quarters/freezer) +/turf/simulated/floor/reinforced, +/turf/simulated/shuttle/plating/carry, +/area/shuttle/tourbus/engines) "beu" = ( /obj/effect/floor_decal/corner/grey/diagonal, /obj/structure/cable/green{ @@ -48769,7 +48769,7 @@ jML jHw jpB qWU -aBM +bet aKU aOI aPb @@ -49621,7 +49621,7 @@ caw jHw gHh qWU -aBM +bet aKU aOI aPb @@ -51606,7 +51606,7 @@ aNk uSA aNJ aNP -aBJ +aBM aKU abg aOk @@ -51748,7 +51748,7 @@ aNl aNl aNK aNP -aBJ +aBM aKU abg aOk @@ -51890,7 +51890,7 @@ aNm aNl aNK aNP -aBJ +aBM aKU abg aOk @@ -54702,7 +54702,7 @@ bdI aoJ beP bdR -bet +aBJ aoJ bbr bcB diff --git a/maps/yw/cryogaia-01-centcomm.dmm b/maps/yw/cryogaia-01-centcomm.dmm index 4cab4788e1..2058a0ade5 100644 --- a/maps/yw/cryogaia-01-centcomm.dmm +++ b/maps/yw/cryogaia-01-centcomm.dmm @@ -21264,6 +21264,7 @@ /obj/item/clothing/suit/space/void/responseteam/engineer, /obj/item/clothing/suit/space/void/responseteam/engineer, /obj/item/clothing/suit/space/void/responseteam/engineer, +/obj/item/clothing/suit/space/void/responseteam/engineer, /turf/unsimulated/floor{ icon_state = "dark" }, @@ -21299,6 +21300,17 @@ /obj/item/toy/chess/queen_black, /turf/simulated/floor/holofloor/bmarble, /area/holodeck/source_chess) +"Vr" = ( +/obj/structure/table/rack, +/obj/item/clothing/suit/space/void/responseteam/janitor, +/obj/item/clothing/suit/space/void/responseteam/janitor, +/obj/item/clothing/suit/space/void/responseteam/janitor, +/obj/item/clothing/suit/space/void/responseteam/janitor, +/turf/unsimulated/floor{ + dir = 5; + icon_state = "vault" + }, +/area/centcom/specops) "Vy" = ( /obj/item/toy/chess/bishop_white, /turf/simulated/floor/holofloor/wmarble, @@ -21532,6 +21544,7 @@ /obj/item/clothing/suit/space/void/responseteam/medical, /obj/item/clothing/suit/space/void/responseteam/medical, /obj/item/clothing/suit/space/void/responseteam/medical, +/obj/item/clothing/suit/space/void/responseteam/medical, /turf/unsimulated/floor{ icon_state = "dark" }, @@ -21541,6 +21554,7 @@ /obj/item/clothing/suit/space/void/responseteam/security, /obj/item/clothing/suit/space/void/responseteam/security, /obj/item/clothing/suit/space/void/responseteam/security, +/obj/item/clothing/suit/space/void/responseteam/security, /turf/unsimulated/floor{ icon_state = "dark" }, @@ -45568,7 +45582,7 @@ aa aa aa mO -nB +Vr nB oe mO @@ -45820,7 +45834,7 @@ aa aa aa mO -nC +of nB of mO @@ -46072,9 +46086,9 @@ aa aa aa mO -nD -nO -og +nC +nB +of mO oC pa @@ -46324,9 +46338,9 @@ aa aa aa mO -mO -mO -mO +nD +nO +og mO oC pa @@ -46575,10 +46589,10 @@ aa aa aa aa -aa -aa -aa -aa +mO +mO +mO +mO mO oD nB diff --git a/maps/yw/cryogaia-02-mining.dmm b/maps/yw/cryogaia-02-mining.dmm index d9ef90a721..0702d06d66 100644 --- a/maps/yw/cryogaia-02-mining.dmm +++ b/maps/yw/cryogaia-02-mining.dmm @@ -1722,7 +1722,10 @@ /turf/simulated/floor/tiled, /area/rnd/xenobiology/hallway) "dU" = ( -/obj/machinery/vending/assist, +/obj/machinery/vending/assist{ + icon_state = "generic"; + dir = 8 + }, /turf/simulated/floor/tiled, /area/rnd/xenobiology/hallway) "dV" = ( @@ -3103,7 +3106,10 @@ /obj/effect/floor_decal/corner/purple{ dir = 9 }, -/obj/machinery/vending/cola, +/obj/machinery/vending/cola{ + icon_state = "Soda_Machine"; + dir = 4 + }, /turf/simulated/floor/tiled/white, /area/rnd/outpost/hallway) "gV" = ( @@ -3569,10 +3575,13 @@ /obj/effect/floor_decal/corner/purple{ dir = 9 }, -/obj/machinery/vending/snack, /obj/effect/floor_decal/corner/purple{ dir = 10 }, +/obj/machinery/vending/snack{ + icon_state = "snack"; + dir = 4 + }, /turf/simulated/floor/tiled/white, /area/rnd/outpost/hallway) "hY" = ( @@ -7271,7 +7280,8 @@ "oT" = ( /obj/machinery/door/airlock/research{ name = "Xenoflora Storage"; - req_access = list(55) + req_access = null; + req_one_access = list(77,52) }, /obj/machinery/door/firedoor/border_only, /obj/structure/cable/blue{ @@ -8779,7 +8789,8 @@ }, /obj/machinery/door/airlock/glass_research{ name = "Xenoflora Research"; - req_access = list(55) + req_access = null; + req_one_access = list(77,52) }, /obj/machinery/door/firedoor/glass, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ @@ -9874,7 +9885,8 @@ }, /obj/machinery/door/airlock/glass_research{ name = "Xenoflora Research"; - req_access = list(55) + req_access = null; + req_one_access = list(77,52) }, /obj/machinery/door/firedoor/glass, /turf/simulated/floor/tiled/hydro, @@ -10372,7 +10384,8 @@ /area/rnd/xenobiology/xenoflora) "uz" = ( /obj/machinery/vending/hydronutrients{ - categories = 3 + icon_state = "nutri_generic"; + dir = 1 }, /turf/simulated/floor/tiled/white, /area/rnd/xenobiology/xenoflora) @@ -10953,7 +10966,10 @@ /turf/simulated/floor/tiled/white, /area/rnd/xenobiology/xenoflora) "vy" = ( -/obj/machinery/seed_storage/xenobotany, +/obj/machinery/seed_storage/xenobotany{ + icon_state = "seeds"; + dir = 1 + }, /turf/simulated/floor/tiled/white, /area/rnd/xenobiology/xenoflora) "vz" = ( @@ -19702,11 +19718,17 @@ /turf/simulated/floor/tiled/steel, /area/outpost/mining_main/airlock) "Mb" = ( -/obj/machinery/vending/snack, +/obj/machinery/vending/snack{ + icon_state = "snack"; + dir = 1 + }, /turf/simulated/floor/tiled/dark, /area/outpost/mining_main/break_room) "Mc" = ( -/obj/machinery/vending/cigarette, +/obj/machinery/vending/cigarette{ + icon_state = "cigs"; + dir = 1 + }, /turf/simulated/floor/tiled/dark, /area/outpost/mining_main/break_room) "Md" = ( @@ -20696,10 +20718,10 @@ /turf/simulated/wall, /area/maintenance/shelter3) "Op" = ( -/obj/machinery/door/airlock/glass_external{ - req_one_access = list(7,29) - }, /obj/machinery/door/firedoor/glass, +/obj/machinery/door/airlock/glass_external{ + req_one_access = null + }, /turf/simulated/floor/tiled, /area/maintenance/shelter3) "Oq" = ( @@ -20775,9 +20797,6 @@ /turf/simulated/floor/tiled/steel, /area/maintenance/shelter3) "OB" = ( -/obj/machinery/door/airlock/glass_external{ - req_one_access = list(48) - }, /obj/machinery/door/firedoor/glass, /obj/structure/cable{ d1 = 1; @@ -20785,6 +20804,9 @@ icon_state = "1-2"; pixel_y = 0 }, +/obj/machinery/door/airlock/glass_external{ + req_one_access = null + }, /turf/simulated/floor/tiled, /area/maintenance/shelter3) "OC" = ( diff --git a/maps/yw/cryogaia-04-maintenance.dmm b/maps/yw/cryogaia-04-maintenance.dmm index 88314a779f..6668e78a79 100644 --- a/maps/yw/cryogaia-04-maintenance.dmm +++ b/maps/yw/cryogaia-04-maintenance.dmm @@ -3370,13 +3370,6 @@ }, /turf/simulated/floor/tiled/dark, /area/chapel/main) -"aid" = ( -/obj/structure/stairs/west, -/obj/structure/window/reinforced{ - dir = 1 - }, -/turf/simulated/floor/tiled, -/area/maintenance/lowfloor1) "aie" = ( /obj/structure/cable{ icon_state = "4-8" @@ -10624,12 +10617,6 @@ }, /turf/simulated/floor/tiled, /area/hallway/lower/fore) -"axz" = ( -/obj/structure/window/reinforced{ - dir = 1 - }, -/turf/simulated/floor/tiled, -/area/maintenance/lowfloor1) "axA" = ( /obj/machinery/light/small{ dir = 1 @@ -13421,6 +13408,10 @@ }, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /obj/machinery/atmospherics/pipe/simple/hidden/supply, +/obj/machinery/holoposter{ + dir = 8; + pixel_x = 30 + }, /turf/simulated/floor/tiled, /area/hallway/lower/aft) "aDq" = ( @@ -15396,10 +15387,6 @@ /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /turf/simulated/floor/tiled, /area/hallway/lower/aft) -"aHW" = ( -/obj/structure/sign/poster, -/turf/simulated/wall, -/area/crew_quarters/sleep/cryo) "aHX" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ dir = 5 @@ -18763,17 +18750,8 @@ "aPU" = ( /turf/simulated/wall/r_wall, /area/maintenance/security_lower) -"aPV" = ( -/obj/machinery/door/airlock/maintenance/sec{ - name = "Security Maintenance"; - req_access = list(63); - req_one_access = list(1) - }, -/obj/machinery/door/firedoor/glass, -/turf/simulated/floor/tiled/steel, -/area/maintenance/security_lower) "aPW" = ( -/turf/simulated/mineral/cave, +/turf/simulated/floor/plating, /area/security/prison) "aPX" = ( /obj/structure/cable/green{ @@ -19173,9 +19151,6 @@ /obj/random/maintenance/clean, /turf/simulated/floor, /area/maintenance/starboard) -"aQJ" = ( -/turf/simulated/mineral/cave, -/area/security/range) "aQK" = ( /obj/effect/floor_decal/industrial/outline/yellow, /obj/structure/target_stake, @@ -23481,15 +23456,21 @@ /turf/simulated/floor/tiled, /area/security/perma) "aYZ" = ( -/obj/machinery/vending/hydronutrients, +/obj/machinery/vending/hydronutrients{ + icon_state = "nutri_generic"; + dir = 1 + }, /turf/simulated/floor/tiled, /area/security/perma) "aZa" = ( -/obj/machinery/seed_storage/garden, /obj/machinery/camera/network/prison{ c_tag = "Brig East"; dir = 1 }, +/obj/machinery/seed_storage/garden{ + icon_state = "seeds"; + dir = 1 + }, /turf/simulated/floor/tiled, /area/security/perma) "aZb" = ( @@ -27488,13 +27469,6 @@ }, /turf/simulated/floor/tiled, /area/hallway/lower/dorms) -"bgY" = ( -/obj/item/device/geiger/wall{ - dir = 4; - pixel_x = -30 - }, -/turf/simulated/floor/tiled/techfloor, -/area/crew_quarters/sleep/cryo) "bgZ" = ( /turf/simulated/wall, /area/crew_quarters/sleep/Dorm_2) @@ -28526,6 +28500,10 @@ /obj/structure/disposalpipe/trunk{ dir = 1 }, +/obj/machinery/holoposter{ + dir = 1; + pixel_y = -32 + }, /turf/simulated/floor/tiled/white, /area/crew_quarters/coffee_shop) "biZ" = ( @@ -28592,6 +28570,10 @@ dir = 10 }, /obj/machinery/light, +/obj/machinery/holoposter{ + dir = 1; + pixel_y = -32 + }, /turf/simulated/floor/tiled/white, /area/crew_quarters/coffee_shop) "bjg" = ( @@ -32018,11 +32000,7 @@ /turf/simulated/wall, /area/tcommsat/entrance) "bqg" = ( -/turf/simulated/floor/tiled/dark{ - nitrogen = 100; - oxygen = 0; - temperature = 80 - }, +/turf/simulated/floor/tiled/techfloor, /area/tcommsat/entrance) "bqh" = ( /obj/machinery/firealarm{ @@ -32031,11 +32009,7 @@ pixel_x = 0; pixel_y = 26 }, -/turf/simulated/floor/tiled/dark{ - nitrogen = 100; - oxygen = 0; - temperature = 80 - }, +/turf/simulated/floor/tiled/techfloor, /area/tcommsat/entrance) "bqi" = ( /obj/machinery/light{ @@ -32050,17 +32024,13 @@ /obj/structure/cable/green{ icon_state = "0-2" }, -/turf/simulated/floor/tiled/dark{ - nitrogen = 100; - oxygen = 0; - temperature = 80 - }, +/turf/simulated/floor/tiled/techfloor, /area/tcommsat/entrance) "bqj" = ( /obj/machinery/porta_turret{ dir = 6 }, -/turf/simulated/floor/tiled/dark, +/turf/simulated/floor/tiled/techfloor, /area/tcommsat/entrance) "bqk" = ( /obj/structure/sign/securearea, @@ -32479,11 +32449,7 @@ d2 = 2; icon_state = "1-2" }, -/turf/simulated/floor/tiled/dark{ - nitrogen = 100; - oxygen = 0; - temperature = 80 - }, +/turf/simulated/floor/tiled/techfloor, /area/tcommsat/entrance) "bqZ" = ( /obj/structure/window/reinforced, @@ -33005,27 +32971,19 @@ /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 4 }, -/turf/simulated/floor/tiled/dark{ - nitrogen = 100; - oxygen = 0; - temperature = 80 - }, +/turf/simulated/floor/tiled/techfloor, /area/tcommsat/entrance) "brT" = ( /obj/structure/cable{ icon_state = "2-8" }, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ - dir = 4 - }, /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 4 }, -/turf/simulated/floor/tiled/dark{ - nitrogen = 100; - oxygen = 0; - temperature = 80 +/obj/machinery/atmospherics/pipe/manifold/hidden/scrubbers{ + dir = 1 }, +/turf/simulated/floor/tiled/techfloor, /area/tcommsat/entrance) "brU" = ( /obj/structure/catwalk, @@ -33043,14 +33001,8 @@ /obj/machinery/atmospherics/pipe/manifold/hidden/scrubbers{ dir = 1 }, -/obj/machinery/atmospherics/pipe/manifold/hidden/supply{ - dir = 1 - }, -/turf/simulated/floor/tiled/dark{ - nitrogen = 100; - oxygen = 0; - temperature = 80 - }, +/obj/machinery/atmospherics/pipe/manifold4w/hidden/supply, +/turf/simulated/floor/tiled/techfloor, /area/tcommsat/entrance) "brW" = ( /obj/structure/cable/green{ @@ -33068,11 +33020,7 @@ dir = 4; icon_state = "warning" }, -/turf/simulated/floor/tiled/dark{ - nitrogen = 100; - oxygen = 0; - temperature = 80 - }, +/turf/simulated/floor/tiled/techfloor, /area/tcommsat/entrance) "brX" = ( /obj/item/stack/material/wood{ @@ -33453,20 +33401,15 @@ /obj/structure/cable{ icon_state = "1-2" }, -/turf/simulated/floor/tiled/dark{ - nitrogen = 100; - oxygen = 0; - temperature = 80 +/obj/machinery/atmospherics/unary/vent_scrubber/on{ + dir = 1 }, +/turf/simulated/floor/tiled/techfloor, /area/tcommsat/entrance) "bsK" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, -/turf/simulated/floor/tiled/dark{ - nitrogen = 100; - oxygen = 0; - temperature = 80 - }, +/turf/simulated/floor/tiled/techfloor, /area/tcommsat/entrance) "bsL" = ( /obj/machinery/door/airlock/hatch{ @@ -33713,7 +33656,7 @@ /obj/machinery/porta_turret{ dir = 10 }, -/turf/simulated/floor/tiled/dark, +/turf/simulated/floor/tiled/techfloor, /area/tcommsat/entrance) "btt" = ( /obj/structure/cable/green{ @@ -33784,7 +33727,7 @@ dir = 4; icon_state = "intact" }, -/turf/simulated/floor/tiled, +/turf/simulated/floor/tiled/techfloor, /area/tcommsat/computer) "btz" = ( /obj/machinery/airlock_sensor{ @@ -33813,7 +33756,7 @@ tag_secure = 1 }, /obj/effect/floor_decal/industrial/warning/corner, -/turf/simulated/floor/plating, +/turf/simulated/floor/tiled/techfloor, /area/tcommsat/computer) "btA" = ( /obj/machinery/light/small{ @@ -33829,7 +33772,7 @@ pixel_x = 0; pixel_y = 28 }, -/turf/simulated/floor/plating, +/turf/simulated/floor/tiled/techfloor, /area/tcommsat/computer) "btB" = ( /turf/simulated/floor/plating, @@ -34054,17 +33997,6 @@ "bud" = ( /turf/simulated/wall/r_wall, /area/tcommsat/powercontrol) -"bue" = ( -/obj/structure/cable{ - icon_state = "1-2" - }, -/turf/simulated/floor/tiled/dark, -/area/tcommsat/entrance) -"buf" = ( -/obj/machinery/atmospherics/pipe/simple/hidden/supply, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, -/turf/simulated/floor/tiled/dark, -/area/tcommsat/entrance) "bug" = ( /obj/machinery/light, /turf/simulated/floor/reinforced, @@ -34469,7 +34401,7 @@ /obj/structure/cable{ icon_state = "4-8" }, -/turf/simulated/floor/plating, +/turf/simulated/floor/tiled/techfloor, /area/tcommsat/powercontrol) "buY" = ( /obj/structure/cable{ @@ -34477,7 +34409,7 @@ d2 = 8; icon_state = "1-8" }, -/turf/simulated/floor/tiled/dark, +/turf/simulated/floor/tiled/techfloor, /area/tcommsat/entrance) "buZ" = ( /obj/machinery/light, @@ -34486,7 +34418,7 @@ d2 = 2; icon_state = "1-2" }, -/turf/simulated/floor/tiled/dark, +/turf/simulated/floor/tiled/techfloor, /area/tcommsat/entrance) "bva" = ( /turf/simulated/wall/r_wall, @@ -35380,7 +35312,10 @@ /turf/simulated/floor/plating, /area/maintenance/maintroom5) "bwM" = ( -/obj/machinery/vending/assist, +/obj/machinery/vending/assist{ + icon_state = "generic"; + dir = 8 + }, /turf/simulated/floor/plating, /area/maintenance/maintroom5) "bwN" = ( @@ -36349,7 +36284,7 @@ /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ dir = 4 }, -/turf/simulated/floor/tiled, +/turf/simulated/floor/tiled/techfloor, /area/tcommsat/entrance) "byV" = ( /obj/structure/table/standard, @@ -37749,7 +37684,7 @@ /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ dir = 4 }, -/turf/simulated/floor/tiled, +/turf/simulated/floor/tiled/techfloor, /area/tcommsat/computer) "bBN" = ( /obj/structure/table/steel, @@ -37789,7 +37724,7 @@ /obj/effect/floor_decal/industrial/warning/corner{ dir = 4 }, -/turf/simulated/floor/tiled/dark, +/turf/simulated/floor/tiled/techfloor, /area/tcomfoyer) "bBQ" = ( /obj/effect/floor_decal/spline/plain, @@ -38789,11 +38724,7 @@ dir = 4; icon_state = "camera" }, -/turf/simulated/floor/tiled/dark{ - nitrogen = 100; - oxygen = 0; - temperature = 80 - }, +/turf/simulated/floor/tiled/techfloor, /area/tcommsat/entrance) "bDV" = ( /obj/machinery/hologram/holopad, @@ -38817,11 +38748,7 @@ icon_state = "1-4" }, /obj/machinery/hologram/holopad, -/turf/simulated/floor/tiled/dark{ - nitrogen = 100; - oxygen = 0; - temperature = 80 - }, +/turf/simulated/floor/tiled/techfloor, /area/tcommsat/entrance) "bDX" = ( /obj/machinery/hologram/holopad, @@ -40243,6 +40170,20 @@ }, /turf/simulated/floor/tiled/dark, /area/security/range) +"fxl" = ( +/obj/random/cutout, +/turf/simulated/floor/plating, +/area/maintenance/aft) +"fCu" = ( +/obj/machinery/atmospherics/unary/vent_scrubber/on{ + dir = 1 + }, +/obj/machinery/holoposter{ + dir = 1; + pixel_y = -32 + }, +/turf/simulated/floor/tiled, +/area/civilian/atrium/lower) "fDb" = ( /obj/machinery/atmospherics/pipe/zpipe/up{ dir = 4 @@ -40260,6 +40201,19 @@ /obj/machinery/door/airlock/maintenance/common, /turf/simulated/floor, /area/borealis2/outdoors/grounds/tower/northeast) +"glo" = ( +/obj/structure/cable{ + icon_state = "1-2" + }, +/turf/simulated/floor/tiled/techfloor, +/area/tcommsat/entrance) +"gwZ" = ( +/obj/machinery/holoposter{ + dir = 4; + pixel_x = -30 + }, +/turf/simulated/floor/tiled, +/area/hallway/lower/aft) "gMS" = ( /obj/structure/ladder/up, /turf/simulated/floor/tiled/dark, @@ -40292,23 +40246,22 @@ frequency = 1441; pixel_y = 22 }, -/turf/simulated/floor/tiled/dark{ - nitrogen = 100; - oxygen = 0; - temperature = 80 - }, +/turf/simulated/floor/tiled/techfloor, /area/tcommsat/entrance) +"hvL" = ( +/obj/machinery/holoposter{ + dir = 8; + pixel_x = 30 + }, +/turf/simulated/floor/tiled, +/area/hallway/lower/fore) "hAT" = ( /obj/structure/closet, /turf/simulated/floor/tiled/dark, /area/borealis2/outdoors/grounds/tower/east) "hEt" = ( /obj/effect/floor_decal/industrial/warning/corner, -/turf/simulated/floor/tiled/dark{ - nitrogen = 100; - oxygen = 0; - temperature = 80 - }, +/turf/simulated/floor/tiled/techfloor, /area/tcommsat/entrance) "hJS" = ( /turf/simulated/floor/tiled/white, @@ -40418,6 +40371,13 @@ /obj/structure/sign/atmos/n2, /turf/simulated/wall/r_wall, /area/tcommsat/chamber) +"iNp" = ( +/obj/machinery/holoposter{ + dir = 8; + pixel_x = 30 + }, +/turf/simulated/floor/tiled, +/area/hallway/lower/central) "iRP" = ( /turf/simulated/floor/tiled/dark, /area/borealis2/outdoors/grounds/tower/west) @@ -40453,6 +40413,14 @@ }, /turf/simulated/floor/tiled/white, /area/crew_quarters/coffee_shop) +"jSK" = ( +/obj/machinery/door/airlock/maintenance/sec{ + name = "Security Maintenance"; + req_access = list(63); + req_one_access = list(1) + }, +/turf/simulated/floor/plating, +/area/security/range) "jWo" = ( /obj/machinery/door/airlock/maintenance/common, /turf/simulated/floor, @@ -40492,6 +40460,10 @@ /obj/structure/railing, /turf/simulated/floor/water/indoors, /area/crew_quarters/kitchen/fish_farm) +"lBZ" = ( +/obj/random/cutout, +/turf/simulated/floor/plating, +/area/maintenance/medical_lower) "lDK" = ( /obj/machinery/door/firedoor/glass/hidden/steel{ dir = 2 @@ -40499,6 +40471,12 @@ /obj/structure/disposalpipe/segment, /turf/simulated/floor/tiled, /area/civilian/atrium/lower) +"lJg" = ( +/obj/machinery/light/small{ + dir = 8 + }, +/turf/simulated/floor/plating, +/area/maintenance/medical_lower) "mbM" = ( /obj/structure/table/glass, /obj/structure/cable/green{ @@ -40565,6 +40543,13 @@ }, /turf/simulated/floor, /area/engineering/atmos) +"nRl" = ( +/obj/machinery/holoposter{ + dir = 4; + pixel_x = -30 + }, +/turf/simulated/floor/tiled, +/area/hallway/lower/fore) "nYq" = ( /obj/structure/sign/poster, /turf/simulated/wall/titanium, @@ -40582,10 +40567,32 @@ /obj/structure/sign/poster, /turf/simulated/wall/titanium, /area/borealis2/outdoors/grounds/tower/southwest) +"ozl" = ( +/obj/machinery/light, +/obj/machinery/holoposter{ + dir = 1; + pixel_y = -32 + }, +/turf/simulated/floor/tiled, +/area/civilian/atrium/lower) "oEU" = ( /obj/structure/ladder/up, /turf/simulated/floor/tiled/dark, /area/borealis2/outdoors/grounds/tower/south) +"oPS" = ( +/obj/machinery/holoposter{ + dir = 8; + pixel_x = 30 + }, +/turf/simulated/floor/tiled, +/area/hallway/primary/starboard) +"oUC" = ( +/obj/machinery/holoposter{ + dir = 4; + pixel_x = -30 + }, +/turf/simulated/floor/tiled/techfloor, +/area/crew_quarters/sleep/cryo) "oVe" = ( /obj/structure/closet/crate, /obj/random/maintenance/security, @@ -40642,6 +40649,10 @@ /obj/structure/closet, /turf/simulated/floor/tiled/dark, /area/borealis2/outdoors/grounds/tower/northeast) +"pPl" = ( +/obj/random/cutout, +/turf/simulated/floor/plating, +/area/maintenance/lowfloor3) "pRC" = ( /obj/structure/table/standard{ name = "plastic table frame" @@ -40676,6 +40687,13 @@ /obj/random/maintenance/clean, /turf/simulated/floor/plating, /area/mine/explored/lower_rock) +"qPV" = ( +/obj/machinery/door/airlock/maintenance/sec{ + name = "Security Maintenance"; + req_one_access = list(1,18) + }, +/turf/simulated/floor/plating, +/area/security/prison) "qWF" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /obj/machinery/atmospherics/pipe/simple/hidden/supply, @@ -40700,6 +40718,28 @@ }, /turf/simulated/floor/tiled, /area/civilian/atrium/lower) +"rhO" = ( +/obj/machinery/door/airlock/hatch{ + name = "Telecoms Satellite"; + req_access = newlist(); + req_one_access = list(61,52) + }, +/obj/machinery/door/firedoor, +/obj/structure/cable{ + icon_state = "4-8" + }, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 4 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 4 + }, +/turf/simulated/floor/tiled/techfloor, +/area/tcommsat/entrance) +"riO" = ( +/obj/random/cutout, +/turf/simulated/floor, +/area/mine/explored/lower_rock) "rjR" = ( /obj/machinery/light/small, /obj/structure/table/steel, @@ -40754,6 +40794,12 @@ /obj/structure/table/rack/shelf/steel, /turf/simulated/floor/tiled/dark, /area/borealis2/outdoors/grounds/tower/south) +"ssJ" = ( +/obj/random/obstruction, +/obj/effect/decal/cleanable/dirt, +/obj/random/cutout, +/turf/simulated/floor, +/area/maintenance/security_lower) "szF" = ( /obj/structure/cable{ d1 = 1; @@ -40899,6 +40945,10 @@ /obj/machinery/door/airlock/maintenance/common, /turf/simulated/floor, /area/borealis2/outdoors/grounds/tower/east) +"vQg" = ( +/obj/random/cutout, +/turf/simulated/floor, +/area/maintenance/chapel) "vZk" = ( /obj/machinery/light/small{ dir = 1; @@ -40942,6 +40992,10 @@ "xrS" = ( /turf/simulated/wall/titanium, /area/borealis2/outdoors/grounds/tower/southeast) +"xxt" = ( +/obj/random/cutout, +/turf/simulated/floor, +/area/maintenance/atmos_control) "xze" = ( /obj/structure/closet/crate, /obj/random/maintenance/security, @@ -40971,6 +41025,10 @@ /obj/machinery/door/firedoor, /turf/simulated/floor/plating, /area/maintenance/medical_lower) +"xMs" = ( +/obj/machinery/atmospherics/unary/vent_pump/on, +/turf/simulated/floor/tiled/techfloor, +/area/tcommsat/entrance) "ycA" = ( /obj/structure/sign/poster, /turf/simulated/wall/titanium, @@ -60668,7 +60726,7 @@ aae aac aac adX -afe +pPl afe afe afe @@ -66008,7 +66066,7 @@ agd aNg aNg aOP -aNg +aPU aPU aQN aQN @@ -66260,7 +66318,7 @@ agd aNg aOo aNQ -aNg +aPU aPU aQK aQL @@ -66510,10 +66568,10 @@ ajw agw agd aNg -aOo -aNg +ssJ aNg aPU +aPU aQL aQL aSk @@ -66764,7 +66822,7 @@ age aNO aNQ aNg -aNg +aPU aPU aQK aQL @@ -67016,9 +67074,9 @@ aOp aOq aOr aNQ -aNQ -aPV -aQM +aPU +aPU +aQL aQL aSm aQL @@ -67268,7 +67326,7 @@ age aNQ bhG aOQ -aOs +aPU aPU aQK boh @@ -67506,7 +67564,7 @@ aDY aAs agw agw -agw +lBZ agw agw aJs @@ -67524,7 +67582,7 @@ aOR aOR aQN aQN -aQN +jSK aQN aQN aVk @@ -67771,12 +67829,12 @@ aMy aNj aJt bhG -aOR +qPV aPk aPX aQO aPW -aQJ +aQM aOR aUk aVl @@ -75098,7 +75156,7 @@ bal bal ber bfr -bal +xxt bgI bhz bii @@ -75527,7 +75585,7 @@ abw abw abw abw -abw +abx aci aci aci @@ -75772,7 +75830,7 @@ aaf aaq aan abx -aid +ayH ayH abx abw @@ -75783,7 +75841,7 @@ abx aci aci agw -agw +lJg agw agw afi @@ -75823,7 +75881,7 @@ aFE aBe aBe aIG -aHW +aBe aBe anz anC @@ -76024,13 +76082,13 @@ aaf aaq aaq abx -axz +aNR aNR abx abx abx -abw -aby +abx +abx abx aci aci @@ -76073,9 +76131,9 @@ aBY aER aCB aGe -bgY aCE aCE +oUC aIM anz anD @@ -76579,7 +76637,7 @@ aCB aGg aCE aCE -aFI +aHY aIO anz aom @@ -78390,7 +78448,7 @@ bkK bps bps bps -bsL +rhO bps bps bud @@ -78896,8 +78954,8 @@ bqh bqg brT bsJ -bsJ -bue +glo +glo buY bvJ bwB @@ -79397,12 +79455,12 @@ boe bkK bps bqg -bqg +xMs brV bsK bsK -buf -buf +bsK +bsK bvL bwD bxp @@ -79827,7 +79885,7 @@ ajz ajy akF aig -agj +nRl agj amK ajA @@ -80095,7 +80153,7 @@ avC aww axJ azc -aAb +ozl fMr aBg aBg @@ -80379,7 +80437,7 @@ aAX aCN awv awv -ayN +gwZ ayN ayN imj @@ -80580,7 +80638,7 @@ agj ahD agj agj -agj +hvL agj akJ all @@ -80615,7 +80673,7 @@ aGQ dcc aHF aKk -aAc +fCu aLe aMk aMQ @@ -81629,7 +81687,7 @@ cBv awv aCK awv -awv +iNp aAD awv aHa @@ -84403,7 +84461,7 @@ aMW aNC aLp aLM -aPb +oPS aPK aQx aRf @@ -85695,7 +85753,7 @@ bls bkO bkO boQ -bls +fxl bls brg bls @@ -89141,7 +89199,7 @@ acN aeX acB adB -acN +vQg adw acB ahh @@ -89242,7 +89300,7 @@ bls bls bkO brg -bls +fxl bkO aan aan @@ -89437,7 +89495,7 @@ aJL aeq aan abq -acZ +riO aeY aNd ahi diff --git a/maps/yw/cryogaia-05-main.dmm b/maps/yw/cryogaia-05-main.dmm index af5b785d0d..00a3d202b6 100644 --- a/maps/yw/cryogaia-05-main.dmm +++ b/maps/yw/cryogaia-05-main.dmm @@ -717,6 +717,9 @@ /area/hallway/secondary/exit) "abI" = ( /obj/structure/table/standard, +/obj/machinery/holoposter{ + pixel_y = 32 + }, /turf/simulated/floor/tiled, /area/hallway/secondary/exit) "abJ" = ( @@ -2073,6 +2076,9 @@ dir = 4 }, /obj/effect/floor_decal/corner/red, +/obj/machinery/holoposter{ + pixel_y = 32 + }, /turf/simulated/floor/tiled, /area/hallway/secondary/exit_link) "aeu" = ( @@ -3983,6 +3989,9 @@ /obj/effect/floor_decal/corner/blue{ dir = 1 }, +/obj/machinery/holoposter{ + pixel_y = 32 + }, /turf/simulated/floor/tiled, /area/hallway/secondary/entry/docking_lounge) "ait" = ( @@ -6143,6 +6152,9 @@ /obj/machinery/atmospherics/portables_connector{ dir = 4 }, +/obj/effect/floor_decal/corner/white{ + dir = 8 + }, /turf/simulated/floor/tiled, /area/hallway/secondary/entry/docking_lounge) "amB" = ( @@ -6515,6 +6527,12 @@ /obj/machinery/light{ dir = 8 }, +/obj/effect/floor_decal/corner/white{ + dir = 8 + }, +/obj/effect/floor_decal/corner/blue{ + dir = 1 + }, /turf/simulated/floor/tiled, /area/hallway/secondary/entry/docking_lounge) "ano" = ( @@ -7023,6 +7041,13 @@ /obj/machinery/atmospherics/unary/vent_scrubber/on{ dir = 1 }, +/obj/machinery/holoposter{ + dir = 4; + pixel_x = -30 + }, +/obj/effect/floor_decal/corner/blue{ + dir = 1 + }, /turf/simulated/floor/tiled, /area/hallway/secondary/entry/docking_lounge) "aoh" = ( @@ -7033,13 +7058,6 @@ dir = 8 }, /obj/effect/floor_decal/corner/blue, -/obj/machinery/computer/guestpass{ - dir = 1; - pixel_y = -30 - }, -/turf/simulated/floor/tiled, -/area/hallway/secondary/entry/docking_lounge) -"aoi" = ( /obj/machinery/embedded_controller/radio/docking_port_multi{ child_names_txt = "Airlock One;Airlock Two"; child_tags_txt = "arrivals_dock_north_airlock;arrivals_dock_south_airlock"; @@ -7049,18 +7067,11 @@ pixel_y = -25; req_one_access = list(13) }, -/obj/effect/floor_decal/corner/white{ - dir = 8 - }, -/obj/effect/floor_decal/corner/blue, /turf/simulated/floor/tiled, /area/hallway/secondary/entry/docking_lounge) "aoj" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, -/obj/effect/floor_decal/corner/white{ - dir = 8 - }, /turf/simulated/floor/tiled, /area/hallway/secondary/entry/docking_lounge) "aok" = ( @@ -7510,26 +7521,20 @@ /turf/simulated/floor/tiled/white, /area/medical/medbay3) "aoW" = ( -/obj/machinery/door/airlock/glass, /obj/machinery/atmospherics/pipe/simple/hidden/supply, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, -/obj/effect/floor_decal/corner/white{ - dir = 8 +/obj/machinery/door/airlock/multi_tile/glass{ + req_access = list(); + req_one_access = list() }, -/obj/machinery/door/firedoor/glass, +/obj/machinery/door/firedoor/multi_tile, /turf/simulated/floor/tiled, /area/hallway/secondary/entry/docking_lounge) -"aoX" = ( -/obj/structure/grille, -/obj/machinery/door/firedoor/glass, -/obj/structure/window/reinforced/full, -/obj/structure/disposalpipe/segment, -/turf/simulated/floor/plating, -/area/hallway/secondary/entry/docking_lounge) "aoY" = ( -/obj/machinery/door/airlock/glass, /obj/machinery/door/firedoor/glass, -/turf/simulated/floor/tiled, +/obj/structure/grille, +/obj/structure/window/reinforced/full, +/turf/simulated/floor/plating, /area/hallway/secondary/entry/docking_lounge) "aoZ" = ( /obj/structure/grille, @@ -8420,10 +8425,6 @@ }, /turf/simulated/floor/tiled/white, /area/medical/reception) -"aqu" = ( -/obj/machinery/door/firedoor, -/turf/simulated/floor/tiled/white, -/area/medical/reception) "aqv" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, @@ -9541,7 +9542,6 @@ /turf/simulated/floor/tiled/white, /area/medical/medbay_primary_storage) "aso" = ( -/obj/machinery/door/firedoor, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ dir = 4 }, @@ -9554,6 +9554,9 @@ /obj/structure/disposalpipe/segment{ dir = 4 }, +/obj/machinery/door/firedoor/multi_tile{ + dir = 2 + }, /turf/simulated/floor/tiled/white, /area/medical/reception) "asp" = ( @@ -12650,10 +12653,6 @@ /obj/structure/sign/nosmoking_1, /turf/simulated/wall, /area/medical/reception) -"axG" = ( -/obj/structure/noticeboard/medical, -/turf/simulated/wall, -/area/medical/patient_c) "axH" = ( /obj/structure/disposalpipe/segment, /obj/structure/cable/green{ @@ -15107,6 +15106,9 @@ name = "HoP Office Line Shutters"; opacity = 0 }, +/obj/effect/floor_decal/industrial/loading{ + dir = 4 + }, /turf/simulated/floor/tiled, /area/civilian/atrium/central) "aCc" = ( @@ -15693,6 +15695,9 @@ name = "HoP Office Line Shutters"; opacity = 0 }, +/obj/effect/floor_decal/industrial/loading{ + dir = 8 + }, /turf/simulated/floor/tiled, /area/civilian/atrium/central) "aCY" = ( @@ -15883,10 +15888,6 @@ }, /turf/simulated/floor/wood, /area/crew_quarters/captain) -"aDw" = ( -/obj/effect/decal/cleanable/dirt, -/turf/simulated/floor/outdoors/snow/snow/snow2/cryogaia, -/area/borealis2/outdoors/grounds) "aDx" = ( /obj/structure/ladder, /turf/simulated/floor/plating, @@ -16562,7 +16563,10 @@ /turf/simulated/floor/plating, /area/maintenance/bridge) "aEW" = ( -/obj/machinery/vending/nifsoft_shop, +/obj/machinery/vending/nifsoft_shop{ + icon_state = "proj"; + dir = 8 + }, /turf/simulated/floor/tiled, /area/civilian/atrium/central) "aEX" = ( @@ -16855,6 +16859,10 @@ dir = 4 }, /obj/effect/decal/cleanable/dirt, +/obj/machinery/holoposter{ + dir = 8; + pixel_x = 30 + }, /turf/simulated/floor/tiled/steel, /area/hallway/primary/aft) "aFz" = ( @@ -17292,6 +17300,7 @@ /obj/structure/cable{ icon_state = "32-4" }, +/obj/machinery/door/firedoor/glass, /turf/simulated/open, /area/maintenance/medbay) "aGo" = ( @@ -20321,6 +20330,10 @@ /obj/effect/floor_decal/corner/blue/full{ dir = 8 }, +/obj/structure/noticeboard/blueshield{ + name = "blueshield notice board"; + pixel_y = 28 + }, /turf/simulated/floor/tiled/old_tile/blue, /area/bridge/blueshield) "aMz" = ( @@ -20738,21 +20751,6 @@ /obj/effect/floor_decal/rust, /turf/simulated/floor, /area/maintenance/bridge) -"aNq" = ( -/obj/structure/reagent_dispensers/fueltank, -/obj/effect/decal/cleanable/dirt, -/turf/simulated/floor, -/area/maintenance/bridge) -"aNr" = ( -/obj/machinery/alarm{ - dir = 8; - pixel_x = 25; - pixel_y = 0 - }, -/obj/structure/reagent_dispensers/watertank, -/obj/effect/decal/cleanable/dirt, -/turf/simulated/floor, -/area/maintenance/bridge) "aNs" = ( /obj/structure/table/rack, /obj/item/weapon/flame/lighter/zippo/blue, @@ -21842,6 +21840,9 @@ /area/security/brig) "aPo" = ( /obj/machinery/washing_machine, +/obj/machinery/light{ + dir = 1 + }, /turf/simulated/floor/tiled/freezer, /area/crew_quarters/showers) "aPp" = ( @@ -22165,11 +22166,6 @@ /turf/simulated/floor/wood, /area/bridge/meeting_room) "aPY" = ( -/obj/machinery/door/airlock/glass_command{ - id_tag = "sbridgedoor"; - name = "Command Department"; - req_access = list(19) - }, /obj/structure/cable/green{ d1 = 4; d2 = 8; @@ -22184,6 +22180,10 @@ /obj/structure/disposalpipe/segment{ dir = 4 }, +/obj/machinery/door/airlock/glass_command{ + name = "Blueshield Office" + }, +/obj/machinery/door/firedoor/glass, /turf/simulated/floor/tiled/old_tile/blue, /area/bridge/blueshield) "aPZ" = ( @@ -22441,6 +22441,10 @@ /obj/machinery/light{ dir = 1 }, +/obj/structure/noticeboard{ + name = "security notice board"; + pixel_y = 28 + }, /turf/simulated/floor/tiled/steel, /area/security/briefing_room) "aQy" = ( @@ -22489,8 +22493,11 @@ /turf/simulated/floor/tiled/white, /area/crew_quarters/kitchen) "aQE" = ( -/obj/machinery/vending/dinnerware, /obj/effect/floor_decal/corner/grey/diagonal, +/obj/machinery/vending/dinnerware{ + icon_state = "dinnerware"; + dir = 1 + }, /turf/simulated/floor/tiled/white, /area/crew_quarters/kitchen) "aQF" = ( @@ -23466,6 +23473,9 @@ /obj/structure/toilet{ dir = 8 }, +/obj/machinery/light/small{ + dir = 4 + }, /turf/simulated/floor/tiled/freezer, /area/crew_quarters/showers) "aSp" = ( @@ -23528,6 +23538,11 @@ icon_state = "1-2"; pixel_y = 0 }, +/obj/machinery/light{ + dir = 4; + icon_state = "tube1"; + pixel_x = 0 + }, /turf/simulated/floor/tiled/freezer, /area/crew_quarters/showers) "aSw" = ( @@ -24990,6 +25005,10 @@ /obj/structure/cable{ icon_state = "4-8" }, +/obj/structure/noticeboard{ + name = "public notice board"; + pixel_y = 28 + }, /turf/simulated/floor/tiled, /area/civilian/atrium/central) "aVa" = ( @@ -28600,9 +28619,6 @@ /turf/simulated/floor/tiled/white, /area/security/security_aid_station) "bbl" = ( -/obj/structure/sign/department/bar{ - pixel_x = -32 - }, /obj/machinery/atmospherics/unary/vent_scrubber/on{ dir = 4 }, @@ -30920,6 +30936,10 @@ /obj/effect/floor_decal/corner/red{ dir = 10 }, +/obj/machinery/holoposter{ + dir = 1; + pixel_y = -32 + }, /turf/simulated/floor/tiled, /area/civilian/atrium/central) "bff" = ( @@ -32954,7 +32974,7 @@ dir = 4 }, /obj/structure/reagent_dispensers/water_cooler/full, -/turf/simulated/floor/tiled/steel_grid, +/turf/simulated/floor/tiled/techfloor, /area/engineering/workshop) "biJ" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply, @@ -35355,7 +35375,7 @@ pixel_y = 2 }, /obj/item/weapon/storage/box/cups, -/turf/simulated/floor/tiled/steel_grid, +/turf/simulated/floor/tiled/techfloor, /area/engineering/workshop) "bmS" = ( /obj/structure/cable/green{ @@ -38306,6 +38326,10 @@ /obj/effect/floor_decal/corner_oldtile/purple{ dir = 8 }, +/obj/machinery/holoposter{ + dir = 4; + pixel_x = -30 + }, /turf/simulated/floor/tiled, /area/hallway/primary/starboard) "bsj" = ( @@ -39249,7 +39273,7 @@ /obj/machinery/atmospherics/unary/vent_scrubber/on{ dir = 4 }, -/turf/simulated/floor/tiled/steel_grid, +/turf/simulated/floor/tiled/techfloor, /area/engineering/workshop) "btX" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ @@ -39349,6 +39373,11 @@ c_tag = "Engineering Workshop East"; dir = 8 }, +/obj/structure/extinguisher_cabinet{ + dir = 8; + icon_state = "extinguisher_closed"; + pixel_x = 30 + }, /turf/simulated/floor/tiled/steel_grid, /area/engineering/workshop) "buj" = ( @@ -41654,7 +41683,7 @@ /turf/simulated/floor/tiled, /area/crew_quarters/heads/chief) "bxS" = ( -/turf/simulated/floor/tiled, +/turf/simulated/floor/plating, /area/crew_quarters/heads/chief) "bxT" = ( /turf/simulated/wall, @@ -42461,10 +42490,6 @@ pixel_y = 4 }, /obj/item/device/radio/off, -/obj/structure/extinguisher_cabinet{ - pixel_x = 5; - pixel_y = -32 - }, /obj/effect/floor_decal/corner/blue, /obj/effect/floor_decal/corner/yellow{ dir = 8 @@ -43901,6 +43926,10 @@ /obj/effect/floor_decal/corner/yellow{ dir = 5 }, +/obj/structure/noticeboard{ + name = "engineering notice board"; + pixel_y = 28 + }, /turf/simulated/floor/tiled, /area/engineering/hallway) "bBH" = ( @@ -48402,6 +48431,9 @@ /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /obj/machinery/atmospherics/pipe/simple/hidden/supply, /obj/structure/disposalpipe/segment, +/obj/structure/cable/green{ + icon_state = "0-2" + }, /turf/simulated/floor, /area/maintenance/substation/cargo) "bJg" = ( @@ -50549,6 +50581,9 @@ /area/crew_quarters/locker/locker_toilet) "bMO" = ( /obj/machinery/atmospherics/unary/vent_scrubber/on, +/obj/machinery/holoposter{ + pixel_y = 32 + }, /turf/simulated/floor/tiled/freezer, /area/crew_quarters/locker/locker_toilet) "bMP" = ( @@ -58555,7 +58590,7 @@ "cbI" = ( /obj/machinery/door/airlock/glass_external, /obj/effect/map_helper/airlock/door/simple, -/turf/simulated/shuttle/plating, +/turf/simulated/shuttle/floor/white, /area/shuttle/residential) "cbJ" = ( /obj/structure/cable/yellow{ @@ -62899,6 +62934,10 @@ d2 = 2; icon_state = "1-2" }, +/obj/machinery/holoposter{ + dir = 8; + pixel_x = 30 + }, /turf/simulated/floor/tiled, /area/civilian/atrium/central) "ckD" = ( @@ -63135,20 +63174,13 @@ d2 = 8; icon_state = "4-8" }, -/obj/machinery/vending/coffee, -/obj/item/device/radio/intercom{ - broadcasting = 0; - dir = 2; - frequency = 1475; - icon_state = "intercom"; - listening = 1; - name = "Station Intercom (Security)"; - pixel_x = 0; - pixel_y = -21 - }, /obj/effect/floor_decal/corner/red{ dir = 10 }, +/obj/machinery/vending/coffee{ + icon_state = "coffee"; + dir = 1 + }, /turf/simulated/floor/tiled/steel, /area/security/pilotroom) "csf" = ( @@ -63443,6 +63475,24 @@ "cZS" = ( /turf/simulated/floor/tiled/techmaint, /area/borealis2/outdoors/grounds/tower/southwest) +"dar" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 4 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 4 + }, +/obj/structure/disposalpipe/segment{ + dir = 4 + }, +/obj/effect/floor_decal/corner/brown{ + dir = 5 + }, +/obj/machinery/holoposter{ + pixel_y = 32 + }, +/turf/simulated/floor/tiled, +/area/hallway/primary/starboard) "dcv" = ( /obj/machinery/camera/network/outside{ c_tag = "Solar Array Shed - Exterior" @@ -63547,6 +63597,12 @@ "dNQ" = ( /turf/simulated/wall/titanium, /area/borealis2/outdoors/grounds/wall) +"dQf" = ( +/obj/structure/grille, +/obj/structure/window/reinforced/full, +/obj/machinery/door/firedoor/glass, +/turf/simulated/floor/plating, +/area/hallway/secondary/entry/docking_lounge) "dVw" = ( /turf/simulated/floor/tiled/steel, /area/maintenance/medbay) @@ -63591,6 +63647,10 @@ /obj/effect/zone_divider, /turf/simulated/floor/outdoors/snow/snow/cryogaia/covered, /area/borealis2/outdoors/exterior/explore3) +"eez" = ( +/obj/random/cutout, +/turf/simulated/floor/plating, +/area/maintenance/medbay) "eeB" = ( /obj/machinery/light/small{ dir = 1; @@ -64156,6 +64216,16 @@ /obj/effect/floor_decal/corner/red{ dir = 10 }, +/obj/item/device/radio/intercom{ + broadcasting = 0; + dir = 2; + frequency = 1475; + icon_state = "intercom"; + listening = 1; + name = "Station Intercom (Security)"; + pixel_x = 0; + pixel_y = -21 + }, /turf/simulated/floor/tiled/steel, /area/security/pilotroom) "gcR" = ( @@ -64403,6 +64473,21 @@ }, /turf/simulated/floor/plating, /area/maintenance/security) +"hkx" = ( +/obj/machinery/light/small{ + dir = 1; + icon_state = "bulb1" + }, +/obj/machinery/camera/motion/command{ + c_tag = "Blueshield Reserve"; + dir = 1 + }, +/obj/structure/closet/secure_closet/guncabinet{ + name = "equipment case"; + req_one_access = list(350) + }, +/turf/simulated/floor/tiled/dark, +/area/bridge/blueshield) "hkP" = ( /obj/structure/cable/heavyduty{ icon_state = "2-8" @@ -65178,6 +65263,10 @@ }, /turf/simulated/floor/outdoors/snow/snow/snow2/cryogaia, /area/borealis2/outdoors/grounds) +"kka" = ( +/obj/random/cutout, +/turf/simulated/floor/plating, +/area/maintenance/bridge) "kki" = ( /obj/structure/cable/heavyduty{ icon_state = "2-8" @@ -65199,6 +65288,16 @@ }, /turf/simulated/floor/plating/snow/plating/cryogaia, /area/borealis2/outdoors/grounds/power) +"kkC" = ( +/obj/structure/bed/chair/wood/wings{ + dir = 8; + icon_state = "wooden_chair_wings" + }, +/obj/structure/sign/double/barsign{ + dir = 4 + }, +/turf/simulated/floor/wood, +/area/crew_quarters/bar) "kmr" = ( /obj/structure/grille, /obj/structure/window/reinforced/full, @@ -65355,6 +65454,25 @@ }, /turf/simulated/floor/tiled/techfloor, /area/shuttle/security) +"kIU" = ( +/obj/structure/cable{ + d1 = 4; + d2 = 8; + icon_state = "4-8"; + pixel_x = 0 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 4 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 4 + }, +/obj/machinery/holoposter{ + dir = 1; + pixel_y = -32 + }, +/turf/simulated/floor/tiled, +/area/hallway/primary/starboard) "kJo" = ( /obj/structure/stairs/south, /turf/simulated/floor/plating/snow/plating/cryogaia, @@ -65785,6 +65903,10 @@ }, /turf/simulated/floor/plating/snow/plating, /area/borealis2/outdoors/grounds) +"mvY" = ( +/obj/effect/floor_decal/industrial/loading, +/turf/simulated/floor/tiled, +/area/crew_quarters/heads/hop) "mwo" = ( /obj/effect/floor_decal/snow/floor/edges3, /obj/effect/floor_decal/snow/floor/edges3{ @@ -66388,6 +66510,12 @@ /obj/machinery/atmospherics/pipe/simple/hidden/supply, /turf/simulated/floor, /area/engineering/engine_room) +"oGh" = ( +/obj/machinery/holoposter{ + pixel_y = 32 + }, +/turf/simulated/floor/tiled, +/area/hallway/primary/central_one) "oHa" = ( /obj/machinery/alarm{ dir = 8; @@ -66445,6 +66573,7 @@ /obj/structure/disposalpipe/up{ dir = 1 }, +/obj/machinery/door/firedoor/glass, /turf/simulated/floor/plating, /area/maintenance/medbay) "oQv" = ( @@ -66516,6 +66645,10 @@ }, /turf/simulated/floor/tiled/dark, /area/security/hangar) +"paz" = ( +/obj/random/cutout, +/turf/simulated/floor, +/area/engineering/drone_fabrication) "paU" = ( /obj/structure/cable/green{ d1 = 1; @@ -66562,6 +66695,10 @@ "pih" = ( /turf/simulated/floor/tiled/dark, /area/medical/medbay) +"pii" = ( +/obj/random/cutout, +/turf/simulated/floor/plating, +/area/lawoffice) "piA" = ( /obj/effect/floor_decal/borderfloorblack, /obj/effect/floor_decal/industrial/danger, @@ -67033,7 +67170,10 @@ /obj/effect/floor_decal/corner/pink/full{ dir = 4 }, -/obj/machinery/vending/medical, +/obj/machinery/vending/medical{ + icon_state = "med"; + dir = 1 + }, /turf/simulated/floor/tiled/white, /area/medical/patient_wing) "rrd" = ( @@ -67111,6 +67251,13 @@ /obj/machinery/recharger, /turf/simulated/floor/tiled/techmaint, /area/borealis2/outdoors/grounds/tower/east) +"rGh" = ( +/obj/machinery/door/airlock/highsecurity/red{ + name = "Blueshield Special Reserve"; + req_one_access = list(350) + }, +/turf/simulated/floor/tiled/dark, +/area/bridge/blueshield) "rKg" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ dir = 4 @@ -67338,6 +67485,13 @@ /obj/structure/stairs/north, /turf/simulated/floor/tiled/techmaint, /area/borealis2/outdoors/grounds/tower/southwest) +"sAw" = ( +/obj/structure/noticeboard{ + name = "bridge notice board"; + pixel_y = 28 + }, +/turf/simulated/floor/tiled/dark, +/area/bridge) "sAF" = ( /obj/machinery/light/small{ dir = 1; @@ -68138,6 +68292,21 @@ }, /turf/simulated/floor/plating, /area/borealis2/outdoors/grounds/traderpad) +"vfS" = ( +/obj/structure/cable/green{ + d1 = 1; + d2 = 2; + icon_state = "1-2" + }, +/obj/machinery/atmospherics/pipe/simple/hidden/supply, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, +/obj/structure/disposalpipe/segment, +/obj/machinery/holoposter{ + dir = 4; + pixel_x = -30 + }, +/turf/simulated/floor/tiled, +/area/civilian/atrium/central) "vhi" = ( /turf/simulated/floor/outdoors/ice, /area/borealis2/outdoors/exterior) @@ -68180,6 +68349,13 @@ }, /turf/simulated/wall, /area/medical/psych) +"vpw" = ( +/obj/machinery/holoposter{ + dir = 8; + pixel_x = 30 + }, +/turf/simulated/floor/tiled, +/area/hallway/primary/aft) "vrr" = ( /obj/structure/cable/green{ d1 = 1; @@ -68263,6 +68439,28 @@ }, /turf/simulated/floor/tiled/dark, /area/security/hangar) +"vFD" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 4 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 4 + }, +/obj/structure/disposalpipe/segment{ + dir = 4 + }, +/obj/structure/cable{ + icon_state = "4-8" + }, +/obj/effect/floor_decal/corner/red{ + dir = 5 + }, +/obj/structure/noticeboard{ + name = "security notice board"; + pixel_y = 28 + }, +/turf/simulated/floor/tiled/steel, +/area/security/hallway) "vFI" = ( /obj/structure/stairs/north, /turf/simulated/floor/tiled/techmaint, @@ -68519,6 +68717,13 @@ }, /turf/simulated/floor/plating/snow/plating/cryogaia, /area/borealis2/outdoors/grounds/power) +"wrG" = ( +/obj/machinery/atmospherics/unary/vent_scrubber/on, +/obj/machinery/holoposter{ + pixel_y = 32 + }, +/turf/simulated/floor/tiled, +/area/hallway/primary/starboard) "wss" = ( /obj/structure/grille, /obj/structure/cable/green{ @@ -68793,6 +68998,15 @@ /obj/effect/floor_decal/corner/red, /turf/simulated/floor/tiled/dark, /area/security/hangar) +"xfy" = ( +/obj/structure/cable{ + d1 = 4; + d2 = 8; + icon_state = "4-8" + }, +/obj/machinery/alarm, +/turf/simulated/floor/plating, +/area/maintenance/bridge) "xjh" = ( /obj/effect/floor_decal/rust, /obj/structure/cable/green{ @@ -74343,7 +74557,7 @@ pbC pbC pbC cfP -qbe +cfP qbe cfP cfP @@ -86258,7 +86472,7 @@ aag aag aag aag -aDw +aag aag aag aag @@ -86510,7 +86724,7 @@ aag aag aag aag -aDw +aag aag aag aag @@ -86762,7 +86976,7 @@ aag aag aag aag -aDw +aag aag aag aag @@ -87014,8 +87228,8 @@ aag aag aag aag -aDw -aDw +aag +aag aag aag aHP @@ -87265,9 +87479,9 @@ aag aag aag aag -aDw -aDw -aDw +aag +aag +aag aag aag aHP @@ -87775,9 +87989,9 @@ aag aag aag aHP -aIB -aIB aKp +aIB +aIB aHP dcv abk @@ -95320,7 +95534,7 @@ aag aag aag akb -akA +eez akA akA akA @@ -99353,7 +99567,7 @@ ckj avG avR avG -axG +atC cir ayo azc @@ -101891,7 +102105,7 @@ aHj aIZ aJP aHp -bhP +pii aMW aNC aOx @@ -101905,7 +102119,7 @@ aYO bdU bhs bar -bfv +vFD bmQ bnd bne @@ -106220,7 +106434,7 @@ bID bJM bKW bMn -bMn +paz bKW bJM bID @@ -106439,7 +106653,7 @@ aSZ aUU aWg aXg -aXg +kkC aTL aQt aZf @@ -106691,7 +106905,7 @@ aRG aUS aFu aRG -aNH +aRG aRI bcZ bcZ @@ -107165,7 +107379,7 @@ aoT auM ckt aoT -apM +oGh apM azy aHy @@ -107174,7 +107388,7 @@ kBA aCe aBY aAk -aAk +vfS aAk aFO aAk @@ -107410,7 +107624,7 @@ ano aoh agk apL -aqu +aqq aso apL aoT @@ -107659,8 +107873,8 @@ ajv ajv amB ano -aoi -agk +ajI +dQf apM apM arq @@ -108164,7 +108378,7 @@ ajw amD anq anq -aoX +anq apO apM ars @@ -108963,7 +109177,7 @@ aYn dKN dKN bbP -bde +vpw bde bfx bgK @@ -109695,7 +109909,7 @@ aCi aDj aDk aFb -aFb +mvY aGJ aHC aDl @@ -111466,7 +111680,7 @@ aDl aFV aFV aKK -aLB +sAw aMp aNi aNR @@ -111955,7 +112169,7 @@ atl atl atl atl -ayV +kka awY axZ aBo @@ -112240,7 +112454,7 @@ aZt baM bbY aYu -bep +wrG bfH cia bgT @@ -113229,7 +113443,7 @@ aHI aIj aJw aAu -ayU +xfy aLE aMw aNo @@ -114005,7 +114219,7 @@ aHu aHu atI beo -bfD +kIU aYz bie bjB @@ -114238,8 +114452,8 @@ aIn gQF aAu ayU -avg -aNq +aLG +aLG aNY aOY aRV @@ -114490,8 +114704,8 @@ aBD sdy aAu lAq -avg -aNr +aLG +aLG aNY aOZ aRV @@ -114742,8 +114956,8 @@ aIp aAu aAu ayU -avg -avg +aLG +hkx aNY aPa aRV @@ -114995,7 +115209,7 @@ aAu avg aKQ aLG -aLG +rGh aLG aLG aPb @@ -117298,7 +117512,7 @@ bwl bxn byB bsl -bBe +dar bCs beo beq diff --git a/maps/yw/cryogaia-06-upper.dmm b/maps/yw/cryogaia-06-upper.dmm index 7dc5926785..38a742e4f9 100644 --- a/maps/yw/cryogaia-06-upper.dmm +++ b/maps/yw/cryogaia-06-upper.dmm @@ -581,7 +581,7 @@ }, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /obj/machinery/atmospherics/pipe/simple/hidden/supply, -/turf/simulated/floor/tiled, +/turf/simulated/floor/tiled/white, /area/medical/medbayskybridge) "aeZ" = ( /obj/structure/table/rack/shelf/steel, @@ -597,7 +597,7 @@ name = "plastic table frame" }, /obj/random/maintenance/medical, -/turf/simulated/floor/tiled, +/turf/simulated/floor/tiled/white, /area/medical/medbayskybridge) "afT" = ( /turf/simulated/shuttle/wall/voidcraft/hard_corner/blue, @@ -648,7 +648,7 @@ pixel_x = 21; pixel_y = 0 }, -/turf/simulated/floor/tiled, +/turf/simulated/floor/tiled/white, /area/medical/medbayskybridge) "amc" = ( /obj/structure/catwalk, @@ -689,7 +689,7 @@ icon_state = "cigs"; dir = 4 }, -/turf/simulated/floor/tiled, +/turf/simulated/floor/tiled/white, /area/medical/medbayskybridge) "aqW" = ( /obj/structure/cable{ @@ -763,7 +763,7 @@ layer = 3.3; pixel_x = 26 }, -/turf/simulated/floor/tiled, +/turf/simulated/floor/tiled/white, /area/medical/medbayskybridge) "aAM" = ( /obj/structure/cable/green{ @@ -779,6 +779,13 @@ }, /turf/simulated/floor/tiled, /area/civilian/atrium/upper) +"aBj" = ( +/obj/structure/railing/grey{ + dir = 1; + flags = null + }, +/turf/simulated/floor/plating/snow/plating/cryogaia, +/area/borealis2/outdoors/grounds/upper) "aBo" = ( /obj/structure/disposalpipe/segment, /turf/simulated/wall, @@ -1066,6 +1073,11 @@ /obj/structure/railing/grey, /turf/simulated/open/cryogaia, /area/borealis2/outdoors/grounds/tower/south) +"bnO" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, +/obj/machinery/atmospherics/pipe/simple/hidden/supply, +/turf/simulated/floor/wood, +/area/security/breakroom) "bnZ" = ( /obj/item/weapon/stool/padded, /obj/effect/floor_decal/corner/paleblue/diagonal{ @@ -1163,7 +1175,7 @@ /obj/effect/floor_decal/corner/paleblue{ dir = 9 }, -/turf/simulated/floor/tiled, +/turf/simulated/floor/tiled/white, /area/medical/medbayskybridge) "buV" = ( /obj/effect/floor_decal/corner/paleblue{ @@ -1173,7 +1185,7 @@ icon_state = "coffee"; dir = 4 }, -/turf/simulated/floor/tiled, +/turf/simulated/floor/tiled/white, /area/medical/medbayskybridge) "buZ" = ( /obj/effect/floor_decal/corner/paleblue/diagonal{ @@ -1432,7 +1444,7 @@ d2 = 8; icon_state = "4-8" }, -/turf/simulated/floor/tiled, +/turf/simulated/floor/tiled/white, /area/medical/medbayskybridge) "bYL" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, @@ -1821,7 +1833,7 @@ /area/civilian/atrium/upper) "dcB" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, -/turf/simulated/floor/tiled, +/turf/simulated/floor/tiled/white, /area/medical/medbayskybridge) "dfC" = ( /obj/structure/bed/chair/wood{ @@ -1843,7 +1855,7 @@ icon_state = "fitness"; dir = 4 }, -/turf/simulated/floor/tiled, +/turf/simulated/floor/tiled/white, /area/medical/medbayskybridge) "dhP" = ( /obj/effect/floor_decal/corner/paleblue/diagonal{ @@ -2264,15 +2276,24 @@ /area/borealis2/outdoors/grounds/tower/west) "efV" = ( /obj/structure/railing, -/obj/effect/floor_decal/corner/red{ - dir = 5 - }, /obj/machinery/light/no_nightshift{ icon_state = "tube1"; dir = 1 }, +/obj/effect/floor_decal/corner/red{ + dir = 1 + }, /turf/simulated/floor/tiled, /area/security/watchtower) +"egN" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 6 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 6 + }, +/turf/simulated/floor/wood, +/area/security/breakroom) "ehJ" = ( /obj/structure/railing{ dir = 4; @@ -2437,7 +2458,7 @@ }, /obj/machinery/disposal, /obj/structure/disposalpipe/trunk, -/turf/simulated/floor/tiled, +/turf/simulated/floor/tiled/white, /area/medical/medbayskybridge) "eKY" = ( /obj/machinery/light{ @@ -2468,7 +2489,7 @@ /obj/structure/bed/chair{ dir = 1 }, -/turf/simulated/floor/tiled, +/turf/simulated/floor/tiled/white, /area/medical/medbayskybridge) "eQZ" = ( /turf/simulated/wall, @@ -2594,6 +2615,12 @@ }, /turf/simulated/floor/tiled, /area/chapel/monastery/upper) +"flA" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 4 + }, +/turf/simulated/floor/wood, +/area/security/breakroom) "fmx" = ( /obj/structure/disposalpipe/segment{ dir = 8; @@ -2840,6 +2867,12 @@ /obj/structure/disposalpipe/segment, /turf/simulated/floor/tiled/white, /area/medical/medbayupper) +"gcN" = ( +/obj/structure/table/rack/steel, +/obj/random/maintenance/security, +/obj/random/maintenance/security, +/turf/simulated/floor/plating, +/area/maintenance/security_tower) "gdt" = ( /obj/structure/railing/grey{ icon_state = "grey_railing0"; @@ -2869,8 +2902,13 @@ icon_state = "tube1"; pixel_x = 0 }, -/turf/simulated/floor/tiled, +/turf/simulated/floor/tiled/white, /area/medical/medbayskybridge) +"ghz" = ( +/obj/machinery/door/firedoor/glass, +/obj/effect/wingrille_spawn/reinforced, +/turf/simulated/floor/plating, +/area/security/breakroom) "giD" = ( /obj/effect/floor_decal/corner/paleblue{ dir = 6 @@ -2879,7 +2917,7 @@ dir = 4; icon_state = "tube1" }, -/turf/simulated/floor/tiled, +/turf/simulated/floor/tiled/white, /area/medical/medbayskybridge) "gjI" = ( /obj/effect/floor_decal/industrial/warning/dust{ @@ -2989,7 +3027,7 @@ pixel_x = 25; pixel_y = 0 }, -/turf/simulated/floor/tiled, +/turf/simulated/floor/tiled/white, /area/medical/medbayskybridge) "gvx" = ( /obj/structure/railing{ @@ -3005,7 +3043,7 @@ /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 10 }, -/turf/simulated/floor/tiled, +/turf/simulated/floor/tiled/white, /area/medical/medbayskybridge) "gyY" = ( /obj/structure/cable/green{ @@ -3049,7 +3087,7 @@ "gFG" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /obj/machinery/atmospherics/pipe/simple/hidden/supply, -/turf/simulated/floor/tiled, +/turf/simulated/floor/tiled/white, /area/medical/medbayskybridge) "gHl" = ( /obj/effect/floor_decal/industrial/warning/dust/corner{ @@ -3224,6 +3262,21 @@ /obj/effect/zone_divider, /turf/simulated/floor/plating/snow/plating/cryogaia, /area/borealis2/outdoors/grounds/walkway/exploration) +"hpL" = ( +/obj/structure/table/standard{ + name = "plastic table frame" + }, +/obj/machinery/microwave, +/obj/item/device/geiger/wall{ + dir = 8; + pixel_x = 30 + }, +/obj/machinery/light/no_nightshift{ + icon_state = "tube1"; + dir = 4 + }, +/turf/simulated/floor/wood, +/area/security/breakroom) "hqr" = ( /obj/machinery/atmospherics/unary/vent_pump/on{ dir = 8 @@ -3285,6 +3338,7 @@ dir = 6 }, /obj/random/medical/lite, +/obj/random/tetheraid, /turf/simulated/floor/tiled/white, /area/cryogaia/station/medical/upper) "hAJ" = ( @@ -3293,6 +3347,20 @@ }, /turf/simulated/floor/tiled, /area/security/watchtower) +"hAV" = ( +/obj/machinery/power/apc{ + dir = 2; + name = "south bump"; + pixel_y = -28; + req_access = newlist(); + req_one_access = list(51) + }, +/obj/structure/cable/green{ + d2 = 8; + icon_state = "0-8" + }, +/turf/simulated/floor/wood, +/area/security/breakroom) "hCZ" = ( /turf/simulated/wall, /area/civilian/atrium/upper) @@ -3303,7 +3371,7 @@ /obj/effect/floor_decal/corner/paleblue/full{ dir = 8 }, -/turf/simulated/floor/tiled, +/turf/simulated/floor/tiled/white, /area/medical/medbayskybridge) "hFf" = ( /turf/simulated/open, @@ -3399,7 +3467,7 @@ /obj/machinery/door/airlock/maintenance/sec, /obj/machinery/door/firedoor, /turf/simulated/floor/plating, -/area/maintenance/security_tower) +/area/security/watchtower) "hRM" = ( /obj/effect/floor_decal/corner/paleblue{ dir = 4 @@ -3418,6 +3486,26 @@ /obj/item/device/instrument/recorder, /turf/simulated/floor/wood, /area/chapel/monastery/music) +"hTY" = ( +/obj/structure/cable/green{ + d1 = 2; + d2 = 4; + icon_state = "2-4" + }, +/obj/item/device/radio/intercom/department/security{ + dir = 8; + icon_state = "secintercom"; + pixel_x = -24; + pixel_y = 0 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/supply, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, +/obj/machinery/light/no_nightshift{ + icon_state = "tube1"; + dir = 8 + }, +/turf/simulated/floor/wood, +/area/security/breakroom) "hUR" = ( /obj/structure/railing/grey{ icon_state = "grey_railing0"; @@ -3668,6 +3756,25 @@ }, /turf/simulated/floor/tiled/white, /area/crew_quarters/medbreak) +"iCu" = ( +/obj/structure/table/standard{ + name = "plastic table frame" + }, +/obj/item/weapon/storage/box/donkpockets, +/obj/machinery/atmospherics/unary/vent_pump/on{ + dir = 8 + }, +/obj/machinery/camera/network/security{ + c_tag = "Break Room"; + dir = 8 + }, +/obj/structure/extinguisher_cabinet{ + dir = 8; + icon_state = "extinguisher_closed"; + pixel_x = 30 + }, +/turf/simulated/floor/wood, +/area/security/breakroom) "iCB" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ dir = 4; @@ -3817,7 +3924,7 @@ pixel_x = 28; pixel_y = 0 }, -/turf/simulated/floor/tiled, +/turf/simulated/floor/tiled/white, /area/medical/medbayskybridge) "jeP" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, @@ -3912,6 +4019,9 @@ /obj/structure/table/steel, /turf/simulated/floor/tiled, /area/security/watchtower) +"jyR" = ( +/turf/simulated/wall/r_wall, +/area/security/breakroom) "jzU" = ( /obj/structure/catwalk, /obj/structure/railing/grey{ @@ -3967,7 +4077,7 @@ /area/cryogaia/station/hallway/primary/upper) "jKN" = ( /obj/machinery/atmospherics/unary/vent_scrubber/on, -/turf/simulated/floor/tiled, +/turf/simulated/floor/tiled/white, /area/medical/medbayskybridge) "jLk" = ( /obj/structure/cable/green{ @@ -4059,6 +4169,13 @@ /obj/machinery/atmospherics/pipe/simple/hidden/supply, /turf/simulated/floor/tiled/techmaint, /area/quartermaster/miningdock) +"jYb" = ( +/obj/machinery/holoposter{ + dir = 1; + pixel_y = -32 + }, +/turf/simulated/floor/tiled, +/area/cryogaia/station/hallway/primary/upper) "jZh" = ( /obj/structure/cable{ icon_state = "4-8" @@ -4161,7 +4278,7 @@ /obj/effect/floor_decal/corner/paleblue{ dir = 1 }, -/turf/simulated/floor/tiled, +/turf/simulated/floor/tiled/white, /area/medical/medbayskybridge) "kpg" = ( /obj/machinery/vending/coffee{ @@ -4279,9 +4396,6 @@ }, /turf/simulated/floor/tiled, /area/civilian/atrium/upper) -"kJK" = ( -/turf/simulated/wall, -/area/maintenance/security_tower) "kKk" = ( /obj/machinery/atmospherics/unary/vent_scrubber/on, /turf/simulated/floor/tiled, @@ -4303,7 +4417,7 @@ dir = 1 }, /obj/machinery/camera/network/medbay, -/turf/simulated/floor/tiled, +/turf/simulated/floor/tiled/white, /area/medical/medbayskybridge) "kPV" = ( /obj/machinery/light/small{ @@ -4326,7 +4440,7 @@ /obj/effect/floor_decal/corner/paleblue{ dir = 9 }, -/turf/simulated/floor/tiled, +/turf/simulated/floor/tiled/white, /area/medical/medbayskybridge) "kUh" = ( /obj/effect/floor_decal/corner/paleblue/full{ @@ -4354,6 +4468,18 @@ }, /turf/simulated/floor/tiled, /area/quartermaster/miningdock) +"kVN" = ( +/obj/structure/cable/green{ + d1 = 4; + d2 = 8; + icon_state = "4-8" + }, +/obj/machinery/vending/coffee{ + icon_state = "coffee"; + dir = 1 + }, +/turf/simulated/floor/wood, +/area/security/breakroom) "kZT" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 4 @@ -4427,7 +4553,7 @@ /obj/machinery/atmospherics/unary/vent_pump/on{ dir = 4 }, -/turf/simulated/floor/tiled, +/turf/simulated/floor/tiled/white, /area/medical/medbayskybridge) "lkz" = ( /obj/structure/disposalpipe/segment{ @@ -4481,6 +4607,14 @@ }, /turf/simulated/floor/tiled, /area/quartermaster/miningdock) +"lut" = ( +/obj/machinery/firealarm{ + dir = 1; + pixel_x = 6; + pixel_y = -24 + }, +/turf/simulated/floor/wood, +/area/security/breakroom) "lvE" = ( /obj/machinery/access_button/airlock_exterior{ master_tag = "Monastary_Upper_NW_Exit"; @@ -4495,6 +4629,12 @@ /obj/effect/floor_decal/industrial/hatch/yellow, /turf/simulated/floor/plating/snow/plating, /area/chapel/monastery/upper) +"lvH" = ( +/obj/structure/bed/chair{ + dir = 4 + }, +/turf/simulated/floor/wood, +/area/security/breakroom) "lwd" = ( /turf/simulated/open, /area/cryogaia/station/explorer_upper) @@ -4858,9 +4998,6 @@ /turf/simulated/floor/tiled, /area/civilian/atrium/upper) "mzQ" = ( -/obj/effect/floor_decal/corner/red{ - dir = 4 - }, /obj/item/device/radio/intercom/department/security{ dir = 4; icon_state = "secintercom"; @@ -4994,6 +5131,13 @@ "mWF" = ( /turf/simulated/floor/plating/snow/plating/cryogaia, /area/borealis2/outdoors/grounds/walkway/exploration) +"mYz" = ( +/obj/structure/catwalk, +/obj/structure/railing/grey{ + flags = null + }, +/turf/simulated/open/cryogaia, +/area/borealis2/outdoors/grounds/walkway/exploration) "mYC" = ( /obj/machinery/light{ dir = 8; @@ -5134,11 +5278,18 @@ /obj/effect/floor_decal/corner/paleblue{ dir = 6 }, -/turf/simulated/floor/tiled, +/turf/simulated/floor/tiled/white, /area/medical/medbayskybridge) "nny" = ( /turf/simulated/floor/tiled, /area/cryogaia/station/hallway/primary/upper) +"noQ" = ( +/obj/structure/table/standard{ + name = "plastic table frame" + }, +/obj/item/weapon/deck/cards, +/turf/simulated/floor/wood, +/area/security/breakroom) "nqi" = ( /obj/effect/floor_decal/corner/paleblue/diagonal{ dir = 4 @@ -5153,7 +5304,7 @@ /turf/simulated/floor/tiled/white, /area/crew_quarters/medbreak) "nrN" = ( -/turf/simulated/floor/tiled, +/turf/simulated/floor/tiled/white, /area/medical/medbayskybridge) "nsl" = ( /obj/structure/cable{ @@ -5286,6 +5437,12 @@ }, /turf/simulated/floor/tiled/techmaint, /area/chapel/monastery/upper) +"nHt" = ( +/obj/structure/bed/chair{ + dir = 8 + }, +/turf/simulated/floor/wood, +/area/security/breakroom) "nIj" = ( /turf/simulated/floor/tiled/dark, /area/borealis2/outdoors/grounds/upper) @@ -5307,6 +5464,10 @@ /obj/structure/closet/emcloset, /turf/simulated/shuttle/floor/yellow, /area/shuttle/belter) +"nOw" = ( +/obj/structure/reagent_dispensers/water_cooler/full, +/turf/simulated/floor/wood, +/area/security/breakroom) "nPp" = ( /obj/machinery/atmospherics/unary/vent_pump/on{ dir = 4 @@ -5378,7 +5539,7 @@ icon_state = "0-4" }, /obj/structure/disposalpipe/segment, -/turf/simulated/floor/tiled, +/turf/simulated/floor/tiled/white, /area/medical/medbayskybridge) "nYu" = ( /obj/effect/floor_decal/industrial/warning/dust/corner{ @@ -5661,6 +5822,12 @@ }, /turf/simulated/floor/tiled/techmaint, /area/quartermaster/miningdock) +"oBV" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 6 + }, +/turf/simulated/floor/wood, +/area/security/breakroom) "oCb" = ( /obj/structure/lattice, /obj/structure/cable/green{ @@ -5695,6 +5862,17 @@ /obj/effect/floor_decal/rust, /turf/simulated/floor/tiled/techmaint, /area/civilian/atrium/upper) +"oCZ" = ( +/obj/structure/table/standard{ + name = "plastic table frame" + }, +/obj/item/weapon/storage/box/cups, +/obj/machinery/holoposter{ + dir = 8; + pixel_x = 30 + }, +/turf/simulated/floor/wood, +/area/security/breakroom) "oDz" = ( /obj/structure/ladder, /turf/simulated/floor/plating/snow/plating/cryogaia, @@ -5836,6 +6014,18 @@ }, /turf/simulated/floor/tiled, /area/quartermaster/miningdock) +"oUY" = ( +/obj/effect/floor_decal/corner/paleblue{ + dir = 5 + }, +/obj/structure/noticeboard/medical{ + dir = 4; + name = "medical notice board"; + pixel_x = 0; + pixel_y = 28 + }, +/turf/simulated/floor/tiled/white, +/area/medical/medbayupper) "oWp" = ( /obj/structure/cable/green{ d1 = 4; @@ -5920,7 +6110,7 @@ /obj/machinery/camera/network/medbay{ dir = 1 }, -/turf/simulated/floor/tiled, +/turf/simulated/floor/tiled/white, /area/medical/medbayskybridge) "phE" = ( /obj/effect/floor_decal/corner/brown/full, @@ -5961,6 +6151,9 @@ }, /turf/simulated/open, /area/civilian/atrium/upper) +"psk" = ( +/turf/simulated/floor/plating, +/area/maintenance/security_tower) "puK" = ( /obj/structure/railing/grey{ icon_state = "grey_railing0"; @@ -6156,6 +6349,13 @@ /obj/effect/floor_decal/corner/brown, /turf/simulated/floor/tiled, /area/quartermaster/miningdock) +"qgu" = ( +/obj/structure/table/standard{ + name = "plastic table frame" + }, +/obj/machinery/atmospherics/unary/vent_scrubber/on, +/turf/simulated/floor/wood, +/area/security/breakroom) "qgB" = ( /obj/effect/wingrille_spawn/reinforced, /obj/machinery/door/firedoor/glass, @@ -6198,6 +6398,9 @@ d2 = 4; icon_state = "2-4" }, +/obj/machinery/holoposter{ + pixel_y = 32 + }, /turf/simulated/floor/tiled, /area/cryogaia/station/hallway/primary/upper) "qlq" = ( @@ -6214,7 +6417,6 @@ /turf/simulated/floor/tiled/techmaint, /area/borealis2/outdoors/grounds/tower/southeast) "qmn" = ( -/obj/machinery/vending/snack, /obj/effect/floor_decal/corner/paleblue/diagonal{ dir = 4 }, @@ -6222,6 +6424,10 @@ dir = 8; icon_state = "tube1" }, +/obj/machinery/vending/snack{ + icon_state = "snack"; + dir = 4 + }, /turf/simulated/floor/tiled/white, /area/crew_quarters/medbreak) "qmp" = ( @@ -6240,14 +6446,11 @@ /obj/structure/railing{ dir = 4 }, -/obj/effect/floor_decal/corner/red{ - dir = 9 +/obj/effect/floor_decal/corner/red/full, +/obj/item/device/geiger/wall{ + dir = 4; + pixel_x = -30 }, -/obj/structure/closet, -/obj/random/maintenance/security, -/obj/random/maintenance/security, -/obj/random/maintenance/security, -/obj/random/maintenance/security, /turf/simulated/floor/tiled, /area/security/watchtower) "qmJ" = ( @@ -6440,7 +6643,7 @@ dir = 1 }, /obj/structure/flora/pottedplant/large, -/turf/simulated/floor/tiled, +/turf/simulated/floor/tiled/white, /area/medical/medbayskybridge) "qzN" = ( /turf/simulated/wall, @@ -6522,6 +6725,13 @@ }, /turf/simulated/floor/plating/snow/plating/cryogaia, /area/borealis2/outdoors/grounds/upper) +"qGH" = ( +/obj/structure/closet, +/obj/random/maintenance/security, +/obj/random/maintenance/security, +/obj/random/maintenance/security, +/turf/simulated/floor/plating, +/area/maintenance/security_tower) "qGO" = ( /obj/effect/floor_decal/corner/paleblue/full{ dir = 1 @@ -6665,6 +6875,13 @@ }, /turf/simulated/floor/tiled/white, /area/medical/medbayupper) +"rds" = ( +/obj/machinery/holoposter{ + dir = 4; + pixel_x = -30 + }, +/turf/simulated/floor/tiled, +/area/cryogaia/station/hallway/primary/upper) "rdP" = ( /obj/structure/railing/grey, /obj/structure/railing/grey{ @@ -6739,12 +6956,6 @@ /obj/machinery/cell_charger, /turf/simulated/floor/tiled, /area/security/watchtower) -"rnY" = ( -/obj/effect/floor_decal/corner/red/full{ - dir = 1 - }, -/turf/simulated/floor/tiled, -/area/security/watchtower) "rpj" = ( /obj/structure/catwalk, /obj/structure/railing/grey{ @@ -6789,7 +7000,7 @@ /obj/effect/floor_decal/corner/paleblue{ dir = 6 }, -/turf/simulated/floor/tiled, +/turf/simulated/floor/tiled/white, /area/medical/medbayskybridge) "rDD" = ( /turf/simulated/shuttle/floor/white/cryogaia, @@ -7066,7 +7277,7 @@ /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 4 }, -/turf/simulated/floor/tiled, +/turf/simulated/floor/tiled/white, /area/medical/medbayskybridge) "syH" = ( /obj/structure/cable/green{ @@ -7390,7 +7601,7 @@ name = "plastic table frame" }, /obj/item/weapon/material/ashtray/plastic, -/turf/simulated/floor/tiled, +/turf/simulated/floor/tiled/white, /area/medical/medbayskybridge) "tgz" = ( /obj/structure/bookcase/manuals/medical, @@ -7409,7 +7620,7 @@ dir = 8; pixel_x = 28 }, -/turf/simulated/floor/tiled, +/turf/simulated/floor/tiled/white, /area/medical/medbayskybridge) "tjQ" = ( /obj/effect/floor_decal/corner/brown{ @@ -7554,6 +7765,22 @@ }, /turf/simulated/open/cryogaia, /area/borealis2/outdoors/grounds/tower/west) +"tEB" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 4 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 9 + }, +/turf/simulated/floor/wood, +/area/security/breakroom) +"tGf" = ( +/obj/machinery/light/small{ + icon_state = "bulb1"; + dir = 1 + }, +/turf/simulated/floor/plating, +/area/maintenance/security_tower) "tKT" = ( /obj/structure/catwalk, /obj/structure/railing/grey{ @@ -7705,6 +7932,13 @@ }, /turf/simulated/floor/tiled/white, /area/cryogaia/station/medical/upper) +"tWN" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 9; + pixel_y = 0 + }, +/turf/simulated/floor/wood, +/area/security/breakroom) "tXH" = ( /obj/machinery/door/firedoor/glass, /obj/machinery/door/airlock/medical{ @@ -7721,6 +7955,18 @@ }, /turf/simulated/floor/plating, /area/constructionsite/medical/upper) +"tYd" = ( +/obj/machinery/door/airlock/maintenance/sec, +/obj/structure/cable/green{ + d1 = 1; + d2 = 2; + icon_state = "1-2" + }, +/obj/machinery/atmospherics/pipe/simple/hidden/supply, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, +/obj/machinery/door/firedoor, +/turf/simulated/floor/plating, +/area/security/breakroom) "tZb" = ( /turf/simulated/floor/plating, /area/cryogaia/station/hallway/primary/upper) @@ -7827,6 +8073,13 @@ }, /turf/simulated/floor/tiled/white, /area/medical/medbayupper) +"ure" = ( +/obj/machinery/light_switch{ + dir = 8; + pixel_x = 28 + }, +/turf/simulated/floor/wood, +/area/security/breakroom) "uro" = ( /obj/effect/floor_decal/corner/paleblue{ dir = 5 @@ -7859,6 +8112,13 @@ }, /turf/simulated/floor/tiled, /area/civilian/atrium/upper) +"uzO" = ( +/obj/machinery/light/no_nightshift{ + icon_state = "tube1"; + dir = 4 + }, +/turf/simulated/floor/tiled, +/area/security/watchtower) "uAo" = ( /obj/structure/catwalk, /obj/structure/railing/grey, @@ -8013,6 +8273,7 @@ c_tag = "Medical Loft"; dir = 1 }, +/obj/random/tetheraid, /turf/simulated/floor/tiled/white, /area/cryogaia/station/medical/upper) "vdm" = ( @@ -8108,6 +8369,13 @@ /obj/machinery/atmospherics/pipe/manifold/hidden/supply, /turf/simulated/floor/plating, /area/constructionsite/cryogaia/upper) +"vrU" = ( +/obj/machinery/door/airlock/glass_security{ + name = "Security Breakroom" + }, +/obj/machinery/door/firedoor/glass, +/turf/simulated/floor/tiled, +/area/security/breakroom) "vtA" = ( /turf/simulated/floor/plating, /area/maintenance/medical_upper) @@ -8283,6 +8551,13 @@ }, /turf/simulated/open/cryogaia, /area/borealis2/outdoors/grounds/tower/northwest) +"vTQ" = ( +/obj/machinery/door/airlock/glass_security{ + name = "Security Breakroom" + }, +/obj/machinery/door/firedoor/glass, +/turf/simulated/floor/tiled, +/area/security/watchtower) "vTU" = ( /obj/effect/floor_decal/corner/paleblue/diagonal{ dir = 4 @@ -8311,6 +8586,13 @@ }, /turf/simulated/open/cryogaia, /area/borealis2/outdoors/grounds/tower/south) +"vZc" = ( +/obj/structure/railing/grey{ + dir = 4; + flags = null + }, +/turf/simulated/floor/plating/snow/plating/cryogaia, +/area/borealis2/outdoors/grounds/upper) "wdS" = ( /obj/structure/cable/green{ d1 = 4; @@ -8425,7 +8707,7 @@ /obj/effect/floor_decal/corner/paleblue{ dir = 6 }, -/turf/simulated/floor/tiled, +/turf/simulated/floor/tiled/white, /area/medical/medbayskybridge) "wte" = ( /turf/simulated/wall/titanium, @@ -8538,15 +8820,17 @@ d2 = 8; icon_state = "2-8" }, -/obj/machinery/atmospherics/pipe/simple/hidden/supply{ - dir = 10 +/obj/structure/cable/green{ + d1 = 1; + d2 = 8; + icon_state = "1-8" }, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ - dir = 10 +/obj/machinery/atmospherics/pipe/manifold/hidden/scrubbers{ + icon_state = "map-scrubbers"; + dir = 4 }, -/obj/machinery/light/small{ - dir = 4; - pixel_y = 0 +/obj/machinery/atmospherics/pipe/manifold/hidden/supply{ + dir = 4 }, /turf/simulated/floor/plating, /area/maintenance/security_tower) @@ -8576,6 +8860,12 @@ /obj/structure/table/steel, /turf/simulated/floor/tiled, /area/security/watchtower) +"wNY" = ( +/obj/structure/closet, +/obj/random/maintenance/security, +/obj/random/maintenance/security, +/turf/simulated/floor/plating, +/area/maintenance/security_tower) "wPJ" = ( /obj/structure/catwalk, /obj/structure/railing/grey, @@ -8712,6 +9002,13 @@ /obj/effect/floor_decal/corner/purple, /turf/simulated/floor/tiled, /area/cryogaia/station/explorer_upper) +"xkg" = ( +/obj/machinery/alarm{ + dir = 1; + pixel_y = -22 + }, +/turf/simulated/floor/wood, +/area/security/breakroom) "xlt" = ( /obj/effect/wingrille_spawn/reinforced, /obj/machinery/door/firedoor/glass, @@ -8878,7 +9175,7 @@ icon_state = "Soda_Machine"; dir = 4 }, -/turf/simulated/floor/tiled, +/turf/simulated/floor/tiled/white, /area/medical/medbayskybridge) "xFu" = ( /obj/structure/bed/chair, @@ -8900,6 +9197,9 @@ /obj/machinery/light, /turf/simulated/floor/tiled, /area/cryogaia/station/hallway/primary/upper) +"xMy" = ( +/turf/simulated/floor/wood, +/area/security/breakroom) "xOp" = ( /obj/effect/floor_decal/corner/white/full{ icon_state = "corner_white_full"; @@ -37361,13 +37661,13 @@ eFr eFr eFr eFr -eFr -eFr -eFr -eFr -eFr -eFr -tlZ +jyR +ghz +ghz +ghz +ghz +jyR +jyR ovG tlZ tlZ @@ -37613,13 +37913,13 @@ eFr eFr eFr eFr -eFr -eFr -eFr -eFr -eFr -eFr -tlZ +ghz +lvH +lvH +egN +bnO +hTY +tYd wFQ pmD pmD @@ -37865,18 +38165,18 @@ eFr eFr eFr eFr -eFr -eFr -eFr -eFr -eFr -eFr -tlZ -tlZ -tlZ -kJK +ghz +noQ +qgu +tEB +xMy +kVN +jyR +tGf +gcN +aDf hRu -kJK +aDf aDf cnY ieg @@ -38117,15 +38417,15 @@ eFr eFr eFr eFr -eFr -eFr -eFr -eFr -eFr -eFr -eFr -eFr -eFr +ghz +nHt +nHt +flA +xMy +hAV +jyR +psk +psk aDf qmJ qmr @@ -38369,15 +38669,15 @@ eFr eFr eFr eFr -eFr -eFr -eFr -eFr -eFr -eFr -eFr -eFr -eFr +ghz +xMy +xMy +flA +xMy +xkg +jyR +wNY +qGH aDf sWj xqc @@ -38621,15 +38921,15 @@ eFr eFr eFr eFr -eFr -eFr -eFr -eFr -eFr -eFr -eFr -eFr -eFr +ghz +xMy +oBV +tWN +xMy +lut +jyR +qUI +qUI aDf efV xqc @@ -38873,17 +39173,17 @@ eFr eFr eFr eFr -eFr -eFr -eFr -eFr -eFr -eFr -eFr -eFr -eFr -aDf -rnY +jyR +hpL +iCu +oCZ +nOw +ure +vrU +uzO +jjc +vTQ +jjc mzQ lbF jjc @@ -39125,15 +39425,15 @@ eFr eFr eFr eFr -eFr -eFr -eFr -eFr -eFr -eFr -eFr -eFr -eFr +jyR +jyR +jyR +jyR +jyR +jyR +jyR +qUI +qUI aDf aDf aDf @@ -39349,7 +39649,7 @@ kwL nZu oxg iXv -mEQ +oUY vfZ itq iXv @@ -44208,7 +44508,7 @@ eFr eFr eFr aZL -aZL +vZc fbI eFr eFr @@ -44461,7 +44761,7 @@ aZL dXx aaf aaf -xAZ +aBj eFr eFr eFr @@ -54284,7 +54584,7 @@ nny nny nny oLF -nny +rds nny nny nny @@ -56556,7 +56856,7 @@ pQE pQE wYp nny -nny +jYb erL eFr eFr @@ -59330,7 +59630,7 @@ erL qoj xFf qaR -aZL +vZc aZL aZL dXx @@ -59581,7 +59881,7 @@ aaf aaf gRM pBg -vVm +mYz aaf aaf aaf diff --git a/maps/yw/residential/residential.dmm b/maps/yw/residential/residential.dmm index 119f018aef..31bbccb35d 100644 --- a/maps/yw/residential/residential.dmm +++ b/maps/yw/residential/residential.dmm @@ -10486,6 +10486,11 @@ pixel_x = 25; pixel_y = 0 }, +/obj/machinery/light{ + dir = 4; + icon_state = "tube1"; + pixel_x = 0 + }, /turf/simulated/floor/tiled/eris/white, /area/residential/lobby) "FH" = ( @@ -10501,6 +10506,9 @@ /area/residential/corridors) "FU" = ( /obj/structure/toilet, +/obj/machinery/light/small{ + dir = 1 + }, /turf/simulated/floor/tiled/eris/white, /area/residential/lobby) "Hq" = ( diff --git a/sound/ambience/foreboding/foreboding1.ogg b/sound/ambience/foreboding/foreboding1.ogg index b6e65c0bf6..be3cf1b703 100644 Binary files a/sound/ambience/foreboding/foreboding1.ogg and b/sound/ambience/foreboding/foreboding1.ogg differ diff --git a/sound/ambience/foreboding/foreboding2.ogg b/sound/ambience/foreboding/foreboding2.ogg index dde64a9858..9562178a2b 100644 Binary files a/sound/ambience/foreboding/foreboding2.ogg and b/sound/ambience/foreboding/foreboding2.ogg differ diff --git a/sound/ambience/foreboding/foreboding3.ogg b/sound/ambience/foreboding/foreboding3.ogg new file mode 100644 index 0000000000..4214afd9b8 Binary files /dev/null and b/sound/ambience/foreboding/foreboding3.ogg differ diff --git a/sound/ambience/foreboding/foreboding4.ogg b/sound/ambience/foreboding/foreboding4.ogg new file mode 100644 index 0000000000..2a8177f274 Binary files /dev/null and b/sound/ambience/foreboding/foreboding4.ogg differ diff --git a/sound/ambience/foreboding/foreboding5.ogg b/sound/ambience/foreboding/foreboding5.ogg new file mode 100644 index 0000000000..604a013a5e Binary files /dev/null and b/sound/ambience/foreboding/foreboding5.ogg differ diff --git a/sound/ambience/maintenance/maintenance6.ogg b/sound/ambience/foreboding/foreboding6.ogg similarity index 100% rename from sound/ambience/maintenance/maintenance6.ogg rename to sound/ambience/foreboding/foreboding6.ogg diff --git a/sound/ambience/maintenance/maintenance1.ogg b/sound/ambience/maintenance/maintenance1.ogg index be3cf1b703..0c18c46af6 100644 Binary files a/sound/ambience/maintenance/maintenance1.ogg and b/sound/ambience/maintenance/maintenance1.ogg differ diff --git a/sound/ambience/maintenance/maintenance2.ogg b/sound/ambience/maintenance/maintenance2.ogg index 9562178a2b..655d940cda 100644 Binary files a/sound/ambience/maintenance/maintenance2.ogg and b/sound/ambience/maintenance/maintenance2.ogg differ diff --git a/sound/ambience/maintenance/maintenance3.ogg b/sound/ambience/maintenance/maintenance3.ogg index 4214afd9b8..9891916010 100644 Binary files a/sound/ambience/maintenance/maintenance3.ogg and b/sound/ambience/maintenance/maintenance3.ogg differ diff --git a/sound/ambience/maintenance/maintenance4.ogg b/sound/ambience/maintenance/maintenance4.ogg index 2a8177f274..1d01e2016c 100644 Binary files a/sound/ambience/maintenance/maintenance4.ogg and b/sound/ambience/maintenance/maintenance4.ogg differ diff --git a/sound/ambience/maintenance/maintenance5.ogg b/sound/ambience/maintenance/maintenance5.ogg index 604a013a5e..7a065ecbcb 100644 Binary files a/sound/ambience/maintenance/maintenance5.ogg and b/sound/ambience/maintenance/maintenance5.ogg differ diff --git a/sound/ambience/old_foreboding/foreboding1.ogg b/sound/ambience/old_foreboding/foreboding1.ogg new file mode 100644 index 0000000000..b6e65c0bf6 Binary files /dev/null and b/sound/ambience/old_foreboding/foreboding1.ogg differ diff --git a/sound/ambience/old_foreboding/foreboding2.ogg b/sound/ambience/old_foreboding/foreboding2.ogg new file mode 100644 index 0000000000..dde64a9858 Binary files /dev/null and b/sound/ambience/old_foreboding/foreboding2.ogg differ diff --git a/sound/arcade/Ori_begin.ogg b/sound/arcade/Ori_begin.ogg new file mode 100644 index 0000000000..2e8f2d262b Binary files /dev/null and b/sound/arcade/Ori_begin.ogg differ diff --git a/sound/arcade/Ori_fail.ogg b/sound/arcade/Ori_fail.ogg new file mode 100644 index 0000000000..7347c6f02c Binary files /dev/null and b/sound/arcade/Ori_fail.ogg differ diff --git a/sound/arcade/Ori_win.ogg b/sound/arcade/Ori_win.ogg new file mode 100644 index 0000000000..14dd7888c4 Binary files /dev/null and b/sound/arcade/Ori_win.ogg differ diff --git a/sound/arcade/boom.ogg b/sound/arcade/boom.ogg new file mode 100644 index 0000000000..8adfb2bc43 Binary files /dev/null and b/sound/arcade/boom.ogg differ diff --git a/sound/arcade/explo.ogg b/sound/arcade/explo.ogg new file mode 100644 index 0000000000..d99132a26a Binary files /dev/null and b/sound/arcade/explo.ogg differ diff --git a/sound/arcade/get_fuel.ogg b/sound/arcade/get_fuel.ogg new file mode 100644 index 0000000000..57ed7dd137 Binary files /dev/null and b/sound/arcade/get_fuel.ogg differ diff --git a/sound/arcade/heal.ogg b/sound/arcade/heal.ogg new file mode 100644 index 0000000000..26f47195c6 Binary files /dev/null and b/sound/arcade/heal.ogg differ diff --git a/sound/arcade/hit.ogg b/sound/arcade/hit.ogg new file mode 100644 index 0000000000..0bf18679a6 Binary files /dev/null and b/sound/arcade/hit.ogg differ diff --git a/sound/arcade/kill_crew.ogg b/sound/arcade/kill_crew.ogg new file mode 100644 index 0000000000..e72533200d Binary files /dev/null and b/sound/arcade/kill_crew.ogg differ diff --git a/sound/arcade/lose.ogg b/sound/arcade/lose.ogg new file mode 100644 index 0000000000..dd2145737c Binary files /dev/null and b/sound/arcade/lose.ogg differ diff --git a/sound/arcade/lose_fuel.ogg b/sound/arcade/lose_fuel.ogg new file mode 100644 index 0000000000..9ac5e98db3 Binary files /dev/null and b/sound/arcade/lose_fuel.ogg differ diff --git a/sound/arcade/mana.ogg b/sound/arcade/mana.ogg new file mode 100644 index 0000000000..7f26ae53fe Binary files /dev/null and b/sound/arcade/mana.ogg differ diff --git a/sound/arcade/raid.ogg b/sound/arcade/raid.ogg new file mode 100644 index 0000000000..135a013fb0 Binary files /dev/null and b/sound/arcade/raid.ogg differ diff --git a/sound/arcade/steal.ogg b/sound/arcade/steal.ogg new file mode 100644 index 0000000000..9c7b3be2a5 Binary files /dev/null and b/sound/arcade/steal.ogg differ diff --git a/sound/arcade/win.ogg b/sound/arcade/win.ogg new file mode 100644 index 0000000000..27fb9725f2 Binary files /dev/null and b/sound/arcade/win.ogg differ diff --git a/sound/effects/mob_effects/tesharisneeze.ogg b/sound/effects/mob_effects/tesharisneeze.ogg index f742865464..b344bbcff9 100644 Binary files a/sound/effects/mob_effects/tesharisneeze.ogg and b/sound/effects/mob_effects/tesharisneeze.ogg differ diff --git a/sound/machines/blastdoorclose.ogg b/sound/machines/blastdoorclose.ogg new file mode 100644 index 0000000000..c48a0bd7d6 Binary files /dev/null and b/sound/machines/blastdoorclose.ogg differ diff --git a/sound/machines/blastdooropen.ogg b/sound/machines/blastdooropen.ogg new file mode 100644 index 0000000000..4f61ea2302 Binary files /dev/null and b/sound/machines/blastdooropen.ogg differ diff --git a/sound/machines/turrets/turret_deploy.ogg b/sound/machines/turrets/turret_deploy.ogg new file mode 100644 index 0000000000..0b2376901b Binary files /dev/null and b/sound/machines/turrets/turret_deploy.ogg differ diff --git a/sound/machines/turrets/turret_retract.ogg b/sound/machines/turrets/turret_retract.ogg new file mode 100644 index 0000000000..11d1eecad8 Binary files /dev/null and b/sound/machines/turrets/turret_retract.ogg differ diff --git a/sound/machines/turrets/turret_rotate.ogg b/sound/machines/turrets/turret_rotate.ogg new file mode 100644 index 0000000000..8699fa3316 Binary files /dev/null and b/sound/machines/turrets/turret_rotate.ogg differ diff --git a/tgui/packages/tgui/interfaces/BodyScanner.js b/tgui/packages/tgui/interfaces/BodyScanner.js index fda651e5a0..c7207eaca5 100644 --- a/tgui/packages/tgui/interfaces/BodyScanner.js +++ b/tgui/packages/tgui/interfaces/BodyScanner.js @@ -39,7 +39,7 @@ const damages = [ ['Respiratory', 'oxyLoss'], ['Brain', 'brainLoss'], ['Toxin', 'toxLoss'], - ['Radioactive', 'radLoss'], + ['Radiation', 'radLoss'], ['Brute', 'bruteLoss'], ['Genetic', 'cloneLoss'], ['Burn', 'fireLoss'], @@ -67,10 +67,9 @@ const reduceOrganStatus = A => { {a} {!!s && ( - + {s} - {s.length > 0 &&
} -
+ )}
)) @@ -121,6 +120,7 @@ const BodyScannerMain = props => { return ( + @@ -178,6 +178,14 @@ const BodyScannerMainOccupant = (props, context) => { value={round(occupant.bodyTempF, 0)} />°F + + units ( + %) + {/* VOREStation Add */} {round(data.occupant.weight) + "lbs, " @@ -189,6 +197,61 @@ const BodyScannerMainOccupant = (props, context) => { ); }; +const BodyScannerMainReagents = props => { + const { + occupant, + } = props; + + return ( + +
+ {occupant.reagents ? ( + + + + Reagent + + + Amount + + + {occupant.reagents.map(reagent => ( + + {reagent.name} + + {reagent.amount} Units + + + ))} +
+ ) : No Blood Reagents Detected} +
+
+ {occupant.ingested ? ( + + + + Reagent + + + Amount + + + {occupant.ingested.map(reagent => ( + + {reagent.name} + + {reagent.amount} Units + + + ))} +
+ ) : No Stomach Reagents Detected} +
+
+ ); +}; + const BodyScannerMainAbnormalities = props => { const { occupant, @@ -351,6 +414,7 @@ const BodyScannerMainOrgansExternal = props => { {reduceOrganStatus([ o.internalBleeding && "Internal bleeding", + !!o.status.bleeding && "External bleeding", o.lungRuptured && "Ruptured lung", o.destroyed && "Destroyed", !!o.status.broken && o.status.broken, diff --git a/tgui/packages/tgui/interfaces/CameraConsole.js b/tgui/packages/tgui/interfaces/CameraConsole.js index b26a6f7d48..81ffd5d7b9 100644 --- a/tgui/packages/tgui/interfaces/CameraConsole.js +++ b/tgui/packages/tgui/interfaces/CameraConsole.js @@ -124,7 +124,7 @@ export const CameraConsoleSearch = (props, context) => { onInput={(e, value) => setSearchText(value)} /> setNetworkFilter(value)} /> diff --git a/tgui/packages/tgui/public/tgui.bundle.js b/tgui/packages/tgui/public/tgui.bundle.js index 6c2bf51602..6aae8d5e69 100644 --- a/tgui/packages/tgui/public/tgui.bundle.js +++ b/tgui/packages/tgui/public/tgui.bundle.js @@ -3,18 +3,18 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var r=0,o=1,i=2,a=3,c=4,u=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o=i){var a=[t].concat(r).map((function(e){return"string"==typeof e?e:e instanceof Error?e.stack||String(e):JSON.stringify(e)})).filter((function(e){return e})).join(" ")+"\nUser Agent: "+navigator.userAgent;Byond.topic({tgui:1,window_id:window.__windowId__,type:"log",message:a})}},l=function(e){return{debug:function(){for(var t=arguments.length,n=new Array(t),o=0;on;)o[n]=t[n++];return o},W=function(e,t){I(e,t,{get:function(){return B(this)[t]}})},Y=function(e){var t;return e instanceof M||"ArrayBuffer"==(t=g(e))||"SharedArrayBuffer"==t},H=function(e,t){return K(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},$=function(e,t){return H(e,t=h(t,!0))?s(2,e[t]):O(e,t)},G=function(e,t,n){return!(H(e,t=h(t,!0))&&b(n)&&v(n,"value"))||v(n,"get")||v(n,"set")||n.configurable||v(n,"writable")&&!n.writable||v(n,"enumerable")&&!n.enumerable?I(e,t,n):(e[t]=n.value,e)};i?(P||(k.f=$,_.f=G,W(R,"buffer"),W(R,"byteOffset"),W(R,"byteLength"),W(R,"length")),r({target:"Object",stat:!0,forced:!P},{getOwnPropertyDescriptor:$,defineProperty:G}),e.exports=function(e,t,n){var i=e.match(/\d+$/)[0]/8,c=e+(n?"Clamped":"")+"Array",u="get"+e,s="set"+e,h=o[c],v=h,g=v&&v.prototype,_={},k=function(e,t){I(e,t,{get:function(){return function(e,t){var n=B(e);return n.view[u](t*i+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var o=B(e);n&&(r=(r=T(r))<0?0:r>255?255:255&r),o.view[s](t*i+o.byteOffset,r,!0)}(this,t,e)},enumerable:!0})};P?a&&(v=t((function(e,t,n,r){return l(e,v,c),E(b(t)?Y(t)?r!==undefined?new h(t,m(n,i),r):n!==undefined?new h(t,m(n,i)):new h(t):K(t)?U(v,t):x.call(v,t):new h(p(t)),e,v)})),C&&C(v,D),V(N(h),(function(e){e in v||d(v,e,h[e])})),v.prototype=g):(v=t((function(e,t,n,r){l(e,v,c);var o,a,u,s=0,d=0;if(b(t)){if(!Y(t))return K(t)?U(v,t):x.call(v,t);o=t,d=m(n,i);var h=t.byteLength;if(r===undefined){if(h%i)throw A("Wrong length");if((a=h-d)<0)throw A("Wrong length")}else if((a=f(r)*i)+d>h)throw A("Wrong length");u=a/i}else u=p(t),o=new M(a=u*i);for(L(e,{buffer:o,byteOffset:d,byteLength:a,length:u,view:new j(o)});s"+e+"<\/script>"},m=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(o){}var e,t;m=r?function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((t=l("iframe")).style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F);for(var n=a.length;n--;)delete m.prototype[a[n]];return m()};c[d]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f.prototype=o(e),n=new f,f.prototype=null,n[d]=e):n=m(),t===undefined?n:i(n,t)}},function(e,t,n){"use strict";var r=n(12).f,o=n(16),i=n(10)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){"use strict";var r=n(10),o=n(41),i=n(12),a=r("unscopables"),c=Array.prototype;c[a]==undefined&&i.f(c,a,{configurable:!0,value:o(null)}),e.exports=function(e){c[a][e]=!0}},function(e,t,n){"use strict";var r=n(6),o=n(29),i=n(10)("species");e.exports=function(e,t){var n,a=r(e).constructor;return a===undefined||(n=r(a)[i])==undefined?t:o(n)}},function(e,t,n){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";var r=n(131),o=n(93).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e,t,n){if(r(e),t===undefined)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){"use strict";var r=n(31),o=n(12),i=n(45);e.exports=function(e,t,n){var a=r(t);a in e?o.f(e,a,i(0,n)):e[a]=n}},function(e,t,n){"use strict";var r=n(6),o=n(142);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(i){}return function(n,i){return r(n),o(i),t?e.call(n,i):n.__proto__=i,n}}():undefined)},function(e,t,n){"use strict";var r=n(58),o=n(4),i=n(16),a=n(12).f,c=n(57),u=n(66),l=c("meta"),s=0,d=Object.isExtensible||function(){return!0},f=function(e){a(e,l,{value:{objectID:"O"+ ++s,weakData:{}}})},p=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,l)){if(!d(e))return"F";if(!t)return"E";f(e)}return e[l].objectID},getWeakData:function(e,t){if(!i(e,l)){if(!d(e))return!0;if(!t)return!1;f(e)}return e[l].weakData},onFreeze:function(e){return u&&p.REQUIRED&&d(e)&&!i(e,l)&&f(e),e}};r[l]=!0},function(e,t,n){"use strict";var r=n(30);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){"use strict";var r=n(35),o=n(12),i=n(10),a=n(5),c=i("species");e.exports=function(e){var t=r(e),n=o.f;a&&t&&!t[c]&&n(t,c,{configurable:!0,get:function(){return this}})}},function(e,t,n){"use strict";e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t,n){"use strict";var r=n(20),o="["+n(80)+"]",i=RegExp("^"+o+o+"*"),a=RegExp(o+o+"*$"),c=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(i,"")),2&e&&(n=n.replace(a,"")),n}};e.exports={start:c(1),end:c(2),trim:c(3)}},function(e,t,n){"use strict";t.__esModule=!0,t.getGasColor=t.getGasLabel=t.RADIO_CHANNELS=t.CSS_COLORS=t.COLORS=t.UI_CLOSE=t.UI_DISABLED=t.UI_UPDATE=t.UI_INTERACTIVE=void 0;t.UI_INTERACTIVE=2;t.UI_UPDATE=1;t.UI_DISABLED=0;t.UI_CLOSE=-1;t.COLORS={department:{captain:"#c06616",security:"#e74c3c",medbay:"#3498db",science:"#9b59b6",engineering:"#f1c40f",cargo:"#f39c12",centcom:"#00c100",other:"#c38312"},damageType:{oxy:"#3498db",toxin:"#2ecc71",burn:"#e67e22",brute:"#e74c3c"}};t.CSS_COLORS=["black","white","red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","good","average","bad","label"];t.RADIO_CHANNELS=[{name:"Syndicate",freq:1213,color:"#a52a2a"},{name:"Red Team",freq:1215,color:"#ff4444"},{name:"Blue Team",freq:1217,color:"#3434fd"},{name:"CentCom",freq:1337,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:"Medical",freq:1355,color:"#57b8f0"},{name:"Engineering",freq:1357,color:"#f37746"},{name:"Security",freq:1359,color:"#dd3535"},{name:"AI Private",freq:1447,color:"#d65d95"},{name:"Common",freq:1459,color:"#1ecc43"}];var r=[{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"}];t.getGasLabel=function(e,t){var n=String(e).toLowerCase(),o=r.find((function(e){return e.id===n||e.name.toLowerCase()===n}));return o&&o.label||t||e};t.getGasColor=function(e){var t=String(e).toLowerCase(),n=r.find((function(e){return e.id===t||e.name.toLowerCase()===t}));return n&&n.color}},function(e,t,n){"use strict";var r=n(2),o=n(30),i="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},function(e,t,n){"use strict";var r=0,o=Math.random();e.exports=function(e){return"Symbol("+String(e===undefined?"":e)+")_"+(++r+o).toString(36)}},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict";var r=n(23),o=n(8),i=n(40),a=function(e){return function(t,n,a){var c,u=r(t),l=o(u.length),s=i(a,l);if(e&&n!=n){for(;l>s;)if((c=u[s++])!=c)return!0}else for(;l>s;s++)if((e||s in u)&&u[s]===n)return e||s||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,n){"use strict";var r=n(2),o=/#|\.prototype\./,i=function(e,t){var n=c[a(e)];return n==l||n!=u&&("function"==typeof t?r(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},c=i.data={},u=i.NATIVE="N",l=i.POLYFILL="P";e.exports=i},function(e,t,n){"use strict";var r=n(131),o=n(93);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){"use strict";var r=n(4),o=n(51),i=n(10)("species");e.exports=function(e,t){var n;return o(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=undefined):n=undefined),new(n===undefined?Array:n)(0===t?0:t)}},function(e,t,n){"use strict";var r=n(2),o=n(10),i=n(96),a=o("species");e.exports=function(e){return i>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict";var r=n(21);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},function(e,t,n){"use strict";var r=n(2);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,n){"use strict";var r=n(6),o=n(98),i=n(8),a=n(47),c=n(99),u=n(139),l=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,n,s,d){var f,p,m,h,v,g,b,y=a(t,n,s?2:1);if(d)f=e;else{if("function"!=typeof(p=c(e)))throw TypeError("Target is not iterable");if(o(p)){for(m=0,h=i(e.length);h>m;m++)if((v=s?y(r(b=e[m])[0],b[1]):y(e[m]))&&v instanceof l)return v;return new l(!1)}f=p.call(e)}for(g=f.next;!(b=g.call(f)).done;)if("object"==typeof(v=u(f,y,b.value,s))&&v&&v instanceof l)return v;return new l(!1)}).stop=function(e){return new l(!0,e)}},function(e,t,n){"use strict";t.__esModule=!0,t.ComplexModal=t.modalRegisterBodyOverride=t.modalOpen=void 0;var r=n(1),o=n(11),i=n(13),a={};t.modalOpen=function(e,t,n){var r=(0,o.useBackend)(e),i=r.act,a=r.data,c=Object.assign(a.modal?a.modal.args:{},n||{});i("modal_open",{id:t,arguments:JSON.stringify(c)})};t.modalRegisterBodyOverride=function(e,t){a[e]=t};var c=function(e,t,n,r){var i=(0,o.useBackend)(e),a=i.act,c=i.data;if(c.modal){var u=Object.assign(c.modal.args||{},r||{});a("modal_answer",{id:t,answer:n,arguments:JSON.stringify(u)})}},u=function(e,t){(0,(0,o.useBackend)(e).act)("modal_close",{id:t})};t.ComplexModal=function(e,t){var n=(0,o.useBackend)(t).data;if(n.modal){var l,s,d=n.modal,f=d.id,p=d.text,m=d.type,h=(0,r.createComponentVNode)(2,i.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){return u(t)}});if(a[f])s=a[f](n.modal,t);else if("input"===m){var v=n.modal.value;l=function(e){return c(t,f,v)},s=(0,r.createComponentVNode)(2,i.Input,{value:n.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(e,t){v=t}}),h=(0,r.createComponentVNode)(2,i.Box,{mt:"0.5rem",children:[(0,r.createComponentVNode)(2,i.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){return u(t)}}),(0,r.createComponentVNode)(2,i.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){return c(t,f,v)}}),(0,r.createComponentVNode)(2,i.Box,{clear:"both"})]})}else if("choice"===m){var g="object"==typeof n.modal.choices?Object.values(n.modal.choices):n.modal.choices;s=(0,r.createComponentVNode)(2,i.Dropdown,{options:g,selected:n.modal.value,width:"100%",my:"0.5rem",onSelected:function(e){return c(t,f,e)}})}else"bento"===m?s=(0,r.createComponentVNode)(2,i.Flex,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:n.modal.choices.map((function(e,o){return(0,r.createComponentVNode)(2,i.Flex.Item,{flex:"1 1 auto",children:(0,r.createComponentVNode)(2,i.Button,{selected:o+1===parseInt(n.modal.value,10),onClick:function(){return c(t,f,o+1)},children:(0,r.createVNode)(1,"img",null,null,1,{src:e})})},o)}))}):"boolean"===m&&(h=(0,r.createComponentVNode)(2,i.Box,{mt:"0.5rem",children:[(0,r.createComponentVNode)(2,i.Button,{icon:"times",content:n.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){return c(t,f,0)}}),(0,r.createComponentVNode)(2,i.Button,{icon:"check",content:n.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){return c(t,f,1)}}),(0,r.createComponentVNode)(2,i.Box,{clear:"both"})]}));return(0,r.createComponentVNode)(2,i.Modal,{maxWidth:e.maxWidth||window.innerWidth/2+"px",maxHeight:e.maxHeight||window.innerHeight/2+"px",onEnter:l,mx:"auto",children:[(0,r.createComponentVNode)(2,i.Box,{display:"inline",children:p}),s,h]})}}},function(e,t,n){"use strict";var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(o){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},function(e,t,n){"use strict";var r=n(91),o=n(57),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},function(e,t,n){"use strict";var r=n(35);e.exports=r("navigator","userAgent")||""},function(e,t,n){"use strict";var r=n(100),o=n(30),i=n(10)("toStringTag"),a="Arguments"==o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return e===undefined?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),i))?n:a?o(t):"Object"==(r=o(t))&&"function"==typeof t.callee?"Arguments":r}},function(e,t,n){"use strict";var r=n(10)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},"return":function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(c){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(c){}return n}},function(e,t,n){"use strict";var r=n(29),o=n(14),i=n(56),a=n(8),c=function(e){return function(t,n,c,u){r(n);var l=o(t),s=i(l),d=a(l.length),f=e?d-1:0,p=e?-1:1;if(c<2)for(;;){if(f in s){u=s[f],f+=p;break}if(f+=p,e?f<0:d<=f)throw TypeError("Reduce of empty array with no initial value")}for(;e?f>=0:d>f;f+=p)f in s&&(u=n(u,s[f],f,l));return u}};e.exports={left:c(!1),right:c(!0)}},function(e,t,n){"use strict";var r=n(3),o=n(5),i=n(103),a=n(27),c=n(65),u=n(2),l=n(53),s=n(28),d=n(8),f=n(144),p=n(222),m=n(33),h=n(49),v=n(46).f,g=n(12).f,b=n(97),y=n(42),C=n(32),N=C.get,x=C.set,V=r.ArrayBuffer,w=V,_=r.DataView,k=_&&_.prototype,S=Object.prototype,E=r.RangeError,B=p.pack,L=p.unpack,I=function(e){return[255&e]},O=function(e){return[255&e,e>>8&255]},T=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},A=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},M=function(e){return B(e,23,4)},j=function(e){return B(e,52,8)},P=function(e,t){g(e.prototype,t,{get:function(){return N(this)[t]}})},F=function(e,t,n,r){var o=f(n),i=N(e);if(o+t>i.byteLength)throw E("Wrong index");var a=N(i.buffer).bytes,c=o+i.byteOffset,u=a.slice(c,c+t);return r?u:u.reverse()},D=function(e,t,n,r,o,i){var a=f(n),c=N(e);if(a+t>c.byteLength)throw E("Wrong index");for(var u=N(c.buffer).bytes,l=a+c.byteOffset,s=r(+o),d=0;dU;)(R=K[U++])in w||a(w,R,V[R]);z.constructor=w}h&&m(k)!==S&&h(k,S);var W=new _(new w(2)),Y=k.setInt8;W.setInt8(0,2147483648),W.setInt8(1,2147483649),!W.getInt8(0)&&W.getInt8(1)||c(k,{setInt8:function(e,t){Y.call(this,e,t<<24>>24)},setUint8:function(e,t){Y.call(this,e,t<<24>>24)}},{unsafe:!0})}else w=function(e){l(this,w,"ArrayBuffer");var t=f(e);x(this,{bytes:b.call(new Array(t),0),byteLength:t}),o||(this.byteLength=t)},_=function(e,t,n){l(this,_,"DataView"),l(e,w,"DataView");var r=N(e).byteLength,i=s(t);if(i<0||i>r)throw E("Wrong offset");if(i+(n=n===undefined?r-i:d(n))>r)throw E("Wrong length");x(this,{buffer:e,byteLength:n,byteOffset:i}),o||(this.buffer=e,this.byteLength=n,this.byteOffset=i)},o&&(P(w,"byteLength"),P(_,"buffer"),P(_,"byteLength"),P(_,"byteOffset")),c(_.prototype,{getInt8:function(e){return F(this,1,e)[0]<<24>>24},getUint8:function(e){return F(this,1,e)[0]},getInt16:function(e){var t=F(this,2,e,arguments.length>1?arguments[1]:undefined);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=F(this,2,e,arguments.length>1?arguments[1]:undefined);return t[1]<<8|t[0]},getInt32:function(e){return A(F(this,4,e,arguments.length>1?arguments[1]:undefined))},getUint32:function(e){return A(F(this,4,e,arguments.length>1?arguments[1]:undefined))>>>0},getFloat32:function(e){return L(F(this,4,e,arguments.length>1?arguments[1]:undefined),23)},getFloat64:function(e){return L(F(this,8,e,arguments.length>1?arguments[1]:undefined),52)},setInt8:function(e,t){D(this,1,e,I,t)},setUint8:function(e,t){D(this,1,e,I,t)},setInt16:function(e,t){D(this,2,e,O,t,arguments.length>2?arguments[2]:undefined)},setUint16:function(e,t){D(this,2,e,O,t,arguments.length>2?arguments[2]:undefined)},setInt32:function(e,t){D(this,4,e,T,t,arguments.length>2?arguments[2]:undefined)},setUint32:function(e,t){D(this,4,e,T,t,arguments.length>2?arguments[2]:undefined)},setFloat32:function(e,t){D(this,4,e,M,t,arguments.length>2?arguments[2]:undefined)},setFloat64:function(e,t){D(this,8,e,j,t,arguments.length>2?arguments[2]:undefined)}});y(w,"ArrayBuffer"),y(_,"DataView"),e.exports={ArrayBuffer:w,DataView:_}},function(e,t,n){"use strict";var r=n(0),o=n(3),i=n(60),a=n(21),c=n(50),u=n(67),l=n(53),s=n(4),d=n(2),f=n(74),p=n(42),m=n(78);e.exports=function(e,t,n){var h=-1!==e.indexOf("Map"),v=-1!==e.indexOf("Weak"),g=h?"set":"add",b=o[e],y=b&&b.prototype,C=b,N={},x=function(e){var t=y[e];a(y,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(v&&!s(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!s(e)?undefined:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(v&&!s(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(i(e,"function"!=typeof b||!(v||y.forEach&&!d((function(){(new b).entries().next()})))))C=n.getConstructor(t,e,h,g),c.REQUIRED=!0;else if(i(e,!0)){var V=new C,w=V[g](v?{}:-0,1)!=V,_=d((function(){V.has(1)})),k=f((function(e){new b(e)})),S=!v&&d((function(){for(var e=new b,t=5;t--;)e[g](t,t);return!e.has(-0)}));k||((C=t((function(t,n){l(t,C,e);var r=m(new b,t,C);return n!=undefined&&u(n,r[g],r,h),r}))).prototype=y,y.constructor=C),(_||S)&&(x("delete"),x("has"),h&&x("get")),(S||w)&&x(g),v&&y.clear&&delete y.clear}return N[e]=C,r({global:!0,forced:C!=b},N),p(C,e),v||n.setStrong(C,e,h),C}},function(e,t,n){"use strict";var r=n(4),o=n(49);e.exports=function(e,t,n){var i,a;return o&&"function"==typeof(i=t.constructor)&&i!==n&&r(a=i.prototype)&&a!==n.prototype&&o(e,a),e}},function(e,t,n){"use strict";var r=Math.expm1,o=Math.exp;e.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||-2e-17!=r(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:o(e)-1}:r},function(e,t,n){"use strict";e.exports="\t\n\x0B\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},function(e,t,n){"use strict";var r=n(37),o=n(3),i=n(2);e.exports=r||!i((function(){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete o[e]}))},function(e,t,n){"use strict";var r=n(6);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var r,o,i=n(82),a=n(109),c=RegExp.prototype.exec,u=String.prototype.replace,l=c,s=(r=/a/,o=/b*/g,c.call(r,"a"),c.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),d=a.UNSUPPORTED_Y||a.BROKEN_CARET,f=/()??/.exec("")[1]!==undefined;(s||f||d)&&(l=function(e){var t,n,r,o,a=this,l=d&&a.sticky,p=i.call(a),m=a.source,h=0,v=e;return l&&(-1===(p=p.replace("y","")).indexOf("g")&&(p+="g"),v=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(m="(?: "+m+")",v=" "+v,h++),n=new RegExp("^(?:"+m+")",p)),f&&(n=new RegExp("^"+m+"$(?!\\s)",p)),s&&(t=a.lastIndex),r=c.call(l?n:a,v),l?r?(r.input=r.input.slice(h),r[0]=r[0].slice(h),r.index=a.lastIndex,a.lastIndex+=r[0].length):a.lastIndex=0:s&&r&&(a.lastIndex=a.global?r.index+r[0].length:t),f&&r&&r.length>1&&u.call(r[0],n,(function(){for(o=1;o")})),s="$0"==="a".replace(/./,"$0"),d=i("replace"),f=!!/./[d]&&""===/./[d]("a","$0"),p=!o((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,d){var m=i(e),h=!o((function(){var t={};return t[m]=function(){return 7},7!=""[e](t)})),v=h&&!o((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[m]=/./[m]),n.exec=function(){return t=!0,null},n[m](""),!t}));if(!h||!v||"replace"===e&&(!l||!s||f)||"split"===e&&!p){var g=/./[m],b=n(m,""[e],(function(e,t,n,r,o){return t.exec===a?h&&!o?{done:!0,value:g.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:s,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:f}),y=b[0],C=b[1];r(String.prototype,e,y),r(RegExp.prototype,m,2==t?function(e,t){return C.call(e,this,t)}:function(e){return C.call(e,this)})}d&&c(RegExp.prototype[m],"sham",!0)}},function(e,t,n){"use strict";var r=n(30),o=n(83);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},function(e,t,n){"use strict";function r(e){var t=0;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e)))return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=48&&r<=90?String.fromCharCode(r):r>=112&&r<=123?"F"+(r-111):"["+r+"]"},s=function(e){var t=window.event?e.which:e.keyCode,n=e.ctrlKey,r=e.altKey,o=e.shiftKey;return{keyCode:t,ctrlKey:n,altKey:r,shiftKey:o,hasModifierKeys:n||r||o,keyString:l(n,r,o,t)}},d=function(){for(var e=0,t=Object.keys(u);e=112&&c<=123){i.log(l);for(var d,p=r(f);!(d=p()).done;)(0,d.value)(n,o)}}}(t,n,e)},document.addEventListener("keydown",(function(e){var n=window.event?e.which:e.keyCode;t(e,"keydown"),u[n]=!0})),document.addEventListener("keyup",(function(e){var n=window.event?e.which:e.keyCode;t(e,"keyup"),u[n]=!1})),Byond.IS_LTE_IE8||function(e){var t;document.addEventListener("focusout",(function(){t=setTimeout(e)})),document.addEventListener("focusin",(function(){clearTimeout(t)})),window.addEventListener("beforeunload",e)}((function(){d()})),function(e){return function(t){return e(t)}}}},function(e,t,n){"use strict";t.__esModule=!0,t.zipWith=t.zip=t.uniqBy=t.reduce=t.sortBy=t.map=t.filter=t.toKeyedArray=t.toArray=void 0;t.toArray=function(e){if(Array.isArray(e))return e;if("object"==typeof e){var t=Object.prototype.hasOwnProperty,n=[];for(var r in e)t.call(e,r)&&n.push(e[r]);return n}return[]};t.toKeyedArray=function(e,t){return void 0===t&&(t="key"),r((function(e,n){var r;return Object.assign(((r={})[t]=n,r),e)}))(e)};t.filter=function(e){return function(t){if(null===t&&t===undefined)return t;if(Array.isArray(t)){for(var n=[],r=0;rc)return 1}return 0};t.sortBy=function(){for(var e=arguments.length,t=new Array(e),n=0;n=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=r[1]),e.exports=o&&+o},function(e,t,n){"use strict";var r=n(14),o=n(40),i=n(8);e.exports=function(e){for(var t=r(this),n=i(t.length),a=arguments.length,c=o(a>1?arguments[1]:undefined,n),u=a>2?arguments[2]:undefined,l=u===undefined?n:o(u,n);l>c;)t[c++]=e;return t}},function(e,t,n){"use strict";var r=n(10),o=n(64),i=r("iterator"),a=Array.prototype;e.exports=function(e){return e!==undefined&&(o.Array===e||a[i]===e)}},function(e,t,n){"use strict";var r=n(73),o=n(64),i=n(10)("iterator");e.exports=function(e){if(e!=undefined)return e[i]||e["@@iterator"]||o[r(e)]}},function(e,t,n){"use strict";var r={};r[n(10)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t,n){"use strict";var r=n(0),o=n(207),i=n(33),a=n(49),c=n(42),u=n(27),l=n(21),s=n(10),d=n(37),f=n(64),p=n(141),m=p.IteratorPrototype,h=p.BUGGY_SAFARI_ITERATORS,v=s("iterator"),g=function(){return this};e.exports=function(e,t,n,s,p,b,y){o(n,t,s);var C,N,x,V=function(e){if(e===p&&E)return E;if(!h&&e in k)return k[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},w=t+" Iterator",_=!1,k=e.prototype,S=k[v]||k["@@iterator"]||p&&k[p],E=!h&&S||V(p),B="Array"==t&&k.entries||S;if(B&&(C=i(B.call(new e)),m!==Object.prototype&&C.next&&(d||i(C)===m||(a?a(C,m):"function"!=typeof C[v]&&u(C,v,g)),c(C,w,!0,!0),d&&(f[w]=g))),"values"==p&&S&&"values"!==S.name&&(_=!0,E=function(){return S.call(this)}),d&&!y||k[v]===E||u(k,v,E),f[t]=E,p)if(N={values:V("values"),keys:b?E:V("keys"),entries:V("entries")},y)for(x in N)(h||_||!(x in k))&&l(k,x,N[x]);else r({target:t,proto:!0,forced:h||_},N);return N}},function(e,t,n){"use strict";var r=n(2);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){"use strict";e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(e,t,n){"use strict";var r=n(8),o=n(105),i=n(20),a=Math.ceil,c=function(e){return function(t,n,c){var u,l,s=String(i(t)),d=s.length,f=c===undefined?" ":String(c),p=r(n);return p<=d||""==f?s:(u=p-d,(l=o.call(f,a(u/f.length))).length>u&&(l=l.slice(0,u)),e?s+l:l+s)}};e.exports={start:c(!1),end:c(!0)}},function(e,t,n){"use strict";var r=n(28),o=n(20);e.exports="".repeat||function(e){var t=String(o(this)),n="",i=r(e);if(i<0||i==Infinity)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n}},function(e,t,n){"use strict";e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t,n){"use strict";var r,o,i,a=n(3),c=n(2),u=n(30),l=n(47),s=n(134),d=n(88),f=n(153),p=a.location,m=a.setImmediate,h=a.clearImmediate,v=a.process,g=a.MessageChannel,b=a.Dispatch,y=0,C={},N=function(e){if(C.hasOwnProperty(e)){var t=C[e];delete C[e],t()}},x=function(e){return function(){N(e)}},V=function(e){N(e.data)},w=function(e){a.postMessage(e+"",p.protocol+"//"+p.host)};m&&h||(m=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return C[++y]=function(){("function"==typeof e?e:Function(e)).apply(undefined,t)},r(y),y},h=function(e){delete C[e]},"process"==u(v)?r=function(e){v.nextTick(x(e))}:b&&b.now?r=function(e){b.now(x(e))}:g&&!f?(i=(o=new g).port2,o.port1.onmessage=V,r=l(i.postMessage,i,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||c(w)||"file:"===p.protocol?r="onreadystatechange"in d("script")?function(e){s.appendChild(d("script")).onreadystatechange=function(){s.removeChild(this),N(e)}}:function(e){setTimeout(x(e),0)}:(r=w,a.addEventListener("message",V,!1))),e.exports={set:m,clear:h}},function(e,t,n){"use strict";var r=n(4),o=n(30),i=n(10)("match");e.exports=function(e){var t;return r(e)&&((t=e[i])!==undefined?!!t:"RegExp"==o(e))}},function(e,t,n){"use strict";var r=n(2);function o(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},function(e,t,n){"use strict";var r=n(28),o=n(20),i=function(e){return function(t,n){var i,a,c=String(o(t)),u=r(n),l=c.length;return u<0||u>=l?e?"":undefined:(i=c.charCodeAt(u))<55296||i>56319||u+1===l||(a=c.charCodeAt(u+1))<56320||a>57343?e?c.charAt(u):i:e?c.slice(u,u+2):a-56320+(i-55296<<10)+65536}};e.exports={codeAt:i(!1),charAt:i(!0)}},function(e,t,n){"use strict";var r=n(108);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,n){"use strict";var r=n(10)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(o){}}return!1}},function(e,t,n){"use strict";var r=n(110).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){"use strict";var r=n(2),o=n(80);e.exports=function(e){return r((function(){return!!o[e]()||"\u200b\x85\u180e"!="\u200b\x85\u180e"[e]()||o[e].name!==e}))}},function(e,t,n){"use strict";var r=n(3),o=n(2),i=n(74),a=n(7).NATIVE_ARRAY_BUFFER_VIEWS,c=r.ArrayBuffer,u=r.Int8Array;e.exports=!a||!o((function(){u(1)}))||!o((function(){new u(-1)}))||!i((function(e){new u,new u(null),new u(1.5),new u(e)}),!0)||o((function(){return 1!==new u(new c(2),1,undefined).length}))},function(e,t,n){"use strict";function r(e){var t=0;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e)))return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?o-1:0),c=1;c1?r-1:0),i=1;i2?n-2:0),o=2;o=i){var a=[t].concat(r).map((function(e){return"string"==typeof e?e:e instanceof Error?e.stack||String(e):JSON.stringify(e)})).filter((function(e){return e})).join(" ")+"\nUser Agent: "+navigator.userAgent;Byond.topic({tgui:1,window_id:window.__windowId__,type:"log",message:a})}},l=function(e){return{debug:function(){for(var t=arguments.length,n=new Array(t),o=0;on;)o[n]=t[n++];return o},W=function(e,t){I(e,t,{get:function(){return B(this)[t]}})},Y=function(e){var t;return e instanceof M||"ArrayBuffer"==(t=g(e))||"SharedArrayBuffer"==t},H=function(e,t){return K(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},$=function(e,t){return H(e,t=h(t,!0))?s(2,e[t]):O(e,t)},G=function(e,t,n){return!(H(e,t=h(t,!0))&&b(n)&&v(n,"value"))||v(n,"get")||v(n,"set")||n.configurable||v(n,"writable")&&!n.writable||v(n,"enumerable")&&!n.enumerable?I(e,t,n):(e[t]=n.value,e)};i?(P||(k.f=$,_.f=G,W(D,"buffer"),W(D,"byteOffset"),W(D,"byteLength"),W(D,"length")),r({target:"Object",stat:!0,forced:!P},{getOwnPropertyDescriptor:$,defineProperty:G}),e.exports=function(e,t,n){var i=e.match(/\d+$/)[0]/8,c=e+(n?"Clamped":"")+"Array",u="get"+e,s="set"+e,h=o[c],v=h,g=v&&v.prototype,_={},k=function(e,t){I(e,t,{get:function(){return function(e,t){var n=B(e);return n.view[u](t*i+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var o=B(e);n&&(r=(r=T(r))<0?0:r>255?255:255&r),o.view[s](t*i+o.byteOffset,r,!0)}(this,t,e)},enumerable:!0})};P?a&&(v=t((function(e,t,n,r){return l(e,v,c),E(b(t)?Y(t)?r!==undefined?new h(t,m(n,i),r):n!==undefined?new h(t,m(n,i)):new h(t):K(t)?U(v,t):x.call(v,t):new h(p(t)),e,v)})),C&&C(v,F),V(N(h),(function(e){e in v||d(v,e,h[e])})),v.prototype=g):(v=t((function(e,t,n,r){l(e,v,c);var o,a,u,s=0,d=0;if(b(t)){if(!Y(t))return K(t)?U(v,t):x.call(v,t);o=t,d=m(n,i);var h=t.byteLength;if(r===undefined){if(h%i)throw A("Wrong length");if((a=h-d)<0)throw A("Wrong length")}else if((a=f(r)*i)+d>h)throw A("Wrong length");u=a/i}else u=p(t),o=new M(a=u*i);for(L(e,{buffer:o,byteOffset:d,byteLength:a,length:u,view:new j(o)});s"+e+"<\/script>"},m=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(o){}var e,t;m=r?function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((t=l("iframe")).style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F);for(var n=a.length;n--;)delete m.prototype[a[n]];return m()};c[d]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f.prototype=o(e),n=new f,f.prototype=null,n[d]=e):n=m(),t===undefined?n:i(n,t)}},function(e,t,n){"use strict";var r=n(12).f,o=n(16),i=n(10)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){"use strict";var r=n(10),o=n(41),i=n(12),a=r("unscopables"),c=Array.prototype;c[a]==undefined&&i.f(c,a,{configurable:!0,value:o(null)}),e.exports=function(e){c[a][e]=!0}},function(e,t,n){"use strict";var r=n(6),o=n(29),i=n(10)("species");e.exports=function(e,t){var n,a=r(e).constructor;return a===undefined||(n=r(a)[i])==undefined?t:o(n)}},function(e,t,n){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";var r=n(131),o=n(93).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e,t,n){if(r(e),t===undefined)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){"use strict";var r=n(31),o=n(12),i=n(45);e.exports=function(e,t,n){var a=r(t);a in e?o.f(e,a,i(0,n)):e[a]=n}},function(e,t,n){"use strict";var r=n(6),o=n(142);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(i){}return function(n,i){return r(n),o(i),t?e.call(n,i):n.__proto__=i,n}}():undefined)},function(e,t,n){"use strict";var r=n(58),o=n(4),i=n(16),a=n(12).f,c=n(57),u=n(66),l=c("meta"),s=0,d=Object.isExtensible||function(){return!0},f=function(e){a(e,l,{value:{objectID:"O"+ ++s,weakData:{}}})},p=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,l)){if(!d(e))return"F";if(!t)return"E";f(e)}return e[l].objectID},getWeakData:function(e,t){if(!i(e,l)){if(!d(e))return!0;if(!t)return!1;f(e)}return e[l].weakData},onFreeze:function(e){return u&&p.REQUIRED&&d(e)&&!i(e,l)&&f(e),e}};r[l]=!0},function(e,t,n){"use strict";var r=n(30);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){"use strict";var r=n(35),o=n(12),i=n(10),a=n(5),c=i("species");e.exports=function(e){var t=r(e),n=o.f;a&&t&&!t[c]&&n(t,c,{configurable:!0,get:function(){return this}})}},function(e,t,n){"use strict";e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t,n){"use strict";var r=n(20),o="["+n(80)+"]",i=RegExp("^"+o+o+"*"),a=RegExp(o+o+"*$"),c=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(i,"")),2&e&&(n=n.replace(a,"")),n}};e.exports={start:c(1),end:c(2),trim:c(3)}},function(e,t,n){"use strict";t.__esModule=!0,t.getGasColor=t.getGasLabel=t.RADIO_CHANNELS=t.CSS_COLORS=t.COLORS=t.UI_CLOSE=t.UI_DISABLED=t.UI_UPDATE=t.UI_INTERACTIVE=void 0;t.UI_INTERACTIVE=2;t.UI_UPDATE=1;t.UI_DISABLED=0;t.UI_CLOSE=-1;t.COLORS={department:{captain:"#c06616",security:"#e74c3c",medbay:"#3498db",science:"#9b59b6",engineering:"#f1c40f",cargo:"#f39c12",centcom:"#00c100",other:"#c38312"},damageType:{oxy:"#3498db",toxin:"#2ecc71",burn:"#e67e22",brute:"#e74c3c"}};t.CSS_COLORS=["black","white","red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","good","average","bad","label"];t.RADIO_CHANNELS=[{name:"Syndicate",freq:1213,color:"#a52a2a"},{name:"Red Team",freq:1215,color:"#ff4444"},{name:"Blue Team",freq:1217,color:"#3434fd"},{name:"CentCom",freq:1337,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:"Medical",freq:1355,color:"#57b8f0"},{name:"Engineering",freq:1357,color:"#f37746"},{name:"Security",freq:1359,color:"#dd3535"},{name:"AI Private",freq:1447,color:"#d65d95"},{name:"Common",freq:1459,color:"#1ecc43"}];var r=[{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"}];t.getGasLabel=function(e,t){var n=String(e).toLowerCase(),o=r.find((function(e){return e.id===n||e.name.toLowerCase()===n}));return o&&o.label||t||e};t.getGasColor=function(e){var t=String(e).toLowerCase(),n=r.find((function(e){return e.id===t||e.name.toLowerCase()===t}));return n&&n.color}},function(e,t,n){"use strict";var r=n(2),o=n(30),i="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},function(e,t,n){"use strict";var r=0,o=Math.random();e.exports=function(e){return"Symbol("+String(e===undefined?"":e)+")_"+(++r+o).toString(36)}},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict";var r=n(23),o=n(8),i=n(40),a=function(e){return function(t,n,a){var c,u=r(t),l=o(u.length),s=i(a,l);if(e&&n!=n){for(;l>s;)if((c=u[s++])!=c)return!0}else for(;l>s;s++)if((e||s in u)&&u[s]===n)return e||s||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,n){"use strict";var r=n(2),o=/#|\.prototype\./,i=function(e,t){var n=c[a(e)];return n==l||n!=u&&("function"==typeof t?r(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},c=i.data={},u=i.NATIVE="N",l=i.POLYFILL="P";e.exports=i},function(e,t,n){"use strict";var r=n(131),o=n(93);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){"use strict";var r=n(4),o=n(51),i=n(10)("species");e.exports=function(e,t){var n;return o(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=undefined):n=undefined),new(n===undefined?Array:n)(0===t?0:t)}},function(e,t,n){"use strict";var r=n(2),o=n(10),i=n(96),a=o("species");e.exports=function(e){return i>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict";var r=n(21);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},function(e,t,n){"use strict";var r=n(2);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,n){"use strict";var r=n(6),o=n(98),i=n(8),a=n(47),c=n(99),u=n(139),l=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,n,s,d){var f,p,m,h,v,g,b,y=a(t,n,s?2:1);if(d)f=e;else{if("function"!=typeof(p=c(e)))throw TypeError("Target is not iterable");if(o(p)){for(m=0,h=i(e.length);h>m;m++)if((v=s?y(r(b=e[m])[0],b[1]):y(e[m]))&&v instanceof l)return v;return new l(!1)}f=p.call(e)}for(g=f.next;!(b=g.call(f)).done;)if("object"==typeof(v=u(f,y,b.value,s))&&v&&v instanceof l)return v;return new l(!1)}).stop=function(e){return new l(!0,e)}},function(e,t,n){"use strict";t.__esModule=!0,t.ComplexModal=t.modalRegisterBodyOverride=t.modalOpen=void 0;var r=n(1),o=n(11),i=n(13),a={};t.modalOpen=function(e,t,n){var r=(0,o.useBackend)(e),i=r.act,a=r.data,c=Object.assign(a.modal?a.modal.args:{},n||{});i("modal_open",{id:t,arguments:JSON.stringify(c)})};t.modalRegisterBodyOverride=function(e,t){a[e]=t};var c=function(e,t,n,r){var i=(0,o.useBackend)(e),a=i.act,c=i.data;if(c.modal){var u=Object.assign(c.modal.args||{},r||{});a("modal_answer",{id:t,answer:n,arguments:JSON.stringify(u)})}},u=function(e,t){(0,(0,o.useBackend)(e).act)("modal_close",{id:t})};t.ComplexModal=function(e,t){var n=(0,o.useBackend)(t).data;if(n.modal){var l,s,d=n.modal,f=d.id,p=d.text,m=d.type,h=(0,r.createComponentVNode)(2,i.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){return u(t)}});if(a[f])s=a[f](n.modal,t);else if("input"===m){var v=n.modal.value;l=function(e){return c(t,f,v)},s=(0,r.createComponentVNode)(2,i.Input,{value:n.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(e,t){v=t}}),h=(0,r.createComponentVNode)(2,i.Box,{mt:"0.5rem",children:[(0,r.createComponentVNode)(2,i.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){return u(t)}}),(0,r.createComponentVNode)(2,i.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){return c(t,f,v)}}),(0,r.createComponentVNode)(2,i.Box,{clear:"both"})]})}else if("choice"===m){var g="object"==typeof n.modal.choices?Object.values(n.modal.choices):n.modal.choices;s=(0,r.createComponentVNode)(2,i.Dropdown,{options:g,selected:n.modal.value,width:"100%",my:"0.5rem",onSelected:function(e){return c(t,f,e)}})}else"bento"===m?s=(0,r.createComponentVNode)(2,i.Flex,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:n.modal.choices.map((function(e,o){return(0,r.createComponentVNode)(2,i.Flex.Item,{flex:"1 1 auto",children:(0,r.createComponentVNode)(2,i.Button,{selected:o+1===parseInt(n.modal.value,10),onClick:function(){return c(t,f,o+1)},children:(0,r.createVNode)(1,"img",null,null,1,{src:e})})},o)}))}):"boolean"===m&&(h=(0,r.createComponentVNode)(2,i.Box,{mt:"0.5rem",children:[(0,r.createComponentVNode)(2,i.Button,{icon:"times",content:n.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){return c(t,f,0)}}),(0,r.createComponentVNode)(2,i.Button,{icon:"check",content:n.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){return c(t,f,1)}}),(0,r.createComponentVNode)(2,i.Box,{clear:"both"})]}));return(0,r.createComponentVNode)(2,i.Modal,{maxWidth:e.maxWidth||window.innerWidth/2+"px",maxHeight:e.maxHeight||window.innerHeight/2+"px",onEnter:l,mx:"auto",children:[(0,r.createComponentVNode)(2,i.Box,{display:"inline",children:p}),s,h]})}}},function(e,t,n){"use strict";var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(o){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},function(e,t,n){"use strict";var r=n(91),o=n(57),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},function(e,t,n){"use strict";var r=n(35);e.exports=r("navigator","userAgent")||""},function(e,t,n){"use strict";var r=n(100),o=n(30),i=n(10)("toStringTag"),a="Arguments"==o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return e===undefined?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),i))?n:a?o(t):"Object"==(r=o(t))&&"function"==typeof t.callee?"Arguments":r}},function(e,t,n){"use strict";var r=n(10)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},"return":function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(c){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(c){}return n}},function(e,t,n){"use strict";var r=n(29),o=n(14),i=n(56),a=n(8),c=function(e){return function(t,n,c,u){r(n);var l=o(t),s=i(l),d=a(l.length),f=e?d-1:0,p=e?-1:1;if(c<2)for(;;){if(f in s){u=s[f],f+=p;break}if(f+=p,e?f<0:d<=f)throw TypeError("Reduce of empty array with no initial value")}for(;e?f>=0:d>f;f+=p)f in s&&(u=n(u,s[f],f,l));return u}};e.exports={left:c(!1),right:c(!0)}},function(e,t,n){"use strict";var r=n(3),o=n(5),i=n(103),a=n(27),c=n(65),u=n(2),l=n(53),s=n(28),d=n(8),f=n(144),p=n(222),m=n(33),h=n(49),v=n(46).f,g=n(12).f,b=n(97),y=n(42),C=n(32),N=C.get,x=C.set,V=r.ArrayBuffer,w=V,_=r.DataView,k=_&&_.prototype,S=Object.prototype,E=r.RangeError,B=p.pack,L=p.unpack,I=function(e){return[255&e]},O=function(e){return[255&e,e>>8&255]},T=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},A=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},M=function(e){return B(e,23,4)},j=function(e){return B(e,52,8)},P=function(e,t){g(e.prototype,t,{get:function(){return N(this)[t]}})},R=function(e,t,n,r){var o=f(n),i=N(e);if(o+t>i.byteLength)throw E("Wrong index");var a=N(i.buffer).bytes,c=o+i.byteOffset,u=a.slice(c,c+t);return r?u:u.reverse()},F=function(e,t,n,r,o,i){var a=f(n),c=N(e);if(a+t>c.byteLength)throw E("Wrong index");for(var u=N(c.buffer).bytes,l=a+c.byteOffset,s=r(+o),d=0;dU;)(D=K[U++])in w||a(w,D,V[D]);z.constructor=w}h&&m(k)!==S&&h(k,S);var W=new _(new w(2)),Y=k.setInt8;W.setInt8(0,2147483648),W.setInt8(1,2147483649),!W.getInt8(0)&&W.getInt8(1)||c(k,{setInt8:function(e,t){Y.call(this,e,t<<24>>24)},setUint8:function(e,t){Y.call(this,e,t<<24>>24)}},{unsafe:!0})}else w=function(e){l(this,w,"ArrayBuffer");var t=f(e);x(this,{bytes:b.call(new Array(t),0),byteLength:t}),o||(this.byteLength=t)},_=function(e,t,n){l(this,_,"DataView"),l(e,w,"DataView");var r=N(e).byteLength,i=s(t);if(i<0||i>r)throw E("Wrong offset");if(i+(n=n===undefined?r-i:d(n))>r)throw E("Wrong length");x(this,{buffer:e,byteLength:n,byteOffset:i}),o||(this.buffer=e,this.byteLength=n,this.byteOffset=i)},o&&(P(w,"byteLength"),P(_,"buffer"),P(_,"byteLength"),P(_,"byteOffset")),c(_.prototype,{getInt8:function(e){return R(this,1,e)[0]<<24>>24},getUint8:function(e){return R(this,1,e)[0]},getInt16:function(e){var t=R(this,2,e,arguments.length>1?arguments[1]:undefined);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=R(this,2,e,arguments.length>1?arguments[1]:undefined);return t[1]<<8|t[0]},getInt32:function(e){return A(R(this,4,e,arguments.length>1?arguments[1]:undefined))},getUint32:function(e){return A(R(this,4,e,arguments.length>1?arguments[1]:undefined))>>>0},getFloat32:function(e){return L(R(this,4,e,arguments.length>1?arguments[1]:undefined),23)},getFloat64:function(e){return L(R(this,8,e,arguments.length>1?arguments[1]:undefined),52)},setInt8:function(e,t){F(this,1,e,I,t)},setUint8:function(e,t){F(this,1,e,I,t)},setInt16:function(e,t){F(this,2,e,O,t,arguments.length>2?arguments[2]:undefined)},setUint16:function(e,t){F(this,2,e,O,t,arguments.length>2?arguments[2]:undefined)},setInt32:function(e,t){F(this,4,e,T,t,arguments.length>2?arguments[2]:undefined)},setUint32:function(e,t){F(this,4,e,T,t,arguments.length>2?arguments[2]:undefined)},setFloat32:function(e,t){F(this,4,e,M,t,arguments.length>2?arguments[2]:undefined)},setFloat64:function(e,t){F(this,8,e,j,t,arguments.length>2?arguments[2]:undefined)}});y(w,"ArrayBuffer"),y(_,"DataView"),e.exports={ArrayBuffer:w,DataView:_}},function(e,t,n){"use strict";var r=n(0),o=n(3),i=n(60),a=n(21),c=n(50),u=n(67),l=n(53),s=n(4),d=n(2),f=n(74),p=n(42),m=n(78);e.exports=function(e,t,n){var h=-1!==e.indexOf("Map"),v=-1!==e.indexOf("Weak"),g=h?"set":"add",b=o[e],y=b&&b.prototype,C=b,N={},x=function(e){var t=y[e];a(y,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(v&&!s(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!s(e)?undefined:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(v&&!s(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(i(e,"function"!=typeof b||!(v||y.forEach&&!d((function(){(new b).entries().next()})))))C=n.getConstructor(t,e,h,g),c.REQUIRED=!0;else if(i(e,!0)){var V=new C,w=V[g](v?{}:-0,1)!=V,_=d((function(){V.has(1)})),k=f((function(e){new b(e)})),S=!v&&d((function(){for(var e=new b,t=5;t--;)e[g](t,t);return!e.has(-0)}));k||((C=t((function(t,n){l(t,C,e);var r=m(new b,t,C);return n!=undefined&&u(n,r[g],r,h),r}))).prototype=y,y.constructor=C),(_||S)&&(x("delete"),x("has"),h&&x("get")),(S||w)&&x(g),v&&y.clear&&delete y.clear}return N[e]=C,r({global:!0,forced:C!=b},N),p(C,e),v||n.setStrong(C,e,h),C}},function(e,t,n){"use strict";var r=n(4),o=n(49);e.exports=function(e,t,n){var i,a;return o&&"function"==typeof(i=t.constructor)&&i!==n&&r(a=i.prototype)&&a!==n.prototype&&o(e,a),e}},function(e,t,n){"use strict";var r=Math.expm1,o=Math.exp;e.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||-2e-17!=r(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:o(e)-1}:r},function(e,t,n){"use strict";e.exports="\t\n\x0B\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},function(e,t,n){"use strict";var r=n(37),o=n(3),i=n(2);e.exports=r||!i((function(){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete o[e]}))},function(e,t,n){"use strict";var r=n(6);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var r,o,i=n(82),a=n(109),c=RegExp.prototype.exec,u=String.prototype.replace,l=c,s=(r=/a/,o=/b*/g,c.call(r,"a"),c.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),d=a.UNSUPPORTED_Y||a.BROKEN_CARET,f=/()??/.exec("")[1]!==undefined;(s||f||d)&&(l=function(e){var t,n,r,o,a=this,l=d&&a.sticky,p=i.call(a),m=a.source,h=0,v=e;return l&&(-1===(p=p.replace("y","")).indexOf("g")&&(p+="g"),v=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(m="(?: "+m+")",v=" "+v,h++),n=new RegExp("^(?:"+m+")",p)),f&&(n=new RegExp("^"+m+"$(?!\\s)",p)),s&&(t=a.lastIndex),r=c.call(l?n:a,v),l?r?(r.input=r.input.slice(h),r[0]=r[0].slice(h),r.index=a.lastIndex,a.lastIndex+=r[0].length):a.lastIndex=0:s&&r&&(a.lastIndex=a.global?r.index+r[0].length:t),f&&r&&r.length>1&&u.call(r[0],n,(function(){for(o=1;o")})),s="$0"==="a".replace(/./,"$0"),d=i("replace"),f=!!/./[d]&&""===/./[d]("a","$0"),p=!o((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,d){var m=i(e),h=!o((function(){var t={};return t[m]=function(){return 7},7!=""[e](t)})),v=h&&!o((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[m]=/./[m]),n.exec=function(){return t=!0,null},n[m](""),!t}));if(!h||!v||"replace"===e&&(!l||!s||f)||"split"===e&&!p){var g=/./[m],b=n(m,""[e],(function(e,t,n,r,o){return t.exec===a?h&&!o?{done:!0,value:g.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:s,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:f}),y=b[0],C=b[1];r(String.prototype,e,y),r(RegExp.prototype,m,2==t?function(e,t){return C.call(e,this,t)}:function(e){return C.call(e,this)})}d&&c(RegExp.prototype[m],"sham",!0)}},function(e,t,n){"use strict";var r=n(30),o=n(83);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},function(e,t,n){"use strict";function r(e){var t=0;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e)))return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=48&&r<=90?String.fromCharCode(r):r>=112&&r<=123?"F"+(r-111):"["+r+"]"},s=function(e){var t=window.event?e.which:e.keyCode,n=e.ctrlKey,r=e.altKey,o=e.shiftKey;return{keyCode:t,ctrlKey:n,altKey:r,shiftKey:o,hasModifierKeys:n||r||o,keyString:l(n,r,o,t)}},d=function(){for(var e=0,t=Object.keys(u);e=112&&c<=123){i.log(l);for(var d,p=r(f);!(d=p()).done;)(0,d.value)(n,o)}}}(t,n,e)},document.addEventListener("keydown",(function(e){var n=window.event?e.which:e.keyCode;t(e,"keydown"),u[n]=!0})),document.addEventListener("keyup",(function(e){var n=window.event?e.which:e.keyCode;t(e,"keyup"),u[n]=!1})),Byond.IS_LTE_IE8||function(e){var t;document.addEventListener("focusout",(function(){t=setTimeout(e)})),document.addEventListener("focusin",(function(){clearTimeout(t)})),window.addEventListener("beforeunload",e)}((function(){d()})),function(e){return function(t){return e(t)}}}},function(e,t,n){"use strict";t.__esModule=!0,t.zipWith=t.zip=t.uniqBy=t.reduce=t.sortBy=t.map=t.filter=t.toKeyedArray=t.toArray=void 0;t.toArray=function(e){if(Array.isArray(e))return e;if("object"==typeof e){var t=Object.prototype.hasOwnProperty,n=[];for(var r in e)t.call(e,r)&&n.push(e[r]);return n}return[]};t.toKeyedArray=function(e,t){return void 0===t&&(t="key"),r((function(e,n){var r;return Object.assign(((r={})[t]=n,r),e)}))(e)};t.filter=function(e){return function(t){if(null===t&&t===undefined)return t;if(Array.isArray(t)){for(var n=[],r=0;rc)return 1}return 0};t.sortBy=function(){for(var e=arguments.length,t=new Array(e),n=0;n=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=r[1]),e.exports=o&&+o},function(e,t,n){"use strict";var r=n(14),o=n(40),i=n(8);e.exports=function(e){for(var t=r(this),n=i(t.length),a=arguments.length,c=o(a>1?arguments[1]:undefined,n),u=a>2?arguments[2]:undefined,l=u===undefined?n:o(u,n);l>c;)t[c++]=e;return t}},function(e,t,n){"use strict";var r=n(10),o=n(64),i=r("iterator"),a=Array.prototype;e.exports=function(e){return e!==undefined&&(o.Array===e||a[i]===e)}},function(e,t,n){"use strict";var r=n(73),o=n(64),i=n(10)("iterator");e.exports=function(e){if(e!=undefined)return e[i]||e["@@iterator"]||o[r(e)]}},function(e,t,n){"use strict";var r={};r[n(10)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t,n){"use strict";var r=n(0),o=n(207),i=n(33),a=n(49),c=n(42),u=n(27),l=n(21),s=n(10),d=n(37),f=n(64),p=n(141),m=p.IteratorPrototype,h=p.BUGGY_SAFARI_ITERATORS,v=s("iterator"),g=function(){return this};e.exports=function(e,t,n,s,p,b,y){o(n,t,s);var C,N,x,V=function(e){if(e===p&&E)return E;if(!h&&e in k)return k[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},w=t+" Iterator",_=!1,k=e.prototype,S=k[v]||k["@@iterator"]||p&&k[p],E=!h&&S||V(p),B="Array"==t&&k.entries||S;if(B&&(C=i(B.call(new e)),m!==Object.prototype&&C.next&&(d||i(C)===m||(a?a(C,m):"function"!=typeof C[v]&&u(C,v,g)),c(C,w,!0,!0),d&&(f[w]=g))),"values"==p&&S&&"values"!==S.name&&(_=!0,E=function(){return S.call(this)}),d&&!y||k[v]===E||u(k,v,E),f[t]=E,p)if(N={values:V("values"),keys:b?E:V("keys"),entries:V("entries")},y)for(x in N)(h||_||!(x in k))&&l(k,x,N[x]);else r({target:t,proto:!0,forced:h||_},N);return N}},function(e,t,n){"use strict";var r=n(2);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){"use strict";e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(e,t,n){"use strict";var r=n(8),o=n(105),i=n(20),a=Math.ceil,c=function(e){return function(t,n,c){var u,l,s=String(i(t)),d=s.length,f=c===undefined?" ":String(c),p=r(n);return p<=d||""==f?s:(u=p-d,(l=o.call(f,a(u/f.length))).length>u&&(l=l.slice(0,u)),e?s+l:l+s)}};e.exports={start:c(!1),end:c(!0)}},function(e,t,n){"use strict";var r=n(28),o=n(20);e.exports="".repeat||function(e){var t=String(o(this)),n="",i=r(e);if(i<0||i==Infinity)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n}},function(e,t,n){"use strict";e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t,n){"use strict";var r,o,i,a=n(3),c=n(2),u=n(30),l=n(47),s=n(134),d=n(88),f=n(153),p=a.location,m=a.setImmediate,h=a.clearImmediate,v=a.process,g=a.MessageChannel,b=a.Dispatch,y=0,C={},N=function(e){if(C.hasOwnProperty(e)){var t=C[e];delete C[e],t()}},x=function(e){return function(){N(e)}},V=function(e){N(e.data)},w=function(e){a.postMessage(e+"",p.protocol+"//"+p.host)};m&&h||(m=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return C[++y]=function(){("function"==typeof e?e:Function(e)).apply(undefined,t)},r(y),y},h=function(e){delete C[e]},"process"==u(v)?r=function(e){v.nextTick(x(e))}:b&&b.now?r=function(e){b.now(x(e))}:g&&!f?(i=(o=new g).port2,o.port1.onmessage=V,r=l(i.postMessage,i,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||c(w)||"file:"===p.protocol?r="onreadystatechange"in d("script")?function(e){s.appendChild(d("script")).onreadystatechange=function(){s.removeChild(this),N(e)}}:function(e){setTimeout(x(e),0)}:(r=w,a.addEventListener("message",V,!1))),e.exports={set:m,clear:h}},function(e,t,n){"use strict";var r=n(4),o=n(30),i=n(10)("match");e.exports=function(e){var t;return r(e)&&((t=e[i])!==undefined?!!t:"RegExp"==o(e))}},function(e,t,n){"use strict";var r=n(2);function o(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},function(e,t,n){"use strict";var r=n(28),o=n(20),i=function(e){return function(t,n){var i,a,c=String(o(t)),u=r(n),l=c.length;return u<0||u>=l?e?"":undefined:(i=c.charCodeAt(u))<55296||i>56319||u+1===l||(a=c.charCodeAt(u+1))<56320||a>57343?e?c.charAt(u):i:e?c.slice(u,u+2):a-56320+(i-55296<<10)+65536}};e.exports={codeAt:i(!1),charAt:i(!0)}},function(e,t,n){"use strict";var r=n(108);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,n){"use strict";var r=n(10)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(o){}}return!1}},function(e,t,n){"use strict";var r=n(110).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){"use strict";var r=n(2),o=n(80);e.exports=function(e){return r((function(){return!!o[e]()||"\u200b\x85\u180e"!="\u200b\x85\u180e"[e]()||o[e].name!==e}))}},function(e,t,n){"use strict";var r=n(3),o=n(2),i=n(74),a=n(7).NATIVE_ARRAY_BUFFER_VIEWS,c=r.ArrayBuffer,u=r.Int8Array;e.exports=!a||!o((function(){u(1)}))||!o((function(){new u(-1)}))||!i((function(e){new u,new u(null),new u(1.5),new u(e)}),!0)||o((function(){return 1!==new u(new c(2),1,undefined).length}))},function(e,t,n){"use strict";function r(e){var t=0;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e)))return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?o-1:0),c=1;c1?r-1:0),i=1;i=0||(o[n]=e[n]);return o}(e,["className","scrollable","children"]);return(0,r.normalizeProps)((0,r.createVNode)(1,"div",(0,o.classes)(["Layout__content",n&&"Layout__content--scrollable",t].concat((0,i.computeBoxClassName)(c))),a,0,Object.assign({id:"Layout__content"},(0,i.computeBoxProps)(c))))}},function(e,t,n){"use strict";t.__esModule=!0,t.AnimatedNumber=void 0;var r=n(34),o=n(1);var i=function(e){return"number"==typeof e&&Number.isFinite(e)&&!Number.isNaN(e)},a=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).timer=null,n.state={value:0},i(t.initial)?n.state.value=t.initial:i(t.value)&&(n.state.value=Number(t.value)),n}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=o.prototype;return a.tick=function(){var e=this.props,t=this.state,n=Number(t.value),r=Number(e.value);if(i(r)){var o=.5*n+.5*r;this.setState({value:o})}},a.componentDidMount=function(){var e=this;this.timer=setInterval((function(){return e.tick()}),50)},a.componentWillUnmount=function(){clearTimeout(this.timer)},a.render=function(){var e=this.props,t=this.state,n=e.format,o=e.children,a=t.value,c=e.value;if(!i(c))return c||null;var u=a;if(n)u=n(a);else{var l=String(c).split(".")[1],s=l?l.length:0;u=(0,r.toFixed)(a,(0,r.clamp)(s,0,8))}return"function"==typeof o?o(u,a):u},o}(o.Component);t.AnimatedNumber=a},function(e,t,n){"use strict";t.__esModule=!0,t.ButtonInput=t.ButtonConfirm=t.ButtonCheckbox=t.Button=void 0;var r=n(1),o=n(9),i=n(86),a=n(17),c=n(36),u=n(15),l=n(122),s=n(166);function d(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function f(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var p=(0,c.createLogger)("Button"),m=function(e){var t=e.className,n=e.fluid,c=e.icon,d=e.color,m=e.disabled,h=e.selected,v=e.tooltip,g=e.tooltipPosition,b=e.ellipsis,y=e.content,C=e.iconRotation,N=e.iconSpin,x=e.children,V=e.onclick,w=e.onClick,_=f(e,["className","fluid","icon","color","disabled","selected","tooltip","tooltipPosition","ellipsis","content","iconRotation","iconSpin","children","onclick","onClick"]),k=!(!y&&!x);return V&&p.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"),(0,r.normalizeProps)((0,r.createComponentVNode)(2,u.Box,Object.assign({className:(0,o.classes)(["Button",n&&"Button--fluid",m&&"Button--disabled",h&&"Button--selected",k&&"Button--hasContent",b&&"Button--ellipsis",d&&"string"==typeof d?"Button--color--"+d:"Button--color--default",t]),tabIndex:!m&&"0",unselectable:Byond.IS_LTE_IE8,onclick:function(e){(0,a.refocusLayout)(),!m&&w&&w(e)},onKeyDown:function(e){var t=window.event?e.which:e.keyCode;return t===i.KEY_SPACE||t===i.KEY_ENTER?(e.preventDefault(),void(!m&&w&&w(e))):t===i.KEY_ESCAPE?(e.preventDefault(),void(0,a.refocusLayout)()):void 0}},_,{children:[c&&(0,r.createComponentVNode)(2,l.Icon,{name:c,rotation:C,spin:N}),y,x,v&&(0,r.createComponentVNode)(2,s.Tooltip,{content:v,position:g})]})))};t.Button=m,m.defaultHooks=o.pureComponentHooks;var h=function(e){var t=e.checked,n=f(e,["checked"]);return(0,r.normalizeProps)((0,r.createComponentVNode)(2,m,Object.assign({color:"transparent",icon:t?"check-square-o":"square-o",selected:t},n)))};t.ButtonCheckbox=h,m.Checkbox=h;var v=function(e){function t(){var t;return(t=e.call(this)||this).state={clickedOnce:!1},t.handleClick=function(){t.state.clickedOnce&&t.setClickedOnce(!1)},t}d(t,e);var n=t.prototype;return n.setClickedOnce=function(e){var t=this;this.setState({clickedOnce:e}),e?setTimeout((function(){return window.addEventListener("click",t.handleClick)})):window.removeEventListener("click",this.handleClick)},n.render=function(){var e=this,t=this.props,n=t.confirmContent,o=void 0===n?"Confirm?":n,i=t.confirmColor,a=void 0===i?"bad":i,c=t.confirmIcon,u=t.icon,l=t.color,s=t.content,d=t.onClick,p=f(t,["confirmContent","confirmColor","confirmIcon","icon","color","content","onClick"]);return(0,r.normalizeProps)((0,r.createComponentVNode)(2,m,Object.assign({content:this.state.clickedOnce?o:s,icon:this.state.clickedOnce?c:u,color:this.state.clickedOnce?a:l,onClick:function(){return e.state.clickedOnce?d():e.setClickedOnce(!0)}},p)))},t}(r.Component);t.ButtonConfirm=v,m.Confirm=v;var g=function(e){function t(){var t;return(t=e.call(this)||this).inputRef=(0,r.createRef)(),t.state={inInput:!1},t}d(t,e);var n=t.prototype;return n.setInInput=function(e){if(this.setState({inInput:e}),this.inputRef){var t=this.inputRef.current;if(e){t.value=this.props.currentValue||"";try{t.focus(),t.select()}catch(n){}}}},n.commitResult=function(e){if(this.inputRef){var t=this.inputRef.current;if(""!==t.value)return void this.props.onCommit(e,t.value);if(!this.props.defaultValue)return;this.props.onCommit(e,this.props.defaultValue)}},n.render=function(){var e=this,t=this.props,n=t.fluid,a=t.content,c=t.icon,d=t.iconRotation,p=t.iconSpin,m=t.tooltip,h=t.tooltipPosition,v=t.color,g=void 0===v?"default":v,b=(t.placeholder,t.maxLength,f(t,["fluid","content","icon","iconRotation","iconSpin","tooltip","tooltipPosition","color","placeholder","maxLength"]));return(0,r.normalizeProps)((0,r.createComponentVNode)(2,u.Box,Object.assign({className:(0,o.classes)(["Button",n&&"Button--fluid","Button--color--"+g])},b,{onClick:function(){return e.setInInput(!0)},children:[c&&(0,r.createComponentVNode)(2,l.Icon,{name:c,rotation:d,spin:p}),(0,r.createVNode)(1,"div",null,a,0),(0,r.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:this.state.inInput?undefined:"none","text-align":"left"},onBlur:function(t){e.state.inInput&&(e.setInInput(!1),e.commitResult(t))},onKeyDown:function(t){if(t.keyCode===i.KEY_ENTER)return e.setInInput(!1),void e.commitResult(t);t.keyCode===i.KEY_ESCAPE&&e.setInInput(!1)}},null,this.inputRef),m&&(0,r.createComponentVNode)(2,s.Tooltip,{content:m,position:h})]})))},t}(r.Component);t.ButtonInput=g,m.Input=g},function(e,t,n){"use strict";t.__esModule=!0,t.Icon=void 0;var r=n(1),o=n(9),i=n(15);var a=/-o$/,c=function(e){var t=e.name,n=e.size,c=e.spin,u=e.className,l=e.style,s=void 0===l?{}:l,d=e.rotation,f=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,["name","size","spin","className","style","rotation"]);n&&(s["font-size"]=100*n+"%"),"number"==typeof d&&(s.transform="rotate("+d+"deg)");var p=a.test(t),m=t.replace(a,"");return(0,r.normalizeProps)((0,r.createComponentVNode)(2,i.Box,Object.assign({as:"i",className:(0,o.classes)([u,p?"far":"fas","fa-"+m,c&&"fa-spin"]),style:s},f)))};t.Icon=c,c.defaultHooks=o.pureComponentHooks},function(e,t,n){"use strict";t.__esModule=!0,t.DraggableControl=void 0;var r=n(1),o=n(34),i=n(9),a=n(120);var c=function(e,t){return e.screenX*t[0]+e.screenY*t[1]},u=function(e){var t,n;function i(t){var n;return(n=e.call(this,t)||this).inputRef=(0,r.createRef)(),n.state={value:t.value,dragging:!1,editing:!1,internalValue:null,origin:null,suppressingFlicker:!1},n.flickerTimer=null,n.suppressFlicker=function(){var e=n.props.suppressFlicker;e>0&&(n.setState({suppressingFlicker:!0}),clearTimeout(n.flickerTimer),n.flickerTimer=setTimeout((function(){return n.setState({suppressingFlicker:!1})}),e))},n.handleDragStart=function(e){var t=n.props,r=t.value,o=t.dragMatrix;n.state.editing||(document.body.style["pointer-events"]="none",n.ref=e.target,n.setState({dragging:!1,origin:c(e,o),value:r,internalValue:r}),n.timer=setTimeout((function(){n.setState({dragging:!0})}),250),n.dragInterval=setInterval((function(){var t=n.state,r=t.dragging,o=t.value,i=n.props.onDrag;r&&i&&i(e,o)}),500),document.addEventListener("mousemove",n.handleDragMove),document.addEventListener("mouseup",n.handleDragEnd))},n.handleDragMove=function(e){var t=n.props,r=t.minValue,i=t.maxValue,a=t.step,u=t.stepPixelSize,l=t.dragMatrix;n.setState((function(t){var n=Object.assign({},t),s=c(e,l)-n.origin;if(t.dragging){var d=Number.isFinite(r)?r%a:0;n.internalValue=(0,o.clamp)(n.internalValue+s*a/u,r-a,i+a),n.value=(0,o.clamp)(n.internalValue-n.internalValue%a+d,r,i),n.origin=c(e,l)}else Math.abs(s)>4&&(n.dragging=!0);return n}))},n.handleDragEnd=function(e){var t=n.props,r=t.onChange,o=t.onDrag,i=n.state,a=i.dragging,c=i.value,u=i.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(n.timer),clearInterval(n.dragInterval),n.setState({dragging:!1,editing:!a,origin:null}),document.removeEventListener("mousemove",n.handleDragMove),document.removeEventListener("mouseup",n.handleDragEnd),a)n.suppressFlicker(),r&&r(e,c),o&&o(e,c);else if(n.inputRef){var l=n.inputRef.current;l.value=u;try{l.focus(),l.select()}catch(s){}}},n}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i.prototype.render=function(){var e=this,t=this.state,n=t.dragging,i=t.editing,c=t.value,u=t.suppressingFlicker,l=this.props,s=l.animated,d=l.value,f=l.unit,p=l.minValue,m=l.maxValue,h=l.format,v=l.onChange,g=l.onDrag,b=l.children,y=l.height,C=l.lineHeight,N=l.fontSize,x=d;(n||u)&&(x=c);var V=function(e){return e+(f?" "+f:"")},w=s&&!n&&!u&&(0,r.createComponentVNode)(2,a.AnimatedNumber,{value:x,format:h,children:V})||V(h?h(x):x),_=(0,r.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:i?undefined:"none",height:y,"line-height":C,"font-size":N},onBlur:function(t){if(i){var n=(0,o.clamp)(t.target.value,p,m);e.setState({editing:!1,value:n}),e.suppressFlicker(),v&&v(t,n),g&&g(t,n)}},onKeyDown:function(t){if(13===t.keyCode){var n=(0,o.clamp)(t.target.value,p,m);return e.setState({editing:!1,value:n}),e.suppressFlicker(),v&&v(t,n),void(g&&g(t,n))}27!==t.keyCode||e.setState({editing:!1})}},null,this.inputRef);return b({dragging:n,editing:i,value:d,displayValue:x,displayElement:w,inputElement:_,handleDragStart:this.handleDragStart})},i}(r.Component);t.DraggableControl=u,u.defaultHooks=i.pureComponentHooks,u.defaultProps={minValue:-Infinity,maxValue:+Infinity,step:1,stepPixelSize:1,suppressFlicker:50,dragMatrix:[1,0]}},function(e,t,n){"use strict";t.__esModule=!0,t.TableCell=t.TableRow=t.Table=void 0;var r=n(1),o=n(9),i=n(15);function a(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var c=function(e){var t=e.className,n=e.collapsing,c=e.children,u=a(e,["className","collapsing","children"]);return(0,r.normalizeProps)((0,r.createVNode)(1,"table",(0,o.classes)(["Table",n&&"Table--collapsing",t,(0,i.computeBoxClassName)(u)]),(0,r.createVNode)(1,"tbody",null,c,0),2,Object.assign({},(0,i.computeBoxProps)(u))))};t.Table=c,c.defaultHooks=o.pureComponentHooks;var u=function(e){var t=e.className,n=e.header,c=a(e,["className","header"]);return(0,r.normalizeProps)((0,r.createVNode)(1,"tr",(0,o.classes)(["Table__row",n&&"Table__row--header",t,(0,i.computeBoxClassName)(e)]),null,1,Object.assign({},(0,i.computeBoxProps)(c))))};t.TableRow=u,u.defaultHooks=o.pureComponentHooks;var l=function(e){var t=e.className,n=e.collapsing,c=e.header,u=a(e,["className","collapsing","header"]);return(0,r.normalizeProps)((0,r.createVNode)(1,"td",(0,o.classes)(["Table__cell",n&&"Table__cell--collapsing",c&&"Table__cell--header",t,(0,i.computeBoxClassName)(e)]),null,1,Object.assign({},(0,i.computeBoxProps)(u))))};t.TableCell=l,l.defaultHooks=o.pureComponentHooks,c.Row=u,c.Cell=l},function(e,t,n){"use strict";t.__esModule=!0,t.NumberInput=void 0;var r=n(1),o=n(34),i=n(9),a=n(120),c=n(15);var u=function(e){var t,n;function u(t){var n;n=e.call(this,t)||this;var i=t.value;return n.inputRef=(0,r.createRef)(),n.state={value:i,dragging:!1,editing:!1,internalValue:null,origin:null,suppressingFlicker:!1},n.flickerTimer=null,n.suppressFlicker=function(){var e=n.props.suppressFlicker;e>0&&(n.setState({suppressingFlicker:!0}),clearTimeout(n.flickerTimer),n.flickerTimer=setTimeout((function(){return n.setState({suppressingFlicker:!1})}),e))},n.handleDragStart=function(e){var t=n.props.value;n.state.editing||(document.body.style["pointer-events"]="none",n.ref=e.target,n.setState({dragging:!1,origin:e.screenY,value:t,internalValue:t}),n.timer=setTimeout((function(){n.setState({dragging:!0})}),250),n.dragInterval=setInterval((function(){var t=n.state,r=t.dragging,o=t.value,i=n.props.onDrag;r&&i&&i(e,o)}),500),document.addEventListener("mousemove",n.handleDragMove),document.addEventListener("mouseup",n.handleDragEnd))},n.handleDragMove=function(e){var t=n.props,r=t.minValue,i=t.maxValue,a=t.step,c=t.stepPixelSize;n.setState((function(t){var n=Object.assign({},t),u=n.origin-e.screenY;if(t.dragging){var l=Number.isFinite(r)?r%a:0;n.internalValue=(0,o.clamp)(n.internalValue+u*a/c,r-a,i+a),n.value=(0,o.clamp)(n.internalValue-n.internalValue%a+l,r,i),n.origin=e.screenY}else Math.abs(u)>4&&(n.dragging=!0);return n}))},n.handleDragEnd=function(e){var t=n.props,r=t.onChange,o=t.onDrag,i=n.state,a=i.dragging,c=i.value,u=i.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(n.timer),clearInterval(n.dragInterval),n.setState({dragging:!1,editing:!a,origin:null}),document.removeEventListener("mousemove",n.handleDragMove),document.removeEventListener("mouseup",n.handleDragEnd),a)n.suppressFlicker(),r&&r(e,c),o&&o(e,c);else if(n.inputRef){var l=n.inputRef.current;l.value=u;try{l.focus(),l.select()}catch(s){}}},n}return n=e,(t=u).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,u.prototype.render=function(){var e=this,t=this.state,n=t.dragging,u=t.editing,l=t.value,s=t.suppressingFlicker,d=this.props,f=d.className,p=d.fluid,m=d.animated,h=d.value,v=d.unit,g=d.minValue,b=d.maxValue,y=d.height,C=d.width,N=d.lineHeight,x=d.fontSize,V=d.format,w=d.onChange,_=d.onDrag,k=h;(n||s)&&(k=l);var S=function(e){return(0,r.createVNode)(1,"div","NumberInput__content",e+(v?" "+v:""),0,{unselectable:Byond.IS_LTE_IE8})},E=m&&!n&&!s&&(0,r.createComponentVNode)(2,a.AnimatedNumber,{value:k,format:V,children:S})||S(V?V(k):k);return(0,r.createComponentVNode)(2,c.Box,{className:(0,i.classes)(["NumberInput",p&&"NumberInput--fluid",f]),minWidth:C,minHeight:y,lineHeight:N,fontSize:x,onMouseDown:this.handleDragStart,children:[(0,r.createVNode)(1,"div","NumberInput__barContainer",(0,r.createVNode)(1,"div","NumberInput__bar",null,1,{style:{height:(0,o.clamp)((k-g)/(b-g)*100,0,100)+"%"}}),2),E,(0,r.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:u?undefined:"none",height:y,"line-height":N,"font-size":x},onBlur:function(t){if(u){var n=(0,o.clamp)(t.target.value,g,b);e.setState({editing:!1,value:n}),e.suppressFlicker(),w&&w(t,n),_&&_(t,n)}},onKeyDown:function(t){if(13===t.keyCode){var n=(0,o.clamp)(t.target.value,g,b);return e.setState({editing:!1,value:n}),e.suppressFlicker(),w&&w(t,n),void(_&&_(t,n))}27!==t.keyCode||e.setState({editing:!1})}},null,this.inputRef)]})},u}(r.Component);t.NumberInput=u,u.defaultHooks=i.pureComponentHooks,u.defaultProps={minValue:-Infinity,maxValue:+Infinity,step:1,stepPixelSize:1,suppressFlicker:50}},function(e,t,n){"use strict";var r=n(5),o=n(2),i=n(88);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){"use strict";var r=n(3),o=n(89),i=r["__core-js_shared__"]||o("__core-js_shared__",{});e.exports=i},function(e,t,n){"use strict";var r=n(3),o=n(90),i=r.WeakMap;e.exports="function"==typeof i&&/native code/.test(o(i))},function(e,t,n){"use strict";var r=n(16),o=n(92),i=n(19),a=n(12);e.exports=function(e,t){for(var n=o(t),c=a.f,u=i.f,l=0;lu;)r(c,n=t[u++])&&(~i(l,n)||l.push(n));return l}},function(e,t,n){"use strict";var r=n(95);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){"use strict";var r=n(5),o=n(12),i=n(6),a=n(61);e.exports=r?Object.defineProperties:function(e,t){i(e);for(var n,r=a(t),c=r.length,u=0;c>u;)o.f(e,n=r[u++],t[n]);return e}},function(e,t,n){"use strict";var r=n(35);e.exports=r("document","documentElement")},function(e,t,n){"use strict";var r=n(23),o=n(46).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(t){return a.slice()}}(e):o(r(e))}},function(e,t,n){"use strict";var r=n(10);t.f=r},function(e,t,n){"use strict";var r=n(14),o=n(40),i=n(8),a=Math.min;e.exports=[].copyWithin||function(e,t){var n=r(this),c=i(n.length),u=o(e,c),l=o(t,c),s=arguments.length>2?arguments[2]:undefined,d=a((s===undefined?c:o(s,c))-l,c-u),f=1;for(l0;)l in n?n[u]=n[l]:delete n[u],u+=f,l+=f;return n}},function(e,t,n){"use strict";var r=n(51),o=n(8),i=n(47);e.exports=function a(e,t,n,c,u,l,s,d){for(var f,p=u,m=0,h=!!s&&i(s,d,3);m0&&r(f))p=a(e,t,f,o(f.length),p,l-1)-1;else{if(p>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[p]=f}p++}m++}return p}},function(e,t,n){"use strict";var r=n(6);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(a){var i=e["return"];throw i!==undefined&&r(i.call(e)),a}}},function(e,t,n){"use strict";var r=n(23),o=n(43),i=n(64),a=n(32),c=n(101),u=a.set,l=a.getterFor("Array Iterator");e.exports=c(Array,"Array",(function(e,t){u(this,{type:"Array Iterator",target:r(e),index:0,kind:t})}),(function(){var e=l(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=undefined,{value:undefined,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,n){"use strict";var r,o,i,a=n(33),c=n(27),u=n(16),l=n(10),s=n(37),d=l("iterator"),f=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(r=o):f=!0),r==undefined&&(r={}),s||u(r,d)||c(r,d,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:f}},function(e,t,n){"use strict";var r=n(4);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){"use strict";var r=n(23),o=n(28),i=n(8),a=n(38),c=n(22),u=Math.min,l=[].lastIndexOf,s=!!l&&1/[1].lastIndexOf(1,-0)<0,d=a("lastIndexOf"),f=c("indexOf",{ACCESSORS:!0,1:0}),p=s||!d||!f;e.exports=p?function(e){if(s)return l.apply(this,arguments)||0;var t=r(this),n=i(t.length),a=n-1;for(arguments.length>1&&(a=u(a,o(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in t&&t[a]===e)return a||0;return-1}:l},function(e,t,n){"use strict";var r=n(28),o=n(8);e.exports=function(e){if(e===undefined)return 0;var t=r(e),n=o(t);if(t!==n)throw RangeError("Wrong length or index");return n}},function(e,t,n){"use strict";var r=n(29),o=n(4),i=[].slice,a={},c=function(e,t,n){if(!(t in a)){for(var r=[],o=0;o1?arguments[1]:undefined,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!g(this,e)}}),i(s.prototype,n?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return v(this,0===e?0:e,t)}}:{add:function(e){return v(this,e=0===e?0:e,e)}}),d&&r(s.prototype,"size",{get:function(){return p(this).size}}),s},setStrong:function(e,t,n){var r=t+" Iterator",o=h(t),i=h(r);l(e,t,(function(e,t){m(this,{type:r,target:e,state:o(e),kind:t,last:undefined})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=undefined,{value:undefined,done:!0})}),n?"entries":"values",!n,!0),s(t)}}},function(e,t,n){"use strict";var r=Math.log;e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:r(1+e)}},function(e,t,n){"use strict";var r=n(4),o=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&o(e)===e}},function(e,t,n){"use strict";var r=n(3),o=n(54).trim,i=n(80),a=r.parseInt,c=/^[+-]?0[Xx]/,u=8!==a(i+"08")||22!==a(i+"0x16");e.exports=u?function(e,t){var n=o(String(e));return a(n,t>>>0||(c.test(n)?16:10))}:a},function(e,t,n){"use strict";var r=n(5),o=n(61),i=n(23),a=n(70).f,c=function(e){return function(t){for(var n,c=i(t),u=o(c),l=u.length,s=0,d=[];l>s;)n=u[s++],r&&!a.call(c,n)||d.push(e?[n,c[n]]:c[n]);return d}};e.exports={entries:c(!0),values:c(!1)}},function(e,t,n){"use strict";e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){"use strict";var r=n(3);e.exports=r.Promise},function(e,t,n){"use strict";var r=n(72);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},function(e,t,n){"use strict";var r,o,i,a,c,u,l,s,d=n(3),f=n(19).f,p=n(30),m=n(107).set,h=n(153),v=d.MutationObserver||d.WebKitMutationObserver,g=d.process,b=d.Promise,y="process"==p(g),C=f(d,"queueMicrotask"),N=C&&C.value;N||(r=function(){var e,t;for(y&&(e=g.domain)&&e.exit();o;){t=o.fn,o=o.next;try{t()}catch(n){throw o?a():i=undefined,n}}i=undefined,e&&e.enter()},y?a=function(){g.nextTick(r)}:v&&!h?(c=!0,u=document.createTextNode(""),new v(r).observe(u,{characterData:!0}),a=function(){u.data=c=!c}):b&&b.resolve?(l=b.resolve(undefined),s=l.then,a=function(){s.call(l,r)}):a=function(){m.call(d,r)}),e.exports=N||function(e){var t={fn:e,next:undefined};i&&(i.next=t),o||(o=t,a()),i=t}},function(e,t,n){"use strict";var r=n(6),o=n(4),i=n(156);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var r=n(29),o=function(e){var t,n;this.promise=new e((function(e,r){if(t!==undefined||n!==undefined)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},function(e,t,n){"use strict";var r=n(0),o=n(83);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(e,t,n){"use strict";var r=n(72);e.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(r)},function(e,t,n){"use strict";var r=n(351);e.exports=function(e,t){var n=r(e);if(n%t)throw RangeError("Wrong offset");return n}},function(e,t,n){"use strict";var r=n(14),o=n(8),i=n(99),a=n(98),c=n(47),u=n(7).aTypedArrayConstructor;e.exports=function(e){var t,n,l,s,d,f,p=r(e),m=arguments.length,h=m>1?arguments[1]:undefined,v=h!==undefined,g=i(p);if(g!=undefined&&!a(g))for(f=(d=g.call(p)).next,p=[];!(s=f.call(d)).done;)p.push(s.value);for(v&&m>2&&(h=c(h,arguments[2],2)),n=o(p.length),l=new(u(this))(n),t=0;n>t;t++)l[t]=v?h(p[t],t):p[t];return l}},function(e,t,n){"use strict";var r=n(65),o=n(50).getWeakData,i=n(6),a=n(4),c=n(53),u=n(67),l=n(18),s=n(16),d=n(32),f=d.set,p=d.getterFor,m=l.find,h=l.findIndex,v=0,g=function(e){return e.frozen||(e.frozen=new b)},b=function(){this.entries=[]},y=function(e,t){return m(e.entries,(function(e){return e[0]===t}))};b.prototype={get:function(e){var t=y(this,e);if(t)return t[1]},has:function(e){return!!y(this,e)},set:function(e,t){var n=y(this,e);n?n[1]=t:this.entries.push([e,t])},"delete":function(e){var t=h(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,l){var d=e((function(e,r){c(e,d,t),f(e,{type:t,id:v++,frozen:undefined}),r!=undefined&&u(r,e[l],e,n)})),m=p(t),h=function(e,t,n){var r=m(e),a=o(i(t),!0);return!0===a?g(r).set(t,n):a[r.id]=n,e};return r(d.prototype,{"delete":function(e){var t=m(this);if(!a(e))return!1;var n=o(e);return!0===n?g(t)["delete"](e):n&&s(n,t.id)&&delete n[t.id]},has:function(e){var t=m(this);if(!a(e))return!1;var n=o(e);return!0===n?g(t).has(e):n&&s(n,t.id)}}),r(d.prototype,n?{get:function(e){var t=m(this);if(a(e)){var n=o(e);return!0===n?g(t).get(e):n?n[t.id]:undefined}},set:function(e,t){return h(this,e,t)}}:{add:function(e){return h(this,e,!0)}}),d}}},function(e,t,n){"use strict";t.__esModule=!0,t.perf=void 0;var r={mark:function(e,t){0},measure:function(e,t){0}};t.perf=r},function(e,t,n){"use strict";t.__esModule=!0,t.setupHotReloading=t.sendLogEntry=void 0;t.sendLogEntry=function(e,t){};t.setupHotReloading=function(){0}},function(e,t,n){"use strict";t.__esModule=!0,t.resizeStartHandler=t.dragStartHandler=t.setupDrag=t.recallWindowGeometry=t.storeWindowGeometry=t.getScreenSize=t.getScreenPosition=t.setWindowSize=t.setWindowPosition=t.getWindowSize=t.getWindowPosition=t.setWindowKey=void 0;var r=n(409),o=n(410);function i(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(l){return void n(l)}c.done?t(u):Promise.resolve(u).then(r,o)}function a(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function c(e){i(a,r,o,c,u,"next",e)}function u(e){i(a,r,o,c,u,"throw",e)}c(undefined)}))}}var c,u,l,s,d,f=(0,n(36).createLogger)("drag"),p=window.__windowId__,m=!1,h=!1,v=[0,0];t.setWindowKey=function(e){p=e};var g=function(){return[window.screenLeft,window.screenTop]};t.getWindowPosition=g;var b=function(){return[window.innerWidth,window.innerHeight]};t.getWindowSize=b;var y=function(e){var t=(0,o.vecAdd)(e,v);return Byond.winset(window.__windowId__,{pos:t[0]+","+t[1]})};t.setWindowPosition=y;var C=function(e){return Byond.winset(window.__windowId__,{size:e[0]+"x"+e[1]})};t.setWindowSize=C;var N=function(){return[0-v[0],0-v[1]]};t.getScreenPosition=N;var x=function(){return[window.screen.availWidth,window.screen.availHeight]};t.getScreenSize=x;var V=function(e){f.log("storing geometry");var t={pos:g(),size:b()};r.storage.set(e,t);var n=function(e,t,n){void 0===n&&(n=50);for(var r,o=[t],i=0;iu&&(o[a]=u-t[a],i=!0)}return[i,o]};t.dragStartHandler=function(e){f.log("drag start"),m=!0,u=[window.screenLeft-e.screenX,window.screenTop-e.screenY],document.addEventListener("mousemove",E),document.addEventListener("mouseup",S),E(e)};var S=function I(e){f.log("drag end"),E(e),document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",I),m=!1,V(p)},E=function(e){m&&(e.preventDefault(),y((0,o.vecAdd)([e.screenX,e.screenY],u)))};t.resizeStartHandler=function(e,t){return function(n){l=[e,t],f.log("resize start",l),h=!0,u=[window.screenLeft-n.screenX,window.screenTop-n.screenY],s=[window.innerWidth,window.innerHeight],document.addEventListener("mousemove",L),document.addEventListener("mouseup",B),L(n)}};var B=function O(e){f.log("resize end",d),L(e),document.removeEventListener("mousemove",L),document.removeEventListener("mouseup",O),h=!1,V(p)},L=function(e){h&&(e.preventDefault(),(d=(0,o.vecAdd)(s,(0,o.vecMultiply)(l,(0,o.vecAdd)([e.screenX,e.screenY],(0,o.vecInverse)([window.screenLeft,window.screenTop]),u,[1,1]))))[0]=Math.max(d[0],150),d[1]=Math.max(d[1],50),C(d))}},function(e,t,n){"use strict";t.__esModule=!0,t.useDispatch=t.StoreProvider=t.createStore=void 0;var r=n(116),o=n(411),i=n(1),a=n(11),c=n(117),u=n(86),l=n(36),s=n(118);(0,l.createLogger)("store");t.createStore=function(){var e=(0,r.flow)([function(e,t){return void 0===e&&(e={}),e},(0,o.combineReducers)({debug:c.debugReducer,backend:a.backendReducer})]),t=[!1,s.assetMiddleware,u.hotKeyMiddleware,a.backendMiddleware];return(0,o.createStore)(e,o.applyMiddleware.apply(void 0,t.filter(Boolean)))};var d=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getChildContext=function(){return{store:this.props.store}},o.render=function(){return this.props.children},r}(i.Component);t.StoreProvider=d;t.useDispatch=function(e){return e.store.dispatch}},function(e,t,n){"use strict";t.__esModule=!0,t.Tooltip=void 0;var r=n(1),o=n(9);t.Tooltip=function(e){var t=e.content,n=e.position,i=void 0===n?"bottom":n,a="string"==typeof t&&t.length>35;return(0,r.createVNode)(1,"div",(0,o.classes)(["Tooltip",a&&"Tooltip--long",i&&"Tooltip--"+i]),null,1,{"data-tooltip":t})}},function(e,t,n){"use strict";t.__esModule=!0,t.Dimmer=void 0;var r=n(1),o=n(9),i=n(15);t.Dimmer=function(e){var t=e.className,n=e.children,a=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,["className","children"]);return(0,r.normalizeProps)((0,r.createComponentVNode)(2,i.Box,Object.assign({className:(0,o.classes)(["Dimmer"].concat(t))},a,{children:(0,r.createVNode)(1,"div","Dimmer__inner",n,0)})))}},function(e,t,n){"use strict";t.__esModule=!0,t.Divider=void 0;var r=n(1),o=n(9);t.Divider=function(e){var t=e.vertical,n=e.hidden;return(0,r.createVNode)(1,"div",(0,o.classes)(["Divider",n&&"Divider--hidden",t?"Divider--vertical":"Divider--horizontal"]))}},function(e,t,n){"use strict";t.__esModule=!0,t.FlexItem=t.computeFlexItemProps=t.Flex=t.computeFlexProps=void 0;var r=n(1),o=n(9),i=n(15);function a(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var c=function(e){var t=e.className,n=e.direction,r=e.wrap,i=e.align,c=e.alignContent,u=e.justify,l=e.inline,s=e.spacing,d=void 0===s?0:s,f=e.spacingPrecise,p=void 0===f?0:f,m=a(e,["className","direction","wrap","align","alignContent","justify","inline","spacing","spacingPrecise"]);return Object.assign({className:(0,o.classes)(["Flex",Byond.IS_LTE_IE10&&("column"===n?"Flex--iefix--column":"Flex--iefix"),l&&"Flex--inline",d>0&&"Flex--spacing--"+d,p>0&&"Flex--spacingPrecise--"+p,t]),style:Object.assign({},m.style,{"flex-direction":n,"flex-wrap":r,"align-items":i,"align-content":c,"justify-content":u})},m)};t.computeFlexProps=c;var u=function(e){return(0,r.normalizeProps)((0,r.createComponentVNode)(2,i.Box,Object.assign({},c(e))))};t.Flex=u,u.defaultHooks=o.pureComponentHooks;var l=function(e){var t=e.className,n=e.grow,r=e.order,c=e.shrink,u=e.basis,l=void 0===u?e.width:u,s=e.align,d=a(e,["className","grow","order","shrink","basis","align"]);return Object.assign({className:(0,o.classes)(["Flex__item",Byond.IS_LTE_IE10&&"Flex__item--iefix",t]),style:Object.assign({},d.style,{"flex-grow":n,"flex-shrink":c,"flex-basis":(0,i.unit)(l),order:r,"align-self":s})},d)};t.computeFlexItemProps=l;var s=function(e){return(0,r.normalizeProps)((0,r.createComponentVNode)(2,i.Box,Object.assign({},l(e))))};t.FlexItem=s,s.defaultHooks=o.pureComponentHooks,u.Item=s},function(e,t,n){"use strict";t.__esModule=!0,t.Window=void 0;var r=n(1),o=n(9),i=n(171),a=n(11),c=n(13),u=n(55),l=n(117),s=n(164),d=n(36),f=n(165),p=n(119);var m=(0,d.createLogger)("Window"),h=[400,600],v=function(e){var t,n;function c(){return e.apply(this,arguments)||this}n=e,(t=c).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var d=c.prototype;return d.componentDidMount=function(){var e=(0,a.useBackend)(this.context),t=e.config;if(!e.suspended){m.log("mounting");var n=Object.assign({size:h},t.window);this.props.width&&this.props.height&&(n.size=[this.props.width,this.props.height]),(0,s.setWindowKey)(t.window.key),(0,s.recallWindowGeometry)(t.window.key,n),(0,p.refocusLayout)()}},d.render=function(){var e,t=this.props,n=t.resizable,c=t.theme,d=t.title,h=t.children,v=(0,a.useBackend)(this.context),g=v.config,y=v.suspended,C=(0,l.useDebug)(this.context).debugLayout,N=(0,f.useDispatch)(this.context),x=null==(e=g.window)?void 0:e.fancy,V=g.user.observer?g.status=0||(o[n]=e[n]);return o}(e,["className","fitted","scrollable","children"]);return(0,r.normalizeProps)((0,r.createComponentVNode)(2,p.Layout.Content,Object.assign({scrollable:i,className:(0,o.classes)(["Window__content",t])},c,{children:n&&a||(0,r.createVNode)(1,"div","Window__contentPadding",a,0)})))};var g=function(e){switch(e){case u.UI_INTERACTIVE:return"good";case u.UI_UPDATE:return"average";case u.UI_DISABLED:default:return"bad"}},b=function(e,t){var n=e.className,a=e.title,u=e.status,l=e.fancy,s=e.onDragStart,d=e.onClose;(0,f.useDispatch)(t);return(0,r.createVNode)(1,"div",(0,o.classes)(["TitleBar",n]),[(0,r.createComponentVNode)(2,c.Icon,{className:"TitleBar__statusIcon",color:g(u),name:"eye"}),(0,r.createVNode)(1,"div","TitleBar__title","string"==typeof a&&a===a.toLowerCase()&&(0,i.toTitleCase)(a)||a,0),(0,r.createVNode)(1,"div","TitleBar__dragZone",null,1,{onMousedown:function(e){return l&&s(e)}}),!1,!!l&&(0,r.createVNode)(1,"div","TitleBar__close TitleBar__clickable",Byond.IS_LTE_IE8?"x":"\xd7",0,{onclick:d})],0)}},function(e,t,n){"use strict";function r(e){var t=0;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e)))return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n",apos:"'"};return e.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(/&(nbsp|amp|quot|lt|gt|apos);/g,(function(e,n){return t[n]})).replace(/&#?([0-9]+);/gi,(function(e,t){var n=parseInt(t,10);return String.fromCharCode(n)})).replace(/&#x?([0-9a-f]+);/gi,(function(e,t){var n=parseInt(t,16);return String.fromCharCode(n)}))};t.buildQueryString=function(e){return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")}},function(e,t,n){"use strict";t.__esModule=!0,t.CameraConsoleSearch=t.CameraConsoleContent=t.CameraConsole=void 0;var r=n(1),o=n(87),i=n(116),a=n(9),c=n(171),u=n(11),l=n(13),s=n(17),d=function(e,t,n){void 0===t&&(t=""),void 0===n&&(n="");var r=(0,c.createSearch)(t,(function(e){return e.name}));return(0,i.flow)([(0,o.filter)((function(e){return null==e?void 0:e.name})),t&&(0,o.filter)(r),n&&(0,o.filter)((function(e){return e.networks.includes(n)})),(0,o.sortBy)((function(e){return e.name}))])(e)};t.CameraConsole=function(e,t){return(0,r.createComponentVNode)(2,s.Window,{width:870,height:708,resizable:!0,children:(0,r.createComponentVNode)(2,f)})};var f=function(e,t){var n=(0,u.useBackend)(t),o=n.act,i=n.data,a=(n.config,i.mapRef),c=i.activeCamera,f=function(e,t){var n,r;if(!t)return[];var o=e.findIndex((function(e){return e.name===t.name}));return[null==(n=e[o-1])?void 0:n.name,null==(r=e[o+1])?void 0:r.name]}(d(i.cameras),c),m=f[0],h=f[1];return(0,r.createFragment)([(0,r.createVNode)(1,"div","CameraConsole__left",(0,r.createComponentVNode)(2,s.Window.Content,{scrollable:!0,children:(0,r.createComponentVNode)(2,p)}),2),(0,r.createVNode)(1,"div","CameraConsole__right",[(0,r.createVNode)(1,"div","CameraConsole__toolbar",[(0,r.createVNode)(1,"b",null,"Camera: ",16),c&&c.name||"\u2014"],0),(0,r.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,r.createComponentVNode)(2,l.Button,{icon:"chevron-left",disabled:!m,onClick:function(){return o("switch_camera",{name:m})}}),(0,r.createComponentVNode)(2,l.Button,{icon:"chevron-right",disabled:!h,onClick:function(){return o("switch_camera",{name:h})}})],4),(0,r.createComponentVNode)(2,l.ByondUi,{className:"CameraConsole__map",params:{id:a,type:"map"}})],4)],4)};t.CameraConsoleContent=f;var p=function(e,t){var n=(0,u.useBackend)(t),o=n.act,i=n.data,c=(0,u.useLocalState)(t,"searchText",""),f=c[0],p=c[1],m=(0,u.useLocalState)(t,"networkFilter",""),h=m[0],v=m[1],g=i.activeCamera,b=i.allNetworks;b.sort();var y=d(i.cameras,f,h);return(0,r.createFragment)([(0,r.createComponentVNode)(2,l.Input,{fluid:!0,mb:1,placeholder:"Search for a camera",onInput:function(e,t){return p(t)}}),(0,r.createComponentVNode)(2,l.Dropdown,{mb:1,width:"189px",options:b,placeholder:"No Filter",onSelected:function(e){return v(e)}}),(0,r.createComponentVNode)(2,l.Section,{children:y.map((function(e){return(0,r.createVNode)(1,"div",(0,a.classes)(["Button","Button--fluid","Button--color--transparent","Button--ellipsis",g&&e.name===g.name&&"Button--selected"]),e.name,0,{title:e.name,onClick:function(){(0,s.refocusLayout)(),o("switch_camera",{name:e.name})}},e.name)}))})],4)};t.CameraConsoleSearch=p},function(e,t,n){"use strict";t.__esModule=!0,t.BeakerContents=void 0;var r=n(1),o=n(13),i=n(439),a=function(e){var t=e.beakerLoaded,n=e.beakerContents,i=void 0===n?[]:n,a=e.buttons;return(0,r.createComponentVNode)(2,o.Box,{children:[!t&&(0,r.createComponentVNode)(2,o.Box,{color:"label",children:"No beaker loaded."})||0===i.length&&(0,r.createComponentVNode)(2,o.Box,{color:"label",children:"Beaker is empty."}),i.map((function(e,t){return(0,r.createComponentVNode)(2,o.Box,{width:"100%",children:[(0,r.createComponentVNode)(2,o.Box,{color:"label",display:"inline",verticalAlign:"middle",children:[(n=e.volume,n+" unit"+(1===n?"":"s"))," of ",e.name]}),!!a&&(0,r.createComponentVNode)(2,o.Box,{float:"right",display:"inline",children:a(e,t)}),(0,r.createComponentVNode)(2,o.Box,{clear:"both"})]},e.name);var n}))]})};t.BeakerContents=a,a.propTypes={beakerLoaded:i.bool,beakerContents:i.array,buttons:i.arrayOf(i.element)}},function(e,t,n){"use strict";t.__esModule=!0,t.CrewMonitorContent=t.CrewMonitor=void 0;var r=n(1),o=n(87),i=n(11),a=n(17),c=n(13),u=n(124);n(55);t.CrewMonitor=function(){return(0,r.createComponentVNode)(2,a.Window,{width:800,height:600,resizable:!0,children:(0,r.createComponentVNode)(2,a.Window.Content,{children:(0,r.createComponentVNode)(2,l)})})};var l=function(e,t){var n,a=(0,i.useBackend)(t),l=a.act,s=a.data,d=a.config,f=(0,i.useLocalState)(t,"tabIndex",0),p=f[0],m=f[1],h=(0,o.sortBy)((function(e){return e.name}))(s.crewmembers||[]),v=(0,i.useLocalState)(t,"number",1),g=v[0],b=v[1];return n=0===p?(0,r.createComponentVNode)(2,c.Table,{children:[(0,r.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,r.createComponentVNode)(2,c.Table.Cell,{children:"Name"}),(0,r.createComponentVNode)(2,c.Table.Cell,{children:"Status"}),(0,r.createComponentVNode)(2,c.Table.Cell,{children:"Location"})]}),h.map((function(e){return(0,r.createComponentVNode)(2,c.Table.Row,{children:[(0,r.createComponentVNode)(2,u.TableCell,{children:[e.name," (",e.assignment,")"]}),(0,r.createComponentVNode)(2,u.TableCell,{children:[(0,r.createComponentVNode)(2,c.Box,{inline:!0,color:e.dead?"red":"green",children:e.dead?"Deceased":"Living"}),e.sensor_type>=2?(0,r.createComponentVNode)(2,c.Box,{inline:!0,children:["(",(0,r.createComponentVNode)(2,c.Box,{inline:!0,color:"red",children:e.brute}),"|",(0,r.createComponentVNode)(2,c.Box,{inline:!0,color:"orange",children:e.fire}),"|",(0,r.createComponentVNode)(2,c.Box,{inline:!0,color:"green",children:e.tox}),"|",(0,r.createComponentVNode)(2,c.Box,{inline:!0,color:"blue",children:e.oxy}),")"]}):null]}),(0,r.createComponentVNode)(2,u.TableCell,{children:3===e.sensor_type?s.isAI?(0,r.createComponentVNode)(2,c.Button,{fluid:!0,icon:"location-arrow",content:e.area+" ("+e.x+", "+e.y+")",onClick:function(){return l("track",{track:e.ref})}}):e.area+" ("+e.x+", "+e.y+", "+e.z+")":"Not Available"})]},e.name)}))]}):1===p?(0,r.createComponentVNode)(2,c.Box,{textAlign:"center",children:["Zoom Level:",(0,r.createComponentVNode)(2,c.NumberInput,{animated:!0,width:"40px",step:.5,stepPixelSize:"5",value:g,minValue:1,maxValue:8,onChange:function(e,t){return b(t)}}),"Z-Level:",s.map_levels.sort((function(e,t){return Number(e)-Number(t)})).map((function(e){return(0,r.createComponentVNode)(2,c.Button,{selected:~~e==~~d.mapZLevel,content:e,onClick:function(){l("setZLevel",{mapZLevel:e})}},e)})),(0,r.createComponentVNode)(2,c.NanoMap,{zoom:g,children:h.filter((function(e){return 3===e.sensor_type&&~~e.realZ==~~d.mapZLevel})).map((function(e){return(0,r.createComponentVNode)(2,c.NanoMap.Marker,{x:e.x,y:e.y,zoom:g,icon:"circle",tooltip:e.name,color:e.dead?"red":"green"},e.ref)}))})]}):"ERROR",(0,r.createFragment)([(0,r.createComponentVNode)(2,c.Tabs,{children:[(0,r.createComponentVNode)(2,c.Tabs.Tab,{selected:0===p,onClick:function(){return m(0)},children:[(0,r.createComponentVNode)(2,c.Icon,{name:"table"})," Data View"]},"DataView"),(0,r.createComponentVNode)(2,c.Tabs.Tab,{selected:1===p,onClick:function(){return m(1)},children:[(0,r.createComponentVNode)(2,c.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,r.createComponentVNode)(2,c.Box,{m:2,children:n})],4)};t.CrewMonitorContent=l},function(e,t,n){e.exports=n(176)},function(e,t,n){"use strict";n(177),n(178),n(179),n(180),n(181),n(182),n(183),n(184),n(185),n(186),n(187),n(188),n(189),n(190),n(191),n(192),n(193),n(194),n(195),n(196),n(197),n(198),n(199),n(200),n(202),n(204),n(205),n(206),n(140),n(208),n(209),n(210),n(211),n(212),n(213),n(214),n(215),n(216),n(217),n(218),n(219),n(220),n(221),n(223),n(224),n(225),n(226),n(227),n(229),n(230),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(242),n(243),n(244),n(245),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(254),n(255),n(256),n(257),n(258),n(259),n(261),n(262),n(263),n(264),n(265),n(266),n(268),n(269),n(271),n(273),n(274),n(275),n(276),n(277),n(278),n(279),n(280),n(281),n(282),n(283),n(284),n(285),n(286),n(287),n(288),n(289),n(290),n(291),n(292),n(293),n(294),n(295),n(297),n(298),n(299),n(302),n(303),n(304),n(305),n(306),n(307),n(308),n(309),n(310),n(311),n(312),n(313),n(314),n(315),n(316),n(157),n(317),n(318),n(319),n(320),n(321),n(322),n(323),n(324),n(325),n(326),n(327),n(328),n(329),n(330),n(331),n(332),n(333),n(334),n(335),n(336),n(337),n(338),n(339),n(340),n(341),n(342),n(343),n(344),n(345),n(346),n(347),n(348),n(349),n(350),n(352),n(353),n(354),n(355),n(356),n(357),n(358),n(359),n(360),n(361),n(362),n(363),n(364),n(365),n(366),n(367),n(368),n(369),n(370),n(371),n(372),n(373),n(374),n(375),n(376),n(377),n(378),n(379),n(380),n(381),n(382),n(383),n(384),n(385),n(386),n(387),n(388),n(389);var r=n(1);n(391),n(392),n(393),n(394),n(395),n(396),n(397),n(398),n(399),n(400),n(401),n(402),n(403),n(404),n(405);var o=n(162),i=(n(163),n(11)),a=n(164),c=n(36),u=n(165); + */t.toggleKitchenSink=o;var i=function(){return{type:"debug/toggleDebugLayout"}};t.toggleDebugLayout=i,(0,r.subscribeToHotKey)("F11",(function(){return{type:"debug/toggleDebugLayout"}})),(0,r.subscribeToHotKey)("F12",(function(){return{type:"debug/toggleKitchenSink"}})),(0,r.subscribeToHotKey)("Ctrl+Alt+[8]",(function(){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!")}))}));var a=function(e){return e.debug};t.selectDebug=a;t.useDebug=function(e){return a(e.store.getState())};t.debugReducer=function(e,t){void 0===e&&(e={});var n=t.type;t.payload;return"debug/toggleKitchenSink"===n?Object.assign({},e,{kitchenSink:!e.kitchenSink}):"debug/toggleDebugLayout"===n?Object.assign({},e,{debugLayout:!e.debugLayout}):e}},function(e,t,n){"use strict";t.__esModule=!0,t.assetMiddleware=t.resolveAsset=t.loadCSS=void 0;var r=n(412),o=(0,n(36).createLogger)("assets"),i=[/v4shim/i],a=[],c={},u=function(e){a.includes(e)||(a.push(e),o.log("loading stylesheet '"+e+"'"),(0,r.loadCSS)(e))};t.loadCSS=u;t.resolveAsset=function(e){return c[e]||e};t.assetMiddleware=function(e){return function(e){return function(t){var n=t.type,r=t.payload;if("asset/stylesheet"!==n)if("asset/mappings"!==n)e(t);else for(var o=function(){var e=l[a];if(i.some((function(t){return t.test(e)})))return"continue";var t=r[e],n=e.split(".").pop();c[e]=t,"css"===n&&u(t)},a=0,l=Object.keys(r);a=0||(o[n]=e[n]);return o}(e,["className","scrollable","children"]);return(0,r.normalizeProps)((0,r.createVNode)(1,"div",(0,o.classes)(["Layout__content",n&&"Layout__content--scrollable",t].concat((0,i.computeBoxClassName)(c))),a,0,Object.assign({id:"Layout__content"},(0,i.computeBoxProps)(c))))}},function(e,t,n){"use strict";t.__esModule=!0,t.AnimatedNumber=void 0;var r=n(34),o=n(1);var i=function(e){return"number"==typeof e&&Number.isFinite(e)&&!Number.isNaN(e)},a=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).timer=null,n.state={value:0},i(t.initial)?n.state.value=t.initial:i(t.value)&&(n.state.value=Number(t.value)),n}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=o.prototype;return a.tick=function(){var e=this.props,t=this.state,n=Number(t.value),r=Number(e.value);if(i(r)){var o=.5*n+.5*r;this.setState({value:o})}},a.componentDidMount=function(){var e=this;this.timer=setInterval((function(){return e.tick()}),50)},a.componentWillUnmount=function(){clearTimeout(this.timer)},a.render=function(){var e=this.props,t=this.state,n=e.format,o=e.children,a=t.value,c=e.value;if(!i(c))return c||null;var u=a;if(n)u=n(a);else{var l=String(c).split(".")[1],s=l?l.length:0;u=(0,r.toFixed)(a,(0,r.clamp)(s,0,8))}return"function"==typeof o?o(u,a):u},o}(o.Component);t.AnimatedNumber=a},function(e,t,n){"use strict";t.__esModule=!0,t.ButtonInput=t.ButtonConfirm=t.ButtonCheckbox=t.Button=void 0;var r=n(1),o=n(9),i=n(86),a=n(17),c=n(36),u=n(15),l=n(122),s=n(166);function d(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function f(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var p=(0,c.createLogger)("Button"),m=function(e){var t=e.className,n=e.fluid,c=e.icon,d=e.color,m=e.disabled,h=e.selected,v=e.tooltip,g=e.tooltipPosition,b=e.ellipsis,y=e.content,C=e.iconRotation,N=e.iconSpin,x=e.children,V=e.onclick,w=e.onClick,_=f(e,["className","fluid","icon","color","disabled","selected","tooltip","tooltipPosition","ellipsis","content","iconRotation","iconSpin","children","onclick","onClick"]),k=!(!y&&!x);return V&&p.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"),(0,r.normalizeProps)((0,r.createComponentVNode)(2,u.Box,Object.assign({className:(0,o.classes)(["Button",n&&"Button--fluid",m&&"Button--disabled",h&&"Button--selected",k&&"Button--hasContent",b&&"Button--ellipsis",d&&"string"==typeof d?"Button--color--"+d:"Button--color--default",t]),tabIndex:!m&&"0",unselectable:Byond.IS_LTE_IE8,onclick:function(e){(0,a.refocusLayout)(),!m&&w&&w(e)},onKeyDown:function(e){var t=window.event?e.which:e.keyCode;return t===i.KEY_SPACE||t===i.KEY_ENTER?(e.preventDefault(),void(!m&&w&&w(e))):t===i.KEY_ESCAPE?(e.preventDefault(),void(0,a.refocusLayout)()):void 0}},_,{children:[c&&(0,r.createComponentVNode)(2,l.Icon,{name:c,rotation:C,spin:N}),y,x,v&&(0,r.createComponentVNode)(2,s.Tooltip,{content:v,position:g})]})))};t.Button=m,m.defaultHooks=o.pureComponentHooks;var h=function(e){var t=e.checked,n=f(e,["checked"]);return(0,r.normalizeProps)((0,r.createComponentVNode)(2,m,Object.assign({color:"transparent",icon:t?"check-square-o":"square-o",selected:t},n)))};t.ButtonCheckbox=h,m.Checkbox=h;var v=function(e){function t(){var t;return(t=e.call(this)||this).state={clickedOnce:!1},t.handleClick=function(){t.state.clickedOnce&&t.setClickedOnce(!1)},t}d(t,e);var n=t.prototype;return n.setClickedOnce=function(e){var t=this;this.setState({clickedOnce:e}),e?setTimeout((function(){return window.addEventListener("click",t.handleClick)})):window.removeEventListener("click",this.handleClick)},n.render=function(){var e=this,t=this.props,n=t.confirmContent,o=void 0===n?"Confirm?":n,i=t.confirmColor,a=void 0===i?"bad":i,c=t.confirmIcon,u=t.icon,l=t.color,s=t.content,d=t.onClick,p=f(t,["confirmContent","confirmColor","confirmIcon","icon","color","content","onClick"]);return(0,r.normalizeProps)((0,r.createComponentVNode)(2,m,Object.assign({content:this.state.clickedOnce?o:s,icon:this.state.clickedOnce?c:u,color:this.state.clickedOnce?a:l,onClick:function(){return e.state.clickedOnce?d():e.setClickedOnce(!0)}},p)))},t}(r.Component);t.ButtonConfirm=v,m.Confirm=v;var g=function(e){function t(){var t;return(t=e.call(this)||this).inputRef=(0,r.createRef)(),t.state={inInput:!1},t}d(t,e);var n=t.prototype;return n.setInInput=function(e){if(this.setState({inInput:e}),this.inputRef){var t=this.inputRef.current;if(e){t.value=this.props.currentValue||"";try{t.focus(),t.select()}catch(n){}}}},n.commitResult=function(e){if(this.inputRef){var t=this.inputRef.current;if(""!==t.value)return void this.props.onCommit(e,t.value);if(!this.props.defaultValue)return;this.props.onCommit(e,this.props.defaultValue)}},n.render=function(){var e=this,t=this.props,n=t.fluid,a=t.content,c=t.icon,d=t.iconRotation,p=t.iconSpin,m=t.tooltip,h=t.tooltipPosition,v=t.color,g=void 0===v?"default":v,b=(t.placeholder,t.maxLength,f(t,["fluid","content","icon","iconRotation","iconSpin","tooltip","tooltipPosition","color","placeholder","maxLength"]));return(0,r.normalizeProps)((0,r.createComponentVNode)(2,u.Box,Object.assign({className:(0,o.classes)(["Button",n&&"Button--fluid","Button--color--"+g])},b,{onClick:function(){return e.setInInput(!0)},children:[c&&(0,r.createComponentVNode)(2,l.Icon,{name:c,rotation:d,spin:p}),(0,r.createVNode)(1,"div",null,a,0),(0,r.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:this.state.inInput?undefined:"none","text-align":"left"},onBlur:function(t){e.state.inInput&&(e.setInInput(!1),e.commitResult(t))},onKeyDown:function(t){if(t.keyCode===i.KEY_ENTER)return e.setInInput(!1),void e.commitResult(t);t.keyCode===i.KEY_ESCAPE&&e.setInInput(!1)}},null,this.inputRef),m&&(0,r.createComponentVNode)(2,s.Tooltip,{content:m,position:h})]})))},t}(r.Component);t.ButtonInput=g,m.Input=g},function(e,t,n){"use strict";t.__esModule=!0,t.Icon=void 0;var r=n(1),o=n(9),i=n(15);var a=/-o$/,c=function(e){var t=e.name,n=e.size,c=e.spin,u=e.className,l=e.style,s=void 0===l?{}:l,d=e.rotation,f=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,["name","size","spin","className","style","rotation"]);n&&(s["font-size"]=100*n+"%"),"number"==typeof d&&(s.transform="rotate("+d+"deg)");var p=a.test(t),m=t.replace(a,"");return(0,r.normalizeProps)((0,r.createComponentVNode)(2,i.Box,Object.assign({as:"i",className:(0,o.classes)([u,p?"far":"fas","fa-"+m,c&&"fa-spin"]),style:s},f)))};t.Icon=c,c.defaultHooks=o.pureComponentHooks},function(e,t,n){"use strict";t.__esModule=!0,t.DraggableControl=void 0;var r=n(1),o=n(34),i=n(9),a=n(120);var c=function(e,t){return e.screenX*t[0]+e.screenY*t[1]},u=function(e){var t,n;function i(t){var n;return(n=e.call(this,t)||this).inputRef=(0,r.createRef)(),n.state={value:t.value,dragging:!1,editing:!1,internalValue:null,origin:null,suppressingFlicker:!1},n.flickerTimer=null,n.suppressFlicker=function(){var e=n.props.suppressFlicker;e>0&&(n.setState({suppressingFlicker:!0}),clearTimeout(n.flickerTimer),n.flickerTimer=setTimeout((function(){return n.setState({suppressingFlicker:!1})}),e))},n.handleDragStart=function(e){var t=n.props,r=t.value,o=t.dragMatrix;n.state.editing||(document.body.style["pointer-events"]="none",n.ref=e.target,n.setState({dragging:!1,origin:c(e,o),value:r,internalValue:r}),n.timer=setTimeout((function(){n.setState({dragging:!0})}),250),n.dragInterval=setInterval((function(){var t=n.state,r=t.dragging,o=t.value,i=n.props.onDrag;r&&i&&i(e,o)}),500),document.addEventListener("mousemove",n.handleDragMove),document.addEventListener("mouseup",n.handleDragEnd))},n.handleDragMove=function(e){var t=n.props,r=t.minValue,i=t.maxValue,a=t.step,u=t.stepPixelSize,l=t.dragMatrix;n.setState((function(t){var n=Object.assign({},t),s=c(e,l)-n.origin;if(t.dragging){var d=Number.isFinite(r)?r%a:0;n.internalValue=(0,o.clamp)(n.internalValue+s*a/u,r-a,i+a),n.value=(0,o.clamp)(n.internalValue-n.internalValue%a+d,r,i),n.origin=c(e,l)}else Math.abs(s)>4&&(n.dragging=!0);return n}))},n.handleDragEnd=function(e){var t=n.props,r=t.onChange,o=t.onDrag,i=n.state,a=i.dragging,c=i.value,u=i.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(n.timer),clearInterval(n.dragInterval),n.setState({dragging:!1,editing:!a,origin:null}),document.removeEventListener("mousemove",n.handleDragMove),document.removeEventListener("mouseup",n.handleDragEnd),a)n.suppressFlicker(),r&&r(e,c),o&&o(e,c);else if(n.inputRef){var l=n.inputRef.current;l.value=u;try{l.focus(),l.select()}catch(s){}}},n}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i.prototype.render=function(){var e=this,t=this.state,n=t.dragging,i=t.editing,c=t.value,u=t.suppressingFlicker,l=this.props,s=l.animated,d=l.value,f=l.unit,p=l.minValue,m=l.maxValue,h=l.format,v=l.onChange,g=l.onDrag,b=l.children,y=l.height,C=l.lineHeight,N=l.fontSize,x=d;(n||u)&&(x=c);var V=function(e){return e+(f?" "+f:"")},w=s&&!n&&!u&&(0,r.createComponentVNode)(2,a.AnimatedNumber,{value:x,format:h,children:V})||V(h?h(x):x),_=(0,r.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:i?undefined:"none",height:y,"line-height":C,"font-size":N},onBlur:function(t){if(i){var n=(0,o.clamp)(t.target.value,p,m);e.setState({editing:!1,value:n}),e.suppressFlicker(),v&&v(t,n),g&&g(t,n)}},onKeyDown:function(t){if(13===t.keyCode){var n=(0,o.clamp)(t.target.value,p,m);return e.setState({editing:!1,value:n}),e.suppressFlicker(),v&&v(t,n),void(g&&g(t,n))}27!==t.keyCode||e.setState({editing:!1})}},null,this.inputRef);return b({dragging:n,editing:i,value:d,displayValue:x,displayElement:w,inputElement:_,handleDragStart:this.handleDragStart})},i}(r.Component);t.DraggableControl=u,u.defaultHooks=i.pureComponentHooks,u.defaultProps={minValue:-Infinity,maxValue:+Infinity,step:1,stepPixelSize:1,suppressFlicker:50,dragMatrix:[1,0]}},function(e,t,n){"use strict";t.__esModule=!0,t.TableCell=t.TableRow=t.Table=void 0;var r=n(1),o=n(9),i=n(15);function a(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var c=function(e){var t=e.className,n=e.collapsing,c=e.children,u=a(e,["className","collapsing","children"]);return(0,r.normalizeProps)((0,r.createVNode)(1,"table",(0,o.classes)(["Table",n&&"Table--collapsing",t,(0,i.computeBoxClassName)(u)]),(0,r.createVNode)(1,"tbody",null,c,0),2,Object.assign({},(0,i.computeBoxProps)(u))))};t.Table=c,c.defaultHooks=o.pureComponentHooks;var u=function(e){var t=e.className,n=e.header,c=a(e,["className","header"]);return(0,r.normalizeProps)((0,r.createVNode)(1,"tr",(0,o.classes)(["Table__row",n&&"Table__row--header",t,(0,i.computeBoxClassName)(e)]),null,1,Object.assign({},(0,i.computeBoxProps)(c))))};t.TableRow=u,u.defaultHooks=o.pureComponentHooks;var l=function(e){var t=e.className,n=e.collapsing,c=e.header,u=a(e,["className","collapsing","header"]);return(0,r.normalizeProps)((0,r.createVNode)(1,"td",(0,o.classes)(["Table__cell",n&&"Table__cell--collapsing",c&&"Table__cell--header",t,(0,i.computeBoxClassName)(e)]),null,1,Object.assign({},(0,i.computeBoxProps)(u))))};t.TableCell=l,l.defaultHooks=o.pureComponentHooks,c.Row=u,c.Cell=l},function(e,t,n){"use strict";t.__esModule=!0,t.NumberInput=void 0;var r=n(1),o=n(34),i=n(9),a=n(120),c=n(15);var u=function(e){var t,n;function u(t){var n;n=e.call(this,t)||this;var i=t.value;return n.inputRef=(0,r.createRef)(),n.state={value:i,dragging:!1,editing:!1,internalValue:null,origin:null,suppressingFlicker:!1},n.flickerTimer=null,n.suppressFlicker=function(){var e=n.props.suppressFlicker;e>0&&(n.setState({suppressingFlicker:!0}),clearTimeout(n.flickerTimer),n.flickerTimer=setTimeout((function(){return n.setState({suppressingFlicker:!1})}),e))},n.handleDragStart=function(e){var t=n.props.value;n.state.editing||(document.body.style["pointer-events"]="none",n.ref=e.target,n.setState({dragging:!1,origin:e.screenY,value:t,internalValue:t}),n.timer=setTimeout((function(){n.setState({dragging:!0})}),250),n.dragInterval=setInterval((function(){var t=n.state,r=t.dragging,o=t.value,i=n.props.onDrag;r&&i&&i(e,o)}),500),document.addEventListener("mousemove",n.handleDragMove),document.addEventListener("mouseup",n.handleDragEnd))},n.handleDragMove=function(e){var t=n.props,r=t.minValue,i=t.maxValue,a=t.step,c=t.stepPixelSize;n.setState((function(t){var n=Object.assign({},t),u=n.origin-e.screenY;if(t.dragging){var l=Number.isFinite(r)?r%a:0;n.internalValue=(0,o.clamp)(n.internalValue+u*a/c,r-a,i+a),n.value=(0,o.clamp)(n.internalValue-n.internalValue%a+l,r,i),n.origin=e.screenY}else Math.abs(u)>4&&(n.dragging=!0);return n}))},n.handleDragEnd=function(e){var t=n.props,r=t.onChange,o=t.onDrag,i=n.state,a=i.dragging,c=i.value,u=i.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(n.timer),clearInterval(n.dragInterval),n.setState({dragging:!1,editing:!a,origin:null}),document.removeEventListener("mousemove",n.handleDragMove),document.removeEventListener("mouseup",n.handleDragEnd),a)n.suppressFlicker(),r&&r(e,c),o&&o(e,c);else if(n.inputRef){var l=n.inputRef.current;l.value=u;try{l.focus(),l.select()}catch(s){}}},n}return n=e,(t=u).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,u.prototype.render=function(){var e=this,t=this.state,n=t.dragging,u=t.editing,l=t.value,s=t.suppressingFlicker,d=this.props,f=d.className,p=d.fluid,m=d.animated,h=d.value,v=d.unit,g=d.minValue,b=d.maxValue,y=d.height,C=d.width,N=d.lineHeight,x=d.fontSize,V=d.format,w=d.onChange,_=d.onDrag,k=h;(n||s)&&(k=l);var S=function(e){return(0,r.createVNode)(1,"div","NumberInput__content",e+(v?" "+v:""),0,{unselectable:Byond.IS_LTE_IE8})},E=m&&!n&&!s&&(0,r.createComponentVNode)(2,a.AnimatedNumber,{value:k,format:V,children:S})||S(V?V(k):k);return(0,r.createComponentVNode)(2,c.Box,{className:(0,i.classes)(["NumberInput",p&&"NumberInput--fluid",f]),minWidth:C,minHeight:y,lineHeight:N,fontSize:x,onMouseDown:this.handleDragStart,children:[(0,r.createVNode)(1,"div","NumberInput__barContainer",(0,r.createVNode)(1,"div","NumberInput__bar",null,1,{style:{height:(0,o.clamp)((k-g)/(b-g)*100,0,100)+"%"}}),2),E,(0,r.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:u?undefined:"none",height:y,"line-height":N,"font-size":x},onBlur:function(t){if(u){var n=(0,o.clamp)(t.target.value,g,b);e.setState({editing:!1,value:n}),e.suppressFlicker(),w&&w(t,n),_&&_(t,n)}},onKeyDown:function(t){if(13===t.keyCode){var n=(0,o.clamp)(t.target.value,g,b);return e.setState({editing:!1,value:n}),e.suppressFlicker(),w&&w(t,n),void(_&&_(t,n))}27!==t.keyCode||e.setState({editing:!1})}},null,this.inputRef)]})},u}(r.Component);t.NumberInput=u,u.defaultHooks=i.pureComponentHooks,u.defaultProps={minValue:-Infinity,maxValue:+Infinity,step:1,stepPixelSize:1,suppressFlicker:50}},function(e,t,n){"use strict";var r=n(5),o=n(2),i=n(88);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){"use strict";var r=n(3),o=n(89),i=r["__core-js_shared__"]||o("__core-js_shared__",{});e.exports=i},function(e,t,n){"use strict";var r=n(3),o=n(90),i=r.WeakMap;e.exports="function"==typeof i&&/native code/.test(o(i))},function(e,t,n){"use strict";var r=n(16),o=n(92),i=n(19),a=n(12);e.exports=function(e,t){for(var n=o(t),c=a.f,u=i.f,l=0;lu;)r(c,n=t[u++])&&(~i(l,n)||l.push(n));return l}},function(e,t,n){"use strict";var r=n(95);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){"use strict";var r=n(5),o=n(12),i=n(6),a=n(61);e.exports=r?Object.defineProperties:function(e,t){i(e);for(var n,r=a(t),c=r.length,u=0;c>u;)o.f(e,n=r[u++],t[n]);return e}},function(e,t,n){"use strict";var r=n(35);e.exports=r("document","documentElement")},function(e,t,n){"use strict";var r=n(23),o=n(46).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(t){return a.slice()}}(e):o(r(e))}},function(e,t,n){"use strict";var r=n(10);t.f=r},function(e,t,n){"use strict";var r=n(14),o=n(40),i=n(8),a=Math.min;e.exports=[].copyWithin||function(e,t){var n=r(this),c=i(n.length),u=o(e,c),l=o(t,c),s=arguments.length>2?arguments[2]:undefined,d=a((s===undefined?c:o(s,c))-l,c-u),f=1;for(l0;)l in n?n[u]=n[l]:delete n[u],u+=f,l+=f;return n}},function(e,t,n){"use strict";var r=n(51),o=n(8),i=n(47);e.exports=function a(e,t,n,c,u,l,s,d){for(var f,p=u,m=0,h=!!s&&i(s,d,3);m0&&r(f))p=a(e,t,f,o(f.length),p,l-1)-1;else{if(p>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[p]=f}p++}m++}return p}},function(e,t,n){"use strict";var r=n(6);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(a){var i=e["return"];throw i!==undefined&&r(i.call(e)),a}}},function(e,t,n){"use strict";var r=n(23),o=n(43),i=n(64),a=n(32),c=n(101),u=a.set,l=a.getterFor("Array Iterator");e.exports=c(Array,"Array",(function(e,t){u(this,{type:"Array Iterator",target:r(e),index:0,kind:t})}),(function(){var e=l(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=undefined,{value:undefined,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,n){"use strict";var r,o,i,a=n(33),c=n(27),u=n(16),l=n(10),s=n(37),d=l("iterator"),f=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(r=o):f=!0),r==undefined&&(r={}),s||u(r,d)||c(r,d,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:f}},function(e,t,n){"use strict";var r=n(4);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){"use strict";var r=n(23),o=n(28),i=n(8),a=n(38),c=n(22),u=Math.min,l=[].lastIndexOf,s=!!l&&1/[1].lastIndexOf(1,-0)<0,d=a("lastIndexOf"),f=c("indexOf",{ACCESSORS:!0,1:0}),p=s||!d||!f;e.exports=p?function(e){if(s)return l.apply(this,arguments)||0;var t=r(this),n=i(t.length),a=n-1;for(arguments.length>1&&(a=u(a,o(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in t&&t[a]===e)return a||0;return-1}:l},function(e,t,n){"use strict";var r=n(28),o=n(8);e.exports=function(e){if(e===undefined)return 0;var t=r(e),n=o(t);if(t!==n)throw RangeError("Wrong length or index");return n}},function(e,t,n){"use strict";var r=n(29),o=n(4),i=[].slice,a={},c=function(e,t,n){if(!(t in a)){for(var r=[],o=0;o1?arguments[1]:undefined,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!g(this,e)}}),i(s.prototype,n?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return v(this,0===e?0:e,t)}}:{add:function(e){return v(this,e=0===e?0:e,e)}}),d&&r(s.prototype,"size",{get:function(){return p(this).size}}),s},setStrong:function(e,t,n){var r=t+" Iterator",o=h(t),i=h(r);l(e,t,(function(e,t){m(this,{type:r,target:e,state:o(e),kind:t,last:undefined})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=undefined,{value:undefined,done:!0})}),n?"entries":"values",!n,!0),s(t)}}},function(e,t,n){"use strict";var r=Math.log;e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:r(1+e)}},function(e,t,n){"use strict";var r=n(4),o=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&o(e)===e}},function(e,t,n){"use strict";var r=n(3),o=n(54).trim,i=n(80),a=r.parseInt,c=/^[+-]?0[Xx]/,u=8!==a(i+"08")||22!==a(i+"0x16");e.exports=u?function(e,t){var n=o(String(e));return a(n,t>>>0||(c.test(n)?16:10))}:a},function(e,t,n){"use strict";var r=n(5),o=n(61),i=n(23),a=n(70).f,c=function(e){return function(t){for(var n,c=i(t),u=o(c),l=u.length,s=0,d=[];l>s;)n=u[s++],r&&!a.call(c,n)||d.push(e?[n,c[n]]:c[n]);return d}};e.exports={entries:c(!0),values:c(!1)}},function(e,t,n){"use strict";e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){"use strict";var r=n(3);e.exports=r.Promise},function(e,t,n){"use strict";var r=n(72);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},function(e,t,n){"use strict";var r,o,i,a,c,u,l,s,d=n(3),f=n(19).f,p=n(30),m=n(107).set,h=n(153),v=d.MutationObserver||d.WebKitMutationObserver,g=d.process,b=d.Promise,y="process"==p(g),C=f(d,"queueMicrotask"),N=C&&C.value;N||(r=function(){var e,t;for(y&&(e=g.domain)&&e.exit();o;){t=o.fn,o=o.next;try{t()}catch(n){throw o?a():i=undefined,n}}i=undefined,e&&e.enter()},y?a=function(){g.nextTick(r)}:v&&!h?(c=!0,u=document.createTextNode(""),new v(r).observe(u,{characterData:!0}),a=function(){u.data=c=!c}):b&&b.resolve?(l=b.resolve(undefined),s=l.then,a=function(){s.call(l,r)}):a=function(){m.call(d,r)}),e.exports=N||function(e){var t={fn:e,next:undefined};i&&(i.next=t),o||(o=t,a()),i=t}},function(e,t,n){"use strict";var r=n(6),o=n(4),i=n(156);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var r=n(29),o=function(e){var t,n;this.promise=new e((function(e,r){if(t!==undefined||n!==undefined)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},function(e,t,n){"use strict";var r=n(0),o=n(83);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(e,t,n){"use strict";var r=n(72);e.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(r)},function(e,t,n){"use strict";var r=n(351);e.exports=function(e,t){var n=r(e);if(n%t)throw RangeError("Wrong offset");return n}},function(e,t,n){"use strict";var r=n(14),o=n(8),i=n(99),a=n(98),c=n(47),u=n(7).aTypedArrayConstructor;e.exports=function(e){var t,n,l,s,d,f,p=r(e),m=arguments.length,h=m>1?arguments[1]:undefined,v=h!==undefined,g=i(p);if(g!=undefined&&!a(g))for(f=(d=g.call(p)).next,p=[];!(s=f.call(d)).done;)p.push(s.value);for(v&&m>2&&(h=c(h,arguments[2],2)),n=o(p.length),l=new(u(this))(n),t=0;n>t;t++)l[t]=v?h(p[t],t):p[t];return l}},function(e,t,n){"use strict";var r=n(65),o=n(50).getWeakData,i=n(6),a=n(4),c=n(53),u=n(67),l=n(18),s=n(16),d=n(32),f=d.set,p=d.getterFor,m=l.find,h=l.findIndex,v=0,g=function(e){return e.frozen||(e.frozen=new b)},b=function(){this.entries=[]},y=function(e,t){return m(e.entries,(function(e){return e[0]===t}))};b.prototype={get:function(e){var t=y(this,e);if(t)return t[1]},has:function(e){return!!y(this,e)},set:function(e,t){var n=y(this,e);n?n[1]=t:this.entries.push([e,t])},"delete":function(e){var t=h(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,l){var d=e((function(e,r){c(e,d,t),f(e,{type:t,id:v++,frozen:undefined}),r!=undefined&&u(r,e[l],e,n)})),m=p(t),h=function(e,t,n){var r=m(e),a=o(i(t),!0);return!0===a?g(r).set(t,n):a[r.id]=n,e};return r(d.prototype,{"delete":function(e){var t=m(this);if(!a(e))return!1;var n=o(e);return!0===n?g(t)["delete"](e):n&&s(n,t.id)&&delete n[t.id]},has:function(e){var t=m(this);if(!a(e))return!1;var n=o(e);return!0===n?g(t).has(e):n&&s(n,t.id)}}),r(d.prototype,n?{get:function(e){var t=m(this);if(a(e)){var n=o(e);return!0===n?g(t).get(e):n?n[t.id]:undefined}},set:function(e,t){return h(this,e,t)}}:{add:function(e){return h(this,e,!0)}}),d}}},function(e,t,n){"use strict";t.__esModule=!0,t.perf=void 0;var r={mark:function(e,t){0},measure:function(e,t){0}};t.perf=r},function(e,t,n){"use strict";t.__esModule=!0,t.setupHotReloading=t.sendLogEntry=void 0;t.sendLogEntry=function(e,t){};t.setupHotReloading=function(){0}},function(e,t,n){"use strict";t.__esModule=!0,t.resizeStartHandler=t.dragStartHandler=t.setupDrag=t.recallWindowGeometry=t.storeWindowGeometry=t.getScreenSize=t.getScreenPosition=t.setWindowSize=t.setWindowPosition=t.getWindowSize=t.getWindowPosition=t.setWindowKey=void 0;var r=n(409),o=n(410);function i(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(l){return void n(l)}c.done?t(u):Promise.resolve(u).then(r,o)}function a(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function c(e){i(a,r,o,c,u,"next",e)}function u(e){i(a,r,o,c,u,"throw",e)}c(undefined)}))}}var c,u,l,s,d,f=(0,n(36).createLogger)("drag"),p=window.__windowId__,m=!1,h=!1,v=[0,0];t.setWindowKey=function(e){p=e};var g=function(){return[window.screenLeft,window.screenTop]};t.getWindowPosition=g;var b=function(){return[window.innerWidth,window.innerHeight]};t.getWindowSize=b;var y=function(e){var t=(0,o.vecAdd)(e,v);return Byond.winset(window.__windowId__,{pos:t[0]+","+t[1]})};t.setWindowPosition=y;var C=function(e){return Byond.winset(window.__windowId__,{size:e[0]+"x"+e[1]})};t.setWindowSize=C;var N=function(){return[0-v[0],0-v[1]]};t.getScreenPosition=N;var x=function(){return[window.screen.availWidth,window.screen.availHeight]};t.getScreenSize=x;var V=function(e){f.log("storing geometry");var t={pos:g(),size:b()};r.storage.set(e,t);var n=function(e,t,n){void 0===n&&(n=50);for(var r,o=[t],i=0;iu&&(o[a]=u-t[a],i=!0)}return[i,o]};t.dragStartHandler=function(e){f.log("drag start"),m=!0,u=[window.screenLeft-e.screenX,window.screenTop-e.screenY],document.addEventListener("mousemove",E),document.addEventListener("mouseup",S),E(e)};var S=function I(e){f.log("drag end"),E(e),document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",I),m=!1,V(p)},E=function(e){m&&(e.preventDefault(),y((0,o.vecAdd)([e.screenX,e.screenY],u)))};t.resizeStartHandler=function(e,t){return function(n){l=[e,t],f.log("resize start",l),h=!0,u=[window.screenLeft-n.screenX,window.screenTop-n.screenY],s=[window.innerWidth,window.innerHeight],document.addEventListener("mousemove",L),document.addEventListener("mouseup",B),L(n)}};var B=function O(e){f.log("resize end",d),L(e),document.removeEventListener("mousemove",L),document.removeEventListener("mouseup",O),h=!1,V(p)},L=function(e){h&&(e.preventDefault(),(d=(0,o.vecAdd)(s,(0,o.vecMultiply)(l,(0,o.vecAdd)([e.screenX,e.screenY],(0,o.vecInverse)([window.screenLeft,window.screenTop]),u,[1,1]))))[0]=Math.max(d[0],150),d[1]=Math.max(d[1],50),C(d))}},function(e,t,n){"use strict";t.__esModule=!0,t.useDispatch=t.StoreProvider=t.createStore=void 0;var r=n(116),o=n(411),i=n(1),a=n(11),c=n(117),u=n(86),l=n(36),s=n(118);(0,l.createLogger)("store");t.createStore=function(){var e=(0,r.flow)([function(e,t){return void 0===e&&(e={}),e},(0,o.combineReducers)({debug:c.debugReducer,backend:a.backendReducer})]),t=[!1,s.assetMiddleware,u.hotKeyMiddleware,a.backendMiddleware];return(0,o.createStore)(e,o.applyMiddleware.apply(void 0,t.filter(Boolean)))};var d=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getChildContext=function(){return{store:this.props.store}},o.render=function(){return this.props.children},r}(i.Component);t.StoreProvider=d;t.useDispatch=function(e){return e.store.dispatch}},function(e,t,n){"use strict";t.__esModule=!0,t.Tooltip=void 0;var r=n(1),o=n(9);t.Tooltip=function(e){var t=e.content,n=e.position,i=void 0===n?"bottom":n,a="string"==typeof t&&t.length>35;return(0,r.createVNode)(1,"div",(0,o.classes)(["Tooltip",a&&"Tooltip--long",i&&"Tooltip--"+i]),null,1,{"data-tooltip":t})}},function(e,t,n){"use strict";t.__esModule=!0,t.Dimmer=void 0;var r=n(1),o=n(9),i=n(15);t.Dimmer=function(e){var t=e.className,n=e.children,a=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,["className","children"]);return(0,r.normalizeProps)((0,r.createComponentVNode)(2,i.Box,Object.assign({className:(0,o.classes)(["Dimmer"].concat(t))},a,{children:(0,r.createVNode)(1,"div","Dimmer__inner",n,0)})))}},function(e,t,n){"use strict";t.__esModule=!0,t.Divider=void 0;var r=n(1),o=n(9);t.Divider=function(e){var t=e.vertical,n=e.hidden;return(0,r.createVNode)(1,"div",(0,o.classes)(["Divider",n&&"Divider--hidden",t?"Divider--vertical":"Divider--horizontal"]))}},function(e,t,n){"use strict";t.__esModule=!0,t.FlexItem=t.computeFlexItemProps=t.Flex=t.computeFlexProps=void 0;var r=n(1),o=n(9),i=n(15);function a(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var c=function(e){var t=e.className,n=e.direction,r=e.wrap,i=e.align,c=e.alignContent,u=e.justify,l=e.inline,s=e.spacing,d=void 0===s?0:s,f=e.spacingPrecise,p=void 0===f?0:f,m=a(e,["className","direction","wrap","align","alignContent","justify","inline","spacing","spacingPrecise"]);return Object.assign({className:(0,o.classes)(["Flex",Byond.IS_LTE_IE10&&("column"===n?"Flex--iefix--column":"Flex--iefix"),l&&"Flex--inline",d>0&&"Flex--spacing--"+d,p>0&&"Flex--spacingPrecise--"+p,t]),style:Object.assign({},m.style,{"flex-direction":n,"flex-wrap":r,"align-items":i,"align-content":c,"justify-content":u})},m)};t.computeFlexProps=c;var u=function(e){return(0,r.normalizeProps)((0,r.createComponentVNode)(2,i.Box,Object.assign({},c(e))))};t.Flex=u,u.defaultHooks=o.pureComponentHooks;var l=function(e){var t=e.className,n=e.grow,r=e.order,c=e.shrink,u=e.basis,l=void 0===u?e.width:u,s=e.align,d=a(e,["className","grow","order","shrink","basis","align"]);return Object.assign({className:(0,o.classes)(["Flex__item",Byond.IS_LTE_IE10&&"Flex__item--iefix",t]),style:Object.assign({},d.style,{"flex-grow":n,"flex-shrink":c,"flex-basis":(0,i.unit)(l),order:r,"align-self":s})},d)};t.computeFlexItemProps=l;var s=function(e){return(0,r.normalizeProps)((0,r.createComponentVNode)(2,i.Box,Object.assign({},l(e))))};t.FlexItem=s,s.defaultHooks=o.pureComponentHooks,u.Item=s},function(e,t,n){"use strict";t.__esModule=!0,t.Window=void 0;var r=n(1),o=n(9),i=n(171),a=n(11),c=n(13),u=n(55),l=n(117),s=n(164),d=n(36),f=n(165),p=n(119);var m=(0,d.createLogger)("Window"),h=[400,600],v=function(e){var t,n;function c(){return e.apply(this,arguments)||this}n=e,(t=c).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var d=c.prototype;return d.componentDidMount=function(){var e=(0,a.useBackend)(this.context),t=e.config;if(!e.suspended){m.log("mounting");var n=Object.assign({size:h},t.window);this.props.width&&this.props.height&&(n.size=[this.props.width,this.props.height]),(0,s.setWindowKey)(t.window.key),(0,s.recallWindowGeometry)(t.window.key,n),(0,p.refocusLayout)()}},d.render=function(){var e,t=this.props,n=t.resizable,c=t.theme,d=t.title,h=t.children,v=(0,a.useBackend)(this.context),g=v.config,y=v.suspended,C=(0,l.useDebug)(this.context).debugLayout,N=(0,f.useDispatch)(this.context),x=null==(e=g.window)?void 0:e.fancy,V=g.user.observer?g.status=0||(o[n]=e[n]);return o}(e,["className","fitted","scrollable","children"]);return(0,r.normalizeProps)((0,r.createComponentVNode)(2,p.Layout.Content,Object.assign({scrollable:i,className:(0,o.classes)(["Window__content",t])},c,{children:n&&a||(0,r.createVNode)(1,"div","Window__contentPadding",a,0)})))};var g=function(e){switch(e){case u.UI_INTERACTIVE:return"good";case u.UI_UPDATE:return"average";case u.UI_DISABLED:default:return"bad"}},b=function(e,t){var n=e.className,a=e.title,u=e.status,l=e.fancy,s=e.onDragStart,d=e.onClose;(0,f.useDispatch)(t);return(0,r.createVNode)(1,"div",(0,o.classes)(["TitleBar",n]),[(0,r.createComponentVNode)(2,c.Icon,{className:"TitleBar__statusIcon",color:g(u),name:"eye"}),(0,r.createVNode)(1,"div","TitleBar__title","string"==typeof a&&a===a.toLowerCase()&&(0,i.toTitleCase)(a)||a,0),(0,r.createVNode)(1,"div","TitleBar__dragZone",null,1,{onMousedown:function(e){return l&&s(e)}}),!1,!!l&&(0,r.createVNode)(1,"div","TitleBar__close TitleBar__clickable",Byond.IS_LTE_IE8?"x":"\xd7",0,{onclick:d})],0)}},function(e,t,n){"use strict";function r(e){var t=0;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e)))return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n",apos:"'"};return e.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(/&(nbsp|amp|quot|lt|gt|apos);/g,(function(e,n){return t[n]})).replace(/&#?([0-9]+);/gi,(function(e,t){var n=parseInt(t,10);return String.fromCharCode(n)})).replace(/&#x?([0-9a-f]+);/gi,(function(e,t){var n=parseInt(t,16);return String.fromCharCode(n)}))};t.buildQueryString=function(e){return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")}},function(e,t,n){"use strict";t.__esModule=!0,t.CameraConsoleSearch=t.CameraConsoleContent=t.CameraConsole=void 0;var r=n(1),o=n(87),i=n(116),a=n(9),c=n(171),u=n(11),l=n(13),s=n(17),d=function(e,t,n){void 0===t&&(t=""),void 0===n&&(n="");var r=(0,c.createSearch)(t,(function(e){return e.name}));return(0,i.flow)([(0,o.filter)((function(e){return null==e?void 0:e.name})),t&&(0,o.filter)(r),n&&(0,o.filter)((function(e){return e.networks.includes(n)})),(0,o.sortBy)((function(e){return e.name}))])(e)};t.CameraConsole=function(e,t){return(0,r.createComponentVNode)(2,s.Window,{width:870,height:708,resizable:!0,children:(0,r.createComponentVNode)(2,f)})};var f=function(e,t){var n=(0,u.useBackend)(t),o=n.act,i=n.data,a=(n.config,i.mapRef),c=i.activeCamera,f=function(e,t){var n,r;if(!t)return[];var o=e.findIndex((function(e){return e.name===t.name}));return[null==(n=e[o-1])?void 0:n.name,null==(r=e[o+1])?void 0:r.name]}(d(i.cameras),c),m=f[0],h=f[1];return(0,r.createFragment)([(0,r.createVNode)(1,"div","CameraConsole__left",(0,r.createComponentVNode)(2,s.Window.Content,{scrollable:!0,children:(0,r.createComponentVNode)(2,p)}),2),(0,r.createVNode)(1,"div","CameraConsole__right",[(0,r.createVNode)(1,"div","CameraConsole__toolbar",[(0,r.createVNode)(1,"b",null,"Camera: ",16),c&&c.name||"\u2014"],0),(0,r.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,r.createComponentVNode)(2,l.Button,{icon:"chevron-left",disabled:!m,onClick:function(){return o("switch_camera",{name:m})}}),(0,r.createComponentVNode)(2,l.Button,{icon:"chevron-right",disabled:!h,onClick:function(){return o("switch_camera",{name:h})}})],4),(0,r.createComponentVNode)(2,l.ByondUi,{className:"CameraConsole__map",params:{id:a,type:"map"}})],4)],4)};t.CameraConsoleContent=f;var p=function(e,t){var n=(0,u.useBackend)(t),o=n.act,i=n.data,c=(0,u.useLocalState)(t,"searchText",""),f=c[0],p=c[1],m=(0,u.useLocalState)(t,"networkFilter",""),h=m[0],v=m[1],g=i.activeCamera,b=i.allNetworks;b.sort();var y=d(i.cameras,f,h);return(0,r.createFragment)([(0,r.createComponentVNode)(2,l.Input,{fluid:!0,mb:1,placeholder:"Search for a camera",onInput:function(e,t){return p(t)}}),(0,r.createComponentVNode)(2,l.Dropdown,{mb:1,width:"177px",options:b,placeholder:"No Filter",onSelected:function(e){return v(e)}}),(0,r.createComponentVNode)(2,l.Section,{children:y.map((function(e){return(0,r.createVNode)(1,"div",(0,a.classes)(["Button","Button--fluid","Button--color--transparent","Button--ellipsis",g&&e.name===g.name&&"Button--selected"]),e.name,0,{title:e.name,onClick:function(){(0,s.refocusLayout)(),o("switch_camera",{name:e.name})}},e.name)}))})],4)};t.CameraConsoleSearch=p},function(e,t,n){"use strict";t.__esModule=!0,t.BeakerContents=void 0;var r=n(1),o=n(13),i=n(439),a=function(e){var t=e.beakerLoaded,n=e.beakerContents,i=void 0===n?[]:n,a=e.buttons;return(0,r.createComponentVNode)(2,o.Box,{children:[!t&&(0,r.createComponentVNode)(2,o.Box,{color:"label",children:"No beaker loaded."})||0===i.length&&(0,r.createComponentVNode)(2,o.Box,{color:"label",children:"Beaker is empty."}),i.map((function(e,t){return(0,r.createComponentVNode)(2,o.Box,{width:"100%",children:[(0,r.createComponentVNode)(2,o.Box,{color:"label",display:"inline",verticalAlign:"middle",children:[(n=e.volume,n+" unit"+(1===n?"":"s"))," of ",e.name]}),!!a&&(0,r.createComponentVNode)(2,o.Box,{float:"right",display:"inline",children:a(e,t)}),(0,r.createComponentVNode)(2,o.Box,{clear:"both"})]},e.name);var n}))]})};t.BeakerContents=a,a.propTypes={beakerLoaded:i.bool,beakerContents:i.array,buttons:i.arrayOf(i.element)}},function(e,t,n){"use strict";t.__esModule=!0,t.CrewMonitorContent=t.CrewMonitor=void 0;var r=n(1),o=n(87),i=n(11),a=n(17),c=n(13),u=n(124);n(55);t.CrewMonitor=function(){return(0,r.createComponentVNode)(2,a.Window,{width:800,height:600,resizable:!0,children:(0,r.createComponentVNode)(2,a.Window.Content,{children:(0,r.createComponentVNode)(2,l)})})};var l=function(e,t){var n,a=(0,i.useBackend)(t),l=a.act,s=a.data,d=a.config,f=(0,i.useLocalState)(t,"tabIndex",0),p=f[0],m=f[1],h=(0,o.sortBy)((function(e){return e.name}))(s.crewmembers||[]),v=(0,i.useLocalState)(t,"number",1),g=v[0],b=v[1];return n=0===p?(0,r.createComponentVNode)(2,c.Table,{children:[(0,r.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,r.createComponentVNode)(2,c.Table.Cell,{children:"Name"}),(0,r.createComponentVNode)(2,c.Table.Cell,{children:"Status"}),(0,r.createComponentVNode)(2,c.Table.Cell,{children:"Location"})]}),h.map((function(e){return(0,r.createComponentVNode)(2,c.Table.Row,{children:[(0,r.createComponentVNode)(2,u.TableCell,{children:[e.name," (",e.assignment,")"]}),(0,r.createComponentVNode)(2,u.TableCell,{children:[(0,r.createComponentVNode)(2,c.Box,{inline:!0,color:e.dead?"red":"green",children:e.dead?"Deceased":"Living"}),e.sensor_type>=2?(0,r.createComponentVNode)(2,c.Box,{inline:!0,children:["(",(0,r.createComponentVNode)(2,c.Box,{inline:!0,color:"red",children:e.brute}),"|",(0,r.createComponentVNode)(2,c.Box,{inline:!0,color:"orange",children:e.fire}),"|",(0,r.createComponentVNode)(2,c.Box,{inline:!0,color:"green",children:e.tox}),"|",(0,r.createComponentVNode)(2,c.Box,{inline:!0,color:"blue",children:e.oxy}),")"]}):null]}),(0,r.createComponentVNode)(2,u.TableCell,{children:3===e.sensor_type?s.isAI?(0,r.createComponentVNode)(2,c.Button,{fluid:!0,icon:"location-arrow",content:e.area+" ("+e.x+", "+e.y+")",onClick:function(){return l("track",{track:e.ref})}}):e.area+" ("+e.x+", "+e.y+", "+e.z+")":"Not Available"})]},e.name)}))]}):1===p?(0,r.createComponentVNode)(2,c.Box,{textAlign:"center",children:["Zoom Level:",(0,r.createComponentVNode)(2,c.NumberInput,{animated:!0,width:"40px",step:.5,stepPixelSize:"5",value:g,minValue:1,maxValue:8,onChange:function(e,t){return b(t)}}),"Z-Level:",s.map_levels.sort((function(e,t){return Number(e)-Number(t)})).map((function(e){return(0,r.createComponentVNode)(2,c.Button,{selected:~~e==~~d.mapZLevel,content:e,onClick:function(){l("setZLevel",{mapZLevel:e})}},e)})),(0,r.createComponentVNode)(2,c.NanoMap,{zoom:g,children:h.filter((function(e){return 3===e.sensor_type&&~~e.realZ==~~d.mapZLevel})).map((function(e){return(0,r.createComponentVNode)(2,c.NanoMap.Marker,{x:e.x,y:e.y,zoom:g,icon:"circle",tooltip:e.name,color:e.dead?"red":"green"},e.ref)}))})]}):"ERROR",(0,r.createFragment)([(0,r.createComponentVNode)(2,c.Tabs,{children:[(0,r.createComponentVNode)(2,c.Tabs.Tab,{selected:0===p,onClick:function(){return m(0)},children:[(0,r.createComponentVNode)(2,c.Icon,{name:"table"})," Data View"]},"DataView"),(0,r.createComponentVNode)(2,c.Tabs.Tab,{selected:1===p,onClick:function(){return m(1)},children:[(0,r.createComponentVNode)(2,c.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,r.createComponentVNode)(2,c.Box,{m:2,children:n})],4)};t.CrewMonitorContent=l},function(e,t,n){e.exports=n(176)},function(e,t,n){"use strict";n(177),n(178),n(179),n(180),n(181),n(182),n(183),n(184),n(185),n(186),n(187),n(188),n(189),n(190),n(191),n(192),n(193),n(194),n(195),n(196),n(197),n(198),n(199),n(200),n(202),n(204),n(205),n(206),n(140),n(208),n(209),n(210),n(211),n(212),n(213),n(214),n(215),n(216),n(217),n(218),n(219),n(220),n(221),n(223),n(224),n(225),n(226),n(227),n(229),n(230),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(242),n(243),n(244),n(245),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(254),n(255),n(256),n(257),n(258),n(259),n(261),n(262),n(263),n(264),n(265),n(266),n(268),n(269),n(271),n(273),n(274),n(275),n(276),n(277),n(278),n(279),n(280),n(281),n(282),n(283),n(284),n(285),n(286),n(287),n(288),n(289),n(290),n(291),n(292),n(293),n(294),n(295),n(297),n(298),n(299),n(302),n(303),n(304),n(305),n(306),n(307),n(308),n(309),n(310),n(311),n(312),n(313),n(314),n(315),n(316),n(157),n(317),n(318),n(319),n(320),n(321),n(322),n(323),n(324),n(325),n(326),n(327),n(328),n(329),n(330),n(331),n(332),n(333),n(334),n(335),n(336),n(337),n(338),n(339),n(340),n(341),n(342),n(343),n(344),n(345),n(346),n(347),n(348),n(349),n(350),n(352),n(353),n(354),n(355),n(356),n(357),n(358),n(359),n(360),n(361),n(362),n(363),n(364),n(365),n(366),n(367),n(368),n(369),n(370),n(371),n(372),n(373),n(374),n(375),n(376),n(377),n(378),n(379),n(380),n(381),n(382),n(383),n(384),n(385),n(386),n(387),n(388),n(389);var r=n(1);n(391),n(392),n(393),n(394),n(395),n(396),n(397),n(398),n(399),n(400),n(401),n(402),n(403),n(404),n(405);var o=n(162),i=(n(163),n(11)),a=n(164),c=n(36),u=n(165); /** * @file * @copyright 2020 Aleksej Komarov * @license MIT */ -o.perf.mark("inception",window.__inception__),o.perf.mark("init");var l,s=(0,u.createStore)(),d=!0,f=function(){for(s.subscribe((function(){!function(){o.perf.mark("render/start");var e=s.getState(),t=(0,i.selectBackend)(e),f=t.suspended;t.assets;d&&(c.logger.log("initial render",e),"recycled"!==d&&(0,a.setupDrag)());var p=(0,n(413).getRoutedComponent)(e),m=(0,r.createComponentVNode)(2,u.StoreProvider,{store:s,children:(0,r.createComponentVNode)(2,p)});l||(l=document.getElementById("react-root")),(0,r.render)(m,l),f||(o.perf.mark("render/finish"),d&&(d=!1))}()})),window.update=function(e){var t=(0,i.selectBackend)(s.getState()).suspended,n="string"==typeof e?function(e){var t=function(e,t){return"object"==typeof t&&null!==t&&t.__number__?parseFloat(t.__number__):t};Byond.IS_LTE_IE8&&(t=undefined);try{return JSON.parse(e,t)}catch(r){c.logger.log(r),c.logger.log("What we got:",e);var n=r&&r.message;throw new Error("JSON parsing error: "+n)}}(e):e;c.logger.debug("received message '"+(null==n?void 0:n.type)+"'");var r=n.type,o=n.payload;if("update"===r)return window.__ref__=o.config.ref,t&&(c.logger.log("resuming"),d="recycled"),void s.dispatch((0,i.backendUpdate)(o));"suspend"!==r?"ping"!==r?s.dispatch(n):(0,i.sendMessage)({type:"pingReply"}):s.dispatch((0,i.backendSuspendSuccess)())};;){var e=window.__updateQueue__.shift();if(!e)break;window.update(e)}};window.__logger__={fatal:function(e,t){var n=(0,i.selectBackend)(s.getState()),r={config:n.config,suspended:n.suspended,suspending:n.suspending};return c.logger.log("FatalError:",e||t),c.logger.log("State:",r),t+="\nState: "+JSON.stringify(r)}},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",f):f()},function(e,t,n){"use strict";var r=n(0),o=n(3),i=n(35),a=n(37),c=n(5),u=n(95),l=n(132),s=n(2),d=n(16),f=n(51),p=n(4),m=n(6),h=n(14),v=n(23),g=n(31),b=n(45),y=n(41),C=n(61),N=n(46),x=n(135),V=n(94),w=n(19),_=n(12),k=n(70),S=n(27),E=n(21),B=n(91),L=n(71),I=n(58),O=n(57),T=n(10),A=n(136),M=n(24),j=n(42),P=n(32),F=n(18).forEach,D=L("hidden"),R=T("toPrimitive"),z=P.set,K=P.getterFor("Symbol"),U=Object.prototype,W=o.Symbol,Y=i("JSON","stringify"),H=w.f,$=_.f,G=x.f,q=k.f,X=B("symbols"),Q=B("op-symbols"),J=B("string-to-symbol-registry"),Z=B("symbol-to-string-registry"),ee=B("wks"),te=o.QObject,ne=!te||!te.prototype||!te.prototype.findChild,re=c&&s((function(){return 7!=y($({},"a",{get:function(){return $(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=H(U,t);r&&delete U[t],$(e,t,n),r&&e!==U&&$(U,t,r)}:$,oe=function(e,t){var n=X[e]=y(W.prototype);return z(n,{type:"Symbol",tag:e,description:t}),c||(n.description=t),n},ie=l?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof W},ae=function(e,t,n){e===U&&ae(Q,t,n),m(e);var r=g(t,!0);return m(n),d(X,r)?(n.enumerable?(d(e,D)&&e[D][r]&&(e[D][r]=!1),n=y(n,{enumerable:b(0,!1)})):(d(e,D)||$(e,D,b(1,{})),e[D][r]=!0),re(e,r,n)):$(e,r,n)},ce=function(e,t){m(e);var n=v(t),r=C(n).concat(fe(n));return F(r,(function(t){c&&!le.call(n,t)||ae(e,t,n[t])})),e},ue=function(e,t){return t===undefined?y(e):ce(y(e),t)},le=function(e){var t=g(e,!0),n=q.call(this,t);return!(this===U&&d(X,t)&&!d(Q,t))&&(!(n||!d(this,t)||!d(X,t)||d(this,D)&&this[D][t])||n)},se=function(e,t){var n=v(e),r=g(t,!0);if(n!==U||!d(X,r)||d(Q,r)){var o=H(n,r);return!o||!d(X,r)||d(n,D)&&n[D][r]||(o.enumerable=!0),o}},de=function(e){var t=G(v(e)),n=[];return F(t,(function(e){d(X,e)||d(I,e)||n.push(e)})),n},fe=function(e){var t=e===U,n=G(t?Q:v(e)),r=[];return F(n,(function(e){!d(X,e)||t&&!d(U,e)||r.push(X[e])})),r};(u||(E((W=function(){if(this instanceof W)throw TypeError("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==undefined?String(arguments[0]):undefined,t=O(e),n=function r(e){this===U&&r.call(Q,e),d(this,D)&&d(this[D],t)&&(this[D][t]=!1),re(this,t,b(1,e))};return c&&ne&&re(U,t,{configurable:!0,set:n}),oe(t,e)}).prototype,"toString",(function(){return K(this).tag})),E(W,"withoutSetter",(function(e){return oe(O(e),e)})),k.f=le,_.f=ae,w.f=se,N.f=x.f=de,V.f=fe,A.f=function(e){return oe(T(e),e)},c&&($(W.prototype,"description",{configurable:!0,get:function(){return K(this).description}}),a||E(U,"propertyIsEnumerable",le,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:W}),F(C(ee),(function(e){M(e)})),r({target:"Symbol",stat:!0,forced:!u},{"for":function(e){var t=String(e);if(d(J,t))return J[t];var n=W(t);return J[t]=n,Z[n]=t,n},keyFor:function(e){if(!ie(e))throw TypeError(e+" is not a symbol");if(d(Z,e))return Z[e]},useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!c},{create:ue,defineProperty:ae,defineProperties:ce,getOwnPropertyDescriptor:se}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:de,getOwnPropertySymbols:fe}),r({target:"Object",stat:!0,forced:s((function(){V.f(1)}))},{getOwnPropertySymbols:function(e){return V.f(h(e))}}),Y)&&r({target:"JSON",stat:!0,forced:!u||s((function(){var e=W();return"[null]"!=Y([e])||"{}"!=Y({a:e})||"{}"!=Y(Object(e))}))},{stringify:function(e,t,n){for(var r,o=[e],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=t,(p(t)||e!==undefined)&&!ie(e))return f(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!ie(t))return t}),o[1]=t,Y.apply(null,o)}});W.prototype[R]||S(W.prototype,R,W.prototype.valueOf),j(W,"Symbol"),I[D]=!0},function(e,t,n){"use strict";var r=n(0),o=n(5),i=n(3),a=n(16),c=n(4),u=n(12).f,l=n(129),s=i.Symbol;if(o&&"function"==typeof s&&(!("description"in s.prototype)||s().description!==undefined)){var d={},f=function(){var e=arguments.length<1||arguments[0]===undefined?undefined:String(arguments[0]),t=this instanceof f?new s(e):e===undefined?s():s(e);return""===e&&(d[t]=!0),t};l(f,s);var p=f.prototype=s.prototype;p.constructor=f;var m=p.toString,h="Symbol(test)"==String(s("test")),v=/^Symbol\((.*)\)[^)]+$/;u(p,"description",{configurable:!0,get:function(){var e=c(this)?this.valueOf():this,t=m.call(e);if(a(d,e))return"";var n=h?t.slice(7,-1):t.replace(v,"$1");return""===n?undefined:n}}),r({global:!0,forced:!0},{Symbol:f})}},function(e,t,n){"use strict";n(24)("asyncIterator")},function(e,t,n){"use strict";n(24)("hasInstance")},function(e,t,n){"use strict";n(24)("isConcatSpreadable")},function(e,t,n){"use strict";n(24)("iterator")},function(e,t,n){"use strict";n(24)("match")},function(e,t,n){"use strict";n(24)("replace")},function(e,t,n){"use strict";n(24)("search")},function(e,t,n){"use strict";n(24)("species")},function(e,t,n){"use strict";n(24)("split")},function(e,t,n){"use strict";n(24)("toPrimitive")},function(e,t,n){"use strict";n(24)("toStringTag")},function(e,t,n){"use strict";n(24)("unscopables")},function(e,t,n){"use strict";var r=n(0),o=n(2),i=n(51),a=n(4),c=n(14),u=n(8),l=n(48),s=n(62),d=n(63),f=n(10),p=n(96),m=f("isConcatSpreadable"),h=p>=51||!o((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),v=d("concat"),g=function(e){if(!a(e))return!1;var t=e[m];return t!==undefined?!!t:i(e)};r({target:"Array",proto:!0,forced:!h||!v},{concat:function(e){var t,n,r,o,i,a=c(this),d=s(a,0),f=0;for(t=-1,r=arguments.length;t9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n=9007199254740991)throw TypeError("Maximum allowed index exceeded");l(d,f++,i)}return d.length=f,d}})},function(e,t,n){"use strict";var r=n(0),o=n(137),i=n(43);r({target:"Array",proto:!0},{copyWithin:o}),i("copyWithin")},function(e,t,n){"use strict";var r=n(0),o=n(18).every,i=n(38),a=n(22),c=i("every"),u=a("every");r({target:"Array",proto:!0,forced:!c||!u},{every:function(e){return o(this,e,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var r=n(0),o=n(97),i=n(43);r({target:"Array",proto:!0},{fill:o}),i("fill")},function(e,t,n){"use strict";var r=n(0),o=n(18).filter,i=n(63),a=n(22),c=i("filter"),u=a("filter");r({target:"Array",proto:!0,forced:!c||!u},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var r=n(0),o=n(18).find,i=n(43),a=n(22),c=!0,u=a("find");"find"in[]&&Array(1).find((function(){c=!1})),r({target:"Array",proto:!0,forced:c||!u},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:undefined)}}),i("find")},function(e,t,n){"use strict";var r=n(0),o=n(18).findIndex,i=n(43),a=n(22),c=!0,u=a("findIndex");"findIndex"in[]&&Array(1).findIndex((function(){c=!1})),r({target:"Array",proto:!0,forced:c||!u},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:undefined)}}),i("findIndex")},function(e,t,n){"use strict";var r=n(0),o=n(138),i=n(14),a=n(8),c=n(28),u=n(62);r({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:undefined,t=i(this),n=a(t.length),r=u(t,0);return r.length=o(r,t,t,n,0,e===undefined?1:c(e)),r}})},function(e,t,n){"use strict";var r=n(0),o=n(138),i=n(14),a=n(8),c=n(29),u=n(62);r({target:"Array",proto:!0},{flatMap:function(e){var t,n=i(this),r=a(n.length);return c(e),(t=u(n,0)).length=o(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:undefined),t}})},function(e,t,n){"use strict";var r=n(0),o=n(201);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(e,t,n){"use strict";var r=n(18).forEach,o=n(38),i=n(22),a=o("forEach"),c=i("forEach");e.exports=a&&c?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:undefined)}},function(e,t,n){"use strict";var r=n(0),o=n(203);r({target:"Array",stat:!0,forced:!n(74)((function(e){Array.from(e)}))},{from:o})},function(e,t,n){"use strict";var r=n(47),o=n(14),i=n(139),a=n(98),c=n(8),u=n(48),l=n(99);e.exports=function(e){var t,n,s,d,f,p,m=o(e),h="function"==typeof this?this:Array,v=arguments.length,g=v>1?arguments[1]:undefined,b=g!==undefined,y=l(m),C=0;if(b&&(g=r(g,v>2?arguments[2]:undefined,2)),y==undefined||h==Array&&a(y))for(n=new h(t=c(m.length));t>C;C++)p=b?g(m[C],C):m[C],u(n,C,p);else for(f=(d=y.call(m)).next,n=new h;!(s=f.call(d)).done;C++)p=b?i(d,g,[s.value,C],!0):s.value,u(n,C,p);return n.length=C,n}},function(e,t,n){"use strict";var r=n(0),o=n(59).includes,i=n(43);r({target:"Array",proto:!0,forced:!n(22)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:undefined)}}),i("includes")},function(e,t,n){"use strict";var r=n(0),o=n(59).indexOf,i=n(38),a=n(22),c=[].indexOf,u=!!c&&1/[1].indexOf(1,-0)<0,l=i("indexOf"),s=a("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:u||!l||!s},{indexOf:function(e){return u?c.apply(this,arguments)||0:o(this,e,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";n(0)({target:"Array",stat:!0},{isArray:n(51)})},function(e,t,n){"use strict";var r=n(141).IteratorPrototype,o=n(41),i=n(45),a=n(42),c=n(64),u=function(){return this};e.exports=function(e,t,n){var l=t+" Iterator";return e.prototype=o(r,{next:i(1,n)}),a(e,l,!1,!0),c[l]=u,e}},function(e,t,n){"use strict";var r=n(0),o=n(56),i=n(23),a=n(38),c=[].join,u=o!=Object,l=a("join",",");r({target:"Array",proto:!0,forced:u||!l},{join:function(e){return c.call(i(this),e===undefined?",":e)}})},function(e,t,n){"use strict";var r=n(0),o=n(143);r({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},function(e,t,n){"use strict";var r=n(0),o=n(18).map,i=n(63),a=n(22),c=i("map"),u=a("map");r({target:"Array",proto:!0,forced:!c||!u},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var r=n(0),o=n(2),i=n(48);r({target:"Array",stat:!0,forced:o((function(){function e(){}return!(Array.of.call(e)instanceof e)}))},{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)i(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){"use strict";var r=n(0),o=n(75).left,i=n(38),a=n(22),c=i("reduce"),u=a("reduce",{1:0});r({target:"Array",proto:!0,forced:!c||!u},{reduce:function(e){return o(this,e,arguments.length,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var r=n(0),o=n(75).right,i=n(38),a=n(22),c=i("reduceRight"),u=a("reduce",{1:0});r({target:"Array",proto:!0,forced:!c||!u},{reduceRight:function(e){return o(this,e,arguments.length,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var r=n(0),o=n(4),i=n(51),a=n(40),c=n(8),u=n(23),l=n(48),s=n(10),d=n(63),f=n(22),p=d("slice"),m=f("slice",{ACCESSORS:!0,0:0,1:2}),h=s("species"),v=[].slice,g=Math.max;r({target:"Array",proto:!0,forced:!p||!m},{slice:function(e,t){var n,r,s,d=u(this),f=c(d.length),p=a(e,f),m=a(t===undefined?f:t,f);if(i(d)&&("function"!=typeof(n=d.constructor)||n!==Array&&!i(n.prototype)?o(n)&&null===(n=n[h])&&(n=undefined):n=undefined,n===Array||n===undefined))return v.call(d,p,m);for(r=new(n===undefined?Array:n)(g(m-p,0)),s=0;p1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var r=n(0),o=n(29),i=n(14),a=n(2),c=n(38),u=[],l=u.sort,s=a((function(){u.sort(undefined)})),d=a((function(){u.sort(null)})),f=c("sort");r({target:"Array",proto:!0,forced:s||!d||!f},{sort:function(e){return e===undefined?l.call(i(this)):l.call(i(this),o(e))}})},function(e,t,n){"use strict";n(52)("Array")},function(e,t,n){"use strict";var r=n(0),o=n(40),i=n(28),a=n(8),c=n(14),u=n(62),l=n(48),s=n(63),d=n(22),f=s("splice"),p=d("splice",{ACCESSORS:!0,0:0,1:2}),m=Math.max,h=Math.min;r({target:"Array",proto:!0,forced:!f||!p},{splice:function(e,t){var n,r,s,d,f,p,v=c(this),g=a(v.length),b=o(e,g),y=arguments.length;if(0===y?n=r=0:1===y?(n=0,r=g-b):(n=y-2,r=h(m(i(t),0),g-b)),g+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(s=u(v,r),d=0;dg-r+n;d--)delete v[d-1]}else if(n>r)for(d=g-r;d>b;d--)p=d+n-1,(f=d+r-1)in v?v[p]=v[f]:delete v[p];for(d=0;d>1,h=23===t?o(2,-24)-o(2,-77):0,v=e<0||0===e&&1/e<0?1:0,g=0;for((e=r(e))!=e||e===1/0?(l=e!=e?1:0,u=p):(u=i(a(e)/c),e*(s=o(2,-u))<1&&(u--,s*=2),(e+=u+m>=1?h/s:h*o(2,1-m))*s>=2&&(u++,s/=2),u+m>=p?(l=0,u=p):u+m>=1?(l=(e*s-1)*o(2,t),u+=m):(l=e*o(2,m-1)*o(2,t),u=0));t>=8;d[g++]=255&l,l/=256,t-=8);for(u=u<0;d[g++]=255&u,u/=256,f-=8);return d[--g]|=128*v,d},unpack:function(e,t){var n,r=e.length,i=8*r-t-1,a=(1<>1,u=i-7,l=r-1,s=e[l--],d=127&s;for(s>>=7;u>0;d=256*d+e[l],l--,u-=8);for(n=d&(1<<-u)-1,d>>=-u,u+=t;u>0;n=256*n+e[l],l--,u-=8);if(0===d)d=1-c;else{if(d===a)return n?NaN:s?-1/0:1/0;n+=o(2,t),d-=c}return(s?-1:1)*n*o(2,d-t)}}},function(e,t,n){"use strict";var r=n(0),o=n(7);r({target:"ArrayBuffer",stat:!0,forced:!o.NATIVE_ARRAY_BUFFER_VIEWS},{isView:o.isView})},function(e,t,n){"use strict";var r=n(0),o=n(2),i=n(76),a=n(6),c=n(40),u=n(8),l=n(44),s=i.ArrayBuffer,d=i.DataView,f=s.prototype.slice;r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:o((function(){return!new s(2).slice(1,undefined).byteLength}))},{slice:function(e,t){if(f!==undefined&&t===undefined)return f.call(a(this),e);for(var n=a(this).byteLength,r=c(e,n),o=c(t===undefined?n:t,n),i=new(l(this,s))(u(o-r)),p=new d(this),m=new d(i),h=0;r9999?"+":"";return n+o(i(e),n?6:4,0)+"-"+o(this.getUTCMonth()+1,2,0)+"-"+o(this.getUTCDate(),2,0)+"T"+o(this.getUTCHours(),2,0)+":"+o(this.getUTCMinutes(),2,0)+":"+o(this.getUTCSeconds(),2,0)+"."+o(t,3,0)+"Z"}:u},function(e,t,n){"use strict";var r=n(0),o=n(2),i=n(14),a=n(31);r({target:"Date",proto:!0,forced:o((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(e){var t=i(this),n=a(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},function(e,t,n){"use strict";var r=n(27),o=n(231),i=n(10)("toPrimitive"),a=Date.prototype;i in a||r(a,i,o)},function(e,t,n){"use strict";var r=n(6),o=n(31);e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return o(r(this),"number"!==e)}},function(e,t,n){"use strict";var r=n(21),o=Date.prototype,i=o.toString,a=o.getTime;new Date(NaN)+""!="Invalid Date"&&r(o,"toString",(function(){var e=a.call(this);return e==e?i.call(this):"Invalid Date"}))},function(e,t,n){"use strict";n(0)({target:"Function",proto:!0},{bind:n(145)})},function(e,t,n){"use strict";var r=n(4),o=n(12),i=n(33),a=n(10)("hasInstance"),c=Function.prototype;a in c||o.f(c,a,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;for(;e=i(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,n){"use strict";var r=n(5),o=n(12).f,i=Function.prototype,a=i.toString,c=/^\s*function ([^ (]*)/;r&&!("name"in i)&&o(i,"name",{configurable:!0,get:function(){try{return a.call(this).match(c)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var r=n(3);n(42)(r.JSON,"JSON",!0)},function(e,t,n){"use strict";var r=n(77),o=n(146);e.exports=r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}}),o)},function(e,t,n){"use strict";var r=n(0),o=n(147),i=Math.acosh,a=Math.log,c=Math.sqrt,u=Math.LN2;r({target:"Math",stat:!0,forced:!i||710!=Math.floor(i(Number.MAX_VALUE))||i(Infinity)!=Infinity},{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?a(e)+u:o(e-1+c(e-1)*c(e+1))}})},function(e,t,n){"use strict";var r=n(0),o=Math.asinh,i=Math.log,a=Math.sqrt;r({target:"Math",stat:!0,forced:!(o&&1/o(0)>0)},{asinh:function c(e){return isFinite(e=+e)&&0!=e?e<0?-c(-e):i(e+a(e*e+1)):e}})},function(e,t,n){"use strict";var r=n(0),o=Math.atanh,i=Math.log;r({target:"Math",stat:!0,forced:!(o&&1/o(-0)<0)},{atanh:function(e){return 0==(e=+e)?e:i((1+e)/(1-e))/2}})},function(e,t,n){"use strict";var r=n(0),o=n(106),i=Math.abs,a=Math.pow;r({target:"Math",stat:!0},{cbrt:function(e){return o(e=+e)*a(i(e),1/3)}})},function(e,t,n){"use strict";var r=n(0),o=Math.floor,i=Math.log,a=Math.LOG2E;r({target:"Math",stat:!0},{clz32:function(e){return(e>>>=0)?31-o(i(e+.5)*a):32}})},function(e,t,n){"use strict";var r=n(0),o=n(79),i=Math.cosh,a=Math.abs,c=Math.E;r({target:"Math",stat:!0,forced:!i||i(710)===Infinity},{cosh:function(e){var t=o(a(e)-1)+1;return(t+1/(t*c*c))*(c/2)}})},function(e,t,n){"use strict";var r=n(0),o=n(79);r({target:"Math",stat:!0,forced:o!=Math.expm1},{expm1:o})},function(e,t,n){"use strict";n(0)({target:"Math",stat:!0},{fround:n(246)})},function(e,t,n){"use strict";var r=n(106),o=Math.abs,i=Math.pow,a=i(2,-52),c=i(2,-23),u=i(2,127)*(2-c),l=i(2,-126);e.exports=Math.fround||function(e){var t,n,i=o(e),s=r(e);return iu||n!=n?s*Infinity:s*n}},function(e,t,n){"use strict";var r=n(0),o=Math.hypot,i=Math.abs,a=Math.sqrt;r({target:"Math",stat:!0,forced:!!o&&o(Infinity,NaN)!==Infinity},{hypot:function(e,t){for(var n,r,o=0,c=0,u=arguments.length,l=0;c0?(r=n/l)*r:n;return l===Infinity?Infinity:l*a(o)}})},function(e,t,n){"use strict";var r=n(0),o=n(2),i=Math.imul;r({target:"Math",stat:!0,forced:o((function(){return-5!=i(4294967295,5)||2!=i.length}))},{imul:function(e,t){var n=+e,r=+t,o=65535&n,i=65535&r;return 0|o*i+((65535&n>>>16)*i+o*(65535&r>>>16)<<16>>>0)}})},function(e,t,n){"use strict";var r=n(0),o=Math.log,i=Math.LOG10E;r({target:"Math",stat:!0},{log10:function(e){return o(e)*i}})},function(e,t,n){"use strict";n(0)({target:"Math",stat:!0},{log1p:n(147)})},function(e,t,n){"use strict";var r=n(0),o=Math.log,i=Math.LN2;r({target:"Math",stat:!0},{log2:function(e){return o(e)/i}})},function(e,t,n){"use strict";n(0)({target:"Math",stat:!0},{sign:n(106)})},function(e,t,n){"use strict";var r=n(0),o=n(2),i=n(79),a=Math.abs,c=Math.exp,u=Math.E;r({target:"Math",stat:!0,forced:o((function(){return-2e-17!=Math.sinh(-2e-17)}))},{sinh:function(e){return a(e=+e)<1?(i(e)-i(-e))/2:(c(e-1)-c(-e-1))*(u/2)}})},function(e,t,n){"use strict";var r=n(0),o=n(79),i=Math.exp;r({target:"Math",stat:!0},{tanh:function(e){var t=o(e=+e),n=o(-e);return t==Infinity?1:n==Infinity?-1:(t-n)/(i(e)+i(-e))}})},function(e,t,n){"use strict";n(42)(Math,"Math",!0)},function(e,t,n){"use strict";var r=n(0),o=Math.ceil,i=Math.floor;r({target:"Math",stat:!0},{trunc:function(e){return(e>0?i:o)(e)}})},function(e,t,n){"use strict";var r=n(5),o=n(3),i=n(60),a=n(21),c=n(16),u=n(30),l=n(78),s=n(31),d=n(2),f=n(41),p=n(46).f,m=n(19).f,h=n(12).f,v=n(54).trim,g=o.Number,b=g.prototype,y="Number"==u(f(b)),C=function(e){var t,n,r,o,i,a,c,u,l=s(e,!1);if("string"==typeof l&&l.length>2)if(43===(t=(l=v(l)).charCodeAt(0))||45===t){if(88===(n=l.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(l.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+l}for(a=(i=l.slice(2)).length,c=0;co)return NaN;return parseInt(i,r)}return+l};if(i("Number",!g(" 0o1")||!g("0b1")||g("+0x1"))){for(var N,x=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof x&&(y?d((function(){b.valueOf.call(n)})):"Number"!=u(n))?l(new g(C(t)),n,x):C(t)},V=r?p(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;V.length>w;w++)c(g,N=V[w])&&!c(x,N)&&h(x,N,m(g,N));x.prototype=b,b.constructor=x,a(o,"Number",x)}},function(e,t,n){"use strict";n(0)({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},function(e,t,n){"use strict";n(0)({target:"Number",stat:!0},{isFinite:n(260)})},function(e,t,n){"use strict";var r=n(3).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&r(e)}},function(e,t,n){"use strict";n(0)({target:"Number",stat:!0},{isInteger:n(148)})},function(e,t,n){"use strict";n(0)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},function(e,t,n){"use strict";var r=n(0),o=n(148),i=Math.abs;r({target:"Number",stat:!0},{isSafeInteger:function(e){return o(e)&&i(e)<=9007199254740991}})},function(e,t,n){"use strict";n(0)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){"use strict";n(0)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){"use strict";var r=n(0),o=n(267);r({target:"Number",stat:!0,forced:Number.parseFloat!=o},{parseFloat:o})},function(e,t,n){"use strict";var r=n(3),o=n(54).trim,i=n(80),a=r.parseFloat,c=1/a(i+"-0")!=-Infinity;e.exports=c?function(e){var t=o(String(e)),n=a(t);return 0===n&&"-"==t.charAt(0)?-0:n}:a},function(e,t,n){"use strict";var r=n(0),o=n(149);r({target:"Number",stat:!0,forced:Number.parseInt!=o},{parseInt:o})},function(e,t,n){"use strict";var r=n(0),o=n(28),i=n(270),a=n(105),c=n(2),u=1..toFixed,l=Math.floor,s=function d(e,t,n){return 0===t?n:t%2==1?d(e,t-1,n*e):d(e*e,t/2,n)};r({target:"Number",proto:!0,forced:u&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!c((function(){u.call({})}))},{toFixed:function(e){var t,n,r,c,u=i(this),d=o(e),f=[0,0,0,0,0,0],p="",m="0",h=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*f[n],f[n]=r%1e7,r=l(r/1e7)},v=function(e){for(var t=6,n=0;--t>=0;)n+=f[t],f[t]=l(n/e),n=n%e*1e7},g=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==f[e]){var n=String(f[e]);t=""===t?n:t+a.call("0",7-n.length)+n}return t};if(d<0||d>20)throw RangeError("Incorrect fraction digits");if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(p="-",u=-u),u>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(u*s(2,69,1))-69)<0?u*s(2,-t,1):u/s(2,t,1),n*=4503599627370496,(t=52-t)>0){for(h(0,n),r=d;r>=7;)h(1e7,0),r-=7;for(h(s(10,r,1),0),r=t-1;r>=23;)v(1<<23),r-=23;v(1<0?p+((c=m.length)<=d?"0."+a.call("0",d-c)+m:m.slice(0,c-d)+"."+m.slice(c-d)):p+m}})},function(e,t,n){"use strict";var r=n(30);e.exports=function(e){if("number"!=typeof e&&"Number"!=r(e))throw TypeError("Incorrect invocation");return+e}},function(e,t,n){"use strict";var r=n(0),o=n(272);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(e,t,n){"use strict";var r=n(5),o=n(2),i=n(61),a=n(94),c=n(70),u=n(14),l=n(56),s=Object.assign,d=Object.defineProperty;e.exports=!s||o((function(){if(r&&1!==s({b:1},s(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=s({},e)[n]||"abcdefghijklmnopqrst"!=i(s({},t)).join("")}))?function(e,t){for(var n=u(e),o=arguments.length,s=1,d=a.f,f=c.f;o>s;)for(var p,m=l(arguments[s++]),h=d?i(m).concat(d(m)):i(m),v=h.length,g=0;v>g;)p=h[g++],r&&!f.call(m,p)||(n[p]=m[p]);return n}:s},function(e,t,n){"use strict";n(0)({target:"Object",stat:!0,sham:!n(5)},{create:n(41)})},function(e,t,n){"use strict";var r=n(0),o=n(5),i=n(81),a=n(14),c=n(29),u=n(12);o&&r({target:"Object",proto:!0,forced:i},{__defineGetter__:function(e,t){u.f(a(this),e,{get:c(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";var r=n(0),o=n(5);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperties:n(133)})},function(e,t,n){"use strict";var r=n(0),o=n(5);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:n(12).f})},function(e,t,n){"use strict";var r=n(0),o=n(5),i=n(81),a=n(14),c=n(29),u=n(12);o&&r({target:"Object",proto:!0,forced:i},{__defineSetter__:function(e,t){u.f(a(this),e,{set:c(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";var r=n(0),o=n(150).entries;r({target:"Object",stat:!0},{entries:function(e){return o(e)}})},function(e,t,n){"use strict";var r=n(0),o=n(66),i=n(2),a=n(4),c=n(50).onFreeze,u=Object.freeze;r({target:"Object",stat:!0,forced:i((function(){u(1)})),sham:!o},{freeze:function(e){return u&&a(e)?u(c(e)):e}})},function(e,t,n){"use strict";var r=n(0),o=n(67),i=n(48);r({target:"Object",stat:!0},{fromEntries:function(e){var t={};return o(e,(function(e,n){i(t,e,n)}),undefined,!0),t}})},function(e,t,n){"use strict";var r=n(0),o=n(2),i=n(23),a=n(19).f,c=n(5),u=o((function(){a(1)}));r({target:"Object",stat:!0,forced:!c||u,sham:!c},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},function(e,t,n){"use strict";var r=n(0),o=n(5),i=n(92),a=n(23),c=n(19),u=n(48);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),o=c.f,l=i(r),s={},d=0;l.length>d;)(n=o(r,t=l[d++]))!==undefined&&u(s,t,n);return s}})},function(e,t,n){"use strict";var r=n(0),o=n(2),i=n(135).f;r({target:"Object",stat:!0,forced:o((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i})},function(e,t,n){"use strict";var r=n(0),o=n(2),i=n(14),a=n(33),c=n(102);r({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!c},{getPrototypeOf:function(e){return a(i(e))}})},function(e,t,n){"use strict";n(0)({target:"Object",stat:!0},{is:n(151)})},function(e,t,n){"use strict";var r=n(0),o=n(2),i=n(4),a=Object.isExtensible;r({target:"Object",stat:!0,forced:o((function(){a(1)}))},{isExtensible:function(e){return!!i(e)&&(!a||a(e))}})},function(e,t,n){"use strict";var r=n(0),o=n(2),i=n(4),a=Object.isFrozen;r({target:"Object",stat:!0,forced:o((function(){a(1)}))},{isFrozen:function(e){return!i(e)||!!a&&a(e)}})},function(e,t,n){"use strict";var r=n(0),o=n(2),i=n(4),a=Object.isSealed;r({target:"Object",stat:!0,forced:o((function(){a(1)}))},{isSealed:function(e){return!i(e)||!!a&&a(e)}})},function(e,t,n){"use strict";var r=n(0),o=n(14),i=n(61);r({target:"Object",stat:!0,forced:n(2)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},function(e,t,n){"use strict";var r=n(0),o=n(5),i=n(81),a=n(14),c=n(31),u=n(33),l=n(19).f;o&&r({target:"Object",proto:!0,forced:i},{__lookupGetter__:function(e){var t,n=a(this),r=c(e,!0);do{if(t=l(n,r))return t.get}while(n=u(n))}})},function(e,t,n){"use strict";var r=n(0),o=n(5),i=n(81),a=n(14),c=n(31),u=n(33),l=n(19).f;o&&r({target:"Object",proto:!0,forced:i},{__lookupSetter__:function(e){var t,n=a(this),r=c(e,!0);do{if(t=l(n,r))return t.set}while(n=u(n))}})},function(e,t,n){"use strict";var r=n(0),o=n(4),i=n(50).onFreeze,a=n(66),c=n(2),u=Object.preventExtensions;r({target:"Object",stat:!0,forced:c((function(){u(1)})),sham:!a},{preventExtensions:function(e){return u&&o(e)?u(i(e)):e}})},function(e,t,n){"use strict";var r=n(0),o=n(4),i=n(50).onFreeze,a=n(66),c=n(2),u=Object.seal;r({target:"Object",stat:!0,forced:c((function(){u(1)})),sham:!a},{seal:function(e){return u&&o(e)?u(i(e)):e}})},function(e,t,n){"use strict";n(0)({target:"Object",stat:!0},{setPrototypeOf:n(49)})},function(e,t,n){"use strict";var r=n(100),o=n(21),i=n(296);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(e,t,n){"use strict";var r=n(100),o=n(73);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(e,t,n){"use strict";var r=n(0),o=n(150).values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},function(e,t,n){"use strict";var r=n(0),o=n(149);r({global:!0,forced:parseInt!=o},{parseInt:o})},function(e,t,n){"use strict";var r,o,i,a,c=n(0),u=n(37),l=n(3),s=n(35),d=n(152),f=n(21),p=n(65),m=n(42),h=n(52),v=n(4),g=n(29),b=n(53),y=n(30),C=n(90),N=n(67),x=n(74),V=n(44),w=n(107).set,_=n(154),k=n(155),S=n(300),E=n(156),B=n(301),L=n(32),I=n(60),O=n(10),T=n(96),A=O("species"),M="Promise",j=L.get,P=L.set,F=L.getterFor(M),D=d,R=l.TypeError,z=l.document,K=l.process,U=s("fetch"),W=E.f,Y=W,H="process"==y(K),$=!!(z&&z.createEvent&&l.dispatchEvent),G=I(M,(function(){if(!(C(D)!==String(D))){if(66===T)return!0;if(!H&&"function"!=typeof PromiseRejectionEvent)return!0}if(u&&!D.prototype["finally"])return!0;if(T>=51&&/native code/.test(D))return!1;var e=D.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[A]=t,!(e.then((function(){}))instanceof t)})),q=G||!x((function(e){D.all(e)["catch"]((function(){}))})),X=function(e){var t;return!(!v(e)||"function"!=typeof(t=e.then))&&t},Q=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;_((function(){for(var o=t.value,i=1==t.state,a=0;r.length>a;){var c,u,l,s=r[a++],d=i?s.ok:s.fail,f=s.resolve,p=s.reject,m=s.domain;try{d?(i||(2===t.rejection&&te(e,t),t.rejection=1),!0===d?c=o:(m&&m.enter(),c=d(o),m&&(m.exit(),l=!0)),c===s.promise?p(R("Promise-chain cycle")):(u=X(c))?u.call(c,f,p):f(c)):p(o)}catch(h){m&&!l&&m.exit(),p(h)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&Z(e,t)}))}},J=function(e,t,n){var r,o;$?((r=z.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),l.dispatchEvent(r)):r={promise:t,reason:n},(o=l["on"+e])?o(r):"unhandledrejection"===e&&S("Unhandled promise rejection",n)},Z=function(e,t){w.call(l,(function(){var n,r=t.value;if(ee(t)&&(n=B((function(){H?K.emit("unhandledRejection",r,e):J("unhandledrejection",e,r)})),t.rejection=H||ee(t)?2:1,n.error))throw n.value}))},ee=function(e){return 1!==e.rejection&&!e.parent},te=function(e,t){w.call(l,(function(){H?K.emit("rejectionHandled",e):J("rejectionhandled",e,t.value)}))},ne=function(e,t,n,r){return function(o){e(t,n,o,r)}},re=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,Q(e,t,!0))},oe=function ie(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw R("Promise can't be resolved itself");var o=X(n);o?_((function(){var r={done:!1};try{o.call(n,ne(ie,e,r,t),ne(re,e,r,t))}catch(i){re(e,r,i,t)}})):(t.value=n,t.state=1,Q(e,t,!1))}catch(i){re(e,{done:!1},i,t)}}};G&&(D=function(e){b(this,D,M),g(e),r.call(this);var t=j(this);try{e(ne(oe,this,t),ne(re,this,t))}catch(n){re(this,t,n)}},(r=function(e){P(this,{type:M,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:undefined})}).prototype=p(D.prototype,{then:function(e,t){var n=F(this),r=W(V(this,D));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=H?K.domain:undefined,n.parent=!0,n.reactions.push(r),0!=n.state&&Q(this,n,!1),r.promise},"catch":function(e){return this.then(undefined,e)}}),o=function(){var e=new r,t=j(e);this.promise=e,this.resolve=ne(oe,e,t),this.reject=ne(re,e,t)},E.f=W=function(e){return e===D||e===i?new o(e):Y(e)},u||"function"!=typeof d||(a=d.prototype.then,f(d.prototype,"then",(function(e,t){var n=this;return new D((function(e,t){a.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof U&&c({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return k(D,U.apply(l,arguments))}}))),c({global:!0,wrap:!0,forced:G},{Promise:D}),m(D,M,!1,!0),h(M),i=s(M),c({target:M,stat:!0,forced:G},{reject:function(e){var t=W(this);return t.reject.call(undefined,e),t.promise}}),c({target:M,stat:!0,forced:u||G},{resolve:function(e){return k(u&&this===i?D:this,e)}}),c({target:M,stat:!0,forced:q},{all:function(e){var t=this,n=W(t),r=n.resolve,o=n.reject,i=B((function(){var n=g(t.resolve),i=[],a=0,c=1;N(e,(function(e){var u=a++,l=!1;i.push(undefined),c++,n.call(t,e).then((function(e){l||(l=!0,i[u]=e,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=W(t),r=n.reject,o=B((function(){var o=g(t.resolve);N(e,(function(e){o.call(t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},function(e,t,n){"use strict";var r=n(3);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t,n){"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},function(e,t,n){"use strict";var r=n(0),o=n(37),i=n(152),a=n(2),c=n(35),u=n(44),l=n(155),s=n(21);r({target:"Promise",proto:!0,real:!0,forced:!!i&&a((function(){i.prototype["finally"].call({then:function(){}},(function(){}))}))},{"finally":function(e){var t=u(this,c("Promise")),n="function"==typeof e;return this.then(n?function(n){return l(t,e()).then((function(){return n}))}:e,n?function(n){return l(t,e()).then((function(){throw n}))}:e)}}),o||"function"!=typeof i||i.prototype["finally"]||s(i.prototype,"finally",c("Promise").prototype["finally"])},function(e,t,n){"use strict";var r=n(0),o=n(35),i=n(29),a=n(6),c=n(2),u=o("Reflect","apply"),l=Function.apply;r({target:"Reflect",stat:!0,forced:!c((function(){u((function(){}))}))},{apply:function(e,t,n){return i(e),a(n),u?u(e,t,n):l.call(e,t,n)}})},function(e,t,n){"use strict";var r=n(0),o=n(35),i=n(29),a=n(6),c=n(4),u=n(41),l=n(145),s=n(2),d=o("Reflect","construct"),f=s((function(){function e(){}return!(d((function(){}),[],e)instanceof e)})),p=!s((function(){d((function(){}))})),m=f||p;r({target:"Reflect",stat:!0,forced:m,sham:m},{construct:function(e,t){i(e),a(t);var n=arguments.length<3?e:i(arguments[2]);if(p&&!f)return d(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(l.apply(e,r))}var o=n.prototype,s=u(c(o)?o:Object.prototype),m=Function.apply.call(e,s,t);return c(m)?m:s}})},function(e,t,n){"use strict";var r=n(0),o=n(5),i=n(6),a=n(31),c=n(12);r({target:"Reflect",stat:!0,forced:n(2)((function(){Reflect.defineProperty(c.f({},1,{value:1}),1,{value:2})})),sham:!o},{defineProperty:function(e,t,n){i(e);var r=a(t,!0);i(n);try{return c.f(e,r,n),!0}catch(o){return!1}}})},function(e,t,n){"use strict";var r=n(0),o=n(6),i=n(19).f;r({target:"Reflect",stat:!0},{deleteProperty:function(e,t){var n=i(o(e),t);return!(n&&!n.configurable)&&delete e[t]}})},function(e,t,n){"use strict";var r=n(0),o=n(4),i=n(6),a=n(16),c=n(19),u=n(33);r({target:"Reflect",stat:!0},{get:function l(e,t){var n,r,s=arguments.length<3?e:arguments[2];return i(e)===s?e[t]:(n=c.f(e,t))?a(n,"value")?n.value:n.get===undefined?undefined:n.get.call(s):o(r=u(e))?l(r,t,s):void 0}})},function(e,t,n){"use strict";var r=n(0),o=n(5),i=n(6),a=n(19);r({target:"Reflect",stat:!0,sham:!o},{getOwnPropertyDescriptor:function(e,t){return a.f(i(e),t)}})},function(e,t,n){"use strict";var r=n(0),o=n(6),i=n(33);r({target:"Reflect",stat:!0,sham:!n(102)},{getPrototypeOf:function(e){return i(o(e))}})},function(e,t,n){"use strict";n(0)({target:"Reflect",stat:!0},{has:function(e,t){return t in e}})},function(e,t,n){"use strict";var r=n(0),o=n(6),i=Object.isExtensible;r({target:"Reflect",stat:!0},{isExtensible:function(e){return o(e),!i||i(e)}})},function(e,t,n){"use strict";n(0)({target:"Reflect",stat:!0},{ownKeys:n(92)})},function(e,t,n){"use strict";var r=n(0),o=n(35),i=n(6);r({target:"Reflect",stat:!0,sham:!n(66)},{preventExtensions:function(e){i(e);try{var t=o("Object","preventExtensions");return t&&t(e),!0}catch(n){return!1}}})},function(e,t,n){"use strict";var r=n(0),o=n(6),i=n(4),a=n(16),c=n(2),u=n(12),l=n(19),s=n(33),d=n(45);r({target:"Reflect",stat:!0,forced:c((function(){var e=u.f({},"a",{configurable:!0});return!1!==Reflect.set(s(e),"a",1,e)}))},{set:function f(e,t,n){var r,c,p=arguments.length<4?e:arguments[3],m=l.f(o(e),t);if(!m){if(i(c=s(e)))return f(c,t,n,p);m=d(0)}if(a(m,"value")){if(!1===m.writable||!i(p))return!1;if(r=l.f(p,t)){if(r.get||r.set||!1===r.writable)return!1;r.value=n,u.f(p,t,r)}else u.f(p,t,d(0,n));return!0}return m.set!==undefined&&(m.set.call(p,n),!0)}})},function(e,t,n){"use strict";var r=n(0),o=n(6),i=n(142),a=n(49);a&&r({target:"Reflect",stat:!0},{setPrototypeOf:function(e,t){o(e),i(t);try{return a(e,t),!0}catch(n){return!1}}})},function(e,t,n){"use strict";var r=n(5),o=n(3),i=n(60),a=n(78),c=n(12).f,u=n(46).f,l=n(108),s=n(82),d=n(109),f=n(21),p=n(2),m=n(32).set,h=n(52),v=n(10)("match"),g=o.RegExp,b=g.prototype,y=/a/g,C=/a/g,N=new g(y)!==y,x=d.UNSUPPORTED_Y;if(r&&i("RegExp",!N||x||p((function(){return C[v]=!1,g(y)!=y||g(C)==C||"/a/i"!=g(y,"i")})))){for(var V=function(e,t){var n,r=this instanceof V,o=l(e),i=t===undefined;if(!r&&o&&e.constructor===V&&i)return e;N?o&&!i&&(e=e.source):e instanceof V&&(i&&(t=s.call(e)),e=e.source),x&&(n=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var c=a(N?new g(e,t):g(e,t),r?this:b,V);return x&&n&&m(c,{sticky:n}),c},w=function(e){e in V||c(V,e,{configurable:!0,get:function(){return g[e]},set:function(t){g[e]=t}})},_=u(g),k=0;_.length>k;)w(_[k++]);b.constructor=V,V.prototype=b,f(o,"RegExp",V)}h("RegExp")},function(e,t,n){"use strict";var r=n(5),o=n(12),i=n(82),a=n(109).UNSUPPORTED_Y;r&&("g"!=/./g.flags||a)&&o.f(RegExp.prototype,"flags",{configurable:!0,get:i})},function(e,t,n){"use strict";var r=n(21),o=n(6),i=n(2),a=n(82),c=RegExp.prototype,u=c.toString,l=i((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),s="toString"!=u.name;(l||s)&&r(RegExp.prototype,"toString",(function(){var e=o(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(n===undefined&&e instanceof RegExp&&!("flags"in c)?a.call(e):n)}),{unsafe:!0})},function(e,t,n){"use strict";var r=n(77),o=n(146);e.exports=r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}}),o)},function(e,t,n){"use strict";var r=n(0),o=n(110).codeAt;r({target:"String",proto:!0},{codePointAt:function(e){return o(this,e)}})},function(e,t,n){"use strict";var r,o=n(0),i=n(19).f,a=n(8),c=n(111),u=n(20),l=n(112),s=n(37),d="".endsWith,f=Math.min,p=l("endsWith");o({target:"String",proto:!0,forced:!!(s||p||(r=i(String.prototype,"endsWith"),!r||r.writable))&&!p},{endsWith:function(e){var t=String(u(this));c(e);var n=arguments.length>1?arguments[1]:undefined,r=a(t.length),o=n===undefined?r:f(a(n),r),i=String(e);return d?d.call(t,i,o):t.slice(o-i.length,o)===i}})},function(e,t,n){"use strict";var r=n(0),o=n(40),i=String.fromCharCode,a=String.fromCodePoint;r({target:"String",stat:!0,forced:!!a&&1!=a.length},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,a=0;r>a;){if(t=+arguments[a++],o(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){"use strict";var r=n(0),o=n(111),i=n(20);r({target:"String",proto:!0,forced:!n(112)("includes")},{includes:function(e){return!!~String(i(this)).indexOf(o(e),arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var r=n(110).charAt,o=n(32),i=n(101),a=o.set,c=o.getterFor("String Iterator");i(String,"String",(function(e){a(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=c(this),n=t.string,o=t.index;return o>=n.length?{value:undefined,done:!0}:(e=r(n,o),t.index+=e.length,{value:e,done:!1})}))},function(e,t,n){"use strict";var r=n(84),o=n(6),i=n(8),a=n(20),c=n(113),u=n(85);r("match",1,(function(e,t,n){return[function(t){var n=a(this),r=t==undefined?undefined:t[e];return r!==undefined?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var a=o(e),l=String(this);if(!a.global)return u(a,l);var s=a.unicode;a.lastIndex=0;for(var d,f=[],p=0;null!==(d=u(a,l));){var m=String(d[0]);f[p]=m,""===m&&(a.lastIndex=c(l,i(a.lastIndex),s)),p++}return 0===p?null:f}]}))},function(e,t,n){"use strict";var r=n(0),o=n(104).end;r({target:"String",proto:!0,forced:n(158)},{padEnd:function(e){return o(this,e,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var r=n(0),o=n(104).start;r({target:"String",proto:!0,forced:n(158)},{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var r=n(0),o=n(23),i=n(8);r({target:"String",stat:!0},{raw:function(e){for(var t=o(e.raw),n=i(t.length),r=arguments.length,a=[],c=0;n>c;)a.push(String(t[c++])),c]*>)/g,h=/\$([$&'`]|\d\d?)/g;r("replace",2,(function(e,t,n,r){var v=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,g=r.REPLACE_KEEPS_$0,b=v?"$":"$0";return[function(n,r){var o=u(this),i=n==undefined?undefined:n[e];return i!==undefined?i.call(n,o,r):t.call(String(o),n,r)},function(e,r){if(!v&&g||"string"==typeof r&&-1===r.indexOf(b)){var i=n(t,e,this,r);if(i.done)return i.value}var u=o(e),p=String(this),m="function"==typeof r;m||(r=String(r));var h=u.global;if(h){var C=u.unicode;u.lastIndex=0}for(var N=[];;){var x=s(u,p);if(null===x)break;if(N.push(x),!h)break;""===String(x[0])&&(u.lastIndex=l(p,a(u.lastIndex),C))}for(var V,w="",_=0,k=0;k=_&&(w+=p.slice(_,E)+T,_=E+S.length)}return w+p.slice(_)}];function y(e,n,r,o,a,c){var u=r+e.length,l=o.length,s=h;return a!==undefined&&(a=i(a),s=m),t.call(c,s,(function(t,i){var c;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(u);case"<":c=a[i.slice(1,-1)];break;default:var s=+i;if(0===s)return t;if(s>l){var d=p(s/10);return 0===d?t:d<=l?o[d-1]===undefined?i.charAt(1):o[d-1]+i.charAt(1):t}c=o[s-1]}return c===undefined?"":c}))}}))},function(e,t,n){"use strict";var r=n(84),o=n(6),i=n(20),a=n(151),c=n(85);r("search",1,(function(e,t,n){return[function(t){var n=i(this),r=t==undefined?undefined:t[e];return r!==undefined?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var i=o(e),u=String(this),l=i.lastIndex;a(l,0)||(i.lastIndex=0);var s=c(i,u);return a(i.lastIndex,l)||(i.lastIndex=l),null===s?-1:s.index}]}))},function(e,t,n){"use strict";var r=n(84),o=n(108),i=n(6),a=n(20),c=n(44),u=n(113),l=n(8),s=n(85),d=n(83),f=n(2),p=[].push,m=Math.min,h=!f((function(){return!RegExp(4294967295,"y")}));r("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(a(this)),i=n===undefined?4294967295:n>>>0;if(0===i)return[];if(e===undefined)return[r];if(!o(e))return t.call(r,e,i);for(var c,u,l,s=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,h=new RegExp(e.source,f+"g");(c=d.call(h,r))&&!((u=h.lastIndex)>m&&(s.push(r.slice(m,c.index)),c.length>1&&c.index=i));)h.lastIndex===c.index&&h.lastIndex++;return m===r.length?!l&&h.test("")||s.push(""):s.push(r.slice(m)),s.length>i?s.slice(0,i):s}:"0".split(undefined,0).length?function(e,n){return e===undefined&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=a(this),i=t==undefined?undefined:t[e];return i!==undefined?i.call(t,o,n):r.call(String(o),t,n)},function(e,o){var a=n(r,e,this,o,r!==t);if(a.done)return a.value;var d=i(e),f=String(this),p=c(d,RegExp),v=d.unicode,g=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(h?"y":"g"),b=new p(h?d:"^(?:"+d.source+")",g),y=o===undefined?4294967295:o>>>0;if(0===y)return[];if(0===f.length)return null===s(b,f)?[f]:[];for(var C=0,N=0,x=[];N1?arguments[1]:undefined,t.length)),r=String(e);return d?d.call(t,r,n):t.slice(n,n+r.length)===r}})},function(e,t,n){"use strict";var r=n(0),o=n(54).trim;r({target:"String",proto:!0,forced:n(114)("trim")},{trim:function(){return o(this)}})},function(e,t,n){"use strict";var r=n(0),o=n(54).end,i=n(114)("trimEnd"),a=i?function(){return o(this)}:"".trimEnd;r({target:"String",proto:!0,forced:i},{trimEnd:a,trimRight:a})},function(e,t,n){"use strict";var r=n(0),o=n(54).start,i=n(114)("trimStart"),a=i?function(){return o(this)}:"".trimStart;r({target:"String",proto:!0,forced:i},{trimStart:a,trimLeft:a})},function(e,t,n){"use strict";var r=n(0),o=n(25);r({target:"String",proto:!0,forced:n(26)("anchor")},{anchor:function(e){return o(this,"a","name",e)}})},function(e,t,n){"use strict";var r=n(0),o=n(25);r({target:"String",proto:!0,forced:n(26)("big")},{big:function(){return o(this,"big","","")}})},function(e,t,n){"use strict";var r=n(0),o=n(25);r({target:"String",proto:!0,forced:n(26)("blink")},{blink:function(){return o(this,"blink","","")}})},function(e,t,n){"use strict";var r=n(0),o=n(25);r({target:"String",proto:!0,forced:n(26)("bold")},{bold:function(){return o(this,"b","","")}})},function(e,t,n){"use strict";var r=n(0),o=n(25);r({target:"String",proto:!0,forced:n(26)("fixed")},{fixed:function(){return o(this,"tt","","")}})},function(e,t,n){"use strict";var r=n(0),o=n(25);r({target:"String",proto:!0,forced:n(26)("fontcolor")},{fontcolor:function(e){return o(this,"font","color",e)}})},function(e,t,n){"use strict";var r=n(0),o=n(25);r({target:"String",proto:!0,forced:n(26)("fontsize")},{fontsize:function(e){return o(this,"font","size",e)}})},function(e,t,n){"use strict";var r=n(0),o=n(25);r({target:"String",proto:!0,forced:n(26)("italics")},{italics:function(){return o(this,"i","","")}})},function(e,t,n){"use strict";var r=n(0),o=n(25);r({target:"String",proto:!0,forced:n(26)("link")},{link:function(e){return o(this,"a","href",e)}})},function(e,t,n){"use strict";var r=n(0),o=n(25);r({target:"String",proto:!0,forced:n(26)("small")},{small:function(){return o(this,"small","","")}})},function(e,t,n){"use strict";var r=n(0),o=n(25);r({target:"String",proto:!0,forced:n(26)("strike")},{strike:function(){return o(this,"strike","","")}})},function(e,t,n){"use strict";var r=n(0),o=n(25);r({target:"String",proto:!0,forced:n(26)("sub")},{sub:function(){return o(this,"sub","","")}})},function(e,t,n){"use strict";var r=n(0),o=n(25);r({target:"String",proto:!0,forced:n(26)("sup")},{sup:function(){return o(this,"sup","","")}})},function(e,t,n){"use strict";n(39)("Float32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){"use strict";var r=n(28);e.exports=function(e){var t=r(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},function(e,t,n){"use strict";n(39)("Float64",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){"use strict";n(39)("Int8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){"use strict";n(39)("Int16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){"use strict";n(39)("Int32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){"use strict";n(39)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){"use strict";n(39)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0)},function(e,t,n){"use strict";n(39)("Uint16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){"use strict";n(39)("Uint32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){"use strict";var r=n(7),o=n(137),i=r.aTypedArray;(0,r.exportTypedArrayMethod)("copyWithin",(function(e,t){return o.call(i(this),e,t,arguments.length>2?arguments[2]:undefined)}))},function(e,t,n){"use strict";var r=n(7),o=n(18).every,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("every",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var r=n(7),o=n(97),i=r.aTypedArray;(0,r.exportTypedArrayMethod)("fill",(function(e){return o.apply(i(this),arguments)}))},function(e,t,n){"use strict";var r=n(7),o=n(18).filter,i=n(44),a=r.aTypedArray,c=r.aTypedArrayConstructor;(0,r.exportTypedArrayMethod)("filter",(function(e){for(var t=o(a(this),e,arguments.length>1?arguments[1]:undefined),n=i(this,this.constructor),r=0,u=t.length,l=new(c(n))(u);u>r;)l[r]=t[r++];return l}))},function(e,t,n){"use strict";var r=n(7),o=n(18).find,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("find",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var r=n(7),o=n(18).findIndex,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("findIndex",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var r=n(7),o=n(18).forEach,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("forEach",(function(e){o(i(this),e,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var r=n(115);(0,n(7).exportTypedArrayStaticMethod)("from",n(160),r)},function(e,t,n){"use strict";var r=n(7),o=n(59).includes,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("includes",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var r=n(7),o=n(59).indexOf,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("indexOf",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var r=n(3),o=n(7),i=n(140),a=n(10)("iterator"),c=r.Uint8Array,u=i.values,l=i.keys,s=i.entries,d=o.aTypedArray,f=o.exportTypedArrayMethod,p=c&&c.prototype[a],m=!!p&&("values"==p.name||p.name==undefined),h=function(){return u.call(d(this))};f("entries",(function(){return s.call(d(this))})),f("keys",(function(){return l.call(d(this))})),f("values",h,!m),f(a,h,!m)},function(e,t,n){"use strict";var r=n(7),o=r.aTypedArray,i=r.exportTypedArrayMethod,a=[].join;i("join",(function(e){return a.apply(o(this),arguments)}))},function(e,t,n){"use strict";var r=n(7),o=n(143),i=r.aTypedArray;(0,r.exportTypedArrayMethod)("lastIndexOf",(function(e){return o.apply(i(this),arguments)}))},function(e,t,n){"use strict";var r=n(7),o=n(18).map,i=n(44),a=r.aTypedArray,c=r.aTypedArrayConstructor;(0,r.exportTypedArrayMethod)("map",(function(e){return o(a(this),e,arguments.length>1?arguments[1]:undefined,(function(e,t){return new(c(i(e,e.constructor)))(t)}))}))},function(e,t,n){"use strict";var r=n(7),o=n(115),i=r.aTypedArrayConstructor;(0,r.exportTypedArrayStaticMethod)("of",(function(){for(var e=0,t=arguments.length,n=new(i(this))(t);t>e;)n[e]=arguments[e++];return n}),o)},function(e,t,n){"use strict";var r=n(7),o=n(75).left,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduce",(function(e){return o(i(this),e,arguments.length,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var r=n(7),o=n(75).right,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduceRight",(function(e){return o(i(this),e,arguments.length,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var r=n(7),o=r.aTypedArray,i=r.exportTypedArrayMethod,a=Math.floor;i("reverse",(function(){for(var e,t=o(this).length,n=a(t/2),r=0;r1?arguments[1]:undefined,1),n=this.length,r=a(e),c=o(r.length),l=0;if(c+t>n)throw RangeError("Wrong length");for(;li;)s[i]=n[i++];return s}),i((function(){new Int8Array(1).slice()})))},function(e,t,n){"use strict";var r=n(7),o=n(18).some,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("some",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var r=n(7),o=r.aTypedArray,i=r.exportTypedArrayMethod,a=[].sort;i("sort",(function(e){return a.call(o(this),e)}))},function(e,t,n){"use strict";var r=n(7),o=n(8),i=n(40),a=n(44),c=r.aTypedArray;(0,r.exportTypedArrayMethod)("subarray",(function(e,t){var n=c(this),r=n.length,u=i(e,r);return new(a(n,n.constructor))(n.buffer,n.byteOffset+u*n.BYTES_PER_ELEMENT,o((t===undefined?r:i(t,r))-u))}))},function(e,t,n){"use strict";var r=n(3),o=n(7),i=n(2),a=r.Int8Array,c=o.aTypedArray,u=o.exportTypedArrayMethod,l=[].toLocaleString,s=[].slice,d=!!a&&i((function(){l.call(new a(1))}));u("toLocaleString",(function(){return l.apply(d?s.call(c(this)):c(this),arguments)}),i((function(){return[1,2].toLocaleString()!=new a([1,2]).toLocaleString()}))||!i((function(){a.prototype.toLocaleString.call([1,2])})))},function(e,t,n){"use strict";var r=n(7).exportTypedArrayMethod,o=n(2),i=n(3).Uint8Array,a=i&&i.prototype||{},c=[].toString,u=[].join;o((function(){c.call({})}))&&(c=function(){return u.call(this)});var l=a.toString!=c;r("toString",c,l)},function(e,t,n){"use strict";var r,o=n(3),i=n(65),a=n(50),c=n(77),u=n(161),l=n(4),s=n(32).enforce,d=n(128),f=!o.ActiveXObject&&"ActiveXObject"in o,p=Object.isExtensible,m=function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}},h=e.exports=c("WeakMap",m,u);if(d&&f){r=u.getConstructor(m,"WeakMap",!0),a.REQUIRED=!0;var v=h.prototype,g=v["delete"],b=v.has,y=v.get,C=v.set;i(v,{"delete":function(e){if(l(e)&&!p(e)){var t=s(this);return t.frozen||(t.frozen=new r),g.call(this,e)||t.frozen["delete"](e)}return g.call(this,e)},has:function(e){if(l(e)&&!p(e)){var t=s(this);return t.frozen||(t.frozen=new r),b.call(this,e)||t.frozen.has(e)}return b.call(this,e)},get:function(e){if(l(e)&&!p(e)){var t=s(this);return t.frozen||(t.frozen=new r),b.call(this,e)?y.call(this,e):t.frozen.get(e)}return y.call(this,e)},set:function(e,t){if(l(e)&&!p(e)){var n=s(this);n.frozen||(n.frozen=new r),b.call(this,e)?C.call(this,e,t):n.frozen.set(e,t)}else C.call(this,e,t);return this}})}},function(e,t,n){"use strict";n(77)("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}}),n(161))},function(e,t,n){"use strict";var r=n(0),o=n(3),i=n(107);r({global:!0,bind:!0,enumerable:!0,forced:!o.setImmediate||!o.clearImmediate},{setImmediate:i.set,clearImmediate:i.clear})},function(e,t,n){"use strict";var r=n(0),o=n(3),i=n(154),a=n(30),c=o.process,u="process"==a(c);r({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(e){var t=u&&c.domain;i(t?t.bind(e):e)}})},function(e,t,n){"use strict";var r=n(0),o=n(3),i=n(72),a=[].slice,c=function(e){return function(t,n){var r=arguments.length>2,o=r?a.call(arguments,2):undefined;return e(r?function(){("function"==typeof t?t:Function(t)).apply(this,o)}:t,n)}};r({global:!0,bind:!0,forced:/MSIE .\./.test(i)},{setTimeout:c(o.setTimeout),setInterval:c(o.setInterval)})},function(e,t,n){"use strict";t.__esModule=!0,t._CI=Ee,t._HI=P,t._M=Be,t._MCCC=Te,t._ME=Ie,t._MFCC=Ae,t._MP=ke,t._MR=be,t.__render=De,t.createComponentVNode=function(e,t,n,r,o){var a=new B(1,null,null,e=function(e,t){if(12&e)return e;if(t.prototype&&t.prototype.render)return 4;if(t.render)return 32776;return 8}(e,t),r,function(e,t,n){var r=(32768&e?t.render:t).defaultProps;if(i(r))return n;if(i(n))return s(r,null);return S(n,r)}(e,t,n),function(e,t,n){if(4&e)return n;var r=(32768&e?t.render:t).defaultHooks;if(i(r))return n;if(i(n))return r;return S(n,r)}(e,t,o),t);w.createVNode&&w.createVNode(a);return a},t.createFragment=O,t.createPortal=function(e,t){var n=P(e);return L(1024,1024,null,n,0,null,n.key,t)},t.createRef=function(){return{current:null}},t.createRenderer=function(e){return function(t,n,r,o){e||(e=t),Re(n,e,r,o)}},t.createTextVNode=I,t.createVNode=L,t.directClone=T,t.findDOMfromVNode=y,t.forwardRef=function(e){return{render:e}},t.getFlagsForElementVnode=function(e){switch(e){case"svg":return 32;case"input":return 64;case"select":return 256;case"textarea":return 128;case"$F":return 8192;default:return 1}},t.linkEvent=function(e,t){if(c(t))return{data:e,event:t};return null},t.normalizeProps=function(e){var t=e.props;if(t){var n=e.flags;481&n&&(void 0!==t.children&&i(e.children)&&j(e,t.children),void 0!==t.className&&(e.className=t.className||null,t.className=undefined)),void 0!==t.key&&(e.key=t.key,t.key=undefined),void 0!==t.ref&&(e.ref=8&n?s(e.ref,t.ref):t.ref,t.ref=undefined)}return e},t.render=Re,t.rerender=He,t.version=t.options=t.Fragment=t.EMPTY_OBJ=t.Component=void 0;var r=Array.isArray;function o(e){var t=typeof e;return"string"===t||"number"===t}function i(e){return null==e}function a(e){return null===e||!1===e||!0===e||void 0===e}function c(e){return"function"==typeof e}function u(e){return"string"==typeof e}function l(e){return null===e}function s(e,t){var n={};if(e)for(var r in e)n[r]=e[r];if(t)for(var o in t)n[o]=t[o];return n}function d(e){return!l(e)&&"object"==typeof e}var f={};t.EMPTY_OBJ=f;function p(e){return e.substr(2).toLowerCase()}function m(e,t){e.appendChild(t)}function h(e,t,n){l(n)?m(e,t):e.insertBefore(t,n)}function v(e,t){e.removeChild(t)}function g(e){for(var t=0;t0,m=l(f),h=u(f)&&"$"===f[0];p||m||h?(n=n||t.slice(0,s),(p||h)&&(d=T(d)),(m||h)&&(d.key="$"+s),n.push(d)):n&&n.push(d),d.flags|=65536}}i=0===(n=n||t).length?1:8}else(n=t).flags|=65536,81920&t.flags&&(n=T(t)),i=2;return e.children=n,e.childFlags=i,e}function P(e){return a(e)||o(e)?I(e,null):r(e)?O(e,0,null):16384&e.flags?T(e):e}var F="http://www.w3.org/1999/xlink",D="http://www.w3.org/XML/1998/namespace",R={"xlink:actuate":F,"xlink:arcrole":F,"xlink:href":F,"xlink:role":F,"xlink:show":F,"xlink:title":F,"xlink:type":F,"xml:base":D,"xml:lang":D,"xml:space":D};function z(e){return{onClick:e,onDblClick:e,onFocusIn:e,onFocusOut:e,onKeyDown:e,onKeyPress:e,onKeyUp:e,onMouseDown:e,onMouseMove:e,onMouseUp:e,onTouchEnd:e,onTouchMove:e,onTouchStart:e}}var K=z(0),U=z(null),W=z(!0);function Y(e,t){var n=t.$EV;return n||(n=t.$EV=z(null)),n[e]||1==++K[e]&&(U[e]=function(e){var t="onClick"===e||"onDblClick"===e?function(e){return function(t){0===t.button?$(t,!0,e,Q(t)):t.stopPropagation()}}(e):function(e){return function(t){$(t,!1,e,Q(t))}}(e);return document.addEventListener(p(e),t),t}(e)),n}function H(e,t){var n=t.$EV;n&&n[e]&&(0==--K[e]&&(document.removeEventListener(p(e),U[e]),U[e]=null),n[e]=null)}function $(e,t,n,r){var o=function(e){return c(e.composedPath)?e.composedPath()[0]:e.target}(e);do{if(t&&o.disabled)return;var i=o.$EV;if(i){var a=i[n];if(a&&(r.dom=o,a.event?a.event(a.data,e):a(e),e.cancelBubble))return}o=o.parentNode}while(!l(o))}function G(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function q(){return this.defaultPrevented}function X(){return this.cancelBubble}function Q(e){var t={dom:document};return e.isDefaultPrevented=q,e.isPropagationStopped=X,e.stopPropagation=G,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return t.dom}}),t}function J(e,t,n){if(e[t]){var r=e[t];r.event?r.event(r.data,n):r(n)}else{var o=t.toLowerCase();e[o]&&e[o](n)}}function Z(e,t){var n=function(n){var r=this.$V;if(r){var o=r.props||f,i=r.dom;if(u(e))J(o,e,n);else for(var a=0;a-1&&t.options[a]&&(c=t.options[a].value),n&&i(c)&&(c=e.defaultValue),ae(r,c)}}var le,se,de=Z("onInput",pe),fe=Z("onChange");function pe(e,t,n){var r=e.value,o=t.value;if(i(r)){if(n){var a=e.defaultValue;i(a)||a===o||(t.defaultValue=a,t.value=a)}}else o!==r&&(t.defaultValue=r,t.value=r)}function me(e,t,n,r,o,i){64&e?ie(r,n):256&e?ue(r,n,o,t):128&e&&pe(r,n,o),i&&(n.$V=t)}function he(e,t,n){64&e?function(e,t){te(t.type)?(ee(e,"change",re),ee(e,"click",oe)):ee(e,"input",ne)}(t,n):256&e?function(e){ee(e,"change",ce)}(t):128&e&&function(e,t){ee(e,"input",de),t.onChange&&ee(e,"change",fe)}(t,n)}function ve(e){return e.type&&te(e.type)?!i(e.checked):!i(e.value)}function ge(e){e&&!E(e,null)&&e.current&&(e.current=null)}function be(e,t,n){e&&(c(e)||void 0!==e.current)&&n.push((function(){E(e,t)||void 0===e.current||(e.current=t)}))}function ye(e,t){Ce(e),C(e,t)}function Ce(e){var t,n=e.flags,r=e.children;if(481&n){t=e.ref;var o=e.props;ge(t);var a=e.childFlags;if(!l(o))for(var u=Object.keys(o),s=0,d=u.length;s0;for(var c in a&&(i=ve(n))&&he(t,r,n),n)_e(c,null,n[c],r,o,i,null);a&&me(t,e,r,n,!0,i)}function Se(e,t,n){var r=P(e.render(t,e.state,n)),o=n;return c(e.getChildContext)&&(o=s(n,e.getChildContext())),e.$CX=o,r}function Ee(e,t,n,r,o,i){var a=new t(n,r),u=a.$N=Boolean(t.getDerivedStateFromProps||a.getSnapshotBeforeUpdate);if(a.$SVG=o,a.$L=i,e.children=a,a.$BS=!1,a.context=r,a.props===f&&(a.props=n),u)a.state=x(a,n,a.state);else if(c(a.componentWillMount)){a.$BR=!0,a.componentWillMount();var s=a.$PS;if(!l(s)){var d=a.state;if(l(d))a.state=s;else for(var p in s)d[p]=s[p];a.$PS=null}a.$BR=!1}return a.$LI=Se(a,n,r),a}function Be(e,t,n,r,o,i){var a=e.flags|=16384;481&a?Ie(e,t,n,r,o,i):4&a?function(e,t,n,r,o,i){var a=Ee(e,e.type,e.props||f,n,r,i);Be(a.$LI,t,a.$CX,r,o,i),Te(e.ref,a,i)}(e,t,n,r,o,i):8&a?(!function(e,t,n,r,o,i){Be(e.children=P(function(e,t){return 32768&e.flags?e.type.render(e.props||f,e.ref,t):e.type(e.props||f,t)}(e,n)),t,n,r,o,i)}(e,t,n,r,o,i),Ae(e,i)):512&a||16&a?Le(e,t,o):8192&a?function(e,t,n,r,o,i){var a=e.children,c=e.childFlags;12&c&&0===a.length&&(c=e.childFlags=2,a=e.children=A());2===c?Be(a,n,o,r,o,i):Oe(a,n,t,r,o,i)}(e,n,t,r,o,i):1024&a&&function(e,t,n,r,o){Be(e.children,e.ref,t,!1,null,o);var i=A();Le(i,n,r),e.dom=i.dom}(e,n,t,o,i)}function Le(e,t,n){var r=e.dom=document.createTextNode(e.children);l(t)||h(t,r,n)}function Ie(e,t,n,r,o,a){var c=e.flags,u=e.props,s=e.className,d=e.children,f=e.childFlags,p=e.dom=function(e,t){return t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e)}(e.type,r=r||(32&c)>0);if(i(s)||""===s||(r?p.setAttribute("class",s):p.className=s),16===f)_(p,d);else if(1!==f){var m=r&&"foreignObject"!==e.type;2===f?(16384&d.flags&&(e.children=d=T(d)),Be(d,p,n,m,null,a)):8!==f&&4!==f||Oe(d,p,n,m,null,a)}l(t)||h(t,p,o),l(u)||ke(e,c,u,p,r),be(e.ref,p,a)}function Oe(e,t,n,r,o,i){for(var a=0;a0,l!==s){var m=l||f;if((c=s||f)!==f)for(var h in(d=(448&o)>0)&&(p=ve(c)),c){var v=m[h],g=c[h];v!==g&&_e(h,v,g,u,r,p,e)}if(m!==f)for(var b in m)i(c[b])&&!i(m[b])&&_e(b,m[b],null,u,r,p,e)}var y=t.children,C=t.className;e.className!==C&&(i(C)?u.removeAttribute("class"):r?u.setAttribute("class",C):u.className=C);4096&o?function(e,t){e.textContent!==t&&(e.textContent=t)}(u,y):je(e.childFlags,t.childFlags,e.children,y,u,n,r&&"foreignObject"!==t.type,null,e,a);d&&me(o,t,u,c,!1,p);var N=t.ref,x=e.ref;x!==N&&(ge(x),be(N,u,a))}(e,t,r,o,p,d):4&p?function(e,t,n,r,o,i,a){var u=t.children=e.children;if(l(u))return;u.$L=a;var d=t.props||f,p=t.ref,m=e.ref,h=u.state;if(!u.$N){if(c(u.componentWillReceiveProps)){if(u.$BR=!0,u.componentWillReceiveProps(d,r),u.$UN)return;u.$BR=!1}l(u.$PS)||(h=s(h,u.$PS),u.$PS=null)}Pe(u,h,d,n,r,o,!1,i,a),m!==p&&(ge(m),be(p,u,a))}(e,t,n,r,o,u,d):8&p?function(e,t,n,r,o,a,u){var l=!0,s=t.props||f,d=t.ref,p=e.props,m=!i(d),h=e.children;m&&c(d.onComponentShouldUpdate)&&(l=d.onComponentShouldUpdate(p,s));if(!1!==l){m&&c(d.onComponentWillUpdate)&&d.onComponentWillUpdate(p,s);var v=t.type,g=P(32768&t.flags?v.render(s,d,r):v(s,r));Me(h,g,n,r,o,a,u),t.children=g,m&&c(d.onComponentDidUpdate)&&d.onComponentDidUpdate(p,s)}else t.children=h}(e,t,n,r,o,u,d):16&p?function(e,t){var n=t.children,r=t.dom=e.dom;n!==e.children&&(r.nodeValue=n)}(e,t):512&p?t.dom=e.dom:8192&p?function(e,t,n,r,o,i){var a=e.children,c=t.children,u=e.childFlags,l=t.childFlags,s=null;12&l&&0===c.length&&(l=t.childFlags=2,c=t.children=A());var d=0!=(2&l);if(12&u){var f=a.length;(8&u&&8&l||d||!d&&c.length>f)&&(s=y(a[f-1],!1).nextSibling)}je(u,l,a,c,n,r,o,s,e,i)}(e,t,n,r,o,d):function(e,t,n,r){var o=e.ref,i=t.ref,c=t.children;if(je(e.childFlags,t.childFlags,e.children,c,o,n,!1,null,e,r),t.dom=e.dom,o!==i&&!a(c)){var u=c.dom;v(o,u),m(i,u)}}(e,t,r,d)}function je(e,t,n,r,o,i,a,c,u,l){switch(e){case 2:switch(t){case 2:Me(n,r,o,i,a,c,l);break;case 1:ye(n,o);break;case 16:Ce(n),_(o,r);break;default:!function(e,t,n,r,o,i){Ce(e),Oe(t,n,r,o,y(e,!0),i),C(e,n)}(n,r,o,i,a,l)}break;case 1:switch(t){case 2:Be(r,o,i,a,c,l);break;case 1:break;case 16:_(o,r);break;default:Oe(r,o,i,a,c,l)}break;case 16:switch(t){case 16:!function(e,t,n){e!==t&&(""!==e?n.firstChild.nodeValue=t:_(n,t))}(n,r,o);break;case 2:xe(o),Be(r,o,i,a,c,l);break;case 1:xe(o);break;default:xe(o),Oe(r,o,i,a,c,l)}break;default:switch(t){case 16:Ne(n),_(o,r);break;case 2:Ve(o,u,n),Be(r,o,i,a,c,l);break;case 1:Ve(o,u,n);break;default:var s=0|n.length,d=0|r.length;0===s?d>0&&Oe(r,o,i,a,c,l):0===d?Ve(o,u,n):8===t&&8===e?function(e,t,n,r,o,i,a,c,u,l){var s,d,f=i-1,p=a-1,m=0,h=e[m],v=t[m];e:{for(;h.key===v.key;){if(16384&v.flags&&(t[m]=v=T(v)),Me(h,v,n,r,o,c,l),e[m]=v,++m>f||m>p)break e;h=e[m],v=t[m]}for(h=e[f],v=t[p];h.key===v.key;){if(16384&v.flags&&(t[p]=v=T(v)),Me(h,v,n,r,o,c,l),e[f]=v,f--,p--,m>f||m>p)break e;h=e[f],v=t[p]}}if(m>f){if(m<=p)for(d=(s=p+1)p)for(;m<=f;)ye(e[m++],n);else!function(e,t,n,r,o,i,a,c,u,l,s,d,f){var p,m,h,v=0,g=c,b=c,C=i-c+1,x=a-c+1,V=new Int32Array(x+1),w=C===r,_=!1,k=0,S=0;if(o<4||(C|x)<32)for(v=g;v<=i;++v)if(p=e[v],Sc?_=!0:k=c,16384&m.flags&&(t[c]=m=T(m)),Me(p,m,u,n,l,s,f),++S;break}!w&&c>a&&ye(p,u)}else w||ye(p,u);else{var E={};for(v=b;v<=a;++v)E[t[v].key]=v;for(v=g;v<=i;++v)if(p=e[v],Sg;)ye(e[g++],u);V[c-b]=v+1,k>c?_=!0:k=c,16384&(m=t[c]).flags&&(t[c]=m=T(m)),Me(p,m,u,n,l,s,f),++S}else w||ye(p,u);else w||ye(p,u)}if(w)Ve(u,d,e),Oe(t,u,n,l,s,f);else if(_){var B=function(e){var t=0,n=0,r=0,o=0,i=0,a=0,c=0,u=e.length;u>Fe&&(Fe=u,le=new Int32Array(u),se=new Int32Array(u));for(;n>1]]0&&(se[n]=le[i-1]),le[i]=n)}i=o+1;var l=new Int32Array(i);a=le[i-1];for(;i-- >0;)l[i]=a,a=se[a],le[i]=0;return l}(V);for(c=B.length-1,v=x-1;v>=0;v--)0===V[v]?(16384&(m=t[k=v+b]).flags&&(t[k]=m=T(m)),Be(m,u,n,l,(h=k+1)=0;v--)0===V[v]&&(16384&(m=t[k=v+b]).flags&&(t[k]=m=T(m)),Be(m,u,n,l,(h=k+1)a?a:i,f=0;fa)for(f=d;f=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),N(n),l}},"catch":function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;N(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:V(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}(e.exports);try{regeneratorRuntime=r}catch(o){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";!function(t,n){var r,o,i=t.html5||{},a=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,c=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,u=0,l={};function s(){var e=m.elements;return"string"==typeof e?e.split(" "):e}function d(e){var t=l[e._html5shiv];return t||(t={},u++,e._html5shiv=u,l[u]=t),t}function f(e,t,r){return t||(t=n),o?t.createElement(e):(r||(r=d(t)),!(i=r.cache[e]?r.cache[e].cloneNode():c.test(e)?(r.cache[e]=r.createElem(e)).cloneNode():r.createElem(e)).canHaveChildren||a.test(e)||i.tagUrn?i:r.frag.appendChild(i));var i}function p(e){e||(e=n);var t=d(e);return!m.shivCSS||r||t.hasCSS||(t.hasCSS=!!function(e,t){var n=e.createElement("p"),r=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x",r.insertBefore(n.lastChild,r.firstChild)}(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),o||function(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return m.shivMethods?f(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+s().join().replace(/[\w\-:]+/g,(function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'}))+");return n}")(m,t.frag)}(e,t),e}!function(){try{var e=n.createElement("a");e.innerHTML="",r="hidden"in e,o=1==e.childNodes.length||function(){n.createElement("a");var e=n.createDocumentFragment();return"undefined"==typeof e.cloneNode||"undefined"==typeof e.createDocumentFragment||"undefined"==typeof e.createElement}()}catch(t){r=!0,o=!0}}();var m={elements:i.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:"3.7.3",shivCSS:!1!==i.shivCSS,supportsUnknownElements:o,shivMethods:!1!==i.shivMethods,type:"default",shivDocument:p,createElement:f,createDocumentFragment:function(e,t){if(e||(e=n),o)return e.createDocumentFragment();for(var r=(t=t||d(e)).frag.cloneNode(),i=0,a=s(),c=a.length;ii;)o.push(arguments[i++]);if(r=t,(p(t)||e!==undefined)&&!ie(e))return f(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!ie(t))return t}),o[1]=t,Y.apply(null,o)}});W.prototype[D]||S(W.prototype,D,W.prototype.valueOf),j(W,"Symbol"),I[F]=!0},function(e,t,n){"use strict";var r=n(0),o=n(5),i=n(3),a=n(16),c=n(4),u=n(12).f,l=n(129),s=i.Symbol;if(o&&"function"==typeof s&&(!("description"in s.prototype)||s().description!==undefined)){var d={},f=function(){var e=arguments.length<1||arguments[0]===undefined?undefined:String(arguments[0]),t=this instanceof f?new s(e):e===undefined?s():s(e);return""===e&&(d[t]=!0),t};l(f,s);var p=f.prototype=s.prototype;p.constructor=f;var m=p.toString,h="Symbol(test)"==String(s("test")),v=/^Symbol\((.*)\)[^)]+$/;u(p,"description",{configurable:!0,get:function(){var e=c(this)?this.valueOf():this,t=m.call(e);if(a(d,e))return"";var n=h?t.slice(7,-1):t.replace(v,"$1");return""===n?undefined:n}}),r({global:!0,forced:!0},{Symbol:f})}},function(e,t,n){"use strict";n(24)("asyncIterator")},function(e,t,n){"use strict";n(24)("hasInstance")},function(e,t,n){"use strict";n(24)("isConcatSpreadable")},function(e,t,n){"use strict";n(24)("iterator")},function(e,t,n){"use strict";n(24)("match")},function(e,t,n){"use strict";n(24)("replace")},function(e,t,n){"use strict";n(24)("search")},function(e,t,n){"use strict";n(24)("species")},function(e,t,n){"use strict";n(24)("split")},function(e,t,n){"use strict";n(24)("toPrimitive")},function(e,t,n){"use strict";n(24)("toStringTag")},function(e,t,n){"use strict";n(24)("unscopables")},function(e,t,n){"use strict";var r=n(0),o=n(2),i=n(51),a=n(4),c=n(14),u=n(8),l=n(48),s=n(62),d=n(63),f=n(10),p=n(96),m=f("isConcatSpreadable"),h=p>=51||!o((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),v=d("concat"),g=function(e){if(!a(e))return!1;var t=e[m];return t!==undefined?!!t:i(e)};r({target:"Array",proto:!0,forced:!h||!v},{concat:function(e){var t,n,r,o,i,a=c(this),d=s(a,0),f=0;for(t=-1,r=arguments.length;t9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n=9007199254740991)throw TypeError("Maximum allowed index exceeded");l(d,f++,i)}return d.length=f,d}})},function(e,t,n){"use strict";var r=n(0),o=n(137),i=n(43);r({target:"Array",proto:!0},{copyWithin:o}),i("copyWithin")},function(e,t,n){"use strict";var r=n(0),o=n(18).every,i=n(38),a=n(22),c=i("every"),u=a("every");r({target:"Array",proto:!0,forced:!c||!u},{every:function(e){return o(this,e,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var r=n(0),o=n(97),i=n(43);r({target:"Array",proto:!0},{fill:o}),i("fill")},function(e,t,n){"use strict";var r=n(0),o=n(18).filter,i=n(63),a=n(22),c=i("filter"),u=a("filter");r({target:"Array",proto:!0,forced:!c||!u},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var r=n(0),o=n(18).find,i=n(43),a=n(22),c=!0,u=a("find");"find"in[]&&Array(1).find((function(){c=!1})),r({target:"Array",proto:!0,forced:c||!u},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:undefined)}}),i("find")},function(e,t,n){"use strict";var r=n(0),o=n(18).findIndex,i=n(43),a=n(22),c=!0,u=a("findIndex");"findIndex"in[]&&Array(1).findIndex((function(){c=!1})),r({target:"Array",proto:!0,forced:c||!u},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:undefined)}}),i("findIndex")},function(e,t,n){"use strict";var r=n(0),o=n(138),i=n(14),a=n(8),c=n(28),u=n(62);r({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:undefined,t=i(this),n=a(t.length),r=u(t,0);return r.length=o(r,t,t,n,0,e===undefined?1:c(e)),r}})},function(e,t,n){"use strict";var r=n(0),o=n(138),i=n(14),a=n(8),c=n(29),u=n(62);r({target:"Array",proto:!0},{flatMap:function(e){var t,n=i(this),r=a(n.length);return c(e),(t=u(n,0)).length=o(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:undefined),t}})},function(e,t,n){"use strict";var r=n(0),o=n(201);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(e,t,n){"use strict";var r=n(18).forEach,o=n(38),i=n(22),a=o("forEach"),c=i("forEach");e.exports=a&&c?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:undefined)}},function(e,t,n){"use strict";var r=n(0),o=n(203);r({target:"Array",stat:!0,forced:!n(74)((function(e){Array.from(e)}))},{from:o})},function(e,t,n){"use strict";var r=n(47),o=n(14),i=n(139),a=n(98),c=n(8),u=n(48),l=n(99);e.exports=function(e){var t,n,s,d,f,p,m=o(e),h="function"==typeof this?this:Array,v=arguments.length,g=v>1?arguments[1]:undefined,b=g!==undefined,y=l(m),C=0;if(b&&(g=r(g,v>2?arguments[2]:undefined,2)),y==undefined||h==Array&&a(y))for(n=new h(t=c(m.length));t>C;C++)p=b?g(m[C],C):m[C],u(n,C,p);else for(f=(d=y.call(m)).next,n=new h;!(s=f.call(d)).done;C++)p=b?i(d,g,[s.value,C],!0):s.value,u(n,C,p);return n.length=C,n}},function(e,t,n){"use strict";var r=n(0),o=n(59).includes,i=n(43);r({target:"Array",proto:!0,forced:!n(22)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:undefined)}}),i("includes")},function(e,t,n){"use strict";var r=n(0),o=n(59).indexOf,i=n(38),a=n(22),c=[].indexOf,u=!!c&&1/[1].indexOf(1,-0)<0,l=i("indexOf"),s=a("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:u||!l||!s},{indexOf:function(e){return u?c.apply(this,arguments)||0:o(this,e,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";n(0)({target:"Array",stat:!0},{isArray:n(51)})},function(e,t,n){"use strict";var r=n(141).IteratorPrototype,o=n(41),i=n(45),a=n(42),c=n(64),u=function(){return this};e.exports=function(e,t,n){var l=t+" Iterator";return e.prototype=o(r,{next:i(1,n)}),a(e,l,!1,!0),c[l]=u,e}},function(e,t,n){"use strict";var r=n(0),o=n(56),i=n(23),a=n(38),c=[].join,u=o!=Object,l=a("join",",");r({target:"Array",proto:!0,forced:u||!l},{join:function(e){return c.call(i(this),e===undefined?",":e)}})},function(e,t,n){"use strict";var r=n(0),o=n(143);r({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},function(e,t,n){"use strict";var r=n(0),o=n(18).map,i=n(63),a=n(22),c=i("map"),u=a("map");r({target:"Array",proto:!0,forced:!c||!u},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var r=n(0),o=n(2),i=n(48);r({target:"Array",stat:!0,forced:o((function(){function e(){}return!(Array.of.call(e)instanceof e)}))},{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)i(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){"use strict";var r=n(0),o=n(75).left,i=n(38),a=n(22),c=i("reduce"),u=a("reduce",{1:0});r({target:"Array",proto:!0,forced:!c||!u},{reduce:function(e){return o(this,e,arguments.length,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var r=n(0),o=n(75).right,i=n(38),a=n(22),c=i("reduceRight"),u=a("reduce",{1:0});r({target:"Array",proto:!0,forced:!c||!u},{reduceRight:function(e){return o(this,e,arguments.length,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var r=n(0),o=n(4),i=n(51),a=n(40),c=n(8),u=n(23),l=n(48),s=n(10),d=n(63),f=n(22),p=d("slice"),m=f("slice",{ACCESSORS:!0,0:0,1:2}),h=s("species"),v=[].slice,g=Math.max;r({target:"Array",proto:!0,forced:!p||!m},{slice:function(e,t){var n,r,s,d=u(this),f=c(d.length),p=a(e,f),m=a(t===undefined?f:t,f);if(i(d)&&("function"!=typeof(n=d.constructor)||n!==Array&&!i(n.prototype)?o(n)&&null===(n=n[h])&&(n=undefined):n=undefined,n===Array||n===undefined))return v.call(d,p,m);for(r=new(n===undefined?Array:n)(g(m-p,0)),s=0;p1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var r=n(0),o=n(29),i=n(14),a=n(2),c=n(38),u=[],l=u.sort,s=a((function(){u.sort(undefined)})),d=a((function(){u.sort(null)})),f=c("sort");r({target:"Array",proto:!0,forced:s||!d||!f},{sort:function(e){return e===undefined?l.call(i(this)):l.call(i(this),o(e))}})},function(e,t,n){"use strict";n(52)("Array")},function(e,t,n){"use strict";var r=n(0),o=n(40),i=n(28),a=n(8),c=n(14),u=n(62),l=n(48),s=n(63),d=n(22),f=s("splice"),p=d("splice",{ACCESSORS:!0,0:0,1:2}),m=Math.max,h=Math.min;r({target:"Array",proto:!0,forced:!f||!p},{splice:function(e,t){var n,r,s,d,f,p,v=c(this),g=a(v.length),b=o(e,g),y=arguments.length;if(0===y?n=r=0:1===y?(n=0,r=g-b):(n=y-2,r=h(m(i(t),0),g-b)),g+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(s=u(v,r),d=0;dg-r+n;d--)delete v[d-1]}else if(n>r)for(d=g-r;d>b;d--)p=d+n-1,(f=d+r-1)in v?v[p]=v[f]:delete v[p];for(d=0;d>1,h=23===t?o(2,-24)-o(2,-77):0,v=e<0||0===e&&1/e<0?1:0,g=0;for((e=r(e))!=e||e===1/0?(l=e!=e?1:0,u=p):(u=i(a(e)/c),e*(s=o(2,-u))<1&&(u--,s*=2),(e+=u+m>=1?h/s:h*o(2,1-m))*s>=2&&(u++,s/=2),u+m>=p?(l=0,u=p):u+m>=1?(l=(e*s-1)*o(2,t),u+=m):(l=e*o(2,m-1)*o(2,t),u=0));t>=8;d[g++]=255&l,l/=256,t-=8);for(u=u<0;d[g++]=255&u,u/=256,f-=8);return d[--g]|=128*v,d},unpack:function(e,t){var n,r=e.length,i=8*r-t-1,a=(1<>1,u=i-7,l=r-1,s=e[l--],d=127&s;for(s>>=7;u>0;d=256*d+e[l],l--,u-=8);for(n=d&(1<<-u)-1,d>>=-u,u+=t;u>0;n=256*n+e[l],l--,u-=8);if(0===d)d=1-c;else{if(d===a)return n?NaN:s?-1/0:1/0;n+=o(2,t),d-=c}return(s?-1:1)*n*o(2,d-t)}}},function(e,t,n){"use strict";var r=n(0),o=n(7);r({target:"ArrayBuffer",stat:!0,forced:!o.NATIVE_ARRAY_BUFFER_VIEWS},{isView:o.isView})},function(e,t,n){"use strict";var r=n(0),o=n(2),i=n(76),a=n(6),c=n(40),u=n(8),l=n(44),s=i.ArrayBuffer,d=i.DataView,f=s.prototype.slice;r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:o((function(){return!new s(2).slice(1,undefined).byteLength}))},{slice:function(e,t){if(f!==undefined&&t===undefined)return f.call(a(this),e);for(var n=a(this).byteLength,r=c(e,n),o=c(t===undefined?n:t,n),i=new(l(this,s))(u(o-r)),p=new d(this),m=new d(i),h=0;r9999?"+":"";return n+o(i(e),n?6:4,0)+"-"+o(this.getUTCMonth()+1,2,0)+"-"+o(this.getUTCDate(),2,0)+"T"+o(this.getUTCHours(),2,0)+":"+o(this.getUTCMinutes(),2,0)+":"+o(this.getUTCSeconds(),2,0)+"."+o(t,3,0)+"Z"}:u},function(e,t,n){"use strict";var r=n(0),o=n(2),i=n(14),a=n(31);r({target:"Date",proto:!0,forced:o((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(e){var t=i(this),n=a(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},function(e,t,n){"use strict";var r=n(27),o=n(231),i=n(10)("toPrimitive"),a=Date.prototype;i in a||r(a,i,o)},function(e,t,n){"use strict";var r=n(6),o=n(31);e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return o(r(this),"number"!==e)}},function(e,t,n){"use strict";var r=n(21),o=Date.prototype,i=o.toString,a=o.getTime;new Date(NaN)+""!="Invalid Date"&&r(o,"toString",(function(){var e=a.call(this);return e==e?i.call(this):"Invalid Date"}))},function(e,t,n){"use strict";n(0)({target:"Function",proto:!0},{bind:n(145)})},function(e,t,n){"use strict";var r=n(4),o=n(12),i=n(33),a=n(10)("hasInstance"),c=Function.prototype;a in c||o.f(c,a,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;for(;e=i(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,n){"use strict";var r=n(5),o=n(12).f,i=Function.prototype,a=i.toString,c=/^\s*function ([^ (]*)/;r&&!("name"in i)&&o(i,"name",{configurable:!0,get:function(){try{return a.call(this).match(c)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var r=n(3);n(42)(r.JSON,"JSON",!0)},function(e,t,n){"use strict";var r=n(77),o=n(146);e.exports=r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}}),o)},function(e,t,n){"use strict";var r=n(0),o=n(147),i=Math.acosh,a=Math.log,c=Math.sqrt,u=Math.LN2;r({target:"Math",stat:!0,forced:!i||710!=Math.floor(i(Number.MAX_VALUE))||i(Infinity)!=Infinity},{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?a(e)+u:o(e-1+c(e-1)*c(e+1))}})},function(e,t,n){"use strict";var r=n(0),o=Math.asinh,i=Math.log,a=Math.sqrt;r({target:"Math",stat:!0,forced:!(o&&1/o(0)>0)},{asinh:function c(e){return isFinite(e=+e)&&0!=e?e<0?-c(-e):i(e+a(e*e+1)):e}})},function(e,t,n){"use strict";var r=n(0),o=Math.atanh,i=Math.log;r({target:"Math",stat:!0,forced:!(o&&1/o(-0)<0)},{atanh:function(e){return 0==(e=+e)?e:i((1+e)/(1-e))/2}})},function(e,t,n){"use strict";var r=n(0),o=n(106),i=Math.abs,a=Math.pow;r({target:"Math",stat:!0},{cbrt:function(e){return o(e=+e)*a(i(e),1/3)}})},function(e,t,n){"use strict";var r=n(0),o=Math.floor,i=Math.log,a=Math.LOG2E;r({target:"Math",stat:!0},{clz32:function(e){return(e>>>=0)?31-o(i(e+.5)*a):32}})},function(e,t,n){"use strict";var r=n(0),o=n(79),i=Math.cosh,a=Math.abs,c=Math.E;r({target:"Math",stat:!0,forced:!i||i(710)===Infinity},{cosh:function(e){var t=o(a(e)-1)+1;return(t+1/(t*c*c))*(c/2)}})},function(e,t,n){"use strict";var r=n(0),o=n(79);r({target:"Math",stat:!0,forced:o!=Math.expm1},{expm1:o})},function(e,t,n){"use strict";n(0)({target:"Math",stat:!0},{fround:n(246)})},function(e,t,n){"use strict";var r=n(106),o=Math.abs,i=Math.pow,a=i(2,-52),c=i(2,-23),u=i(2,127)*(2-c),l=i(2,-126);e.exports=Math.fround||function(e){var t,n,i=o(e),s=r(e);return iu||n!=n?s*Infinity:s*n}},function(e,t,n){"use strict";var r=n(0),o=Math.hypot,i=Math.abs,a=Math.sqrt;r({target:"Math",stat:!0,forced:!!o&&o(Infinity,NaN)!==Infinity},{hypot:function(e,t){for(var n,r,o=0,c=0,u=arguments.length,l=0;c0?(r=n/l)*r:n;return l===Infinity?Infinity:l*a(o)}})},function(e,t,n){"use strict";var r=n(0),o=n(2),i=Math.imul;r({target:"Math",stat:!0,forced:o((function(){return-5!=i(4294967295,5)||2!=i.length}))},{imul:function(e,t){var n=+e,r=+t,o=65535&n,i=65535&r;return 0|o*i+((65535&n>>>16)*i+o*(65535&r>>>16)<<16>>>0)}})},function(e,t,n){"use strict";var r=n(0),o=Math.log,i=Math.LOG10E;r({target:"Math",stat:!0},{log10:function(e){return o(e)*i}})},function(e,t,n){"use strict";n(0)({target:"Math",stat:!0},{log1p:n(147)})},function(e,t,n){"use strict";var r=n(0),o=Math.log,i=Math.LN2;r({target:"Math",stat:!0},{log2:function(e){return o(e)/i}})},function(e,t,n){"use strict";n(0)({target:"Math",stat:!0},{sign:n(106)})},function(e,t,n){"use strict";var r=n(0),o=n(2),i=n(79),a=Math.abs,c=Math.exp,u=Math.E;r({target:"Math",stat:!0,forced:o((function(){return-2e-17!=Math.sinh(-2e-17)}))},{sinh:function(e){return a(e=+e)<1?(i(e)-i(-e))/2:(c(e-1)-c(-e-1))*(u/2)}})},function(e,t,n){"use strict";var r=n(0),o=n(79),i=Math.exp;r({target:"Math",stat:!0},{tanh:function(e){var t=o(e=+e),n=o(-e);return t==Infinity?1:n==Infinity?-1:(t-n)/(i(e)+i(-e))}})},function(e,t,n){"use strict";n(42)(Math,"Math",!0)},function(e,t,n){"use strict";var r=n(0),o=Math.ceil,i=Math.floor;r({target:"Math",stat:!0},{trunc:function(e){return(e>0?i:o)(e)}})},function(e,t,n){"use strict";var r=n(5),o=n(3),i=n(60),a=n(21),c=n(16),u=n(30),l=n(78),s=n(31),d=n(2),f=n(41),p=n(46).f,m=n(19).f,h=n(12).f,v=n(54).trim,g=o.Number,b=g.prototype,y="Number"==u(f(b)),C=function(e){var t,n,r,o,i,a,c,u,l=s(e,!1);if("string"==typeof l&&l.length>2)if(43===(t=(l=v(l)).charCodeAt(0))||45===t){if(88===(n=l.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(l.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+l}for(a=(i=l.slice(2)).length,c=0;co)return NaN;return parseInt(i,r)}return+l};if(i("Number",!g(" 0o1")||!g("0b1")||g("+0x1"))){for(var N,x=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof x&&(y?d((function(){b.valueOf.call(n)})):"Number"!=u(n))?l(new g(C(t)),n,x):C(t)},V=r?p(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;V.length>w;w++)c(g,N=V[w])&&!c(x,N)&&h(x,N,m(g,N));x.prototype=b,b.constructor=x,a(o,"Number",x)}},function(e,t,n){"use strict";n(0)({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},function(e,t,n){"use strict";n(0)({target:"Number",stat:!0},{isFinite:n(260)})},function(e,t,n){"use strict";var r=n(3).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&r(e)}},function(e,t,n){"use strict";n(0)({target:"Number",stat:!0},{isInteger:n(148)})},function(e,t,n){"use strict";n(0)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},function(e,t,n){"use strict";var r=n(0),o=n(148),i=Math.abs;r({target:"Number",stat:!0},{isSafeInteger:function(e){return o(e)&&i(e)<=9007199254740991}})},function(e,t,n){"use strict";n(0)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){"use strict";n(0)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){"use strict";var r=n(0),o=n(267);r({target:"Number",stat:!0,forced:Number.parseFloat!=o},{parseFloat:o})},function(e,t,n){"use strict";var r=n(3),o=n(54).trim,i=n(80),a=r.parseFloat,c=1/a(i+"-0")!=-Infinity;e.exports=c?function(e){var t=o(String(e)),n=a(t);return 0===n&&"-"==t.charAt(0)?-0:n}:a},function(e,t,n){"use strict";var r=n(0),o=n(149);r({target:"Number",stat:!0,forced:Number.parseInt!=o},{parseInt:o})},function(e,t,n){"use strict";var r=n(0),o=n(28),i=n(270),a=n(105),c=n(2),u=1..toFixed,l=Math.floor,s=function d(e,t,n){return 0===t?n:t%2==1?d(e,t-1,n*e):d(e*e,t/2,n)};r({target:"Number",proto:!0,forced:u&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!c((function(){u.call({})}))},{toFixed:function(e){var t,n,r,c,u=i(this),d=o(e),f=[0,0,0,0,0,0],p="",m="0",h=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*f[n],f[n]=r%1e7,r=l(r/1e7)},v=function(e){for(var t=6,n=0;--t>=0;)n+=f[t],f[t]=l(n/e),n=n%e*1e7},g=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==f[e]){var n=String(f[e]);t=""===t?n:t+a.call("0",7-n.length)+n}return t};if(d<0||d>20)throw RangeError("Incorrect fraction digits");if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(p="-",u=-u),u>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(u*s(2,69,1))-69)<0?u*s(2,-t,1):u/s(2,t,1),n*=4503599627370496,(t=52-t)>0){for(h(0,n),r=d;r>=7;)h(1e7,0),r-=7;for(h(s(10,r,1),0),r=t-1;r>=23;)v(1<<23),r-=23;v(1<0?p+((c=m.length)<=d?"0."+a.call("0",d-c)+m:m.slice(0,c-d)+"."+m.slice(c-d)):p+m}})},function(e,t,n){"use strict";var r=n(30);e.exports=function(e){if("number"!=typeof e&&"Number"!=r(e))throw TypeError("Incorrect invocation");return+e}},function(e,t,n){"use strict";var r=n(0),o=n(272);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(e,t,n){"use strict";var r=n(5),o=n(2),i=n(61),a=n(94),c=n(70),u=n(14),l=n(56),s=Object.assign,d=Object.defineProperty;e.exports=!s||o((function(){if(r&&1!==s({b:1},s(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=s({},e)[n]||"abcdefghijklmnopqrst"!=i(s({},t)).join("")}))?function(e,t){for(var n=u(e),o=arguments.length,s=1,d=a.f,f=c.f;o>s;)for(var p,m=l(arguments[s++]),h=d?i(m).concat(d(m)):i(m),v=h.length,g=0;v>g;)p=h[g++],r&&!f.call(m,p)||(n[p]=m[p]);return n}:s},function(e,t,n){"use strict";n(0)({target:"Object",stat:!0,sham:!n(5)},{create:n(41)})},function(e,t,n){"use strict";var r=n(0),o=n(5),i=n(81),a=n(14),c=n(29),u=n(12);o&&r({target:"Object",proto:!0,forced:i},{__defineGetter__:function(e,t){u.f(a(this),e,{get:c(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";var r=n(0),o=n(5);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperties:n(133)})},function(e,t,n){"use strict";var r=n(0),o=n(5);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:n(12).f})},function(e,t,n){"use strict";var r=n(0),o=n(5),i=n(81),a=n(14),c=n(29),u=n(12);o&&r({target:"Object",proto:!0,forced:i},{__defineSetter__:function(e,t){u.f(a(this),e,{set:c(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";var r=n(0),o=n(150).entries;r({target:"Object",stat:!0},{entries:function(e){return o(e)}})},function(e,t,n){"use strict";var r=n(0),o=n(66),i=n(2),a=n(4),c=n(50).onFreeze,u=Object.freeze;r({target:"Object",stat:!0,forced:i((function(){u(1)})),sham:!o},{freeze:function(e){return u&&a(e)?u(c(e)):e}})},function(e,t,n){"use strict";var r=n(0),o=n(67),i=n(48);r({target:"Object",stat:!0},{fromEntries:function(e){var t={};return o(e,(function(e,n){i(t,e,n)}),undefined,!0),t}})},function(e,t,n){"use strict";var r=n(0),o=n(2),i=n(23),a=n(19).f,c=n(5),u=o((function(){a(1)}));r({target:"Object",stat:!0,forced:!c||u,sham:!c},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},function(e,t,n){"use strict";var r=n(0),o=n(5),i=n(92),a=n(23),c=n(19),u=n(48);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),o=c.f,l=i(r),s={},d=0;l.length>d;)(n=o(r,t=l[d++]))!==undefined&&u(s,t,n);return s}})},function(e,t,n){"use strict";var r=n(0),o=n(2),i=n(135).f;r({target:"Object",stat:!0,forced:o((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i})},function(e,t,n){"use strict";var r=n(0),o=n(2),i=n(14),a=n(33),c=n(102);r({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!c},{getPrototypeOf:function(e){return a(i(e))}})},function(e,t,n){"use strict";n(0)({target:"Object",stat:!0},{is:n(151)})},function(e,t,n){"use strict";var r=n(0),o=n(2),i=n(4),a=Object.isExtensible;r({target:"Object",stat:!0,forced:o((function(){a(1)}))},{isExtensible:function(e){return!!i(e)&&(!a||a(e))}})},function(e,t,n){"use strict";var r=n(0),o=n(2),i=n(4),a=Object.isFrozen;r({target:"Object",stat:!0,forced:o((function(){a(1)}))},{isFrozen:function(e){return!i(e)||!!a&&a(e)}})},function(e,t,n){"use strict";var r=n(0),o=n(2),i=n(4),a=Object.isSealed;r({target:"Object",stat:!0,forced:o((function(){a(1)}))},{isSealed:function(e){return!i(e)||!!a&&a(e)}})},function(e,t,n){"use strict";var r=n(0),o=n(14),i=n(61);r({target:"Object",stat:!0,forced:n(2)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},function(e,t,n){"use strict";var r=n(0),o=n(5),i=n(81),a=n(14),c=n(31),u=n(33),l=n(19).f;o&&r({target:"Object",proto:!0,forced:i},{__lookupGetter__:function(e){var t,n=a(this),r=c(e,!0);do{if(t=l(n,r))return t.get}while(n=u(n))}})},function(e,t,n){"use strict";var r=n(0),o=n(5),i=n(81),a=n(14),c=n(31),u=n(33),l=n(19).f;o&&r({target:"Object",proto:!0,forced:i},{__lookupSetter__:function(e){var t,n=a(this),r=c(e,!0);do{if(t=l(n,r))return t.set}while(n=u(n))}})},function(e,t,n){"use strict";var r=n(0),o=n(4),i=n(50).onFreeze,a=n(66),c=n(2),u=Object.preventExtensions;r({target:"Object",stat:!0,forced:c((function(){u(1)})),sham:!a},{preventExtensions:function(e){return u&&o(e)?u(i(e)):e}})},function(e,t,n){"use strict";var r=n(0),o=n(4),i=n(50).onFreeze,a=n(66),c=n(2),u=Object.seal;r({target:"Object",stat:!0,forced:c((function(){u(1)})),sham:!a},{seal:function(e){return u&&o(e)?u(i(e)):e}})},function(e,t,n){"use strict";n(0)({target:"Object",stat:!0},{setPrototypeOf:n(49)})},function(e,t,n){"use strict";var r=n(100),o=n(21),i=n(296);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(e,t,n){"use strict";var r=n(100),o=n(73);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(e,t,n){"use strict";var r=n(0),o=n(150).values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},function(e,t,n){"use strict";var r=n(0),o=n(149);r({global:!0,forced:parseInt!=o},{parseInt:o})},function(e,t,n){"use strict";var r,o,i,a,c=n(0),u=n(37),l=n(3),s=n(35),d=n(152),f=n(21),p=n(65),m=n(42),h=n(52),v=n(4),g=n(29),b=n(53),y=n(30),C=n(90),N=n(67),x=n(74),V=n(44),w=n(107).set,_=n(154),k=n(155),S=n(300),E=n(156),B=n(301),L=n(32),I=n(60),O=n(10),T=n(96),A=O("species"),M="Promise",j=L.get,P=L.set,R=L.getterFor(M),F=d,D=l.TypeError,z=l.document,K=l.process,U=s("fetch"),W=E.f,Y=W,H="process"==y(K),$=!!(z&&z.createEvent&&l.dispatchEvent),G=I(M,(function(){if(!(C(F)!==String(F))){if(66===T)return!0;if(!H&&"function"!=typeof PromiseRejectionEvent)return!0}if(u&&!F.prototype["finally"])return!0;if(T>=51&&/native code/.test(F))return!1;var e=F.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[A]=t,!(e.then((function(){}))instanceof t)})),q=G||!x((function(e){F.all(e)["catch"]((function(){}))})),X=function(e){var t;return!(!v(e)||"function"!=typeof(t=e.then))&&t},Q=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;_((function(){for(var o=t.value,i=1==t.state,a=0;r.length>a;){var c,u,l,s=r[a++],d=i?s.ok:s.fail,f=s.resolve,p=s.reject,m=s.domain;try{d?(i||(2===t.rejection&&te(e,t),t.rejection=1),!0===d?c=o:(m&&m.enter(),c=d(o),m&&(m.exit(),l=!0)),c===s.promise?p(D("Promise-chain cycle")):(u=X(c))?u.call(c,f,p):f(c)):p(o)}catch(h){m&&!l&&m.exit(),p(h)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&Z(e,t)}))}},J=function(e,t,n){var r,o;$?((r=z.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),l.dispatchEvent(r)):r={promise:t,reason:n},(o=l["on"+e])?o(r):"unhandledrejection"===e&&S("Unhandled promise rejection",n)},Z=function(e,t){w.call(l,(function(){var n,r=t.value;if(ee(t)&&(n=B((function(){H?K.emit("unhandledRejection",r,e):J("unhandledrejection",e,r)})),t.rejection=H||ee(t)?2:1,n.error))throw n.value}))},ee=function(e){return 1!==e.rejection&&!e.parent},te=function(e,t){w.call(l,(function(){H?K.emit("rejectionHandled",e):J("rejectionhandled",e,t.value)}))},ne=function(e,t,n,r){return function(o){e(t,n,o,r)}},re=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,Q(e,t,!0))},oe=function ie(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw D("Promise can't be resolved itself");var o=X(n);o?_((function(){var r={done:!1};try{o.call(n,ne(ie,e,r,t),ne(re,e,r,t))}catch(i){re(e,r,i,t)}})):(t.value=n,t.state=1,Q(e,t,!1))}catch(i){re(e,{done:!1},i,t)}}};G&&(F=function(e){b(this,F,M),g(e),r.call(this);var t=j(this);try{e(ne(oe,this,t),ne(re,this,t))}catch(n){re(this,t,n)}},(r=function(e){P(this,{type:M,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:undefined})}).prototype=p(F.prototype,{then:function(e,t){var n=R(this),r=W(V(this,F));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=H?K.domain:undefined,n.parent=!0,n.reactions.push(r),0!=n.state&&Q(this,n,!1),r.promise},"catch":function(e){return this.then(undefined,e)}}),o=function(){var e=new r,t=j(e);this.promise=e,this.resolve=ne(oe,e,t),this.reject=ne(re,e,t)},E.f=W=function(e){return e===F||e===i?new o(e):Y(e)},u||"function"!=typeof d||(a=d.prototype.then,f(d.prototype,"then",(function(e,t){var n=this;return new F((function(e,t){a.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof U&&c({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return k(F,U.apply(l,arguments))}}))),c({global:!0,wrap:!0,forced:G},{Promise:F}),m(F,M,!1,!0),h(M),i=s(M),c({target:M,stat:!0,forced:G},{reject:function(e){var t=W(this);return t.reject.call(undefined,e),t.promise}}),c({target:M,stat:!0,forced:u||G},{resolve:function(e){return k(u&&this===i?F:this,e)}}),c({target:M,stat:!0,forced:q},{all:function(e){var t=this,n=W(t),r=n.resolve,o=n.reject,i=B((function(){var n=g(t.resolve),i=[],a=0,c=1;N(e,(function(e){var u=a++,l=!1;i.push(undefined),c++,n.call(t,e).then((function(e){l||(l=!0,i[u]=e,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=W(t),r=n.reject,o=B((function(){var o=g(t.resolve);N(e,(function(e){o.call(t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},function(e,t,n){"use strict";var r=n(3);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t,n){"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},function(e,t,n){"use strict";var r=n(0),o=n(37),i=n(152),a=n(2),c=n(35),u=n(44),l=n(155),s=n(21);r({target:"Promise",proto:!0,real:!0,forced:!!i&&a((function(){i.prototype["finally"].call({then:function(){}},(function(){}))}))},{"finally":function(e){var t=u(this,c("Promise")),n="function"==typeof e;return this.then(n?function(n){return l(t,e()).then((function(){return n}))}:e,n?function(n){return l(t,e()).then((function(){throw n}))}:e)}}),o||"function"!=typeof i||i.prototype["finally"]||s(i.prototype,"finally",c("Promise").prototype["finally"])},function(e,t,n){"use strict";var r=n(0),o=n(35),i=n(29),a=n(6),c=n(2),u=o("Reflect","apply"),l=Function.apply;r({target:"Reflect",stat:!0,forced:!c((function(){u((function(){}))}))},{apply:function(e,t,n){return i(e),a(n),u?u(e,t,n):l.call(e,t,n)}})},function(e,t,n){"use strict";var r=n(0),o=n(35),i=n(29),a=n(6),c=n(4),u=n(41),l=n(145),s=n(2),d=o("Reflect","construct"),f=s((function(){function e(){}return!(d((function(){}),[],e)instanceof e)})),p=!s((function(){d((function(){}))})),m=f||p;r({target:"Reflect",stat:!0,forced:m,sham:m},{construct:function(e,t){i(e),a(t);var n=arguments.length<3?e:i(arguments[2]);if(p&&!f)return d(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(l.apply(e,r))}var o=n.prototype,s=u(c(o)?o:Object.prototype),m=Function.apply.call(e,s,t);return c(m)?m:s}})},function(e,t,n){"use strict";var r=n(0),o=n(5),i=n(6),a=n(31),c=n(12);r({target:"Reflect",stat:!0,forced:n(2)((function(){Reflect.defineProperty(c.f({},1,{value:1}),1,{value:2})})),sham:!o},{defineProperty:function(e,t,n){i(e);var r=a(t,!0);i(n);try{return c.f(e,r,n),!0}catch(o){return!1}}})},function(e,t,n){"use strict";var r=n(0),o=n(6),i=n(19).f;r({target:"Reflect",stat:!0},{deleteProperty:function(e,t){var n=i(o(e),t);return!(n&&!n.configurable)&&delete e[t]}})},function(e,t,n){"use strict";var r=n(0),o=n(4),i=n(6),a=n(16),c=n(19),u=n(33);r({target:"Reflect",stat:!0},{get:function l(e,t){var n,r,s=arguments.length<3?e:arguments[2];return i(e)===s?e[t]:(n=c.f(e,t))?a(n,"value")?n.value:n.get===undefined?undefined:n.get.call(s):o(r=u(e))?l(r,t,s):void 0}})},function(e,t,n){"use strict";var r=n(0),o=n(5),i=n(6),a=n(19);r({target:"Reflect",stat:!0,sham:!o},{getOwnPropertyDescriptor:function(e,t){return a.f(i(e),t)}})},function(e,t,n){"use strict";var r=n(0),o=n(6),i=n(33);r({target:"Reflect",stat:!0,sham:!n(102)},{getPrototypeOf:function(e){return i(o(e))}})},function(e,t,n){"use strict";n(0)({target:"Reflect",stat:!0},{has:function(e,t){return t in e}})},function(e,t,n){"use strict";var r=n(0),o=n(6),i=Object.isExtensible;r({target:"Reflect",stat:!0},{isExtensible:function(e){return o(e),!i||i(e)}})},function(e,t,n){"use strict";n(0)({target:"Reflect",stat:!0},{ownKeys:n(92)})},function(e,t,n){"use strict";var r=n(0),o=n(35),i=n(6);r({target:"Reflect",stat:!0,sham:!n(66)},{preventExtensions:function(e){i(e);try{var t=o("Object","preventExtensions");return t&&t(e),!0}catch(n){return!1}}})},function(e,t,n){"use strict";var r=n(0),o=n(6),i=n(4),a=n(16),c=n(2),u=n(12),l=n(19),s=n(33),d=n(45);r({target:"Reflect",stat:!0,forced:c((function(){var e=u.f({},"a",{configurable:!0});return!1!==Reflect.set(s(e),"a",1,e)}))},{set:function f(e,t,n){var r,c,p=arguments.length<4?e:arguments[3],m=l.f(o(e),t);if(!m){if(i(c=s(e)))return f(c,t,n,p);m=d(0)}if(a(m,"value")){if(!1===m.writable||!i(p))return!1;if(r=l.f(p,t)){if(r.get||r.set||!1===r.writable)return!1;r.value=n,u.f(p,t,r)}else u.f(p,t,d(0,n));return!0}return m.set!==undefined&&(m.set.call(p,n),!0)}})},function(e,t,n){"use strict";var r=n(0),o=n(6),i=n(142),a=n(49);a&&r({target:"Reflect",stat:!0},{setPrototypeOf:function(e,t){o(e),i(t);try{return a(e,t),!0}catch(n){return!1}}})},function(e,t,n){"use strict";var r=n(5),o=n(3),i=n(60),a=n(78),c=n(12).f,u=n(46).f,l=n(108),s=n(82),d=n(109),f=n(21),p=n(2),m=n(32).set,h=n(52),v=n(10)("match"),g=o.RegExp,b=g.prototype,y=/a/g,C=/a/g,N=new g(y)!==y,x=d.UNSUPPORTED_Y;if(r&&i("RegExp",!N||x||p((function(){return C[v]=!1,g(y)!=y||g(C)==C||"/a/i"!=g(y,"i")})))){for(var V=function(e,t){var n,r=this instanceof V,o=l(e),i=t===undefined;if(!r&&o&&e.constructor===V&&i)return e;N?o&&!i&&(e=e.source):e instanceof V&&(i&&(t=s.call(e)),e=e.source),x&&(n=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var c=a(N?new g(e,t):g(e,t),r?this:b,V);return x&&n&&m(c,{sticky:n}),c},w=function(e){e in V||c(V,e,{configurable:!0,get:function(){return g[e]},set:function(t){g[e]=t}})},_=u(g),k=0;_.length>k;)w(_[k++]);b.constructor=V,V.prototype=b,f(o,"RegExp",V)}h("RegExp")},function(e,t,n){"use strict";var r=n(5),o=n(12),i=n(82),a=n(109).UNSUPPORTED_Y;r&&("g"!=/./g.flags||a)&&o.f(RegExp.prototype,"flags",{configurable:!0,get:i})},function(e,t,n){"use strict";var r=n(21),o=n(6),i=n(2),a=n(82),c=RegExp.prototype,u=c.toString,l=i((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),s="toString"!=u.name;(l||s)&&r(RegExp.prototype,"toString",(function(){var e=o(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(n===undefined&&e instanceof RegExp&&!("flags"in c)?a.call(e):n)}),{unsafe:!0})},function(e,t,n){"use strict";var r=n(77),o=n(146);e.exports=r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}}),o)},function(e,t,n){"use strict";var r=n(0),o=n(110).codeAt;r({target:"String",proto:!0},{codePointAt:function(e){return o(this,e)}})},function(e,t,n){"use strict";var r,o=n(0),i=n(19).f,a=n(8),c=n(111),u=n(20),l=n(112),s=n(37),d="".endsWith,f=Math.min,p=l("endsWith");o({target:"String",proto:!0,forced:!!(s||p||(r=i(String.prototype,"endsWith"),!r||r.writable))&&!p},{endsWith:function(e){var t=String(u(this));c(e);var n=arguments.length>1?arguments[1]:undefined,r=a(t.length),o=n===undefined?r:f(a(n),r),i=String(e);return d?d.call(t,i,o):t.slice(o-i.length,o)===i}})},function(e,t,n){"use strict";var r=n(0),o=n(40),i=String.fromCharCode,a=String.fromCodePoint;r({target:"String",stat:!0,forced:!!a&&1!=a.length},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,a=0;r>a;){if(t=+arguments[a++],o(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){"use strict";var r=n(0),o=n(111),i=n(20);r({target:"String",proto:!0,forced:!n(112)("includes")},{includes:function(e){return!!~String(i(this)).indexOf(o(e),arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var r=n(110).charAt,o=n(32),i=n(101),a=o.set,c=o.getterFor("String Iterator");i(String,"String",(function(e){a(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=c(this),n=t.string,o=t.index;return o>=n.length?{value:undefined,done:!0}:(e=r(n,o),t.index+=e.length,{value:e,done:!1})}))},function(e,t,n){"use strict";var r=n(84),o=n(6),i=n(8),a=n(20),c=n(113),u=n(85);r("match",1,(function(e,t,n){return[function(t){var n=a(this),r=t==undefined?undefined:t[e];return r!==undefined?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var a=o(e),l=String(this);if(!a.global)return u(a,l);var s=a.unicode;a.lastIndex=0;for(var d,f=[],p=0;null!==(d=u(a,l));){var m=String(d[0]);f[p]=m,""===m&&(a.lastIndex=c(l,i(a.lastIndex),s)),p++}return 0===p?null:f}]}))},function(e,t,n){"use strict";var r=n(0),o=n(104).end;r({target:"String",proto:!0,forced:n(158)},{padEnd:function(e){return o(this,e,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var r=n(0),o=n(104).start;r({target:"String",proto:!0,forced:n(158)},{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:undefined)}})},function(e,t,n){"use strict";var r=n(0),o=n(23),i=n(8);r({target:"String",stat:!0},{raw:function(e){for(var t=o(e.raw),n=i(t.length),r=arguments.length,a=[],c=0;n>c;)a.push(String(t[c++])),c]*>)/g,h=/\$([$&'`]|\d\d?)/g;r("replace",2,(function(e,t,n,r){var v=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,g=r.REPLACE_KEEPS_$0,b=v?"$":"$0";return[function(n,r){var o=u(this),i=n==undefined?undefined:n[e];return i!==undefined?i.call(n,o,r):t.call(String(o),n,r)},function(e,r){if(!v&&g||"string"==typeof r&&-1===r.indexOf(b)){var i=n(t,e,this,r);if(i.done)return i.value}var u=o(e),p=String(this),m="function"==typeof r;m||(r=String(r));var h=u.global;if(h){var C=u.unicode;u.lastIndex=0}for(var N=[];;){var x=s(u,p);if(null===x)break;if(N.push(x),!h)break;""===String(x[0])&&(u.lastIndex=l(p,a(u.lastIndex),C))}for(var V,w="",_=0,k=0;k=_&&(w+=p.slice(_,E)+T,_=E+S.length)}return w+p.slice(_)}];function y(e,n,r,o,a,c){var u=r+e.length,l=o.length,s=h;return a!==undefined&&(a=i(a),s=m),t.call(c,s,(function(t,i){var c;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(u);case"<":c=a[i.slice(1,-1)];break;default:var s=+i;if(0===s)return t;if(s>l){var d=p(s/10);return 0===d?t:d<=l?o[d-1]===undefined?i.charAt(1):o[d-1]+i.charAt(1):t}c=o[s-1]}return c===undefined?"":c}))}}))},function(e,t,n){"use strict";var r=n(84),o=n(6),i=n(20),a=n(151),c=n(85);r("search",1,(function(e,t,n){return[function(t){var n=i(this),r=t==undefined?undefined:t[e];return r!==undefined?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var i=o(e),u=String(this),l=i.lastIndex;a(l,0)||(i.lastIndex=0);var s=c(i,u);return a(i.lastIndex,l)||(i.lastIndex=l),null===s?-1:s.index}]}))},function(e,t,n){"use strict";var r=n(84),o=n(108),i=n(6),a=n(20),c=n(44),u=n(113),l=n(8),s=n(85),d=n(83),f=n(2),p=[].push,m=Math.min,h=!f((function(){return!RegExp(4294967295,"y")}));r("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(a(this)),i=n===undefined?4294967295:n>>>0;if(0===i)return[];if(e===undefined)return[r];if(!o(e))return t.call(r,e,i);for(var c,u,l,s=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,h=new RegExp(e.source,f+"g");(c=d.call(h,r))&&!((u=h.lastIndex)>m&&(s.push(r.slice(m,c.index)),c.length>1&&c.index=i));)h.lastIndex===c.index&&h.lastIndex++;return m===r.length?!l&&h.test("")||s.push(""):s.push(r.slice(m)),s.length>i?s.slice(0,i):s}:"0".split(undefined,0).length?function(e,n){return e===undefined&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=a(this),i=t==undefined?undefined:t[e];return i!==undefined?i.call(t,o,n):r.call(String(o),t,n)},function(e,o){var a=n(r,e,this,o,r!==t);if(a.done)return a.value;var d=i(e),f=String(this),p=c(d,RegExp),v=d.unicode,g=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(h?"y":"g"),b=new p(h?d:"^(?:"+d.source+")",g),y=o===undefined?4294967295:o>>>0;if(0===y)return[];if(0===f.length)return null===s(b,f)?[f]:[];for(var C=0,N=0,x=[];N1?arguments[1]:undefined,t.length)),r=String(e);return d?d.call(t,r,n):t.slice(n,n+r.length)===r}})},function(e,t,n){"use strict";var r=n(0),o=n(54).trim;r({target:"String",proto:!0,forced:n(114)("trim")},{trim:function(){return o(this)}})},function(e,t,n){"use strict";var r=n(0),o=n(54).end,i=n(114)("trimEnd"),a=i?function(){return o(this)}:"".trimEnd;r({target:"String",proto:!0,forced:i},{trimEnd:a,trimRight:a})},function(e,t,n){"use strict";var r=n(0),o=n(54).start,i=n(114)("trimStart"),a=i?function(){return o(this)}:"".trimStart;r({target:"String",proto:!0,forced:i},{trimStart:a,trimLeft:a})},function(e,t,n){"use strict";var r=n(0),o=n(25);r({target:"String",proto:!0,forced:n(26)("anchor")},{anchor:function(e){return o(this,"a","name",e)}})},function(e,t,n){"use strict";var r=n(0),o=n(25);r({target:"String",proto:!0,forced:n(26)("big")},{big:function(){return o(this,"big","","")}})},function(e,t,n){"use strict";var r=n(0),o=n(25);r({target:"String",proto:!0,forced:n(26)("blink")},{blink:function(){return o(this,"blink","","")}})},function(e,t,n){"use strict";var r=n(0),o=n(25);r({target:"String",proto:!0,forced:n(26)("bold")},{bold:function(){return o(this,"b","","")}})},function(e,t,n){"use strict";var r=n(0),o=n(25);r({target:"String",proto:!0,forced:n(26)("fixed")},{fixed:function(){return o(this,"tt","","")}})},function(e,t,n){"use strict";var r=n(0),o=n(25);r({target:"String",proto:!0,forced:n(26)("fontcolor")},{fontcolor:function(e){return o(this,"font","color",e)}})},function(e,t,n){"use strict";var r=n(0),o=n(25);r({target:"String",proto:!0,forced:n(26)("fontsize")},{fontsize:function(e){return o(this,"font","size",e)}})},function(e,t,n){"use strict";var r=n(0),o=n(25);r({target:"String",proto:!0,forced:n(26)("italics")},{italics:function(){return o(this,"i","","")}})},function(e,t,n){"use strict";var r=n(0),o=n(25);r({target:"String",proto:!0,forced:n(26)("link")},{link:function(e){return o(this,"a","href",e)}})},function(e,t,n){"use strict";var r=n(0),o=n(25);r({target:"String",proto:!0,forced:n(26)("small")},{small:function(){return o(this,"small","","")}})},function(e,t,n){"use strict";var r=n(0),o=n(25);r({target:"String",proto:!0,forced:n(26)("strike")},{strike:function(){return o(this,"strike","","")}})},function(e,t,n){"use strict";var r=n(0),o=n(25);r({target:"String",proto:!0,forced:n(26)("sub")},{sub:function(){return o(this,"sub","","")}})},function(e,t,n){"use strict";var r=n(0),o=n(25);r({target:"String",proto:!0,forced:n(26)("sup")},{sup:function(){return o(this,"sup","","")}})},function(e,t,n){"use strict";n(39)("Float32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){"use strict";var r=n(28);e.exports=function(e){var t=r(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},function(e,t,n){"use strict";n(39)("Float64",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){"use strict";n(39)("Int8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){"use strict";n(39)("Int16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){"use strict";n(39)("Int32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){"use strict";n(39)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){"use strict";n(39)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0)},function(e,t,n){"use strict";n(39)("Uint16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){"use strict";n(39)("Uint32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){"use strict";var r=n(7),o=n(137),i=r.aTypedArray;(0,r.exportTypedArrayMethod)("copyWithin",(function(e,t){return o.call(i(this),e,t,arguments.length>2?arguments[2]:undefined)}))},function(e,t,n){"use strict";var r=n(7),o=n(18).every,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("every",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var r=n(7),o=n(97),i=r.aTypedArray;(0,r.exportTypedArrayMethod)("fill",(function(e){return o.apply(i(this),arguments)}))},function(e,t,n){"use strict";var r=n(7),o=n(18).filter,i=n(44),a=r.aTypedArray,c=r.aTypedArrayConstructor;(0,r.exportTypedArrayMethod)("filter",(function(e){for(var t=o(a(this),e,arguments.length>1?arguments[1]:undefined),n=i(this,this.constructor),r=0,u=t.length,l=new(c(n))(u);u>r;)l[r]=t[r++];return l}))},function(e,t,n){"use strict";var r=n(7),o=n(18).find,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("find",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var r=n(7),o=n(18).findIndex,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("findIndex",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var r=n(7),o=n(18).forEach,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("forEach",(function(e){o(i(this),e,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var r=n(115);(0,n(7).exportTypedArrayStaticMethod)("from",n(160),r)},function(e,t,n){"use strict";var r=n(7),o=n(59).includes,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("includes",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var r=n(7),o=n(59).indexOf,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("indexOf",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var r=n(3),o=n(7),i=n(140),a=n(10)("iterator"),c=r.Uint8Array,u=i.values,l=i.keys,s=i.entries,d=o.aTypedArray,f=o.exportTypedArrayMethod,p=c&&c.prototype[a],m=!!p&&("values"==p.name||p.name==undefined),h=function(){return u.call(d(this))};f("entries",(function(){return s.call(d(this))})),f("keys",(function(){return l.call(d(this))})),f("values",h,!m),f(a,h,!m)},function(e,t,n){"use strict";var r=n(7),o=r.aTypedArray,i=r.exportTypedArrayMethod,a=[].join;i("join",(function(e){return a.apply(o(this),arguments)}))},function(e,t,n){"use strict";var r=n(7),o=n(143),i=r.aTypedArray;(0,r.exportTypedArrayMethod)("lastIndexOf",(function(e){return o.apply(i(this),arguments)}))},function(e,t,n){"use strict";var r=n(7),o=n(18).map,i=n(44),a=r.aTypedArray,c=r.aTypedArrayConstructor;(0,r.exportTypedArrayMethod)("map",(function(e){return o(a(this),e,arguments.length>1?arguments[1]:undefined,(function(e,t){return new(c(i(e,e.constructor)))(t)}))}))},function(e,t,n){"use strict";var r=n(7),o=n(115),i=r.aTypedArrayConstructor;(0,r.exportTypedArrayStaticMethod)("of",(function(){for(var e=0,t=arguments.length,n=new(i(this))(t);t>e;)n[e]=arguments[e++];return n}),o)},function(e,t,n){"use strict";var r=n(7),o=n(75).left,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduce",(function(e){return o(i(this),e,arguments.length,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var r=n(7),o=n(75).right,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduceRight",(function(e){return o(i(this),e,arguments.length,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var r=n(7),o=r.aTypedArray,i=r.exportTypedArrayMethod,a=Math.floor;i("reverse",(function(){for(var e,t=o(this).length,n=a(t/2),r=0;r1?arguments[1]:undefined,1),n=this.length,r=a(e),c=o(r.length),l=0;if(c+t>n)throw RangeError("Wrong length");for(;li;)s[i]=n[i++];return s}),i((function(){new Int8Array(1).slice()})))},function(e,t,n){"use strict";var r=n(7),o=n(18).some,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("some",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:undefined)}))},function(e,t,n){"use strict";var r=n(7),o=r.aTypedArray,i=r.exportTypedArrayMethod,a=[].sort;i("sort",(function(e){return a.call(o(this),e)}))},function(e,t,n){"use strict";var r=n(7),o=n(8),i=n(40),a=n(44),c=r.aTypedArray;(0,r.exportTypedArrayMethod)("subarray",(function(e,t){var n=c(this),r=n.length,u=i(e,r);return new(a(n,n.constructor))(n.buffer,n.byteOffset+u*n.BYTES_PER_ELEMENT,o((t===undefined?r:i(t,r))-u))}))},function(e,t,n){"use strict";var r=n(3),o=n(7),i=n(2),a=r.Int8Array,c=o.aTypedArray,u=o.exportTypedArrayMethod,l=[].toLocaleString,s=[].slice,d=!!a&&i((function(){l.call(new a(1))}));u("toLocaleString",(function(){return l.apply(d?s.call(c(this)):c(this),arguments)}),i((function(){return[1,2].toLocaleString()!=new a([1,2]).toLocaleString()}))||!i((function(){a.prototype.toLocaleString.call([1,2])})))},function(e,t,n){"use strict";var r=n(7).exportTypedArrayMethod,o=n(2),i=n(3).Uint8Array,a=i&&i.prototype||{},c=[].toString,u=[].join;o((function(){c.call({})}))&&(c=function(){return u.call(this)});var l=a.toString!=c;r("toString",c,l)},function(e,t,n){"use strict";var r,o=n(3),i=n(65),a=n(50),c=n(77),u=n(161),l=n(4),s=n(32).enforce,d=n(128),f=!o.ActiveXObject&&"ActiveXObject"in o,p=Object.isExtensible,m=function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}},h=e.exports=c("WeakMap",m,u);if(d&&f){r=u.getConstructor(m,"WeakMap",!0),a.REQUIRED=!0;var v=h.prototype,g=v["delete"],b=v.has,y=v.get,C=v.set;i(v,{"delete":function(e){if(l(e)&&!p(e)){var t=s(this);return t.frozen||(t.frozen=new r),g.call(this,e)||t.frozen["delete"](e)}return g.call(this,e)},has:function(e){if(l(e)&&!p(e)){var t=s(this);return t.frozen||(t.frozen=new r),b.call(this,e)||t.frozen.has(e)}return b.call(this,e)},get:function(e){if(l(e)&&!p(e)){var t=s(this);return t.frozen||(t.frozen=new r),b.call(this,e)?y.call(this,e):t.frozen.get(e)}return y.call(this,e)},set:function(e,t){if(l(e)&&!p(e)){var n=s(this);n.frozen||(n.frozen=new r),b.call(this,e)?C.call(this,e,t):n.frozen.set(e,t)}else C.call(this,e,t);return this}})}},function(e,t,n){"use strict";n(77)("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}}),n(161))},function(e,t,n){"use strict";var r=n(0),o=n(3),i=n(107);r({global:!0,bind:!0,enumerable:!0,forced:!o.setImmediate||!o.clearImmediate},{setImmediate:i.set,clearImmediate:i.clear})},function(e,t,n){"use strict";var r=n(0),o=n(3),i=n(154),a=n(30),c=o.process,u="process"==a(c);r({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(e){var t=u&&c.domain;i(t?t.bind(e):e)}})},function(e,t,n){"use strict";var r=n(0),o=n(3),i=n(72),a=[].slice,c=function(e){return function(t,n){var r=arguments.length>2,o=r?a.call(arguments,2):undefined;return e(r?function(){("function"==typeof t?t:Function(t)).apply(this,o)}:t,n)}};r({global:!0,bind:!0,forced:/MSIE .\./.test(i)},{setTimeout:c(o.setTimeout),setInterval:c(o.setInterval)})},function(e,t,n){"use strict";t.__esModule=!0,t._CI=Ee,t._HI=P,t._M=Be,t._MCCC=Te,t._ME=Ie,t._MFCC=Ae,t._MP=ke,t._MR=be,t.__render=Fe,t.createComponentVNode=function(e,t,n,r,o){var a=new B(1,null,null,e=function(e,t){if(12&e)return e;if(t.prototype&&t.prototype.render)return 4;if(t.render)return 32776;return 8}(e,t),r,function(e,t,n){var r=(32768&e?t.render:t).defaultProps;if(i(r))return n;if(i(n))return s(r,null);return S(n,r)}(e,t,n),function(e,t,n){if(4&e)return n;var r=(32768&e?t.render:t).defaultHooks;if(i(r))return n;if(i(n))return r;return S(n,r)}(e,t,o),t);w.createVNode&&w.createVNode(a);return a},t.createFragment=O,t.createPortal=function(e,t){var n=P(e);return L(1024,1024,null,n,0,null,n.key,t)},t.createRef=function(){return{current:null}},t.createRenderer=function(e){return function(t,n,r,o){e||(e=t),De(n,e,r,o)}},t.createTextVNode=I,t.createVNode=L,t.directClone=T,t.findDOMfromVNode=y,t.forwardRef=function(e){return{render:e}},t.getFlagsForElementVnode=function(e){switch(e){case"svg":return 32;case"input":return 64;case"select":return 256;case"textarea":return 128;case"$F":return 8192;default:return 1}},t.linkEvent=function(e,t){if(c(t))return{data:e,event:t};return null},t.normalizeProps=function(e){var t=e.props;if(t){var n=e.flags;481&n&&(void 0!==t.children&&i(e.children)&&j(e,t.children),void 0!==t.className&&(e.className=t.className||null,t.className=undefined)),void 0!==t.key&&(e.key=t.key,t.key=undefined),void 0!==t.ref&&(e.ref=8&n?s(e.ref,t.ref):t.ref,t.ref=undefined)}return e},t.render=De,t.rerender=He,t.version=t.options=t.Fragment=t.EMPTY_OBJ=t.Component=void 0;var r=Array.isArray;function o(e){var t=typeof e;return"string"===t||"number"===t}function i(e){return null==e}function a(e){return null===e||!1===e||!0===e||void 0===e}function c(e){return"function"==typeof e}function u(e){return"string"==typeof e}function l(e){return null===e}function s(e,t){var n={};if(e)for(var r in e)n[r]=e[r];if(t)for(var o in t)n[o]=t[o];return n}function d(e){return!l(e)&&"object"==typeof e}var f={};t.EMPTY_OBJ=f;function p(e){return e.substr(2).toLowerCase()}function m(e,t){e.appendChild(t)}function h(e,t,n){l(n)?m(e,t):e.insertBefore(t,n)}function v(e,t){e.removeChild(t)}function g(e){for(var t=0;t0,m=l(f),h=u(f)&&"$"===f[0];p||m||h?(n=n||t.slice(0,s),(p||h)&&(d=T(d)),(m||h)&&(d.key="$"+s),n.push(d)):n&&n.push(d),d.flags|=65536}}i=0===(n=n||t).length?1:8}else(n=t).flags|=65536,81920&t.flags&&(n=T(t)),i=2;return e.children=n,e.childFlags=i,e}function P(e){return a(e)||o(e)?I(e,null):r(e)?O(e,0,null):16384&e.flags?T(e):e}var R="http://www.w3.org/1999/xlink",F="http://www.w3.org/XML/1998/namespace",D={"xlink:actuate":R,"xlink:arcrole":R,"xlink:href":R,"xlink:role":R,"xlink:show":R,"xlink:title":R,"xlink:type":R,"xml:base":F,"xml:lang":F,"xml:space":F};function z(e){return{onClick:e,onDblClick:e,onFocusIn:e,onFocusOut:e,onKeyDown:e,onKeyPress:e,onKeyUp:e,onMouseDown:e,onMouseMove:e,onMouseUp:e,onTouchEnd:e,onTouchMove:e,onTouchStart:e}}var K=z(0),U=z(null),W=z(!0);function Y(e,t){var n=t.$EV;return n||(n=t.$EV=z(null)),n[e]||1==++K[e]&&(U[e]=function(e){var t="onClick"===e||"onDblClick"===e?function(e){return function(t){0===t.button?$(t,!0,e,Q(t)):t.stopPropagation()}}(e):function(e){return function(t){$(t,!1,e,Q(t))}}(e);return document.addEventListener(p(e),t),t}(e)),n}function H(e,t){var n=t.$EV;n&&n[e]&&(0==--K[e]&&(document.removeEventListener(p(e),U[e]),U[e]=null),n[e]=null)}function $(e,t,n,r){var o=function(e){return c(e.composedPath)?e.composedPath()[0]:e.target}(e);do{if(t&&o.disabled)return;var i=o.$EV;if(i){var a=i[n];if(a&&(r.dom=o,a.event?a.event(a.data,e):a(e),e.cancelBubble))return}o=o.parentNode}while(!l(o))}function G(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function q(){return this.defaultPrevented}function X(){return this.cancelBubble}function Q(e){var t={dom:document};return e.isDefaultPrevented=q,e.isPropagationStopped=X,e.stopPropagation=G,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return t.dom}}),t}function J(e,t,n){if(e[t]){var r=e[t];r.event?r.event(r.data,n):r(n)}else{var o=t.toLowerCase();e[o]&&e[o](n)}}function Z(e,t){var n=function(n){var r=this.$V;if(r){var o=r.props||f,i=r.dom;if(u(e))J(o,e,n);else for(var a=0;a-1&&t.options[a]&&(c=t.options[a].value),n&&i(c)&&(c=e.defaultValue),ae(r,c)}}var le,se,de=Z("onInput",pe),fe=Z("onChange");function pe(e,t,n){var r=e.value,o=t.value;if(i(r)){if(n){var a=e.defaultValue;i(a)||a===o||(t.defaultValue=a,t.value=a)}}else o!==r&&(t.defaultValue=r,t.value=r)}function me(e,t,n,r,o,i){64&e?ie(r,n):256&e?ue(r,n,o,t):128&e&&pe(r,n,o),i&&(n.$V=t)}function he(e,t,n){64&e?function(e,t){te(t.type)?(ee(e,"change",re),ee(e,"click",oe)):ee(e,"input",ne)}(t,n):256&e?function(e){ee(e,"change",ce)}(t):128&e&&function(e,t){ee(e,"input",de),t.onChange&&ee(e,"change",fe)}(t,n)}function ve(e){return e.type&&te(e.type)?!i(e.checked):!i(e.value)}function ge(e){e&&!E(e,null)&&e.current&&(e.current=null)}function be(e,t,n){e&&(c(e)||void 0!==e.current)&&n.push((function(){E(e,t)||void 0===e.current||(e.current=t)}))}function ye(e,t){Ce(e),C(e,t)}function Ce(e){var t,n=e.flags,r=e.children;if(481&n){t=e.ref;var o=e.props;ge(t);var a=e.childFlags;if(!l(o))for(var u=Object.keys(o),s=0,d=u.length;s0;for(var c in a&&(i=ve(n))&&he(t,r,n),n)_e(c,null,n[c],r,o,i,null);a&&me(t,e,r,n,!0,i)}function Se(e,t,n){var r=P(e.render(t,e.state,n)),o=n;return c(e.getChildContext)&&(o=s(n,e.getChildContext())),e.$CX=o,r}function Ee(e,t,n,r,o,i){var a=new t(n,r),u=a.$N=Boolean(t.getDerivedStateFromProps||a.getSnapshotBeforeUpdate);if(a.$SVG=o,a.$L=i,e.children=a,a.$BS=!1,a.context=r,a.props===f&&(a.props=n),u)a.state=x(a,n,a.state);else if(c(a.componentWillMount)){a.$BR=!0,a.componentWillMount();var s=a.$PS;if(!l(s)){var d=a.state;if(l(d))a.state=s;else for(var p in s)d[p]=s[p];a.$PS=null}a.$BR=!1}return a.$LI=Se(a,n,r),a}function Be(e,t,n,r,o,i){var a=e.flags|=16384;481&a?Ie(e,t,n,r,o,i):4&a?function(e,t,n,r,o,i){var a=Ee(e,e.type,e.props||f,n,r,i);Be(a.$LI,t,a.$CX,r,o,i),Te(e.ref,a,i)}(e,t,n,r,o,i):8&a?(!function(e,t,n,r,o,i){Be(e.children=P(function(e,t){return 32768&e.flags?e.type.render(e.props||f,e.ref,t):e.type(e.props||f,t)}(e,n)),t,n,r,o,i)}(e,t,n,r,o,i),Ae(e,i)):512&a||16&a?Le(e,t,o):8192&a?function(e,t,n,r,o,i){var a=e.children,c=e.childFlags;12&c&&0===a.length&&(c=e.childFlags=2,a=e.children=A());2===c?Be(a,n,o,r,o,i):Oe(a,n,t,r,o,i)}(e,n,t,r,o,i):1024&a&&function(e,t,n,r,o){Be(e.children,e.ref,t,!1,null,o);var i=A();Le(i,n,r),e.dom=i.dom}(e,n,t,o,i)}function Le(e,t,n){var r=e.dom=document.createTextNode(e.children);l(t)||h(t,r,n)}function Ie(e,t,n,r,o,a){var c=e.flags,u=e.props,s=e.className,d=e.children,f=e.childFlags,p=e.dom=function(e,t){return t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e)}(e.type,r=r||(32&c)>0);if(i(s)||""===s||(r?p.setAttribute("class",s):p.className=s),16===f)_(p,d);else if(1!==f){var m=r&&"foreignObject"!==e.type;2===f?(16384&d.flags&&(e.children=d=T(d)),Be(d,p,n,m,null,a)):8!==f&&4!==f||Oe(d,p,n,m,null,a)}l(t)||h(t,p,o),l(u)||ke(e,c,u,p,r),be(e.ref,p,a)}function Oe(e,t,n,r,o,i){for(var a=0;a0,l!==s){var m=l||f;if((c=s||f)!==f)for(var h in(d=(448&o)>0)&&(p=ve(c)),c){var v=m[h],g=c[h];v!==g&&_e(h,v,g,u,r,p,e)}if(m!==f)for(var b in m)i(c[b])&&!i(m[b])&&_e(b,m[b],null,u,r,p,e)}var y=t.children,C=t.className;e.className!==C&&(i(C)?u.removeAttribute("class"):r?u.setAttribute("class",C):u.className=C);4096&o?function(e,t){e.textContent!==t&&(e.textContent=t)}(u,y):je(e.childFlags,t.childFlags,e.children,y,u,n,r&&"foreignObject"!==t.type,null,e,a);d&&me(o,t,u,c,!1,p);var N=t.ref,x=e.ref;x!==N&&(ge(x),be(N,u,a))}(e,t,r,o,p,d):4&p?function(e,t,n,r,o,i,a){var u=t.children=e.children;if(l(u))return;u.$L=a;var d=t.props||f,p=t.ref,m=e.ref,h=u.state;if(!u.$N){if(c(u.componentWillReceiveProps)){if(u.$BR=!0,u.componentWillReceiveProps(d,r),u.$UN)return;u.$BR=!1}l(u.$PS)||(h=s(h,u.$PS),u.$PS=null)}Pe(u,h,d,n,r,o,!1,i,a),m!==p&&(ge(m),be(p,u,a))}(e,t,n,r,o,u,d):8&p?function(e,t,n,r,o,a,u){var l=!0,s=t.props||f,d=t.ref,p=e.props,m=!i(d),h=e.children;m&&c(d.onComponentShouldUpdate)&&(l=d.onComponentShouldUpdate(p,s));if(!1!==l){m&&c(d.onComponentWillUpdate)&&d.onComponentWillUpdate(p,s);var v=t.type,g=P(32768&t.flags?v.render(s,d,r):v(s,r));Me(h,g,n,r,o,a,u),t.children=g,m&&c(d.onComponentDidUpdate)&&d.onComponentDidUpdate(p,s)}else t.children=h}(e,t,n,r,o,u,d):16&p?function(e,t){var n=t.children,r=t.dom=e.dom;n!==e.children&&(r.nodeValue=n)}(e,t):512&p?t.dom=e.dom:8192&p?function(e,t,n,r,o,i){var a=e.children,c=t.children,u=e.childFlags,l=t.childFlags,s=null;12&l&&0===c.length&&(l=t.childFlags=2,c=t.children=A());var d=0!=(2&l);if(12&u){var f=a.length;(8&u&&8&l||d||!d&&c.length>f)&&(s=y(a[f-1],!1).nextSibling)}je(u,l,a,c,n,r,o,s,e,i)}(e,t,n,r,o,d):function(e,t,n,r){var o=e.ref,i=t.ref,c=t.children;if(je(e.childFlags,t.childFlags,e.children,c,o,n,!1,null,e,r),t.dom=e.dom,o!==i&&!a(c)){var u=c.dom;v(o,u),m(i,u)}}(e,t,r,d)}function je(e,t,n,r,o,i,a,c,u,l){switch(e){case 2:switch(t){case 2:Me(n,r,o,i,a,c,l);break;case 1:ye(n,o);break;case 16:Ce(n),_(o,r);break;default:!function(e,t,n,r,o,i){Ce(e),Oe(t,n,r,o,y(e,!0),i),C(e,n)}(n,r,o,i,a,l)}break;case 1:switch(t){case 2:Be(r,o,i,a,c,l);break;case 1:break;case 16:_(o,r);break;default:Oe(r,o,i,a,c,l)}break;case 16:switch(t){case 16:!function(e,t,n){e!==t&&(""!==e?n.firstChild.nodeValue=t:_(n,t))}(n,r,o);break;case 2:xe(o),Be(r,o,i,a,c,l);break;case 1:xe(o);break;default:xe(o),Oe(r,o,i,a,c,l)}break;default:switch(t){case 16:Ne(n),_(o,r);break;case 2:Ve(o,u,n),Be(r,o,i,a,c,l);break;case 1:Ve(o,u,n);break;default:var s=0|n.length,d=0|r.length;0===s?d>0&&Oe(r,o,i,a,c,l):0===d?Ve(o,u,n):8===t&&8===e?function(e,t,n,r,o,i,a,c,u,l){var s,d,f=i-1,p=a-1,m=0,h=e[m],v=t[m];e:{for(;h.key===v.key;){if(16384&v.flags&&(t[m]=v=T(v)),Me(h,v,n,r,o,c,l),e[m]=v,++m>f||m>p)break e;h=e[m],v=t[m]}for(h=e[f],v=t[p];h.key===v.key;){if(16384&v.flags&&(t[p]=v=T(v)),Me(h,v,n,r,o,c,l),e[f]=v,f--,p--,m>f||m>p)break e;h=e[f],v=t[p]}}if(m>f){if(m<=p)for(d=(s=p+1)p)for(;m<=f;)ye(e[m++],n);else!function(e,t,n,r,o,i,a,c,u,l,s,d,f){var p,m,h,v=0,g=c,b=c,C=i-c+1,x=a-c+1,V=new Int32Array(x+1),w=C===r,_=!1,k=0,S=0;if(o<4||(C|x)<32)for(v=g;v<=i;++v)if(p=e[v],Sc?_=!0:k=c,16384&m.flags&&(t[c]=m=T(m)),Me(p,m,u,n,l,s,f),++S;break}!w&&c>a&&ye(p,u)}else w||ye(p,u);else{var E={};for(v=b;v<=a;++v)E[t[v].key]=v;for(v=g;v<=i;++v)if(p=e[v],Sg;)ye(e[g++],u);V[c-b]=v+1,k>c?_=!0:k=c,16384&(m=t[c]).flags&&(t[c]=m=T(m)),Me(p,m,u,n,l,s,f),++S}else w||ye(p,u);else w||ye(p,u)}if(w)Ve(u,d,e),Oe(t,u,n,l,s,f);else if(_){var B=function(e){var t=0,n=0,r=0,o=0,i=0,a=0,c=0,u=e.length;u>Re&&(Re=u,le=new Int32Array(u),se=new Int32Array(u));for(;n>1]]0&&(se[n]=le[i-1]),le[i]=n)}i=o+1;var l=new Int32Array(i);a=le[i-1];for(;i-- >0;)l[i]=a,a=se[a],le[i]=0;return l}(V);for(c=B.length-1,v=x-1;v>=0;v--)0===V[v]?(16384&(m=t[k=v+b]).flags&&(t[k]=m=T(m)),Be(m,u,n,l,(h=k+1)=0;v--)0===V[v]&&(16384&(m=t[k=v+b]).flags&&(t[k]=m=T(m)),Be(m,u,n,l,(h=k+1)a?a:i,f=0;fa)for(f=d;f=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),N(n),l}},"catch":function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;N(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:V(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}(e.exports);try{regeneratorRuntime=r}catch(o){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";!function(t,n){var r,o,i=t.html5||{},a=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,c=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,u=0,l={};function s(){var e=m.elements;return"string"==typeof e?e.split(" "):e}function d(e){var t=l[e._html5shiv];return t||(t={},u++,e._html5shiv=u,l[u]=t),t}function f(e,t,r){return t||(t=n),o?t.createElement(e):(r||(r=d(t)),!(i=r.cache[e]?r.cache[e].cloneNode():c.test(e)?(r.cache[e]=r.createElem(e)).cloneNode():r.createElem(e)).canHaveChildren||a.test(e)||i.tagUrn?i:r.frag.appendChild(i));var i}function p(e){e||(e=n);var t=d(e);return!m.shivCSS||r||t.hasCSS||(t.hasCSS=!!function(e,t){var n=e.createElement("p"),r=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x",r.insertBefore(n.lastChild,r.firstChild)}(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),o||function(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return m.shivMethods?f(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+s().join().replace(/[\w\-:]+/g,(function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'}))+");return n}")(m,t.frag)}(e,t),e}!function(){try{var e=n.createElement("a");e.innerHTML="",r="hidden"in e,o=1==e.childNodes.length||function(){n.createElement("a");var e=n.createDocumentFragment();return"undefined"==typeof e.cloneNode||"undefined"==typeof e.createDocumentFragment||"undefined"==typeof e.createElement}()}catch(t){r=!0,o=!0}}();var m={elements:i.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:"3.7.3",shivCSS:!1!==i.shivCSS,supportsUnknownElements:o,shivMethods:!1!==i.shivMethods,type:"default",shivDocument:p,createElement:f,createDocumentFragment:function(e,t){if(e||(e=n),o)return e.createDocumentFragment();for(var r=(t=t||d(e)).frag.cloneNode(),i=0,a=s(),c=a.length;i3?c(a):null,y=String(a.key),C=String(a.char),N=a.location,x=a.keyCode||(a.keyCode=y)&&y.charCodeAt(0)||0,V=a.charCode||(a.charCode=C)&&C.charCodeAt(0)||0,w=a.bubbles,_=a.cancelable,k=a.repeat,S=a.locale,E=a.view||e;if(a.which||(a.which=a.keyCode),"initKeyEvent"in f)f.initKeyEvent(t,w,_,E,p,h,m,v,x,V);else if(0>>0),t=Element.prototype,n=t.querySelector,r=t.querySelectorAll;function o(t,n,r){t.setAttribute(e,null);var o=n.call(t,String(r).replace(/(^|,\s*)(:scope([ >]|$))/g,(function(t,n,r,o){return n+"["+e+"]"+(o||" ")})));return t.removeAttribute(e),o}t.querySelector=function(e){return o(this,n,e)},t.querySelectorAll=function(e){return o(this,r,e)}}()}}(window),function(e){var t=e.WeakMap||function(){var e,t=0,n=!1,r=!1;function o(t,o,i){r=i,n=!1,e=undefined,t.dispatchEvent(o)}function i(e){this.value=e}function c(){t++,this.__ce__=new a("@DOMMap:"+t+Math.random())}return i.prototype.handleEvent=function(t){n=!0,r?t.currentTarget.removeEventListener(t.type,this,!1):e=this.value},c.prototype={constructor:c,"delete":function(e){return o(e,this.__ce__,!0),n},get:function(t){o(t,this.__ce__,!1);var n=e;return e=undefined,n},has:function(e){return o(e,this.__ce__,!1),n},set:function(e,t){return o(e,this.__ce__,!0),e.addEventListener(this.__ce__.type,new i(t),!1),this}},c}();function n(){}function r(e,t,n){function o(e){o.once&&(e.currentTarget.removeEventListener(e.type,t,o),o.removed=!0),o.passive&&(e.preventDefault=r.preventDefault),"function"==typeof o.callback?o.callback.call(this,e):o.callback&&o.callback.handleEvent(e),o.passive&&delete e.preventDefault}return o.type=e,o.callback=t,o.capture=!!n.capture,o.passive=!!n.passive,o.once=!!n.once,o.removed=!1,o}n.prototype=(Object.create||Object)(null),r.preventDefault=function(){};var o,i,a=e.CustomEvent,c=e.dispatchEvent,u=e.addEventListener,l=e.removeEventListener,s=0,d=function(){s++},f=[].indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t},p=function(e){return"".concat(e.capture?"1":"0",e.passive?"1":"0",e.once?"1":"0")};try{u("_",d,{once:!0}),c(new a("_")),c(new a("_")),l("_",d,{once:!0})}catch(m){}1!==s&&(i=new t,o=function(e){if(e){var t=e.prototype;t.addEventListener=function(e){return function(t,o,a){if(a&&"boolean"!=typeof a){var c,u,l,s=i.get(this),d=p(a);s||i.set(this,s=new n),t in s||(s[t]={handler:[],wrap:[]}),u=s[t],(c=f.call(u.handler,o))<0?(c=u.handler.push(o)-1,u.wrap[c]=l=new n):l=u.wrap[c],d in l||(l[d]=r(t,o,a),e.call(this,t,l[d],l[d].capture))}else e.call(this,t,o,a)}}(t.addEventListener),t.removeEventListener=function(e){return function(t,n,r){if(r&&"boolean"!=typeof r){var o,a,c,u,l=i.get(this);if(l&&t in l&&(c=l[t],-1<(a=f.call(c.handler,n))&&(o=p(r))in(u=c.wrap[a]))){for(o in e.call(this,t,u[o],u[o].capture),delete u[o],u)return;c.handler.splice(a,1),c.wrap.splice(a,1),0===c.handler.length&&delete l[t]}}else e.call(this,t,n,r)}}(t.removeEventListener)}},e.EventTarget?o(EventTarget):(o(e.Text),o(e.Element||e.HTMLElement),o(e.HTMLDocument),o(e.Window||{prototype:e}),o(e.XMLHttpRequest)))}(window)},function(e,t,n){"use strict";!function(e){if("undefined"!=typeof e.setAttribute){var t=function(e){return e.replace(/-[a-z]/g,(function(e){return e[1].toUpperCase()}))};e.setProperty=function(e,n){var r=t(e);if(!n)return this.removeAttribute(r);var o=String(n);return this.setAttribute(r,o)},e.getPropertyValue=function(e){var n=t(e);return this.getAttribute(n)||null},e.removeProperty=function(e){var n=t(e),r=this.getAttribute(n);return this.removeAttribute(n),r}}}(CSSStyleDeclaration.prototype)},function(e,t,n){"use strict";window.Int32Array||(window.Int32Array=Array)},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(407),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||void 0,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||void 0}).call(this,n(69))},function(e,t,n){"use strict";(function(e,t){!function(e,n){if(!e.setImmediate){var r,o,i,a,c,u=1,l={},s=!1,d=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){m(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){m(e.data)},r=function(e){i.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(o=d.documentElement,r=function(e){var t=d.createElement("script");t.onreadystatechange=function(){m(e),t.onreadystatechange=null,o.removeChild(t),t=null},o.appendChild(t)}):r=function(e){setTimeout(m,0,e)}:(a="setImmediate$"+Math.random()+"$",c=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&m(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",c,!1):e.attachEvent("onmessage",c),r=function(t){e.postMessage(a+t,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n1)for(var n=1;n=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?o-1:0),a=1;a1?t-1:0),r=1;r=0||(o[n]=e[n]);return o}(e,["className"]);return(0,r.normalizeProps)((0,r.createComponentVNode)(2,i.Box,Object.assign({className:(0,o.classes)(["BlockQuote",t])},n)))}},function(e,t,n){"use strict";t.__esModule=!0,t.ByondUi=void 0;var r=n(1),o=n(9),i=n(418),a=n(36),c=n(15);function u(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var l=(0,a.createLogger)("ByondUi"),s=[];window.addEventListener("beforeunload",(function(){for(var e=0;e=0||(o[n]=e[n]);return o}(t,["data","rangeX","rangeY","fillColor","strokeColor","strokeWidth"]),v=this.state.viewBox,g=function(e,t,n,r){if(0===e.length)return[];var i=(0,o.zipWith)(Math.min).apply(void 0,e),a=(0,o.zipWith)(Math.max).apply(void 0,e);return n!==undefined&&(i[0]=n[0],a[0]=n[1]),r!==undefined&&(i[1]=r[0],a[1]=r[1]),(0,o.map)((function(e){return(0,o.zipWith)((function(e,t,n,r){return(e-t)/(n-t)*r}))(e,i,a,t)}))(e)}(i,v,c,u);if(g.length>0){var b=g[0],y=g[g.length-1];g.push([v[0]+m,y[1]]),g.push([v[0]+m,-m]),g.push([-m,-m]),g.push([-m,b[1]])}var C=function(e){for(var t="",n=0;n=0||(o[n]=e[n]);return o}(t,["children","color","title","buttons"]);return(0,r.createComponentVNode)(2,o.Box,{mb:1,children:[(0,r.createVNode)(1,"div","Table",[(0,r.createVNode)(1,"div","Table__cell",(0,r.normalizeProps)((0,r.createComponentVNode)(2,i.Button,Object.assign({fluid:!0,color:u,icon:n?"chevron-down":"chevron-right",onClick:function(){return e.setState({open:!n})}},d,{children:l}))),2),s&&(0,r.createVNode)(1,"div","Table__cell Table__cell--collapsing",s,0)],0),n&&(0,r.createComponentVNode)(2,o.Box,{mt:1,children:a})]})},a}(r.Component);t.Collapsible=a},function(e,t,n){"use strict";t.__esModule=!0,t.ColorBox=void 0;var r=n(1),o=n(9),i=n(15);var a=function(e){var t=e.content,n=(e.children,e.className),a=e.color,c=e.backgroundColor,u=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,["content","children","className","color","backgroundColor"]);return u.color=t?null:"transparent",u.backgroundColor=a||c,(0,r.normalizeProps)((0,r.createVNode)(1,"div",(0,o.classes)(["ColorBox",n,(0,i.computeBoxClassName)(u)]),t||".",0,Object.assign({},(0,i.computeBoxProps)(u))))};t.ColorBox=a,a.defaultHooks=o.pureComponentHooks},function(e,t,n){"use strict";t.__esModule=!0,t.Dropdown=void 0;var r=n(1),o=n(9),i=n(15),a=n(122);function c(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var u=function(e){var t,n;function u(t){var n;return(n=e.call(this,t)||this).state={selected:t.selected,open:!1},n.handleClick=function(){n.state.open&&n.setOpen(!1)},n}n=e,(t=u).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var l=u.prototype;return l.componentWillUnmount=function(){window.removeEventListener("click",this.handleClick)},l.setOpen=function(e){var t=this;this.setState({open:e}),e?(setTimeout((function(){return window.addEventListener("click",t.handleClick)})),this.menuRef.focus()):window.removeEventListener("click",this.handleClick)},l.setSelected=function(e){this.setState({selected:e}),this.setOpen(!1),this.props.onSelected(e)},l.buildMenu=function(){var e=this,t=this.props,n=t.options,o=void 0===n?[]:n,i=t.placeholder,a=o.map((function(t){return(0,r.createVNode)(1,"div","Dropdown__menuentry",t,0,{onClick:function(){e.setSelected(t)}},t)}));return a.unshift((0,r.createVNode)(1,"div","Dropdown__menuentry",[(0,r.createTextVNode)("-- "),i,(0,r.createTextVNode)(" --")],0,{onClick:function(){e.setSelected(null)}},i)),a},l.render=function(){var e=this,t=this.props,n=t.color,u=void 0===n?"default":n,l=t.over,s=t.noscroll,d=t.nochevron,f=t.width,p=(t.onClick,t.selected,t.disabled),m=t.placeholder,h=c(t,["color","over","noscroll","nochevron","width","onClick","selected","disabled","placeholder"]),v=h.className,g=c(h,["className"]),b=l?!this.state.open:this.state.open,y=this.state.open?(0,r.createVNode)(1,"div",(0,o.classes)([s?"Dropdown__menu-noscroll":"Dropdown__menu",l&&"Dropdown__over"]),this.buildMenu(),0,{tabIndex:"-1",style:{width:f}},null,(function(t){e.menuRef=t})):null;return(0,r.createVNode)(1,"div","Dropdown",[(0,r.normalizeProps)((0,r.createComponentVNode)(2,i.Box,Object.assign({width:f,className:(0,o.classes)(["Dropdown__control","Button","Button--color--"+u,p&&"Button--disabled",v])},g,{onClick:function(){p&&!e.state.open||e.setOpen(!e.state.open)},children:[(0,r.createVNode)(1,"span","Dropdown__selected-text",this.state.selected||m,0),!!d||(0,r.createVNode)(1,"span","Dropdown__arrow-button",(0,r.createComponentVNode)(2,a.Icon,{name:b?"chevron-up":"chevron-down"}),2)]}))),y],0)},u}(r.Component);t.Dropdown=u},function(e,t,n){"use strict";t.__esModule=!0,t.GridColumn=t.Grid=void 0;var r=n(1),o=n(124),i=n(9);function a(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var c=function(e){var t=e.children,n=a(e,["children"]);return(0,r.normalizeProps)((0,r.createComponentVNode)(2,o.Table,Object.assign({},n,{children:(0,r.createComponentVNode)(2,o.Table.Row,{children:t})})))};t.Grid=c,c.defaultHooks=i.pureComponentHooks;var u=function(e){var t=e.size,n=void 0===t?1:t,i=e.style,c=a(e,["size","style"]);return(0,r.normalizeProps)((0,r.createComponentVNode)(2,o.Table.Cell,Object.assign({style:Object.assign({width:n+"%"},i)},c)))};t.GridColumn=u,c.defaultHooks=i.pureComponentHooks,c.Column=u},function(e,t,n){"use strict";t.__esModule=!0,t.Input=void 0;var r=n(1),o=n(9),i=n(15);function a(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var c=function(e){return(0,o.isFalsy)(e)?"":e},u=function(e){var t,n;function u(){var t;return(t=e.call(this)||this).inputRef=(0,r.createRef)(),t.state={editing:!1},t.handleInput=function(e){var n=t.state.editing,r=t.props.onInput;n||t.setEditing(!0),r&&r(e,e.target.value)},t.handleFocus=function(e){t.state.editing||t.setEditing(!0)},t.handleBlur=function(e){var n=t.state.editing,r=t.props.onChange;n&&(t.setEditing(!1),r&&r(e,e.target.value))},t.handleKeyDown=function(e){var n=t.props,r=n.onInput,o=n.onChange,i=n.onEnter;return 13===e.keyCode?(t.setEditing(!1),o&&o(e,e.target.value),r&&r(e,e.target.value),i&&i(e,e.target.value),void(t.props.selfClear?e.target.value="":e.target.blur())):27===e.keyCode?(t.setEditing(!1),e.target.value=c(t.props.value),void e.target.blur()):void 0},t}n=e,(t=u).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var l=u.prototype;return l.componentDidMount=function(){var e=this.props.value,t=this.inputRef.current;t&&(t.value=c(e),this.props.autofocus&&(t.focus(),t.selectionStart=0,t.selectionEnd=t.value.length))},l.componentDidUpdate=function(e,t){var n=this.state.editing,r=e.value,o=this.props.value,i=this.inputRef.current;i&&!n&&r!==o&&(i.value=c(o))},l.setEditing=function(e){this.setState({editing:e})},l.render=function(){var e=this.props,t=(e.selfClear,e.onInput,e.onChange,e.onEnter,e.value,e.maxLength),n=e.placeholder,c=(e.autofocus,a(e,["selfClear","onInput","onChange","onEnter","value","maxLength","placeholder","autofocus"])),u=c.className,l=c.fluid,s=a(c,["className","fluid"]);return(0,r.normalizeProps)((0,r.createComponentVNode)(2,i.Box,Object.assign({className:(0,o.classes)(["Input",l&&"Input--fluid",u])},s,{children:[(0,r.createVNode)(1,"div","Input__baseline",".",16),(0,r.createVNode)(64,"input","Input__input",null,1,{placeholder:n,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,maxLength:t},null,this.inputRef)]})))},u}(r.Component);t.Input=u},function(e,t,n){"use strict";t.__esModule=!0,t.Knob=void 0;var r=n(1),o=n(34),i=n(9),a=n(15),c=n(123),u=n(125);t.Knob=function(e){if(Byond.IS_LTE_IE8)return(0,r.normalizeProps)((0,r.createComponentVNode)(2,u.NumberInput,Object.assign({},e)));var t=e.animated,n=e.format,l=e.maxValue,s=e.minValue,d=e.onChange,f=e.onDrag,p=e.step,m=e.stepPixelSize,h=e.suppressFlicker,v=e.unit,g=e.value,b=e.className,y=e.style,C=e.fillValue,N=e.color,x=e.ranges,V=void 0===x?{}:x,w=e.size,_=e.bipolar,k=(e.children,e.popUpPosition),S=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children","popUpPosition"]);return(0,r.normalizeProps)((0,r.createComponentVNode)(2,c.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:t,format:n,maxValue:l,minValue:s,onChange:d,onDrag:f,step:p,stepPixelSize:m,suppressFlicker:h,unit:v,value:g},{children:function(e){var t=e.dragging,n=(e.editing,e.value),c=e.displayValue,u=e.displayElement,d=e.inputElement,f=e.handleDragStart,p=(0,o.scale)(null!=C?C:c,s,l),m=(0,o.scale)(c,s,l),h=N||(0,o.keyOfMatchingRange)(null!=C?C:n,V)||"default",v=270*(m-.5);return(0,r.normalizeProps)((0,r.createVNode)(1,"div",(0,i.classes)(["Knob","Knob--color--"+h,_&&"Knob--bipolar",b,(0,a.computeBoxClassName)(S)]),[(0,r.createVNode)(1,"div","Knob__circle",(0,r.createVNode)(1,"div","Knob__cursorBox",(0,r.createVNode)(1,"div","Knob__cursor"),2,{style:{transform:"rotate("+v+"deg)"}}),2),t&&(0,r.createVNode)(1,"div",(0,i.classes)(["Knob__popupValue",k&&"Knob__popupValue--"+k]),u,0),(0,r.createVNode)(32,"svg","Knob__ring Knob__ringTrackPivot",(0,r.createVNode)(32,"circle","Knob__ringTrack",null,1,{cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),(0,r.createVNode)(32,"svg","Knob__ring Knob__ringFillPivot",(0,r.createVNode)(32,"circle","Knob__ringFill",null,1,{style:{"stroke-dashoffset":((_?2.75:2)-1.5*p)*Math.PI*50},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),d],0,Object.assign({},(0,a.computeBoxProps)(Object.assign({style:Object.assign({"font-size":w+"rem"},y)},S)),{onMouseDown:f})))}})))}},function(e,t,n){"use strict";t.__esModule=!0,t.LabeledControls=void 0;var r=n(1),o=n(169);function i(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var a=function(e){var t=e.children,n=i(e,["children"]);return(0,r.normalizeProps)((0,r.createComponentVNode)(2,o.Flex,Object.assign({mx:-.5,align:"stretch",justify:"space-between"},n,{children:t})))};t.LabeledControls=a;a.Item=function(e){var t=e.label,n=e.children,a=i(e,["label","children"]);return(0,r.createComponentVNode)(2,o.Flex.Item,{mx:1,children:(0,r.normalizeProps)((0,r.createComponentVNode)(2,o.Flex,Object.assign({minWidth:"52px",height:"100%",direction:"column",align:"center",textAlign:"center",justify:"space-between"},a,{children:[(0,r.createComponentVNode)(2,o.Flex.Item),(0,r.createComponentVNode)(2,o.Flex.Item,{children:n}),(0,r.createComponentVNode)(2,o.Flex.Item,{color:"label",children:t})]})))})}},function(e,t,n){"use strict";t.__esModule=!0,t.LabeledListDivider=t.LabeledListItem=t.LabeledList=void 0;var r=n(1),o=n(9),i=n(15),a=n(168),c=function(e){var t=e.children;return(0,r.createVNode)(1,"table","LabeledList",t,0)};t.LabeledList=c,c.defaultHooks=o.pureComponentHooks;var u=function(e){var t=e.className,n=e.label,a=e.labelColor,c=void 0===a?"label":a,u=e.color,l=e.textAlign,s=e.verticalAlign,d=e.buttons,f=e.content,p=e.children;return(0,r.createVNode)(1,"tr",(0,o.classes)(["LabeledList__row",t]),[(0,r.createComponentVNode)(2,i.Box,{as:"td",color:c,verticalAlign:s,className:(0,o.classes)(["LabeledList__cell","LabeledList__label"]),children:n?n+":":null}),(0,r.createComponentVNode)(2,i.Box,{as:"td",color:u,textAlign:l,verticalAlign:s,className:(0,o.classes)(["LabeledList__cell","LabeledList__content"]),colSpan:d?undefined:2,children:[f,p]}),d&&(0,r.createVNode)(1,"td","LabeledList__cell LabeledList__buttons",d,0)],0)};t.LabeledListItem=u,u.defaultHooks=o.pureComponentHooks;var l=function(e){var t=e.size?(0,i.unit)(Math.max(0,e.size-1)):0;return(0,r.createVNode)(1,"tr","LabeledList__row",(0,r.createVNode)(1,"td",null,(0,r.createComponentVNode)(2,a.Divider),2,{colSpan:3,style:{"padding-top":t,"padding-bottom":t}}),2)};t.LabeledListDivider=l,l.defaultHooks=o.pureComponentHooks,c.Item=u,c.Divider=l},function(e,t,n){"use strict";t.__esModule=!0,t.NanoMap=void 0;var r=n(1),o=n(13),i=n(11);n(118);var a=function(e){var t,n;function a(t){var n;n=e.call(this,t)||this;var r=window.innerWidth/2-256;return n.state={offsetX:r,offsetY:0,transform:"none",dragging:!1,originX:null,originY:null},n.handleDragStart=function(e){document.body.style["pointer-events"]="none",n.ref=e.target,n.setState({dragging:!1,originX:e.screenX,originY:e.screenY}),n.timer=setTimeout((function(){n.setState({dragging:!0})}),250),document.addEventListener("mousemove",n.handleDragMove),document.addEventListener("mouseup",n.handleDragEnd)},n.handleDragMove=function(e){n.setState((function(t){var n=Object.assign({},t),r=e.screenX-n.originX,o=e.screenY-n.originY;return t.dragging?(n.offsetX+=r,n.offsetY+=o,n.originX=e.screenX,n.originY=e.screenY):n.dragging=!0,n}))},n.handleDragEnd=function(e){document.body.style["pointer-events"]="auto",clearTimeout(n.timer),n.setState({dragging:!1,originX:null,originY:null}),document.removeEventListener("mousemove",n.handleDragMove),document.removeEventListener("mouseup",n.handleDragEnd)},n}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,a.prototype.render=function(){var e=(0,i.useBackend)(this.context).config,t=this.state,n=t.offsetX,a=t.offsetY,c=this.props,u=c.children,l=c.zoom,s=(c.reset,{width:"512px",height:"512px","margin-top":a+"px","margin-left":n+"px",overflow:"hidden",position:"relative",padding:"0px","background-image":"url("+e.map+"_nanomap_z"+e.mapZLevel+".png)","background-size":"cover","text-align":"center","transform-origin":"center center",transform:"scale("+l+")"});return(0,r.createComponentVNode)(2,o.Box,{className:"NanoMap__container",children:(0,r.createComponentVNode)(2,o.Box,{style:s,textAlign:"center",onMouseDown:this.handleDragStart,children:(0,r.createComponentVNode)(2,o.Box,{children:u})})})},a}(r.Component);t.NanoMap=a;a.Marker=function(e,t){var n=e.x,i=e.y,a=e.zoom,c=e.icon,u=e.tooltip,l=e.color,s=-256*(a-1)+n*(3.65714285714*a)-1.5*a-3,d=512*a-i*(3.65714285714*a)+a-1.5;return(0,r.createVNode)(1,"div",null,(0,r.createComponentVNode)(2,o.Box,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",top:d+"px",left:s+"px",children:[(0,r.createComponentVNode)(2,o.Icon,{name:c,color:l,fontSize:"6px"}),(0,r.createComponentVNode)(2,o.Tooltip,{content:u})]}),2,{style:"transform: scale("+1/a+")"})}},function(e,t,n){"use strict";t.__esModule=!0,t.Modal=void 0;var r=n(1),o=n(9),i=n(15),a=n(167);t.Modal=function(e){var t,n=e.className,c=e.children,u=e.onEnter,l=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,["className","children","onEnter"]);return u&&(t=function(e){13===(e.which||e.keyCode)&&u(e)}),(0,r.createComponentVNode)(2,a.Dimmer,{onKeyDown:t,children:(0,r.normalizeProps)((0,r.createVNode)(1,"div",(0,o.classes)(["Modal",n,(0,i.computeBoxClassName)(l)]),c,0,Object.assign({},(0,i.computeBoxProps)(l))))})}},function(e,t,n){"use strict";t.__esModule=!0,t.NoticeBox=void 0;var r=n(1),o=n(9),i=n(15);var a=function(e){var t=e.className,n=e.color,a=e.info,c=(e.warning,e.success),u=e.danger,l=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,["className","color","info","warning","success","danger"]);return(0,r.normalizeProps)((0,r.createComponentVNode)(2,i.Box,Object.assign({className:(0,o.classes)(["NoticeBox",n&&"NoticeBox--color--"+n,a&&"NoticeBox--type--info",c&&"NoticeBox--type--success",u&&"NoticeBox--type--danger",t])},l)))};t.NoticeBox=a,a.defaultHooks=o.pureComponentHooks},function(e,t,n){"use strict";t.__esModule=!0,t.ProgressBar=void 0;var r=n(1),o=n(34),i=n(9),a=n(15);var c=function(e){var t=e.className,n=e.value,c=e.minValue,u=void 0===c?0:c,l=e.maxValue,s=void 0===l?1:l,d=e.color,f=e.ranges,p=void 0===f?{}:f,m=e.children,h=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,["className","value","minValue","maxValue","color","ranges","children"]),v=(0,o.scale)(n,u,s),g=m!==undefined,b=d||(0,o.keyOfMatchingRange)(n,p)||"default";return(0,r.normalizeProps)((0,r.createVNode)(1,"div",(0,i.classes)(["ProgressBar","ProgressBar--color--"+b,t,(0,a.computeBoxClassName)(h)]),[(0,r.createVNode)(1,"div","ProgressBar__fill ProgressBar__fill--animated",null,1,{style:{width:100*(0,o.clamp01)(v)+"%"}}),(0,r.createVNode)(1,"div","ProgressBar__content",g?m:(0,o.toFixed)(100*v)+"%",0)],4,Object.assign({},(0,a.computeBoxProps)(h))))};t.ProgressBar=c,c.defaultHooks=i.pureComponentHooks},function(e,t,n){"use strict";t.__esModule=!0,t.Section=void 0;var r=n(1),o=n(9),i=n(15);var a=function(e){var t=e.className,n=e.title,a=e.level,c=void 0===a?1:a,u=e.buttons,l=e.fill,s=e.stretchContents,d=e.noTopPadding,f=e.children,p=(e.scrollable,e.flexGrow),m=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,["className","title","level","buttons","fill","stretchContents","noTopPadding","children","scrollable","flexGrow"]),h=!(0,o.isFalsy)(n)||!(0,o.isFalsy)(u),v=!(0,o.isFalsy)(f);return(0,r.normalizeProps)((0,r.createVNode)(1,"div",(0,o.classes)(["Section","Section--level--"+c,l&&"Section--fill",p&&"Section--flex",t].concat((0,i.computeBoxClassName)(m))),[h&&(0,r.createVNode)(1,"div","Section__title",[(0,r.createVNode)(1,"span","Section__titleText",n,0),(0,r.createVNode)(1,"div","Section__buttons",u,0)],4),v&&(0,r.createVNode)(1,"div",(0,o.classes)(["Section__content",!!s&&"Section__content--stretchContents",!!d&&"Section__content--noTopPadding"]),f,0)],0,Object.assign({},(0,i.computeBoxProps)(m))))};t.Section=a,a.defaultHooks=o.pureComponentHooks},function(e,t,n){"use strict";t.__esModule=!0,t.Slider=void 0;var r=n(1),o=n(34),i=n(9),a=n(15),c=n(123),u=n(125);t.Slider=function(e){if(Byond.IS_LTE_IE8)return(0,r.normalizeProps)((0,r.createComponentVNode)(2,u.NumberInput,Object.assign({},e)));var t=e.animated,n=e.format,l=e.maxValue,s=e.minValue,d=e.onChange,f=e.onDrag,p=e.step,m=e.stepPixelSize,h=e.suppressFlicker,v=e.unit,g=e.value,b=e.className,y=e.fillValue,C=e.color,N=e.ranges,x=void 0===N?{}:N,V=e.children,w=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children"]),_=V!==undefined;return(0,r.normalizeProps)((0,r.createComponentVNode)(2,c.DraggableControl,Object.assign({dragMatrix:[1,0]},{animated:t,format:n,maxValue:l,minValue:s,onChange:d,onDrag:f,step:p,stepPixelSize:m,suppressFlicker:h,unit:v,value:g},{children:function(e){var t=e.dragging,n=(e.editing,e.value),c=e.displayValue,u=e.displayElement,d=e.inputElement,f=e.handleDragStart,p=y!==undefined&&null!==y,m=((0,o.scale)(n,s,l),(0,o.scale)(null!=y?y:c,s,l)),h=(0,o.scale)(c,s,l),v=C||(0,o.keyOfMatchingRange)(null!=y?y:n,x)||"default";return(0,r.normalizeProps)((0,r.createVNode)(1,"div",(0,i.classes)(["Slider","ProgressBar","ProgressBar--color--"+v,b,(0,a.computeBoxClassName)(w)]),[(0,r.createVNode)(1,"div",(0,i.classes)(["ProgressBar__fill",p&&"ProgressBar__fill--animated"]),null,1,{style:{width:100*(0,o.clamp01)(m)+"%",opacity:.4}}),(0,r.createVNode)(1,"div","ProgressBar__fill",null,1,{style:{width:100*(0,o.clamp01)(Math.min(m,h))+"%"}}),(0,r.createVNode)(1,"div","Slider__cursorOffset",[(0,r.createVNode)(1,"div","Slider__cursor"),(0,r.createVNode)(1,"div","Slider__pointer"),t&&(0,r.createVNode)(1,"div","Slider__popupValue",u,0)],0,{style:{width:100*(0,o.clamp01)(h)+"%"}}),(0,r.createVNode)(1,"div","ProgressBar__content",_?V:u,0),d],0,Object.assign({},(0,a.computeBoxProps)(w),{onMouseDown:f})))}})))}},function(e,t,n){"use strict";t.__esModule=!0,t.Tabs=void 0;var r=n(1),o=n(9),i=n(15),a=n(121);function c(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var u=function(e){var t=e.className,n=e.vertical,a=e.children,u=c(e,["className","vertical","children"]);return(0,r.normalizeProps)((0,r.createVNode)(1,"div",(0,o.classes)(["Tabs",n?"Tabs--vertical":"Tabs--horizontal",t,(0,i.computeBoxClassName)(u)]),(0,r.createVNode)(1,"div","Tabs__tabBox",a,0),2,Object.assign({},(0,i.computeBoxProps)(u))))};t.Tabs=u;u.Tab=function(e){var t=e.className,n=e.selected,i=e.altSelection,u=c(e,["className","selected","altSelection"]);return(0,r.normalizeProps)((0,r.createComponentVNode)(2,a.Button,Object.assign({className:(0,o.classes)(["Tabs__tab",n&&"Tabs__tab--selected",i&&n&&"Tabs__tab--altSelection",t]),selected:!i&&n,color:"transparent"},u)))}},function(e,t,n){var r={"./AiRestorer.js":436,"./BodyScanner.js":437,"./CameraConsole.js":172,"./ChemDispenser.js":438,"./ChemMaster.js":442,"./CloningConsole.js":443,"./CrewMonitor.js":174,"./Cryo.js":444,"./DNAModifier.js":445,"./DisposalBin.js":446,"./MedicalRecords.js":447,"./NtosCameraConsole.js":451,"./NtosCrewMonitor.js":452,"./OperatingComputer.js":453,"./ResleevingConsole.js":454,"./ResleevingPod.js":455,"./Sleeper.js":456,"./Wires.js":457};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=435},function(e,t,n){"use strict";t.__esModule=!0,t.AiRestorerContent=t.AiRestorer=void 0;var r=n(1),o=n(11),i=n(13),a=n(17);t.AiRestorer=function(){return(0,r.createComponentVNode)(2,a.Window,{width:370,height:360,resizable:!0,children:(0,r.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,r.createComponentVNode)(2,c)})})};var c=function(e,t){var n=(0,o.useBackend)(t),a=n.act,c=n.data,u=c.AI_present,l=c.error,s=c.name,d=c.laws,f=c.isDead,p=c.restoring,m=c.health,h=c.ejectable;return(0,r.createFragment)([l&&(0,r.createComponentVNode)(2,i.NoticeBox,{textAlign:"center",children:l}),!!h&&(0,r.createComponentVNode)(2,i.Button,{fluid:!0,icon:"eject",content:u?s:"----------",disabled:!u,onClick:function(){return a("PRG_eject")}}),!!u&&(0,r.createComponentVNode)(2,i.Section,{title:h?"System Status":s,buttons:(0,r.createComponentVNode)(2,i.Box,{inline:!0,bold:!0,color:f?"bad":"good",children:f?"Nonfunctional":"Functional"}),children:[(0,r.createComponentVNode)(2,i.LabeledList,{children:(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Integrity",children:(0,r.createComponentVNode)(2,i.ProgressBar,{value:m,minValue:0,maxValue:100,ranges:{good:[70,Infinity],average:[50,70],bad:[-Infinity,50]}})})}),!!p&&(0,r.createComponentVNode)(2,i.Box,{bold:!0,textAlign:"center",fontSize:"20px",color:"good",mt:1,children:"RECONSTRUCTION IN PROGRESS"}),(0,r.createComponentVNode)(2,i.Button,{fluid:!0,icon:"plus",content:"Begin Reconstruction",disabled:p,mt:1,onClick:function(){return a("PRG_beginReconstruction")}}),(0,r.createComponentVNode)(2,i.Section,{title:"Laws",level:2,children:d.map((function(e){return(0,r.createComponentVNode)(2,i.Box,{className:"candystripe",children:e},e)}))})]})],0)};t.AiRestorerContent=c},function(e,t,n){"use strict";t.__esModule=!0,t.BodyScanner=void 0;var r=n(1),o=n(34),i=n(11),a=n(13),c=n(17),u=((0,n(36).createLogger)("debugBodyScanner"),[["good","Alive"],["average","Unconscious"],["bad","DEAD"]]),l=[["hasBorer","bad",function(e){return"Large growth detected in frontal lobe, possibly cancerous. Surgical removal is recommended."}],["hasVirus","bad",function(e){return"Viral pathogen detected in blood stream."}],["blind","average",function(e){return"Cataracts detected."}],["colourblind","average",function(e){return"Photoreceptor abnormalities detected."}],["nearsighted","average",function(e){return"Retinal misalignment detected."}],["humanPrey","average",function(e){return"Foreign Humanoid(s) detected: "+e.humanPrey}],["livingPrey","average",function(e){return"Foreign Creature(s) detected: "+e.livingPrey}],["objectPrey","average",function(e){return"Foreign Object(s) detected: "+e.objectPrey}]],s=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radioactive","radLoss"],["Brute","bruteLoss"],["Genetic","cloneLoss"],["Burn","fireLoss"],["Paralysis","paralysis"]],d={average:[.25,.5],bad:[.5,Infinity]},f=function(e,t){for(var n=[],r=0;r0?e.reduce((function(e,t){return null===e?t:(0,r.createFragment)([e,!!t&&(0,r.createFragment)([t,t.length>0&&(0,r.createVNode)(1,"br")],0)],0)})):null},m=function(e){if(e>100){if(e<300)return"mild infection";if(e<400)return"mild infection+";if(e<500)return"mild infection++";if(e<700)return"acute infection";if(e<800)return"acute infection+";if(e<900)return"acute infection++";if(e>=900)return"septic"}return""};t.BodyScanner=function(e,t){var n=(0,i.useBackend)(t).data,o=n.occupied,a=n.occupant,u=void 0===a?{}:a,l=o?(0,r.createComponentVNode)(2,h,{occupant:u}):(0,r.createComponentVNode)(2,x);return(0,r.createComponentVNode)(2,c.Window,{width:690,height:600,resizable:!0,children:(0,r.createComponentVNode)(2,c.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:l})})};var h=function(e){var t=e.occupant;return(0,r.createComponentVNode)(2,a.Box,{children:[(0,r.createComponentVNode)(2,v,{occupant:t}),(0,r.createComponentVNode)(2,g,{occupant:t}),(0,r.createComponentVNode)(2,b,{occupant:t}),(0,r.createComponentVNode)(2,C,{organs:t.extOrgan}),(0,r.createComponentVNode)(2,N,{organs:t.intOrgan})]})},v=function(e,t){var n=(0,i.useBackend)(t),c=n.act,l=n.data,s=l.occupant;return(0,r.createComponentVNode)(2,a.Section,{title:"Occupant",buttons:(0,r.createFragment)([(0,r.createComponentVNode)(2,a.Button,{icon:"user-slash",onClick:function(){return c("ejectify")},children:"Eject"}),(0,r.createComponentVNode)(2,a.Button,{icon:"print",onClick:function(){return c("print_p")},children:"Print Report"})],4),children:(0,r.createComponentVNode)(2,a.LabeledList,{children:[(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:s.name}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Health",children:(0,r.createComponentVNode)(2,a.ProgressBar,{min:"0",max:s.maxHealth,value:s.health/s.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",color:u[s.stat][0],children:u[s.stat][1]}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Temperature",children:[(0,r.createComponentVNode)(2,a.AnimatedNumber,{value:(0,o.round)(s.bodyTempC,0)}),"\xb0C,\xa0",(0,r.createComponentVNode)(2,a.AnimatedNumber,{value:(0,o.round)(s.bodyTempF,0)}),"\xb0F"]}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Weight",children:(0,o.round)(l.occupant.weight)+"lbs, "+(0,o.round)(l.occupant.weight/2.20463)+"kgs"})]})})},g=function(e){var t=e.occupant,n=t.hasBorer||t.blind||t.colourblind||t.nearsighted||t.hasVirus;return(n=n||t.humanPrey||t.livingPrey||t.objectPrey)?(0,r.createComponentVNode)(2,a.Section,{title:"Abnormalities",children:l.map((function(e,n){if(t[e[0]])return(0,r.createComponentVNode)(2,a.Box,{color:e[1],bold:"bad"===e[1],children:e[2](t)})}))}):(0,r.createComponentVNode)(2,a.Section,{title:"Abnormalities",children:(0,r.createComponentVNode)(2,a.Box,{color:"label",children:"No abnormalities found."})})},b=function(e){var t=e.occupant;return(0,r.createComponentVNode)(2,a.Section,{title:"Damage",children:(0,r.createComponentVNode)(2,a.Table,{children:f(s,(function(e,n,o){return(0,r.createFragment)([(0,r.createComponentVNode)(2,a.Table.Row,{color:"label",children:[(0,r.createComponentVNode)(2,a.Table.Cell,{children:[e[0],":"]}),(0,r.createComponentVNode)(2,a.Table.Cell,{children:!!n&&n[0]+":"})]}),(0,r.createComponentVNode)(2,a.Table.Row,{children:[(0,r.createComponentVNode)(2,a.Table.Cell,{children:(0,r.createComponentVNode)(2,y,{value:t[e[1]],marginBottom:o0&&"0.5rem",value:e.totalLoss/100,ranges:d,children:[(0,r.createComponentVNode)(2,a.Box,{float:"left",display:"inline",children:[!!e.bruteLoss&&(0,r.createComponentVNode)(2,a.Box,{display:"inline",position:"relative",children:[(0,r.createComponentVNode)(2,a.Icon,{name:"bone"}),(0,o.round)(e.bruteLoss,0),"\xa0",(0,r.createComponentVNode)(2,a.Tooltip,{position:"top",content:"Brute damage"})]}),!!e.fireLoss&&(0,r.createComponentVNode)(2,a.Box,{display:"inline",position:"relative",children:[(0,r.createComponentVNode)(2,a.Icon,{name:"fire"}),(0,o.round)(e.fireLoss,0),(0,r.createComponentVNode)(2,a.Tooltip,{position:"top",content:"Burn damage"})]})]}),(0,r.createComponentVNode)(2,a.Box,{display:"inline",children:(0,o.round)(e.totalLoss,0)})]})}),(0,r.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",width:"33%",children:[(0,r.createComponentVNode)(2,a.Box,{color:"average",display:"inline",children:p([e.internalBleeding&&"Internal bleeding",e.lungRuptured&&"Ruptured lung",e.destroyed&&"Destroyed",!!e.status.broken&&e.status.broken,m(e.germ_level),!!e.open&&"Open incision"])}),(0,r.createComponentVNode)(2,a.Box,{display:"inline",children:[p([!!e.status.splinted&&"Splinted",!!e.status.robotic&&"Robotic",!!e.status.dead&&(0,r.createComponentVNode)(2,a.Box,{color:"bad",children:"DEAD"})]),p(e.implants.map((function(e){return e.known?e.name:"Unknown object"})))]})]})]},t)}))]})})},N=function(e){return 0===e.organs.length?(0,r.createComponentVNode)(2,a.Section,{title:"Internal Organs",children:(0,r.createComponentVNode)(2,a.Box,{color:"label",children:"N/A"})}):(0,r.createComponentVNode)(2,a.Section,{title:"Internal Organs",children:(0,r.createComponentVNode)(2,a.Table,{children:[(0,r.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,r.createComponentVNode)(2,a.Table.Cell,{children:"Name"}),(0,r.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:"Damage"}),(0,r.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:"Injuries"})]}),e.organs.map((function(e,t){return(0,r.createComponentVNode)(2,a.Table.Row,{textTransform:"capitalize",children:[(0,r.createComponentVNode)(2,a.Table.Cell,{width:"33%",children:e.name}),(0,r.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:(0,r.createComponentVNode)(2,a.ProgressBar,{min:"0",max:e.maxHealth,value:e.damage/100,mt:t>0&&"0.5rem",ranges:d,children:(0,o.round)(e.damage,0)})}),(0,r.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",width:"33%",children:[(0,r.createComponentVNode)(2,a.Box,{color:"average",display:"inline",children:p([m(e.germ_level)])}),(0,r.createComponentVNode)(2,a.Box,{display:"inline",children:p([1===e.robotic&&"Robotic",2===e.robotic&&"Assisted",!!e.dead&&(0,r.createComponentVNode)(2,a.Box,{color:"bad",children:"DEAD"})])})]})]},t)}))]})})},x=function(){return(0,r.createComponentVNode)(2,a.Section,{textAlign:"center",flexGrow:"1",children:(0,r.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,r.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,r.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,r.createVNode)(1,"br"),"No occupant detected."]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.ChemDispenser=void 0;var r=n(1),o=n(11),i=n(13),a=n(173),c=n(17),u=[5,10,20,30,40],l=[1,5,10];t.ChemDispenser=function(e,t){return(0,r.createComponentVNode)(2,c.Window,{width:390,height:655,resizable:!0,children:(0,r.createComponentVNode)(2,c.Window.Content,{className:"Layout__content--flexColumn",children:[(0,r.createComponentVNode)(2,s),(0,r.createComponentVNode)(2,d),(0,r.createComponentVNode)(2,f)]})})};var s=function(e,t){var n=(0,o.useBackend)(t),a=n.act,c=n.data.amount;return(0,r.createComponentVNode)(2,i.Section,{title:"Settings",flex:"content",children:(0,r.createComponentVNode)(2,i.LabeledList,{children:[(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,r.createComponentVNode)(2,i.Flex,{direction:"row",wrap:"wrap",spacing:"1",children:u.map((function(e,t){return(0,r.createComponentVNode)(2,i.Flex.Item,{grow:"1",children:(0,r.createComponentVNode)(2,i.Button,{icon:"cog",selected:c===e,content:e,m:"0",width:"100%",onClick:function(){return a("amount",{amount:e})}})},t)}))})}),(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Custom Amount",children:(0,r.createComponentVNode)(2,i.Slider,{step:1,stepPixelSize:5,value:c,minValue:1,maxValue:120,onDrag:function(e,t){return a("amount",{amount:t})}})})]})})},d=function(e,t){for(var n=(0,o.useBackend)(t),a=n.act,c=n.data,u=c.chemicals,l=void 0===u?[]:u,s=[],d=0;d<(l.length+1)%3;d++)s.push(!0);return(0,r.createComponentVNode)(2,i.Section,{title:c.glass?"Drink Dispenser":"Chemical Dispenser",flexGrow:"1",children:(0,r.createComponentVNode)(2,i.Flex,{direction:"row",wrap:"wrap",height:"100%",spacingPrecise:"2",align:"flex-start",alignContent:"flex-start",children:[l.map((function(e,t){return(0,r.createComponentVNode)(2,i.Flex.Item,{grow:"1",basis:"40%",height:"20px",children:(0,r.createComponentVNode)(2,i.Button,{icon:"arrow-circle-down",width:"100%",height:"100%",align:"flex-start",content:e.title+" ("+e.amount+")",onClick:function(){return a("dispense",{reagent:e.id})}})},t)})),s.map((function(e,t){return(0,r.createComponentVNode)(2,i.Flex.Item,{grow:"1",basis:"25%",height:"20px"},t)}))]})})},f=function(e,t){var n=(0,o.useBackend)(t),c=n.act,u=n.data,s=u.isBeakerLoaded,d=u.beakerCurrentVolume,f=u.beakerMaxVolume,p=u.beakerContents,m=void 0===p?[]:p;return(0,r.createComponentVNode)(2,i.Section,{title:"Beaker",flex:"content",minHeight:"25%",buttons:(0,r.createComponentVNode)(2,i.Box,{children:[!!s&&(0,r.createComponentVNode)(2,i.Box,{inline:!0,color:"label",mr:2,children:[d," / ",f," units"]}),(0,r.createComponentVNode)(2,i.Button,{icon:"eject",content:"Eject",disabled:!s,onClick:function(){return c("ejectBeaker")}})]}),children:(0,r.createComponentVNode)(2,a.BeakerContents,{beakerLoaded:s,beakerContents:m,buttons:function(e){return(0,r.createFragment)([(0,r.createComponentVNode)(2,i.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){return c("remove",{reagent:e.id,amount:-1})}}),l.map((function(t,n){return(0,r.createComponentVNode)(2,i.Button,{content:t,onClick:function(){return c("remove",{reagent:e.id,amount:t})}},n)})),(0,r.createComponentVNode)(2,i.Button,{content:"ALL",onClick:function(){return c("remove",{reagent:e.id,amount:e.volume})}})],0)}})})}},function(e,t,n){"use strict";e.exports=n(440)()},function(e,t,n){"use strict";var r=n(441);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";t.__esModule=!0,t.ChemMaster=void 0;var r=n(1),o=n(11),i=n(13),a=n(17),c=n(173),u=n(68),l=[1,5,10];t.ChemMaster=function(e,t){var n=(0,o.useBackend)(t).data,i=n.condi,c=n.beaker,l=n.beaker_reagents,p=void 0===l?[]:l,m=n.buffer_reagents,v=void 0===m?[]:m,g=n.mode;return(0,r.createComponentVNode)(2,a.Window,{width:575,height:500,resizable:!0,children:[(0,r.createComponentVNode)(2,u.ComplexModal),(0,r.createComponentVNode)(2,a.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:[(0,r.createComponentVNode)(2,s,{beaker:c,beakerReagents:p,bufferNonEmpty:v.length>0}),(0,r.createComponentVNode)(2,d,{mode:g,bufferReagents:v}),(0,r.createComponentVNode)(2,f,{isCondiment:i,bufferNonEmpty:v.length>0}),(0,r.createComponentVNode)(2,h)]})]})};var s=function(e,t){var n=(0,o.useBackend)(t).act,a=e.beaker,s=e.beakerReagents,d=e.bufferNonEmpty;return(0,r.createComponentVNode)(2,i.Section,{title:"Beaker",buttons:d?(0,r.createComponentVNode)(2,i.Button.Confirm,{icon:"eject",disabled:!a,content:"Eject and Clear Buffer",onClick:function(){return n("eject")}}):(0,r.createComponentVNode)(2,i.Button,{icon:"eject",disabled:!a,content:"Eject and Clear Buffer",onClick:function(){return n("eject")}}),children:a?(0,r.createComponentVNode)(2,c.BeakerContents,{beakerLoaded:!0,beakerContents:s,buttons:function(e,o){return(0,r.createComponentVNode)(2,i.Box,{mb:o0?(0,r.createComponentVNode)(2,c.BeakerContents,{beakerLoaded:!0,beakerContents:d,buttons:function(e,o){return(0,r.createComponentVNode)(2,i.Box,{mb:o0?u.desc:"N/A"}),u.blood_type&&(0,r.createFragment)([(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Blood type",children:u.blood_type}),(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:u.blood_dna})],4),!c.condi&&(0,r.createComponentVNode)(2,i.Button,{icon:c.printing?"spinner":"print",disabled:c.printing,iconSpin:!!c.printing,ml:"0.5rem",content:"Print",onClick:function(){return a("print",{idx:u.idx,beaker:e.args.beaker})}})]})})})}))},function(e,t,n){"use strict";t.__esModule=!0,t.CloningConsole=void 0;var r=n(1),o=n(34),i=n(11),a=n(13),c=n(55),u=n(68),l=n(17),s=function(e,t){var n=(0,i.useBackend)(t),o=n.act,u=n.data,l=e.args,s=l.activerecord,d=l.realname,f=l.health,p=l.unidentity,m=l.strucenzymes,h=f.split(" - ");return(0,r.createComponentVNode)(2,a.Section,{level:2,m:"-1rem",pb:"1rem",title:"Records of "+d,children:(0,r.createComponentVNode)(2,a.LabeledList,{children:[(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:d}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Damage",children:h.length>1?(0,r.createFragment)([(0,r.createComponentVNode)(2,a.Box,{color:c.COLORS.damageType.oxy,display:"inline",children:h[0]}),(0,r.createTextVNode)("\xa0|\xa0"),(0,r.createComponentVNode)(2,a.Box,{color:c.COLORS.damageType.toxin,display:"inline",children:h[2]}),(0,r.createTextVNode)("\xa0|\xa0"),(0,r.createComponentVNode)(2,a.Box,{color:c.COLORS.damageType.brute,display:"inline",children:h[3]}),(0,r.createTextVNode)("\xa0|\xa0"),(0,r.createComponentVNode)(2,a.Box,{color:c.COLORS.damageType.burn,display:"inline",children:h[1]})],4):(0,r.createComponentVNode)(2,a.Box,{color:"bad",children:"Unknown"})}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"UI",className:"LabeledList__breakContents",children:p}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"SE",className:"LabeledList__breakContents",children:m}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Disk",children:[(0,r.createComponentVNode)(2,a.Button.Confirm,{disabled:!u.disk,icon:"arrow-circle-down",content:"Import",onClick:function(){return o("disk",{option:"load"})}}),(0,r.createComponentVNode)(2,a.Button,{disabled:!u.disk,icon:"arrow-circle-up",content:"Export UI",onClick:function(){return o("disk",{option:"save",savetype:"ui"})}}),(0,r.createComponentVNode)(2,a.Button,{disabled:!u.disk,icon:"arrow-circle-up",content:"Export UI and UE",onClick:function(){return o("disk",{option:"save",savetype:"ue"})}}),(0,r.createComponentVNode)(2,a.Button,{disabled:!u.disk,icon:"arrow-circle-up",content:"Export SE",onClick:function(){return o("disk",{option:"save",savetype:"se"})}})]}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Actions",children:[(0,r.createComponentVNode)(2,a.Button,{disabled:!u.podready,icon:"user-plus",content:"Clone",onClick:function(){return o("clone",{ref:s})}}),(0,r.createComponentVNode)(2,a.Button,{icon:"trash",content:"Delete",onClick:function(){return o("del_rec")}})]})]})})};t.CloningConsole=function(e,t){var n=(0,i.useBackend)(t);n.act,n.data.menu;return(0,u.modalRegisterBodyOverride)("view_rec",s),(0,r.createComponentVNode)(2,l.Window,{resizable:!0,children:[(0,r.createComponentVNode)(2,u.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,r.createComponentVNode)(2,l.Window.Content,{className:"Layout__content--flexColumn",children:[(0,r.createComponentVNode)(2,h),(0,r.createComponentVNode)(2,v),(0,r.createComponentVNode)(2,d),(0,r.createComponentVNode)(2,a.Section,{noTopPadding:!0,flexGrow:"1",children:(0,r.createComponentVNode)(2,f)})]})]})};var d=function(e,t){var n=(0,i.useBackend)(t),o=n.act,c=n.data.menu;return(0,r.createComponentVNode)(2,a.Tabs,{children:[(0,r.createComponentVNode)(2,a.Tabs.Tab,{selected:1===c,icon:"home",onClick:function(){return o("menu",{num:1})},children:"Main"}),(0,r.createComponentVNode)(2,a.Tabs.Tab,{selected:2===c,icon:"folder",onClick:function(){return o("menu",{num:2})},children:"Records"})]})},f=function(e,t){var n,o=(0,i.useBackend)(t).data.menu;return 1===o?n=(0,r.createComponentVNode)(2,p):2===o&&(n=(0,r.createComponentVNode)(2,m)),n},p=function(e,t){var n=(0,i.useBackend)(t),c=n.act,u=n.data,l=u.loading,s=u.scantemp,d=u.occupant,f=u.locked,p=u.can_brainscan,m=u.scan_mode,h=u.numberofpods,v=u.pods,g=u.selected_pod,b=f&&!!d;return(0,r.createFragment)([(0,r.createComponentVNode)(2,a.Section,{title:"Scanner",level:"2",buttons:(0,r.createFragment)([(0,r.createComponentVNode)(2,a.Box,{display:"inline",color:"label",children:"Scanner Lock:\xa0"}),(0,r.createComponentVNode)(2,a.Button,{disabled:!d,selected:b,icon:b?"toggle-on":"toggle-off",content:b?"Engaged":"Disengaged",onClick:function(){return c("lock")}}),(0,r.createComponentVNode)(2,a.Button,{disabled:b||!d,icon:"user-slash",content:"Eject Occupant",onClick:function(){return c("eject")}})],4),children:[(0,r.createComponentVNode)(2,a.LabeledList,{children:[(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:l?(0,r.createComponentVNode)(2,a.Box,{color:"average",children:[(0,r.createComponentVNode)(2,a.Icon,{name:"spinner",spin:!0}),"\xa0 Scanning..."]}):(0,r.createComponentVNode)(2,a.Box,{color:s.color,children:s.text})}),!!p&&(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Scan Mode",children:(0,r.createComponentVNode)(2,a.Button,{icon:m?"brain":"male",content:m?"Brain":"Body",onClick:function(){return c("toggle_mode")}})})]}),(0,r.createComponentVNode)(2,a.Button,{disabled:!d||l,icon:"user",content:"Scan Occupant",mt:"0.5rem",mb:"0",onClick:function(){return c("scan")}})]}),(0,r.createComponentVNode)(2,a.Section,{title:"Pods",level:"2",children:h?v.map((function(e,t){var n;return n="cloning"===e.status?(0,r.createComponentVNode)(2,a.ProgressBar,{min:"0",max:"100",value:e.progress/100,ranges:{good:[.75,Infinity],average:[.25,.75],bad:[-Infinity,.25]},mt:"0.5rem",children:(0,r.createComponentVNode)(2,a.Box,{textAlign:"center",children:(0,o.round)(e.progress,0)+"%"})}):"mess"===e.status?(0,r.createComponentVNode)(2,a.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):(0,r.createComponentVNode)(2,a.Button,{selected:g===e.pod,icon:g===e.pod&&"check",content:"Select",mt:"0.5rem",onClick:function(){return c("selectpod",{ref:e.pod})}}),(0,r.createComponentVNode)(2,a.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,r.createVNode)(1,"img",null,null,1,{src:"pod_"+e.status+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,r.createComponentVNode)(2,a.Box,{color:"label",children:["Pod #",t+1]}),(0,r.createComponentVNode)(2,a.Box,{bold:!0,color:e.biomass>=150?"good":"bad",display:"inline",children:[(0,r.createComponentVNode)(2,a.Icon,{name:e.biomass>=150?"circle":"circle-o"}),"\xa0",e.biomass]}),n]},t)})):(0,r.createComponentVNode)(2,a.Box,{color:"bad",children:"No pods detected. Unable to clone."})})],4)},m=function(e,t){var n=(0,i.useBackend)(t),o=n.act,c=n.data.records;return c.length?(0,r.createComponentVNode)(2,a.Box,{mt:"0.5rem",children:c.map((function(e,t){return(0,r.createComponentVNode)(2,a.Button,{icon:"user",mb:"0.5rem",content:e.realname,onClick:function(){return o("view_rec",{ref:e.record})}},t)}))}):(0,r.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,r.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,r.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,r.createVNode)(1,"br"),"No records found."]})})},h=function(e,t){var n,o=(0,i.useBackend)(t),c=o.act,u=o.data.temp;if(u&&u.text&&!(u.text.length<=0)){var l=((n={})[u.style]=!0,n);return(0,r.normalizeProps)((0,r.createComponentVNode)(2,a.NoticeBox,Object.assign({},l,{children:[(0,r.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",children:u.text}),(0,r.createComponentVNode)(2,a.Button,{icon:"times-circle",float:"right",onClick:function(){return c("cleartemp")}}),(0,r.createComponentVNode)(2,a.Box,{clear:"both"})]})))}},v=function(e,t){var n=(0,i.useBackend)(t),o=n.act,c=n.data,u=c.scanner,l=c.numberofpods,s=c.autoallowed,d=c.autoprocess,f=c.disk;return(0,r.createComponentVNode)(2,a.Section,{title:"Status",buttons:(0,r.createFragment)([!!s&&(0,r.createFragment)([(0,r.createComponentVNode)(2,a.Box,{display:"inline",color:"label",children:"Auto-processing:\xa0"}),(0,r.createComponentVNode)(2,a.Button,{selected:d,icon:d?"toggle-on":"toggle-off",content:d?"Enabled":"Disabled",onClick:function(){return o("autoprocess",{on:d?0:1})}})],4),(0,r.createComponentVNode)(2,a.Button,{disabled:!f,icon:"eject",content:"Eject Disk",onClick:function(){return o("disk",{option:"eject"})}})],0),children:(0,r.createComponentVNode)(2,a.LabeledList,{children:[(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Scanner",children:u?(0,r.createComponentVNode)(2,a.Box,{color:"good",children:"Connected"}):(0,r.createComponentVNode)(2,a.Box,{color:"bad",children:"Not connected!"})}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Pods",children:l?(0,r.createComponentVNode)(2,a.Box,{color:"good",children:[l," connected"]}):(0,r.createComponentVNode)(2,a.Box,{color:"bad",children:"None connected!"})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Cryo=void 0;var r=n(1),o=n(11),i=n(13),a=n(17),c=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],u=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]];t.Cryo=function(e,t){return(0,r.createComponentVNode)(2,a.Window,{width:520,height:470,resizeable:!0,children:(0,r.createComponentVNode)(2,a.Window.Content,{className:"Layout__content--flexColumn",children:(0,r.createComponentVNode)(2,l)})})};var l=function(e,t){var n=(0,o.useBackend)(t),a=n.act,l=n.data,d=l.isOperating,f=l.hasOccupant,p=l.occupant,m=void 0===p?[]:p,h=l.cellTemperature,v=l.cellTemperatureStatus,g=l.isBeakerLoaded;return(0,r.createFragment)([(0,r.createComponentVNode)(2,i.Section,{title:"Occupant",flexGrow:"1",buttons:(0,r.createComponentVNode)(2,i.Button,{icon:"user-slash",onClick:function(){return a("ejectOccupant")},disabled:!f,children:"Eject"}),children:f?(0,r.createComponentVNode)(2,i.LabeledList,{children:[(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Occupant",children:m.name||"Unknown"}),(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Health",children:(0,r.createComponentVNode)(2,i.ProgressBar,{min:m.health,max:m.maxHealth,value:m.health/m.maxHealth,color:m.health>0?"good":"average",children:(0,r.createComponentVNode)(2,i.AnimatedNumber,{value:Math.round(m.health)})})}),(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",color:u[m.stat][0],children:u[m.stat][1]}),(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Temperature",children:[(0,r.createComponentVNode)(2,i.AnimatedNumber,{value:Math.round(m.bodyTemperature)})," K"]}),(0,r.createComponentVNode)(2,i.LabeledList.Divider),c.map((function(e){return(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:e.label,children:(0,r.createComponentVNode)(2,i.ProgressBar,{value:m[e.type]/100,ranges:{bad:[.01,Infinity]},children:(0,r.createComponentVNode)(2,i.AnimatedNumber,{value:Math.round(m[e.type])})})},e.id)}))]}):(0,r.createComponentVNode)(2,i.Flex,{height:"100%",textAlign:"center",children:(0,r.createComponentVNode)(2,i.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,r.createComponentVNode)(2,i.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,r.createVNode)(1,"br"),"No occupant detected."]})})}),(0,r.createComponentVNode)(2,i.Section,{title:"Cell",buttons:(0,r.createComponentVNode)(2,i.Button,{icon:"eject",onClick:function(){return a("ejectBeaker")},disabled:!g,children:"Eject Beaker"}),children:(0,r.createComponentVNode)(2,i.LabeledList,{children:[(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Power",children:(0,r.createComponentVNode)(2,i.Button,{icon:"power-off",onClick:function(){return a(d?"switchOff":"switchOn")},selected:d,children:d?"On":"Off"})}),(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Temperature",color:v,children:[(0,r.createComponentVNode)(2,i.AnimatedNumber,{value:h})," K"]}),(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Beaker",children:(0,r.createComponentVNode)(2,s)})]})})],4)},s=function(e,t){var n=(0,o.useBackend)(t),a=(n.act,n.data),c=a.isBeakerLoaded,u=a.beakerLabel,l=a.beakerVolume;return c?(0,r.createFragment)([u||(0,r.createComponentVNode)(2,i.Box,{color:"average",children:"No label"}),(0,r.createComponentVNode)(2,i.Box,{color:!l&&"bad",children:l?(0,r.createComponentVNode)(2,i.AnimatedNumber,{value:l,format:function(e){return Math.round(e)+" units remaining"}}):"Beaker is empty"})],0):(0,r.createComponentVNode)(2,i.Box,{color:"average",children:"No beaker loaded"})}},function(e,t,n){"use strict";t.__esModule=!0,t.DNAModifier=void 0;var r=n(1),o=n(11),i=n(13),a=n(17),c=n(68),u=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],l=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],s=[5,10,20,30,50];t.DNAModifier=function(e,t){var n,i=(0,o.useBackend)(t),u=(i.act,i.data),l=u.irradiating,s=u.dnaBlockSize,p=u.occupant;return t.dnaBlockSize=s,t.isDNAInvalid=!p.isViableSubject||!p.uniqueIdentity||!p.structuralEnzymes,l&&(n=(0,r.createComponentVNode)(2,C,{duration:l})),(0,r.createComponentVNode)(2,a.Window,{width:660,height:700,resizable:!0,children:[(0,r.createComponentVNode)(2,c.ComplexModal),n,(0,r.createComponentVNode)(2,a.Window.Content,{className:"Layout__content--flexColumn",children:[(0,r.createComponentVNode)(2,d),(0,r.createComponentVNode)(2,f)]})]})};var d=function(e,t){var n=(0,o.useBackend)(t),a=n.act,c=n.data,l=c.locked,s=c.hasOccupant,d=c.occupant;return(0,r.createComponentVNode)(2,i.Section,{title:"Occupant",buttons:(0,r.createFragment)([(0,r.createComponentVNode)(2,i.Box,{color:"label",display:"inline",mr:"0.5rem",children:"Door Lock:"}),(0,r.createComponentVNode)(2,i.Button,{disabled:!s,selected:l,icon:l?"toggle-on":"toggle-off",content:l?"Engaged":"Disengaged",onClick:function(){return a("toggleLock")}}),(0,r.createComponentVNode)(2,i.Button,{disabled:!s||l,icon:"user-slash",content:"Eject",onClick:function(){return a("ejectOccupant")}})],4),children:s?(0,r.createFragment)([(0,r.createComponentVNode)(2,i.Box,{children:(0,r.createComponentVNode)(2,i.LabeledList,{children:[(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Name",children:d.name}),(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Health",children:(0,r.createComponentVNode)(2,i.ProgressBar,{min:d.minHealth,max:d.maxHealth,value:d.health/d.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",color:u[d.stat][0],children:u[d.stat][1]}),(0,r.createComponentVNode)(2,i.LabeledList.Divider)]})}),t.isDNAInvalid?(0,r.createComponentVNode)(2,i.Box,{color:"bad",children:[(0,r.createComponentVNode)(2,i.Icon,{name:"exclamation-circle"}),"\xa0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,r.createComponentVNode)(2,i.LabeledList,{children:[(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Radiation",children:(0,r.createComponentVNode)(2,i.ProgressBar,{min:"0",max:"100",value:d.radiationLevel/100,color:"average"})}),(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Unique Enzymes",children:c.occupant.uniqueEnzymes?c.occupant.uniqueEnzymes:(0,r.createComponentVNode)(2,i.Box,{color:"bad",children:[(0,r.createComponentVNode)(2,i.Icon,{name:"exclamation-circle"}),"\xa0 Unknown"]})})]})],0):(0,r.createComponentVNode)(2,i.Box,{color:"label",children:"Cell unoccupied."})})},f=function(e,t){var n,a=(0,o.useBackend)(t),c=a.act,u=a.data,s=u.selectedMenuKey,d=u.hasOccupant;u.occupant;return d?t.isDNAInvalid?(0,r.createComponentVNode)(2,i.Section,{flexGrow:"1",children:(0,r.createComponentVNode)(2,i.Flex,{height:"100%",children:(0,r.createComponentVNode)(2,i.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,r.createComponentVNode)(2,i.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,r.createVNode)(1,"br"),"No operation possible on this subject."]})})}):("ui"===s?n=(0,r.createFragment)([(0,r.createComponentVNode)(2,p),(0,r.createComponentVNode)(2,h)],4):"se"===s?n=(0,r.createFragment)([(0,r.createComponentVNode)(2,m),(0,r.createComponentVNode)(2,h)],4):"buffer"===s?n=(0,r.createComponentVNode)(2,v):"rejuvenators"===s&&(n=(0,r.createComponentVNode)(2,y)),(0,r.createComponentVNode)(2,i.Section,{flexGrow:"1",children:[(0,r.createComponentVNode)(2,i.Tabs,{children:l.map((function(e,t){return(0,r.createComponentVNode)(2,i.Tabs.Tab,{selected:s===e[0],onClick:function(){return c("selectMenuKey",{key:e[0]})},children:[(0,r.createComponentVNode)(2,i.Icon,{name:e[2]}),e[1]]},t)}))}),n]})):(0,r.createComponentVNode)(2,i.Section,{flexGrow:"1",children:(0,r.createComponentVNode)(2,i.Flex,{height:"100%",children:(0,r.createComponentVNode)(2,i.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,r.createComponentVNode)(2,i.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,r.createVNode)(1,"br"),"No occupant in DNA modifier."]})})})},p=function(e,t){var n=(0,o.useBackend)(t),a=n.act,c=n.data,u=c.selectedUIBlock,l=c.selectedUISubBlock,s=c.selectedUITarget,d=c.occupant;return(0,r.createComponentVNode)(2,i.Section,{title:"Modify Unique Identifier",level:"2",children:[(0,r.createComponentVNode)(2,N,{dnaString:d.uniqueIdentity,selectedBlock:u,selectedSubblock:l,blockSize:t.dnaBlockSize,action:"selectUIBlock"}),(0,r.createComponentVNode)(2,i.LabeledList,{children:(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Target",children:(0,r.createComponentVNode)(2,i.Knob,{minValue:"1",maxValue:"15",stepPixelSize:"20",value:s,format:function(e){return e.toString(16).toUpperCase()},ml:"0",onChange:function(e,t){return a("changeUITarget",{value:t})}})})}),(0,r.createComponentVNode)(2,i.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){return a("pulseUIRadiation")}})]})},m=function(e,t){var n=(0,o.useBackend)(t),a=n.act,c=n.data,u=c.selectedSEBlock,l=c.selectedSESubBlock,s=c.occupant;return(0,r.createComponentVNode)(2,i.Section,{title:"Modify Structural Enzymes",level:"2",children:[(0,r.createComponentVNode)(2,N,{dnaString:s.structuralEnzymes,selectedBlock:u,selectedSubblock:l,blockSize:t.dnaBlockSize,action:"selectSEBlock"}),(0,r.createComponentVNode)(2,i.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){return a("pulseSERadiation")}})]})},h=function(e,t){var n=(0,o.useBackend)(t),a=n.act,c=n.data,u=c.radiationIntensity,l=c.radiationDuration;return(0,r.createComponentVNode)(2,i.Section,{title:"Radiation Emitter",level:"2",children:[(0,r.createComponentVNode)(2,i.LabeledList,{children:[(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Intensity",children:(0,r.createComponentVNode)(2,i.Knob,{minValue:"1",maxValue:"10",stepPixelSize:"20",value:u,popUpPosition:"right",ml:"0",onChange:function(e,t){return a("radiationIntensity",{value:t})}})}),(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Duration",children:(0,r.createComponentVNode)(2,i.Knob,{minValue:"1",maxValue:"20",stepPixelSize:"10",unit:"s",value:l,popUpPosition:"right",ml:"0",onChange:function(e,t){return a("radiationDuration",{value:t})}})})]}),(0,r.createComponentVNode)(2,i.Button,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top-right",mt:"0.5rem",onClick:function(){return a("pulseRadiation")}})]})},v=function(e,t){var n=(0,o.useBackend)(t),a=(n.act,n.data.buffers.map((function(e,t){return(0,r.createComponentVNode)(2,g,{id:t+1,name:"Buffer "+(t+1),buffer:e},t)})));return(0,r.createFragment)([(0,r.createComponentVNode)(2,i.Section,{title:"Buffers",level:"2",children:a}),(0,r.createComponentVNode)(2,b)],4)},g=function(e,t){var n=(0,o.useBackend)(t),a=n.act,c=n.data,u=e.id,l=e.name,s=e.buffer,d=c.isInjectorReady,f=l+(s.data?" - "+s.label:"");return(0,r.createComponentVNode)(2,i.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,r.createComponentVNode)(2,i.Section,{title:f,level:"3",mx:"0",lineHeight:"18px",buttons:(0,r.createFragment)([(0,r.createComponentVNode)(2,i.Button.Confirm,{disabled:!s.data,icon:"trash",content:"Clear",onClick:function(){return a("bufferOption",{option:"clear",id:u})}}),(0,r.createComponentVNode)(2,i.Button,{disabled:!s.data,icon:"pen",content:"Rename",onClick:function(){return a("bufferOption",{option:"changeLabel",id:u})}}),(0,r.createComponentVNode)(2,i.Button,{disabled:!s.data||!c.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-left",onClick:function(){return a("bufferOption",{option:"saveDisk",id:u})}})],4),children:[(0,r.createComponentVNode)(2,i.LabeledList,{children:[(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Write",children:[(0,r.createComponentVNode)(2,i.Button,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){return a("bufferOption",{option:"saveUI",id:u})}}),(0,r.createComponentVNode)(2,i.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){return a("bufferOption",{option:"saveUIAndUE",id:u})}}),(0,r.createComponentVNode)(2,i.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){return a("bufferOption",{option:"saveSE",id:u})}}),(0,r.createComponentVNode)(2,i.Button,{disabled:!c.hasDisk||!c.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){return a("bufferOption",{option:"loadDisk",id:u})}})]}),!!s.data&&(0,r.createFragment)([(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Subject",children:s.owner||(0,r.createComponentVNode)(2,i.Box,{color:"average",children:"Unknown"})}),(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Data Type",children:["ui"===s.type?"Unique Identifiers":"Structural Enzymes",!!s.ue&&" and Unique Enzymes"]}),(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Transfer to",children:[(0,r.createComponentVNode)(2,i.Button,{disabled:!d,icon:d?"syringe":"spinner",iconSpin:!d,content:"Injector",mb:"0",onClick:function(){return a("bufferOption",{option:"createInjector",id:u})}}),(0,r.createComponentVNode)(2,i.Button,{disabled:!d,icon:d?"syringe":"spinner",iconSpin:!d,content:"Block Injector",mb:"0",onClick:function(){return a("bufferOption",{option:"createInjector",id:u,block:1})}}),(0,r.createComponentVNode)(2,i.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){return a("bufferOption",{option:"transfer",id:u})}})]})],4)]}),!s.data&&(0,r.createComponentVNode)(2,i.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},b=function(e,t){var n=(0,o.useBackend)(t),a=n.act,c=n.data,u=c.hasDisk,l=c.disk;return(0,r.createComponentVNode)(2,i.Section,{title:"Data Disk",level:"2",buttons:(0,r.createFragment)([(0,r.createComponentVNode)(2,i.Button.Confirm,{disabled:!u||!l.data,icon:"trash",content:"Wipe",onClick:function(){return a("wipeDisk")}}),(0,r.createComponentVNode)(2,i.Button,{disabled:!u,icon:"eject",content:"Eject",onClick:function(){return a("ejectDisk")}})],4),children:u?l.data?(0,r.createComponentVNode)(2,i.LabeledList,{children:[(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Label",children:l.label?l.label:"No label"}),(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Subject",children:l.owner?l.owner:(0,r.createComponentVNode)(2,i.Box,{color:"average",children:"Unknown"})}),(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Data Type",children:["ui"===l.type?"Unique Identifiers":"Structural Enzymes",!!l.ue&&" and Unique Enzymes"]})]}):(0,r.createComponentVNode)(2,i.Box,{color:"label",children:"Disk is blank."}):(0,r.createComponentVNode)(2,i.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,r.createComponentVNode)(2,i.Icon,{name:"save-o",size:"4"}),(0,r.createVNode)(1,"br"),"No disk inserted."]})})},y=function(e,t){var n=(0,o.useBackend)(t),a=n.act,c=n.data,u=c.isBeakerLoaded,l=c.beakerVolume,d=c.beakerLabel;return(0,r.createComponentVNode)(2,i.Section,{title:"Rejuvenators and Beaker",level:"2",buttons:(0,r.createComponentVNode)(2,i.Button,{disabled:!u,icon:"eject",content:"Eject",onClick:function(){return a("ejectBeaker")}}),children:u?(0,r.createComponentVNode)(2,i.LabeledList,{children:[(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Inject",children:[s.map((function(e,t){return(0,r.createComponentVNode)(2,i.Button,{disabled:e>l,icon:"syringe",content:e,onClick:function(){return a("injectRejuvenators",{amount:e})}},t)})),(0,r.createComponentVNode)(2,i.Button,{disabled:l<=0,icon:"syringe",content:"All",onClick:function(){return a("injectRejuvenators",{amount:l})}})]}),(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Beaker",children:[(0,r.createComponentVNode)(2,i.Box,{mb:"0.5rem",children:d||"No label"}),l?(0,r.createComponentVNode)(2,i.Box,{color:"good",children:[l," unit",1===l?"":"s"," remaining"]}):(0,r.createComponentVNode)(2,i.Box,{color:"bad",children:"Empty"})]})]}):(0,r.createComponentVNode)(2,i.Box,{color:"label",textAlign:"center",my:"25%",children:[(0,r.createComponentVNode)(2,i.Icon,{name:"exclamation-triangle",size:"4"}),(0,r.createVNode)(1,"br"),"No beaker loaded."]})})},C=function(e,t){return(0,r.createComponentVNode)(2,i.Dimmer,{textAlign:"center",children:[(0,r.createComponentVNode)(2,i.Icon,{name:"spinner",size:"5",spin:!0}),(0,r.createVNode)(1,"br"),(0,r.createComponentVNode)(2,i.Box,{color:"average",children:(0,r.createVNode)(1,"h1",null,[(0,r.createComponentVNode)(2,i.Icon,{name:"radiation"}),(0,r.createTextVNode)("\xa0Irradiating occupant\xa0"),(0,r.createComponentVNode)(2,i.Icon,{name:"radiation"})],4)}),(0,r.createComponentVNode)(2,i.Box,{color:"label",children:(0,r.createVNode)(1,"h3",null,[(0,r.createTextVNode)("For "),e.duration,(0,r.createTextVNode)(" second"),1===e.duration?"":"s"],0)})]})},N=function(e,t){for(var n=(0,o.useBackend)(t),a=n.act,c=(n.data,e.dnaString),u=e.selectedBlock,l=e.selectedSubblock,s=e.blockSize,d=e.action,f=c.split(""),p=[],m=function(e){for(var t=e/s+1,n=[],o=function(o){var c=o+1;n.push((0,r.createComponentVNode)(2,i.Button,{selected:u===t&&l===c,content:f[e+o],mb:"0",onClick:function(){return a(d,{block:t,subblock:c})}}))},c=0;ct.name?1:-1})),c.map((function(e,t){return(0,r.createFragment)([(0,r.createComponentVNode)(2,i.Button,{icon:"flask",content:e.name,mb:"0.5rem",onClick:function(){return a("vir",{vir:e.D})}}),(0,r.createVNode)(1,"br")],4,t)}))},y=function(e,t){var n=(0,o.useBackend)(t).data.medbots;return 0===n.length?(0,r.createComponentVNode)(2,i.Box,{color:"label",children:"There are no Medbots."}):n.map((function(e,t){return(0,r.createComponentVNode)(2,i.Collapsible,{open:!0,title:e.name,children:(0,r.createComponentVNode)(2,i.Box,{px:"0.5rem",children:(0,r.createComponentVNode)(2,i.LabeledList,{children:[(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Location",children:[e.area||"Unknown"," (",e.x,", ",e.y,")"]}),(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:e.on?(0,r.createFragment)([(0,r.createComponentVNode)(2,i.Box,{color:"good",children:"Online"}),(0,r.createComponentVNode)(2,i.Box,{mt:"0.5rem",children:e.use_beaker?"Reservoir: "+e.total_volume+"/"+e.maximum_volume:"Using internal synthesizer."})],4):(0,r.createComponentVNode)(2,i.Box,{color:"average",children:"Offline"})})]})})},t)}))},C=function(e,t){var n=(0,o.useBackend)(t),a=n.act,c=n.data.screen;return(0,r.createComponentVNode)(2,i.Tabs,{children:[(0,r.createComponentVNode)(2,i.Tabs.Tab,{selected:2===c,onClick:function(){return a("screen",{screen:2})},children:[(0,r.createComponentVNode)(2,i.Icon,{name:"list"}),"List Records"]}),(0,r.createComponentVNode)(2,i.Tabs.Tab,{selected:5===c,onClick:function(){return a("screen",{screen:5})},children:[(0,r.createComponentVNode)(2,i.Icon,{name:"database"}),"Virus Database"]}),(0,r.createComponentVNode)(2,i.Tabs.Tab,{selected:6===c,onClick:function(){return a("screen",{screen:6})},children:[(0,r.createComponentVNode)(2,i.Icon,{name:"plus-square"}),"Medbot Tracking"]}),(0,r.createComponentVNode)(2,i.Tabs.Tab,{selected:3===c,onClick:function(){return a("screen",{screen:3})},children:[(0,r.createComponentVNode)(2,i.Icon,{name:"wrench"}),"Record Maintenance"]})]})};(0,a.modalRegisterBodyOverride)("virus",(function(e,t){var n=e.args;return(0,r.createComponentVNode)(2,i.Section,{level:2,m:"-1rem",pb:"1rem",title:n.name||"Virus",children:(0,r.createComponentVNode)(2,i.Box,{mx:"0.5rem",children:(0,r.createComponentVNode)(2,i.LabeledList,{children:[(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Number of stages",children:n.max_stages}),(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Spread",children:[n.spread_text," Transmission"]}),(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Possible cure",children:n.cure}),(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Notes",children:n.desc}),(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Severity",color:d[n.severity],children:n.severity})]})})})}))},function(e,t,n){"use strict";t.__esModule=!0,t.LoginInfo=void 0;var r=n(1),o=n(11),i=n(13);t.LoginInfo=function(e,t){var n=(0,o.useBackend)(t),a=n.act,c=n.data,u=c.authenticated,l=c.rank;if(c)return(0,r.createComponentVNode)(2,i.NoticeBox,{info:!0,children:[(0,r.createComponentVNode)(2,i.Box,{display:"inline-block",verticalAlign:"middle",children:["Logged in as: ",u," (",l,")"]}),(0,r.createComponentVNode)(2,i.Button,{icon:"sign-out-alt",content:"Logout and Eject ID",color:"good",float:"right",onClick:function(){return a("logout")}}),(0,r.createComponentVNode)(2,i.Box,{clear:"both"})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.LoginScreen=void 0;var r=n(1),o=n(11),i=n(13);t.LoginScreen=function(e,t){var n=(0,o.useBackend)(t),a=n.act,c=n.data,u=c.scan,l=c.isAI,s=c.isRobot;return(0,r.createComponentVNode)(2,i.Section,{title:"Welcome",height:"100%",stretchContents:!0,children:(0,r.createComponentVNode)(2,i.Flex,{height:"100%",align:"center",justify:"center",children:(0,r.createComponentVNode)(2,i.Flex.Item,{textAlign:"center",mt:"-2rem",children:[(0,r.createComponentVNode)(2,i.Box,{fontSize:"1.5rem",bold:!0,children:[(0,r.createComponentVNode)(2,i.Icon,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"Guest"]}),(0,r.createComponentVNode)(2,i.Box,{color:"label",my:"1rem",children:["ID:",(0,r.createComponentVNode)(2,i.Button,{icon:"id-card",content:u||"----------",ml:"0.5rem",onClick:function(){return a("scan")}})]}),(0,r.createComponentVNode)(2,i.Button,{icon:"sign-in-alt",disabled:!u,content:"Login",onClick:function(){return a("login",{login_type:1})}}),!!l&&(0,r.createComponentVNode)(2,i.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){return a("login",{login_type:2})}}),!!s&&(0,r.createComponentVNode)(2,i.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){return a("login",{login_type:3})}})]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.TemporaryNotice=void 0;var r=n(1),o=n(11),i=n(13);t.TemporaryNotice=function(e,t){var n,a=(0,o.useBackend)(t),c=a.act,u=a.data.temp;if(u){var l=((n={})[u.style]=!0,n);return(0,r.normalizeProps)((0,r.createComponentVNode)(2,i.NoticeBox,Object.assign({},l,{children:[(0,r.createComponentVNode)(2,i.Box,{display:"inline-block",verticalAlign:"middle",children:u.text}),(0,r.createComponentVNode)(2,i.Button,{icon:"times-circle",float:"right",onClick:function(){return c("cleartemp")}}),(0,r.createComponentVNode)(2,i.Box,{clear:"both"})]})))}}},function(e,t,n){"use strict";t.__esModule=!0,t.NtosCameraConsole=void 0;var r=n(1),o=n(17),i=n(172);t.NtosCameraConsole=function(){return(0,r.createComponentVNode)(2,o.NtosWindow,{width:870,height:708,resizable:!0,children:(0,r.createComponentVNode)(2,o.NtosWindow.Content,{children:(0,r.createComponentVNode)(2,i.CameraConsoleContent)})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NtosCrewMonitor=void 0;var r=n(1),o=n(17),i=n(174);t.NtosCrewMonitor=function(){return(0,r.createComponentVNode)(2,o.NtosWindow,{width:800,height:600,resizable:!0,children:(0,r.createComponentVNode)(2,o.NtosWindow.Content,{children:(0,r.createComponentVNode)(2,i.CrewMonitorContent)})})}},function(e,t,n){"use strict";t.__esModule=!0,t.OperatingComputer=void 0;var r=n(1),o=n(34),i=n(11),a=n(17),c=n(13),u=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],l=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],s={average:[.25,.5],bad:[.5,Infinity]},d=["bad","average","average","good","average","average","bad"];t.OperatingComputer=function(e,t){var n,o=(0,i.useBackend)(t),u=o.act,l=o.data,s=l.hasOccupant,d=l.choice;return n=d?(0,r.createComponentVNode)(2,m):s?(0,r.createComponentVNode)(2,f):(0,r.createComponentVNode)(2,p),(0,r.createComponentVNode)(2,a.Window,{width:650,height:455,resizable:!0,children:(0,r.createComponentVNode)(2,a.Window.Content,{children:[(0,r.createComponentVNode)(2,c.Tabs,{children:[(0,r.createComponentVNode)(2,c.Tabs.Tab,{selected:!d,icon:"user",onClick:function(){return u("choiceOff")},children:"Patient"}),(0,r.createComponentVNode)(2,c.Tabs.Tab,{selected:!!d,icon:"cog",onClick:function(){return u("choiceOn")},children:"Options"})]}),(0,r.createComponentVNode)(2,c.Section,{flexGrow:"1",children:n})]})})};var f=function(e,t){var n=(0,i.useBackend)(t).data.occupant;return(0,r.createFragment)([(0,r.createComponentVNode)(2,c.Section,{title:"Patient",level:"2",children:(0,r.createComponentVNode)(2,c.LabeledList,{children:[(0,r.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:n.name}),(0,r.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",color:u[n.stat][0],children:u[n.stat][1]}),(0,r.createComponentVNode)(2,c.LabeledList.Item,{label:"Health",children:(0,r.createComponentVNode)(2,c.ProgressBar,{min:"0",max:n.maxHealth,value:n.health/n.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),l.map((function(e,t){return(0,r.createComponentVNode)(2,c.LabeledList.Item,{label:e[0]+" Damage",children:(0,r.createComponentVNode)(2,c.ProgressBar,{min:"0",max:"100",value:n[e[1]]/100,ranges:s,children:(0,o.round)(n[e[1]])},t)},t)})),(0,r.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",children:(0,r.createComponentVNode)(2,c.ProgressBar,{min:"0",max:n.maxTemp,value:n.bodyTemperature/n.maxTemp,color:d[n.temperatureSuitability+3],children:[(0,o.round)(n.btCelsius),"\xb0C, ",(0,o.round)(n.btFaren),"\xb0F"]})}),!!n.hasBlood&&(0,r.createFragment)([(0,r.createComponentVNode)(2,c.LabeledList.Item,{label:"Blood Level",children:(0,r.createComponentVNode)(2,c.ProgressBar,{min:"0",max:n.bloodMax,value:n.bloodLevel/n.bloodMax,ranges:{bad:[-Infinity,.6],average:[.6,.9],good:[.6,Infinity]},children:[n.bloodPercent,"%, ",n.bloodLevel,"cl"]})}),(0,r.createComponentVNode)(2,c.LabeledList.Item,{label:"Pulse",children:[n.pulse," BPM"]})],4)]})}),(0,r.createComponentVNode)(2,c.Section,{title:"Current Procedure",level:"2",children:n.surgery&&n.surgery.length?(0,r.createComponentVNode)(2,c.LabeledList,{children:n.surgery.map((function(e){return(0,r.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:(0,r.createComponentVNode)(2,c.LabeledList,{children:[(0,r.createComponentVNode)(2,c.LabeledList.Item,{label:"Current State",children:e.currentStage}),(0,r.createComponentVNode)(2,c.LabeledList.Item,{label:"Possible Next Steps",children:e.nextSteps.map((function(e){return(0,r.createVNode)(1,"div",null,e,0,null,e)}))})]})},e.name)}))}):(0,r.createComponentVNode)(2,c.Box,{color:"label",children:"No procedure ongoing."})})],4)},p=function(){return(0,r.createComponentVNode)(2,c.Flex,{textAlign:"center",height:"100%",children:(0,r.createComponentVNode)(2,c.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,r.createComponentVNode)(2,c.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,r.createVNode)(1,"br"),"No patient detected."]})})},m=function(e,t){var n=(0,i.useBackend)(t),o=n.act,a=n.data,u=a.verbose,l=a.health,s=a.healthAlarm,d=a.oxy,f=a.oxyAlarm,p=a.crit;return(0,r.createComponentVNode)(2,c.LabeledList,{children:[(0,r.createComponentVNode)(2,c.LabeledList.Item,{label:"Loudspeaker",children:(0,r.createComponentVNode)(2,c.Button,{selected:u,icon:u?"toggle-on":"toggle-off",content:u?"On":"Off",onClick:function(){return o(u?"verboseOff":"verboseOn")}})}),(0,r.createComponentVNode)(2,c.LabeledList.Item,{label:"Health Announcer",children:(0,r.createComponentVNode)(2,c.Button,{selected:l,icon:l?"toggle-on":"toggle-off",content:l?"On":"Off",onClick:function(){return o(l?"healthOff":"healthOn")}})}),(0,r.createComponentVNode)(2,c.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,r.createComponentVNode)(2,c.Knob,{bipolar:!0,minValue:"-100",maxValue:"100",value:s,stepPixelSize:"5",ml:"0",onChange:function(e,t){return o("health_adj",{"new":t})}})}),(0,r.createComponentVNode)(2,c.LabeledList.Item,{label:"Oxygen Alarm",children:(0,r.createComponentVNode)(2,c.Button,{selected:d,icon:d?"toggle-on":"toggle-off",content:d?"On":"Off",onClick:function(){return o(d?"oxyOff":"oxyOn")}})}),(0,r.createComponentVNode)(2,c.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,r.createComponentVNode)(2,c.Knob,{bipolar:!0,minValue:"-100",maxValue:"100",value:f,stepPixelSize:"5",ml:"0",onChange:function(e,t){return o("oxy_adj",{"new":t})}})}),(0,r.createComponentVNode)(2,c.LabeledList.Item,{label:"Critical Alert",children:(0,r.createComponentVNode)(2,c.Button,{selected:p,icon:p?"toggle-on":"toggle-off",content:p?"On":"Off",onClick:function(){return o(p?"critOff":"critOn")}})})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.ResleevingConsole=void 0;var r=n(1),o=n(34),i=n(11),a=n(13),c=(n(55),n(68)),u=n(17),l=function(e,t){var n=(0,i.useBackend)(t),o=n.act,c=(n.data,e.args),u=c.activerecord,l=c.realname,s=c.obviously_dead,d=c.oocnotes,f=c.can_sleeve_active;return(0,r.createComponentVNode)(2,a.Section,{level:2,m:"-1rem",pb:"1rem",title:"Mind Record ("+l+")",children:(0,r.createComponentVNode)(2,a.LabeledList,{children:[(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:l}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:s}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Actions",children:[(0,r.createComponentVNode)(2,a.Button,{disabled:!f,icon:"user-plus",content:"Sleeve",onClick:function(){return o("sleeve",{ref:u,mode:1})}}),(0,r.createComponentVNode)(2,a.Button,{icon:"user-plus",content:"Card",onClick:function(){return o("sleeve",{ref:u,mode:2})}})]}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"OOC Notes",children:d})]})})},s=function(e,t){var n=(0,i.useBackend)(t),o=n.act,c=(n.data,e.args),u=c.activerecord,l=c.realname,s=c.species,d=c.sex,f=c.mind_compat,p=c.synthetic,m=c.oocnotes,h=c.can_grow_active;return(0,r.createComponentVNode)(2,a.Section,{level:2,m:"-1rem",pb:"1rem",title:"Body Record ("+l+")",children:(0,r.createComponentVNode)(2,a.LabeledList,{children:[(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:l}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Species",children:s}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Bio. Sex",children:d}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Mind Compat",children:f}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Synthetic",children:p?"Yes":"No"}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"OOC Notes",children:m}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Actions",children:(0,r.createComponentVNode)(2,a.Button,{disabled:!h,icon:"user-plus",content:p?"Build":"Grow",onClick:function(){return o("create",{ref:u})}})})]})})};t.ResleevingConsole=function(e,t){var n=(0,i.useBackend)(t),o=(n.act,n.data),h=(o.menu,o.coredumped),v=o.emergency,g=(0,r.createFragment)([(0,r.createComponentVNode)(2,C),(0,r.createComponentVNode)(2,N),(0,r.createComponentVNode)(2,d),(0,r.createComponentVNode)(2,a.Section,{noTopPadding:!0,flexGrow:"1",children:(0,r.createComponentVNode)(2,f)})],4);return h&&(g=(0,r.createComponentVNode)(2,p)),v&&(g=(0,r.createComponentVNode)(2,m)),(0,c.modalRegisterBodyOverride)("view_b_rec",s),(0,c.modalRegisterBodyOverride)("view_m_rec",l),(0,r.createComponentVNode)(2,u.Window,{width:640,height:520,resizable:!0,children:[(0,r.createComponentVNode)(2,c.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,r.createComponentVNode)(2,u.Window.Content,{className:"Layout__content--flexColumn",children:g})]})};var d=function(e,t){var n=(0,i.useBackend)(t),o=n.act,c=n.data.menu;return(0,r.createComponentVNode)(2,a.Tabs,{children:[(0,r.createComponentVNode)(2,a.Tabs.Tab,{selected:1===c,icon:"home",onClick:function(){return o("menu",{num:1})},children:"Main"}),(0,r.createComponentVNode)(2,a.Tabs.Tab,{selected:2===c,icon:"folder",onClick:function(){return o("menu",{num:2})},children:"Body Records"}),(0,r.createComponentVNode)(2,a.Tabs.Tab,{selected:3===c,icon:"folder",onClick:function(){return o("menu",{num:3})},children:"Mind Records"})]})},f=function(e,t){var n,o=(0,i.useBackend)(t).data,a=o.menu,c=o.bodyrecords,u=o.mindrecords;return 1===a?n=(0,r.createComponentVNode)(2,h):2===a?n=(0,r.createComponentVNode)(2,y,{records:c,actToDo:"view_b_rec"}):3===a&&(n=(0,r.createComponentVNode)(2,y,{records:u,actToDo:"view_m_rec"})),n},p=function(e,t){return(0,r.createComponentVNode)(2,a.Dimmer,{children:(0,r.createComponentVNode)(2,a.Flex,{direction:"column",justify:"space-evenly",align:"center",children:[(0,r.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,r.createComponentVNode)(2,a.Icon,{size:12,color:"bad",name:"exclamation-triangle"})}),(0,r.createComponentVNode)(2,a.Flex.Item,{grow:1,color:"bad",mt:5,children:(0,r.createVNode)(1,"h2",null,"TransCore dump completed. Resleeving offline.",16)})]})})},m=function(e,t){var n=(0,i.useBackend)(t).act;return(0,r.createComponentVNode)(2,a.Dimmer,{textAlign:"center",children:[(0,r.createComponentVNode)(2,a.Box,{color:"bad",children:(0,r.createVNode)(1,"h1",null,"TRANSCORE DUMP",16)}),(0,r.createComponentVNode)(2,a.Box,{color:"bad",children:(0,r.createVNode)(1,"h2",null,"!!WARNING!!",16)}),(0,r.createComponentVNode)(2,a.Box,{color:"bad",children:"This will transfer all minds to the dump disk, and the TransCore will be made unusable until post-shift maintenance! This should only be used in emergencies!"}),(0,r.createComponentVNode)(2,a.Box,{mt:4,children:(0,r.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject Disk",color:"good",onClick:function(){return n("ejectdisk")}})}),(0,r.createComponentVNode)(2,a.Box,{mt:4,children:(0,r.createComponentVNode)(2,a.Button.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Core Dump",confirmContent:"Disable Transcore?",color:"bad",onClick:function(){return n("coredump")}})})]})},h=function(e,t){var n=(0,i.useBackend)(t),o=(n.act,n.data);o.loading,o.scantemp,o.occupant,o.locked,o.can_brainscan,o.scan_mode,o.pods,o.selected_pod;return(0,r.createComponentVNode)(2,a.Section,{title:"Pods",level:"2",children:[(0,r.createComponentVNode)(2,v),(0,r.createComponentVNode)(2,b),(0,r.createComponentVNode)(2,g)]})},v=function(e,t){var n=(0,i.useBackend)(t),c=n.act,u=n.data,l=u.pods,s=u.spods,d=u.selected_pod;return l&&l.length?l.map((function(e,t){var n;return n="cloning"===e.status?(0,r.createComponentVNode)(2,a.ProgressBar,{min:"0",max:"100",value:e.progress/100,ranges:{good:[.75,Infinity],average:[.25,.75],bad:[-Infinity,.25]},mt:"0.5rem",children:(0,r.createComponentVNode)(2,a.Box,{textAlign:"center",children:(0,o.round)(e.progress,0)+"%"})}):"mess"===e.status?(0,r.createComponentVNode)(2,a.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):(0,r.createComponentVNode)(2,a.Button,{selected:d===e.pod,icon:d===e.pod&&"check",content:"Select",mt:s&&s.length?"2rem":"0.5rem",onClick:function(){return c("selectpod",{ref:e.pod})}}),(0,r.createComponentVNode)(2,a.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,r.createVNode)(1,"img",null,null,1,{src:"pod_"+e.status+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,r.createComponentVNode)(2,a.Box,{color:"label",children:e.name}),(0,r.createComponentVNode)(2,a.Box,{bold:!0,color:e.biomass>=150?"good":"bad",display:"inline",children:[(0,r.createComponentVNode)(2,a.Icon,{name:e.biomass>=150?"circle":"circle-o"}),"\xa0",e.biomass]}),n]},t)})):null},g=function(e,t){var n=(0,i.useBackend)(t),o=n.act,c=n.data,u=c.sleevers,l=c.spods,s=c.selected_sleever;return u&&u.length?u.map((function(e,t){var n;return n=e.occupied?(0,r.createComponentVNode)(2,a.Button,{selected:s===e.sleever,icon:s===e.sleever&&"check",content:"Select",mt:l&&l.length?"3rem":"1.5rem",onClick:function(){return o("selectsleever",{ref:e.sleever})}}):(0,r.createComponentVNode)(2,a.Box,{mt:l&&l.length?"2rem":"0.5rem",color:"bad",children:"Sleever Empty."}),(0,r.createComponentVNode)(2,a.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,r.createVNode)(1,"img",null,null,1,{src:"sleeve_"+(e.occupied?"occupied":"empty")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,r.createComponentVNode)(2,a.Box,{color:"label",children:e.name}),n]},t)})):null},b=function(e,t){var n=(0,i.useBackend)(t),c=n.act,u=n.data,l=u.spods,s=u.selected_printer;return l&&l.length?l.map((function(e,t){var n;return n="cloning"===e.status?(0,r.createComponentVNode)(2,a.ProgressBar,{min:"0",max:"100",value:e.progress/100,ranges:{good:[.75,Infinity],average:[.25,.75],bad:[-Infinity,.25]},mt:"0.5rem",children:(0,r.createComponentVNode)(2,a.Box,{textAlign:"center",children:(0,o.round)(e.progress,0)+"%"})}):"mess"===e.status?(0,r.createComponentVNode)(2,a.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):(0,r.createComponentVNode)(2,a.Button,{selected:s===e.spod,icon:s===e.spod&&"check",content:"Select",mt:"0.5rem",onClick:function(){return c("selectprinter",{ref:e.spod})}}),(0,r.createComponentVNode)(2,a.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,r.createVNode)(1,"img",null,null,1,{src:"synthprinter"+(e.busy?"_working":"")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,r.createComponentVNode)(2,a.Box,{color:"label",children:e.name}),(0,r.createComponentVNode)(2,a.Box,{bold:!0,color:e.steel>=15e3?"good":"bad",display:"inline",children:[(0,r.createComponentVNode)(2,a.Icon,{name:e.steel>=15e3?"circle":"circle-o"}),"\xa0",e.steel]}),(0,r.createComponentVNode)(2,a.Box,{bold:!0,color:e.glass>=15e3?"good":"bad",display:"inline",children:[(0,r.createComponentVNode)(2,a.Icon,{name:e.glass>=15e3?"circle":"circle-o"}),"\xa0",e.glass]}),n]},t)})):null},y=function(e,t){var n=(0,i.useBackend)(t).act,o=e.records,c=e.actToDo;return o.length?(0,r.createComponentVNode)(2,a.Box,{mt:"0.5rem",children:o.map((function(e,t){return(0,r.createComponentVNode)(2,a.Button,{icon:"user",mb:"0.5rem",content:e.name,onClick:function(){return n(c,{ref:e.recref})}},t)}))}):(0,r.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,r.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,r.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,r.createVNode)(1,"br"),"No records found."]})})},C=function(e,t){var n,o=(0,i.useBackend)(t),c=o.act,u=o.data.temp;if(u&&u.text&&!(u.text.length<=0)){var l=((n={})[u.style]=!0,n);return(0,r.normalizeProps)((0,r.createComponentVNode)(2,a.NoticeBox,Object.assign({},l,{children:[(0,r.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",children:u.text}),(0,r.createComponentVNode)(2,a.Button,{icon:"times-circle",float:"right",onClick:function(){return c("cleartemp")}}),(0,r.createComponentVNode)(2,a.Box,{clear:"both"})]})))}},N=function(e,t){var n=(0,i.useBackend)(t),o=(n.act,n.data),c=o.pods,u=o.spods,l=o.sleevers;o.autoallowed,o.autoprocess,o.disk;return(0,r.createComponentVNode)(2,a.Section,{title:"Status",children:(0,r.createComponentVNode)(2,a.LabeledList,{children:[(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Pods",children:c&&c.length?(0,r.createComponentVNode)(2,a.Box,{color:"good",children:[c.length," connected"]}):(0,r.createComponentVNode)(2,a.Box,{color:"bad",children:"None connected!"})}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"SynthFabs",children:u&&u.length?(0,r.createComponentVNode)(2,a.Box,{color:"good",children:[u.length," connected"]}):(0,r.createComponentVNode)(2,a.Box,{color:"bad",children:"None connected!"})}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Sleevers",children:l&&l.length?(0,r.createComponentVNode)(2,a.Box,{color:"good",children:[l.length," Connected"]}):(0,r.createComponentVNode)(2,a.Box,{color:"bad",children:"None connected!"})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.ResleevingPod=void 0;var r=n(1),o=n(17),i=n(11),a=n(13);t.ResleevingPod=function(e,t){var n=(0,i.useBackend)(t).data,c=n.occupied,u=n.name,l=n.health,s=n.maxHealth,d=n.stat,f=n.mindStatus,p=n.mindName,m=n.resleeveSick,h=n.initialSick;return(0,r.createComponentVNode)(2,o.Window,{width:300,height:350,resizeable:!0,children:(0,r.createComponentVNode)(2,o.Window.Content,{children:(0,r.createComponentVNode)(2,a.Section,{title:"Occupant",children:c?(0,r.createFragment)([(0,r.createComponentVNode)(2,a.LabeledList,{children:[(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:u}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Health",children:2===d?(0,r.createComponentVNode)(2,a.Box,{color:"bad",children:"DEAD"}):1===d?(0,r.createComponentVNode)(2,a.Box,{color:"average",children:"Unconscious"}):(0,r.createComponentVNode)(2,a.ProgressBar,{ranges:{good:[.5,Infinity],average:[.25,.5],bad:[-Infinity,.25]},value:l/s,children:[l,"%"]})}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Mind Status",children:f?"Present":"Missing"}),f?(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Mind Occupying",children:p}):""]}),m?(0,r.createComponentVNode)(2,a.Box,{color:"average",mt:3,children:["Warning: Resleeving Sickness detected.",h?(0,r.createFragment)([(0,r.createTextVNode)(" Motion Sickness also detected. Please allow the newly resleeved person a moment to get their bearings. This warning will disappear when Motion Sickness is no longer detected.")],4):""]}):""],0):(0,r.createComponentVNode)(2,a.Box,{bold:!0,m:1,children:"Unoccupied."})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Sleeper=void 0;var r=n(1),o=n(34),i=n(11),a=n(13),c=n(17),u=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],l=[["Resp","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],s={average:[.25,.5],bad:[.5,Infinity]},d=["bad","average","average","good","average","average","bad"];t.Sleeper=function(e,t){var n=(0,i.useBackend)(t),o=(n.act,n.data.hasOccupant?(0,r.createComponentVNode)(2,f):(0,r.createComponentVNode)(2,g));return(0,r.createComponentVNode)(2,c.Window,{width:550,height:820,resizable:!0,children:(0,r.createComponentVNode)(2,c.Window.Content,{className:"Layout__content--flexColumn",children:o})})};var f=function(e,t){var n=(0,i.useBackend)(t),o=(n.act,n.data),a=(o.occupant,o.dialysis),c=o.stomachpumping;return(0,r.createFragment)([(0,r.createComponentVNode)(2,p),(0,r.createComponentVNode)(2,m),(0,r.createComponentVNode)(2,h,{title:"Dialysis",active:a,actToDo:"togglefilter"}),(0,r.createComponentVNode)(2,h,{title:"Stomach Pump",active:c,actToDo:"togglepump"}),(0,r.createComponentVNode)(2,v)],4)},p=function(e,t){var n=(0,i.useBackend)(t),c=n.act,l=n.data,s=l.occupant,f=l.auto_eject_dead,p=l.stasis;return(0,r.createComponentVNode)(2,a.Section,{title:"Occupant",buttons:(0,r.createFragment)([(0,r.createComponentVNode)(2,a.Box,{color:"label",display:"inline",children:"Auto-eject if dead:\xa0"}),(0,r.createComponentVNode)(2,a.Button,{icon:f?"toggle-on":"toggle-off",selected:f,content:f?"On":"Off",onClick:function(){return c("auto_eject_dead_"+(f?"off":"on"))}}),(0,r.createComponentVNode)(2,a.Button,{icon:"user-slash",content:"Eject",onClick:function(){return c("ejectify")}}),(0,r.createComponentVNode)(2,a.Button,{content:p,onClick:function(){return c("changestasis")}})],4),children:(0,r.createComponentVNode)(2,a.LabeledList,{children:[(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:s.name}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Health",children:(0,r.createComponentVNode)(2,a.ProgressBar,{min:0,max:s.maxHealth,value:s.health/s.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]},children:(0,o.round)(s.health,0)})}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",color:u[s.stat][0],children:u[s.stat][1]}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Temperature",children:(0,r.createComponentVNode)(2,a.ProgressBar,{min:"0",max:s.maxTemp,value:s.bodyTemperature/s.maxTemp,color:d[s.temperatureSuitability+3],children:[(0,o.round)(s.btCelsius,0),"\xb0C,",(0,o.round)(s.btFaren,0),"\xb0F"]})}),!!s.hasBlood&&(0,r.createFragment)([(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Blood Level",children:(0,r.createComponentVNode)(2,a.ProgressBar,{min:"0",max:s.bloodMax,value:s.bloodLevel/s.bloodMax,ranges:{bad:[-Infinity,.6],average:[.6,.9],good:[.6,Infinity]},children:[s.bloodPercent,"%, ",s.bloodLevel,"cl"]})}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[s.pulse," BPM"]})],4)]})})},m=function(e,t){var n=(0,i.useBackend)(t).data.occupant;return(0,r.createComponentVNode)(2,a.Section,{title:"Damage",children:(0,r.createComponentVNode)(2,a.LabeledList,{children:l.map((function(e,t){return(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:e[0],children:(0,r.createComponentVNode)(2,a.ProgressBar,{min:"0",max:"100",value:n[e[1]]/100,ranges:s,children:(0,o.round)(n[e[1]],0)},t)},t)}))})})},h=function(e,t){var n=(0,i.useBackend)(t),o=n.act,c=n.data,u=c.isBeakerLoaded,l=c.beakerMaxSpace,s=c.beakerFreeSpace,d=e.active,f=e.actToDo,p=e.title,m=d&&s>0;return(0,r.createComponentVNode)(2,a.Section,{title:p,buttons:(0,r.createFragment)([(0,r.createComponentVNode)(2,a.Button,{disabled:!u||s<=0,selected:m,icon:m?"toggle-on":"toggle-off",content:m?"Active":"Inactive",onClick:function(){return o(f)}}),(0,r.createComponentVNode)(2,a.Button,{disabled:!u,icon:"eject",content:"Eject",onClick:function(){return o("removebeaker")}})],4),children:u?(0,r.createComponentVNode)(2,a.LabeledList,{children:(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Remaining Space",children:(0,r.createComponentVNode)(2,a.ProgressBar,{min:"0",max:l,value:s/l,ranges:{good:[.5,Infinity],average:[.25,.5],bad:[-Infinity,.25]},children:[s,"u"]})})}):(0,r.createComponentVNode)(2,a.Box,{color:"label",children:"No beaker loaded."})})},v=function(e,t){var n=(0,i.useBackend)(t),o=n.act,c=n.data,u=c.occupant,l=c.chemicals,s=c.maxchem,d=c.amounts;return(0,r.createComponentVNode)(2,a.Section,{title:"Chemicals",flexGrow:"1",children:l.map((function(e,t){var n,i="";return e.overdosing?(i="bad",n=(0,r.createComponentVNode)(2,a.Box,{color:"bad",children:[(0,r.createComponentVNode)(2,a.Icon,{name:"exclamation-circle"}),"\xa0 Overdosing!"]})):e.od_warning&&(i="average",n=(0,r.createComponentVNode)(2,a.Box,{color:"average",children:[(0,r.createComponentVNode)(2,a.Icon,{name:"exclamation-triangle"}),"\xa0 Close to overdosing"]})),(0,r.createComponentVNode)(2,a.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,r.createComponentVNode)(2,a.Section,{title:e.title,level:"3",mx:"0",lineHeight:"18px",buttons:n,children:(0,r.createComponentVNode)(2,a.Flex,{align:"flex-start",children:[(0,r.createComponentVNode)(2,a.ProgressBar,{min:"0",max:s,value:e.occ_amount/s,color:i,mr:"0.5rem",children:[e.pretty_amount,"/",s,"u"]}),d.map((function(t,n){return(0,r.createComponentVNode)(2,a.Button,{disabled:!e.injectable||e.occ_amount+t>s||2===u.stat,icon:"syringe",content:t,mb:"0",height:"19px",onClick:function(){return o("chemical",{chemid:e.id,amount:t})}},n)}))]})})},t)}))})},g=function(e,t){return(0,r.createComponentVNode)(2,a.Section,{textAlign:"center",flexGrow:"1",children:(0,r.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,r.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,r.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,r.createVNode)(1,"br"),"No occupant detected."]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Wires=void 0;var r=n(1),o=n(11),i=n(13),a=n(17);t.Wires=function(e,t){var n=(0,o.useBackend)(t),c=n.act,u=n.data,l=u.wires||[],s=u.status||[];return(0,r.createComponentVNode)(2,a.Window,{width:350,height:150+30*l.length,resizable:!0,children:(0,r.createComponentVNode)(2,a.Window.Content,{children:[(0,r.createComponentVNode)(2,i.Section,{children:(0,r.createComponentVNode)(2,i.LabeledList,{children:l.map((function(e){return(0,r.createComponentVNode)(2,i.LabeledList.Item,{className:"candystripe",label:e.color_name,labelColor:e.seen_color,color:e.seen_color,buttons:(0,r.createFragment)([(0,r.createComponentVNode)(2,i.Button,{content:e.cut?"Mend":"Cut",onClick:function(){return c("cut",{wire:e.color})}}),(0,r.createComponentVNode)(2,i.Button,{content:"Pulse",onClick:function(){return c("pulse",{wire:e.color})}}),(0,r.createComponentVNode)(2,i.Button,{content:e.attached?"Detach":"Attach",onClick:function(){return c("attach",{wire:e.color})}})],4),children:!!e.wire&&(0,r.createVNode)(1,"i",null,[(0,r.createTextVNode)("("),e.wire,(0,r.createTextVNode)(")")],0)},e.seen_color)}))})}),!!s.length&&(0,r.createComponentVNode)(2,i.Section,{children:s.map((function(e){return(0,r.createComponentVNode)(2,i.Box,{color:"lightgray",mt:.1,children:e},e)}))})]})})}}]); \ No newline at end of file +var n;n=void 0!==e?e:void 0,t.loadCSS=function(e,t,r,o){var i,a=n.document,c=a.createElement("link");if(t)i=t;else{var u=(a.body||a.getElementsByTagName("head")[0]).childNodes;i=u[u.length-1]}var l=a.styleSheets;if(o)for(var s in o)o.hasOwnProperty(s)&&c.setAttribute(s,o[s]);c.rel="stylesheet",c.href=e,c.media="only x",function p(e){if(a.body)return e();setTimeout((function(){p(e)}))}((function(){i.parentNode.insertBefore(c,t?i:i.nextSibling)}));var d=function m(e){for(var t=c.href,n=l.length;n--;)if(l[n].href===t)return e();setTimeout((function(){m(e)}))};function f(){c.addEventListener&&c.removeEventListener("load",f),c.media=r||"all"}return c.addEventListener&&c.addEventListener("load",f),c.onloadcssdefined=d,d(f),c}}).call(this,n(69))},function(e,t,n){"use strict";t.__esModule=!0,t.getRoutedComponent=void 0;var r=n(1),o=n(11),i=(n(117),n(17)),a=n(435),c=function(e,t){return function(){return(0,r.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,r.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:["notFound"===e&&(0,r.createVNode)(1,"div",null,[(0,r.createTextVNode)("Interface "),(0,r.createVNode)(1,"b",null,t,0),(0,r.createTextVNode)(" was not found.")],4),"missingExport"===e&&(0,r.createVNode)(1,"div",null,[(0,r.createTextVNode)("Interface "),(0,r.createVNode)(1,"b",null,t,0),(0,r.createTextVNode)(" is missing an export.")],4)]})})}},u=function(){return(0,r.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,r.createComponentVNode)(2,i.Window.Content,{scrollable:!0})})};t.getRoutedComponent=function(e){var t=(0,o.selectBackend)(e),n=t.suspended,r=t.config;if(n)return u;var i,l=null==r?void 0:r["interface"];try{i=a("./"+l+".js")}catch(d){if("MODULE_NOT_FOUND"===d.code)return c("notFound",l);throw d}var s=i[l];return s||c("missingExport",l)}},function(e,t,n){"use strict";var r,o;t.__esModule=!0,t.VNodeFlags=t.ChildFlags=void 0,t.VNodeFlags=r,function(e){e[e.HtmlElement=1]="HtmlElement",e[e.ComponentUnknown=2]="ComponentUnknown",e[e.ComponentClass=4]="ComponentClass",e[e.ComponentFunction=8]="ComponentFunction",e[e.Text=16]="Text",e[e.SvgElement=32]="SvgElement",e[e.InputElement=64]="InputElement",e[e.TextareaElement=128]="TextareaElement",e[e.SelectElement=256]="SelectElement",e[e.Void=512]="Void",e[e.Portal=1024]="Portal",e[e.ReCreate=2048]="ReCreate",e[e.ContentEditable=4096]="ContentEditable",e[e.Fragment=8192]="Fragment",e[e.InUse=16384]="InUse",e[e.ForwardRef=32768]="ForwardRef",e[e.Normalized=65536]="Normalized",e[e.ForwardRefComponent=32776]="ForwardRefComponent",e[e.FormElement=448]="FormElement",e[e.Element=481]="Element",e[e.Component=14]="Component",e[e.DOMRef=2033]="DOMRef",e[e.InUseOrNormalized=81920]="InUseOrNormalized",e[e.ClearInUse=-16385]="ClearInUse",e[e.ComponentKnown=12]="ComponentKnown"}(r||(t.VNodeFlags=r={})),t.ChildFlags=o,function(e){e[e.UnknownChildren=0]="UnknownChildren",e[e.HasInvalidChildren=1]="HasInvalidChildren",e[e.HasVNodeChildren=2]="HasVNodeChildren",e[e.HasNonKeyedChildren=4]="HasNonKeyedChildren",e[e.HasKeyedChildren=8]="HasKeyedChildren",e[e.HasTextChildren=16]="HasTextChildren",e[e.MultipleChildren=12]="MultipleChildren"}(o||(t.ChildFlags=o={}))},function(e,t,n){"use strict";t.__esModule=!0,t.NtosWindow=void 0;var r=n(1),o=n(118),i=n(11),a=n(13),c=n(119),u=n(170),l=function(e,t){var n=e.title,l=e.width,s=void 0===l?575:l,d=e.height,f=void 0===d?700:d,p=e.resizable,m=e.theme,h=void 0===m?"ntos":m,v=e.children,g=(0,i.useBackend)(t),b=g.act,y=g.data,C=y.PC_device_theme,N=y.PC_batteryicon,x=y.PC_showbatteryicon,V=y.PC_batterypercent,w=y.PC_ntneticon,_=y.PC_apclinkicon,k=y.PC_stationtime,S=y.PC_programheaders,E=void 0===S?[]:S,B=y.PC_showexitprogram;return(0,r.createComponentVNode)(2,u.Window,{title:n,width:s,height:f,theme:h,resizable:p,children:(0,r.createVNode)(1,"div","NtosWindow",[(0,r.createVNode)(1,"div","NtosWindow__header NtosHeader",[(0,r.createVNode)(1,"div","NtosHeader__left",[(0,r.createComponentVNode)(2,a.Box,{inline:!0,bold:!0,mr:2,children:k}),(0,r.createComponentVNode)(2,a.Box,{inline:!0,italic:!0,mr:2,opacity:.33,children:["ntos"===C&&"NtOS","syndicate"===C&&"Syndix"]})],4),(0,r.createVNode)(1,"div","NtosHeader__right",[E.map((function(e){return(0,r.createComponentVNode)(2,a.Box,{inline:!0,mr:1,children:(0,r.createVNode)(1,"img","NtosHeader__icon",null,1,{src:(0,o.resolveAsset)(e.icon)})},e.icon)})),(0,r.createComponentVNode)(2,a.Box,{inline:!0,children:w&&(0,r.createVNode)(1,"img","NtosHeader__icon",null,1,{src:(0,o.resolveAsset)(w)})}),!!x&&N&&(0,r.createComponentVNode)(2,a.Box,{inline:!0,mr:1,children:[N&&(0,r.createVNode)(1,"img","NtosHeader__icon",null,1,{src:(0,o.resolveAsset)(N)}),V&&V]}),_&&(0,r.createComponentVNode)(2,a.Box,{inline:!0,mr:1,children:(0,r.createVNode)(1,"img","NtosHeader__icon",null,1,{src:(0,o.resolveAsset)(_)})}),!!B&&(0,r.createComponentVNode)(2,a.Button,{width:"26px",textAlign:"center",color:"transparent",icon:"window-minimize-o",tooltip:"Minimize",tooltipPosition:"bottom",onClick:function(){return b("PC_minimize")}}),!!B&&(0,r.createComponentVNode)(2,a.Button,{mr:"-3px",width:"26px",textAlign:"center",color:"transparent",icon:"window-close-o",tooltip:"Close",tooltipPosition:"bottom-left",onClick:function(){return b("PC_exit")}}),!B&&(0,r.createComponentVNode)(2,a.Button,{mr:"-3px",width:"26px",lineHeight:"22px",textAlign:"center",color:"transparent",icon:"power-off",tooltip:"Power off",tooltipPosition:"bottom-left",onClick:function(){return b("PC_shutdown")}})],0)],4,{onMouseDown:function(){(0,c.refocusLayout)()}}),v],0)})};t.NtosWindow=l;l.Content=function(e){return(0,r.createVNode)(1,"div","NtosWindow__content",(0,r.normalizeProps)((0,r.createComponentVNode)(2,u.Window.Content,Object.assign({},e))),2)}},function(e,t,n){"use strict";t.__esModule=!0,t.BlockQuote=void 0;var r=n(1),o=n(9),i=n(15);t.BlockQuote=function(e){var t=e.className,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,["className"]);return(0,r.normalizeProps)((0,r.createComponentVNode)(2,i.Box,Object.assign({className:(0,o.classes)(["BlockQuote",t])},n)))}},function(e,t,n){"use strict";t.__esModule=!0,t.ByondUi=void 0;var r=n(1),o=n(9),i=n(418),a=n(36),c=n(15);function u(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var l=(0,a.createLogger)("ByondUi"),s=[];window.addEventListener("beforeunload",(function(){for(var e=0;e=0||(o[n]=e[n]);return o}(t,["data","rangeX","rangeY","fillColor","strokeColor","strokeWidth"]),v=this.state.viewBox,g=function(e,t,n,r){if(0===e.length)return[];var i=(0,o.zipWith)(Math.min).apply(void 0,e),a=(0,o.zipWith)(Math.max).apply(void 0,e);return n!==undefined&&(i[0]=n[0],a[0]=n[1]),r!==undefined&&(i[1]=r[0],a[1]=r[1]),(0,o.map)((function(e){return(0,o.zipWith)((function(e,t,n,r){return(e-t)/(n-t)*r}))(e,i,a,t)}))(e)}(i,v,c,u);if(g.length>0){var b=g[0],y=g[g.length-1];g.push([v[0]+m,y[1]]),g.push([v[0]+m,-m]),g.push([-m,-m]),g.push([-m,b[1]])}var C=function(e){for(var t="",n=0;n=0||(o[n]=e[n]);return o}(t,["children","color","title","buttons"]);return(0,r.createComponentVNode)(2,o.Box,{mb:1,children:[(0,r.createVNode)(1,"div","Table",[(0,r.createVNode)(1,"div","Table__cell",(0,r.normalizeProps)((0,r.createComponentVNode)(2,i.Button,Object.assign({fluid:!0,color:u,icon:n?"chevron-down":"chevron-right",onClick:function(){return e.setState({open:!n})}},d,{children:l}))),2),s&&(0,r.createVNode)(1,"div","Table__cell Table__cell--collapsing",s,0)],0),n&&(0,r.createComponentVNode)(2,o.Box,{mt:1,children:a})]})},a}(r.Component);t.Collapsible=a},function(e,t,n){"use strict";t.__esModule=!0,t.ColorBox=void 0;var r=n(1),o=n(9),i=n(15);var a=function(e){var t=e.content,n=(e.children,e.className),a=e.color,c=e.backgroundColor,u=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,["content","children","className","color","backgroundColor"]);return u.color=t?null:"transparent",u.backgroundColor=a||c,(0,r.normalizeProps)((0,r.createVNode)(1,"div",(0,o.classes)(["ColorBox",n,(0,i.computeBoxClassName)(u)]),t||".",0,Object.assign({},(0,i.computeBoxProps)(u))))};t.ColorBox=a,a.defaultHooks=o.pureComponentHooks},function(e,t,n){"use strict";t.__esModule=!0,t.Dropdown=void 0;var r=n(1),o=n(9),i=n(15),a=n(122);function c(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var u=function(e){var t,n;function u(t){var n;return(n=e.call(this,t)||this).state={selected:t.selected,open:!1},n.handleClick=function(){n.state.open&&n.setOpen(!1)},n}n=e,(t=u).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var l=u.prototype;return l.componentWillUnmount=function(){window.removeEventListener("click",this.handleClick)},l.setOpen=function(e){var t=this;this.setState({open:e}),e?(setTimeout((function(){return window.addEventListener("click",t.handleClick)})),this.menuRef.focus()):window.removeEventListener("click",this.handleClick)},l.setSelected=function(e){this.setState({selected:e}),this.setOpen(!1),this.props.onSelected(e)},l.buildMenu=function(){var e=this,t=this.props,n=t.options,o=void 0===n?[]:n,i=t.placeholder,a=o.map((function(t){return(0,r.createVNode)(1,"div","Dropdown__menuentry",t,0,{onClick:function(){e.setSelected(t)}},t)}));return a.unshift((0,r.createVNode)(1,"div","Dropdown__menuentry",[(0,r.createTextVNode)("-- "),i,(0,r.createTextVNode)(" --")],0,{onClick:function(){e.setSelected(null)}},i)),a},l.render=function(){var e=this,t=this.props,n=t.color,u=void 0===n?"default":n,l=t.over,s=t.noscroll,d=t.nochevron,f=t.width,p=(t.onClick,t.selected,t.disabled),m=t.placeholder,h=c(t,["color","over","noscroll","nochevron","width","onClick","selected","disabled","placeholder"]),v=h.className,g=c(h,["className"]),b=l?!this.state.open:this.state.open,y=this.state.open?(0,r.createVNode)(1,"div",(0,o.classes)([s?"Dropdown__menu-noscroll":"Dropdown__menu",l&&"Dropdown__over"]),this.buildMenu(),0,{tabIndex:"-1",style:{width:f}},null,(function(t){e.menuRef=t})):null;return(0,r.createVNode)(1,"div","Dropdown",[(0,r.normalizeProps)((0,r.createComponentVNode)(2,i.Box,Object.assign({width:f,className:(0,o.classes)(["Dropdown__control","Button","Button--color--"+u,p&&"Button--disabled",v])},g,{onClick:function(){p&&!e.state.open||e.setOpen(!e.state.open)},children:[(0,r.createVNode)(1,"span","Dropdown__selected-text",this.state.selected||m,0),!!d||(0,r.createVNode)(1,"span","Dropdown__arrow-button",(0,r.createComponentVNode)(2,a.Icon,{name:b?"chevron-up":"chevron-down"}),2)]}))),y],0)},u}(r.Component);t.Dropdown=u},function(e,t,n){"use strict";t.__esModule=!0,t.GridColumn=t.Grid=void 0;var r=n(1),o=n(124),i=n(9);function a(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var c=function(e){var t=e.children,n=a(e,["children"]);return(0,r.normalizeProps)((0,r.createComponentVNode)(2,o.Table,Object.assign({},n,{children:(0,r.createComponentVNode)(2,o.Table.Row,{children:t})})))};t.Grid=c,c.defaultHooks=i.pureComponentHooks;var u=function(e){var t=e.size,n=void 0===t?1:t,i=e.style,c=a(e,["size","style"]);return(0,r.normalizeProps)((0,r.createComponentVNode)(2,o.Table.Cell,Object.assign({style:Object.assign({width:n+"%"},i)},c)))};t.GridColumn=u,c.defaultHooks=i.pureComponentHooks,c.Column=u},function(e,t,n){"use strict";t.__esModule=!0,t.Input=void 0;var r=n(1),o=n(9),i=n(15);function a(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var c=function(e){return(0,o.isFalsy)(e)?"":e},u=function(e){var t,n;function u(){var t;return(t=e.call(this)||this).inputRef=(0,r.createRef)(),t.state={editing:!1},t.handleInput=function(e){var n=t.state.editing,r=t.props.onInput;n||t.setEditing(!0),r&&r(e,e.target.value)},t.handleFocus=function(e){t.state.editing||t.setEditing(!0)},t.handleBlur=function(e){var n=t.state.editing,r=t.props.onChange;n&&(t.setEditing(!1),r&&r(e,e.target.value))},t.handleKeyDown=function(e){var n=t.props,r=n.onInput,o=n.onChange,i=n.onEnter;return 13===e.keyCode?(t.setEditing(!1),o&&o(e,e.target.value),r&&r(e,e.target.value),i&&i(e,e.target.value),void(t.props.selfClear?e.target.value="":e.target.blur())):27===e.keyCode?(t.setEditing(!1),e.target.value=c(t.props.value),void e.target.blur()):void 0},t}n=e,(t=u).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var l=u.prototype;return l.componentDidMount=function(){var e=this.props.value,t=this.inputRef.current;t&&(t.value=c(e),this.props.autofocus&&(t.focus(),t.selectionStart=0,t.selectionEnd=t.value.length))},l.componentDidUpdate=function(e,t){var n=this.state.editing,r=e.value,o=this.props.value,i=this.inputRef.current;i&&!n&&r!==o&&(i.value=c(o))},l.setEditing=function(e){this.setState({editing:e})},l.render=function(){var e=this.props,t=(e.selfClear,e.onInput,e.onChange,e.onEnter,e.value,e.maxLength),n=e.placeholder,c=(e.autofocus,a(e,["selfClear","onInput","onChange","onEnter","value","maxLength","placeholder","autofocus"])),u=c.className,l=c.fluid,s=a(c,["className","fluid"]);return(0,r.normalizeProps)((0,r.createComponentVNode)(2,i.Box,Object.assign({className:(0,o.classes)(["Input",l&&"Input--fluid",u])},s,{children:[(0,r.createVNode)(1,"div","Input__baseline",".",16),(0,r.createVNode)(64,"input","Input__input",null,1,{placeholder:n,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,maxLength:t},null,this.inputRef)]})))},u}(r.Component);t.Input=u},function(e,t,n){"use strict";t.__esModule=!0,t.Knob=void 0;var r=n(1),o=n(34),i=n(9),a=n(15),c=n(123),u=n(125);t.Knob=function(e){if(Byond.IS_LTE_IE8)return(0,r.normalizeProps)((0,r.createComponentVNode)(2,u.NumberInput,Object.assign({},e)));var t=e.animated,n=e.format,l=e.maxValue,s=e.minValue,d=e.onChange,f=e.onDrag,p=e.step,m=e.stepPixelSize,h=e.suppressFlicker,v=e.unit,g=e.value,b=e.className,y=e.style,C=e.fillValue,N=e.color,x=e.ranges,V=void 0===x?{}:x,w=e.size,_=e.bipolar,k=(e.children,e.popUpPosition),S=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children","popUpPosition"]);return(0,r.normalizeProps)((0,r.createComponentVNode)(2,c.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:t,format:n,maxValue:l,minValue:s,onChange:d,onDrag:f,step:p,stepPixelSize:m,suppressFlicker:h,unit:v,value:g},{children:function(e){var t=e.dragging,n=(e.editing,e.value),c=e.displayValue,u=e.displayElement,d=e.inputElement,f=e.handleDragStart,p=(0,o.scale)(null!=C?C:c,s,l),m=(0,o.scale)(c,s,l),h=N||(0,o.keyOfMatchingRange)(null!=C?C:n,V)||"default",v=270*(m-.5);return(0,r.normalizeProps)((0,r.createVNode)(1,"div",(0,i.classes)(["Knob","Knob--color--"+h,_&&"Knob--bipolar",b,(0,a.computeBoxClassName)(S)]),[(0,r.createVNode)(1,"div","Knob__circle",(0,r.createVNode)(1,"div","Knob__cursorBox",(0,r.createVNode)(1,"div","Knob__cursor"),2,{style:{transform:"rotate("+v+"deg)"}}),2),t&&(0,r.createVNode)(1,"div",(0,i.classes)(["Knob__popupValue",k&&"Knob__popupValue--"+k]),u,0),(0,r.createVNode)(32,"svg","Knob__ring Knob__ringTrackPivot",(0,r.createVNode)(32,"circle","Knob__ringTrack",null,1,{cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),(0,r.createVNode)(32,"svg","Knob__ring Knob__ringFillPivot",(0,r.createVNode)(32,"circle","Knob__ringFill",null,1,{style:{"stroke-dashoffset":((_?2.75:2)-1.5*p)*Math.PI*50},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),d],0,Object.assign({},(0,a.computeBoxProps)(Object.assign({style:Object.assign({"font-size":w+"rem"},y)},S)),{onMouseDown:f})))}})))}},function(e,t,n){"use strict";t.__esModule=!0,t.LabeledControls=void 0;var r=n(1),o=n(169);function i(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var a=function(e){var t=e.children,n=i(e,["children"]);return(0,r.normalizeProps)((0,r.createComponentVNode)(2,o.Flex,Object.assign({mx:-.5,align:"stretch",justify:"space-between"},n,{children:t})))};t.LabeledControls=a;a.Item=function(e){var t=e.label,n=e.children,a=i(e,["label","children"]);return(0,r.createComponentVNode)(2,o.Flex.Item,{mx:1,children:(0,r.normalizeProps)((0,r.createComponentVNode)(2,o.Flex,Object.assign({minWidth:"52px",height:"100%",direction:"column",align:"center",textAlign:"center",justify:"space-between"},a,{children:[(0,r.createComponentVNode)(2,o.Flex.Item),(0,r.createComponentVNode)(2,o.Flex.Item,{children:n}),(0,r.createComponentVNode)(2,o.Flex.Item,{color:"label",children:t})]})))})}},function(e,t,n){"use strict";t.__esModule=!0,t.LabeledListDivider=t.LabeledListItem=t.LabeledList=void 0;var r=n(1),o=n(9),i=n(15),a=n(168),c=function(e){var t=e.children;return(0,r.createVNode)(1,"table","LabeledList",t,0)};t.LabeledList=c,c.defaultHooks=o.pureComponentHooks;var u=function(e){var t=e.className,n=e.label,a=e.labelColor,c=void 0===a?"label":a,u=e.color,l=e.textAlign,s=e.verticalAlign,d=e.buttons,f=e.content,p=e.children;return(0,r.createVNode)(1,"tr",(0,o.classes)(["LabeledList__row",t]),[(0,r.createComponentVNode)(2,i.Box,{as:"td",color:c,verticalAlign:s,className:(0,o.classes)(["LabeledList__cell","LabeledList__label"]),children:n?n+":":null}),(0,r.createComponentVNode)(2,i.Box,{as:"td",color:u,textAlign:l,verticalAlign:s,className:(0,o.classes)(["LabeledList__cell","LabeledList__content"]),colSpan:d?undefined:2,children:[f,p]}),d&&(0,r.createVNode)(1,"td","LabeledList__cell LabeledList__buttons",d,0)],0)};t.LabeledListItem=u,u.defaultHooks=o.pureComponentHooks;var l=function(e){var t=e.size?(0,i.unit)(Math.max(0,e.size-1)):0;return(0,r.createVNode)(1,"tr","LabeledList__row",(0,r.createVNode)(1,"td",null,(0,r.createComponentVNode)(2,a.Divider),2,{colSpan:3,style:{"padding-top":t,"padding-bottom":t}}),2)};t.LabeledListDivider=l,l.defaultHooks=o.pureComponentHooks,c.Item=u,c.Divider=l},function(e,t,n){"use strict";t.__esModule=!0,t.NanoMap=void 0;var r=n(1),o=n(13),i=n(11);n(118);var a=function(e){var t,n;function a(t){var n;n=e.call(this,t)||this;var r=window.innerWidth/2-256;return n.state={offsetX:r,offsetY:0,transform:"none",dragging:!1,originX:null,originY:null},n.handleDragStart=function(e){document.body.style["pointer-events"]="none",n.ref=e.target,n.setState({dragging:!1,originX:e.screenX,originY:e.screenY}),n.timer=setTimeout((function(){n.setState({dragging:!0})}),250),document.addEventListener("mousemove",n.handleDragMove),document.addEventListener("mouseup",n.handleDragEnd)},n.handleDragMove=function(e){n.setState((function(t){var n=Object.assign({},t),r=e.screenX-n.originX,o=e.screenY-n.originY;return t.dragging?(n.offsetX+=r,n.offsetY+=o,n.originX=e.screenX,n.originY=e.screenY):n.dragging=!0,n}))},n.handleDragEnd=function(e){document.body.style["pointer-events"]="auto",clearTimeout(n.timer),n.setState({dragging:!1,originX:null,originY:null}),document.removeEventListener("mousemove",n.handleDragMove),document.removeEventListener("mouseup",n.handleDragEnd)},n}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,a.prototype.render=function(){var e=(0,i.useBackend)(this.context).config,t=this.state,n=t.offsetX,a=t.offsetY,c=this.props,u=c.children,l=c.zoom,s=(c.reset,{width:"512px",height:"512px","margin-top":a+"px","margin-left":n+"px",overflow:"hidden",position:"relative",padding:"0px","background-image":"url("+e.map+"_nanomap_z"+e.mapZLevel+".png)","background-size":"cover","text-align":"center","transform-origin":"center center",transform:"scale("+l+")"});return(0,r.createComponentVNode)(2,o.Box,{className:"NanoMap__container",children:(0,r.createComponentVNode)(2,o.Box,{style:s,textAlign:"center",onMouseDown:this.handleDragStart,children:(0,r.createComponentVNode)(2,o.Box,{children:u})})})},a}(r.Component);t.NanoMap=a;a.Marker=function(e,t){var n=e.x,i=e.y,a=e.zoom,c=e.icon,u=e.tooltip,l=e.color,s=-256*(a-1)+n*(3.65714285714*a)-1.5*a-3,d=512*a-i*(3.65714285714*a)+a-1.5;return(0,r.createVNode)(1,"div",null,(0,r.createComponentVNode)(2,o.Box,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",top:d+"px",left:s+"px",children:[(0,r.createComponentVNode)(2,o.Icon,{name:c,color:l,fontSize:"6px"}),(0,r.createComponentVNode)(2,o.Tooltip,{content:u})]}),2,{style:"transform: scale("+1/a+")"})}},function(e,t,n){"use strict";t.__esModule=!0,t.Modal=void 0;var r=n(1),o=n(9),i=n(15),a=n(167);t.Modal=function(e){var t,n=e.className,c=e.children,u=e.onEnter,l=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,["className","children","onEnter"]);return u&&(t=function(e){13===(e.which||e.keyCode)&&u(e)}),(0,r.createComponentVNode)(2,a.Dimmer,{onKeyDown:t,children:(0,r.normalizeProps)((0,r.createVNode)(1,"div",(0,o.classes)(["Modal",n,(0,i.computeBoxClassName)(l)]),c,0,Object.assign({},(0,i.computeBoxProps)(l))))})}},function(e,t,n){"use strict";t.__esModule=!0,t.NoticeBox=void 0;var r=n(1),o=n(9),i=n(15);var a=function(e){var t=e.className,n=e.color,a=e.info,c=(e.warning,e.success),u=e.danger,l=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,["className","color","info","warning","success","danger"]);return(0,r.normalizeProps)((0,r.createComponentVNode)(2,i.Box,Object.assign({className:(0,o.classes)(["NoticeBox",n&&"NoticeBox--color--"+n,a&&"NoticeBox--type--info",c&&"NoticeBox--type--success",u&&"NoticeBox--type--danger",t])},l)))};t.NoticeBox=a,a.defaultHooks=o.pureComponentHooks},function(e,t,n){"use strict";t.__esModule=!0,t.ProgressBar=void 0;var r=n(1),o=n(34),i=n(9),a=n(15);var c=function(e){var t=e.className,n=e.value,c=e.minValue,u=void 0===c?0:c,l=e.maxValue,s=void 0===l?1:l,d=e.color,f=e.ranges,p=void 0===f?{}:f,m=e.children,h=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,["className","value","minValue","maxValue","color","ranges","children"]),v=(0,o.scale)(n,u,s),g=m!==undefined,b=d||(0,o.keyOfMatchingRange)(n,p)||"default";return(0,r.normalizeProps)((0,r.createVNode)(1,"div",(0,i.classes)(["ProgressBar","ProgressBar--color--"+b,t,(0,a.computeBoxClassName)(h)]),[(0,r.createVNode)(1,"div","ProgressBar__fill ProgressBar__fill--animated",null,1,{style:{width:100*(0,o.clamp01)(v)+"%"}}),(0,r.createVNode)(1,"div","ProgressBar__content",g?m:(0,o.toFixed)(100*v)+"%",0)],4,Object.assign({},(0,a.computeBoxProps)(h))))};t.ProgressBar=c,c.defaultHooks=i.pureComponentHooks},function(e,t,n){"use strict";t.__esModule=!0,t.Section=void 0;var r=n(1),o=n(9),i=n(15);var a=function(e){var t=e.className,n=e.title,a=e.level,c=void 0===a?1:a,u=e.buttons,l=e.fill,s=e.stretchContents,d=e.noTopPadding,f=e.children,p=(e.scrollable,e.flexGrow),m=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,["className","title","level","buttons","fill","stretchContents","noTopPadding","children","scrollable","flexGrow"]),h=!(0,o.isFalsy)(n)||!(0,o.isFalsy)(u),v=!(0,o.isFalsy)(f);return(0,r.normalizeProps)((0,r.createVNode)(1,"div",(0,o.classes)(["Section","Section--level--"+c,l&&"Section--fill",p&&"Section--flex",t].concat((0,i.computeBoxClassName)(m))),[h&&(0,r.createVNode)(1,"div","Section__title",[(0,r.createVNode)(1,"span","Section__titleText",n,0),(0,r.createVNode)(1,"div","Section__buttons",u,0)],4),v&&(0,r.createVNode)(1,"div",(0,o.classes)(["Section__content",!!s&&"Section__content--stretchContents",!!d&&"Section__content--noTopPadding"]),f,0)],0,Object.assign({},(0,i.computeBoxProps)(m))))};t.Section=a,a.defaultHooks=o.pureComponentHooks},function(e,t,n){"use strict";t.__esModule=!0,t.Slider=void 0;var r=n(1),o=n(34),i=n(9),a=n(15),c=n(123),u=n(125);t.Slider=function(e){if(Byond.IS_LTE_IE8)return(0,r.normalizeProps)((0,r.createComponentVNode)(2,u.NumberInput,Object.assign({},e)));var t=e.animated,n=e.format,l=e.maxValue,s=e.minValue,d=e.onChange,f=e.onDrag,p=e.step,m=e.stepPixelSize,h=e.suppressFlicker,v=e.unit,g=e.value,b=e.className,y=e.fillValue,C=e.color,N=e.ranges,x=void 0===N?{}:N,V=e.children,w=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children"]),_=V!==undefined;return(0,r.normalizeProps)((0,r.createComponentVNode)(2,c.DraggableControl,Object.assign({dragMatrix:[1,0]},{animated:t,format:n,maxValue:l,minValue:s,onChange:d,onDrag:f,step:p,stepPixelSize:m,suppressFlicker:h,unit:v,value:g},{children:function(e){var t=e.dragging,n=(e.editing,e.value),c=e.displayValue,u=e.displayElement,d=e.inputElement,f=e.handleDragStart,p=y!==undefined&&null!==y,m=((0,o.scale)(n,s,l),(0,o.scale)(null!=y?y:c,s,l)),h=(0,o.scale)(c,s,l),v=C||(0,o.keyOfMatchingRange)(null!=y?y:n,x)||"default";return(0,r.normalizeProps)((0,r.createVNode)(1,"div",(0,i.classes)(["Slider","ProgressBar","ProgressBar--color--"+v,b,(0,a.computeBoxClassName)(w)]),[(0,r.createVNode)(1,"div",(0,i.classes)(["ProgressBar__fill",p&&"ProgressBar__fill--animated"]),null,1,{style:{width:100*(0,o.clamp01)(m)+"%",opacity:.4}}),(0,r.createVNode)(1,"div","ProgressBar__fill",null,1,{style:{width:100*(0,o.clamp01)(Math.min(m,h))+"%"}}),(0,r.createVNode)(1,"div","Slider__cursorOffset",[(0,r.createVNode)(1,"div","Slider__cursor"),(0,r.createVNode)(1,"div","Slider__pointer"),t&&(0,r.createVNode)(1,"div","Slider__popupValue",u,0)],0,{style:{width:100*(0,o.clamp01)(h)+"%"}}),(0,r.createVNode)(1,"div","ProgressBar__content",_?V:u,0),d],0,Object.assign({},(0,a.computeBoxProps)(w),{onMouseDown:f})))}})))}},function(e,t,n){"use strict";t.__esModule=!0,t.Tabs=void 0;var r=n(1),o=n(9),i=n(15),a=n(121);function c(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var u=function(e){var t=e.className,n=e.vertical,a=e.children,u=c(e,["className","vertical","children"]);return(0,r.normalizeProps)((0,r.createVNode)(1,"div",(0,o.classes)(["Tabs",n?"Tabs--vertical":"Tabs--horizontal",t,(0,i.computeBoxClassName)(u)]),(0,r.createVNode)(1,"div","Tabs__tabBox",a,0),2,Object.assign({},(0,i.computeBoxProps)(u))))};t.Tabs=u;u.Tab=function(e){var t=e.className,n=e.selected,i=e.altSelection,u=c(e,["className","selected","altSelection"]);return(0,r.normalizeProps)((0,r.createComponentVNode)(2,a.Button,Object.assign({className:(0,o.classes)(["Tabs__tab",n&&"Tabs__tab--selected",i&&n&&"Tabs__tab--altSelection",t]),selected:!i&&n,color:"transparent"},u)))}},function(e,t,n){var r={"./AiRestorer.js":436,"./BodyScanner.js":437,"./CameraConsole.js":172,"./ChemDispenser.js":438,"./ChemMaster.js":442,"./CloningConsole.js":443,"./CrewMonitor.js":174,"./Cryo.js":444,"./DNAModifier.js":445,"./DisposalBin.js":446,"./MedicalRecords.js":447,"./NtosCameraConsole.js":451,"./NtosCrewMonitor.js":452,"./OperatingComputer.js":453,"./ResleevingConsole.js":454,"./ResleevingPod.js":455,"./Sleeper.js":456,"./Wires.js":457};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=435},function(e,t,n){"use strict";t.__esModule=!0,t.AiRestorerContent=t.AiRestorer=void 0;var r=n(1),o=n(11),i=n(13),a=n(17);t.AiRestorer=function(){return(0,r.createComponentVNode)(2,a.Window,{width:370,height:360,resizable:!0,children:(0,r.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,r.createComponentVNode)(2,c)})})};var c=function(e,t){var n=(0,o.useBackend)(t),a=n.act,c=n.data,u=c.AI_present,l=c.error,s=c.name,d=c.laws,f=c.isDead,p=c.restoring,m=c.health,h=c.ejectable;return(0,r.createFragment)([l&&(0,r.createComponentVNode)(2,i.NoticeBox,{textAlign:"center",children:l}),!!h&&(0,r.createComponentVNode)(2,i.Button,{fluid:!0,icon:"eject",content:u?s:"----------",disabled:!u,onClick:function(){return a("PRG_eject")}}),!!u&&(0,r.createComponentVNode)(2,i.Section,{title:h?"System Status":s,buttons:(0,r.createComponentVNode)(2,i.Box,{inline:!0,bold:!0,color:f?"bad":"good",children:f?"Nonfunctional":"Functional"}),children:[(0,r.createComponentVNode)(2,i.LabeledList,{children:(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Integrity",children:(0,r.createComponentVNode)(2,i.ProgressBar,{value:m,minValue:0,maxValue:100,ranges:{good:[70,Infinity],average:[50,70],bad:[-Infinity,50]}})})}),!!p&&(0,r.createComponentVNode)(2,i.Box,{bold:!0,textAlign:"center",fontSize:"20px",color:"good",mt:1,children:"RECONSTRUCTION IN PROGRESS"}),(0,r.createComponentVNode)(2,i.Button,{fluid:!0,icon:"plus",content:"Begin Reconstruction",disabled:p,mt:1,onClick:function(){return a("PRG_beginReconstruction")}}),(0,r.createComponentVNode)(2,i.Section,{title:"Laws",level:2,children:d.map((function(e){return(0,r.createComponentVNode)(2,i.Box,{className:"candystripe",children:e},e)}))})]})],0)};t.AiRestorerContent=c},function(e,t,n){"use strict";t.__esModule=!0,t.BodyScanner=void 0;var r=n(1),o=n(34),i=n(11),a=n(13),c=n(17),u=((0,n(36).createLogger)("debugBodyScanner"),[["good","Alive"],["average","Unconscious"],["bad","DEAD"]]),l=[["hasBorer","bad",function(e){return"Large growth detected in frontal lobe, possibly cancerous. Surgical removal is recommended."}],["hasVirus","bad",function(e){return"Viral pathogen detected in blood stream."}],["blind","average",function(e){return"Cataracts detected."}],["colourblind","average",function(e){return"Photoreceptor abnormalities detected."}],["nearsighted","average",function(e){return"Retinal misalignment detected."}],["humanPrey","average",function(e){return"Foreign Humanoid(s) detected: "+e.humanPrey}],["livingPrey","average",function(e){return"Foreign Creature(s) detected: "+e.livingPrey}],["objectPrey","average",function(e){return"Foreign Object(s) detected: "+e.objectPrey}]],s=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Genetic","cloneLoss"],["Burn","fireLoss"],["Paralysis","paralysis"]],d={average:[.25,.5],bad:[.5,Infinity]},f=function(e,t){for(var n=[],r=0;r0?e.reduce((function(e,t){return null===e?t:(0,r.createFragment)([e,!!t&&(0,r.createComponentVNode)(2,a.Box,{children:t})],0)})):null},m=function(e){if(e>100){if(e<300)return"mild infection";if(e<400)return"mild infection+";if(e<500)return"mild infection++";if(e<700)return"acute infection";if(e<800)return"acute infection+";if(e<900)return"acute infection++";if(e>=900)return"septic"}return""};t.BodyScanner=function(e,t){var n=(0,i.useBackend)(t).data,o=n.occupied,a=n.occupant,u=void 0===a?{}:a,l=o?(0,r.createComponentVNode)(2,h,{occupant:u}):(0,r.createComponentVNode)(2,V);return(0,r.createComponentVNode)(2,c.Window,{width:690,height:600,resizable:!0,children:(0,r.createComponentVNode)(2,c.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:l})})};var h=function(e){var t=e.occupant;return(0,r.createComponentVNode)(2,a.Box,{children:[(0,r.createComponentVNode)(2,v,{occupant:t}),(0,r.createComponentVNode)(2,g,{occupant:t}),(0,r.createComponentVNode)(2,b,{occupant:t}),(0,r.createComponentVNode)(2,y,{occupant:t}),(0,r.createComponentVNode)(2,N,{organs:t.extOrgan}),(0,r.createComponentVNode)(2,x,{organs:t.intOrgan})]})},v=function(e,t){var n=(0,i.useBackend)(t),c=n.act,l=n.data,s=l.occupant;return(0,r.createComponentVNode)(2,a.Section,{title:"Occupant",buttons:(0,r.createFragment)([(0,r.createComponentVNode)(2,a.Button,{icon:"user-slash",onClick:function(){return c("ejectify")},children:"Eject"}),(0,r.createComponentVNode)(2,a.Button,{icon:"print",onClick:function(){return c("print_p")},children:"Print Report"})],4),children:(0,r.createComponentVNode)(2,a.LabeledList,{children:[(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:s.name}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Health",children:(0,r.createComponentVNode)(2,a.ProgressBar,{min:"0",max:s.maxHealth,value:s.health/s.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",color:u[s.stat][0],children:u[s.stat][1]}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Temperature",children:[(0,r.createComponentVNode)(2,a.AnimatedNumber,{value:(0,o.round)(s.bodyTempC,0)}),"\xb0C,\xa0",(0,r.createComponentVNode)(2,a.AnimatedNumber,{value:(0,o.round)(s.bodyTempF,0)}),"\xb0F"]}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Blood Volume",children:[(0,r.createComponentVNode)(2,a.AnimatedNumber,{value:(0,o.round)(s.blood.volume,0)})," units\xa0(",(0,r.createComponentVNode)(2,a.AnimatedNumber,{value:(0,o.round)(s.blood.percent,0)}),"%)"]}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Weight",children:(0,o.round)(l.occupant.weight)+"lbs, "+(0,o.round)(l.occupant.weight/2.20463)+"kgs"})]})})},g=function(e){var t=e.occupant;return(0,r.createFragment)([(0,r.createComponentVNode)(2,a.Section,{title:"Blood Reagents",children:t.reagents?(0,r.createComponentVNode)(2,a.Table,{children:[(0,r.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,r.createComponentVNode)(2,a.Table.Cell,{children:"Reagent"}),(0,r.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:"Amount"})]}),t.reagents.map((function(e){return(0,r.createComponentVNode)(2,a.Table.Row,{children:[(0,r.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,r.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:[e.amount," Units"]})]},e.name)}))]}):(0,r.createComponentVNode)(2,a.Box,{color:"good",children:"No Blood Reagents Detected"})}),(0,r.createComponentVNode)(2,a.Section,{title:"Stomach Reagents",children:t.ingested?(0,r.createComponentVNode)(2,a.Table,{children:[(0,r.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,r.createComponentVNode)(2,a.Table.Cell,{children:"Reagent"}),(0,r.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:"Amount"})]}),t.ingested.map((function(e){return(0,r.createComponentVNode)(2,a.Table.Row,{children:[(0,r.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,r.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:[e.amount," Units"]})]},e.name)}))]}):(0,r.createComponentVNode)(2,a.Box,{color:"good",children:"No Stomach Reagents Detected"})})],4)},b=function(e){var t=e.occupant,n=t.hasBorer||t.blind||t.colourblind||t.nearsighted||t.hasVirus;return(n=n||t.humanPrey||t.livingPrey||t.objectPrey)?(0,r.createComponentVNode)(2,a.Section,{title:"Abnormalities",children:l.map((function(e,n){if(t[e[0]])return(0,r.createComponentVNode)(2,a.Box,{color:e[1],bold:"bad"===e[1],children:e[2](t)})}))}):(0,r.createComponentVNode)(2,a.Section,{title:"Abnormalities",children:(0,r.createComponentVNode)(2,a.Box,{color:"label",children:"No abnormalities found."})})},y=function(e){var t=e.occupant;return(0,r.createComponentVNode)(2,a.Section,{title:"Damage",children:(0,r.createComponentVNode)(2,a.Table,{children:f(s,(function(e,n,o){return(0,r.createFragment)([(0,r.createComponentVNode)(2,a.Table.Row,{color:"label",children:[(0,r.createComponentVNode)(2,a.Table.Cell,{children:[e[0],":"]}),(0,r.createComponentVNode)(2,a.Table.Cell,{children:!!n&&n[0]+":"})]}),(0,r.createComponentVNode)(2,a.Table.Row,{children:[(0,r.createComponentVNode)(2,a.Table.Cell,{children:(0,r.createComponentVNode)(2,C,{value:t[e[1]],marginBottom:o0&&"0.5rem",value:e.totalLoss/100,ranges:d,children:[(0,r.createComponentVNode)(2,a.Box,{float:"left",display:"inline",children:[!!e.bruteLoss&&(0,r.createComponentVNode)(2,a.Box,{display:"inline",position:"relative",children:[(0,r.createComponentVNode)(2,a.Icon,{name:"bone"}),(0,o.round)(e.bruteLoss,0),"\xa0",(0,r.createComponentVNode)(2,a.Tooltip,{position:"top",content:"Brute damage"})]}),!!e.fireLoss&&(0,r.createComponentVNode)(2,a.Box,{display:"inline",position:"relative",children:[(0,r.createComponentVNode)(2,a.Icon,{name:"fire"}),(0,o.round)(e.fireLoss,0),(0,r.createComponentVNode)(2,a.Tooltip,{position:"top",content:"Burn damage"})]})]}),(0,r.createComponentVNode)(2,a.Box,{display:"inline",children:(0,o.round)(e.totalLoss,0)})]})}),(0,r.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",width:"33%",children:[(0,r.createComponentVNode)(2,a.Box,{color:"average",display:"inline",children:p([e.internalBleeding&&"Internal bleeding",!!e.status.bleeding&&"External bleeding",e.lungRuptured&&"Ruptured lung",e.destroyed&&"Destroyed",!!e.status.broken&&e.status.broken,m(e.germ_level),!!e.open&&"Open incision"])}),(0,r.createComponentVNode)(2,a.Box,{display:"inline",children:[p([!!e.status.splinted&&"Splinted",!!e.status.robotic&&"Robotic",!!e.status.dead&&(0,r.createComponentVNode)(2,a.Box,{color:"bad",children:"DEAD"})]),p(e.implants.map((function(e){return e.known?e.name:"Unknown object"})))]})]})]},t)}))]})})},x=function(e){return 0===e.organs.length?(0,r.createComponentVNode)(2,a.Section,{title:"Internal Organs",children:(0,r.createComponentVNode)(2,a.Box,{color:"label",children:"N/A"})}):(0,r.createComponentVNode)(2,a.Section,{title:"Internal Organs",children:(0,r.createComponentVNode)(2,a.Table,{children:[(0,r.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,r.createComponentVNode)(2,a.Table.Cell,{children:"Name"}),(0,r.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:"Damage"}),(0,r.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:"Injuries"})]}),e.organs.map((function(e,t){return(0,r.createComponentVNode)(2,a.Table.Row,{textTransform:"capitalize",children:[(0,r.createComponentVNode)(2,a.Table.Cell,{width:"33%",children:e.name}),(0,r.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:(0,r.createComponentVNode)(2,a.ProgressBar,{min:"0",max:e.maxHealth,value:e.damage/100,mt:t>0&&"0.5rem",ranges:d,children:(0,o.round)(e.damage,0)})}),(0,r.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",width:"33%",children:[(0,r.createComponentVNode)(2,a.Box,{color:"average",display:"inline",children:p([m(e.germ_level)])}),(0,r.createComponentVNode)(2,a.Box,{display:"inline",children:p([1===e.robotic&&"Robotic",2===e.robotic&&"Assisted",!!e.dead&&(0,r.createComponentVNode)(2,a.Box,{color:"bad",children:"DEAD"})])})]})]},t)}))]})})},V=function(){return(0,r.createComponentVNode)(2,a.Section,{textAlign:"center",flexGrow:"1",children:(0,r.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,r.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,r.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,r.createVNode)(1,"br"),"No occupant detected."]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.ChemDispenser=void 0;var r=n(1),o=n(11),i=n(13),a=n(173),c=n(17),u=[5,10,20,30,40],l=[1,5,10];t.ChemDispenser=function(e,t){return(0,r.createComponentVNode)(2,c.Window,{width:390,height:655,resizable:!0,children:(0,r.createComponentVNode)(2,c.Window.Content,{className:"Layout__content--flexColumn",children:[(0,r.createComponentVNode)(2,s),(0,r.createComponentVNode)(2,d),(0,r.createComponentVNode)(2,f)]})})};var s=function(e,t){var n=(0,o.useBackend)(t),a=n.act,c=n.data.amount;return(0,r.createComponentVNode)(2,i.Section,{title:"Settings",flex:"content",children:(0,r.createComponentVNode)(2,i.LabeledList,{children:[(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,r.createComponentVNode)(2,i.Flex,{direction:"row",wrap:"wrap",spacing:"1",children:u.map((function(e,t){return(0,r.createComponentVNode)(2,i.Flex.Item,{grow:"1",children:(0,r.createComponentVNode)(2,i.Button,{icon:"cog",selected:c===e,content:e,m:"0",width:"100%",onClick:function(){return a("amount",{amount:e})}})},t)}))})}),(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Custom Amount",children:(0,r.createComponentVNode)(2,i.Slider,{step:1,stepPixelSize:5,value:c,minValue:1,maxValue:120,onDrag:function(e,t){return a("amount",{amount:t})}})})]})})},d=function(e,t){for(var n=(0,o.useBackend)(t),a=n.act,c=n.data,u=c.chemicals,l=void 0===u?[]:u,s=[],d=0;d<(l.length+1)%3;d++)s.push(!0);return(0,r.createComponentVNode)(2,i.Section,{title:c.glass?"Drink Dispenser":"Chemical Dispenser",flexGrow:"1",children:(0,r.createComponentVNode)(2,i.Flex,{direction:"row",wrap:"wrap",height:"100%",spacingPrecise:"2",align:"flex-start",alignContent:"flex-start",children:[l.map((function(e,t){return(0,r.createComponentVNode)(2,i.Flex.Item,{grow:"1",basis:"40%",height:"20px",children:(0,r.createComponentVNode)(2,i.Button,{icon:"arrow-circle-down",width:"100%",height:"100%",align:"flex-start",content:e.title+" ("+e.amount+")",onClick:function(){return a("dispense",{reagent:e.id})}})},t)})),s.map((function(e,t){return(0,r.createComponentVNode)(2,i.Flex.Item,{grow:"1",basis:"25%",height:"20px"},t)}))]})})},f=function(e,t){var n=(0,o.useBackend)(t),c=n.act,u=n.data,s=u.isBeakerLoaded,d=u.beakerCurrentVolume,f=u.beakerMaxVolume,p=u.beakerContents,m=void 0===p?[]:p;return(0,r.createComponentVNode)(2,i.Section,{title:"Beaker",flex:"content",minHeight:"25%",buttons:(0,r.createComponentVNode)(2,i.Box,{children:[!!s&&(0,r.createComponentVNode)(2,i.Box,{inline:!0,color:"label",mr:2,children:[d," / ",f," units"]}),(0,r.createComponentVNode)(2,i.Button,{icon:"eject",content:"Eject",disabled:!s,onClick:function(){return c("ejectBeaker")}})]}),children:(0,r.createComponentVNode)(2,a.BeakerContents,{beakerLoaded:s,beakerContents:m,buttons:function(e){return(0,r.createFragment)([(0,r.createComponentVNode)(2,i.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){return c("remove",{reagent:e.id,amount:-1})}}),l.map((function(t,n){return(0,r.createComponentVNode)(2,i.Button,{content:t,onClick:function(){return c("remove",{reagent:e.id,amount:t})}},n)})),(0,r.createComponentVNode)(2,i.Button,{content:"ALL",onClick:function(){return c("remove",{reagent:e.id,amount:e.volume})}})],0)}})})}},function(e,t,n){"use strict";e.exports=n(440)()},function(e,t,n){"use strict";var r=n(441);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";t.__esModule=!0,t.ChemMaster=void 0;var r=n(1),o=n(11),i=n(13),a=n(17),c=n(173),u=n(68),l=[1,5,10];t.ChemMaster=function(e,t){var n=(0,o.useBackend)(t).data,i=n.condi,c=n.beaker,l=n.beaker_reagents,p=void 0===l?[]:l,m=n.buffer_reagents,v=void 0===m?[]:m,g=n.mode;return(0,r.createComponentVNode)(2,a.Window,{width:575,height:500,resizable:!0,children:[(0,r.createComponentVNode)(2,u.ComplexModal),(0,r.createComponentVNode)(2,a.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:[(0,r.createComponentVNode)(2,s,{beaker:c,beakerReagents:p,bufferNonEmpty:v.length>0}),(0,r.createComponentVNode)(2,d,{mode:g,bufferReagents:v}),(0,r.createComponentVNode)(2,f,{isCondiment:i,bufferNonEmpty:v.length>0}),(0,r.createComponentVNode)(2,h)]})]})};var s=function(e,t){var n=(0,o.useBackend)(t).act,a=e.beaker,s=e.beakerReagents,d=e.bufferNonEmpty;return(0,r.createComponentVNode)(2,i.Section,{title:"Beaker",buttons:d?(0,r.createComponentVNode)(2,i.Button.Confirm,{icon:"eject",disabled:!a,content:"Eject and Clear Buffer",onClick:function(){return n("eject")}}):(0,r.createComponentVNode)(2,i.Button,{icon:"eject",disabled:!a,content:"Eject and Clear Buffer",onClick:function(){return n("eject")}}),children:a?(0,r.createComponentVNode)(2,c.BeakerContents,{beakerLoaded:!0,beakerContents:s,buttons:function(e,o){return(0,r.createComponentVNode)(2,i.Box,{mb:o0?(0,r.createComponentVNode)(2,c.BeakerContents,{beakerLoaded:!0,beakerContents:d,buttons:function(e,o){return(0,r.createComponentVNode)(2,i.Box,{mb:o0?u.desc:"N/A"}),u.blood_type&&(0,r.createFragment)([(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Blood type",children:u.blood_type}),(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:u.blood_dna})],4),!c.condi&&(0,r.createComponentVNode)(2,i.Button,{icon:c.printing?"spinner":"print",disabled:c.printing,iconSpin:!!c.printing,ml:"0.5rem",content:"Print",onClick:function(){return a("print",{idx:u.idx,beaker:e.args.beaker})}})]})})})}))},function(e,t,n){"use strict";t.__esModule=!0,t.CloningConsole=void 0;var r=n(1),o=n(34),i=n(11),a=n(13),c=n(55),u=n(68),l=n(17),s=function(e,t){var n=(0,i.useBackend)(t),o=n.act,u=n.data,l=e.args,s=l.activerecord,d=l.realname,f=l.health,p=l.unidentity,m=l.strucenzymes,h=f.split(" - ");return(0,r.createComponentVNode)(2,a.Section,{level:2,m:"-1rem",pb:"1rem",title:"Records of "+d,children:(0,r.createComponentVNode)(2,a.LabeledList,{children:[(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:d}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Damage",children:h.length>1?(0,r.createFragment)([(0,r.createComponentVNode)(2,a.Box,{color:c.COLORS.damageType.oxy,display:"inline",children:h[0]}),(0,r.createTextVNode)("\xa0|\xa0"),(0,r.createComponentVNode)(2,a.Box,{color:c.COLORS.damageType.toxin,display:"inline",children:h[2]}),(0,r.createTextVNode)("\xa0|\xa0"),(0,r.createComponentVNode)(2,a.Box,{color:c.COLORS.damageType.brute,display:"inline",children:h[3]}),(0,r.createTextVNode)("\xa0|\xa0"),(0,r.createComponentVNode)(2,a.Box,{color:c.COLORS.damageType.burn,display:"inline",children:h[1]})],4):(0,r.createComponentVNode)(2,a.Box,{color:"bad",children:"Unknown"})}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"UI",className:"LabeledList__breakContents",children:p}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"SE",className:"LabeledList__breakContents",children:m}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Disk",children:[(0,r.createComponentVNode)(2,a.Button.Confirm,{disabled:!u.disk,icon:"arrow-circle-down",content:"Import",onClick:function(){return o("disk",{option:"load"})}}),(0,r.createComponentVNode)(2,a.Button,{disabled:!u.disk,icon:"arrow-circle-up",content:"Export UI",onClick:function(){return o("disk",{option:"save",savetype:"ui"})}}),(0,r.createComponentVNode)(2,a.Button,{disabled:!u.disk,icon:"arrow-circle-up",content:"Export UI and UE",onClick:function(){return o("disk",{option:"save",savetype:"ue"})}}),(0,r.createComponentVNode)(2,a.Button,{disabled:!u.disk,icon:"arrow-circle-up",content:"Export SE",onClick:function(){return o("disk",{option:"save",savetype:"se"})}})]}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Actions",children:[(0,r.createComponentVNode)(2,a.Button,{disabled:!u.podready,icon:"user-plus",content:"Clone",onClick:function(){return o("clone",{ref:s})}}),(0,r.createComponentVNode)(2,a.Button,{icon:"trash",content:"Delete",onClick:function(){return o("del_rec")}})]})]})})};t.CloningConsole=function(e,t){var n=(0,i.useBackend)(t);n.act,n.data.menu;return(0,u.modalRegisterBodyOverride)("view_rec",s),(0,r.createComponentVNode)(2,l.Window,{resizable:!0,children:[(0,r.createComponentVNode)(2,u.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,r.createComponentVNode)(2,l.Window.Content,{className:"Layout__content--flexColumn",children:[(0,r.createComponentVNode)(2,h),(0,r.createComponentVNode)(2,v),(0,r.createComponentVNode)(2,d),(0,r.createComponentVNode)(2,a.Section,{noTopPadding:!0,flexGrow:"1",children:(0,r.createComponentVNode)(2,f)})]})]})};var d=function(e,t){var n=(0,i.useBackend)(t),o=n.act,c=n.data.menu;return(0,r.createComponentVNode)(2,a.Tabs,{children:[(0,r.createComponentVNode)(2,a.Tabs.Tab,{selected:1===c,icon:"home",onClick:function(){return o("menu",{num:1})},children:"Main"}),(0,r.createComponentVNode)(2,a.Tabs.Tab,{selected:2===c,icon:"folder",onClick:function(){return o("menu",{num:2})},children:"Records"})]})},f=function(e,t){var n,o=(0,i.useBackend)(t).data.menu;return 1===o?n=(0,r.createComponentVNode)(2,p):2===o&&(n=(0,r.createComponentVNode)(2,m)),n},p=function(e,t){var n=(0,i.useBackend)(t),c=n.act,u=n.data,l=u.loading,s=u.scantemp,d=u.occupant,f=u.locked,p=u.can_brainscan,m=u.scan_mode,h=u.numberofpods,v=u.pods,g=u.selected_pod,b=f&&!!d;return(0,r.createFragment)([(0,r.createComponentVNode)(2,a.Section,{title:"Scanner",level:"2",buttons:(0,r.createFragment)([(0,r.createComponentVNode)(2,a.Box,{display:"inline",color:"label",children:"Scanner Lock:\xa0"}),(0,r.createComponentVNode)(2,a.Button,{disabled:!d,selected:b,icon:b?"toggle-on":"toggle-off",content:b?"Engaged":"Disengaged",onClick:function(){return c("lock")}}),(0,r.createComponentVNode)(2,a.Button,{disabled:b||!d,icon:"user-slash",content:"Eject Occupant",onClick:function(){return c("eject")}})],4),children:[(0,r.createComponentVNode)(2,a.LabeledList,{children:[(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:l?(0,r.createComponentVNode)(2,a.Box,{color:"average",children:[(0,r.createComponentVNode)(2,a.Icon,{name:"spinner",spin:!0}),"\xa0 Scanning..."]}):(0,r.createComponentVNode)(2,a.Box,{color:s.color,children:s.text})}),!!p&&(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Scan Mode",children:(0,r.createComponentVNode)(2,a.Button,{icon:m?"brain":"male",content:m?"Brain":"Body",onClick:function(){return c("toggle_mode")}})})]}),(0,r.createComponentVNode)(2,a.Button,{disabled:!d||l,icon:"user",content:"Scan Occupant",mt:"0.5rem",mb:"0",onClick:function(){return c("scan")}})]}),(0,r.createComponentVNode)(2,a.Section,{title:"Pods",level:"2",children:h?v.map((function(e,t){var n;return n="cloning"===e.status?(0,r.createComponentVNode)(2,a.ProgressBar,{min:"0",max:"100",value:e.progress/100,ranges:{good:[.75,Infinity],average:[.25,.75],bad:[-Infinity,.25]},mt:"0.5rem",children:(0,r.createComponentVNode)(2,a.Box,{textAlign:"center",children:(0,o.round)(e.progress,0)+"%"})}):"mess"===e.status?(0,r.createComponentVNode)(2,a.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):(0,r.createComponentVNode)(2,a.Button,{selected:g===e.pod,icon:g===e.pod&&"check",content:"Select",mt:"0.5rem",onClick:function(){return c("selectpod",{ref:e.pod})}}),(0,r.createComponentVNode)(2,a.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,r.createVNode)(1,"img",null,null,1,{src:"pod_"+e.status+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,r.createComponentVNode)(2,a.Box,{color:"label",children:["Pod #",t+1]}),(0,r.createComponentVNode)(2,a.Box,{bold:!0,color:e.biomass>=150?"good":"bad",display:"inline",children:[(0,r.createComponentVNode)(2,a.Icon,{name:e.biomass>=150?"circle":"circle-o"}),"\xa0",e.biomass]}),n]},t)})):(0,r.createComponentVNode)(2,a.Box,{color:"bad",children:"No pods detected. Unable to clone."})})],4)},m=function(e,t){var n=(0,i.useBackend)(t),o=n.act,c=n.data.records;return c.length?(0,r.createComponentVNode)(2,a.Box,{mt:"0.5rem",children:c.map((function(e,t){return(0,r.createComponentVNode)(2,a.Button,{icon:"user",mb:"0.5rem",content:e.realname,onClick:function(){return o("view_rec",{ref:e.record})}},t)}))}):(0,r.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,r.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,r.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,r.createVNode)(1,"br"),"No records found."]})})},h=function(e,t){var n,o=(0,i.useBackend)(t),c=o.act,u=o.data.temp;if(u&&u.text&&!(u.text.length<=0)){var l=((n={})[u.style]=!0,n);return(0,r.normalizeProps)((0,r.createComponentVNode)(2,a.NoticeBox,Object.assign({},l,{children:[(0,r.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",children:u.text}),(0,r.createComponentVNode)(2,a.Button,{icon:"times-circle",float:"right",onClick:function(){return c("cleartemp")}}),(0,r.createComponentVNode)(2,a.Box,{clear:"both"})]})))}},v=function(e,t){var n=(0,i.useBackend)(t),o=n.act,c=n.data,u=c.scanner,l=c.numberofpods,s=c.autoallowed,d=c.autoprocess,f=c.disk;return(0,r.createComponentVNode)(2,a.Section,{title:"Status",buttons:(0,r.createFragment)([!!s&&(0,r.createFragment)([(0,r.createComponentVNode)(2,a.Box,{display:"inline",color:"label",children:"Auto-processing:\xa0"}),(0,r.createComponentVNode)(2,a.Button,{selected:d,icon:d?"toggle-on":"toggle-off",content:d?"Enabled":"Disabled",onClick:function(){return o("autoprocess",{on:d?0:1})}})],4),(0,r.createComponentVNode)(2,a.Button,{disabled:!f,icon:"eject",content:"Eject Disk",onClick:function(){return o("disk",{option:"eject"})}})],0),children:(0,r.createComponentVNode)(2,a.LabeledList,{children:[(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Scanner",children:u?(0,r.createComponentVNode)(2,a.Box,{color:"good",children:"Connected"}):(0,r.createComponentVNode)(2,a.Box,{color:"bad",children:"Not connected!"})}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Pods",children:l?(0,r.createComponentVNode)(2,a.Box,{color:"good",children:[l," connected"]}):(0,r.createComponentVNode)(2,a.Box,{color:"bad",children:"None connected!"})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Cryo=void 0;var r=n(1),o=n(11),i=n(13),a=n(17),c=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],u=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]];t.Cryo=function(e,t){return(0,r.createComponentVNode)(2,a.Window,{width:520,height:470,resizeable:!0,children:(0,r.createComponentVNode)(2,a.Window.Content,{className:"Layout__content--flexColumn",children:(0,r.createComponentVNode)(2,l)})})};var l=function(e,t){var n=(0,o.useBackend)(t),a=n.act,l=n.data,d=l.isOperating,f=l.hasOccupant,p=l.occupant,m=void 0===p?[]:p,h=l.cellTemperature,v=l.cellTemperatureStatus,g=l.isBeakerLoaded;return(0,r.createFragment)([(0,r.createComponentVNode)(2,i.Section,{title:"Occupant",flexGrow:"1",buttons:(0,r.createComponentVNode)(2,i.Button,{icon:"user-slash",onClick:function(){return a("ejectOccupant")},disabled:!f,children:"Eject"}),children:f?(0,r.createComponentVNode)(2,i.LabeledList,{children:[(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Occupant",children:m.name||"Unknown"}),(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Health",children:(0,r.createComponentVNode)(2,i.ProgressBar,{min:m.health,max:m.maxHealth,value:m.health/m.maxHealth,color:m.health>0?"good":"average",children:(0,r.createComponentVNode)(2,i.AnimatedNumber,{value:Math.round(m.health)})})}),(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",color:u[m.stat][0],children:u[m.stat][1]}),(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Temperature",children:[(0,r.createComponentVNode)(2,i.AnimatedNumber,{value:Math.round(m.bodyTemperature)})," K"]}),(0,r.createComponentVNode)(2,i.LabeledList.Divider),c.map((function(e){return(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:e.label,children:(0,r.createComponentVNode)(2,i.ProgressBar,{value:m[e.type]/100,ranges:{bad:[.01,Infinity]},children:(0,r.createComponentVNode)(2,i.AnimatedNumber,{value:Math.round(m[e.type])})})},e.id)}))]}):(0,r.createComponentVNode)(2,i.Flex,{height:"100%",textAlign:"center",children:(0,r.createComponentVNode)(2,i.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,r.createComponentVNode)(2,i.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,r.createVNode)(1,"br"),"No occupant detected."]})})}),(0,r.createComponentVNode)(2,i.Section,{title:"Cell",buttons:(0,r.createComponentVNode)(2,i.Button,{icon:"eject",onClick:function(){return a("ejectBeaker")},disabled:!g,children:"Eject Beaker"}),children:(0,r.createComponentVNode)(2,i.LabeledList,{children:[(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Power",children:(0,r.createComponentVNode)(2,i.Button,{icon:"power-off",onClick:function(){return a(d?"switchOff":"switchOn")},selected:d,children:d?"On":"Off"})}),(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Temperature",color:v,children:[(0,r.createComponentVNode)(2,i.AnimatedNumber,{value:h})," K"]}),(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Beaker",children:(0,r.createComponentVNode)(2,s)})]})})],4)},s=function(e,t){var n=(0,o.useBackend)(t),a=(n.act,n.data),c=a.isBeakerLoaded,u=a.beakerLabel,l=a.beakerVolume;return c?(0,r.createFragment)([u||(0,r.createComponentVNode)(2,i.Box,{color:"average",children:"No label"}),(0,r.createComponentVNode)(2,i.Box,{color:!l&&"bad",children:l?(0,r.createComponentVNode)(2,i.AnimatedNumber,{value:l,format:function(e){return Math.round(e)+" units remaining"}}):"Beaker is empty"})],0):(0,r.createComponentVNode)(2,i.Box,{color:"average",children:"No beaker loaded"})}},function(e,t,n){"use strict";t.__esModule=!0,t.DNAModifier=void 0;var r=n(1),o=n(11),i=n(13),a=n(17),c=n(68),u=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],l=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],s=[5,10,20,30,50];t.DNAModifier=function(e,t){var n,i=(0,o.useBackend)(t),u=(i.act,i.data),l=u.irradiating,s=u.dnaBlockSize,p=u.occupant;return t.dnaBlockSize=s,t.isDNAInvalid=!p.isViableSubject||!p.uniqueIdentity||!p.structuralEnzymes,l&&(n=(0,r.createComponentVNode)(2,C,{duration:l})),(0,r.createComponentVNode)(2,a.Window,{width:660,height:700,resizable:!0,children:[(0,r.createComponentVNode)(2,c.ComplexModal),n,(0,r.createComponentVNode)(2,a.Window.Content,{className:"Layout__content--flexColumn",children:[(0,r.createComponentVNode)(2,d),(0,r.createComponentVNode)(2,f)]})]})};var d=function(e,t){var n=(0,o.useBackend)(t),a=n.act,c=n.data,l=c.locked,s=c.hasOccupant,d=c.occupant;return(0,r.createComponentVNode)(2,i.Section,{title:"Occupant",buttons:(0,r.createFragment)([(0,r.createComponentVNode)(2,i.Box,{color:"label",display:"inline",mr:"0.5rem",children:"Door Lock:"}),(0,r.createComponentVNode)(2,i.Button,{disabled:!s,selected:l,icon:l?"toggle-on":"toggle-off",content:l?"Engaged":"Disengaged",onClick:function(){return a("toggleLock")}}),(0,r.createComponentVNode)(2,i.Button,{disabled:!s||l,icon:"user-slash",content:"Eject",onClick:function(){return a("ejectOccupant")}})],4),children:s?(0,r.createFragment)([(0,r.createComponentVNode)(2,i.Box,{children:(0,r.createComponentVNode)(2,i.LabeledList,{children:[(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Name",children:d.name}),(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Health",children:(0,r.createComponentVNode)(2,i.ProgressBar,{min:d.minHealth,max:d.maxHealth,value:d.health/d.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",color:u[d.stat][0],children:u[d.stat][1]}),(0,r.createComponentVNode)(2,i.LabeledList.Divider)]})}),t.isDNAInvalid?(0,r.createComponentVNode)(2,i.Box,{color:"bad",children:[(0,r.createComponentVNode)(2,i.Icon,{name:"exclamation-circle"}),"\xa0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,r.createComponentVNode)(2,i.LabeledList,{children:[(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Radiation",children:(0,r.createComponentVNode)(2,i.ProgressBar,{min:"0",max:"100",value:d.radiationLevel/100,color:"average"})}),(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Unique Enzymes",children:c.occupant.uniqueEnzymes?c.occupant.uniqueEnzymes:(0,r.createComponentVNode)(2,i.Box,{color:"bad",children:[(0,r.createComponentVNode)(2,i.Icon,{name:"exclamation-circle"}),"\xa0 Unknown"]})})]})],0):(0,r.createComponentVNode)(2,i.Box,{color:"label",children:"Cell unoccupied."})})},f=function(e,t){var n,a=(0,o.useBackend)(t),c=a.act,u=a.data,s=u.selectedMenuKey,d=u.hasOccupant;u.occupant;return d?t.isDNAInvalid?(0,r.createComponentVNode)(2,i.Section,{flexGrow:"1",children:(0,r.createComponentVNode)(2,i.Flex,{height:"100%",children:(0,r.createComponentVNode)(2,i.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,r.createComponentVNode)(2,i.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,r.createVNode)(1,"br"),"No operation possible on this subject."]})})}):("ui"===s?n=(0,r.createFragment)([(0,r.createComponentVNode)(2,p),(0,r.createComponentVNode)(2,h)],4):"se"===s?n=(0,r.createFragment)([(0,r.createComponentVNode)(2,m),(0,r.createComponentVNode)(2,h)],4):"buffer"===s?n=(0,r.createComponentVNode)(2,v):"rejuvenators"===s&&(n=(0,r.createComponentVNode)(2,y)),(0,r.createComponentVNode)(2,i.Section,{flexGrow:"1",children:[(0,r.createComponentVNode)(2,i.Tabs,{children:l.map((function(e,t){return(0,r.createComponentVNode)(2,i.Tabs.Tab,{selected:s===e[0],onClick:function(){return c("selectMenuKey",{key:e[0]})},children:[(0,r.createComponentVNode)(2,i.Icon,{name:e[2]}),e[1]]},t)}))}),n]})):(0,r.createComponentVNode)(2,i.Section,{flexGrow:"1",children:(0,r.createComponentVNode)(2,i.Flex,{height:"100%",children:(0,r.createComponentVNode)(2,i.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,r.createComponentVNode)(2,i.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,r.createVNode)(1,"br"),"No occupant in DNA modifier."]})})})},p=function(e,t){var n=(0,o.useBackend)(t),a=n.act,c=n.data,u=c.selectedUIBlock,l=c.selectedUISubBlock,s=c.selectedUITarget,d=c.occupant;return(0,r.createComponentVNode)(2,i.Section,{title:"Modify Unique Identifier",level:"2",children:[(0,r.createComponentVNode)(2,N,{dnaString:d.uniqueIdentity,selectedBlock:u,selectedSubblock:l,blockSize:t.dnaBlockSize,action:"selectUIBlock"}),(0,r.createComponentVNode)(2,i.LabeledList,{children:(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Target",children:(0,r.createComponentVNode)(2,i.Knob,{minValue:"1",maxValue:"15",stepPixelSize:"20",value:s,format:function(e){return e.toString(16).toUpperCase()},ml:"0",onChange:function(e,t){return a("changeUITarget",{value:t})}})})}),(0,r.createComponentVNode)(2,i.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){return a("pulseUIRadiation")}})]})},m=function(e,t){var n=(0,o.useBackend)(t),a=n.act,c=n.data,u=c.selectedSEBlock,l=c.selectedSESubBlock,s=c.occupant;return(0,r.createComponentVNode)(2,i.Section,{title:"Modify Structural Enzymes",level:"2",children:[(0,r.createComponentVNode)(2,N,{dnaString:s.structuralEnzymes,selectedBlock:u,selectedSubblock:l,blockSize:t.dnaBlockSize,action:"selectSEBlock"}),(0,r.createComponentVNode)(2,i.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){return a("pulseSERadiation")}})]})},h=function(e,t){var n=(0,o.useBackend)(t),a=n.act,c=n.data,u=c.radiationIntensity,l=c.radiationDuration;return(0,r.createComponentVNode)(2,i.Section,{title:"Radiation Emitter",level:"2",children:[(0,r.createComponentVNode)(2,i.LabeledList,{children:[(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Intensity",children:(0,r.createComponentVNode)(2,i.Knob,{minValue:"1",maxValue:"10",stepPixelSize:"20",value:u,popUpPosition:"right",ml:"0",onChange:function(e,t){return a("radiationIntensity",{value:t})}})}),(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Duration",children:(0,r.createComponentVNode)(2,i.Knob,{minValue:"1",maxValue:"20",stepPixelSize:"10",unit:"s",value:l,popUpPosition:"right",ml:"0",onChange:function(e,t){return a("radiationDuration",{value:t})}})})]}),(0,r.createComponentVNode)(2,i.Button,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top-right",mt:"0.5rem",onClick:function(){return a("pulseRadiation")}})]})},v=function(e,t){var n=(0,o.useBackend)(t),a=(n.act,n.data.buffers.map((function(e,t){return(0,r.createComponentVNode)(2,g,{id:t+1,name:"Buffer "+(t+1),buffer:e},t)})));return(0,r.createFragment)([(0,r.createComponentVNode)(2,i.Section,{title:"Buffers",level:"2",children:a}),(0,r.createComponentVNode)(2,b)],4)},g=function(e,t){var n=(0,o.useBackend)(t),a=n.act,c=n.data,u=e.id,l=e.name,s=e.buffer,d=c.isInjectorReady,f=l+(s.data?" - "+s.label:"");return(0,r.createComponentVNode)(2,i.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,r.createComponentVNode)(2,i.Section,{title:f,level:"3",mx:"0",lineHeight:"18px",buttons:(0,r.createFragment)([(0,r.createComponentVNode)(2,i.Button.Confirm,{disabled:!s.data,icon:"trash",content:"Clear",onClick:function(){return a("bufferOption",{option:"clear",id:u})}}),(0,r.createComponentVNode)(2,i.Button,{disabled:!s.data,icon:"pen",content:"Rename",onClick:function(){return a("bufferOption",{option:"changeLabel",id:u})}}),(0,r.createComponentVNode)(2,i.Button,{disabled:!s.data||!c.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-left",onClick:function(){return a("bufferOption",{option:"saveDisk",id:u})}})],4),children:[(0,r.createComponentVNode)(2,i.LabeledList,{children:[(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Write",children:[(0,r.createComponentVNode)(2,i.Button,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){return a("bufferOption",{option:"saveUI",id:u})}}),(0,r.createComponentVNode)(2,i.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){return a("bufferOption",{option:"saveUIAndUE",id:u})}}),(0,r.createComponentVNode)(2,i.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){return a("bufferOption",{option:"saveSE",id:u})}}),(0,r.createComponentVNode)(2,i.Button,{disabled:!c.hasDisk||!c.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){return a("bufferOption",{option:"loadDisk",id:u})}})]}),!!s.data&&(0,r.createFragment)([(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Subject",children:s.owner||(0,r.createComponentVNode)(2,i.Box,{color:"average",children:"Unknown"})}),(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Data Type",children:["ui"===s.type?"Unique Identifiers":"Structural Enzymes",!!s.ue&&" and Unique Enzymes"]}),(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Transfer to",children:[(0,r.createComponentVNode)(2,i.Button,{disabled:!d,icon:d?"syringe":"spinner",iconSpin:!d,content:"Injector",mb:"0",onClick:function(){return a("bufferOption",{option:"createInjector",id:u})}}),(0,r.createComponentVNode)(2,i.Button,{disabled:!d,icon:d?"syringe":"spinner",iconSpin:!d,content:"Block Injector",mb:"0",onClick:function(){return a("bufferOption",{option:"createInjector",id:u,block:1})}}),(0,r.createComponentVNode)(2,i.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){return a("bufferOption",{option:"transfer",id:u})}})]})],4)]}),!s.data&&(0,r.createComponentVNode)(2,i.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},b=function(e,t){var n=(0,o.useBackend)(t),a=n.act,c=n.data,u=c.hasDisk,l=c.disk;return(0,r.createComponentVNode)(2,i.Section,{title:"Data Disk",level:"2",buttons:(0,r.createFragment)([(0,r.createComponentVNode)(2,i.Button.Confirm,{disabled:!u||!l.data,icon:"trash",content:"Wipe",onClick:function(){return a("wipeDisk")}}),(0,r.createComponentVNode)(2,i.Button,{disabled:!u,icon:"eject",content:"Eject",onClick:function(){return a("ejectDisk")}})],4),children:u?l.data?(0,r.createComponentVNode)(2,i.LabeledList,{children:[(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Label",children:l.label?l.label:"No label"}),(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Subject",children:l.owner?l.owner:(0,r.createComponentVNode)(2,i.Box,{color:"average",children:"Unknown"})}),(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Data Type",children:["ui"===l.type?"Unique Identifiers":"Structural Enzymes",!!l.ue&&" and Unique Enzymes"]})]}):(0,r.createComponentVNode)(2,i.Box,{color:"label",children:"Disk is blank."}):(0,r.createComponentVNode)(2,i.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,r.createComponentVNode)(2,i.Icon,{name:"save-o",size:"4"}),(0,r.createVNode)(1,"br"),"No disk inserted."]})})},y=function(e,t){var n=(0,o.useBackend)(t),a=n.act,c=n.data,u=c.isBeakerLoaded,l=c.beakerVolume,d=c.beakerLabel;return(0,r.createComponentVNode)(2,i.Section,{title:"Rejuvenators and Beaker",level:"2",buttons:(0,r.createComponentVNode)(2,i.Button,{disabled:!u,icon:"eject",content:"Eject",onClick:function(){return a("ejectBeaker")}}),children:u?(0,r.createComponentVNode)(2,i.LabeledList,{children:[(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Inject",children:[s.map((function(e,t){return(0,r.createComponentVNode)(2,i.Button,{disabled:e>l,icon:"syringe",content:e,onClick:function(){return a("injectRejuvenators",{amount:e})}},t)})),(0,r.createComponentVNode)(2,i.Button,{disabled:l<=0,icon:"syringe",content:"All",onClick:function(){return a("injectRejuvenators",{amount:l})}})]}),(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Beaker",children:[(0,r.createComponentVNode)(2,i.Box,{mb:"0.5rem",children:d||"No label"}),l?(0,r.createComponentVNode)(2,i.Box,{color:"good",children:[l," unit",1===l?"":"s"," remaining"]}):(0,r.createComponentVNode)(2,i.Box,{color:"bad",children:"Empty"})]})]}):(0,r.createComponentVNode)(2,i.Box,{color:"label",textAlign:"center",my:"25%",children:[(0,r.createComponentVNode)(2,i.Icon,{name:"exclamation-triangle",size:"4"}),(0,r.createVNode)(1,"br"),"No beaker loaded."]})})},C=function(e,t){return(0,r.createComponentVNode)(2,i.Dimmer,{textAlign:"center",children:[(0,r.createComponentVNode)(2,i.Icon,{name:"spinner",size:"5",spin:!0}),(0,r.createVNode)(1,"br"),(0,r.createComponentVNode)(2,i.Box,{color:"average",children:(0,r.createVNode)(1,"h1",null,[(0,r.createComponentVNode)(2,i.Icon,{name:"radiation"}),(0,r.createTextVNode)("\xa0Irradiating occupant\xa0"),(0,r.createComponentVNode)(2,i.Icon,{name:"radiation"})],4)}),(0,r.createComponentVNode)(2,i.Box,{color:"label",children:(0,r.createVNode)(1,"h3",null,[(0,r.createTextVNode)("For "),e.duration,(0,r.createTextVNode)(" second"),1===e.duration?"":"s"],0)})]})},N=function(e,t){for(var n=(0,o.useBackend)(t),a=n.act,c=(n.data,e.dnaString),u=e.selectedBlock,l=e.selectedSubblock,s=e.blockSize,d=e.action,f=c.split(""),p=[],m=function(e){for(var t=e/s+1,n=[],o=function(o){var c=o+1;n.push((0,r.createComponentVNode)(2,i.Button,{selected:u===t&&l===c,content:f[e+o],mb:"0",onClick:function(){return a(d,{block:t,subblock:c})}}))},c=0;ct.name?1:-1})),c.map((function(e,t){return(0,r.createFragment)([(0,r.createComponentVNode)(2,i.Button,{icon:"flask",content:e.name,mb:"0.5rem",onClick:function(){return a("vir",{vir:e.D})}}),(0,r.createVNode)(1,"br")],4,t)}))},y=function(e,t){var n=(0,o.useBackend)(t).data.medbots;return 0===n.length?(0,r.createComponentVNode)(2,i.Box,{color:"label",children:"There are no Medbots."}):n.map((function(e,t){return(0,r.createComponentVNode)(2,i.Collapsible,{open:!0,title:e.name,children:(0,r.createComponentVNode)(2,i.Box,{px:"0.5rem",children:(0,r.createComponentVNode)(2,i.LabeledList,{children:[(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Location",children:[e.area||"Unknown"," (",e.x,", ",e.y,")"]}),(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:e.on?(0,r.createFragment)([(0,r.createComponentVNode)(2,i.Box,{color:"good",children:"Online"}),(0,r.createComponentVNode)(2,i.Box,{mt:"0.5rem",children:e.use_beaker?"Reservoir: "+e.total_volume+"/"+e.maximum_volume:"Using internal synthesizer."})],4):(0,r.createComponentVNode)(2,i.Box,{color:"average",children:"Offline"})})]})})},t)}))},C=function(e,t){var n=(0,o.useBackend)(t),a=n.act,c=n.data.screen;return(0,r.createComponentVNode)(2,i.Tabs,{children:[(0,r.createComponentVNode)(2,i.Tabs.Tab,{selected:2===c,onClick:function(){return a("screen",{screen:2})},children:[(0,r.createComponentVNode)(2,i.Icon,{name:"list"}),"List Records"]}),(0,r.createComponentVNode)(2,i.Tabs.Tab,{selected:5===c,onClick:function(){return a("screen",{screen:5})},children:[(0,r.createComponentVNode)(2,i.Icon,{name:"database"}),"Virus Database"]}),(0,r.createComponentVNode)(2,i.Tabs.Tab,{selected:6===c,onClick:function(){return a("screen",{screen:6})},children:[(0,r.createComponentVNode)(2,i.Icon,{name:"plus-square"}),"Medbot Tracking"]}),(0,r.createComponentVNode)(2,i.Tabs.Tab,{selected:3===c,onClick:function(){return a("screen",{screen:3})},children:[(0,r.createComponentVNode)(2,i.Icon,{name:"wrench"}),"Record Maintenance"]})]})};(0,a.modalRegisterBodyOverride)("virus",(function(e,t){var n=e.args;return(0,r.createComponentVNode)(2,i.Section,{level:2,m:"-1rem",pb:"1rem",title:n.name||"Virus",children:(0,r.createComponentVNode)(2,i.Box,{mx:"0.5rem",children:(0,r.createComponentVNode)(2,i.LabeledList,{children:[(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Number of stages",children:n.max_stages}),(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Spread",children:[n.spread_text," Transmission"]}),(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Possible cure",children:n.cure}),(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Notes",children:n.desc}),(0,r.createComponentVNode)(2,i.LabeledList.Item,{label:"Severity",color:d[n.severity],children:n.severity})]})})})}))},function(e,t,n){"use strict";t.__esModule=!0,t.LoginInfo=void 0;var r=n(1),o=n(11),i=n(13);t.LoginInfo=function(e,t){var n=(0,o.useBackend)(t),a=n.act,c=n.data,u=c.authenticated,l=c.rank;if(c)return(0,r.createComponentVNode)(2,i.NoticeBox,{info:!0,children:[(0,r.createComponentVNode)(2,i.Box,{display:"inline-block",verticalAlign:"middle",children:["Logged in as: ",u," (",l,")"]}),(0,r.createComponentVNode)(2,i.Button,{icon:"sign-out-alt",content:"Logout and Eject ID",color:"good",float:"right",onClick:function(){return a("logout")}}),(0,r.createComponentVNode)(2,i.Box,{clear:"both"})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.LoginScreen=void 0;var r=n(1),o=n(11),i=n(13);t.LoginScreen=function(e,t){var n=(0,o.useBackend)(t),a=n.act,c=n.data,u=c.scan,l=c.isAI,s=c.isRobot;return(0,r.createComponentVNode)(2,i.Section,{title:"Welcome",height:"100%",stretchContents:!0,children:(0,r.createComponentVNode)(2,i.Flex,{height:"100%",align:"center",justify:"center",children:(0,r.createComponentVNode)(2,i.Flex.Item,{textAlign:"center",mt:"-2rem",children:[(0,r.createComponentVNode)(2,i.Box,{fontSize:"1.5rem",bold:!0,children:[(0,r.createComponentVNode)(2,i.Icon,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"Guest"]}),(0,r.createComponentVNode)(2,i.Box,{color:"label",my:"1rem",children:["ID:",(0,r.createComponentVNode)(2,i.Button,{icon:"id-card",content:u||"----------",ml:"0.5rem",onClick:function(){return a("scan")}})]}),(0,r.createComponentVNode)(2,i.Button,{icon:"sign-in-alt",disabled:!u,content:"Login",onClick:function(){return a("login",{login_type:1})}}),!!l&&(0,r.createComponentVNode)(2,i.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){return a("login",{login_type:2})}}),!!s&&(0,r.createComponentVNode)(2,i.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){return a("login",{login_type:3})}})]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.TemporaryNotice=void 0;var r=n(1),o=n(11),i=n(13);t.TemporaryNotice=function(e,t){var n,a=(0,o.useBackend)(t),c=a.act,u=a.data.temp;if(u){var l=((n={})[u.style]=!0,n);return(0,r.normalizeProps)((0,r.createComponentVNode)(2,i.NoticeBox,Object.assign({},l,{children:[(0,r.createComponentVNode)(2,i.Box,{display:"inline-block",verticalAlign:"middle",children:u.text}),(0,r.createComponentVNode)(2,i.Button,{icon:"times-circle",float:"right",onClick:function(){return c("cleartemp")}}),(0,r.createComponentVNode)(2,i.Box,{clear:"both"})]})))}}},function(e,t,n){"use strict";t.__esModule=!0,t.NtosCameraConsole=void 0;var r=n(1),o=n(17),i=n(172);t.NtosCameraConsole=function(){return(0,r.createComponentVNode)(2,o.NtosWindow,{width:870,height:708,resizable:!0,children:(0,r.createComponentVNode)(2,o.NtosWindow.Content,{children:(0,r.createComponentVNode)(2,i.CameraConsoleContent)})})}},function(e,t,n){"use strict";t.__esModule=!0,t.NtosCrewMonitor=void 0;var r=n(1),o=n(17),i=n(174);t.NtosCrewMonitor=function(){return(0,r.createComponentVNode)(2,o.NtosWindow,{width:800,height:600,resizable:!0,children:(0,r.createComponentVNode)(2,o.NtosWindow.Content,{children:(0,r.createComponentVNode)(2,i.CrewMonitorContent)})})}},function(e,t,n){"use strict";t.__esModule=!0,t.OperatingComputer=void 0;var r=n(1),o=n(34),i=n(11),a=n(17),c=n(13),u=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],l=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],s={average:[.25,.5],bad:[.5,Infinity]},d=["bad","average","average","good","average","average","bad"];t.OperatingComputer=function(e,t){var n,o=(0,i.useBackend)(t),u=o.act,l=o.data,s=l.hasOccupant,d=l.choice;return n=d?(0,r.createComponentVNode)(2,m):s?(0,r.createComponentVNode)(2,f):(0,r.createComponentVNode)(2,p),(0,r.createComponentVNode)(2,a.Window,{width:650,height:455,resizable:!0,children:(0,r.createComponentVNode)(2,a.Window.Content,{children:[(0,r.createComponentVNode)(2,c.Tabs,{children:[(0,r.createComponentVNode)(2,c.Tabs.Tab,{selected:!d,icon:"user",onClick:function(){return u("choiceOff")},children:"Patient"}),(0,r.createComponentVNode)(2,c.Tabs.Tab,{selected:!!d,icon:"cog",onClick:function(){return u("choiceOn")},children:"Options"})]}),(0,r.createComponentVNode)(2,c.Section,{flexGrow:"1",children:n})]})})};var f=function(e,t){var n=(0,i.useBackend)(t).data.occupant;return(0,r.createFragment)([(0,r.createComponentVNode)(2,c.Section,{title:"Patient",level:"2",children:(0,r.createComponentVNode)(2,c.LabeledList,{children:[(0,r.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:n.name}),(0,r.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",color:u[n.stat][0],children:u[n.stat][1]}),(0,r.createComponentVNode)(2,c.LabeledList.Item,{label:"Health",children:(0,r.createComponentVNode)(2,c.ProgressBar,{min:"0",max:n.maxHealth,value:n.health/n.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),l.map((function(e,t){return(0,r.createComponentVNode)(2,c.LabeledList.Item,{label:e[0]+" Damage",children:(0,r.createComponentVNode)(2,c.ProgressBar,{min:"0",max:"100",value:n[e[1]]/100,ranges:s,children:(0,o.round)(n[e[1]])},t)},t)})),(0,r.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",children:(0,r.createComponentVNode)(2,c.ProgressBar,{min:"0",max:n.maxTemp,value:n.bodyTemperature/n.maxTemp,color:d[n.temperatureSuitability+3],children:[(0,o.round)(n.btCelsius),"\xb0C, ",(0,o.round)(n.btFaren),"\xb0F"]})}),!!n.hasBlood&&(0,r.createFragment)([(0,r.createComponentVNode)(2,c.LabeledList.Item,{label:"Blood Level",children:(0,r.createComponentVNode)(2,c.ProgressBar,{min:"0",max:n.bloodMax,value:n.bloodLevel/n.bloodMax,ranges:{bad:[-Infinity,.6],average:[.6,.9],good:[.6,Infinity]},children:[n.bloodPercent,"%, ",n.bloodLevel,"cl"]})}),(0,r.createComponentVNode)(2,c.LabeledList.Item,{label:"Pulse",children:[n.pulse," BPM"]})],4)]})}),(0,r.createComponentVNode)(2,c.Section,{title:"Current Procedure",level:"2",children:n.surgery&&n.surgery.length?(0,r.createComponentVNode)(2,c.LabeledList,{children:n.surgery.map((function(e){return(0,r.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:(0,r.createComponentVNode)(2,c.LabeledList,{children:[(0,r.createComponentVNode)(2,c.LabeledList.Item,{label:"Current State",children:e.currentStage}),(0,r.createComponentVNode)(2,c.LabeledList.Item,{label:"Possible Next Steps",children:e.nextSteps.map((function(e){return(0,r.createVNode)(1,"div",null,e,0,null,e)}))})]})},e.name)}))}):(0,r.createComponentVNode)(2,c.Box,{color:"label",children:"No procedure ongoing."})})],4)},p=function(){return(0,r.createComponentVNode)(2,c.Flex,{textAlign:"center",height:"100%",children:(0,r.createComponentVNode)(2,c.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,r.createComponentVNode)(2,c.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,r.createVNode)(1,"br"),"No patient detected."]})})},m=function(e,t){var n=(0,i.useBackend)(t),o=n.act,a=n.data,u=a.verbose,l=a.health,s=a.healthAlarm,d=a.oxy,f=a.oxyAlarm,p=a.crit;return(0,r.createComponentVNode)(2,c.LabeledList,{children:[(0,r.createComponentVNode)(2,c.LabeledList.Item,{label:"Loudspeaker",children:(0,r.createComponentVNode)(2,c.Button,{selected:u,icon:u?"toggle-on":"toggle-off",content:u?"On":"Off",onClick:function(){return o(u?"verboseOff":"verboseOn")}})}),(0,r.createComponentVNode)(2,c.LabeledList.Item,{label:"Health Announcer",children:(0,r.createComponentVNode)(2,c.Button,{selected:l,icon:l?"toggle-on":"toggle-off",content:l?"On":"Off",onClick:function(){return o(l?"healthOff":"healthOn")}})}),(0,r.createComponentVNode)(2,c.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,r.createComponentVNode)(2,c.Knob,{bipolar:!0,minValue:"-100",maxValue:"100",value:s,stepPixelSize:"5",ml:"0",onChange:function(e,t){return o("health_adj",{"new":t})}})}),(0,r.createComponentVNode)(2,c.LabeledList.Item,{label:"Oxygen Alarm",children:(0,r.createComponentVNode)(2,c.Button,{selected:d,icon:d?"toggle-on":"toggle-off",content:d?"On":"Off",onClick:function(){return o(d?"oxyOff":"oxyOn")}})}),(0,r.createComponentVNode)(2,c.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,r.createComponentVNode)(2,c.Knob,{bipolar:!0,minValue:"-100",maxValue:"100",value:f,stepPixelSize:"5",ml:"0",onChange:function(e,t){return o("oxy_adj",{"new":t})}})}),(0,r.createComponentVNode)(2,c.LabeledList.Item,{label:"Critical Alert",children:(0,r.createComponentVNode)(2,c.Button,{selected:p,icon:p?"toggle-on":"toggle-off",content:p?"On":"Off",onClick:function(){return o(p?"critOff":"critOn")}})})]})}},function(e,t,n){"use strict";t.__esModule=!0,t.ResleevingConsole=void 0;var r=n(1),o=n(34),i=n(11),a=n(13),c=(n(55),n(68)),u=n(17),l=function(e,t){var n=(0,i.useBackend)(t),o=n.act,c=(n.data,e.args),u=c.activerecord,l=c.realname,s=c.obviously_dead,d=c.oocnotes,f=c.can_sleeve_active;return(0,r.createComponentVNode)(2,a.Section,{level:2,m:"-1rem",pb:"1rem",title:"Mind Record ("+l+")",children:(0,r.createComponentVNode)(2,a.LabeledList,{children:[(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:l}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:s}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Actions",children:[(0,r.createComponentVNode)(2,a.Button,{disabled:!f,icon:"user-plus",content:"Sleeve",onClick:function(){return o("sleeve",{ref:u,mode:1})}}),(0,r.createComponentVNode)(2,a.Button,{icon:"user-plus",content:"Card",onClick:function(){return o("sleeve",{ref:u,mode:2})}})]}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"OOC Notes",children:d})]})})},s=function(e,t){var n=(0,i.useBackend)(t),o=n.act,c=(n.data,e.args),u=c.activerecord,l=c.realname,s=c.species,d=c.sex,f=c.mind_compat,p=c.synthetic,m=c.oocnotes,h=c.can_grow_active;return(0,r.createComponentVNode)(2,a.Section,{level:2,m:"-1rem",pb:"1rem",title:"Body Record ("+l+")",children:(0,r.createComponentVNode)(2,a.LabeledList,{children:[(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:l}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Species",children:s}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Bio. Sex",children:d}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Mind Compat",children:f}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Synthetic",children:p?"Yes":"No"}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"OOC Notes",children:m}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Actions",children:(0,r.createComponentVNode)(2,a.Button,{disabled:!h,icon:"user-plus",content:p?"Build":"Grow",onClick:function(){return o("create",{ref:u})}})})]})})};t.ResleevingConsole=function(e,t){var n=(0,i.useBackend)(t),o=(n.act,n.data),h=(o.menu,o.coredumped),v=o.emergency,g=(0,r.createFragment)([(0,r.createComponentVNode)(2,C),(0,r.createComponentVNode)(2,N),(0,r.createComponentVNode)(2,d),(0,r.createComponentVNode)(2,a.Section,{noTopPadding:!0,flexGrow:"1",children:(0,r.createComponentVNode)(2,f)})],4);return h&&(g=(0,r.createComponentVNode)(2,p)),v&&(g=(0,r.createComponentVNode)(2,m)),(0,c.modalRegisterBodyOverride)("view_b_rec",s),(0,c.modalRegisterBodyOverride)("view_m_rec",l),(0,r.createComponentVNode)(2,u.Window,{width:640,height:520,resizable:!0,children:[(0,r.createComponentVNode)(2,c.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,r.createComponentVNode)(2,u.Window.Content,{className:"Layout__content--flexColumn",children:g})]})};var d=function(e,t){var n=(0,i.useBackend)(t),o=n.act,c=n.data.menu;return(0,r.createComponentVNode)(2,a.Tabs,{children:[(0,r.createComponentVNode)(2,a.Tabs.Tab,{selected:1===c,icon:"home",onClick:function(){return o("menu",{num:1})},children:"Main"}),(0,r.createComponentVNode)(2,a.Tabs.Tab,{selected:2===c,icon:"folder",onClick:function(){return o("menu",{num:2})},children:"Body Records"}),(0,r.createComponentVNode)(2,a.Tabs.Tab,{selected:3===c,icon:"folder",onClick:function(){return o("menu",{num:3})},children:"Mind Records"})]})},f=function(e,t){var n,o=(0,i.useBackend)(t).data,a=o.menu,c=o.bodyrecords,u=o.mindrecords;return 1===a?n=(0,r.createComponentVNode)(2,h):2===a?n=(0,r.createComponentVNode)(2,y,{records:c,actToDo:"view_b_rec"}):3===a&&(n=(0,r.createComponentVNode)(2,y,{records:u,actToDo:"view_m_rec"})),n},p=function(e,t){return(0,r.createComponentVNode)(2,a.Dimmer,{children:(0,r.createComponentVNode)(2,a.Flex,{direction:"column",justify:"space-evenly",align:"center",children:[(0,r.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,r.createComponentVNode)(2,a.Icon,{size:12,color:"bad",name:"exclamation-triangle"})}),(0,r.createComponentVNode)(2,a.Flex.Item,{grow:1,color:"bad",mt:5,children:(0,r.createVNode)(1,"h2",null,"TransCore dump completed. Resleeving offline.",16)})]})})},m=function(e,t){var n=(0,i.useBackend)(t).act;return(0,r.createComponentVNode)(2,a.Dimmer,{textAlign:"center",children:[(0,r.createComponentVNode)(2,a.Box,{color:"bad",children:(0,r.createVNode)(1,"h1",null,"TRANSCORE DUMP",16)}),(0,r.createComponentVNode)(2,a.Box,{color:"bad",children:(0,r.createVNode)(1,"h2",null,"!!WARNING!!",16)}),(0,r.createComponentVNode)(2,a.Box,{color:"bad",children:"This will transfer all minds to the dump disk, and the TransCore will be made unusable until post-shift maintenance! This should only be used in emergencies!"}),(0,r.createComponentVNode)(2,a.Box,{mt:4,children:(0,r.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject Disk",color:"good",onClick:function(){return n("ejectdisk")}})}),(0,r.createComponentVNode)(2,a.Box,{mt:4,children:(0,r.createComponentVNode)(2,a.Button.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Core Dump",confirmContent:"Disable Transcore?",color:"bad",onClick:function(){return n("coredump")}})})]})},h=function(e,t){var n=(0,i.useBackend)(t),o=(n.act,n.data);o.loading,o.scantemp,o.occupant,o.locked,o.can_brainscan,o.scan_mode,o.pods,o.selected_pod;return(0,r.createComponentVNode)(2,a.Section,{title:"Pods",level:"2",children:[(0,r.createComponentVNode)(2,v),(0,r.createComponentVNode)(2,b),(0,r.createComponentVNode)(2,g)]})},v=function(e,t){var n=(0,i.useBackend)(t),c=n.act,u=n.data,l=u.pods,s=u.spods,d=u.selected_pod;return l&&l.length?l.map((function(e,t){var n;return n="cloning"===e.status?(0,r.createComponentVNode)(2,a.ProgressBar,{min:"0",max:"100",value:e.progress/100,ranges:{good:[.75,Infinity],average:[.25,.75],bad:[-Infinity,.25]},mt:"0.5rem",children:(0,r.createComponentVNode)(2,a.Box,{textAlign:"center",children:(0,o.round)(e.progress,0)+"%"})}):"mess"===e.status?(0,r.createComponentVNode)(2,a.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):(0,r.createComponentVNode)(2,a.Button,{selected:d===e.pod,icon:d===e.pod&&"check",content:"Select",mt:s&&s.length?"2rem":"0.5rem",onClick:function(){return c("selectpod",{ref:e.pod})}}),(0,r.createComponentVNode)(2,a.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,r.createVNode)(1,"img",null,null,1,{src:"pod_"+e.status+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,r.createComponentVNode)(2,a.Box,{color:"label",children:e.name}),(0,r.createComponentVNode)(2,a.Box,{bold:!0,color:e.biomass>=150?"good":"bad",display:"inline",children:[(0,r.createComponentVNode)(2,a.Icon,{name:e.biomass>=150?"circle":"circle-o"}),"\xa0",e.biomass]}),n]},t)})):null},g=function(e,t){var n=(0,i.useBackend)(t),o=n.act,c=n.data,u=c.sleevers,l=c.spods,s=c.selected_sleever;return u&&u.length?u.map((function(e,t){var n;return n=e.occupied?(0,r.createComponentVNode)(2,a.Button,{selected:s===e.sleever,icon:s===e.sleever&&"check",content:"Select",mt:l&&l.length?"3rem":"1.5rem",onClick:function(){return o("selectsleever",{ref:e.sleever})}}):(0,r.createComponentVNode)(2,a.Box,{mt:l&&l.length?"2rem":"0.5rem",color:"bad",children:"Sleever Empty."}),(0,r.createComponentVNode)(2,a.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,r.createVNode)(1,"img",null,null,1,{src:"sleeve_"+(e.occupied?"occupied":"empty")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,r.createComponentVNode)(2,a.Box,{color:"label",children:e.name}),n]},t)})):null},b=function(e,t){var n=(0,i.useBackend)(t),c=n.act,u=n.data,l=u.spods,s=u.selected_printer;return l&&l.length?l.map((function(e,t){var n;return n="cloning"===e.status?(0,r.createComponentVNode)(2,a.ProgressBar,{min:"0",max:"100",value:e.progress/100,ranges:{good:[.75,Infinity],average:[.25,.75],bad:[-Infinity,.25]},mt:"0.5rem",children:(0,r.createComponentVNode)(2,a.Box,{textAlign:"center",children:(0,o.round)(e.progress,0)+"%"})}):"mess"===e.status?(0,r.createComponentVNode)(2,a.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):(0,r.createComponentVNode)(2,a.Button,{selected:s===e.spod,icon:s===e.spod&&"check",content:"Select",mt:"0.5rem",onClick:function(){return c("selectprinter",{ref:e.spod})}}),(0,r.createComponentVNode)(2,a.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,r.createVNode)(1,"img",null,null,1,{src:"synthprinter"+(e.busy?"_working":"")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,r.createComponentVNode)(2,a.Box,{color:"label",children:e.name}),(0,r.createComponentVNode)(2,a.Box,{bold:!0,color:e.steel>=15e3?"good":"bad",display:"inline",children:[(0,r.createComponentVNode)(2,a.Icon,{name:e.steel>=15e3?"circle":"circle-o"}),"\xa0",e.steel]}),(0,r.createComponentVNode)(2,a.Box,{bold:!0,color:e.glass>=15e3?"good":"bad",display:"inline",children:[(0,r.createComponentVNode)(2,a.Icon,{name:e.glass>=15e3?"circle":"circle-o"}),"\xa0",e.glass]}),n]},t)})):null},y=function(e,t){var n=(0,i.useBackend)(t).act,o=e.records,c=e.actToDo;return o.length?(0,r.createComponentVNode)(2,a.Box,{mt:"0.5rem",children:o.map((function(e,t){return(0,r.createComponentVNode)(2,a.Button,{icon:"user",mb:"0.5rem",content:e.name,onClick:function(){return n(c,{ref:e.recref})}},t)}))}):(0,r.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,r.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,r.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,r.createVNode)(1,"br"),"No records found."]})})},C=function(e,t){var n,o=(0,i.useBackend)(t),c=o.act,u=o.data.temp;if(u&&u.text&&!(u.text.length<=0)){var l=((n={})[u.style]=!0,n);return(0,r.normalizeProps)((0,r.createComponentVNode)(2,a.NoticeBox,Object.assign({},l,{children:[(0,r.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",children:u.text}),(0,r.createComponentVNode)(2,a.Button,{icon:"times-circle",float:"right",onClick:function(){return c("cleartemp")}}),(0,r.createComponentVNode)(2,a.Box,{clear:"both"})]})))}},N=function(e,t){var n=(0,i.useBackend)(t),o=(n.act,n.data),c=o.pods,u=o.spods,l=o.sleevers;o.autoallowed,o.autoprocess,o.disk;return(0,r.createComponentVNode)(2,a.Section,{title:"Status",children:(0,r.createComponentVNode)(2,a.LabeledList,{children:[(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Pods",children:c&&c.length?(0,r.createComponentVNode)(2,a.Box,{color:"good",children:[c.length," connected"]}):(0,r.createComponentVNode)(2,a.Box,{color:"bad",children:"None connected!"})}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"SynthFabs",children:u&&u.length?(0,r.createComponentVNode)(2,a.Box,{color:"good",children:[u.length," connected"]}):(0,r.createComponentVNode)(2,a.Box,{color:"bad",children:"None connected!"})}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Sleevers",children:l&&l.length?(0,r.createComponentVNode)(2,a.Box,{color:"good",children:[l.length," Connected"]}):(0,r.createComponentVNode)(2,a.Box,{color:"bad",children:"None connected!"})})]})})}},function(e,t,n){"use strict";t.__esModule=!0,t.ResleevingPod=void 0;var r=n(1),o=n(17),i=n(11),a=n(13);t.ResleevingPod=function(e,t){var n=(0,i.useBackend)(t).data,c=n.occupied,u=n.name,l=n.health,s=n.maxHealth,d=n.stat,f=n.mindStatus,p=n.mindName,m=n.resleeveSick,h=n.initialSick;return(0,r.createComponentVNode)(2,o.Window,{width:300,height:350,resizeable:!0,children:(0,r.createComponentVNode)(2,o.Window.Content,{children:(0,r.createComponentVNode)(2,a.Section,{title:"Occupant",children:c?(0,r.createFragment)([(0,r.createComponentVNode)(2,a.LabeledList,{children:[(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:u}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Health",children:2===d?(0,r.createComponentVNode)(2,a.Box,{color:"bad",children:"DEAD"}):1===d?(0,r.createComponentVNode)(2,a.Box,{color:"average",children:"Unconscious"}):(0,r.createComponentVNode)(2,a.ProgressBar,{ranges:{good:[.5,Infinity],average:[.25,.5],bad:[-Infinity,.25]},value:l/s,children:[l,"%"]})}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Mind Status",children:f?"Present":"Missing"}),f?(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Mind Occupying",children:p}):""]}),m?(0,r.createComponentVNode)(2,a.Box,{color:"average",mt:3,children:["Warning: Resleeving Sickness detected.",h?(0,r.createFragment)([(0,r.createTextVNode)(" Motion Sickness also detected. Please allow the newly resleeved person a moment to get their bearings. This warning will disappear when Motion Sickness is no longer detected.")],4):""]}):""],0):(0,r.createComponentVNode)(2,a.Box,{bold:!0,m:1,children:"Unoccupied."})})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Sleeper=void 0;var r=n(1),o=n(34),i=n(11),a=n(13),c=n(17),u=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],l=[["Resp","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],s={average:[.25,.5],bad:[.5,Infinity]},d=["bad","average","average","good","average","average","bad"];t.Sleeper=function(e,t){var n=(0,i.useBackend)(t),o=(n.act,n.data.hasOccupant?(0,r.createComponentVNode)(2,f):(0,r.createComponentVNode)(2,g));return(0,r.createComponentVNode)(2,c.Window,{width:550,height:820,resizable:!0,children:(0,r.createComponentVNode)(2,c.Window.Content,{className:"Layout__content--flexColumn",children:o})})};var f=function(e,t){var n=(0,i.useBackend)(t),o=(n.act,n.data),a=(o.occupant,o.dialysis),c=o.stomachpumping;return(0,r.createFragment)([(0,r.createComponentVNode)(2,p),(0,r.createComponentVNode)(2,m),(0,r.createComponentVNode)(2,h,{title:"Dialysis",active:a,actToDo:"togglefilter"}),(0,r.createComponentVNode)(2,h,{title:"Stomach Pump",active:c,actToDo:"togglepump"}),(0,r.createComponentVNode)(2,v)],4)},p=function(e,t){var n=(0,i.useBackend)(t),c=n.act,l=n.data,s=l.occupant,f=l.auto_eject_dead,p=l.stasis;return(0,r.createComponentVNode)(2,a.Section,{title:"Occupant",buttons:(0,r.createFragment)([(0,r.createComponentVNode)(2,a.Box,{color:"label",display:"inline",children:"Auto-eject if dead:\xa0"}),(0,r.createComponentVNode)(2,a.Button,{icon:f?"toggle-on":"toggle-off",selected:f,content:f?"On":"Off",onClick:function(){return c("auto_eject_dead_"+(f?"off":"on"))}}),(0,r.createComponentVNode)(2,a.Button,{icon:"user-slash",content:"Eject",onClick:function(){return c("ejectify")}}),(0,r.createComponentVNode)(2,a.Button,{content:p,onClick:function(){return c("changestasis")}})],4),children:(0,r.createComponentVNode)(2,a.LabeledList,{children:[(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:s.name}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Health",children:(0,r.createComponentVNode)(2,a.ProgressBar,{min:0,max:s.maxHealth,value:s.health/s.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]},children:(0,o.round)(s.health,0)})}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",color:u[s.stat][0],children:u[s.stat][1]}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Temperature",children:(0,r.createComponentVNode)(2,a.ProgressBar,{min:"0",max:s.maxTemp,value:s.bodyTemperature/s.maxTemp,color:d[s.temperatureSuitability+3],children:[(0,o.round)(s.btCelsius,0),"\xb0C,",(0,o.round)(s.btFaren,0),"\xb0F"]})}),!!s.hasBlood&&(0,r.createFragment)([(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Blood Level",children:(0,r.createComponentVNode)(2,a.ProgressBar,{min:"0",max:s.bloodMax,value:s.bloodLevel/s.bloodMax,ranges:{bad:[-Infinity,.6],average:[.6,.9],good:[.6,Infinity]},children:[s.bloodPercent,"%, ",s.bloodLevel,"cl"]})}),(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[s.pulse," BPM"]})],4)]})})},m=function(e,t){var n=(0,i.useBackend)(t).data.occupant;return(0,r.createComponentVNode)(2,a.Section,{title:"Damage",children:(0,r.createComponentVNode)(2,a.LabeledList,{children:l.map((function(e,t){return(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:e[0],children:(0,r.createComponentVNode)(2,a.ProgressBar,{min:"0",max:"100",value:n[e[1]]/100,ranges:s,children:(0,o.round)(n[e[1]],0)},t)},t)}))})})},h=function(e,t){var n=(0,i.useBackend)(t),o=n.act,c=n.data,u=c.isBeakerLoaded,l=c.beakerMaxSpace,s=c.beakerFreeSpace,d=e.active,f=e.actToDo,p=e.title,m=d&&s>0;return(0,r.createComponentVNode)(2,a.Section,{title:p,buttons:(0,r.createFragment)([(0,r.createComponentVNode)(2,a.Button,{disabled:!u||s<=0,selected:m,icon:m?"toggle-on":"toggle-off",content:m?"Active":"Inactive",onClick:function(){return o(f)}}),(0,r.createComponentVNode)(2,a.Button,{disabled:!u,icon:"eject",content:"Eject",onClick:function(){return o("removebeaker")}})],4),children:u?(0,r.createComponentVNode)(2,a.LabeledList,{children:(0,r.createComponentVNode)(2,a.LabeledList.Item,{label:"Remaining Space",children:(0,r.createComponentVNode)(2,a.ProgressBar,{min:"0",max:l,value:s/l,ranges:{good:[.5,Infinity],average:[.25,.5],bad:[-Infinity,.25]},children:[s,"u"]})})}):(0,r.createComponentVNode)(2,a.Box,{color:"label",children:"No beaker loaded."})})},v=function(e,t){var n=(0,i.useBackend)(t),o=n.act,c=n.data,u=c.occupant,l=c.chemicals,s=c.maxchem,d=c.amounts;return(0,r.createComponentVNode)(2,a.Section,{title:"Chemicals",flexGrow:"1",children:l.map((function(e,t){var n,i="";return e.overdosing?(i="bad",n=(0,r.createComponentVNode)(2,a.Box,{color:"bad",children:[(0,r.createComponentVNode)(2,a.Icon,{name:"exclamation-circle"}),"\xa0 Overdosing!"]})):e.od_warning&&(i="average",n=(0,r.createComponentVNode)(2,a.Box,{color:"average",children:[(0,r.createComponentVNode)(2,a.Icon,{name:"exclamation-triangle"}),"\xa0 Close to overdosing"]})),(0,r.createComponentVNode)(2,a.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,r.createComponentVNode)(2,a.Section,{title:e.title,level:"3",mx:"0",lineHeight:"18px",buttons:n,children:(0,r.createComponentVNode)(2,a.Flex,{align:"flex-start",children:[(0,r.createComponentVNode)(2,a.ProgressBar,{min:"0",max:s,value:e.occ_amount/s,color:i,mr:"0.5rem",children:[e.pretty_amount,"/",s,"u"]}),d.map((function(t,n){return(0,r.createComponentVNode)(2,a.Button,{disabled:!e.injectable||e.occ_amount+t>s||2===u.stat,icon:"syringe",content:t,mb:"0",height:"19px",onClick:function(){return o("chemical",{chemid:e.id,amount:t})}},n)}))]})})},t)}))})},g=function(e,t){return(0,r.createComponentVNode)(2,a.Section,{textAlign:"center",flexGrow:"1",children:(0,r.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,r.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,r.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,r.createVNode)(1,"br"),"No occupant detected."]})})})}},function(e,t,n){"use strict";t.__esModule=!0,t.Wires=void 0;var r=n(1),o=n(11),i=n(13),a=n(17);t.Wires=function(e,t){var n=(0,o.useBackend)(t),c=n.act,u=n.data,l=u.wires||[],s=u.status||[];return(0,r.createComponentVNode)(2,a.Window,{width:350,height:150+30*l.length,resizable:!0,children:(0,r.createComponentVNode)(2,a.Window.Content,{children:[(0,r.createComponentVNode)(2,i.Section,{children:(0,r.createComponentVNode)(2,i.LabeledList,{children:l.map((function(e){return(0,r.createComponentVNode)(2,i.LabeledList.Item,{className:"candystripe",label:e.color_name,labelColor:e.seen_color,color:e.seen_color,buttons:(0,r.createFragment)([(0,r.createComponentVNode)(2,i.Button,{content:e.cut?"Mend":"Cut",onClick:function(){return c("cut",{wire:e.color})}}),(0,r.createComponentVNode)(2,i.Button,{content:"Pulse",onClick:function(){return c("pulse",{wire:e.color})}}),(0,r.createComponentVNode)(2,i.Button,{content:e.attached?"Detach":"Attach",onClick:function(){return c("attach",{wire:e.color})}})],4),children:!!e.wire&&(0,r.createVNode)(1,"i",null,[(0,r.createTextVNode)("("),e.wire,(0,r.createTextVNode)(")")],0)},e.seen_color)}))})}),!!s.length&&(0,r.createComponentVNode)(2,i.Section,{children:s.map((function(e){return(0,r.createComponentVNode)(2,i.Box,{color:"lightgray",mt:.1,children:e},e)}))})]})})}}]); \ No newline at end of file diff --git a/vorestation.dme b/vorestation.dme index 6b14c69882..765a5762c1 100644 --- a/vorestation.dme +++ b/vorestation.dme @@ -130,10 +130,10 @@ #include "code\_helpers\time.dm" #include "code\_helpers\turfs.dm" #include "code\_helpers\type2type.dm" -#include "code\_helpers\type2type_vr.dm" #include "code\_helpers\unsorted.dm" #include "code\_helpers\unsorted_vr.dm" #include "code\_helpers\view.dm" +#include "code\_helpers\visual_filters.dm" #include "code\_helpers\sorts\__main.dm" #include "code\_helpers\sorts\comparators.dm" #include "code\_helpers\sorts\TimSort.dm" @@ -2486,6 +2486,7 @@ #include "code\modules\mob\living\login.dm" #include "code\modules\mob\living\logout.dm" #include "code\modules\mob\living\say.dm" +#include "code\modules\mob\living\status_indicators.dm" #include "code\modules\mob\living\bot\bot.dm" #include "code\modules\mob\living\bot\bot_vr.dm" #include "code\modules\mob\living\bot\cleanbot.dm" @@ -3119,6 +3120,7 @@ #include "code\modules\persistence\filth.dm" #include "code\modules\persistence\graffiti.dm" #include "code\modules\persistence\noticeboard.dm" +#include "code\modules\persistence\noticeboard_yw.dm" #include "code\modules\persistence\persistence.dm" #include "code\modules\persistence\datum\datum_filth.dm" #include "code\modules\persistence\datum\datum_graffiti.dm"