diff --git a/_maps/map_files/RandomRuins/LavaRuins/chasm_bridges/lavaland_bridge_horizontal_1.dmm b/_maps/map_files/RandomRuins/LavaRuins/chasm_bridges/lavaland_bridge_horizontal_1.dmm deleted file mode 100644 index b3a1d6baffe3..000000000000 --- a/_maps/map_files/RandomRuins/LavaRuins/chasm_bridges/lavaland_bridge_horizontal_1.dmm +++ /dev/null @@ -1,46 +0,0 @@ -//MAP CONVERTED BY dmm2tgm.py THIS HEADER COMMENT PREVENTS RECONVERSION, DO NOT REMOVE -"a" = ( -/turf/simulated/wall/clockwork, -/area/lavaland/surface/outdoors/unexplored/danger) -"b" = ( -/turf/simulated/floor/clockwork/lavaland_air, -/area/lavaland/surface/outdoors/unexplored/danger) -"c" = ( -/turf/template_noop, -/area/lavaland/surface/outdoors/unexplored/danger) - -(1,1,1) = {" -c -a -b -a -c -"} -(2,1,1) = {" -c -c -b -c -c -"} -(3,1,1) = {" -c -c -b -c -c -"} -(4,1,1) = {" -c -c -b -c -c -"} -(5,1,1) = {" -c -a -b -a -c -"} diff --git a/_maps/map_files/RandomRuins/LavaRuins/chasm_bridges/lavaland_bridge_horizontal_2.dmm b/_maps/map_files/RandomRuins/LavaRuins/chasm_bridges/lavaland_bridge_horizontal_2.dmm deleted file mode 100644 index 60b50b4d1899..000000000000 --- a/_maps/map_files/RandomRuins/LavaRuins/chasm_bridges/lavaland_bridge_horizontal_2.dmm +++ /dev/null @@ -1,46 +0,0 @@ -//MAP CONVERTED BY dmm2tgm.py THIS HEADER COMMENT PREVENTS RECONVERSION, DO NOT REMOVE -"a" = ( -/turf/simulated/wall/cult, -/area/lavaland/surface/outdoors/unexplored/danger) -"b" = ( -/turf/simulated/floor/engine/cult/lavaland_air, -/area/lavaland/surface/outdoors/unexplored/danger) -"c" = ( -/turf/template_noop, -/area/lavaland/surface/outdoors/unexplored/danger) - -(1,1,1) = {" -c -a -b -a -c -"} -(2,1,1) = {" -c -c -b -c -c -"} -(3,1,1) = {" -c -c -b -c -c -"} -(4,1,1) = {" -c -c -b -c -c -"} -(5,1,1) = {" -c -a -b -a -c -"} diff --git a/_maps/map_files/RandomRuins/LavaRuins/chasm_bridges/lavaland_bridge_horizontal_3.dmm b/_maps/map_files/RandomRuins/LavaRuins/chasm_bridges/lavaland_bridge_horizontal_3.dmm deleted file mode 100644 index 2d3360cc5800..000000000000 --- a/_maps/map_files/RandomRuins/LavaRuins/chasm_bridges/lavaland_bridge_horizontal_3.dmm +++ /dev/null @@ -1,73 +0,0 @@ -//MAP CONVERTED BY dmm2tgm.py THIS HEADER COMMENT PREVENTS RECONVERSION, DO NOT REMOVE -"a" = ( -/turf/simulated/wall/cult, -/area/lavaland/surface/outdoors/unexplored/danger) -"b" = ( -/obj/structure/stone_tile/surrounding, -/obj/structure/stone_tile/center, -/turf/template_noop, -/area/lavaland/surface/outdoors/unexplored/danger) -"c" = ( -/turf/template_noop, -/area/lavaland/surface/outdoors/unexplored/danger) -"g" = ( -/obj/structure/stone_tile/slab/cracked, -/turf/template_noop, -/area/lavaland/surface/outdoors/unexplored/danger) -"h" = ( -/obj/structure/stone_tile/slab, -/turf/template_noop, -/area/lavaland/surface/outdoors/unexplored/danger) -"m" = ( -/obj/structure/stone_tile/block, -/obj/structure/stone_tile/block/cracked{ - dir = 1 - }, -/turf/template_noop, -/area/lavaland/surface/outdoors/unexplored/danger) -"o" = ( -/obj/structure/stone_tile/block{ - dir = 1 - }, -/obj/structure/stone_tile/burnt, -/obj/structure/stone_tile/surrounding_tile{ - dir = 8 - }, -/turf/template_noop, -/area/lavaland/surface/outdoors/unexplored/danger) - -(1,1,1) = {" -c -a -h -a -c -"} -(2,1,1) = {" -c -c -m -c -c -"} -(3,1,1) = {" -c -c -b -c -c -"} -(4,1,1) = {" -c -c -o -c -c -"} -(5,1,1) = {" -c -a -g -a -c -"} diff --git a/_maps/map_files/RandomRuins/LavaRuins/chasm_bridges/lavaland_bridge_horizontal_4.dmm b/_maps/map_files/RandomRuins/LavaRuins/chasm_bridges/lavaland_bridge_horizontal_4.dmm deleted file mode 100644 index 272dfcd1246b..000000000000 --- a/_maps/map_files/RandomRuins/LavaRuins/chasm_bridges/lavaland_bridge_horizontal_4.dmm +++ /dev/null @@ -1,49 +0,0 @@ -//MAP CONVERTED BY dmm2tgm.py THIS HEADER COMMENT PREVENTS RECONVERSION, DO NOT REMOVE -"a" = ( -/turf/simulated/wall/indestructible/hierophant, -/area/lavaland/surface/outdoors/unexplored/danger) -"b" = ( -/turf/simulated/floor/indestructible/hierophant, -/area/lavaland/surface/outdoors/unexplored/danger) -"c" = ( -/turf/template_noop, -/area/lavaland/surface/outdoors/unexplored/danger) -"o" = ( -/turf/simulated/floor/indestructible/hierophant/two, -/area/lavaland/surface/outdoors/unexplored/danger) - -(1,1,1) = {" -c -a -b -a -c -"} -(2,1,1) = {" -c -c -b -c -c -"} -(3,1,1) = {" -c -c -o -c -c -"} -(4,1,1) = {" -c -c -b -c -c -"} -(5,1,1) = {" -c -a -b -a -c -"} diff --git a/_maps/map_files/RandomRuins/LavaRuins/chasm_bridges/lavaland_bridge_horizontal_5.dmm b/_maps/map_files/RandomRuins/LavaRuins/chasm_bridges/lavaland_bridge_horizontal_5.dmm deleted file mode 100644 index 954adedd9c4b..000000000000 --- a/_maps/map_files/RandomRuins/LavaRuins/chasm_bridges/lavaland_bridge_horizontal_5.dmm +++ /dev/null @@ -1,50 +0,0 @@ -//MAP CONVERTED BY dmm2tgm.py THIS HEADER COMMENT PREVENTS RECONVERSION, DO NOT REMOVE -"a" = ( -/turf/simulated/wall/mineral/wood/nonmetal, -/area/lavaland/surface/outdoors/unexplored/danger) -"b" = ( -/turf/simulated/floor/wood/lavaland_air, -/area/lavaland/surface/outdoors/unexplored/danger) -"c" = ( -/turf/template_noop, -/area/lavaland/surface/outdoors/unexplored/danger) -"v" = ( -/obj/effect/landmark/damageturf, -/turf/simulated/floor/wood/lavaland_air, -/area/lavaland/surface/outdoors/unexplored/danger) - -(1,1,1) = {" -c -a -v -a -c -"} -(2,1,1) = {" -c -c -b -c -c -"} -(3,1,1) = {" -c -c -b -c -c -"} -(4,1,1) = {" -c -c -v -c -c -"} -(5,1,1) = {" -c -a -b -a -c -"} diff --git a/_maps/map_files/RandomRuins/LavaRuins/chasm_bridges/lavaland_bridge_horizontal_6.dmm b/_maps/map_files/RandomRuins/LavaRuins/chasm_bridges/lavaland_bridge_horizontal_6.dmm deleted file mode 100644 index 2cfe9bd74464..000000000000 --- a/_maps/map_files/RandomRuins/LavaRuins/chasm_bridges/lavaland_bridge_horizontal_6.dmm +++ /dev/null @@ -1,49 +0,0 @@ -//MAP CONVERTED BY dmm2tgm.py THIS HEADER COMMENT PREVENTS RECONVERSION, DO NOT REMOVE -"a" = ( -/obj/structure/lattice/catwalk/mining, -/obj/structure/marker_beacon/dock_marker/collision, -/turf/template_noop, -/area/lavaland/surface/outdoors/unexplored/danger) -"b" = ( -/obj/structure/lattice/catwalk/mining, -/turf/template_noop, -/area/lavaland/surface/outdoors/unexplored/danger) -"c" = ( -/turf/template_noop, -/area/lavaland/surface/outdoors/unexplored/danger) - -(1,1,1) = {" -c -a -b -a -c -"} -(2,1,1) = {" -c -c -b -c -c -"} -(3,1,1) = {" -c -c -b -c -c -"} -(4,1,1) = {" -c -c -b -c -c -"} -(5,1,1) = {" -c -a -b -a -c -"} diff --git a/_maps/map_files/RandomRuins/LavaRuins/chasm_bridges/lavaland_bridge_vertical_1.dmm b/_maps/map_files/RandomRuins/LavaRuins/chasm_bridges/lavaland_bridge_vertical_1.dmm deleted file mode 100644 index dca66633eba8..000000000000 --- a/_maps/map_files/RandomRuins/LavaRuins/chasm_bridges/lavaland_bridge_vertical_1.dmm +++ /dev/null @@ -1,46 +0,0 @@ -//MAP CONVERTED BY dmm2tgm.py THIS HEADER COMMENT PREVENTS RECONVERSION, DO NOT REMOVE -"a" = ( -/turf/simulated/wall/clockwork, -/area/lavaland/surface/outdoors/unexplored/danger) -"b" = ( -/turf/simulated/floor/clockwork/lavaland_air, -/area/lavaland/surface/outdoors/unexplored/danger) -"c" = ( -/turf/template_noop, -/area/lavaland/surface/outdoors/unexplored/danger) - -(1,1,1) = {" -c -c -c -c -c -"} -(2,1,1) = {" -a -c -c -c -a -"} -(3,1,1) = {" -b -b -b -b -b -"} -(4,1,1) = {" -a -c -c -c -a -"} -(5,1,1) = {" -c -c -c -c -c -"} diff --git a/_maps/map_files/RandomRuins/LavaRuins/chasm_bridges/lavaland_bridge_vertical_2.dmm b/_maps/map_files/RandomRuins/LavaRuins/chasm_bridges/lavaland_bridge_vertical_2.dmm deleted file mode 100644 index 02fd1e0a69f9..000000000000 --- a/_maps/map_files/RandomRuins/LavaRuins/chasm_bridges/lavaland_bridge_vertical_2.dmm +++ /dev/null @@ -1,46 +0,0 @@ -//MAP CONVERTED BY dmm2tgm.py THIS HEADER COMMENT PREVENTS RECONVERSION, DO NOT REMOVE -"a" = ( -/turf/simulated/wall/cult, -/area/lavaland/surface/outdoors/unexplored/danger) -"b" = ( -/turf/simulated/floor/engine/cult/lavaland_air, -/area/lavaland/surface/outdoors/unexplored/danger) -"c" = ( -/turf/template_noop, -/area/lavaland/surface/outdoors/unexplored/danger) - -(1,1,1) = {" -c -c -c -c -c -"} -(2,1,1) = {" -a -c -c -c -a -"} -(3,1,1) = {" -b -b -b -b -b -"} -(4,1,1) = {" -a -c -c -c -a -"} -(5,1,1) = {" -c -c -c -c -c -"} diff --git a/_maps/map_files/RandomRuins/LavaRuins/chasm_bridges/lavaland_bridge_vertical_3.dmm b/_maps/map_files/RandomRuins/LavaRuins/chasm_bridges/lavaland_bridge_vertical_3.dmm deleted file mode 100644 index 8fbfe6ba32e6..000000000000 --- a/_maps/map_files/RandomRuins/LavaRuins/chasm_bridges/lavaland_bridge_vertical_3.dmm +++ /dev/null @@ -1,83 +0,0 @@ -//MAP CONVERTED BY dmm2tgm.py THIS HEADER COMMENT PREVENTS RECONVERSION, DO NOT REMOVE -"a" = ( -/turf/simulated/wall/cult, -/area/lavaland/surface/outdoors/unexplored/danger) -"b" = ( -/obj/structure/stone_tile/slab, -/turf/template_noop, -/area/lavaland/surface/outdoors/unexplored/danger) -"c" = ( -/turf/template_noop, -/area/lavaland/surface/outdoors/unexplored/danger) -"w" = ( -/obj/structure/stone_tile/center/cracked, -/obj/structure/stone_tile/surrounding/cracked, -/obj/structure/stone_tile/slab/cracked{ - dir = 10 - }, -/turf/template_noop, -/area/lavaland/surface/outdoors/unexplored/danger) -"I" = ( -/obj/structure/stone_tile, -/obj/structure/stone_tile{ - dir = 4 - }, -/obj/structure/stone_tile{ - dir = 8 - }, -/obj/structure/stone_tile/cracked{ - dir = 1 - }, -/turf/template_noop, -/area/lavaland/surface/outdoors/unexplored/danger) -"M" = ( -/obj/structure/stone_tile/slab/cracked{ - dir = 5 - }, -/turf/template_noop, -/area/lavaland/surface/outdoors/unexplored/danger) -"R" = ( -/obj/structure/stone_tile/block/cracked{ - dir = 8 - }, -/obj/structure/stone_tile/block{ - dir = 4 - }, -/turf/template_noop, -/area/lavaland/surface/outdoors/unexplored/danger) - -(1,1,1) = {" -c -c -c -c -c -"} -(2,1,1) = {" -a -c -c -c -a -"} -(3,1,1) = {" -b -I -w -R -M -"} -(4,1,1) = {" -a -c -c -c -a -"} -(5,1,1) = {" -c -c -c -c -c -"} diff --git a/_maps/map_files/RandomRuins/LavaRuins/chasm_bridges/lavaland_bridge_vertical_4.dmm b/_maps/map_files/RandomRuins/LavaRuins/chasm_bridges/lavaland_bridge_vertical_4.dmm deleted file mode 100644 index 7c187f4aeecc..000000000000 --- a/_maps/map_files/RandomRuins/LavaRuins/chasm_bridges/lavaland_bridge_vertical_4.dmm +++ /dev/null @@ -1,49 +0,0 @@ -//MAP CONVERTED BY dmm2tgm.py THIS HEADER COMMENT PREVENTS RECONVERSION, DO NOT REMOVE -"a" = ( -/turf/simulated/floor/indestructible/hierophant/two, -/area/lavaland/surface/outdoors/unexplored/danger) -"b" = ( -/turf/simulated/floor/indestructible/hierophant, -/area/lavaland/surface/outdoors/unexplored/danger) -"c" = ( -/turf/template_noop, -/area/lavaland/surface/outdoors/unexplored/danger) -"y" = ( -/turf/simulated/wall/indestructible/hierophant, -/area/lavaland/surface/outdoors/unexplored/danger) - -(1,1,1) = {" -c -c -c -c -c -"} -(2,1,1) = {" -y -c -c -c -y -"} -(3,1,1) = {" -a -a -b -a -a -"} -(4,1,1) = {" -y -c -c -c -y -"} -(5,1,1) = {" -c -c -c -c -c -"} diff --git a/_maps/map_files/RandomRuins/LavaRuins/chasm_bridges/lavaland_bridge_vertical_5.dmm b/_maps/map_files/RandomRuins/LavaRuins/chasm_bridges/lavaland_bridge_vertical_5.dmm deleted file mode 100644 index 588567999bff..000000000000 --- a/_maps/map_files/RandomRuins/LavaRuins/chasm_bridges/lavaland_bridge_vertical_5.dmm +++ /dev/null @@ -1,50 +0,0 @@ -//MAP CONVERTED BY dmm2tgm.py THIS HEADER COMMENT PREVENTS RECONVERSION, DO NOT REMOVE -"a" = ( -/turf/simulated/floor/wood/lavaland_air, -/area/lavaland/surface/outdoors/unexplored/danger) -"b" = ( -/obj/effect/landmark/damageturf, -/turf/simulated/floor/wood/lavaland_air, -/area/lavaland/surface/outdoors/unexplored/danger) -"c" = ( -/turf/template_noop, -/area/lavaland/surface/outdoors/unexplored/danger) -"y" = ( -/turf/simulated/wall/mineral/wood, -/area/lavaland/surface/outdoors/unexplored/danger) - -(1,1,1) = {" -c -c -c -c -c -"} -(2,1,1) = {" -y -c -c -c -y -"} -(3,1,1) = {" -b -a -b -a -b -"} -(4,1,1) = {" -y -c -c -c -y -"} -(5,1,1) = {" -c -c -c -c -c -"} diff --git a/_maps/map_files/RandomRuins/LavaRuins/chasm_bridges/lavaland_bridge_vertical_6.dmm b/_maps/map_files/RandomRuins/LavaRuins/chasm_bridges/lavaland_bridge_vertical_6.dmm deleted file mode 100644 index ae47effe5fc8..000000000000 --- a/_maps/map_files/RandomRuins/LavaRuins/chasm_bridges/lavaland_bridge_vertical_6.dmm +++ /dev/null @@ -1,49 +0,0 @@ -//MAP CONVERTED BY dmm2tgm.py THIS HEADER COMMENT PREVENTS RECONVERSION, DO NOT REMOVE -"a" = ( -/obj/structure/lattice/catwalk/mining, -/obj/structure/marker_beacon/dock_marker, -/turf/template_noop, -/area/lavaland/surface/outdoors/unexplored/danger) -"b" = ( -/obj/structure/lattice/catwalk/mining, -/turf/template_noop, -/area/lavaland/surface/outdoors/unexplored/danger) -"c" = ( -/turf/template_noop, -/area/lavaland/surface/outdoors/unexplored/danger) - -(1,1,1) = {" -c -c -c -c -c -"} -(2,1,1) = {" -b -c -c -c -b -"} -(3,1,1) = {" -b -a -b -a -b -"} -(4,1,1) = {" -b -c -c -c -b -"} -(5,1,1) = {" -c -c -c -c -c -"} diff --git a/_maps/map_files/RandomRuins/SpaceRuins/freighter.dmm b/_maps/map_files/RandomRuins/SpaceRuins/freighter.dmm new file mode 100644 index 000000000000..976a7bfc5db3 --- /dev/null +++ b/_maps/map_files/RandomRuins/SpaceRuins/freighter.dmm @@ -0,0 +1,1307 @@ +//MAP CONVERTED BY dmm2tgm.py THIS HEADER COMMENT PREVENTS RECONVERSION, DO NOT REMOVE +"cn" = ( +/obj/structure/closet/crate, +/obj/item/mop/advanced, +/obj/item/soap/syndie, +/obj/item/reagent_containers/spray/cleaner/advanced, +/turf/simulated/floor/mineral/plastitanium, +/area/ruin/space/powered) +"dC" = ( +/turf/simulated/wall/mineral/plastitanium/nodiagonal, +/area/ruin/space/powered) +"dN" = ( +/obj/effect/landmark/damageturf, +/obj/machinery/disco, +/turf/simulated/floor/mineral/plastitanium, +/area/ruin/space/powered) +"ei" = ( +/turf/simulated/floor/plasteel{ + dir = 8; + icon_state = "caution" + }, +/area/ruin/space/powered) +"eI" = ( +/obj/effect/turf_decal/delivery/white/partial, +/obj/machinery/light/small, +/turf/simulated/floor/mineral/plastitanium, +/area/ruin/space/powered) +"fp" = ( +/obj/effect/turf_decal/delivery/partial, +/obj/structure/railing/corner{ + dir = 1 + }, +/turf/simulated/floor/plasteel, +/area/ruin/space/powered) +"fL" = ( +/obj/structure/bed, +/obj/item/bedsheet/black, +/turf/simulated/floor/wood, +/area/ruin/space/powered) +"fY" = ( +/obj/effect/spawner/window/plastitanium, +/turf/simulated/floor/plating, +/area/ruin/space/powered) +"gd" = ( +/obj/machinery/light{ + dir = 8 + }, +/turf/simulated/floor/plasteel{ + dir = 8; + icon_state = "caution" + }, +/area/ruin/space/powered) +"hM" = ( +/obj/effect/landmark/damageturf, +/turf/simulated/floor/plasteel, +/area/ruin/space/powered) +"iq" = ( +/obj/structure/fans/tiny, +/turf/simulated/floor/mineral/plastitanium, +/area/ruin/space/powered) +"iP" = ( +/obj/machinery/door/airlock/medical, +/turf/simulated/floor/plasteel, +/area/ruin/space/powered) +"jM" = ( +/obj/machinery/door/poddoor/multi_tile/impassable/three_tile_hor{ + id_tag = "freighterblastdoor1" + }, +/obj/structure/fans/tiny, +/turf/simulated/floor/mineral/plastitanium, +/area/ruin/space/powered) +"jQ" = ( +/turf/simulated/floor/wood, +/area/ruin/space/powered) +"jY" = ( +/obj/structure/railing{ + dir = 1 + }, +/turf/simulated/floor/plasteel, +/area/ruin/space/powered) +"kK" = ( +/turf/simulated/floor/plasteel{ + dir = 1; + icon_state = "caution" + }, +/area/ruin/space/powered) +"ls" = ( +/obj/structure/chair{ + dir = 4 + }, +/turf/simulated/floor/plasteel{ + icon_state = "cafeteria" + }, +/area/ruin/space/powered) +"lw" = ( +/obj/structure/table, +/obj/item/clipboard, +/obj/item/pen/fancy, +/obj/machinery/light/small{ + dir = 1 + }, +/turf/simulated/floor/mineral/plastitanium, +/area/ruin/space/powered) +"lx" = ( +/turf/simulated/floor/pod/dark, +/area/ruin/space/powered) +"lT" = ( +/obj/structure/railing{ + dir = 1 + }, +/obj/effect/spawner/random_spawners/blood_maybe, +/turf/simulated/floor/plasteel, +/area/ruin/space/powered) +"mk" = ( +/obj/effect/turf_decal/delivery/white/partial{ + dir = 4 + }, +/obj/effect/turf_decal/delivery/white/partial{ + dir = 8 + }, +/turf/simulated/floor/mineral/plastitanium, +/area/ruin/space/powered) +"mA" = ( +/obj/structure/table/reinforced, +/obj/item/tank/internals/oxygen, +/obj/structure/window/reinforced/survival_pod{ + dir = 4 + }, +/turf/simulated/floor/pod/dark, +/area/ruin/space/powered) +"mG" = ( +/obj/structure/reagent_dispensers/fueltank, +/turf/simulated/floor/mineral/plastitanium, +/area/ruin/space/powered) +"ni" = ( +/obj/structure/table, +/obj/item/storage/firstaid/regular, +/obj/item/storage/firstaid/fire{ + pixel_x = 5; + pixel_y = 5 + }, +/obj/item/reagent_containers/glass/bottle/oculine{ + pixel_x = -9; + pixel_y = 9 + }, +/obj/item/reagent_containers/glass/bottle/oculine{ + pixel_x = -9 + }, +/turf/simulated/floor/plasteel{ + dir = 10; + icon_state = "darkblue" + }, +/area/ruin/space/powered) +"nq" = ( +/obj/structure/closet/crate, +/obj/item/banhammer, +/turf/simulated/floor/mineral/plastitanium, +/area/ruin/space/powered) +"nD" = ( +/obj/structure/bookcase/random, +/turf/simulated/floor/plasteel{ + dir = 6; + icon_state = "caution" + }, +/area/ruin/space/powered) +"ov" = ( +/obj/structure/chair/comfy/shuttle{ + dir = 4 + }, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/ruin/space/powered) +"oy" = ( +/turf/simulated/floor/plasteel{ + icon_state = "yellowsiding" + }, +/area/ruin/space/powered) +"rK" = ( +/obj/structure/closet/secure_closet/freezer/fridge, +/turf/simulated/floor/plasteel{ + icon_state = "cafeteria" + }, +/area/ruin/space/powered) +"rV" = ( +/obj/structure/closet/crate/secure/loot, +/turf/simulated/floor/mineral/plastitanium, +/area/ruin/space/powered) +"st" = ( +/obj/structure/railing, +/turf/simulated/floor/plasteel, +/area/ruin/space/powered) +"sy" = ( +/obj/structure/table/reinforced, +/obj/item/storage/fancy/cigarettes/cigpack_random, +/obj/item/lighter/zippo/engraved{ + pixel_x = -5; + pixel_y = 7 + }, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/ruin/space/powered) +"sB" = ( +/obj/machinery/kitchen_machine/oven, +/obj/effect/landmark/damageturf, +/obj/machinery/light{ + dir = 1 + }, +/turf/simulated/floor/plasteel{ + icon_state = "cafeteria" + }, +/area/ruin/space/powered) +"sZ" = ( +/obj/structure/table, +/obj/item/stamp/granted{ + pixel_x = -3; + pixel_y = 3 + }, +/obj/item/stamp/denied{ + pixel_x = 4; + pixel_y = -2 + }, +/obj/item/toy/figure/crew/cargotech{ + pixel_x = 8; + pixel_y = 9 + }, +/turf/simulated/floor/mineral/plastitanium, +/area/ruin/space/powered) +"tV" = ( +/obj/effect/turf_decal/delivery/white/partial, +/turf/simulated/floor/mineral/plastitanium, +/area/ruin/space/powered) +"uk" = ( +/obj/machinery/light/small{ + dir = 8 + }, +/turf/simulated/floor/wood, +/area/ruin/space/powered) +"vc" = ( +/obj/effect/turf_decal/delivery/partial, +/obj/structure/railing/corner{ + dir = 4 + }, +/turf/simulated/floor/plasteel, +/area/ruin/space/powered) +"vN" = ( +/obj/structure/shuttle/engine/propulsion{ + dir = 8 + }, +/turf/space, +/area/ruin/space/powered) +"wa" = ( +/obj/structure/safe, +/obj/item/id_decal/gold, +/obj/item/stack/spacecash/c200, +/turf/simulated/floor/plasteel{ + dir = 5; + icon_state = "caution" + }, +/area/ruin/space/powered) +"wu" = ( +/obj/effect/turf_decal/delivery/white/partial{ + dir = 4 + }, +/turf/simulated/floor/mineral/plastitanium, +/area/ruin/space/powered) +"wL" = ( +/obj/structure/railing{ + dir = 1 + }, +/obj/item/flag/species/nian, +/turf/simulated/floor/plasteel{ + dir = 6; + icon_state = "caution" + }, +/area/ruin/space/powered) +"xB" = ( +/obj/machinery/light/small{ + dir = 8 + }, +/turf/simulated/floor/pod/dark, +/area/ruin/space/powered) +"xF" = ( +/turf/simulated/floor/plasteel/stairs{ + dir = 4 + }, +/area/ruin/space/powered) +"xJ" = ( +/turf/simulated/floor/plasteel{ + icon_state = "cafeteria" + }, +/area/ruin/space/powered) +"zd" = ( +/obj/structure/chair/office/dark{ + dir = 4 + }, +/turf/simulated/floor/mineral/plastitanium, +/area/ruin/space/powered) +"zu" = ( +/obj/effect/turf_decal/delivery/white/partial{ + dir = 1 + }, +/obj/effect/turf_decal/delivery/white/partial, +/turf/simulated/floor/mineral/plastitanium, +/area/ruin/space/powered) +"zL" = ( +/obj/structure/dresser, +/turf/simulated/floor/wood, +/area/ruin/space/powered) +"zV" = ( +/turf/simulated/floor/plasteel{ + dir = 6; + icon_state = "darkblue" + }, +/area/ruin/space/powered) +"Aa" = ( +/obj/structure/rack, +/obj/item/mecha_parts/mecha_equipment/drill/diamonddrill, +/obj/item/mecha_parts/mecha_equipment/mining_scanner, +/turf/simulated/floor/mineral/plastitanium, +/area/ruin/space/powered) +"As" = ( +/obj/structure/table/wood, +/obj/item/book/manual/random, +/obj/effect/spawner/random/book{ + pixel_x = -7 + }, +/obj/effect/landmark/damageturf, +/obj/machinery/light/small, +/turf/simulated/floor/wood, +/area/ruin/space/powered) +"AU" = ( +/obj/effect/turf_decal/delivery/white/partial, +/obj/effect/turf_decal/delivery/white/partial{ + dir = 1 + }, +/turf/simulated/floor/mineral/plastitanium, +/area/ruin/space/powered) +"Br" = ( +/obj/effect/landmark/damageturf, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/ruin/space/powered) +"BE" = ( +/obj/machinery/suit_storage_unit/standard_unit, +/turf/simulated/floor/pod/dark, +/area/ruin/space/powered) +"BN" = ( +/obj/structure/mineral_door/wood, +/turf/simulated/floor/wood, +/area/ruin/space/powered) +"Cb" = ( +/obj/effect/turf_decal/delivery/partial{ + dir = 8 + }, +/turf/simulated/floor/plasteel{ + dir = 8; + icon_state = "caution" + }, +/area/ruin/space/powered) +"Cj" = ( +/obj/effect/turf_decal/delivery/white/partial{ + dir = 1 + }, +/obj/machinery/light/small{ + dir = 1 + }, +/turf/simulated/floor/mineral/plastitanium, +/area/ruin/space/powered) +"Dn" = ( +/obj/effect/turf_decal/delivery/partial{ + dir = 1 + }, +/obj/structure/railing/cap, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/ruin/space/powered) +"EW" = ( +/obj/machinery/suit_storage_unit/standard_unit, +/turf/simulated/floor/mineral/plastitanium, +/area/ruin/space/powered) +"EZ" = ( +/obj/effect/landmark/damageturf, +/turf/simulated/floor/plasteel{ + dir = 9; + icon_state = "caution" + }, +/area/ruin/space/powered) +"Fl" = ( +/obj/structure/chair{ + dir = 8 + }, +/turf/simulated/floor/plasteel{ + icon_state = "cafeteria" + }, +/area/ruin/space/powered) +"Fm" = ( +/obj/structure/table/reinforced, +/obj/item/paper_bin{ + pixel_x = -6; + pixel_y = 6 + }, +/obj/item/folder, +/obj/item/pen/multi/fountain, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/ruin/space/powered) +"Fw" = ( +/obj/machinery/door_control{ + name = "exterior warehouse blastdoors"; + id = "freighterblastdoor1" + }, +/turf/simulated/wall/mineral/plastitanium, +/area/ruin/space/powered) +"Ga" = ( +/obj/machinery/light/small, +/turf/simulated/floor/mineral/plastitanium, +/area/ruin/space/powered) +"GP" = ( +/obj/structure/table/wood, +/obj/machinery/computer/library{ + dir = 1 + }, +/turf/simulated/floor/plasteel{ + icon_state = "caution" + }, +/area/ruin/space/powered) +"HX" = ( +/obj/item/reagent_containers/drinks/bottle/vodka, +/obj/item/reagent_containers/drinks/drinkingglass/shotglass{ + pixel_x = 10 + }, +/obj/item/reagent_containers/drinks/drinkingglass/shotglass{ + pixel_x = -8; + pixel_y = 7 + }, +/obj/structure/table/glass/reinforced/plastitanium, +/turf/simulated/floor/plasteel{ + icon_state = "cafeteria" + }, +/area/ruin/space/powered) +"Ij" = ( +/obj/effect/landmark/damageturf, +/turf/simulated/floor/mineral/plastitanium, +/area/ruin/space/powered) +"Ix" = ( +/obj/structure/bed, +/obj/item/bedsheet/black, +/obj/item/toy/plushie/nianplushie, +/turf/simulated/floor/wood, +/area/ruin/space/powered) +"Je" = ( +/obj/machinery/door/airlock/multi_tile/glass{ + dir = 1 + }, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/ruin/space/powered) +"Jw" = ( +/obj/structure/rack, +/obj/item/stack/sheet/metal/fifty{ + pixel_x = 3; + pixel_y = 3 + }, +/obj/item/stack/sheet/plasmarglass/fifty, +/obj/item/stack/sheet/mineral/uranium/fifty, +/obj/item/stack/sheet/plastitaniumglass{ + amount = 20; + pixel_x = -2; + pixel_y = 2 + }, +/turf/simulated/floor/mineral/plastitanium, +/area/ruin/space/powered) +"JC" = ( +/obj/structure/shuttle/engine/heater{ + dir = 8 + }, +/obj/structure/window/reinforced/survival_pod{ + dir = 4 + }, +/turf/simulated/floor/plating/airless, +/area/ruin/space/powered) +"JW" = ( +/obj/structure/closet/cabinet, +/obj/item/clothing/under/new_soviet/sovietofficer, +/obj/item/salvage/ruin/soviet, +/obj/item/clothing/suit/sovietcoat, +/turf/simulated/floor/wood, +/area/ruin/space/powered) +"Kh" = ( +/turf/space, +/area/template_noop) +"Ki" = ( +/obj/structure/table, +/obj/machinery/kitchen_machine/microwave{ + pixel_y = 6 + }, +/turf/simulated/floor/plasteel{ + icon_state = "cafeteria" + }, +/area/ruin/space/powered) +"Kv" = ( +/obj/structure/shuttle/engine/heater{ + dir = 8 + }, +/obj/structure/window/reinforced/survival_pod{ + dir = 4 + }, +/obj/structure/window/reinforced/survival_pod{ + dir = 4 + }, +/turf/simulated/floor/plating/airless, +/area/ruin/space/powered) +"KC" = ( +/obj/structure/sign/vacuum, +/turf/simulated/wall/mineral/plastitanium, +/area/ruin/space/powered) +"La" = ( +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/ruin/space/powered) +"LW" = ( +/turf/simulated/wall/mineral/plastitanium, +/area/ruin/space/powered) +"LX" = ( +/turf/simulated/floor/plasteel, +/area/ruin/space/powered) +"Md" = ( +/turf/simulated/floor/plasteel{ + icon_state = "yellowsiding"; + dir = 6 + }, +/area/ruin/space/powered) +"Mm" = ( +/obj/structure/railing{ + dir = 4 + }, +/turf/simulated/floor/plasteel/stairs, +/area/ruin/space/powered) +"Mu" = ( +/obj/machinery/light, +/mob/living/simple_animal/hostile/soviet_nian, +/turf/simulated/floor/plasteel, +/area/ruin/space/powered) +"MX" = ( +/obj/effect/spawner/random_spawners/blood_maybe, +/obj/machinery/light/small{ + dir = 4; + pixel_y = 8 + }, +/turf/simulated/floor/plasteel{ + dir = 5; + icon_state = "darkblue" + }, +/area/ruin/space/powered) +"MY" = ( +/obj/effect/turf_decal/delivery/white/partial{ + dir = 1 + }, +/turf/simulated/floor/mineral/plastitanium, +/area/ruin/space/powered) +"Nl" = ( +/turf/simulated/floor/mineral/plastitanium, +/area/ruin/space/powered) +"NP" = ( +/obj/item/mecha_parts/mecha_equipment/weapon/energy/mining_grenade, +/turf/simulated/floor/mineral/plastitanium, +/area/ruin/space/powered) +"Ob" = ( +/obj/effect/turf_decal/delivery/partial{ + dir = 1 + }, +/obj/structure/railing/cap{ + pixel_x = -21 + }, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/ruin/space/powered) +"Oc" = ( +/obj/machinery/light/small{ + dir = 1 + }, +/turf/simulated/floor/mineral/plastitanium, +/area/ruin/space/powered) +"Ok" = ( +/obj/structure/table/reinforced, +/obj/item/storage/toolbox/electrical{ + pixel_x = 1; + pixel_y = 6 + }, +/obj/item/storage/toolbox/mechanical{ + pixel_x = -2; + pixel_y = -1 + }, +/turf/simulated/floor/mineral/plastitanium, +/area/ruin/space/powered) +"Pb" = ( +/obj/structure/rack, +/obj/item/clothing/head/kitty, +/obj/item/mecha_modkit/voice/honk{ + pixel_y = 10; + pixel_x = 3 + }, +/turf/simulated/floor/mineral/plastitanium, +/area/ruin/space/powered) +"Pf" = ( +/obj/machinery/computer/nonfunctional{ + dir = 8 + }, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/ruin/space/powered) +"Pn" = ( +/obj/machinery/suit_storage_unit/standard_unit, +/obj/machinery/light/small, +/turf/simulated/floor/mineral/plastitanium, +/area/ruin/space/powered) +"PE" = ( +/obj/structure/bookcase/random, +/turf/simulated/floor/plasteel{ + dir = 10; + icon_state = "caution" + }, +/area/ruin/space/powered) +"Qe" = ( +/obj/effect/turf_decal/delivery/white/partial{ + dir = 8 + }, +/obj/effect/turf_decal/delivery/white/partial{ + dir = 4 + }, +/turf/simulated/floor/mineral/plastitanium, +/area/ruin/space/powered) +"QM" = ( +/obj/structure/railing, +/obj/item/flag/ussp, +/turf/simulated/floor/plasteel{ + dir = 5; + icon_state = "caution" + }, +/area/ruin/space/powered) +"Sp" = ( +/obj/structure/largecrate, +/turf/simulated/floor/mineral/plastitanium, +/area/ruin/space/powered) +"SL" = ( +/obj/structure/railing, +/mob/living/simple_animal/hostile/soviet_nian, +/turf/simulated/floor/plasteel, +/area/ruin/space/powered) +"Tf" = ( +/obj/machinery/economy/vending/snack/free, +/turf/simulated/floor/plasteel, +/area/ruin/space/powered) +"TW" = ( +/obj/effect/turf_decal/delivery/white/partial{ + dir = 8 + }, +/turf/simulated/floor/mineral/plastitanium, +/area/ruin/space/powered) +"UZ" = ( +/mob/living/simple_animal/hostile/soviet_nian, +/turf/simulated/floor/mineral/plastitanium, +/area/ruin/space/powered) +"WF" = ( +/obj/machinery/door/airlock/external, +/obj/structure/fans/tiny, +/turf/simulated/floor/pod/dark, +/area/ruin/space/powered) +"WR" = ( +/obj/structure/chair/comfy/shuttle{ + dir = 4 + }, +/obj/effect/spawner/random_spawners/blood_maybe, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/ruin/space/powered) +"XB" = ( +/obj/structure/table, +/obj/item/paper/fluff/ruins/nian_freighter/manifest, +/turf/simulated/floor/mineral/plastitanium, +/area/ruin/space/powered) +"Zc" = ( +/obj/structure/railing{ + dir = 8 + }, +/turf/simulated/floor/plasteel/stairs, +/area/ruin/space/powered) +"Zt" = ( +/obj/machinery/sleeper{ + dir = 4 + }, +/turf/simulated/floor/plasteel{ + dir = 9; + icon_state = "darkblue" + }, +/area/ruin/space/powered) + +(1,1,1) = {" +Kh +Kh +Kh +Kh +Kh +Kh +Kh +Kh +vN +vN +vN +Kh +Kh +Kh +Kh +Kh +Kh +Kh +"} +(2,1,1) = {" +Kh +Kh +Kh +Kh +Kh +Kh +Kh +Kh +JC +JC +JC +Kh +Kh +Kh +Kh +Kh +Kh +Kh +"} +(3,1,1) = {" +Kh +Kh +Kh +Kh +Kh +Kh +Kh +LW +LW +LW +LW +LW +Kh +Kh +Kh +Kh +Kh +Kh +"} +(4,1,1) = {" +Kh +Kh +Kh +Kh +Kh +Kh +Kh +LW +lx +xB +lx +WF +Kh +Kh +Kh +Kh +Kh +Kh +"} +(5,1,1) = {" +Kh +Kh +Kh +Kh +Kh +Kh +LW +LW +BE +lx +mA +KC +LW +Kh +Kh +Kh +Kh +Kh +"} +(6,1,1) = {" +Kh +Kh +Kh +Kh +Kh +LW +LW +LW +KC +WF +LW +LW +LW +LW +Kh +Kh +Kh +Kh +"} +(7,1,1) = {" +Kh +Kh +Kh +Kh +Kh +LW +Oc +Ij +TW +TW +TW +Nl +Ga +LW +Kh +Kh +Kh +Kh +"} +(8,1,1) = {" +Kh +Kh +Kh +Kh +Kh +jM +Nl +MY +Pb +Nl +Jw +tV +Ij +LW +Kh +Kh +Kh +Kh +"} +(9,1,1) = {" +Kh +Kh +Kh +Kh +Kh +iq +Nl +MY +Nl +UZ +rV +tV +Ij +LW +Kh +Kh +Kh +Kh +"} +(10,1,1) = {" +Kh +Kh +Kh +Kh +Kh +iq +Ij +TW +mk +wu +Qe +TW +Nl +fY +Kh +Kh +Kh +Kh +"} +(11,1,1) = {" +Kh +Kh +Kh +Kh +Kh +Fw +Cj +Aa +NP +zu +dN +cn +tV +fY +Kh +Kh +Kh +Kh +"} +(12,1,1) = {" +Kh +Kh +Kh +Kh +Kh +LW +MY +Nl +Sp +zu +Nl +Nl +tV +fY +Kh +Kh +Kh +Kh +"} +(13,1,1) = {" +Kh +Kh +Kh +Kh +Kh +LW +MY +nq +Nl +AU +mG +Nl +eI +LW +Kh +Kh +Kh +Kh +"} +(14,1,1) = {" +Kh +Kh +Kh +vN +vN +LW +Nl +wu +wu +Nl +wu +wu +Nl +LW +vN +vN +Kh +Kh +"} +(15,1,1) = {" +Kh +Kh +Kh +JC +JC +LW +sZ +zd +Ij +Nl +Nl +Nl +Nl +LW +Kv +JC +Kh +Kh +"} +(16,1,1) = {" +Kh +Kh +LW +LW +LW +LW +lw +XB +Nl +Nl +EW +Ok +Pn +LW +LW +LW +LW +Kh +"} +(17,1,1) = {" +Kh +Kh +LW +Zt +ni +LW +LW +LW +La +Je +LW +LW +LW +dC +uk +zL +LW +Kh +"} +(18,1,1) = {" +Kh +Kh +LW +MX +zV +iP +xJ +xJ +Br +La +oy +jY +LX +BN +jQ +Ix +fY +Kh +"} +(19,1,1) = {" +Kh +Kh +LW +LW +LW +dC +xJ +xJ +La +La +oy +jY +Mu +LW +LW +LW +LW +Kh +"} +(20,1,1) = {" +Kh +Kh +Kh +Kh +fY +Ki +xJ +ls +La +La +Md +jY +hM +BN +jQ +As +LW +Kh +"} +(21,1,1) = {" +Kh +Kh +Kh +Kh +fY +sB +xJ +HX +La +Ob +Zc +fp +LX +LW +JW +fL +fY +Kh +"} +(22,1,1) = {" +Kh +Kh +Kh +Kh +fY +rK +xJ +Fl +La +Dn +Mm +vc +Tf +LW +LW +LW +LW +Kh +"} +(23,1,1) = {" +Kh +Kh +Kh +Kh +LW +LW +LW +LW +La +Je +LW +LW +LW +LW +LW +Kh +Kh +Kh +"} +(24,1,1) = {" +Kh +Kh +Kh +Kh +LW +EZ +ei +gd +Cb +Cb +gd +ei +PE +LW +Kh +Kh +Kh +Kh +"} +(25,1,1) = {" +Kh +Kh +Kh +Kh +LW +kK +st +Br +xF +xF +La +lT +GP +LW +Kh +Kh +Kh +Kh +"} +(26,1,1) = {" +Kh +Kh +Kh +Kh +LW +wa +SL +La +ov +WR +La +jY +nD +LW +Kh +Kh +Kh +Kh +"} +(27,1,1) = {" +Kh +Kh +Kh +Kh +LW +LW +QM +sy +Pf +Pf +Fm +wL +LW +LW +Kh +Kh +Kh +Kh +"} +(28,1,1) = {" +Kh +Kh +Kh +Kh +Kh +LW +LW +fY +fY +fY +fY +LW +LW +Kh +Kh +Kh +Kh +Kh +"} +(29,1,1) = {" +Kh +Kh +Kh +Kh +Kh +Kh +Kh +Kh +Kh +Kh +Kh +Kh +Kh +Kh +Kh +Kh +Kh +Kh +"} +(30,1,1) = {" +Kh +Kh +Kh +Kh +Kh +Kh +Kh +Kh +Kh +Kh +Kh +Kh +Kh +Kh +Kh +Kh +Kh +Kh +"} diff --git a/code/__DEFINES/dcs/atom_signals.dm b/code/__DEFINES/dcs/atom_signals.dm index 574a00cb2f60..f5f9a204bf69 100644 --- a/code/__DEFINES/dcs/atom_signals.dm +++ b/code/__DEFINES/dcs/atom_signals.dm @@ -6,6 +6,8 @@ // /atom +// from SSatoms InitAtom - Only if the atom was not deleted or failed initialization +#define COMSIG_ATOM_AFTER_SUCCESSFUL_INITIALIZE "atom_init_success" ///from base of atom/attackby(): (/obj/item, /mob/living, params) #define COMSIG_PARENT_ATTACKBY "atom_attackby" ///Return this in response if you don't want afterattack to be called @@ -69,6 +71,8 @@ #define COMSIG_ATOM_SET_LIGHT "atom_set_light" ///from base of atom/setDir(): (old_dir, new_dir) #define COMSIG_ATOM_DIR_CHANGE "atom_dir_change" +///from [/datum/controller/subsystem/processing/dcs/proc/rotate_decals]: (list/datum/element/decal/rotating) +#define COMSIG_ATOM_DECALS_ROTATING "atom_decals_rotating" ///from base of atom/has_gravity(): (turf/location, list/forced_gravities) #define COMSIG_ATOM_HAS_GRAVITY "atom_has_gravity" ///from proc/get_rad_contents(): () diff --git a/code/__DEFINES/dcs/basetype_signals.dm b/code/__DEFINES/dcs/basetype_signals.dm index 6a5230caa465..6affef128aa4 100644 --- a/code/__DEFINES/dcs/basetype_signals.dm +++ b/code/__DEFINES/dcs/basetype_signals.dm @@ -27,3 +27,5 @@ ///from base of turf/ChangeTurf(): (path, list/new_baseturfs, flags, list/transferring_comps) #define COMSIG_TURF_CHANGE "turf_change" +///from base of turf/proc/onShuttleMove(): (turf/new_turf) +#define COMSIG_TURF_ON_SHUTTLE_MOVE "turf_on_shuttle_move" diff --git a/code/__DEFINES/dcs/datum_signals.dm b/code/__DEFINES/dcs/datum_signals.dm index 6850155f3451..1851311a8abf 100644 --- a/code/__DEFINES/dcs/datum_signals.dm +++ b/code/__DEFINES/dcs/datum_signals.dm @@ -53,10 +53,12 @@ #define COMSIG_SONG_END "song_end" -// /datum/component/decal +// /datum/element/decal -///called on an object to clean it of cleanables. Usualy with soap: (num/strength) +///called on an object to clean it of cleanables. #define COMSIG_COMPONENT_CLEAN_ACT "clean_act" + ///Returned by cleanable components when they are cleaned. + #define COMPONENT_CLEANED (1<<0) // /datum/component/two_handed diff --git a/code/__DEFINES/flags.dm b/code/__DEFINES/flags.dm index 5ba007f94e25..08c5087b4b09 100644 --- a/code/__DEFINES/flags.dm +++ b/code/__DEFINES/flags.dm @@ -45,6 +45,9 @@ #define INFORM_ADMINS_ON_RELOCATE_2 (1<<5) #define BANG_PROTECT_2 (1<<6) #define BLOCKS_LIGHT_2 (1<<7) // Light sources placed in anything with that flag will not emit light through them. +/// Whether a decal element's parent has already been initialized and thus has already had its decals attached. +/// see https://github.com/tgstation/tgstation/pull/71658 for a detailed explanation of the flag. +#define DECAL_INIT_UPDATE_EXPERIENCED_2 (1<<8) // A mob with OMNITONGUE has no restriction in the ability to speak // languages that they know. So even if they wouldn't normally be able to @@ -145,6 +148,7 @@ #define BLESSED_TILE (1<<0) #define NO_LAVA_GEN (1<<1) //Blocks lava rivers being generated on the turf #define NO_RUINS (1<<2) +#define LAVA_BRIDGE (1<<3) //! This turf has already been reserved for a lavaland bridge placement. //ORGAN TYPE FLAGS #define AFFECT_ROBOTIC_ORGAN 1 diff --git a/code/__DEFINES/misc_defines.dm b/code/__DEFINES/misc_defines.dm index db6e74ffa0d0..22f3df1bc72a 100644 --- a/code/__DEFINES/misc_defines.dm +++ b/code/__DEFINES/misc_defines.dm @@ -466,14 +466,6 @@ #define PLACE_SPACE_RUIN "space" #define PLACE_LAVA_RUIN "lavaland" -//Cleaning tool strength -// 1 is also a valid cleaning strength but completely unused so left undefined -#define CLEAN_WEAK 2 -#define CLEAN_MEDIUM 3 // Acceptable tools -#define CLEAN_STRONG 4 // Industrial strength -#define CLEAN_IMPRESSIVE 5 // Cleaning strong enough your granny would be proud -#define CLEAN_GOD 6 // Cleans things spotless down to the atomic structure - //Ghost orbit types: #define GHOST_ORBIT_CIRCLE "circle" #define GHOST_ORBIT_TRIANGLE "triangle" diff --git a/code/_globalvars/lists/mob_lists.dm b/code/_globalvars/lists/mob_lists.dm index c1533ef0fad1..9b38978bdbe4 100644 --- a/code/_globalvars/lists/mob_lists.dm +++ b/code/_globalvars/lists/mob_lists.dm @@ -28,6 +28,7 @@ GLOBAL_LIST_INIT(simple_animals, list(list(), list(), list(), list())) //One f GLOBAL_LIST_EMPTY(bots_list) //List of all bots(beepsky, medibots,etc) GLOBAL_LIST_EMPTY(roundstart_observer_keys) //List of ckeys who ghosted before the game began. GLOBAL_LIST_EMPTY(antag_hud_users) // ckeys of users who have enabled ahud at some point during the game +GLOBAL_LIST_EMPTY(crew_list) // list of all crew on manifest, contains name paired with their assignment GLOBAL_LIST_EMPTY(surgeries_list) GLOBAL_LIST_EMPTY(hear_radio_list) //Mobs that hear the radio even if there's no client diff --git a/code/_globalvars/lists/reagents_lists.dm b/code/_globalvars/lists/reagents_lists.dm index 17c8e76bc0d2..a9a04f4a0f6a 100644 --- a/code/_globalvars/lists/reagents_lists.dm +++ b/code/_globalvars/lists/reagents_lists.dm @@ -41,8 +41,8 @@ GLOBAL_LIST_INIT(blocked_chems, list("polonium", "initropidril", "concentrated_i "syndicate_nanites", "ripping_tendrils", "boiling_oil", "envenomed_filaments", "lexorin_jelly", "kinetic", "cryogenic_liquid", "liquid_dark_matter", "b_sorium", - "reagent", "dragonsbreath", "nanocalcium", - "xenomicrobes", "nanomachines", "gibbis", "prions", + "reagent", "drink", "medicine", "plantnutrient", "consumable", "dragonsbreath", + "nanocalcium", "xenomicrobes", "nanomachines", "gibbis", "prions", "spidereggs", "heartworms", "bacon_grease", "fungalspores", "jagged_crystals", "salmonella", "lavaland_extract", "stable_mutagen", "beer2", diff --git a/code/_globalvars/mapping_vars.dm b/code/_globalvars/mapping_vars.dm index 1bca34c67944..82f2d4d3348c 100644 --- a/code/_globalvars/mapping_vars.dm +++ b/code/_globalvars/mapping_vars.dm @@ -49,5 +49,3 @@ GLOBAL_LIST_EMPTY(space_ruins_templates) GLOBAL_LIST_EMPTY(lava_ruins_templates) GLOBAL_LIST_EMPTY(shelter_templates) GLOBAL_LIST_EMPTY(shuttle_templates) -GLOBAL_LIST_EMPTY(bridge_horizontal_templates) -GLOBAL_LIST_EMPTY(bridge_vertical_templates) diff --git a/code/_onclick/ai_onclick.dm b/code/_onclick/ai_onclick.dm index b08604a13006..3801ae81dd78 100644 --- a/code/_onclick/ai_onclick.dm +++ b/code/_onclick/ai_onclick.dm @@ -109,7 +109,7 @@ if(pixel_turf) turf_visible = GLOB.cameranet.checkTurfVis(pixel_turf) if(!turf_visible) - if(istype(loc, /obj/item/aicard) && (pixel_turf in view(client.view, loc))) + if((istype(loc, /obj/item/aicard) || ismecha(loc)) && (pixel_turf in range(client.view, loc))) turf_visible = TRUE else if(pixel_turf.obscured) diff --git a/code/controllers/subsystem/non_firing/SSatoms.dm b/code/controllers/subsystem/non_firing/SSatoms.dm index fb5419680375..d40c236192ba 100644 --- a/code/controllers/subsystem/non_firing/SSatoms.dm +++ b/code/controllers/subsystem/non_firing/SSatoms.dm @@ -100,6 +100,8 @@ SUBSYSTEM_DEF(atoms) qdeleted = TRUE else if(!A.initialized) BadInitializeCalls[the_type] |= BAD_INIT_DIDNT_INIT + else + SEND_SIGNAL(A, COMSIG_ATOM_AFTER_SUCCESSFUL_INITIALIZE) return qdeleted || QDELING(A) diff --git a/code/controllers/subsystem/non_firing/SSlate_mapping.dm b/code/controllers/subsystem/non_firing/SSlate_mapping.dm index b3e66541577c..3c8c5f435f66 100644 --- a/code/controllers/subsystem/non_firing/SSlate_mapping.dm +++ b/code/controllers/subsystem/non_firing/SSlate_mapping.dm @@ -29,15 +29,4 @@ SUBSYSTEM_DEF(late_mapping) var/duration = stop_watch(watch) log_startup_progress("Generated [mgcount] mazes in [duration]s") - if(length(bridge_spawners)) - var/watch = start_watch() - log_startup_progress("Spawning bridges...") - - for(var/i in bridge_spawners) - var/obj/effect/spawner/bridge/BS = i - BS.generate_bridge() - - var/list/bscount = length(bridge_spawners) // Keeping track of this here because we wipe it next line down - QDEL_LIST_CONTENTS(bridge_spawners) - var/duration = stop_watch(watch) - log_startup_progress("Spawned [bscount] bridges in [duration]s") + GLOB.spawn_pool_manager.process_pools() diff --git a/code/datums/components/decal.dm b/code/datums/components/decal.dm deleted file mode 100644 index b0cc7617e3c2..000000000000 --- a/code/datums/components/decal.dm +++ /dev/null @@ -1,75 +0,0 @@ -/datum/component/decal - dupe_mode = COMPONENT_DUPE_ALLOWED - can_transfer = TRUE - var/cleanable - var/description - var/mutable_appearance/pic - - var/first_dir // This only stores the dir arg from init - -/datum/component/decal/Initialize(_icon, _icon_state, _dir, _cleanable = CLEAN_GOD, _color, _layer = TURF_LAYER, _description, _alpha = 255) - if(!isatom(parent) || !generate_appearance(_icon, _icon_state, _dir, _layer, _color, _alpha)) - return COMPONENT_INCOMPATIBLE - first_dir = _dir - description = _description - cleanable = _cleanable - - apply() - -/datum/component/decal/RegisterWithParent() - if(first_dir) - RegisterSignal(parent, COMSIG_ATOM_DIR_CHANGE, PROC_REF(rotate_react)) - if(cleanable) - RegisterSignal(parent, COMSIG_COMPONENT_CLEAN_ACT, PROC_REF(clean_react)) - if(description) - RegisterSignal(parent, COMSIG_PARENT_EXAMINE, PROC_REF(examine)) - -/datum/component/decal/UnregisterFromParent() - UnregisterSignal(parent, list(COMSIG_ATOM_DIR_CHANGE, COMSIG_COMPONENT_CLEAN_ACT, COMSIG_PARENT_EXAMINE)) - -/datum/component/decal/Destroy() - remove() - return ..() - -/datum/component/decal/PreTransfer() - remove() - -/datum/component/decal/PostTransfer() - remove() - apply() - -/datum/component/decal/proc/generate_appearance(_icon, _icon_state, _dir, _layer, _color, _alpha) - if(!_icon || !_icon_state) - return FALSE - // It has to be made from an image or dir breaks because of a byond bug - var/temp_image = image(_icon, null, _icon_state, _layer, _dir) - pic = new(temp_image) - pic.color = _color - pic.alpha = _alpha - return TRUE - -/datum/component/decal/proc/apply(atom/thing) - var/atom/master = thing || parent - master.add_overlay(pic, TRUE) - if(isitem(master)) - addtimer(CALLBACK(master, TYPE_PROC_REF(/obj/item, update_slot_icon)), 0, TIMER_UNIQUE) - -/datum/component/decal/proc/remove(atom/thing) - var/atom/master = thing || parent - master.cut_overlay(pic, TRUE) - if(isitem(master)) - addtimer(CALLBACK(master, TYPE_PROC_REF(/obj/item, update_slot_icon)), 0, TIMER_UNIQUE) - -/datum/component/decal/proc/rotate_react(datum/source, old_dir, new_dir) - if(old_dir == new_dir) - return - remove() - pic.dir = turn(pic.dir, dir2angle(old_dir) - dir2angle(new_dir)) - apply() - -/datum/component/decal/proc/clean_react(datum/source, strength) - if(strength >= cleanable) - qdel(src) - -/datum/component/decal/proc/examine(datum/source, mob/user, list/examine_list) - examine_list += description diff --git a/code/datums/components/label.dm b/code/datums/components/label.dm index eba55631c5a5..c76e2ca97210 100644 --- a/code/datums/components/label.dm +++ b/code/datums/components/label.dm @@ -22,11 +22,12 @@ apply_label() /datum/component/label/RegisterWithParent() - RegisterSignal(parent, COMSIG_PARENT_ATTACKBY, PROC_REF(OnAttackby)) - RegisterSignal(parent, COMSIG_PARENT_EXAMINE, PROC_REF(Examine)) + RegisterSignal(parent, COMSIG_PARENT_ATTACKBY, PROC_REF(on_attack_by)) + RegisterSignal(parent, COMSIG_PARENT_EXAMINE, PROC_REF(on_examine)) + RegisterSignal(parent, COMSIG_ATOM_UPDATE_NAME, PROC_REF(on_update_name)) /datum/component/label/UnregisterFromParent() - UnregisterSignal(parent, list(COMSIG_PARENT_ATTACKBY, COMSIG_PARENT_EXAMINE)) + UnregisterSignal(parent, list(COMSIG_PARENT_ATTACKBY, COMSIG_PARENT_EXAMINE, COMSIG_ATOM_UPDATE_NAME)) /** This proc will fire after the parent is hit by a hand labeler which is trying to apply another label. @@ -51,7 +52,8 @@ * attacker: The object that is hitting the parent. * user: The mob who is wielding the attacking object. */ -/datum/component/label/proc/OnAttackby(datum/source, obj/item/attacker, mob/user) +/datum/component/label/proc/on_attack_by(datum/source, obj/item/attacker, mob/user) + SIGNAL_HANDLER // COMSIG_PARENT_ATTACKBY // If the attacking object is not a hand labeler or it's not off (has a label ready to apply), return. // The hand labeler should be off in order to remove a label. var/obj/item/hand_labeler/labeler = attacker @@ -72,7 +74,14 @@ * user: The mob exmaining the parent. * examine_list: The current list of text getting passed from the parent's normal examine() proc. */ -/datum/component/label/proc/Examine(datum/source, mob/user, list/examine_list) + +///Reapplies label when update_name is called on the parent object. Attempts to remove it first just in case. +/datum/component/label/proc/on_update_name() + SIGNAL_HANDLER // COMSIG_ATOM_UPDATE_NAME + remove_label() + apply_label() + +/datum/component/label/proc/on_examine(datum/source, mob/user, list/examine_list) examine_list += "It has a label with some words written on it. Use a hand labeler to remove it." /// Applies a label to the name of the parent in the format of: "parent_name (label)" @@ -96,7 +105,7 @@ return ..() /// Adds detailed information to the examine text. -/datum/component/label/goal/Examine(datum/source, mob/user, list/examine_list) +/datum/component/label/goal/on_examine(datum/source, mob/user, list/examine_list) examine_list += "It has a label on it, marking it as part of a secondary goal for [label_name]. Use a hand labeler to remove it." /// Applies a static label to the parent's name. diff --git a/code/datums/datacore.dm b/code/datums/datacore.dm index 56a2029797f1..4f0059b543c7 100644 --- a/code/datums/datacore.dm +++ b/code/datums/datacore.dm @@ -150,6 +150,7 @@ GLOBAL_VAR_INIT(record_id_num, 1001) assignment = H.job else assignment = "Unassigned" + GLOB.crew_list[H.real_name] = assignment var/id = num2hex(GLOB.record_id_num++, 6) diff --git a/code/datums/elements/decal_element.dm b/code/datums/elements/decal_element.dm new file mode 100644 index 000000000000..c15e9f43a480 --- /dev/null +++ b/code/datums/elements/decal_element.dm @@ -0,0 +1,177 @@ +// NOTE: +// This is an incredibly piecemeal port of /tg/'s decal element. +// It does not include several pieces of functionality that exist in /tg/. +// +// Namely: +// - It does not support smoothing decals +// - It does not send a signal when a decal is detached (used for trapdoors on /tg/) +// - It does not support custom plane configuration as this behavior seems primarily concerned with multi-z + +/datum/element/decal + element_flags = ELEMENT_BESPOKE|ELEMENT_DETACH_ON_HOST_DESTROY + argument_hash_start_idx = 2 + /// Whether this decal can be cleaned. + var/cleanable + /// A description this decal appends to the target's examine message. + var/description + /// If true this was initialized with no set direction - will follow the parent dir. + var/directional + /// The base icon state that this decal was initialized with. + var/base_icon_state + /// The overlay applied by this decal to the target. + var/mutable_appearance/pic + +/datum/element/decal/Attach(atom/target, _icon, _icon_state, _dir, _layer=TURF_LAYER, _alpha=255, _color, _cleanable=FALSE, _description, mutable_appearance/_pic) + . = ..() + if(!isatom(target)) + return ELEMENT_INCOMPATIBLE + if(_pic) + pic = _pic + else if(!generate_appearance(_icon, _icon_state, _dir, _layer, _color, _alpha, target)) + return ELEMENT_INCOMPATIBLE + description = _description + cleanable = _cleanable + directional = _dir + base_icon_state = _icon_state + + RegisterSignal(target, COMSIG_ATOM_UPDATE_OVERLAYS, PROC_REF(apply_overlay), TRUE) + if(target.initialized) + target.update_appearance(UPDATE_OVERLAYS) //could use some queuing here now maybe. + else + RegisterSignal(target, COMSIG_ATOM_AFTER_SUCCESSFUL_INITIALIZE, PROC_REF(late_update_icon), TRUE) + if(isitem(target)) + INVOKE_ASYNC(target, TYPE_PROC_REF(/obj/item/, update_slot_icon), TRUE) + if(_dir) + RegisterSignal(target, COMSIG_ATOM_DECALS_ROTATING, PROC_REF(shuttle_rotate), TRUE) + SSdcs.RegisterSignal(target, COMSIG_ATOM_DIR_CHANGE, TYPE_PROC_REF(/datum/controller/subsystem/processing/dcs, rotate_decals), override=TRUE) + if(_cleanable) + RegisterSignal(target, COMSIG_COMPONENT_CLEAN_ACT, PROC_REF(clean_react), TRUE) + if(_description) + RegisterSignal(target, COMSIG_PARENT_EXAMINE, PROC_REF(examine), TRUE) + + RegisterSignal(target, COMSIG_TURF_ON_SHUTTLE_MOVE, PROC_REF(shuttle_move_react), TRUE) + +/// Remove old decals and apply new decals after rotation as necessary +/datum/controller/subsystem/processing/dcs/proc/rotate_decals(datum/source, old_dir, new_dir) + SIGNAL_HANDLER // COMSIG_ATOM_DIR_CHANGE + + if(old_dir == new_dir) + return + + var/list/datum/element/decal/old_decals = list() //instances + SEND_SIGNAL(source, COMSIG_ATOM_DECALS_ROTATING, old_decals) + + if(!length(old_decals)) + UnregisterSignal(source, COMSIG_ATOM_DIR_CHANGE) + return + + var/list/resulting_decals_params = list() // param lists + for(var/datum/element/decal/rotating as anything in old_decals) + resulting_decals_params += list(rotating.get_rotated_parameters(old_dir,new_dir)) + + //Instead we could generate ids and only remove duplicates to save on churn on four-corners symmetry ? + for(var/datum/element/decal/decal in old_decals) + decal.Detach(source) + + for(var/result in resulting_decals_params) + source.AddElement(/datum/element/decal, result["icon"], result["icon_state"], result["dir"], result["layer"], result["alpha"], result["color"], result["cleanable"], result["desc"]) + +/datum/element/decal/proc/get_rotated_parameters(old_dir,new_dir) + var/rotation = 0 + if(directional) //Even when the dirs are the same rotation is coming out as not 0 for some reason + rotation = SIMPLIFY_DEGREES(dir2angle(new_dir)-dir2angle(old_dir)) + new_dir = turn(pic.dir,-rotation) + return list( + "icon" = pic.icon, + "icon_state" = base_icon_state, + "dir" = new_dir, + "plane" = pic.plane, + "layer" = pic.layer, + "alpha" = pic.alpha, + "color" = pic.color, + "cleanable" = cleanable, + "desc" = description + ) + +/datum/element/decal/proc/late_update_icon(atom/source) + SIGNAL_HANDLER // COMSIG_ATOM_AFTER_SUCCESSFUL_INITIALIZE + + if(istype(source) && !(source.flags_2 & DECAL_INIT_UPDATE_EXPERIENCED_2)) + source.flags_2 |= DECAL_INIT_UPDATE_EXPERIENCED_2 + source.update_appearance(UPDATE_OVERLAYS) + UnregisterSignal(source, COMSIG_ATOM_AFTER_SUCCESSFUL_INITIALIZE) + +/** + * If the decal was not given an appearance, it will generate one based on the other given arguments. + * element won't be compatible if it cannot do either + * all args are fed into creating an image, they are byond vars for images you'll recognize in the byond docs + * (except source, source is the object whose appearance we're copying.) + */ +/datum/element/decal/proc/generate_appearance(_icon, _icon_state, _dir, _layer, _color, _alpha, source) + if(!_icon || !_icon_state) + return FALSE + var/temp_image = image(_icon, null, _icon_state, _layer, _dir) + pic = new(temp_image) + pic.color = _color + pic.alpha = _alpha + return TRUE + +/datum/element/decal/Detach(atom/source) + UnregisterSignal(source, list( + COMSIG_ATOM_DIR_CHANGE, + COMSIG_COMPONENT_CLEAN_ACT, + COMSIG_PARENT_EXAMINE, + COMSIG_ATOM_UPDATE_OVERLAYS, + COMSIG_TURF_ON_SHUTTLE_MOVE, + COMSIG_ATOM_DECALS_ROTATING + )) + SSdcs.UnregisterSignal(source, COMSIG_ATOM_DIR_CHANGE) + source.update_appearance(UPDATE_OVERLAYS) + if(isitem(source)) + INVOKE_ASYNC(source, TYPE_PROC_REF(/obj/item/, update_slot_icon)) + return ..() + +/datum/element/decal/proc/apply_overlay(atom/source) + SIGNAL_HANDLER // COMSIG_ATOM_UPDATE_OVERLAYS + + source.add_overlay(pic) + // TODO: Fix this disgusting hack + // + // `COMSIG_ATOM_UPDATE_OVERLAYS` is sent at the end of + // /atom/proc/update_icon's stanza for updating overlays, instead + // somewhere useful, like, during it. /tg/ handles this by sending + // a list of overlays with the signal, allowing receivers to add to + // the list, instead of returning their own. + // + // This is much saner and more flexible, but would require refactoring + // many many uses of update_overlay() across the code base, which is left + // as an exercise for the next poor sap to touch this code (probably me). + if(source.managed_overlays && !islist(source.managed_overlays)) + source.managed_overlays = list(source.managed_overlays, pic) + else + LAZYDISTINCTADD(source.managed_overlays, pic) + +/datum/element/decal/proc/clean_react(datum/source, clean_types) + SIGNAL_HANDLER // COMSIG_COMPONENT_CLEAN_ACT + + if(clean_types & cleanable) + Detach(source) + return COMPONENT_CLEANED + return NONE + +/datum/element/decal/proc/examine(datum/source, mob/user, list/examine_list) + SIGNAL_HANDLER // COMSIG_PARENT_EXAMINE + + examine_list += description + +/datum/element/decal/proc/shuttle_move_react(datum/source, turf/new_turf) + SIGNAL_HANDLER // COMSIG_TURF_ON_SHUTTLE_MOVE + + if(new_turf == source) + return + Detach(source) + new_turf.AddElement(type, pic.icon, base_icon_state, directional, pic.layer, pic.alpha, pic.color, cleanable, description) + +/datum/element/decal/proc/shuttle_rotate(datum/source, list/datum/element/decal/rotating) + SIGNAL_HANDLER // COMSIG_ATOM_DECALS_ROTATING + rotating += src diff --git a/code/datums/helper_datums/map_template.dm b/code/datums/helper_datums/map_template.dm index 59fb398fe6c3..ff159e7d63ca 100644 --- a/code/datums/helper_datums/map_template.dm +++ b/code/datums/helper_datums/map_template.dm @@ -121,7 +121,6 @@ preloadRuinTemplates() preloadShelterTemplates() preloadShuttleTemplates() - preloadBridgeTemplates() preloadEventTemplates() /proc/preloadRuinTemplates() @@ -169,22 +168,6 @@ GLOB.shuttle_templates[S.shuttle_id] = S GLOB.map_templates[S.shuttle_id] = S -/proc/preloadBridgeTemplates() - for(var/item in subtypesof(/datum/map_template/ruin/bridge/horizontal)) - var/datum/map_template/ruin/bridge/horizontal/horizontal_type = item - if(!(initial(horizontal_type.suffix))) - continue - var/datum/map_template/ruin/bridge/horizontal/S = new horizontal_type() - GLOB.bridge_horizontal_templates[S.suffix] = S - GLOB.map_templates[S.suffix] = S - for(var/item in subtypesof(/datum/map_template/ruin/bridge/vertical)) - var/datum/map_template/ruin/bridge/horizontal/vertical_type = item - if(!(initial(vertical_type.suffix))) - continue - var/datum/map_template/ruin/bridge/vertical/V = new vertical_type() - GLOB.bridge_vertical_templates[V.suffix] = V - GLOB.map_templates[V.suffix] = V - /proc/preloadEventTemplates() for(var/item in subtypesof(/datum/map_template/event)) var/datum/map_template/event/event_type = item diff --git a/code/datums/mind.dm b/code/datums/mind.dm index a7e43be06ff8..f40b8fdb3e16 100644 --- a/code/datums/mind.dm +++ b/code/datums/mind.dm @@ -240,7 +240,7 @@ return FALSE /** - * Gets every objective this mind owns, including all of those from any antag datums they have, and returns them as a list. + * Gets every objective this mind owns, including all of those from any antag datums and teams they have, and returns them as a list. */ /datum/mind/proc/get_all_objectives(include_team = TRUE) var/list/all_objectives = list() @@ -248,11 +248,7 @@ all_objectives += objective_holder.get_objectives() // Get their personal objectives for(var/datum/antagonist/A as anything in antag_datums) - all_objectives += A.objective_holder.get_objectives() // Add all antag datum objectives. - if(include_team) - var/datum/team/team = A.get_team() - if(team) // have to make asure a team exists here, team?. does not work below because it will add the null to the list - all_objectives += team.objective_holder.get_objectives() // Get all of their teams' objectives + all_objectives += A.get_antag_objectives(include_team) // Add all antag datum objectives, and possibly antag team objectives // For custom non-antag role teams // SS220 EDIT START - Commented for #840 @@ -283,9 +279,9 @@ if(!remove_from_everything) return for(var/datum/antagonist/A as anything in antag_datums) - A.objective_holder.remove_objective(O) // Add all antag datum objectives. + A.remove_antag_objective(O) var/datum/team/team = A.get_team() - team?.objective_holder.remove_objective(O) // Get all of their teams' objectives + team?.objective_holder.remove_objective(O) /datum/mind/proc/_memory_edit_header(gamemode, list/alt) . = gamemode diff --git a/code/datums/revision.dm b/code/datums/revision.dm index a02c104c3321..78946cd7c769 100644 --- a/code/datums/revision.dm +++ b/code/datums/revision.dm @@ -108,7 +108,9 @@ GLOBAL_PROTECT(revision_info) // Dont mess with this msg += "RUST-G Build: [rustg_get_version()]" if(world.TgsAvailable()) - msg += "TGS Version: [world.TgsVersion()] (API: [world.TgsApiVersion()])" + var/datum/tgs_version/tgs_ver = world.TgsVersion() + var/datum/tgs_version/api_ver = world.TgsApiVersion() + msg += "TGS Version: [tgs_ver.deprefixed_parameter] (API: [api_ver.deprefixed_parameter])" if(world.TgsAvailable() && length(GLOB.revision_info.testmerges)) msg += "Active Testmerges:" diff --git a/code/datums/ruins/bridges/bridges.dm b/code/datums/ruins/bridges/bridges.dm index 6d5770419a3c..313f57126d77 100644 --- a/code/datums/ruins/bridges/bridges.dm +++ b/code/datums/ruins/bridges/bridges.dm @@ -1,87 +1,237 @@ -/datum/map_template/ruin/bridge - prefix = "_maps/map_files/RandomRuins/LavaRuins/chasm_bridges/" - ci_exclude = /datum/map_template/ruin/bridge - -/datum/map_template/ruin/bridge/horizontal - ci_exclude = /datum/map_template/ruin/bridge/horizontal - -/datum/map_template/ruin/bridge/horizontal/one - name = "Horizontal Bridge One" - suffix = "lavaland_bridge_horizontal_1.dmm" - -/datum/map_template/ruin/bridge/horizontal/two - name = "Horizontal Bridge Two" - suffix = "lavaland_bridge_horizontal_2.dmm" - -/datum/map_template/ruin/bridge/horizontal/three - name = "Horizontal Bridge Three" - suffix = "lavaland_bridge_horizontal_3.dmm" - -/datum/map_template/ruin/bridge/horizontal/four - name = "Horizontal Bridge Four" - suffix = "lavaland_bridge_horizontal_4.dmm" - -/datum/map_template/ruin/bridge/horizontal/five - name = "Horizontal Bridge Five" - suffix = "lavaland_bridge_horizontal_5.dmm" - -/datum/map_template/ruin/bridge/horizontal/six - name = "Horizontal Bridge Six" - suffix = "lavaland_bridge_horizontal_6.dmm" - -/datum/map_template/ruin/bridge/vertical - ci_exclude = /datum/map_template/ruin/bridge/vertical - -/datum/map_template/ruin/bridge/vertical/one - name = "Vertical Bridge One" - suffix = "lavaland_bridge_vertical_1.dmm" - -/datum/map_template/ruin/bridge/vertical/two - name = "Vertical Bridge Two" - suffix = "lavaland_bridge_vertical_2.dmm" - -/datum/map_template/ruin/bridge/vertical/three - name = "Vertical Bridge Three" - suffix = "lavaland_bridge_vertical_3.dmm" - -/datum/map_template/ruin/bridge/vertical/four - name = "Vertical Bridge Four" - suffix = "lavaland_bridge_vertical_4.dmm" - -/datum/map_template/ruin/bridge/vertical/five - name = "Vertical Bridge Five" - suffix = "lavaland_bridge_vertical_5.dmm" - -/datum/map_template/ruin/bridge/vertical/six - name = "Vertical Bridge Six" - suffix = "lavaland_bridge_vertical_6.dmm" - -/obj/effect/spawner/bridge - name = "Bridge spawner" - var/datum/map_template/ruin/bridge/template - -/obj/effect/spawner/bridge/Initialize(mapload) +#define LONG_BRIDGE_THEME_CULT "cult" +#define LONG_BRIDGE_THEME_HIERO "hiero" +#define LONG_BRIDGE_THEME_CLOCKWORK "clockwork" +#define LONG_BRIDGE_THEME_STONE "stone" +#define LONG_BRIDGE_THEME_WOOD "wood" +#define LONG_BRIDGE_THEME_CATWALK "catwalk" + +/** + * A spawner for dynamic bridges, largely with hardcoded expectations to be + * operating on Lavaland. + * + * It does this by starting at its spawn point, placed by a + * [/datum/river_spawner] during generation, and walking in each direction + * "forwards" and "backwards" until it reaches the maximum possible length of + * the bridge, or a tile that doesn't appear to be a valid "passage" + * (essentially a tile that doesn't have lava on both sides and thus wouldn't + * look good or make an effective bridge). If it manages to do this and find two + * tiles that work as the start and end of the bridge, it places the paths, + * pillars, and "cleans up" the tiles contiguous to its entrance and exit turfs, + * removing any lava if present. + * + * It attempts this first in the vertical direction, and then the horizontal. So + * "fowards" and "backwards" can mean NORTH/SOUTH or EAST/WEST depending on the + * direction it's attempting. + * + * There are several bridge "themes" implemented in `make_walkway()` and + * `make_pillar()`, and more can be added if desired. + */ +/obj/effect/spawner/dynamic_bridge + var/max_length = 8 + var/min_length = 4 + var/bridge_theme = LONG_BRIDGE_THEME_CULT + var/list/forwards_backwards + var/list/side_to_side + +/obj/effect/spawner/dynamic_bridge/Initialize(mapload) . = ..() - SSlate_mapping.bridge_spawners += src - -/obj/effect/spawner/bridge/Destroy() - SSlate_mapping.bridge_spawners -= src - return ..() - -/obj/effect/spawner/bridge/proc/generate_bridge() - var/turf/east = locate(x + 3, y, z) - var/turf/west = locate(x - 3, y, z) - var/turf/north = locate(x, y + 3, z) - var/turf/south = locate(x, y - 3, z) - var/turf/e1 = locate(x + 1, y, z) - var/turf/w1 = locate(x - 1, y, z) - var/turf/n1 = locate(x, y + 1, z) - var/turf/s1 = locate(x, y - 1, z) - - - if((ismineralturf(east) || istype(east, /turf/simulated/floor/plating/asteroid)) && (ismineralturf(west) || istype(west, /turf/simulated/floor/plating/asteroid)) && !(ismineralturf(n1) || istype(n1, /turf/simulated/floor/plating/asteroid)) && !(ismineralturf(s1) || istype(s1, /turf/simulated/floor/plating/asteroid))) - template = GLOB.bridge_horizontal_templates[pick("lavaland_bridge_horizontal_1.dmm", "lavaland_bridge_horizontal_2.dmm", "lavaland_bridge_horizontal_3.dmm", "lavaland_bridge_horizontal_4.dmm", "lavaland_bridge_horizontal_5.dmm", "lavaland_bridge_horizontal_6.dmm")] - template.load(loc, centered = TRUE) - else if((ismineralturf(north) || istype(north, /turf/simulated/floor/plating/asteroid)) && (ismineralturf(south) || istype(south, /turf/simulated/floor/plating/asteroid)) && !(ismineralturf(e1) || istype(e1, /turf/simulated/floor/plating/asteroid)) && !(ismineralturf(w1) || istype(w1, /turf/simulated/floor/plating/asteroid))) - template = GLOB.bridge_vertical_templates[pick("lavaland_bridge_vertical_1.dmm", "lavaland_bridge_vertical_2.dmm", "lavaland_bridge_vertical_3.dmm", "lavaland_bridge_vertical_4.dmm", "lavaland_bridge_vertical_5.dmm", "lavaland_bridge_vertical_6.dmm")] - template.load(loc, centered = TRUE) + bridge_theme = pick( + LONG_BRIDGE_THEME_CULT, + LONG_BRIDGE_THEME_HIERO, + LONG_BRIDGE_THEME_CLOCKWORK, + LONG_BRIDGE_THEME_STONE, + LONG_BRIDGE_THEME_WOOD, + LONG_BRIDGE_THEME_CATWALK, + ) + return INITIALIZE_HINT_LATELOAD + +/obj/effect/spawner/dynamic_bridge/LateInitialize() + forwards_backwards = list(NORTH, SOUTH) + side_to_side = list(EAST, WEST) + if(!attempt_bridge()) + forwards_backwards = list(EAST, WEST) + side_to_side = list(NORTH, SOUTH) + attempt_bridge() + + qdel(src) + +/// Returns whether the passed in turf is a valid "landing". A valid landing is +/// a tile that hasn't been reserved by another bridge, and has a non-lava tile +/// leading directly to it. +/obj/effect/spawner/dynamic_bridge/proc/valid_landing(turf/T, direction) + if(T.flags & LAVA_BRIDGE || T.flags & NO_LAVA_GEN) + return FALSE + + var/turf/end = get_step(T, direction) + if(end.flags & LAVA_BRIDGE || !(ismineralturf(end) || istype(end, /turf/simulated/floor/plating/asteroid))) + return FALSE + + return TRUE + +/// Returns whether the passed in turf is a valid "passage". A valid passage is +/// a lava tile that has lava on both sides of it. Invalid passage tiles do not +/// look good as bridge walkways and defeat the purpose of there is floor right +/// next to it. +/obj/effect/spawner/dynamic_bridge/proc/valid_passage(turf/T) + if(T.flags & LAVA_BRIDGE) + return FALSE + if(!istype(T, /turf/simulated/floor/lava/mapping_lava)) + return FALSE + if(!istype(get_step(T, side_to_side[1]), /turf/simulated/floor/lava/mapping_lava)) + return FALSE + if(!istype(get_step(T, side_to_side[2]), /turf/simulated/floor/lava/mapping_lava)) + return FALSE + + return TRUE + +/obj/effect/spawner/dynamic_bridge/proc/make_pillar(turf/T) + for(var/obj/structure/spawner/S in T) + qdel(S) + for(var/mob/living/M in T) + qdel(M) + for(var/obj/structure/flora/F in T) + qdel(F) + + switch(bridge_theme) + if(LONG_BRIDGE_THEME_CULT) + T.ChangeTurf(/turf/simulated/wall/cult) + if(LONG_BRIDGE_THEME_HIERO) + T.ChangeTurf(/turf/simulated/wall/indestructible/hierophant) + if(LONG_BRIDGE_THEME_CLOCKWORK) + T.ChangeTurf(/turf/simulated/wall/clockwork) + if(LONG_BRIDGE_THEME_STONE) + T.ChangeTurf(/turf/simulated/wall/cult) + if(LONG_BRIDGE_THEME_WOOD) + T.ChangeTurf(/turf/simulated/wall/mineral/wood/nonmetal) + if(LONG_BRIDGE_THEME_CATWALK) + new /obj/structure/lattice/catwalk/mining(T) + new /obj/structure/marker_beacon/dock_marker/collision(T) + + T.flags |= LAVA_BRIDGE + +/obj/effect/spawner/dynamic_bridge/proc/make_walkway(turf/T) + for(var/obj/structure/spawner/S in T) + qdel(S) + for(var/mob/living/M in T) + qdel(M) + for(var/obj/structure/flora/F in T) + qdel(F) + + switch(bridge_theme) + if(LONG_BRIDGE_THEME_CULT) + T.ChangeTurf(/turf/simulated/floor/engine/cult/lavaland_air) + if(LONG_BRIDGE_THEME_HIERO) + T.ChangeTurf(/turf/simulated/floor/indestructible/hierophant) + if(LONG_BRIDGE_THEME_CLOCKWORK) + T.ChangeTurf(/turf/simulated/floor/clockwork/lavaland_air) + if(LONG_BRIDGE_THEME_STONE) + // Stone tiles are different sizes and shapes so these are + // "safe-looking" arrangements + switch(rand(1, 5)) + if(1) + new /obj/structure/stone_tile/block(T) + var/obj/structure/stone_tile/block/cracked/C = new(T) + C.dir = NORTH + if(2) + new /obj/structure/stone_tile/slab(T) + if(3) + new /obj/structure/stone_tile/surrounding(T) + new /obj/structure/stone_tile/center(T) + if(4) + new /obj/structure/stone_tile/slab/cracked(T) + if(5) + new /obj/structure/stone_tile/burnt(T) + var/obj/structure/stone_tile/surrounding_tile/ST = new(T) + ST.dir = WEST + var/obj/structure/stone_tile/block/B = new(T) + B.dir = NORTH + if(LONG_BRIDGE_THEME_WOOD) + T.ChangeTurf(/turf/simulated/floor/wood/lavaland_air) + if(prob(20)) + new /obj/effect/landmark/damageturf(T) + if(LONG_BRIDGE_THEME_CATWALK) + new /obj/structure/lattice/catwalk/mining(T) + + T.flags |= LAVA_BRIDGE + +/// Make a tile safe for player passage, for use at the bridge entrance and exits +/obj/effect/spawner/dynamic_bridge/proc/cleanup_edge(turf/T) + if(istype(T, /turf/simulated/floor/lava/mapping_lava)) + T.ChangeTurf(/turf/simulated/floor/plating/asteroid/basalt/lava_land_surface) + T.icon_state = "basalt" // hate + +/obj/effect/spawner/dynamic_bridge/proc/attempt_bridge() + var/count = 1 + var/walk_dir = forwards_backwards[1] + var/turf/forward_step = get_turf(src) + var/turf/backward_step = get_turf(src) + var/turf/forward_goal + var/turf/backward_goal + var/bad_passage = FALSE + + while(count <= max_length && !(forward_goal && backward_goal) && !bad_passage) + if(walk_dir == forwards_backwards[1]) + if(!forward_goal) + if(out_of_bounds(walk_dir, forward_step)) + break // Out of bounds + forward_step = get_step(forward_step, walk_dir) + if(valid_landing(forward_step, walk_dir)) + forward_goal = forward_step + else if(!valid_passage(forward_step)) + bad_passage = TRUE + count++ + walk_dir = forwards_backwards[2] + else + if(!backward_goal) + if(out_of_bounds(walk_dir, backward_step)) + break // Out of bounds + backward_step = get_step(backward_step, walk_dir) + if(valid_landing(backward_step, walk_dir)) + backward_goal = backward_step + else if(!valid_passage(backward_step)) + bad_passage = TRUE + count++ + walk_dir = forwards_backwards[1] + + if(!bad_passage && count >= min_length && forward_goal && backward_goal) + for(var/turf/T in get_line(forward_goal, backward_goal)) + make_walkway(T) + for(var/turf/T in list( + get_step(forward_goal, side_to_side[1]), + get_step(forward_goal, side_to_side[2]), + get_step(backward_goal, side_to_side[1]), + get_step(backward_goal, side_to_side[2]))) + make_pillar(T) + for(var/turf/T in get_line( + get_step(get_step(forward_goal, side_to_side[1]), forwards_backwards[1]), + get_step(get_step(forward_goal, side_to_side[2]), forwards_backwards[1]))) + cleanup_edge(T) + for(var/turf/T in get_line( + get_step(get_step(backward_goal, side_to_side[1]), forwards_backwards[2]), + get_step(get_step(backward_goal, side_to_side[2]), forwards_backwards[2]))) + cleanup_edge(T) + + return TRUE + +/// Checks if we are going out of bounds. Returns TRUE if we are close (less than or equal to 2 turfs) to a border +/obj/effect/spawner/dynamic_bridge/proc/out_of_bounds(direction, turf/current_turf) + if(!direction || !current_turf) + return TRUE + + switch(direction) + if(NORTH) + return current_turf.y >= world.maxy - 2 + if(EAST) + return current_turf.x >= world.maxx - 2 + if(SOUTH) + return current_turf.y <= 2 + if(WEST) + return current_turf.x <= 2 + return TRUE + +#undef LONG_BRIDGE_THEME_CULT +#undef LONG_BRIDGE_THEME_HIERO +#undef LONG_BRIDGE_THEME_CLOCKWORK +#undef LONG_BRIDGE_THEME_STONE +#undef LONG_BRIDGE_THEME_WOOD +#undef LONG_BRIDGE_THEME_CATWALK diff --git a/code/datums/ruins/space_ruins.dm b/code/datums/ruins/space_ruins.dm index 57cf14cc6caf..abc7652d8002 100644 --- a/code/datums/ruins/space_ruins.dm +++ b/code/datums/ruins/space_ruins.dm @@ -370,6 +370,12 @@ description = "A security shuttle that has been floating in space." allow_duplicates = FALSE +/datum/map_template/ruin/space/freighter + id = "freighter" + suffix = "freighter.dmm" + name = "Voidhopper of Nexus" + description = "A cargo ship headed to a nearby system." + /datum/map_template/ruin/space/drakehound_breacher id = "drakehound_breacher" suffix = "unathi_skiff.dmm" diff --git a/code/datums/spells/projectile_spell.dm b/code/datums/spells/projectile_spell.dm index fd724b5019b2..07e83ec6686a 100644 --- a/code/datums/spells/projectile_spell.dm +++ b/code/datums/spells/projectile_spell.dm @@ -30,6 +30,7 @@ projectile.icon_state = proj_icon_state projectile.dir = get_dir(target, projectile) projectile.name = proj_name + projectile.firer = user var/current_loc = get_turf(projectile) for(var/i in 1 to proj_lifespan) diff --git a/code/game/area/ai_monitored.dm b/code/game/area/ai_monitored.dm index c09499af43ce..db60b423c5d9 100644 --- a/code/game/area/ai_monitored.dm +++ b/code/game/area/ai_monitored.dm @@ -10,7 +10,6 @@ for(var/obj/machinery/camera/M in src) if(M.isMotion()) motioncameras.Add(M) - M.AddComponent(/datum/component/proximity_monitor) M.set_area_motion(src) /area/station/ai_monitored/Entered(atom/movable/O) diff --git a/code/game/gamemodes/miniantags/abduction/machinery/experiment.dm b/code/game/gamemodes/miniantags/abduction/machinery/experiment.dm index b8e0fc8fdfbd..1ee6822d206b 100644 --- a/code/game/gamemodes/miniantags/abduction/machinery/experiment.dm +++ b/code/game/gamemodes/miniantags/abduction/machinery/experiment.dm @@ -239,7 +239,6 @@ if(!occupant) return to_chat(occupant, "Something is electrifying you!") - sleep(1 SECONDS) occupant.electrocute_act(10, src) do_sparks(5, TRUE, src) @@ -248,7 +247,7 @@ return to_chat(occupant, "Something is stabbing you in the back!") occupant.apply_damage(5, BRUTE, BODY_ZONE_CHEST) - occupant.reagents.add_reagent("ether", 5) + occupant.reagents.add_reagent("pancuronium", 3) /obj/machinery/abductor/experiment/force_eject_occupant(mob/target) eject_abductee() diff --git a/code/game/gamemodes/miniantags/revenant/revenant.dm b/code/game/gamemodes/miniantags/revenant/revenant.dm index 904cc49d3b05..cd2d04885f67 100644 --- a/code/game/gamemodes/miniantags/revenant/revenant.dm +++ b/code/game/gamemodes/miniantags/revenant/revenant.dm @@ -1,13 +1,14 @@ //Revenants: based off of wraiths from Goon //"Ghosts" that are invisible and move like ghosts, cannot take damage while invsible -//Don't hear deadchat and are NOT normal ghosts +//Wreck havoc with haunting themed abilities //Admin-spawn or random event #define INVISIBILITY_REVENANT 45 #define REVENANT_NAME_FILE "revenant_names.json" /mob/living/simple_animal/revenant - name = "revenant" + name = "revenant" //The name shown on examine + real_name = "revenant" //The name shown in dchat desc = "A malevolent spirit." icon = 'icons/mob/mob.dmi' icon_state = "revenant_idle" @@ -120,11 +121,7 @@ if(copytext(message, 1, 2) == "*") return emote(copytext(message, 2), intentional = TRUE) - var/rendered - for(var/mob/M in GLOB.mob_list) - rendered = "[src] [(isobserver(M) ? ("([ghost_follow_link(src, ghost=M)])") : "")] says, \"[message]\"" - if(istype(M, /mob/living/simple_animal/revenant) || isobserver(M)) - to_chat(M, rendered) + say_dead(message) /mob/living/simple_animal/revenant/get_status_tab_items() var/list/status_tab_data = ..() @@ -148,6 +145,7 @@ built_name += pick(strings(REVENANT_NAME_FILE, "adjective")) built_name += pick(strings(REVENANT_NAME_FILE, "theme")) name = built_name + real_name = built_name /mob/living/simple_animal/revenant/proc/firstSetupAttempt() if(mind) diff --git a/code/game/gamemodes/objective_holder.dm b/code/game/gamemodes/objective_holder.dm index 4cbeb50d1d51..c3d7b455487b 100644 --- a/code/game/gamemodes/objective_holder.dm +++ b/code/game/gamemodes/objective_holder.dm @@ -4,15 +4,15 @@ /datum/objective_holder /// Our list of current objectives - var/list/datum/objective/objectives = list() + VAR_PRIVATE/list/datum/objective/objectives = list() /// Who do we belong to [mind, antagonist, team] - var/datum/objective_owner + VAR_PRIVATE/datum/objective_owner /// A list of strings which contain [targets][/datum/objective/var/target] of the antagonist's objectives. Used to prevent duplicate objectives. - var/list/assigned_targets = list() + VAR_PRIVATE/list/assigned_targets = list() /// A callback invoked when a new objective is added. This is required because sometimes objectives are added directly without going through objective_owner. Not currently used. - var/datum/callback/on_add_callback + VAR_PRIVATE/datum/callback/on_add_callback /// A callback invoked when a new objective is added. This is required because sometimes objectives are removed directly without going through objective_owner (EX: replace_objective(), clear()). Not currently used. - var/datum/callback/on_remove_callback + VAR_PRIVATE/datum/callback/on_remove_callback /datum/objective_holder/New(new_owner) . = ..() diff --git a/code/game/gamemodes/wizard/godhand.dm b/code/game/gamemodes/wizard/godhand.dm index 77e4f3cbb7b4..592de13f2b91 100644 --- a/code/game/gamemodes/wizard/godhand.dm +++ b/code/game/gamemodes/wizard/godhand.dm @@ -6,6 +6,8 @@ var/datum/spell/touch/attached_spell icon = 'icons/obj/weapons/magical_weapons.dmi' icon_state = "disintegrate" + lefthand_file = 'icons/mob/inhands/items_lefthand.dmi' + righthand_file = 'icons/mob/inhands/items_righthand.dmi' item_state = null flags = ABSTRACT | NODROP | DROPDEL w_class = WEIGHT_CLASS_HUGE diff --git a/code/game/jobs/access.dm b/code/game/jobs/access.dm index 19cd1be96291..fdf42c755982 100644 --- a/code/game/jobs/access.dm +++ b/code/game/jobs/access.dm @@ -391,7 +391,7 @@ "Tourist") /proc/get_all_job_icons() //For all existing HUD icons - return GLOB.joblist + get_all_ERT_jobs() + list("Prisoner") + return GLOB.joblist + get_all_ERT_jobs() + list("Prisoner", "Centcom", "Solgov", "Soviet", "Unknown") /proc/get_accesslist_static_data(num_min_region = REGION_GENERAL, num_max_region = REGION_COMMAND) var/list/retval diff --git a/code/game/machinery/camera/camera_presets.dm b/code/game/machinery/camera/camera_presets.dm index 64ab059fd8b0..9c7f0fc61bc0 100644 --- a/code/game/machinery/camera/camera_presets.dm +++ b/code/game/machinery/camera/camera_presets.dm @@ -155,6 +155,7 @@ if(name == initial(name)) name = "motion-sensitive security camera" assembly.upgrades.Add(new /obj/item/assembly/prox_sensor(assembly)) + AddComponent(/datum/component/proximity_monitor, CAMERA_VIEW_DISTANCE) setPowerUsage() // Add it to machines that process START_PROCESSING(SSmachines, src) diff --git a/code/game/machinery/camera/motion.dm b/code/game/machinery/camera/motion.dm index 68010c1fb3c1..5f2e83b11a26 100644 --- a/code/game/machinery/camera/motion.dm +++ b/code/game/machinery/camera/motion.dm @@ -12,7 +12,7 @@ else if(detectTime == -1) for(var/thing in getTargetList()) var/mob/target = locateUID(thing) - if(QDELETED(target) || target.stat == DEAD || (!area_motion && !in_range(src, target))) + if(QDELETED(target) || target.stat == DEAD || (!area_motion && (!(get_dist(src, target) <= view_range) || !(target in hearers(view_range, get_turf(src)))))) //If not part of a monitored area and the camera is not in range or the target is dead lostTargetRef(thing) @@ -24,6 +24,10 @@ /obj/machinery/camera/proc/newTarget(mob/target) if(isAI(target)) return FALSE + if(isbot(target)) //No armsky, you don't get to set off the motion alarm constantly + return FALSE + if(!area_motion && (!(get_dist(src, target) <= view_range) || !(target in hearers(view_range, get_turf(src))))) + return FALSE if(detectTime == 0) detectTime = world.time // start the clock var/list/targets = getTargetList() @@ -33,7 +37,7 @@ /obj/machinery/camera/proc/lostTargetRef(uid) var/list/targets = getTargetList() targets -= uid - if(length(targets)) + if(!length(targets)) cancelAlarm() /obj/machinery/camera/proc/cancelAlarm() @@ -47,7 +51,8 @@ if(!detectTime) return FALSE if(status) - GLOB.alarm_manager.trigger_alarm("Motion", get_area(src), list(UID()), src) + var/area/A = get_area(src) + GLOB.alarm_manager.trigger_alarm("Motion", A, A.cameras, src) visible_message("A red light flashes on [src]!") detectTime = -1 return TRUE diff --git a/code/game/machinery/cryopod.dm b/code/game/machinery/cryopod.dm index f0f9942e1445..c6798b91c91e 100644 --- a/code/game/machinery/cryopod.dm +++ b/code/game/machinery/cryopod.dm @@ -404,7 +404,7 @@ if(G.fields["name"] == occupant.real_name) announce_rank = G.fields["rank"] qdel(G) - + GLOB.crew_list -= occupant.real_name icon_state = base_icon_state //Make an announcement and log the person entering storage + their rank diff --git a/code/game/machinery/machinery.dm b/code/game/machinery/machinery.dm index c4c46fbb601f..da1534bdbb57 100644 --- a/code/game/machinery/machinery.dm +++ b/code/game/machinery/machinery.dm @@ -142,9 +142,12 @@ if(machine_powernet?.powernet_area != get_area(src)) var/area/machine_area = get_area(src) if(machine_area) + var/old_power_mode = power_state + change_power_mode(NO_POWER_USE) // Take away our current power from the old network machine_powernet?.unregister_machine(src) machine_powernet = machine_area.powernet machine_powernet.register_machine(src) + change_power_mode(old_power_mode) // add it to the new network /// Helper proc to change the machines power usage mode, automatically adjusts static power usage to maintain perfect parity /obj/machinery/proc/change_power_mode(use_type = IDLE_POWER_USE) diff --git a/code/game/machinery/vendors/wardrobe_vendors.dm b/code/game/machinery/vendors/wardrobe_vendors.dm index 877058d2d827..56f5736359d2 100644 --- a/code/game/machinery/vendors/wardrobe_vendors.dm +++ b/code/game/machinery/vendors/wardrobe_vendors.dm @@ -43,7 +43,9 @@ /obj/item/storage/backpack/security = 2, /obj/item/storage/backpack/satchel_sec = 2, /obj/item/clothing/gloves/color/black = 4, - /obj/item/clothing/accessory/armband/sec = 6) + /obj/item/clothing/accessory/armband/sec = 6, + /obj/item/clothing/head/helmet/space/plasmaman/security = 4, + /obj/item/clothing/under/plasmaman/security = 4) contraband = list(/obj/item/clothing/head/helmet/street_judge = 1, /obj/item/clothing/suit/armor/vest/street_judge = 1, @@ -84,6 +86,8 @@ /obj/item/storage/backpack/satchel_sec = 50, /obj/item/clothing/gloves/color/black = 20, /obj/item/clothing/accessory/armband/sec = 20, + /obj/item/clothing/head/helmet/space/plasmaman/security = 60, + /obj/item/clothing/under/plasmaman/security = 60, /obj/item/clothing/shoes/jackboots/noisy = 200) refill_canister = /obj/item/vending_refill/secdrobe @@ -119,7 +123,9 @@ /obj/item/clothing/gloves/color/black = 2, /obj/item/clothing/gloves/color/latex = 2, /obj/item/reagent_containers/drinks/flask/detflask = 2, - /obj/item/storage/fancy/cigarettes/dromedaryco = 5) + /obj/item/storage/fancy/cigarettes/dromedaryco = 5, + /obj/item/clothing/head/helmet/space/plasmaman/white = 2, + /obj/item/clothing/under/plasmaman/enviroslacks = 2) prices = list(/obj/item/clothing/under/rank/security/detective = 50, /obj/item/clothing/under/rank/security/detective/black = 75, @@ -141,7 +147,9 @@ /obj/item/clothing/gloves/color/black = 20, /obj/item/clothing/gloves/color/latex = 20, /obj/item/reagent_containers/drinks/flask/detflask = 50, - /obj/item/storage/fancy/cigarettes/dromedaryco = 5) + /obj/item/storage/fancy/cigarettes/dromedaryco = 5, + /obj/item/clothing/head/helmet/space/plasmaman/white = 60, + /obj/item/clothing/under/plasmaman/enviroslacks = 60) contraband = list(/obj/item/toy/figure/crew/detective = 1) @@ -184,7 +192,9 @@ /obj/item/storage/backpack/medic = 2, /obj/item/storage/backpack/satchel_med = 2, /obj/item/storage/backpack/duffel/medical = 2, - /obj/item/clothing/gloves/color/latex/nitrile = 3) + /obj/item/clothing/gloves/color/latex/nitrile = 3, + /obj/item/clothing/head/helmet/space/plasmaman/medical = 3, + /obj/item/clothing/under/plasmaman/medical = 3) contraband = list(/obj/item/toy/figure/crew/md = 1) @@ -214,7 +224,9 @@ /obj/item/storage/backpack/medic = 50, /obj/item/storage/backpack/satchel_med = 50, /obj/item/storage/backpack/duffel/medical = 50, - /obj/item/clothing/gloves/color/latex/nitrile = 50) + /obj/item/clothing/gloves/color/latex/nitrile = 50, + /obj/item/clothing/head/helmet/space/plasmaman/medical = 60, + /obj/item/clothing/under/plasmaman/medical = 60) refill_canister = /obj/item/vending_refill/medidrobe @@ -241,7 +253,9 @@ /obj/item/clothing/shoes/sandal/white = 2, /obj/item/storage/backpack/virology = 2, /obj/item/storage/backpack/satchel_vir = 2, - /obj/item/storage/backpack/duffel/virology = 2) + /obj/item/storage/backpack/duffel/virology = 2, + /obj/item/clothing/head/helmet/space/plasmaman/viro = 2, + /obj/item/clothing/under/plasmaman/viro = 2) contraband = list(/obj/item/toy/figure/crew/virologist = 1) @@ -256,7 +270,9 @@ /obj/item/clothing/shoes/sandal/white = 20, /obj/item/storage/backpack/virology = 50, /obj/item/storage/backpack/satchel_vir = 50, - /obj/item/storage/backpack/duffel/virology = 50) + /obj/item/storage/backpack/duffel/virology = 50, + /obj/item/clothing/head/helmet/space/plasmaman/viro = 60, + /obj/item/clothing/under/plasmaman/viro = 60) refill_canister = /obj/item/vending_refill/virodrobe @@ -283,7 +299,9 @@ /obj/item/storage/bag/chemistry = 2, /obj/item/storage/backpack/chemistry = 2, /obj/item/storage/backpack/satchel_chem = 2, - /obj/item/storage/backpack/duffel/chemistry = 2) + /obj/item/storage/backpack/duffel/chemistry = 2, + /obj/item/clothing/head/helmet/space/plasmaman/chemist = 2, + /obj/item/clothing/under/plasmaman/chemist = 2) prices = list(/obj/item/clothing/under/rank/medical/chemist = 50, /obj/item/clothing/under/rank/medical/chemist/skirt = 50, @@ -296,7 +314,9 @@ /obj/item/clothing/shoes/sandal/white = 20, /obj/item/storage/backpack/chemistry = 50, /obj/item/storage/backpack/satchel_chem = 50, - /obj/item/storage/backpack/duffel/chemistry = 50) + /obj/item/storage/backpack/duffel/chemistry = 50, + /obj/item/clothing/head/helmet/space/plasmaman/chemist = 60, + /obj/item/clothing/under/plasmaman/chemist = 60) contraband = list(/obj/item/toy/figure/crew/chemist = 1) @@ -313,13 +333,15 @@ ads_list = "Perfect for the mad scientist in you!" vend_reply = "Thank you for using the GeneDrobe!" products = list(/obj/item/clothing/under/rank/rnd/geneticist = 3, - /obj/item/clothing/suit/storage/labcoat/genetics = 3, /obj/item/clothing/shoes/laceup = 3, /obj/item/clothing/shoes/white = 3, /obj/item/clothing/shoes/sandal/white = 3, /obj/item/storage/backpack/genetics = 2, /obj/item/storage/backpack/satchel_gen = 2, - /obj/item/storage/backpack/duffel/genetics = 2) + /obj/item/storage/backpack/duffel/genetics = 2, + /obj/item/clothing/suit/storage/labcoat/genetics = 3, + /obj/item/clothing/head/helmet/space/plasmaman/genetics = 3, + /obj/item/clothing/under/plasmaman/genetics = 3) contraband = list(/obj/item/toy/figure/crew/geneticist = 1) @@ -330,7 +352,9 @@ /obj/item/clothing/shoes/sandal/white = 20, /obj/item/storage/backpack/genetics = 50, /obj/item/storage/backpack/satchel_gen = 50, - /obj/item/storage/backpack/duffel/genetics = 50) + /obj/item/storage/backpack/duffel/genetics = 50, + /obj/item/clothing/head/helmet/space/plasmaman/genetics = 60, + /obj/item/clothing/under/plasmaman/genetics = 60) refill_canister = /obj/item/vending_refill/genedrobe @@ -360,7 +384,9 @@ /obj/item/clothing/shoes/sandal/white = 3, /obj/item/storage/backpack/science = 2, /obj/item/storage/backpack/satchel_tox = 2, - /obj/item/storage/backpack/duffel/science = 2) + /obj/item/storage/backpack/duffel/science = 2, + /obj/item/clothing/head/helmet/space/plasmaman/science = 3, + /obj/item/clothing/under/plasmaman/science = 3) contraband = list(/obj/item/toy/figure/crew/rd = 1, /obj/item/toy/figure/crew/scientist = 1) @@ -377,7 +403,9 @@ /obj/item/clothing/shoes/sandal/white = 20, /obj/item/storage/backpack/science = 50, /obj/item/storage/backpack/satchel_tox = 50, - /obj/item/storage/backpack/duffel/science = 50) + /obj/item/storage/backpack/duffel/science = 50, + /obj/item/clothing/head/helmet/space/plasmaman/science = 60, + /obj/item/clothing/under/plasmaman/science = 60) refill_canister = /obj/item/vending_refill/scidrobe @@ -407,7 +435,9 @@ /obj/item/clothing/shoes/black = 3, /obj/item/storage/backpack/robotics = 2, /obj/item/storage/backpack/satchel_robo = 2, - /obj/item/storage/backpack/duffel/robotics = 2) + /obj/item/storage/backpack/duffel/robotics = 2, + /obj/item/clothing/head/helmet/space/plasmaman/robotics = 3, + /obj/item/clothing/under/plasmaman/robotics = 3) contraband = list(/obj/item/toy/figure/crew/roboticist = 1, /obj/item/toy/figure/crew/borg = 1) @@ -426,7 +456,9 @@ /obj/item/clothing/shoes/black = 20, /obj/item/storage/backpack/robotics = 50, /obj/item/storage/backpack/satchel_robo = 50, - /obj/item/storage/backpack/duffel/robotics = 50) + /obj/item/storage/backpack/duffel/robotics = 50, + /obj/item/clothing/head/helmet/space/plasmaman/robotics = 60, + /obj/item/clothing/under/plasmaman/robotics = 60) refill_canister = /obj/item/vending_refill/robodrobe @@ -458,7 +490,9 @@ /obj/item/storage/backpack/satchel_eng = 2, /obj/item/storage/backpack/duffel/engineering = 2, /obj/item/clothing/gloves/color/yellow = 2, - /obj/item/storage/belt/utility = 2) + /obj/item/storage/belt/utility = 2, + /obj/item/clothing/head/helmet/space/plasmaman/engineering = 3, + /obj/item/clothing/under/plasmaman/engineering = 3) contraband = list(/obj/item/toy/figure/crew/ce = 1, /obj/item/toy/figure/crew/engineer = 1) @@ -479,7 +513,9 @@ /obj/item/storage/backpack/satchel_eng = 50, /obj/item/storage/backpack/duffel/engineering = 50, /obj/item/clothing/gloves/color/yellow = 250, - /obj/item/storage/belt/utility = 75) + /obj/item/storage/belt/utility = 75, + /obj/item/clothing/head/helmet/space/plasmaman/engineering = 60, + /obj/item/clothing/under/plasmaman/engineering = 60) refill_canister = /obj/item/vending_refill/engidrobe @@ -512,7 +548,9 @@ /obj/item/storage/backpack/industrial/atmos = 2, /obj/item/storage/backpack/satchel_atmos = 2, /obj/item/storage/backpack/duffel/atmos = 2, - /obj/item/storage/belt/utility = 2) + /obj/item/storage/belt/utility = 2, + /obj/item/clothing/head/helmet/space/plasmaman/atmospherics = 3, + /obj/item/clothing/under/plasmaman/atmospherics = 3) contraband = list(/obj/item/toy/figure/crew/atmos = 1) @@ -533,7 +571,9 @@ /obj/item/storage/backpack/industrial/atmos = 50, /obj/item/storage/backpack/satchel_atmos = 50, /obj/item/storage/backpack/duffel/atmos = 50, - /obj/item/storage/belt/utility = 75) + /obj/item/storage/belt/utility = 75, + /obj/item/clothing/head/helmet/space/plasmaman/atmospherics = 60, + /obj/item/clothing/under/plasmaman/atmospherics = 60) refill_canister = /obj/item/vending_refill/atmosdrobe @@ -563,7 +603,9 @@ /obj/item/clothing/gloves/fingerless = 6, /obj/item/clothing/accessory/armband/cargo = 6, /obj/item/clothing/shoes/black = 3, - /obj/item/clothing/shoes/workboots = 3) + /obj/item/clothing/shoes/workboots = 3, + /obj/item/clothing/head/helmet/space/plasmaman/cargo = 3, + /obj/item/clothing/under/plasmaman/cargo = 3) contraband = list(/obj/item/toy/figure/crew/qm = 1, /obj/item/toy/figure/crew/cargotech = 1, @@ -582,7 +624,9 @@ /obj/item/clothing/gloves/fingerless = 20, /obj/item/clothing/accessory/armband/cargo = 20, /obj/item/clothing/shoes/black = 20, - /obj/item/clothing/shoes/workboots = 20) + /obj/item/clothing/shoes/workboots = 20, + /obj/item/clothing/head/helmet/space/plasmaman/cargo = 60, + /obj/item/clothing/under/plasmaman/cargo = 60) refill_canister = /obj/item/vending_refill/cargodrobe @@ -611,7 +655,9 @@ /obj/item/clothing/shoes/jackboots = 3, /obj/item/clothing/mask/gas/explorer = 3, /obj/item/storage/backpack/explorer = 2, - /obj/item/storage/backpack/satchel/explorer = 2) + /obj/item/storage/backpack/satchel/explorer = 2, + /obj/item/clothing/head/helmet/space/plasmaman/expedition = 3, + /obj/item/clothing/under/plasmaman/expedition = 3) contraband = list(/obj/item/toy/figure/crew/explorer = 1) @@ -626,7 +672,9 @@ /obj/item/clothing/accessory/armband/cargo = 20, /obj/item/clothing/shoes/jackboots = 20, /obj/item/storage/backpack/explorer = 50, - /obj/item/storage/backpack/satchel/explorer = 50) + /obj/item/storage/backpack/satchel/explorer = 50, + /obj/item/clothing/head/helmet/space/plasmaman/expedition = 60, + /obj/item/clothing/under/plasmaman/expedition = 60) refill_canister = /obj/item/vending_refill/exploredrobe @@ -655,7 +703,9 @@ /obj/item/clothing/accessory/waistcoat = 2, /obj/item/clothing/accessory/armband/service = 3, /obj/item/reagent_containers/glass/rag = 3, - /obj/item/storage/box/dish_drive = 1) + /obj/item/storage/box/dish_drive = 1, + /obj/item/clothing/head/helmet/space/plasmaman/chef = 2, + /obj/item/clothing/under/plasmaman/chef = 2) contraband = list(/obj/item/toy/figure/crew/chef = 1) @@ -672,7 +722,9 @@ /obj/item/clothing/accessory/waistcoat = 20, /obj/item/clothing/accessory/armband/service = 20, /obj/item/reagent_containers/glass/rag = 5, - /obj/item/storage/box/dish_drive = 100) + /obj/item/storage/box/dish_drive = 100, + /obj/item/clothing/head/helmet/space/plasmaman/chef = 60, + /obj/item/clothing/under/plasmaman/chef = 60) refill_canister = /obj/item/vending_refill/chefdrobe @@ -697,7 +749,9 @@ /obj/item/clothing/accessory/waistcoat = 2, /obj/item/clothing/accessory/armband/service = 3, /obj/item/reagent_containers/glass/rag = 3, - /obj/item/storage/box/dish_drive = 1) + /obj/item/storage/box/dish_drive = 1, + /obj/item/clothing/head/helmet/space/plasmaman/white = 2, + /obj/item/clothing/under/plasmaman/enviroslacks = 2) contraband = list(/obj/item/toy/figure/crew/bartender = 1) @@ -712,7 +766,9 @@ /obj/item/clothing/accessory/waistcoat = 20, /obj/item/clothing/accessory/armband/service = 20, /obj/item/reagent_containers/glass/rag = 5, - /obj/item/storage/box/dish_drive = 100) + /obj/item/storage/box/dish_drive = 100, + /obj/item/clothing/head/helmet/space/plasmaman/white = 60, + /obj/item/clothing/under/plasmaman/enviroslacks = 60) refill_canister = /obj/item/vending_refill/bardrobe @@ -739,7 +795,9 @@ /obj/item/clothing/accessory/armband/service = 3, /obj/item/storage/backpack/botany = 2, /obj/item/storage/backpack/satchel_hyd = 2, - /obj/item/storage/backpack/duffel/hydro = 2) + /obj/item/storage/backpack/duffel/hydro = 2, + /obj/item/clothing/head/helmet/space/plasmaman/botany = 3, + /obj/item/clothing/under/plasmaman/botany = 3) contraband = list(/obj/item/toy/figure/crew/botanist = 1) @@ -755,7 +813,9 @@ /obj/item/clothing/accessory/armband/service = 20, /obj/item/storage/backpack/botany = 50, /obj/item/storage/backpack/satchel_hyd = 50, - /obj/item/storage/backpack/duffel/hydro = 50) + /obj/item/storage/backpack/duffel/hydro = 50, + /obj/item/clothing/head/helmet/space/plasmaman/botany = 60, + /obj/item/clothing/under/plasmaman/botany = 60) refill_canister = /obj/item/vending_refill/hydrodrobe @@ -781,7 +841,9 @@ /obj/item/clothing/gloves/janitor = 3, /obj/item/clothing/shoes/galoshes = 3, /obj/item/clothing/accessory/armband/service = 3, - /obj/item/storage/belt/janitor = 3) + /obj/item/storage/belt/janitor = 3, + /obj/item/clothing/head/helmet/space/plasmaman/janitor = 3, + /obj/item/clothing/under/plasmaman/janitor = 3) contraband = list(/obj/item/toy/figure/crew/janitor = 1) @@ -792,7 +854,9 @@ /obj/item/clothing/head/soft/janitorpurple = 20, /obj/item/clothing/head/beret/janitor = 20, /obj/item/clothing/suit/storage/hazardvest/staff = 50, - /obj/item/clothing/accessory/armband/service = 20) + /obj/item/clothing/accessory/armband/service = 20, + /obj/item/clothing/head/helmet/space/plasmaman/janitor = 60, + /obj/item/clothing/under/plasmaman/janitor = 60) refill_canister = /obj/item/vending_refill/janidrobe @@ -827,7 +891,9 @@ /obj/item/clothing/shoes/black = 2, /obj/item/clothing/shoes/brown = 2, /obj/item/clothing/glasses/sunglasses/big = 2, - /obj/item/clothing/accessory/armband/procedure = 2) + /obj/item/clothing/accessory/armband/procedure = 2, + /obj/item/clothing/head/helmet/space/plasmaman/white = 2, + /obj/item/clothing/under/plasmaman/enviroslacks = 2) contraband = list(/obj/item/toy/figure/crew/iaa = 1) @@ -850,6 +916,8 @@ /obj/item/clothing/shoes/black = 20, /obj/item/clothing/shoes/brown = 20, /obj/item/clothing/glasses/sunglasses/big = 30, - /obj/item/clothing/accessory/armband/procedure = 20) + /obj/item/clothing/accessory/armband/procedure = 20, + /obj/item/clothing/head/helmet/space/plasmaman/white = 60, + /obj/item/clothing/under/plasmaman/enviroslacks = 60) refill_canister = /obj/item/vending_refill/lawdrobe diff --git a/code/game/objects/effects/decals/turf_decal.dm b/code/game/objects/effects/decals/turf_decal.dm index 69cc44615879..8d6315aad78a 100644 --- a/code/game/objects/effects/decals/turf_decal.dm +++ b/code/game/objects/effects/decals/turf_decal.dm @@ -9,4 +9,5 @@ var/turf/T = loc if(!istype(T)) //you know this will happen somehow CRASH("Turf decal initialized in an object/nullspace") - T.AddComponent(/datum/component/decal, icon, icon_state, dir, CLEAN_GOD, color, null, null, alpha) + + T.AddElement(/datum/element/decal, icon, icon_state, dir, layer, alpha, color, FALSE, null) diff --git a/code/game/objects/effects/spawners/random/pool/pool_spawner.dm b/code/game/objects/effects/spawners/random/pool/pool_spawner.dm new file mode 100644 index 000000000000..2cfcaaff9bd2 --- /dev/null +++ b/code/game/objects/effects/spawners/random/pool/pool_spawner.dm @@ -0,0 +1,104 @@ +/// A random spawner managed by a [/datum/spawn_pool]. +/obj/effect/spawner/random/pool + icon = 'icons/effects/random_spawners.dmi' + icon_state = "loot" + + /// How much this spawner will subtract from the available budget if it + /// spawns. A value of `INFINITY` (i.e., not setting the value on a subtype) + /// does not attempt to subtract from the budget. This is useful for + /// spawners which themselves spawn other spawners. + var/point_value = INFINITY + /// Whether non-spawner items should be removed from the shared loot pool + /// after spawning. + var/unique_picks = FALSE + /// Guaranteed spawners will always proc, and always proc first. + var/guaranteed = FALSE + /// The ID of the spawn pool. Must match the pool's [/datum/spawn_pool/var/id]. + var/spawn_pool_id + +/obj/effect/spawner/random/pool/Initialize(mapload) + // short-circuit atom init machinery since we won't be around long + if(initialized) + stack_trace("Warning: [src]([type]) initialized multiple times!") + initialized = TRUE + + if(!spawn_pool_id) + stack_trace("No spawn pool ID provided to [src]([type])") + + if(GLOB.spawn_pool_manager.finalized) + // We've already gotten through SSlate_mapping, so someone probably spawned this manually. + // Skip all the shit and just spawn it. + spawn_loot() + qdel(src) + return + + var/datum/spawn_pool/pool = GLOB.spawn_pool_manager.get(spawn_pool_id) + if(!pool) + stack_trace("Could not find spawn pool with ID [spawn_pool_id]") + + if(unique_picks && !(type in pool.unique_spawners)) + pool.unique_spawners[type] = loot.Copy() + + if(guaranteed) + pool.guaranteed_spawners |= src + else + pool.known_spawners |= src + +/obj/effect/spawner/random/pool/generate_loot_list() + var/datum/spawn_pool/pool = GLOB.spawn_pool_manager.get(spawn_pool_id) + if(!pool) + stack_trace("Could not find spawn pool with ID [spawn_pool_id]") + + if(unique_picks) + var/list/unique_loot = pool.unique_spawners[type] + return unique_loot.Copy() + + return ..() + +/obj/effect/spawner/random/pool/check_safe(type_path_to_make) + // TODO: Spawners with `spawn_all_loot` set will subtract the + // point value for each item spawned. This needs to change so + // that the budget is only checked once initially, and then + // all of the loot is spawned after. + if(!..()) + return FALSE + + var/is_safe = FALSE + var/deduct_points = TRUE + var/datum/spawn_pool/pool = GLOB.spawn_pool_manager.get(spawn_pool_id) + if(!pool) + stack_trace("Could not find spawn pool with ID [spawn_pool_id]") + + if(ispath(type_path_to_make, /obj/effect/spawner/random/pool)) + return TRUE + + // If we're past SSlate_mapping, we're safe and don't have a pool + // to deduct points from + if(GLOB.spawn_pool_manager.finalized) + is_safe = TRUE + deduct_points = FALSE + + // If we don't have a sane point value, don't deduct points + if(point_value == INFINITY) + deduct_points = FALSE + + // If we deduct points, we need to check affordability + if(deduct_points) + if(pool.can_afford(point_value)) + is_safe = TRUE + else + is_safe = TRUE + + // Early breakout if we're not safe + if(!is_safe) + return FALSE + + if(deduct_points) + pool.consume(point_value) + + if(pool && unique_picks) + // We may have multiple instances of a given type so just remove the first instance we find + var/list/unique_spawners = pool.unique_spawners[type] + unique_spawners.Remove(type_path_to_make) + + return TRUE diff --git a/code/game/objects/effects/spawners/random/pool/spawn_pool.dm b/code/game/objects/effects/spawners/random/pool/spawn_pool.dm new file mode 100644 index 000000000000..8588a1b1dcbe --- /dev/null +++ b/code/game/objects/effects/spawners/random/pool/spawn_pool.dm @@ -0,0 +1,59 @@ +/// Keeps track of the available points for a given pool, as well as any +/// spawners that need to keep track globally of the number of any specific item +/// that they spawn. +/datum/spawn_pool + /// The ID of the spawn pool. All spawners registered to this pool must use this ID. + var/id + /// The number of points left for the spawner to use. Starts at its initial value. + var/available_points = 0 + /// A list of all spawners registered to this pool. + var/list/known_spawners = list() + /// A key-value list of spawners with TRUE `unique_picks` to a shared copy of their + /// loot pool. When items from one of these spawners are spawned, it is removed + /// from the shared loot pool so it never spawns again. + var/list/unique_spawners = list() + /// A list of spawners whose `guaranteed` is `TRUE`. These spawners will + /// always spawn, and always before anything else, + var/list/guaranteed_spawners = list() + +/datum/spawn_pool/proc/can_afford(points) + if(available_points >= points) + return TRUE + + return FALSE + +/datum/spawn_pool/proc/consume(points) + available_points -= points + +/datum/spawn_pool/proc/process_guaranteed_spawners() + while(length(guaranteed_spawners)) + var/obj/effect/spawner/random/pool/spawner = guaranteed_spawners[length(guaranteed_spawners)] + guaranteed_spawners.len-- + spawner.spawn_loot() + qdel(spawner) + + QDEL_LIST_CONTENTS(guaranteed_spawners) + +/datum/spawn_pool/proc/process_spawners() + process_guaranteed_spawners() + + shuffle_inplace(known_spawners) + while(length(known_spawners)) + if(available_points <= 0) + break + + var/obj/effect/spawner/random/pool/spawner = known_spawners[length(known_spawners)] + known_spawners.len-- + if(spawner.point_value != INFINITY && available_points < spawner.point_value) + qdel(spawner) + continue + + spawner.spawn_loot() + if(length(guaranteed_spawners)) + WARNING("non-guaranteed spawner [spawner.type] spawned a guaranteed spawner, this should be avoided") + process_guaranteed_spawners() + + qdel(spawner) + + + QDEL_LIST_CONTENTS(known_spawners) diff --git a/code/game/objects/effects/spawners/random/pool/spawn_pool_manager.dm b/code/game/objects/effects/spawners/random/pool/spawn_pool_manager.dm new file mode 100644 index 000000000000..855eea2187a4 --- /dev/null +++ b/code/game/objects/effects/spawners/random/pool/spawn_pool_manager.dm @@ -0,0 +1,27 @@ +GLOBAL_DATUM_INIT(spawn_pool_manager, /datum/spawn_pool_manager, new) + +/// The singleton which keeps track of all spawn pools. +/// All known [/datum/spawn_pool] subtypes are registered +/// to it and are processed in SSlate_mapping. +/datum/spawn_pool_manager + var/list/spawn_pools = list() + var/finalized = FALSE + +/datum/spawn_pool_manager/New() + for(var/spawn_pool_type in subtypesof(/datum/spawn_pool)) + var/datum/spawn_pool/pool = new spawn_pool_type + spawn_pools[pool.id] = pool + +/datum/spawn_pool_manager/proc/get(id) + return spawn_pools[id] + +/datum/spawn_pool_manager/proc/process_pools() + for(var/pool_id in spawn_pools) + var/datum/spawn_pool/pool = spawn_pools[pool_id] + pool.process_spawners() + + finalized = TRUE + +/datum/spawn_pool_manager/Destroy() + QDEL_LIST_CONTENTS(spawn_pools) + return ..() diff --git a/code/game/objects/effects/spawners/random/random_spawner.dm b/code/game/objects/effects/spawners/random/random_spawner.dm index 1120de174df5..4d7487f65e62 100644 --- a/code/game/objects/effects/spawners/random/random_spawner.dm +++ b/code/game/objects/effects/spawners/random/random_spawner.dm @@ -51,6 +51,18 @@ spawn_loot() return INITIALIZE_HINT_QDEL +/obj/effect/spawner/random/proc/generate_loot_list() + if(loot_type_path) + loot += typesof(loot_type_path) + + if(loot_subtype_path) + loot += subtypesof(loot_subtype_path) + + return loot + +/obj/effect/spawner/random/proc/check_safe(type_path_to_make) + return TRUE + ///If the spawner has any loot defined, randomly picks some and spawns it. Does not cleanup the spawner. /obj/effect/spawner/random/proc/spawn_loot(lootcount_override) if(!prob(spawn_loot_chance)) @@ -66,21 +78,22 @@ spawn_loot_count = INFINITY spawn_loot_double = FALSE - if(loot_type_path) - loot += typesof(loot_type_path) - - if(loot_subtype_path) - loot += subtypesof(loot_subtype_path) + var/list/loot_list = generate_loot_list() + var/safe_failure_count = 0 - if(length(loot)) + if(length(loot_list)) var/loot_spawned = 0 var/pixel_divider = FLOOR(spawn_random_offset_max_pixels / spawn_loot_split_pixel_offsets, 1) - while((spawn_loot_count-loot_spawned) && length(loot)) + while((spawn_loot_count-loot_spawned) && length(loot_list) && safe_failure_count <= 10) loot_spawned++ + var/lootspawn = pick_weight_recursive(loot_list) + + if(!check_safe(lootspawn)) + safe_failure_count++ + continue - var/lootspawn = pick_weight_recursive(loot) if(!spawn_loot_double) - loot.Remove(lootspawn) + loot_list.Remove(lootspawn) if(lootspawn) var/turf/spawn_loc = loc if(spawn_scatter_radius > 0 && length(spawn_locations)) @@ -91,6 +104,13 @@ continue var/atom/movable/spawned_loot = make_item(spawn_loc, lootspawn) + + // If we make something that then makes something else and gets itself + // qdel'd, we'll have a null result here. This doesn't necessarily mean + // that nothing's been spawned, so it's not necessarily a failure. + if(!spawned_loot) + continue + spawned_loot.setDir(dir) if(!spawn_loot_split && !spawn_random_offset) diff --git a/code/game/objects/items/tools/welder.dm b/code/game/objects/items/tools/welder.dm index 4226798d7356..0a645a62b7b3 100644 --- a/code/game/objects/items/tools/welder.dm +++ b/code/game/objects/items/tools/welder.dm @@ -154,8 +154,12 @@ remove_fuel(0.5) /obj/item/weldingtool/attack(mob/living/target, mob/living/user) - if(!cigarette_lighter_act(user, target)) - return ..() + if(cigarette_lighter_act(user, target)) + return + if(tool_enabled && target.IgniteMob()) + message_admins("[key_name_admin(user)] set [key_name_admin(target)] on fire") + log_game("[key_name(user)] set [key_name(target)] on fire") + return ..() /obj/item/weldingtool/cigarette_lighter_act(mob/living/user, mob/living/target, obj/item/direct_attackby_item) var/obj/item/clothing/mask/cigarette/cig = ..() diff --git a/code/game/objects/items/weapons/agent_id.dm b/code/game/objects/items/weapons/agent_id.dm new file mode 100644 index 000000000000..c3c48a09e02c --- /dev/null +++ b/code/game/objects/items/weapons/agent_id.dm @@ -0,0 +1,300 @@ +/obj/item/card/id/syndicate + name = "agent card" + origin_tech = "syndicate=1" + untrackable = TRUE + /// List of access types the agent ID should start off with + var/list/initial_access = list(ACCESS_MAINT_TUNNELS, ACCESS_SYNDICATE, ACCESS_EXTERNAL_AIRLOCKS) + /// Editing is prohibited if registered_human reference is missing + var/mob/living/carbon/human/registered_human + // Static list of all occupations available when changing the occupation on an agent ID + var/static/list/possible_jobs + /// The HUD icon that should be displayed on a mob that is wearing the agent ID + var/hud_icon + + COOLDOWN_DECLARE(new_photo_cooldown) + +/obj/item/card/id/syndicate/Initialize(mapload) + . = ..() + access = initial_access.Copy() + if(!length(possible_jobs)) + possible_jobs = sortTim(GLOB.joblist, GLOBAL_PROC_REF(cmp_text_asc)) + +/obj/item/card/id/syndicate/Destroy() + registered_human = null + return ..() + +/obj/item/card/id/syndicate/researcher + initial_access = list(ACCESS_SYNDICATE) + assignment = "Syndicate Researcher" + icon_state = "syndie" + untrackable = TRUE + +/obj/item/card/id/syndicate/vox + name = "agent card" + initial_access = list(ACCESS_MAINT_TUNNELS, ACCESS_VOX, ACCESS_EXTERNAL_AIRLOCKS) + +/obj/item/card/id/syndicate/ghost_bar + name = "ghost bar identification card" + assignment = "Ghost Bar Occupant" + initial_access = list() // This is for show, they don't need actual accesses + icon_state = "assistant" + +/obj/item/card/id/syndicate/command + initial_access = list(ACCESS_MAINT_TUNNELS, ACCESS_SYNDICATE, ACCESS_SYNDICATE_LEADER, ACCESS_SYNDICATE_COMMAND, ACCESS_EXTERNAL_AIRLOCKS) + icon_state = "commander" + +/obj/item/card/id/syndicate_command + name = "syndicate ID card" + desc = "An ID straight from the Syndicate." + registered_name = "Syndicate" + icon_state = "syndie" + assignment = "Syndicate Overlord" + untrackable = TRUE + access = list(ACCESS_SYNDICATE, ACCESS_SYNDICATE_LEADER, ACCESS_SYNDICATE_COMMAND, ACCESS_EXTERNAL_AIRLOCKS) + +/obj/item/card/id/syndicate/afterattack(atom/target, mob/user, proximity_flag, click_parameters) + if(!proximity_flag) + return + if(istype(target, /obj/item/card/id)) + var/obj/item/card/id/I = target + if(isliving(user) && user?.mind?.special_role) + to_chat(usr, "The card's microscanners activate as you pass it over [I], copying its access.") + access |= I.access //Don't copy access if user isn't an antag -- to prevent metagaming + +/obj/item/card/id/syndicate/ui_act(action, list/params, datum/tgui/ui, datum/ui_state/state) + if(..()) + return + if(!registered_human || !Adjacent(registered_human)) + return + . = TRUE + switch(action) + if("delete_info") + delete_info(ui) + if("clear_access") + clear_access() + if("change_ai_tracking") + change_ai_tracking() + if("change_name") + change_name(params["option"], params["name"]) + if("change_photo") + change_photo() + if("change_appearance") + change_appearance(params["new_appearance"]) + if("change_sex") + change_sex(params["sex"]) + if("change_age") + change_age(params["age"]) + if("change_occupation") + change_occupation(params["option"]) + if("change_money_account") + change_money_account(params["option"], params["new_account"]) + if("change_blood_type") + change_blood_type(params["option"], params["new_type"]) + if("change_dna_hash") + change_dna_hash(params["option"], params["new_dna"]) + if("change_fingerprints") + change_fingerprints(params["option"], params["new_fingerprints"]) + RebuildHTML() + +/obj/item/card/id/syndicate/ui_data(mob/user) + var/list/data = list() + data["registered_name"] = registered_name + data["sex"] = sex + data["age"] = age + data["assignment"] = assignment + data["job_icon"] = hud_icon + data["associated_account_number"] = associated_account_number + data["blood_type"] = blood_type + data["dna_hash"] = dna_hash + data["fingerprint_hash"] = fingerprint_hash + data["photo"] = photo + data["ai_tracking"] = untrackable + data["photo_cooldown"] = COOLDOWN_FINISHED(src, new_photo_cooldown) + return data + +/obj/item/card/id/syndicate/ui_static_data(mob/user) + var/list/data = list() + var/list/idcard_skins = list() + for(var/idcard_skin in get_all_card_skins()) + idcard_skins.Add(idcard_skin) + data["appearances"] = idcard_skins + data["id_icon"] = icon + return data + +/obj/item/card/id/syndicate/ui_interact(mob/user, datum/tgui/ui = null) + ui = SStgui.try_update_ui(user, src, ui) + if(!ui) + ui = new(user, src, "AgentCard", name) + ui.open() + +/obj/item/card/id/syndicate/attack_self(mob/user) + if(!ishuman(user)) + return + if(!registered_human) + registered_human = user + if(registered_human != user) + flash_card(user) + return + switch(tgui_alert(user, "Would you like to display [src] or edit it?", "Choose", list("Edit", "Show"))) + if("Show") + flash_card(user) + if("Edit") + ui_interact(user) + +/obj/item/card/id/syndicate/proc/delete_info(datum/tgui/ui) + name = initial(name) + registered_name = initial(registered_name) + icon_state = initial(icon_state) + sex = initial(sex) + age = initial(age) + assignment = initial(assignment) + rank = initial(rank) + associated_account_number = initial(associated_account_number) + blood_type = initial(blood_type) + dna_hash = initial(dna_hash) + fingerprint_hash = initial(fingerprint_hash) + photo = null + registered_human.sec_hud_set_ID() + registered_human = null + ui.close() + +/obj/item/card/id/syndicate/proc/clear_access() + access = initial_access.Copy() // Initial() doesn't work on lists + to_chat(registered_human, "Card access reset.") + +/obj/item/card/id/syndicate/proc/change_ai_tracking() + untrackable = !untrackable + +/obj/item/card/id/syndicate/proc/change_name(option, name) + var/new_name + if(option == "Primary") + new_name = ishuman(registered_human) ? registered_human.real_name : registered_human.name + else if(option == "Secondary") + new_name = tgui_input_list(registered_human, "Whose name do you want to copy?", "Agent ID - Name", GLOB.crew_list) + if(isnull(new_name)) + return + else + new_name = sanitize(name) + + registered_name = reject_bad_name(new_name, TRUE) + UpdateName() + to_chat(registered_human, "ID name has been changed to [new_name].") + +/obj/item/card/id/syndicate/proc/change_photo() + if(!COOLDOWN_FINISHED(src, new_photo_cooldown)) + return + var/job_clothes = null + if(assignment) + job_clothes = assignment + var/icon/newphoto = get_id_photo(registered_human, job_clothes) + if(!newphoto) + return + photo = newphoto + COOLDOWN_START(src, new_photo_cooldown, 10 SECONDS) // This proc is expensive, we don't want people spamming it. + +/obj/item/card/id/syndicate/proc/change_appearance(new_appearance) + if(!new_appearance) + return + if(new_appearance in icon_states(icon)) + icon_state = new_appearance + +/obj/item/card/id/syndicate/proc/change_sex(new_sex) + if(!Adjacent(registered_human) || isnull(new_sex)) + return + + sex = sanitize(new_sex) + +/obj/item/card/id/syndicate/proc/change_age(new_age) + age = clamp(new_age, AGE_MIN, AGE_MAX) + +/obj/item/card/id/syndicate/proc/change_occupation(option) + var/new_job + var/new_rank + if(option == "Primary") + new_job = assignment + new_rank = tgui_input_list(registered_human, "What SecHUD icon would you like to be shown on this card?", "Agent Card Occupation", GLOB.joblist + "Prisoner" + "Centcom" + "Solgov" + "Soviet" + "Unknown") + else + var/department = tgui_input_list(registered_human, "Do you want a custom occupation?", "Agent Card Occupation", list("Existing job", "Custom")) + if(department != "Custom") + new_job = tgui_input_list(registered_human, "What job would you like to put on this card?", "Agent Card Occupation", possible_jobs) + new_rank = new_job + else + new_job = sanitize(tgui_input_text(registered_human, "Choose a custom job title:", "Agent Card Occupation", "Assistant", MAX_MESSAGE_LEN)) + new_rank = tgui_input_list(registered_human, "What SecHUD icon would you like to be shown on this card?", "Agent Card Occupation", GLOB.joblist + "Prisoner" + "Centcom" + "Solgov" + "Soviet" + "Unknown") + + if(!Adjacent(registered_human) || isnull(new_job)) + return + assignment = new_job + rank = new_rank + hud_icon = ckey(get_job_name()) + UpdateName() + registered_human.sec_hud_set_ID() + +/obj/item/card/id/syndicate/proc/change_money_account(option, new_account) + if(option == "Primary") + new_account = registered_human.mind.initial_account?.account_number + if(!new_account) + to_chat(registered_human, "You don't have an account.") + return + else if(option == "Secondary") + new_account = rand(1000, 9999) * 1000 + rand(1000, 9999) + else + new_account = text2num(new_account) + if(!isnum(new_account)) + to_chat(registered_human, "ID account number can only contain numbers.") + return + + associated_account_number = clamp(new_account, 1000000, 9999999) + to_chat(registered_human, "ID account number has been changed to [new_account].") + +/obj/item/card/id/syndicate/proc/change_blood_type(option, new_type) + var/list/possible_blood_types = list("A+", "A-", "B+", "B-", "AB+", "AB-", "O+", "O-", "Slime Jelly", "None") + if(option == "Primary") + blood_type = registered_human.dna.blood_type + else if(new_type) + if(!(blood_type in possible_blood_types)) + return + blood_type = new_type + to_chat(registered_human, "ID blood type has been changed to [blood_type].") + +/obj/item/card/id/syndicate/proc/change_dna_hash(option, new_dna) + if(option == "Primary") + dna_hash = registered_human.dna.unique_enzymes + else if(option == "Secondary") + dna_hash = md5(num2text(rand(0, 999))) + else + if(new_dna) + dna_hash = sanitize(new_dna, 33) // Max length of 32 characters + +/obj/item/card/id/syndicate/proc/change_fingerprints(option, new_fingerprints) + if(option == "Primary") + fingerprint_hash = md5(registered_human.dna.uni_identity) + else if(option == "Secondary") + fingerprint_hash = md5(num2text(rand(0, 999))) + else + var/fingerprints_param = new_fingerprints + if(fingerprints_param) + fingerprint_hash = sanitize(fingerprints_param, 33) + +/// like /obj/item/card/id/syndicate, but you can only swipe access, not change your identity, its also trackable +/obj/item/card/id/syndi_scan_only + name = "Syndicate Operative's ID card (Operative)" + rank = "Operative" + assignment = "Operative" + registered_name = "Syndicate Operative" + access = list(ACCESS_SYNDICATE) + +/obj/item/card/id/syndi_scan_only/examine(mob/user) + . = ..() + if(isAntag(user)) + . += "Similar to an agent ID, this ID card can be used to copy accesses, but it lacks the customization and anti-tracking capabilities of an agent ID." + +/obj/item/card/id/syndi_scan_only/afterattack(obj/item/O, mob/user, proximity) + if(!proximity) + return + if(istype(O, /obj/item/card/id)) + var/obj/item/card/id/I = O + if(isliving(user) && user.mind) + if(user.mind.special_role) + to_chat(user, "The card's microscanners activate as you pass it over [I], copying its access.") + access |= I.access // Don't copy access if user isn't an antag -- to prevent metagaming diff --git a/code/game/objects/items/weapons/cards_ids.dm b/code/game/objects/items/weapons/cards_ids.dm index 6cde633e3082..6bf01556f513 100644 --- a/code/game/objects/items/weapons/cards_ids.dm +++ b/code/game/objects/items/weapons/cards_ids.dm @@ -152,15 +152,15 @@ popup.open() /obj/item/card/id/attack_self(mob/user as mob) - user.visible_message("[user] shows you: [bicon(src)] [src.name]. The assignment on the card: [src.assignment]",\ - "You flash your ID card: [bicon(src)] [src.name]. The assignment on the card: [src.assignment]") + user.visible_message("[user] shows you: [bicon(src)] [name]. The assignment on the card: [assignment]",\ + "You flash your ID card: [bicon(src)] [name]. The assignment on the card: [assignment]") if(mining_points) to_chat(user, "There's [mining_points] Mining Points loaded onto this card. This card has earned [total_mining_points] Mining Points this Shift!") - src.add_fingerprint(user) + add_fingerprint(user) return /obj/item/card/id/proc/UpdateName() - name = "[src.registered_name]'s ID Card ([src.assignment])" + name = "[registered_name]'s ID Card ([assignment])" /obj/item/card/id/proc/SetOwnerInfo(mob/living/carbon/human/H) if(!H || !H.dna) @@ -327,6 +327,13 @@ RebuildHTML() ..() +/obj/item/card/id/proc/flash_card(mob/user) + user.visible_message("[user] shows you: [bicon(src)] [name]. The assignment on the card: [assignment]",\ + "You flash your ID card: [bicon(src)] [name]. The assignment on the card: [assignment]") + if(mining_points) + to_chat(user, "There's [mining_points] Mining Points loaded onto this card. This card has earned [total_mining_points] Mining Points this Shift!") + add_fingerprint(user) + /obj/item/card/id/silver name = "identification card" desc = "A silver card which shows honour and dedication." @@ -339,327 +346,6 @@ icon_state = "gold" item_state = "gold_id" -/obj/item/card/id/syndicate - name = "agent card" - var/list/initial_access = list(ACCESS_MAINT_TUNNELS, ACCESS_SYNDICATE, ACCESS_EXTERNAL_AIRLOCKS) - origin_tech = "syndicate=1" - var/registered_user = null - untrackable = TRUE - -/obj/item/card/id/syndicate/researcher - initial_access = list(ACCESS_SYNDICATE) - assignment = "Syndicate Researcher" - icon_state = "syndie" - untrackable = TRUE - -/obj/item/card/id/syndicate/New() - access = initial_access.Copy() - ..() - -/obj/item/card/id/syndicate/vox - name = "agent card" - initial_access = list(ACCESS_MAINT_TUNNELS, ACCESS_VOX, ACCESS_EXTERNAL_AIRLOCKS) - -/obj/item/card/id/syndicate/ghost_bar - name = "ghost bar identification card" - assignment = "Ghost Bar Occupant" - initial_access = list() // This is for show, they don't need actual accesses - icon_state = "assistant" - -/obj/item/card/id/syndicate/command - initial_access = list(ACCESS_MAINT_TUNNELS, ACCESS_SYNDICATE, ACCESS_SYNDICATE_LEADER, ACCESS_SYNDICATE_COMMAND, ACCESS_EXTERNAL_AIRLOCKS) - icon_state = "commander" - -/obj/item/card/id/syndicate/afterattack(obj/item/O as obj, mob/user as mob, proximity) - if(!proximity) - return - if(istype(O, /obj/item/card/id)) - var/obj/item/card/id/I = O - if(isliving(user) && user.mind) - if(user.mind.special_role) - to_chat(usr, "The card's microscanners activate as you pass it over \the [I], copying its access.") - src.access |= I.access //Don't copy access if user isn't an antag -- to prevent metagaming - -/obj/item/card/id/syndicate/attack_self(mob/user as mob) - if(!src.registered_name) - var/t = reject_bad_name(tgui_input_text(user, "What name would you like to use on this card?", "Agent Card name", ishuman(user) ? user.real_name : user.name), TRUE) - if(!t) - to_chat(user, "Invalid name.") - return - src.registered_name = t - - var/u = tgui_input_text(user, "What occupation would you like to put on this card?\nNote: This will not grant any access levels other than maintenance.", "Agent Card Job Assignment", "Agent", MAX_MESSAGE_LEN) - if(!u) - to_chat(user, "Invalid assignment.") - src.registered_name = "" - return - src.assignment = u - src.name = "[src.registered_name]'s ID Card ([src.assignment])" - to_chat(user, "You successfully forge the ID card.") - registered_user = user.mind.current - else if(!registered_user || registered_user == user.mind.current) - if(!registered_user) - registered_user = user.mind.current - - switch(tgui_alert(user, "Would you like to display [src] or edit it?", "Choose", list("Show", "Edit"))) - if("Show") - return ..() - if("Edit") - switch(tgui_input_list(user, "What would you like to edit on [src]?", "Agent ID", list("Name", "Photo", "Appearance", "Sex", "Age", "Occupation", "Money Account", "Blood Type", "DNA Hash", "Fingerprint Hash", "Reset Access", "Delete Card Information"))) - if("Name") - var/new_name = reject_bad_name(tgui_input_text(user, "What name would you like to put on this card?", "Agent Card Name", ishuman(user) ? user.real_name : user.name), TRUE) - if(!Adjacent(user) || !new_name) - return - src.registered_name = new_name - UpdateName() - to_chat(user, "Name changed to [new_name].") - RebuildHTML() - - if("Photo") - if(!Adjacent(user)) - return - var/job_clothes = null - if(assignment) - job_clothes = assignment - var/icon/newphoto = get_id_photo(user, job_clothes) - if(!newphoto) - return - photo = newphoto - to_chat(user, "Photo changed. Select another occupation and take a new photo if you wish to appear with different clothes.") - RebuildHTML() - - if("Appearance") - var/static/list/appearances = list( - "data", - "id", - "gold", - "silver", - "centcom", - "security", - "detective", - "warden", - "internalaffairsagent", - "medical", - "coroner", - "virologist", - "chemist", - "paramedic", - "psychiatrist", - "research", - "roboticist", - "quartermaster", - "cargo", - "shaftminer", - "engineering", - "atmostech", - "captain", - "HoP", - "HoS", - "CMO", - "RD", - "CE", - "assistant", - "clown", - "mime", - "botanist", - "librarian", - "chaplain", - "bartender", - "chef", - "janitor", - "explorer", - "rainbow", - "prisoner", - "syndie", - "deathsquad", - "commander", - "ERT_leader", - "ERT_security", - "ERT_engineering", - "ERT_medical", - "ERT_janitorial", - "ERT_paranormal", - ) - var/choice = tgui_input_list(user, "Select the appearance for this card.", "Agent Card Appearance", appearances) - if(!Adjacent(user) || !choice) - return - icon_state = choice - switch(choice) - if("silver") - desc = "A silver card which shows honour and dedication." - if("gold") - desc = "A golden card which shows power and might." - if("clown") - desc = "Even looking at the card strikes you with deep fear." - if("mime") - desc = "..." - if("prisoner") - desc = "You are a number, you are not a free man." - if("centcom") - desc = "An ID straight from Central Command." - else - desc = "A card used to provide ID and determine access across the station." - to_chat(usr, "Appearance changed to [choice].") - - if("Sex") - var/new_sex = tgui_input_text(user,"What sex would you like to put on this card?", "Agent Card Sex", ishuman(user) ? capitalize(user.gender) : "Male") - if(!Adjacent(user) || !new_sex) - return - sex = new_sex - to_chat(user, "Sex changed to [new_sex].") - RebuildHTML() - - if("Age") - var/default = "21" - if(ishuman(user)) - var/mob/living/carbon/human/H = user - default = H.age - var/new_age = tgui_input_number(user, "What age would you like to be written on this card?", "Agent Card Age", default, 300, 17) - if(!Adjacent(user) || isnull(new_age)) - return - age = new_age - to_chat(user, "Age changed to [new_age].") - RebuildHTML() - - if("Occupation") - var/static/list/departments = list( - "Assistant" = null, - "Engineering" = GLOB.engineering_positions, - "Medical" = GLOB.medical_positions, - "Science" = GLOB.science_positions, - "Security" = GLOB.security_positions, - "Service" = GLOB.service_positions, - "Supply" = GLOB.supply_positions, - "Command" = GLOB.command_positions, - "Custom" = null, - ) - - var/department = tgui_input_list(user, "What job would you like to put on this card?\nChoose a department or a custom job title.\nChanging occupation will not grant or remove any access levels.", "Agent Card Occupation", departments) - var/new_job = "Assistant" - - if(department == "Custom") - new_job = tgui_input_text(user, "Choose a custom job title:", "Agent Card Occupation", "Assistant") - else if(department != "Assistant" && !isnull(departments[department])) - new_job = tgui_input_list(user, "What job would you like to put on this card?\nChanging occupation will not grant or remove any access levels.", "Agent Card Occupation", departments[department]) - - if(!Adjacent(user) || !new_job) - return - assignment = new_job - to_chat(user, "Occupation changed to [new_job].") - UpdateName() - RebuildHTML() - - if("Money Account") - var/new_account = tgui_input_number(user, "What money account would you like to link to this card?", "Agent Card Account", 12345, max_value = 9999999) - if(!Adjacent(user) || isnull(new_account)) - return - associated_account_number = new_account - to_chat(user, "Linked money account changed to [new_account].") - - if("Blood Type") - var/default = "\[UNSET\]" - if(ishuman(user)) - var/mob/living/carbon/human/H = user - if(H.dna) - default = H.dna.blood_type - - var/new_blood_type = tgui_input_text(user, "What blood type would you like to be written on this card?", "Agent Card Blood Type", default) - if(!Adjacent(user) || !new_blood_type) - return - blood_type = new_blood_type - to_chat(user, "Blood type changed to [new_blood_type].") - RebuildHTML() - - if("DNA Hash") - var/default = "\[UNSET\]" - if(ishuman(user)) - var/mob/living/carbon/human/H = user - if(H.dna) - default = H.dna.unique_enzymes - - var/new_dna_hash = tgui_input_text(user, "What DNA hash would you like to be written on this card?", "Agent Card DNA Hash", default) - if(!Adjacent(user) || !new_dna_hash) - return - dna_hash = new_dna_hash - to_chat(user, "DNA hash changed to [new_dna_hash].") - RebuildHTML() - - if("Fingerprint Hash") - var/default = "\[UNSET\]" - if(ishuman(user)) - var/mob/living/carbon/human/H = user - if(H.dna) - default = md5(H.dna.uni_identity) - - var/new_fingerprint_hash = tgui_input_text(user, "What fingerprint hash would you like to be written on this card?", "Agent Card Fingerprint Hash", default) - if(!Adjacent(user) || !new_fingerprint_hash) - return - fingerprint_hash = new_fingerprint_hash - to_chat(user, "Fingerprint hash changed to [new_fingerprint_hash].") - RebuildHTML() - - if("Reset Access") - var/response = tgui_alert(user, "Are you sure you want to reset access saved on the card?", "Reset Access", list("No", "Yes")) - if(response == "Yes") - access = initial_access.Copy() // Initial() doesn't work on lists - to_chat(user, "Card access reset.") - - if("Delete Card Information") - var/response = tgui_alert(user, "Are you sure you want to delete all information saved on the card?", "Delete Card Information", list("No", "Yes")) - if(response == "Yes") - name = initial(name) - registered_name = initial(registered_name) - icon_state = initial(icon_state) - sex = initial(sex) - age = initial(age) - assignment = initial(assignment) - associated_account_number = initial(associated_account_number) - blood_type = initial(blood_type) - dna_hash = initial(dna_hash) - fingerprint_hash = initial(fingerprint_hash) - photo = null - registered_user = null - to_chat(user, "All information has been deleted from \the [src].") - RebuildHTML() - else - ..() - -/obj/item/card/id/syndicate/Destroy() - registered_user = null - return ..() - -/obj/item/card/id/syndicate_command - name = "syndicate ID card" - desc = "An ID straight from the Syndicate." - registered_name = "Syndicate" - icon_state = "syndie" - assignment = "Syndicate Overlord" - untrackable = TRUE - access = list(ACCESS_SYNDICATE, ACCESS_SYNDICATE_LEADER, ACCESS_SYNDICATE_COMMAND, ACCESS_EXTERNAL_AIRLOCKS) - -// like /obj/item/card/id/syndicate, but you can only swipe access, not change your identity, its also trackable -/obj/item/card/id/syndi_scan_only - name = "Syndicate Operative's ID card (Operative)" - rank = "Operative" - assignment = "Operative" - registered_name = "Syndicate Operative" - access = list(ACCESS_SYNDICATE) - -/obj/item/card/id/syndi_scan_only/examine(mob/user) - . = ..() - if(isAntag(user)) - . += "Similar to an agent ID, this ID card can be used to copy accesses, but it lacks the customization and anti-tracking capabilities of an agent ID." - -/obj/item/card/id/syndi_scan_only/afterattack(obj/item/O, mob/user, proximity) - if(!proximity) - return - if(istype(O, /obj/item/card/id)) - var/obj/item/card/id/I = O - if(isliving(user) && user.mind) - if(user.mind.special_role) - to_chat(user, "The card's microscanners activate as you pass it over [I], copying its access.") - access |= I.access // Don't copy access if user isn't an antag -- to prevent metagaming - /obj/item/card/id/captains_spare name = "captain's spare ID" desc = "The spare ID of the captain. Keep this secured." diff --git a/code/game/objects/items/weapons/grenades/chem_grenade.dm b/code/game/objects/items/weapons/grenades/chem_grenade.dm index 4b67c9867856..9f468b673fd1 100644 --- a/code/game/objects/items/weapons/grenades/chem_grenade.dm +++ b/code/game/objects/items/weapons/grenades/chem_grenade.dm @@ -114,12 +114,15 @@ /obj/item/grenade/hit_reaction(mob/living/carbon/human/owner, atom/movable/hitby, attack_text = "the attack", final_block_chance = 0, damage = 0, attack_type = MELEE_ATTACK) var/obj/item/projectile/P = hitby if(damage && attack_type == PROJECTILE_ATTACK && P.damage_type != STAMINA && prob(15)) - owner.visible_message("[attack_text] hits [owner]'s [src], setting it off! What a shot!") + owner.visible_message("[hitby] hits [owner]'s [name], setting it off! What a shot!") var/turf/T = get_turf(src) log_game("A projectile ([hitby]) detonated a grenade held by [key_name(owner)] at [COORD(T)]") add_attack_logs(P.firer, owner, "A projectile ([hitby]) detonated a grenade held", ATKLOG_FEW) prime() - return 1 //It hit the grenade, not them + if(!QDELETED(src)) // some grenades don't detonate but we want them destroyed, otherwise you can just hold empty grenades as shields. + qdel(src) + return TRUE + return ..() /obj/item/grenade/chem_grenade/attackby(obj/item/I, mob/user, params) if(istype(I,/obj/item/hand_labeler)) diff --git a/code/game/objects/items/weapons/grenades/grenade.dm b/code/game/objects/items/weapons/grenades/grenade.dm index 0d2c6535098d..b51fb00bfd49 100644 --- a/code/game/objects/items/weapons/grenades/grenade.dm +++ b/code/game/objects/items/weapons/grenades/grenade.dm @@ -11,6 +11,7 @@ slot_flags = ITEM_SLOT_BELT resistance_flags = FLAMMABLE max_integrity = 40 + flags_2 = RANDOM_BLOCKER_2 /// Has the pin been pulled? var/active = FALSE /// Time between the pin being pulled and detonation. diff --git a/code/game/objects/items/weapons/storage/garment.dm b/code/game/objects/items/weapons/storage/garment.dm index b931ea2a76c4..7dc9fc8bea69 100644 --- a/code/game/objects/items/weapons/storage/garment.dm +++ b/code/game/objects/items/weapons/storage/garment.dm @@ -48,6 +48,8 @@ new /obj/item/clothing/glasses/sunglasses(src) new /obj/item/clothing/glasses/hud/security/sunglasses(src) new /obj/item/clothing/glasses/hud/health/sunglasses(src) + new /obj/item/clothing/head/helmet/space/plasmaman/captain(src) + new /obj/item/clothing/under/plasmaman/captain(src) /obj/item/storage/bag/garment/head_of_personnel name = "head of personnel's garment bag" @@ -71,6 +73,8 @@ new /obj/item/clothing/shoes/white(src) new /obj/item/clothing/glasses/sunglasses(src) new /obj/item/clothing/glasses/hud/skills/sunglasses(src) + new /obj/item/clothing/head/helmet/space/plasmaman/hop(src) + new /obj/item/clothing/under/plasmaman/hop(src) /obj/item/storage/bag/garment/head_of_security name = "head of security's garment bag" @@ -88,6 +92,8 @@ new /obj/item/clothing/under/rank/security/head_of_security/skirt(src) new /obj/item/clothing/under/rank/security/head_of_security/skirt/corporate(src) new /obj/item/clothing/glasses/hud/security/sunglasses(src) + new /obj/item/clothing/head/helmet/space/plasmaman/security/hos(src) + new /obj/item/clothing/under/plasmaman/security/hos(src) /obj/item/storage/bag/garment/research_director name = "research director's garment bag" @@ -104,6 +110,8 @@ new /obj/item/clothing/glasses/science(src) new /obj/item/clothing/glasses/welding/superior(src) new /obj/item/clothing/glasses/hud/diagnostic/sunglasses(src) + new /obj/item/clothing/head/helmet/space/plasmaman/rd(src) + new /obj/item/clothing/under/plasmaman/rd(src) /obj/item/storage/bag/garment/chief_medical_officer @@ -124,6 +132,8 @@ new /obj/item/clothing/shoes/white(src) new /obj/item/clothing/shoes/brown (src) new /obj/item/clothing/gloves/color/latex/nitrile(src) + new /obj/item/clothing/head/helmet/space/plasmaman/cmo(src) + new /obj/item/clothing/under/plasmaman/cmo(src) /obj/item/storage/bag/garment/chief_engineer name = "chief engineer's garment bag" @@ -141,6 +151,8 @@ new /obj/item/clothing/glasses/welding/superior(src) new /obj/item/clothing/glasses/meson/sunglasses(src) new /obj/item/clothing/gloves/color/yellow(src) + new /obj/item/clothing/head/helmet/space/plasmaman/engineering/ce(src) + new /obj/item/clothing/under/plasmaman/engineering/ce(src) /obj/item/storage/bag/garment/nanotrasen_representative name = "\improper Nanotrasen representative's garment bag" @@ -157,6 +169,8 @@ new /obj/item/clothing/glasses/hud/skills/sunglasses(src) new /obj/item/clothing/glasses/sunglasses(src) new /obj/item/clothing/gloves/color/white(src) + new /obj/item/clothing/head/helmet/space/plasmaman/white(src) + new /obj/item/clothing/under/plasmaman/enviroslacks(src) /obj/item/storage/bag/garment/magistrate name = "magistrate's garment bag" @@ -172,6 +186,8 @@ new /obj/item/clothing/shoes/centcom(src) new /obj/item/clothing/glasses/sunglasses(src) new /obj/item/clothing/gloves/color/white(src) + new /obj/item/clothing/head/helmet/space/plasmaman/white(src) + new /obj/item/clothing/under/plasmaman/enviroslacks(src) /obj/item/storage/bag/garment/blueshield name = "blueshield's garment bag" @@ -193,6 +209,8 @@ new /obj/item/clothing/glasses/hud/health/sunglasses(src) new /obj/item/clothing/glasses/hud/skills/sunglasses(src) new /obj/item/clothing/accessory/blue(src) + new /obj/item/clothing/head/helmet/space/plasmaman/blueshield(src) + new /obj/item/clothing/under/plasmaman/blueshield(src) /obj/item/storage/bag/garment/quartermaster name = "quartermaster's garment bag" @@ -213,6 +231,8 @@ new /obj/item/clothing/suit/storage/hazardvest/qm(src) new /obj/item/clothing/gloves/color/black(src) new /obj/item/tank/internals/emergency_oxygen/double(src) + new /obj/item/clothing/head/helmet/space/plasmaman/cargo(src) + new /obj/item/clothing/under/plasmaman/cargo(src) /obj/item/storage/bag/garment/warden name = "warden's garment bag" @@ -230,6 +250,8 @@ new /obj/item/clothing/under/rank/security/warden/skirt/corporate(src) new /obj/item/clothing/mask/gas/sechailer/warden(src) new /obj/item/clothing/glasses/hud/security/sunglasses(src) + new /obj/item/clothing/head/helmet/space/plasmaman/security/warden(src) + new /obj/item/clothing/under/plasmaman/security/warden(src) /obj/item/storage/bag/garment/detective name = "detective's garment bag" @@ -270,6 +292,8 @@ new /obj/item/clothing/gloves/ring/silver(src) new /obj/item/clothing/gloves/ring/gold(src) new /obj/item/clothing/gloves/ring/gold(src) + new /obj/item/clothing/head/helmet/space/plasmaman/chaplain(src) + new /obj/item/clothing/under/plasmaman/chaplain(src) /obj/item/storage/bag/garment/psychologist name = "psychologist's garment bag" @@ -285,6 +309,8 @@ new /obj/item/clothing/glasses/hud/health(src) new /obj/item/clothing/glasses/hud/skills(src) new /obj/item/clothing/accessory/blue(src) + new /obj/item/clothing/head/helmet/space/plasmaman(src) + new /obj/item/clothing/under/plasmaman(src) /obj/item/storage/bag/garment/paramedic name = "paramedic's garment bag" @@ -299,6 +325,8 @@ new /obj/item/clothing/gloves/color/latex(src) new /obj/item/clothing/gloves/color/latex/nitrile(src) new /obj/item/clothing/shoes/black(src) + new /obj/item/clothing/head/helmet/space/plasmaman/medical(src) + new /obj/item/clothing/under/plasmaman/medical(src) /obj/item/storage/bag/garment/explorer name = "explorer's garment bag" diff --git a/code/game/objects/items/weapons/stunbaton.dm b/code/game/objects/items/weapons/stunbaton.dm index 304b679137f7..4358bd0f724f 100644 --- a/code/game/objects/items/weapons/stunbaton.dm +++ b/code/game/objects/items/weapons/stunbaton.dm @@ -334,6 +334,9 @@ desc = "A piece of scrap metal wired directly to your power cell." hitcost = 100 +/obj/item/melee/baton/loaded/borg_stun_arm/screwdriver_act(mob/living/user, obj/item/I) + return FALSE + /obj/item/melee/baton/flayerprod name = "stunprod" desc = "A mechanical mass which you can use to incapacitate someone with." diff --git a/code/game/turfs/simulated/river.dm b/code/game/turfs/simulated/river.dm index 384f75a953fd..ef8c45d74f81 100644 --- a/code/game/turfs/simulated/river.dm +++ b/code/game/turfs/simulated/river.dm @@ -107,7 +107,7 @@ GLOBAL_LIST_EMPTY(river_waypoint_presets) else var/turf/river_turf = cur_turf.ChangeTurf(river_turf_type, ignore_air = TRUE) if(prob(1)) - new /obj/effect/spawner/bridge(river_turf) + new /obj/effect/spawner/dynamic_bridge(river_turf) spread_turf(river_turf, spread_prob, spread_prob_loss, whitelist_area_type) for(var/WP in river_nodes) @@ -135,7 +135,7 @@ GLOBAL_LIST_EMPTY(river_waypoint_presets) if(!istype(T, start_turf.type) && T.ChangeTurf(start_turf.type, ignore_air = TRUE) && prob(probability)) spread_turf(T, probability - prob_loss, prob_loss, whitelisted_area) if(prob(1)) - new /obj/effect/spawner/bridge(T) + new /obj/effect/spawner/dynamic_bridge(T) for(var/F in diagonal_turfs) //diagonal turfs only sometimes change, but will always spread if changed var/turf/T = F @@ -144,7 +144,7 @@ GLOBAL_LIST_EMPTY(river_waypoint_presets) else if(istype(T, whitelist_turf_type) && !istype(T, start_turf.type)) T.ChangeTurf(shoreline_turf_type, ignore_air = TRUE) if(prob(1)) - new /obj/effect/spawner/bridge(T) + new /obj/effect/spawner/dynamic_bridge(T) #undef RIVER_MAX_X #undef RIVER_MAX_Y diff --git a/code/modules/antagonists/_common/antag_datum.dm b/code/modules/antagonists/_common/antag_datum.dm index 8c156e9e3443..14657fde3221 100644 --- a/code/modules/antagonists/_common/antag_datum.dm +++ b/code/modules/antagonists/_common/antag_datum.dm @@ -22,7 +22,7 @@ GLOBAL_LIST_EMPTY(antagonists) /// Should we replace the role-banned player with a ghost? var/replace_banned = TRUE /// List of objectives connected to this datum. - var/datum/objective_holder/objective_holder + VAR_PRIVATE/datum/objective_holder/objective_holder /// Antagonist datum specific information that appears in the player's notes. Information stored here will be removed when the datum is removed from the player. var/antag_memory /// The special role that will be applied to the owner's `special_role` var. i.e. `SPECIAL_ROLE_TRAITOR`, `SPECIAL_ROLE_VAMPIRE`. @@ -287,22 +287,22 @@ GLOBAL_LIST_EMPTY(antagonists) */ /datum/antagonist/proc/has_antag_objectives(include_team = TRUE) . = FALSE - if(include_team) + . |= objective_holder.has_objectives() + if(!. && include_team) var/datum/team/team = get_team() if(istype(team)) . |= team.objective_holder.has_objectives() - . |= objective_holder.has_objectives() /** * Get all of this antagonist's objectives, including from the team. */ /datum/antagonist/proc/get_antag_objectives(include_team = TRUE) . = list() + . |= objective_holder.get_objectives() if(include_team) var/datum/team/team = get_team() if(istype(team)) . |= team.objective_holder.get_objectives() - . |= objective_holder.get_objectives() /** * Proc called when the datum is given to a mind. diff --git a/code/modules/antagonists/changeling/powers/mutations.dm b/code/modules/antagonists/changeling/powers/mutations.dm index e46251f852f4..146cabfa1a47 100644 --- a/code/modules/antagonists/changeling/powers/mutations.dm +++ b/code/modules/antagonists/changeling/powers/mutations.dm @@ -517,7 +517,7 @@ flags = NODROP | DROPDEL body_parts_covered = UPPER_TORSO|LOWER_TORSO|LEGS|FEET|ARMS|HANDS armor = list(MELEE = 40, BULLET = 40, LASER = 40, ENERGY = 20, BOMB = 10, RAD = 0, FIRE = 90, ACID = 90) - flags_inv = HIDEJUMPSUIT + flags_inv = HIDEJUMPSUIT | HIDESHOES cold_protection = 0 heat_protection = 0 sprite_sheets = null diff --git a/code/modules/antagonists/traitor/datum_traitor.dm b/code/modules/antagonists/traitor/datum_traitor.dm index d392e6fe5f67..71c9c97ca6c4 100644 --- a/code/modules/antagonists/traitor/datum_traitor.dm +++ b/code/modules/antagonists/traitor/datum_traitor.dm @@ -274,7 +274,7 @@ RESTRICT_TYPE(/datum/antagonist/traitor) return "[GLOB.current_date_string], [station_time_timestamp()]\n[station_name()], [get_area_name(owner.current, TRUE)]\nBEGIN_MISSION" /datum/antagonist/traitor/proc/reveal_delayed_objectives() - for(var/datum/objective/delayed/delayed_obj in objective_holder.objectives) + for(var/datum/objective/delayed/delayed_obj in get_antag_objectives(FALSE)) delayed_obj.reveal_objective() if(!owner?.current) diff --git a/code/modules/asset_cache/assets/asset_chem_master.dm b/code/modules/asset_cache/assets/asset_chem_master.dm index 7371b807289a..8b5e867a1de1 100644 --- a/code/modules/asset_cache/assets/asset_chem_master.dm +++ b/code/modules/asset_cache/assets/asset_chem_master.dm @@ -5,7 +5,7 @@ /datum/asset/spritesheet/chem_master/create_spritesheets() for(var/pill_type = 1 to 20) Insert("pill[pill_type]", 'icons/obj/chemical.dmi', "pill[pill_type]") - for(var/bottle_type in list("bottle", "small_bottle", "wide_bottle", "round_bottle", "reagent_bottle")) + for(var/bottle_type in list("bottle", "reagent_bottle")) Insert(bottle_type, 'icons/obj/chemical.dmi', bottle_type) /datum/asset/spritesheet/chem_master/ModifyInserted(icon/pre_asset) diff --git a/code/modules/asset_cache/assets/asset_job_icons.dm b/code/modules/asset_cache/assets/asset_job_icons.dm new file mode 100644 index 000000000000..345ee7122c5c --- /dev/null +++ b/code/modules/asset_cache/assets/asset_job_icons.dm @@ -0,0 +1,12 @@ +/// All job icon sprites, as visible on a security HUD. Used by orbit menu. +/datum/asset/spritesheet/job_icons + name = "job_icons" + +/datum/asset/spritesheet/job_icons/create_spritesheets() + var/list/states = GLOB.joblist + "prisoner" + "centcom" + "solgov" + "soviet" + "unknown" + for(var/state in states) + Insert(ckey(state), 'icons/mob/hud/job_assets.dmi', ckey(state)) + +/datum/asset/spritesheet/job_icons/ModifyInserted(icon/pre_asset) + pre_asset.Scale(16, 16) + return pre_asset diff --git a/code/modules/asset_cache/assets/asset_orbit_icons.dm b/code/modules/asset_cache/assets/asset_orbit_icons.dm deleted file mode 100644 index edc7c9923e1d..000000000000 --- a/code/modules/asset_cache/assets/asset_orbit_icons.dm +++ /dev/null @@ -1,12 +0,0 @@ -/// Sprites for Orbit Role UI -/datum/asset/spritesheet/orbit_job - name = "orbit_job" - -/datum/asset/spritesheet/orbit_job/create_spritesheets() - var/list/states = GLOB.joblist + "prisoner" + "centcom" + "solgov" + "soviet" + "unknown" - for(var/state in states) - Insert(ckey(state), 'icons/mob/hud/job_assets.dmi', ckey(state)) - -/datum/asset/spritesheet/orbit_job/ModifyInserted(icon/pre_asset) - pre_asset.Scale(16, 16) - return pre_asset diff --git a/code/modules/awaymissions/mission_code/ruins/nian_freighter.dm b/code/modules/awaymissions/mission_code/ruins/nian_freighter.dm new file mode 100644 index 000000000000..9372018e5396 --- /dev/null +++ b/code/modules/awaymissions/mission_code/ruins/nian_freighter.dm @@ -0,0 +1,30 @@ +/obj/item/paper/fluff/ruins/nian_freighter/manifest + name = "Voidhopper of Nexus Shipping Manifest" + info = {" +

Voidhopper of Nexus Shipping Manifest

+
+
Order: #7934
Destination: + The destination seems to have been blacked out.
Requested By: + Athena, Praetorian of Gliese
CONTENTS:
+ +
CHECK CONTENTS AND SIGN BELOW THE LINE TO CONFIRM RECEIPT OF GOODS +
+ X: Athena, Praetorian of Gliese + "} + icon_state = "paper_words" diff --git a/code/modules/awaymissions/mission_code/ruins/oldstation.dm b/code/modules/awaymissions/mission_code/ruins/oldstation.dm index f0f893d7b124..5fa4cb43baff 100644 --- a/code/modules/awaymissions/mission_code/ruins/oldstation.dm +++ b/code/modules/awaymissions/mission_code/ruins/oldstation.dm @@ -50,6 +50,7 @@ // MARK: EQUIPMENT ////////////////////////////// /obj/item/storage/firstaid/ancient + name = "first-aid kit" icon_state = "firstaid" desc = "A first aid kit with the ability to heal common types of injuries." diff --git a/code/modules/clothing/head/misc_special.dm b/code/modules/clothing/head/misc_special.dm index 41b8cd5ea052..35c40863d251 100644 --- a/code/modules/clothing/head/misc_special.dm +++ b/code/modules/clothing/head/misc_special.dm @@ -24,7 +24,7 @@ armor = list(MELEE = 10, BULLET = 0, LASER = 0, ENERGY = 0, BOMB = 0, RAD = 0, FIRE = INFINITY, ACID = 75) flags_inv = (HIDEMASK|HIDEEARS|HIDEEYES|HIDEFACE) actions_types = list(/datum/action/item_action/toggle) - visor_flags_inv = HIDEMASK|HIDEEARS|HIDEEYES|HIDEFACE + visor_flags_inv = HIDEMASK|HIDEEYES|HIDEFACE resistance_flags = FIRE_PROOF sprite_sheets = list( diff --git a/code/modules/clothing/suits/armor_suits.dm b/code/modules/clothing/suits/armor_suits.dm index 94c41cd423f4..1657f320aa6a 100644 --- a/code/modules/clothing/suits/armor_suits.dm +++ b/code/modules/clothing/suits/armor_suits.dm @@ -229,7 +229,6 @@ icon_state = "captain_jacket" body_parts_covered = UPPER_TORSO|LOWER_TORSO|ARMS armor = list(MELEE = 40, BULLET = 20, LASER = 25, ENERGY = 5, BOMB = 15, RAD = 0, FIRE = INFINITY, ACID = 450) - flags_inv = HIDEJUMPSUIT /obj/item/clothing/suit/armor/vest/capcarapace/jacket/tunic name = "captain's tunic" @@ -264,7 +263,6 @@ cold_protection = UPPER_TORSO|LOWER_TORSO|LEGS|FEET|ARMS|HANDS heat_protection = UPPER_TORSO|LOWER_TORSO|LEGS|FEET|ARMS|HANDS armor = list(MELEE = 50, BULLET = 5, LASER = 5, ENERGY = 5, BOMB = 0, RAD = 0, FIRE = 200, ACID = 200) - flags_inv = HIDEJUMPSUIT strip_delay = 80 put_on_delay = 60 sprite_sheets = list( @@ -726,13 +724,13 @@ flags_2 = RAD_PROTECT_CONTENTS_2 body_parts_covered = UPPER_TORSO|LOWER_TORSO|LEGS|FEET|ARMS|HANDS slowdown = 3 - flags_inv = HIDEGLOVES|HIDESHOES|HIDEJUMPSUIT + flags_inv = HIDEGLOVES|HIDEJUMPSUIT hide_tail_by_species = list("Vox") /obj/item/clothing/suit/armor/tdome armor = list(MELEE = 200, BULLET = 200, LASER = 50, ENERGY = 50, BOMB = INFINITY, RAD = INFINITY, FIRE = 450, ACID = 450) body_parts_covered = UPPER_TORSO|LOWER_TORSO|LEGS|FEET|ARMS|HANDS - flags_inv = HIDEGLOVES|HIDESHOES|HIDEJUMPSUIT + flags_inv = HIDEGLOVES|HIDEJUMPSUIT flags = THICKMATERIAL flags_2 = RAD_PROTECT_CONTENTS_2 cold_protection = UPPER_TORSO|LOWER_TORSO|LEGS|FEET|ARMS|HANDS diff --git a/code/modules/clothing/suits/job_suits.dm b/code/modules/clothing/suits/job_suits.dm index f18c22133f26..351ba06560fe 100644 --- a/code/modules/clothing/suits/job_suits.dm +++ b/code/modules/clothing/suits/job_suits.dm @@ -72,7 +72,7 @@ icon_state = "monkrobe" item_state = "monkrobe" body_parts_covered = UPPER_TORSO|LOWER_TORSO|LEGS|ARMS|HANDS - flags_inv = HIDESHOES|HIDEJUMPSUIT + flags_inv = HIDEJUMPSUIT hoodtype = /obj/item/clothing/head/hooded/monk_hood allowed = list(/obj/item/storage/bible, /obj/item/nullrod, /obj/item/reagent_containers/drinks/bottle/holywater, /obj/item/storage/fancy/candle_box, /obj/item/candle, /obj/item/tank/internals/emergency_oxygen) diff --git a/code/modules/clothing/suits/misc_suits.dm b/code/modules/clothing/suits/misc_suits.dm index befeb45c78d6..2a484557e8f7 100644 --- a/code/modules/clothing/suits/misc_suits.dm +++ b/code/modules/clothing/suits/misc_suits.dm @@ -67,7 +67,6 @@ desc = "Yarr." icon_state = "hgpirate" item_state = "hgpirate" - flags_inv = HIDEJUMPSUIT /obj/item/clothing/suit/cyborg_suit @@ -149,7 +148,7 @@ icon_state = "hastur" item_state = "hastur" body_parts_covered = UPPER_TORSO|LOWER_TORSO|LEGS|ARMS - flags_inv = HIDEGLOVES|HIDESHOES|HIDEJUMPSUIT + flags_inv = HIDESHOES|HIDEJUMPSUIT /obj/item/clothing/suit/imperium_monk diff --git a/code/modules/food_and_drinks/food/condiment.dm b/code/modules/food_and_drinks/food/condiment.dm index fc68d964b4e3..bb86363c0b29 100644 --- a/code/modules/food_and_drinks/food/condiment.dm +++ b/code/modules/food_and_drinks/food/condiment.dm @@ -118,6 +118,7 @@ icon_state = "emptycondiment" name = "condiment bottle" desc = "An empty condiment bottle." + update_appearance(UPDATE_NAME) /obj/item/reagent_containers/condiment/enzyme name = "universal enzyme" diff --git a/code/modules/hydroponics/seeds.dm b/code/modules/hydroponics/seeds.dm index 8d6e08f6fcc8..e98fd98a52b8 100644 --- a/code/modules/hydroponics/seeds.dm +++ b/code/modules/hydroponics/seeds.dm @@ -427,8 +427,7 @@ if(copytext(name, 1, 13) == "experimental") // Don't delete 'experimental' N = "experimental " + N name = N + V - if(GetComponent(/datum/component/label)) - GetComponent(/datum/component/label).apply_label() // Don't delete labels + update_appearance(UPDATE_NAME) //Append name additives such as from labels diff --git a/code/modules/instruments/guitar.dm b/code/modules/instruments/guitar.dm index 25a3073e7a90..a03153e29063 100644 --- a/code/modules/instruments/guitar.dm +++ b/code/modules/instruments/guitar.dm @@ -34,3 +34,21 @@ "48"='sound/instruments/synthesis_samples/guitar/crisis_muted/c3.ogg', "60"='sound/instruments/synthesis_samples/guitar/crisis_muted/c4.ogg', "72"='sound/instruments/synthesis_samples/guitar/crisis_muted/c5.ogg') + +/datum/instrument/guitar/synth_legacy // A synth version of legacy for efficiency. Better for crowded scores. + name = "Synth Legacy Guitar" + id = "sleggt" + real_samples = list("36"='sound/instruments/synthesis_samples/guitar/synth_legacy/cn3.ogg', + "48"='sound/instruments/synthesis_samples/guitar/synth_legacy/cn4.ogg', + "60"='sound/instruments/synthesis_samples/guitar/synth_legacy/cn5.ogg', + "72"='sound/instruments/synthesis_samples/guitar/synth_legacy/cn6.ogg') + +/datum/instrument/guitar/pgm_clean + name = "Pigments Clean Guitar" + id = "piclgt" + real_samples = list("36"='sound/instruments/synthesis_samples/guitar/pgm_clean/c3.ogg', + "48"='sound/instruments/synthesis_samples/guitar/pgm_clean/c4.ogg', + "60"='sound/instruments/synthesis_samples/guitar/pgm_clean/c5.ogg', + "72"='sound/instruments/synthesis_samples/guitar/pgm_clean/c6.ogg', + "84"='sound/instruments/synthesis_samples/guitar/pgm_clean/c7.ogg') + diff --git a/code/modules/instruments/objs/items/instrument_items.dm b/code/modules/instruments/objs/items/instrument_items.dm index a524685b7d96..6ed3fe637c08 100644 --- a/code/modules/instruments/objs/items/instrument_items.dm +++ b/code/modules/instruments/objs/items/instrument_items.dm @@ -40,7 +40,7 @@ item_state = "guitar" attack_verb = list("played metal on", "serenaded", "crashed", "smashed") hitsound = 'sound/weapons/guitarslam.ogg' - allowed_instrument_ids = list("guitar", "csteelgt", "cnylongt", "ccleangt", "cmutedgt") + allowed_instrument_ids = list("guitar", "csteelgt", "cnylongt", "ccleangt", "cmutedgt", "sleggt", "piclgt") /// This is a special guitar for the emagged service borg that hits pretty hard and can still play music. Clonk. /obj/item/instrument/guitar/cyborg diff --git a/code/modules/mining/mine_items.dm b/code/modules/mining/mine_items.dm index 682a21b7a022..b9ec9519f975 100644 --- a/code/modules/mining/mine_items.dm +++ b/code/modules/mining/mine_items.dm @@ -42,6 +42,10 @@ new /obj/item/clothing/suit/jacket/bomber/mining(src) new /obj/item/clothing/suit/hooded/wintercoat/miner(src) new /obj/item/clothing/suit/hooded/wintercoat/miner(src) + new /obj/item/clothing/head/helmet/space/plasmaman/mining(src) + new /obj/item/clothing/head/helmet/space/plasmaman/mining(src) + new /obj/item/clothing/under/plasmaman/mining(src) + new /obj/item/clothing/under/plasmaman/mining(src) /obj/structure/closet/secure_closet/miner name = "miner's equipment" diff --git a/code/modules/mob/dead/observer/orbit.dm b/code/modules/mob/dead/observer/orbit.dm index fb50bc42bae8..9f13488cba08 100644 --- a/code/modules/mob/dead/observer/orbit.dm +++ b/code/modules/mob/dead/observer/orbit.dm @@ -13,7 +13,7 @@ GLOBAL_DATUM_INIT(orbit_menu, /datum/orbit_menu, new) /datum/orbit_menu/ui_assets(mob/user) return list( - get_asset_datum(/datum/asset/spritesheet/orbit_job) + get_asset_datum(/datum/asset/spritesheet/job_icons) ) /datum/orbit_menu/ui_act(action, list/params, datum/tgui/ui) diff --git a/code/modules/mob/living/carbon/human/human_inventory.dm b/code/modules/mob/living/carbon/human/human_inventory.dm index b9ca980f82ea..e0c553591336 100644 --- a/code/modules/mob/living/carbon/human/human_inventory.dm +++ b/code/modules/mob/living/carbon/human/human_inventory.dm @@ -79,6 +79,8 @@ update_inv_w_uniform() if(I.flags_inv & HIDESHOES) update_inv_shoes() + if(I.flags_inv & HIDEGLOVES) + update_inv_gloves() update_inv_wear_suit() else if(I == w_uniform) if(r_store) @@ -116,6 +118,8 @@ var/obj/item/clothing/head/hat = I if(hat.vision_flags || hat.see_in_dark || !isnull(hat.lighting_alpha)) update_sight() + if(I.flags_inv & HIDEEARS) + update_inv_ears() head_update(I) update_inv_head() update_misc_effects() @@ -139,6 +143,8 @@ update_head_accessory() if(internal && !get_organ_slot("breathing_tube")) internal = null + if(I.flags_inv & HIDEEARS) + update_inv_ears() wear_mask_update(I, toggle_off = FALSE) sec_hud_set_ID() update_misc_effects() @@ -211,6 +217,8 @@ update_head_accessory() if(length(hud_list)) sec_hud_set_ID() + if(wear_mask.flags_inv & HIDEEARS) + update_inv_ears() wear_mask_update(I, toggle_off = TRUE) update_misc_effects() update_inv_wear_mask() @@ -281,6 +289,8 @@ if(hat.vision_flags || hat.see_in_dark || !isnull(hat.lighting_alpha)) update_sight() // this calls update_inv_head() on its own + if(head.flags_inv & HIDEEARS) + update_inv_ears() update_misc_effects() head_update(I) if(ITEM_SLOT_SHOES) @@ -288,8 +298,12 @@ update_inv_shoes() if(ITEM_SLOT_OUTER_SUIT) wear_suit = I + if(wear_suit.flags_inv & HIDEJUMPSUIT) + update_inv_w_uniform() if(wear_suit.flags_inv & HIDESHOES) update_inv_shoes() + if(wear_suit.flags_inv & HIDEGLOVES) + update_inv_gloves() update_inv_wear_suit() if(ITEM_SLOT_JUMPSUIT) w_uniform = I diff --git a/code/modules/mob/living/carbon/human/human_update_icons.dm b/code/modules/mob/living/carbon/human/human_update_icons.dm index a50446542ffa..3916da7ae5df 100644 --- a/code/modules/mob/living/carbon/human/human_update_icons.dm +++ b/code/modules/mob/living/carbon/human/human_update_icons.dm @@ -581,38 +581,40 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) if(w_uniform && istype(w_uniform, /obj/item/clothing/under)) update_hud_uniform(w_uniform) - var/t_color = w_uniform.item_color - if(!t_color) - t_color = icon_state - - var/mutable_appearance/standing = mutable_appearance('icons/mob/clothing/under/misc.dmi', "[t_color]_s", layer = -UNIFORM_LAYER) - - if(w_uniform.icon_override) - standing.icon = w_uniform.icon_override - if(w_uniform.sprite_sheets) - standing.icon = w_uniform.sprite_sheets["Human"] - if(w_uniform.sprite_sheets[dna.species.sprite_sheet_name] && icon_exists(w_uniform.sprite_sheets[dna.species.sprite_sheet_name], "[t_color]_s")) - standing.icon = w_uniform.sprite_sheets[dna.species.sprite_sheet_name] - - if(w_uniform.blood_DNA) - var/image/bloodsies = image("icon" = dna.species.blood_mask, "icon_state" = "uniformblood") - bloodsies.color = w_uniform.blood_color - standing.overlays += bloodsies + if(!wear_suit || !(wear_suit.flags_inv & HIDEJUMPSUIT)) - if(length(w_uniform.accessories)) //WE CHECKED THE TYPE ABOVE. THIS REALLY SHOULD BE FINE. // oh my god kys whoever made this if statement jfc :gun: - for(var/obj/item/clothing/accessory/A in w_uniform:accessories) - var/tie_color = A.item_color - if(!tie_color) - tie_color = A.icon_state - if(A.icon_override) - standing.overlays += image("icon" = A.icon_override, "icon_state" = "[A.icon_state]") - else if(A.sprite_sheets && A.sprite_sheets[dna.species.sprite_sheet_name]) - standing.overlays += image("icon" = A.sprite_sheets[dna.species.sprite_sheet_name], "icon_state" = "[A.icon_state]") - else - standing.overlays += image("icon" = 'icons/mob/ties.dmi', "icon_state" = "[tie_color]") - standing.alpha = w_uniform.alpha - standing.color = w_uniform.color - overlays_standing[UNIFORM_LAYER] = standing + var/t_color = w_uniform.item_color + if(!t_color) + t_color = icon_state + + var/mutable_appearance/standing = mutable_appearance('icons/mob/clothing/under/misc.dmi', "[t_color]_s", layer = -UNIFORM_LAYER) + + if(w_uniform.icon_override) + standing.icon = w_uniform.icon_override + if(w_uniform.sprite_sheets) + standing.icon = w_uniform.sprite_sheets["Human"] + if(w_uniform.sprite_sheets[dna.species.sprite_sheet_name] && icon_exists(w_uniform.sprite_sheets[dna.species.sprite_sheet_name], "[t_color]_s")) + standing.icon = w_uniform.sprite_sheets[dna.species.sprite_sheet_name] + + if(w_uniform.blood_DNA) + var/image/bloodsies = image("icon" = dna.species.blood_mask, "icon_state" = "uniformblood") + bloodsies.color = w_uniform.blood_color + standing.overlays += bloodsies + + if(length(w_uniform.accessories)) //WE CHECKED THE TYPE ABOVE. THIS REALLY SHOULD BE FINE. // oh my god kys whoever made this if statement jfc :gun: + for(var/obj/item/clothing/accessory/A in w_uniform:accessories) + var/tie_color = A.item_color + if(!tie_color) + tie_color = A.icon_state + if(A.icon_override) + standing.overlays += image("icon" = A.icon_override, "icon_state" = "[A.icon_state]") + else if(A.sprite_sheets && A.sprite_sheets[dna.species.sprite_sheet_name]) + standing.overlays += image("icon" = A.sprite_sheets[dna.species.sprite_sheet_name], "icon_state" = "[A.icon_state]") + else + standing.overlays += image("icon" = 'icons/mob/ties.dmi', "icon_state" = "[tie_color]") + standing.alpha = w_uniform.alpha + standing.color = w_uniform.color + overlays_standing[UNIFORM_LAYER] = standing else if(!dna.species.nojumpsuit) var/list/uniform_slots = list() @@ -671,22 +673,24 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) if(gloves) update_hud_gloves(gloves) - var/t_state = gloves.item_state - if(!t_state) t_state = gloves.icon_state + if(!wear_suit || !(wear_suit.flags_inv & HIDEGLOVES)) - var/mutable_appearance/standing - if(gloves.icon_override) - standing = mutable_appearance(gloves.icon_override, "[gloves.icon_state]", layer = -GLOVES_LAYER) - else if(gloves.sprite_sheets && gloves.sprite_sheets[dna.species.sprite_sheet_name]) - standing = mutable_appearance(gloves.sprite_sheets[dna.species.sprite_sheet_name], "[t_state]", layer = -GLOVES_LAYER) - else - standing = mutable_appearance('icons/mob/clothing/hands.dmi', "[t_state]", layer = -GLOVES_LAYER) + var/t_state = gloves.item_state + if(!t_state) t_state = gloves.icon_state - if(gloves.blood_DNA) // No need to check for hands here because we won't have gloves on. - var/image/bloodsies = image("icon" = dna.species.blood_mask, "icon_state" = "bloodyhands") - bloodsies.color = gloves.blood_color - standing.overlays += bloodsies - overlays_standing[GLOVES_LAYER] = standing + var/mutable_appearance/standing + if(gloves.icon_override) + standing = mutable_appearance(gloves.icon_override, "[gloves.icon_state]", layer = -GLOVES_LAYER) + else if(gloves.sprite_sheets && gloves.sprite_sheets[dna.species.sprite_sheet_name]) + standing = mutable_appearance(gloves.sprite_sheets[dna.species.sprite_sheet_name], "[t_state]", layer = -GLOVES_LAYER) + else + standing = mutable_appearance('icons/mob/clothing/hands.dmi', "[t_state]", layer = -GLOVES_LAYER) + + if(gloves.blood_DNA) // No need to check for hands here because we won't have gloves on. + var/image/bloodsies = image("icon" = dna.species.blood_mask, "icon_state" = "bloodyhands") + bloodsies.color = gloves.blood_color + standing.overlays += bloodsies + overlays_standing[GLOVES_LAYER] = standing else if(blood_DNA) // Checks for hands to make sure we don't get mysterious floating blood. if(get_organ("l_hand")) @@ -755,28 +759,32 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) if(l_ear) update_hud_l_ear(l_ear) - var/left_ear_item_state = l_ear.item_state ? l_ear.item_state : l_ear.icon_state - var/left_ear_icon = 'icons/mob/clothing/ears.dmi' - if(l_ear.sprite_sheets && l_ear.sprite_sheets[dna.species.sprite_sheet_name]) - left_ear_icon = l_ear.sprite_sheets[dna.species.sprite_sheet_name] - if(l_ear.icon_override) - left_ear_item_state = "[left_ear_item_state]_l" - left_ear_icon = l_ear.icon_override + if((!head || !(head.flags_inv & HIDEEARS)) && (!wear_mask || !(wear_mask.flags_inv & HIDEEARS))) - overlays_standing[LEFT_EAR_LAYER] = mutable_appearance(left_ear_icon, left_ear_item_state, layer = -LEFT_EAR_LAYER) + var/left_ear_item_state = l_ear.item_state ? l_ear.item_state : l_ear.icon_state + var/left_ear_icon = 'icons/mob/clothing/ears.dmi' + if(l_ear.sprite_sheets && l_ear.sprite_sheets[dna.species.sprite_sheet_name]) + left_ear_icon = l_ear.sprite_sheets[dna.species.sprite_sheet_name] + if(l_ear.icon_override) + left_ear_item_state = "[left_ear_item_state]_l" + left_ear_icon = l_ear.icon_override + + overlays_standing[LEFT_EAR_LAYER] = mutable_appearance(left_ear_icon, left_ear_item_state, layer = -LEFT_EAR_LAYER) if(r_ear) update_hud_r_ear(r_ear) - var/right_ear_item_state = r_ear.item_state ? r_ear.item_state : r_ear.icon_state - var/right_ear_icon = 'icons/mob/clothing/ears.dmi' - if(r_ear.sprite_sheets && r_ear.sprite_sheets[dna.species.sprite_sheet_name]) - right_ear_icon = r_ear.sprite_sheets[dna.species.sprite_sheet_name] - if(r_ear.icon_override) - right_ear_icon = "[right_ear_item_state]_l" - right_ear_icon = r_ear.icon_override + if((!head || !(head.flags_inv & HIDEEARS)) && (!wear_mask || !(wear_mask.flags_inv & HIDEEARS))) + + var/right_ear_item_state = r_ear.item_state ? r_ear.item_state : r_ear.icon_state + var/right_ear_icon = 'icons/mob/clothing/ears.dmi' + if(r_ear.sprite_sheets && r_ear.sprite_sheets[dna.species.sprite_sheet_name]) + right_ear_icon = r_ear.sprite_sheets[dna.species.sprite_sheet_name] + if(r_ear.icon_override) + right_ear_icon = "[right_ear_item_state]_l" + right_ear_icon = r_ear.icon_override - overlays_standing[RIGHT_EAR_LAYER] = mutable_appearance(right_ear_icon, right_ear_item_state, layer = -RIGHT_EAR_LAYER) + overlays_standing[RIGHT_EAR_LAYER] = mutable_appearance(right_ear_icon, right_ear_item_state, layer = -RIGHT_EAR_LAYER) apply_overlay(LEFT_EAR_LAYER) apply_overlay(RIGHT_EAR_LAYER) diff --git a/code/modules/mob/living/simple_animal/bot/bot_construction.dm b/code/modules/mob/living/simple_animal/bot/bot_construction.dm index ade672f36864..3974ef55abed 100644 --- a/code/modules/mob/living/simple_animal/bot/bot_construction.dm +++ b/code/modules/mob/living/simple_animal/bot/bot_construction.dm @@ -401,7 +401,7 @@ qdel(I) build_step++ to_chat(user, "You add the health sensor to [src].") - update_appearance(UPDATE_NAME) + update_appearance(UPDATE_NAME|UPDATE_OVERLAYS) if(1) if(isprox(I)) diff --git a/code/modules/mob/living/simple_animal/corpse.dm b/code/modules/mob/living/simple_animal/corpse.dm index 78496dbe6117..fc0b9ac4bb5d 100644 --- a/code/modules/mob/living/simple_animal/corpse.dm +++ b/code/modules/mob/living/simple_animal/corpse.dm @@ -114,6 +114,22 @@ name = "Corpse of a Ranged Soviet" suit = /obj/item/clothing/suit/sovietcoat +/obj/effect/mob_spawn/human/corpse/soviet_nian + name = "Soviet Nian" + mob_name = "Soviet Nian" + mob_species = /datum/species/moth + hair_style = "bald" + facial_hair_style = "shaved" + outfit = /datum/outfit/soviet_nian + +/datum/outfit/soviet_nian + name = "Soviet Nian" + uniform = /obj/item/clothing/under/new_soviet + gloves = /obj/item/clothing/gloves/color/black + shoes = /obj/item/clothing/shoes/jackboots + head = /obj/item/clothing/head/ushanka + r_pocket = /obj/item/reagent_containers/drinks/drinkingglass/shotglass + l_pocket = /obj/item/reagent_containers/drinks/bottle/vodka /obj/effect/mob_spawn/human/corpse/wizard name = "Corpse of a Space Wizard" diff --git a/code/modules/mob/living/simple_animal/friendly/butterfly.dm b/code/modules/mob/living/simple_animal/friendly/butterfly.dm index e928fd850a83..70268a03723f 100644 --- a/code/modules/mob/living/simple_animal/friendly/butterfly.dm +++ b/code/modules/mob/living/simple_animal/friendly/butterfly.dm @@ -24,8 +24,8 @@ gold_core_spawnable = FRIENDLY_SPAWN initial_traits = list(TRAIT_FLYING, TRAIT_EDIBLE_BUG) -/mob/living/simple_animal/butterfly/New() - ..() +/mob/living/simple_animal/butterfly/Initialize(mapload) + . = ..() color = rgb(rand(0, 255), rand(0, 255), rand(0, 255)) /mob/living/simple_animal/butterfly/npc_safe(mob/user) diff --git a/code/modules/mob/living/simple_animal/friendly/cat.dm b/code/modules/mob/living/simple_animal/friendly/cat.dm index b716622e685a..0a36ef2f09b7 100644 --- a/code/modules/mob/living/simple_animal/friendly/cat.dm +++ b/code/modules/mob/living/simple_animal/friendly/cat.dm @@ -42,9 +42,9 @@ var/list/family = list() var/list/children = list() //Actual mob instances of children -/mob/living/simple_animal/pet/cat/Runtime/New() +/mob/living/simple_animal/pet/cat/Runtime/Initialize(mapload) + . = ..() SSpersistent_data.register(src) - ..() /mob/living/simple_animal/pet/cat/Runtime/Destroy() SSpersistent_data.registered_atoms -= src diff --git a/code/modules/mob/living/simple_animal/friendly/diona_nymph.dm b/code/modules/mob/living/simple_animal/friendly/diona_nymph.dm index 77c8b8aeb0ac..2043aa8e15d0 100644 --- a/code/modules/mob/living/simple_animal/friendly/diona_nymph.dm +++ b/code/modules/mob/living/simple_animal/friendly/diona_nymph.dm @@ -81,8 +81,9 @@ var/mob/living/simple_animal/diona/user = owner user.steal_blood() -/mob/living/simple_animal/diona/New() - ..() +/mob/living/simple_animal/diona/Initialize(mapload) + . = ..() + if(name == initial(name)) //To stop Pun-Pun becoming generic. name = "[name] ([rand(1, 1000)])" real_name = name diff --git a/code/modules/mob/living/simple_animal/friendly/farm_animals.dm b/code/modules/mob/living/simple_animal/friendly/farm_animals.dm index 04f71eb69595..32aace078b5a 100644 --- a/code/modules/mob/living/simple_animal/friendly/farm_animals.dm +++ b/code/modules/mob/living/simple_animal/friendly/farm_animals.dm @@ -221,8 +221,9 @@ gold_core_spawnable = FRIENDLY_SPAWN footstep_type = FOOTSTEP_MOB_CLAW -/mob/living/simple_animal/chick/New() - ..() +/mob/living/simple_animal/chick/Initialize(mapload) + . = ..() + pixel_x = rand(-6, 6) pixel_y = rand(0, 10) @@ -294,8 +295,8 @@ GLOBAL_VAR_INIT(chicken_count, 0) gold_core_spawnable = FRIENDLY_SPAWN footstep_type = FOOTSTEP_MOB_CLAW -/mob/living/simple_animal/chicken/New() - ..() +/mob/living/simple_animal/chicken/Initialize(mapload) + . = ..() if(!body_color) body_color = pick(validColors) icon_state = "[icon_prefix]_[body_color]" @@ -303,6 +304,7 @@ GLOBAL_VAR_INIT(chicken_count, 0) icon_dead = "[icon_prefix]_[body_color]_dead" pixel_x = rand(-6, 6) pixel_y = rand(0, 10) + update_appearance(UPDATE_ICON_STATE) GLOB.chicken_count += 1 /mob/living/simple_animal/chicken/death(gibbed) diff --git a/code/modules/mob/living/simple_animal/friendly/mouse.dm b/code/modules/mob/living/simple_animal/friendly/mouse.dm index 73232630370d..ed87da7cc89e 100644 --- a/code/modules/mob/living/simple_animal/friendly/mouse.dm +++ b/code/modules/mob/living/simple_animal/friendly/mouse.dm @@ -75,15 +75,16 @@ else if(prob(0.5)) lay_down() -/mob/living/simple_animal/mouse/New() - ..() +/mob/living/simple_animal/mouse/Initialize(mapload) + . = ..() + if(!mouse_color) - mouse_color = pick( list("brown","gray","white") ) + mouse_color = pick("brown", "gray", "white") icon_state = "mouse_[mouse_color]" icon_living = "mouse_[mouse_color]" icon_dead = "mouse_[mouse_color]_dead" icon_resting = "mouse_[mouse_color]_sleep" - update_appearance(UPDATE_DESC) + update_appearance(UPDATE_ICON_STATE|UPDATE_DESC) /mob/living/simple_animal/mouse/update_desc() . = ..() diff --git a/code/modules/mob/living/simple_animal/hostile/soviet.dm b/code/modules/mob/living/simple_animal/hostile/soviet.dm index def10ae15fc2..19d745c6ddc7 100644 --- a/code/modules/mob/living/simple_animal/hostile/soviet.dm +++ b/code/modules/mob/living/simple_animal/hostile/soviet.dm @@ -46,3 +46,36 @@ /obj/item/gun/projectile/shotgun/boltaction, /obj/item/salvage/loot/soviet) casingtype = /obj/item/ammo_casing/a762 + +/mob/living/simple_animal/hostile/soviet_nian + name = "Soviet Nian" + desc = "Buzz!" + icon = 'icons/mob/simple_human.dmi' + icon_state = "sovietnian" + icon_living = "sovietnian" + turns_per_move = 5 + response_help = "pokes the" + response_disarm = "shoves the" + response_harm = "hits the" + speed = 0 + maxHealth = 100 + health = 100 + harm_intent_damage = 5 + obj_damage = 60 + melee_damage_lower = 30 + melee_damage_upper = 30 + attacktext = "slashes" + attack_sound = 'sound/weapons/blade1.ogg' + minbodytemp = 0 + a_intent = INTENT_HARM + unsuitable_atmos_damage = 15 + faction = list("soviet") + status_flags = CANPUSH + loot = list( + /obj/effect/mob_spawn/human/corpse/soviet_nian, + /obj/item/melee/energy/sword/pirate, + /obj/item/salvage/loot/soviet + ) + del_on_death = TRUE + sentience_type = SENTIENCE_OTHER + footstep_type = FOOTSTEP_MOB_SHOE diff --git a/code/modules/mob/living/simple_animal/parrot.dm b/code/modules/mob/living/simple_animal/parrot.dm index 4968aabfb456..034401c0e127 100644 --- a/code/modules/mob/living/simple_animal/parrot.dm +++ b/code/modules/mob/living/simple_animal/parrot.dm @@ -67,8 +67,8 @@ var/parrot_speed = 5 //"Delay in world ticks between movement." according to byond. Yeah, that's BS but it does directly affect movement. Higher number = slower. var/parrot_been_shot = 0 //Parrots get a speed bonus after being shot. This will deincrement every process_ai() and at 0 the parrot will return to regular speed. - var/list/speech_buffer - var/list/available_channels + var/list/speech_buffer = list() + var/list/available_channels = list() //Headset for Poly to yell at engineers :) var/obj/item/radio/headset/ears = null @@ -80,35 +80,43 @@ //Parrots will generally sit on their pertch unless something catches their eye. //These vars store their preffered perch and if they dont have one, what they can use as a perch var/obj/parrot_perch = null - var/obj/desired_perches = null + var/list/desired_perches //Parrots are kleptomaniacs. This variable ... stores the item a parrot is holding. var/obj/item/held_item = null initial_traits = list(TRAIT_FLYING) gold_core_spawnable = FRIENDLY_SPAWN -/mob/living/simple_animal/parrot/New() - ..() - speech_buffer = list() - available_channels = list() +/mob/living/simple_animal/parrot/Initialize(mapload) + . = ..() + GLOB.hear_radio_list += src update_speak() parrot_sleep_dur = parrot_sleep_max //In case someone decides to change the max without changing the duration var - verbs.Add(/mob/living/simple_animal/parrot/proc/steal_from_ground, \ - /mob/living/simple_animal/parrot/proc/steal_from_mob, \ - /mob/living/simple_animal/parrot/verb/drop_held_item_player, \ - /mob/living/simple_animal/parrot/proc/perch_player) - - desired_perches = typecacheof(list(/obj/structure/computerframe, /obj/structure/displaycase, \ - /obj/structure/filingcabinet, /obj/machinery/teleport, \ - /obj/machinery/suit_storage_unit,/obj/machinery/clonepod, \ - /obj/machinery/dna_scannernew, /obj/machinery/tcomms, \ - /obj/machinery/nuclearbomb, /obj/machinery/particle_accelerator, \ - /obj/machinery/recharge_station, /obj/machinery/smartfridge, \ - /obj/machinery/computer)) - + verbs.Add(list( + /mob/living/simple_animal/parrot/proc/steal_from_ground, + /mob/living/simple_animal/parrot/proc/steal_from_mob, + /mob/living/simple_animal/parrot/verb/drop_held_item_player, + /mob/living/simple_animal/parrot/proc/perch_player + )) + + desired_perches = typecacheof(list( + /obj/machinery/clonepod, + /obj/machinery/computer, + /obj/machinery/dna_scannernew, + /obj/machinery/nuclearbomb, + /obj/machinery/particle_accelerator, + /obj/machinery/recharge_station, + /obj/machinery/smartfridge, + /obj/machinery/suit_storage_unit, + /obj/machinery/tcomms, + /obj/machinery/teleport, + /obj/structure/computerframe, + /obj/structure/displaycase, + /obj/structure/filingcabinet + )) /mob/living/simple_animal/parrot/add_strippable_element() AddElement(/datum/element/strippable, GLOB.strippable_parrot_items) @@ -669,12 +677,13 @@ ) unique_pet = TRUE gold_core_spawnable = NO_SPAWN + available_channels = list(":e") + +/mob/living/simple_animal/parrot/Poly/Initialize(mapload) + . = ..() -/mob/living/simple_animal/parrot/Poly/New() ears = new /obj/item/radio/headset/headset_eng(src) - available_channels = list(":e") clean_speak += "Danger! Crystal hyperstructure integrity faltering! Integrity: [rand(75, 99)]%" // Has to be here cause of the `rand()`. - ..() /mob/living/simple_animal/parrot/Poly/npc_safe(mob/user) // Hello yes, I have universal speak and I follow people around and shout out antags return FALSE diff --git a/code/modules/mob/living/simple_animal/posessed_object.dm b/code/modules/mob/living/simple_animal/posessed_object.dm index c437c30957e9..7505d6ec02e2 100644 --- a/code/modules/mob/living/simple_animal/posessed_object.dm +++ b/code/modules/mob/living/simple_animal/posessed_object.dm @@ -91,8 +91,8 @@ to_chat(src, "Your spirit has entered [src] and possessed it.
You are able to do most things a humanoid would be able to do with a [src] in their hands.
If you want to end your ghostly possession, use the 'ghost' verb, it won't penalize your ability to respawn.
") -/mob/living/simple_animal/possessed_object/New(atom/loc as obj) - ..() +/mob/living/simple_animal/possessed_object/Initialize(mapload) + . = ..() if(!isitem(loc)) // Some silly motherfucker spawned us directly via the game panel. message_admins("Possessed object improperly spawned, deleting.") // So silly admins with debug off will see the message too and not spam these things. diff --git a/code/modules/mob/mob_misc_procs.dm b/code/modules/mob/mob_misc_procs.dm index 6ce785a7c7ae..741156312a22 100644 --- a/code/modules/mob/mob_misc_procs.dm +++ b/code/modules/mob/mob_misc_procs.dm @@ -545,11 +545,11 @@ deadsay_radio_system.attempt_send_deadsay_message(subject, message) for(var/mob/M in GLOB.player_list) - if(M.client && ((!isnewplayer(M) && M.stat == DEAD) || check_rights(R_ADMIN|R_MOD,0,M)) && M.get_preference(PREFTOGGLE_CHAT_DEAD)) + if(M.client && ((!isnewplayer(M) && M.stat == DEAD) || check_rights(R_ADMIN|R_MOD,0,M) || istype(M, /mob/living/simple_animal/revenant)) && M.get_preference(PREFTOGGLE_CHAT_DEAD)) var/follow var/lname if(subject) - if(subject != M) + if(subject != M && M.stat == DEAD) follow = "([ghost_follow_link(subject, ghost=M)]) " if(M.stat != DEAD && check_rights(R_ADMIN|R_MOD,0,M)) follow = "([admin_jump_link(subject)]) " diff --git a/code/modules/mod/mod_theme.dm b/code/modules/mod/mod_theme.dm index 29a472134b73..a78287e26c02 100644 --- a/code/modules/mod/mod_theme.dm +++ b/code/modules/mod/mod_theme.dm @@ -10,13 +10,13 @@ /// Theme name for the MOD. var/name = "BASE" /// Description added to the MOD. - var/desc = "A civilian class suit by Cybersun Industries, doesn't offer much other than slightly quicker movement." + var/desc = "A basic civilian modsuit by Cybersun Industries. Environmentally sealed but doesn't offer much in the way of protection." /// Extended description on examine_more - var/extended_desc = "A third-generation, modular civilian class suit by Cybersun Industries, \ - this suit is a staple across the galaxy for civilian applications. These suits are oxygenated, \ - spaceworthy, resistant to fire and chemical threats, and are immunized against everything between \ - a sneeze and a bioweapon. However, their combat applications are incredibly minimal due to the amount of \ - armor plating being installed by default, and their actuators only lead to slightly greater speed than industrial suits." + var/extended_desc = "Easily the most common civilian modsuit in the Sector today, the Cybersun Industries CS-11 'Wanderer' is a cheap, reliable, and lightweight EVA unit suited for all manner \ + of standard extravehicular tasks. As little more than a hard-shelled space suit, the Wanderer offers little in the way of remarkable features. Its thin armor panelling is rated for micrometeoroids and little \ + else, easily faltering before any dedicated melee, projectile, or energy weapon. Its mass-produced servo systems, while quite efficient, are also underpowered, leading to mildly reduced movement, \ + though this is somewhat offset by the suit's lightweight design. Today, the Wanderer is found nearly everywhere space travel occurs, as its low price tag and ease of use make it \ + perfect for small-time traders, frontier colonies, and other civilian spacecraft." /// Default skin of the MOD. var/default_skin = "standard" /// The slot this mod theme fits on @@ -58,7 +58,7 @@ UNSEALED_LAYER = COLLAR_LAYER, SEALED_CLOTHING = THICKMATERIAL | STOPSPRESSUREDMAGE | BLOCKHAIR, - SEALED_INVISIBILITY = HIDEFACE | HIDEMASK | HIDEEYES, + SEALED_INVISIBILITY = HIDEFACE | HIDEMASK | HIDEEARS | HIDEEYES, SEALED_COVER = HEADCOVERSMOUTH | HEADCOVERSEYES, ), CHESTPLATE_FLAGS = list( @@ -82,7 +82,7 @@ UNSEALED_LAYER = null, UNSEALED_CLOTHING = THICKMATERIAL, SEALED_CLOTHING = STOPSPRESSUREDMAGE | BLOCKHAIR, - UNSEALED_INVISIBILITY = HIDEFACE | HIDEMASK | HIDEEYES, + UNSEALED_INVISIBILITY = HIDEFACE | HIDEMASK | HIDEEARS |HIDEEYES, UNSEALED_COVER = HEADCOVERSMOUTH | HEADCOVERSEYES, ), CHESTPLATE_FLAGS = list( @@ -105,7 +105,7 @@ /// We don't want the civilian skin to apply to all modsuits, that causes issues. /datum/mod_theme/standard - name = "standard" + name = "'Wanderer' standard" /datum/mod_theme/New() @@ -116,13 +116,12 @@ armor = list(MELEE = 15, BULLET = 5, LASER = 5, ENERGY = 5, BOMB = 0, RAD = 25, FIRE = 33, ACID = 33) /datum/mod_theme/engineering - name = "engineering" - desc = "An engineer-fit suit with heat and shock resistance. Cybersun Industries's classic." - extended_desc = "A classic by Cybersun Industries, and surely their claim to fame. This model is an \ - improvement upon the first-generation prototype models from before the Void War, boasting an array of features. \ - The modular flexibility of the base design has been combined with a blast-dampening insulated inner layer and \ - a shock-resistant outer layer, making the suit nigh-invulnerable against even the extremes of high-voltage electricity. \ - However, the capacity for modification remains the same as civilian-grade suits." + name = "'Spark' engineering" + desc = "A standard industrial modsuit. Fire-resistant, shockproof, and fitted with lead insulation for additional radiation protection." + extended_desc = "The flagship product of Cybersun Industries's industrial modsuit lineup, the CS-15 'Spark' is an EVA-capable engineering suit designed to provide personal protection in all manner of hostile work environments. \ + The double-insulated carapace renders the user immune to most electrical hazards, while an additional layer of lead plating massively reduces (but does not eliminate) radiation exposure from high-intensity sources, permitting work to be performed in \ + active radiological zones as long as exposure is properly managed. An inner layer of nomex provides some protection against exposure to the radiant heat of active fires, \ + but is not rated for full fire engulfment. It also offers some minor protection against low-grade explosive detonations." default_skin = "engineering" armor_type_1 = /obj/item/mod/armor/mod_theme_engineering resistance_flags = FIRE_PROOF @@ -141,7 +140,7 @@ SEALED_CLOTHING = THICKMATERIAL | STOPSPRESSUREDMAGE | BLOCKHAIR, UNSEALED_INVISIBILITY = HIDEFACE, - SEALED_INVISIBILITY = HIDEMASK | HIDEEYES | HIDEFACE, + SEALED_INVISIBILITY = HIDEMASK | HIDEEYES | HIDEEARS | HIDEFACE, SEALED_COVER = HEADCOVERSMOUTH | HEADCOVERSEYES, ), CHESTPLATE_FLAGS = list( @@ -166,13 +165,12 @@ armor = list(MELEE = 20, BULLET = 5, LASER = 5, ENERGY = 5, BOMB = 30, RAD = 150, FIRE = INFINITY, ACID = 150) //Bomb armor bumped up a bit, as the modsuit describes it with blast-dampening /datum/mod_theme/atmospheric - name = "atmospheric" - desc = "An atmospheric-resistant suit by Cybersun Industries, offering extreme heat resistance compared to the engineer suit." - extended_desc = "A modified version of the Cybersun Industries industrial model. This one has been \ - augmented with the latest in heat-resistant alloys, paired with a series of advanced heatsinks. \ - Additionally, the materials used to construct this suit have rendered it extremely hardy against \ - corrosive gasses and liquids, useful in the world of pipes. \ - However, the capacity for modification remains the same as civilian-grade suits." + name = "'Canary' atmospheric" + desc = "A reinforced atmospherics modsuit meant for extreme environments. Completely fireproof, but somewhat lacking in modification potential and power efficiency." + extended_desc = "Developed from the popular 'Spark' chassis, the CS-16 'Canary' utility modsuit is specialised for use by atmospherics specialists. The outer carapace is made of highly insulating thermally-reflective composites \ + underlain with multiple layers of insulating fiberglass, which, in combination with a high-powered thermal regulation system, provides the user complete protection from even full engulfment inside a raging plasma fire. \ + The helmet contains integrated filtration systems that protect the user from sudden releases of harmful gasses, - a feature not present in the 'Spark' suit. \ + Cybersun Industries reminds users that this model features minimal radiation shielding - it is not suitable PPE for use in radiological hazard zones." default_skin = "atmospheric" armor_type_1 = /obj/item/mod/armor/mod_theme_atmospheric resistance_flags = FIRE_PROOF @@ -196,7 +194,7 @@ SEALED_CLOTHING = THICKMATERIAL | STOPSPRESSUREDMAGE | BLOCK_GAS_SMOKE_EFFECT | BLOCKHAIR, UNSEALED_INVISIBILITY = HIDEFACE, - SEALED_INVISIBILITY = HIDEMASK | HIDEEYES | HIDEFACE, + SEALED_INVISIBILITY = HIDEMASK | HIDEEYES | HIDEEARS | HIDEFACE, UNSEALED_COVER = HEADCOVERSMOUTH, SEALED_COVER = HEADCOVERSEYES, ), @@ -222,13 +220,13 @@ armor = list(MELEE = 20, BULLET = 5, LASER = 5, ENERGY = 5, BOMB = 15, RAD = 15, FIRE = INFINITY, ACID = 150) /datum/mod_theme/advanced - name = "advanced" - desc = "An advanced version of Cybersun Industries's classic suit, shining with a white, acid and fire resistant polish." - extended_desc = "The flagship version of the Cybersun Industrie industrial model, and their latest product. \ - Combining all the features of their other industrial model suits inside, with blast resistance almost approaching \ - some EOD suits, the outside has been coated with a white polish rumored to be a corporate secret. \ - The paint used is almost entirely immune to corrosives, and certainly looks damn fine. \ - These come pre-installed with magnetic boots, using an advanced system to toggle them on or off as the user walks." + name = "'Daedalus' advanced" + desc = "A highly advanced competitor to the standard engineering modsuit. Completely resistant to radiation, fire, and electricity, with improved conventional armor to boot. The paint gleams like freshly fallen snow." + extended_desc = "A product of the bloated generosity of several prominent Nanotrasen executives and their desire to upstage Cybersun at their own game, the NA-20 'Daedalus' represents the peak of powered industrial protection. The thick, double-insulated plastitanium composite carapace offers complete protection from most electrical hazards \ + in addition to enhanced resistance against heavy impacts, mid-grade explosive detonations, and a slight resistance to directed energy blasts. An underlayer of lead overlain with depleted uranium offers unparalleled protection from even \ + the most intense radiation exposure, whilst the advanced thermal control system and thermally-reflective surface coating allows the suit to withstand full flame engulfment. The built-in magboots also feature advanced predictive algorithms \ + so that they can activate and deactivate as the user moves their feet, removing the heavy slogging motion caused by standard magboots. This entire package is supported by a combination of custom joint motors and pseudo-muscle bundles \ + that are capable of supporting the full weight of the suit and moving it just as fast as the user inside could without any encumbrance, making it so unobtrusive that many users feel absolutely no need to remove the suit, even at times when there's really no point in wearing it." default_skin = "advanced" armor_type_1 = /obj/item/mod/armor/mod_theme_advanced resistance_flags = FIRE_PROOF @@ -258,7 +256,7 @@ SEALED_CLOTHING = THICKMATERIAL | STOPSPRESSUREDMAGE | BLOCK_GAS_SMOKE_EFFECT | BLOCKHAIR, UNSEALED_INVISIBILITY = HIDEFACE, - SEALED_INVISIBILITY = HIDEMASK | HIDEEYES | HIDEFACE, + SEALED_INVISIBILITY = HIDEMASK | HIDEEYES | HIDEEARS | HIDEFACE, SEALED_COVER = HEADCOVERSMOUTH | HEADCOVERSEYES, ), CHESTPLATE_FLAGS = list( @@ -283,22 +281,14 @@ armor = list(MELEE = 35, BULLET = 10, LASER = 10, ENERGY = 10, BOMB = 50, RAD = INFINITY, FIRE = INFINITY, ACID = 150) /datum/mod_theme/mining - name = "mining" - desc = "A Nanotrasen mining suit for on-site operations, fit with accreting ash armor and a sphere form." - extended_desc = "A high-powered Nanotrasen-designed suit, based off the work of Cybersun Industries. \ - While initial designs were built for the rigors of asteroid mining, given blast resistance through inbuilt ceramics, \ - mining teams have since heavily tweaked the suit themselves with assistance from devices crafted by \ - destructive analysis of unknown technologies discovered on the Indecipheres mining sites, patterned off \ - their typical non-EVA exploration suits. The visor has been expanded to a system of seven arachnid-like cameras, \ - offering full view of the land and its soon-to-be-dead inhabitants. The armor plating has been trimmed down to \ - the bare essentials, geared far more for environmental hazards than combat against fauna; however, \ - this gives way to incredible protection against corrosives and thermal protection good enough for \ - traversing the hostile climate of scorching hot barren planets, molten, and volcanic worlds like Epsilon Eridanii II. \ - Instead, the suit is capable of using its' anomalous properties to attract and \ - carefully distribute layers of ash or ice across the surface; these layers are ablative, but incredibly strong. \ - However, all of this has proven to be straining on all Nanotrasen-approved cells, \ - so much so that it comes default fueled by equally-enigmatic plasma fuel rather than a simple recharge. \ - Additionally, the systems have been put to near their maximum load, allowing for far less customization than others." + name = "'Pioneer' mining" + desc = "A Nanotrasen mining suit for extracting resources in even the harshest of environments. Highly mobile with decent protection against fire and melee attackers. Its external ports have been replaced by an opening on the upper chest which accepts plasma sheets to recharge its specialized plasma energy core." + extended_desc = "A fairly recent innovation from Nanotrasen's research division, the NA-10 'Pioneer' is a rugged and reliable mining suit specialized for extraction operations in extreme conditions. \ + Incorporating a durable kevlar bodysuit under strategically placed armor panels, the Pioneer offers sound protection against melee attacks, while additional attachment points allow for specialized armor to be \ + attached at user discretion. As an extra protective measure against the vicious ash storms of Lavaland, an experimental ash accretion system has also been integrated, protecting the wearer with a shell of ablative ash. \ + This particular variant of the Pioneer has also been fitted with a specialized plasma-fueled energy core, allowing for surface miners to quickly recharge \ + even on long-term excursions, though this comes at the cost of greatly decreased maximum operating time. Today, this suit is most often used by Nanotrasen's extraction division in their endless quest for Plasma, though \ + several other prominent mining companies have purchased large stocks of the suit for their own operations." default_skin = "mining" armor_type_1 = /obj/item/mod/armor/mod_theme_mining resistance_flags = FIRE_PROOF | LAVA_PROOF @@ -326,7 +316,7 @@ SEALED_CLOTHING = THICKMATERIAL | STOPSPRESSUREDMAGE | BLOCKHAIR, - SEALED_INVISIBILITY = HIDEMASK | HIDEEYES | HIDEFACE, + SEALED_INVISIBILITY = HIDEMASK | HIDEEYES | HIDEEARS | HIDEFACE, SEALED_COVER = HEADCOVERSMOUTH | HEADCOVERSEYES, ), CHESTPLATE_FLAGS = list( @@ -351,7 +341,7 @@ UNSEALED_CLOTHING = THICKMATERIAL, SEALED_CLOTHING = STOPSPRESSUREDMAGE | BLOCKHAIR, UNSEALED_INVISIBILITY = HIDEFACE, - SEALED_INVISIBILITY = HIDEMASK | HIDEEYES | HIDEFACE, + SEALED_INVISIBILITY = HIDEMASK | HIDEEYES | HIDEEARS | HIDEFACE, SEALED_COVER = HEADCOVERSMOUTH | HEADCOVERSEYES, ), CHESTPLATE_FLAGS = list( @@ -376,17 +366,14 @@ armor = list(MELEE = 30, BULLET = 5, LASER = 5, ENERGY = 5, BOMB = 50, RAD = 50, FIRE = 50, ACID = 50) /datum/mod_theme/loader - name = "loader" - desc = "An unsealed experimental motorized harness manufactured by Scarborough Arms for quick and efficient munition supplies." - extended_desc = "This powered suit is an experimental spinoff of in-atmosphere Engineering suits. \ - This fully articulated titanium exoskeleton is Scarborough Arms' suit of choice for their munition delivery men, \ - and what it lacks in EVA protection, it makes up for in strength and flexibility. The primary feature of \ - this suit are the two manipulator arms, carefully synchronized with the user's thoughts and \ - duplicating their motions almost exactly. These are driven by myomer, an artificial analog of muscles, \ - requiring large amounts of voltage to function; occasionally sparking under load with the sheer power of a \ - suit capable of lifting 250 tons. Even the legs in the suit have been tuned to incredible capacity, \ - the user being able to run at greater speeds for much longer distances and times than an unsuited equivalent. \ - A lot of people would say loading cargo is a dull job. You could not disagree more." + name = "'Heracles' loader" + desc = "An unsealed industrial exoframe developed by Aussec Armory for munitions loading and heavy equipment transport. Incredible carrying capacity, but lackluster armor and modability." + extended_desc = "Aussec Armory's first foray into the field of powered modsuits, the AX-05 'Heracles' was designed from the ground-up for transporting heavy equipment and munitions. Incorporating a suite \ + of exceptionally powerful hydraulic systems and myomer synth-muscle, the Heracles's two massive lifting arms are capable of carrying loads up to 250 tons without hampering mobility. \ + High-grade servomotors round out the package, ensuring complete freedom of movement even when transporting the largest of crates or artillery shells. Unfortunately, the Heracles is severely lacking \ + in the protection department, with only a simple steel outer shell that may deflect a crude melee weapon at most. The suit also entirely lacks environmental sealing, a point Aussec makes very clear \ + in their user agreement, while the immense space demands of the hydraulics drastically cut the suit's modification potential. Despite these shortcomings, the Heracles was a breakout success, and now \ + sees extensive use within the Trans-Solar Federation's logistics corps, and in loading bays across the Sector." default_skin = "loader" armor_type_1 = /obj/item/mod/armor/mod_theme_loader max_heat_protection_temperature = ARMOR_MAX_TEMP_PROTECT @@ -403,7 +390,7 @@ UNSEALED_LAYER = null, UNSEALED_CLOTHING = THICKMATERIAL | BLOCKHAIR, - SEALED_INVISIBILITY = HIDEFACE | HIDEMASK | HIDEEYES, + SEALED_INVISIBILITY = HIDEFACE | HIDEMASK | HIDEEARS | HIDEEYES, SEALED_COVER = HEADCOVERSMOUTH | HEADCOVERSEYES, ), CHESTPLATE_FLAGS = list( @@ -424,14 +411,14 @@ armor = list(MELEE = 20, BULLET = 5, LASER = 5, ENERGY = 5, BOMB = 10, RAD = 0, FIRE = 25, ACID = 25) /datum/mod_theme/medical - name = "medical" - desc = "A lightweight suit by DeForest Medical Corporation, allows for easier movement." - extended_desc = "A lightweight suit produced by the DeForest Medical Corporation and BioTech Solutions, based off the work of \ - Cybersun Industries. The latest in technology has been employed in this suit to render it immunized against \ - allergens, airborne toxins, and regular pathogens. The primary asset of this suit is the speed, \ - fusing high-powered servos and actuators with a carbon-fiber construction. While there's very little armor used, \ - it is incredibly acid-resistant. It is slightly more demanding of power than civilian-grade models, \ - and weak against fingers tapping the glass." + name = "'Apollo' medical" + desc = "A lightweight medical modsuit. Environmentally sealed and acid-resistant but offering little else in the way of armor. Thankfully, the light materials and motors keep mobility high." + extended_desc = "A lightweight medical suit produced by the DeForest Medical Corporation, the D-101 'Apollo' is a simple powered medical suit intended for recovering and treating \ + patients in environmentally risky zones, such as space stations, chemical facilities, and disease outbreak sites. Composed of a lightweight aluminum frame supporting a polymer & carbon fiber \ + outer shell, the Apollo maintains a surprisingly light weight that allows its underpowered and inefficient servomotors to easily keep the wearer operating at maximum speed. \ + This comes at a cost in protection, however, as while the Apollo's treated paneling offers excellent defense against biological and chemical agents, it is entirely ineffective against \ + any form of conventional attack or weapon. Today, the Apollo is an exceptionally common suit seen in medical bays across the Orion Arm, and is well-loved by EMTs and virologists \ + alike for its ease of use and movement." default_skin = "medical" armor_type_1 = /obj/item/mod/armor/mod_theme_medical charge_drain = DEFAULT_CHARGE_DRAIN * 2 @@ -457,7 +444,7 @@ SEALED_CLOTHING = THICKMATERIAL | STOPSPRESSUREDMAGE | BLOCK_GAS_SMOKE_EFFECT | BLOCKHAIR, UNSEALED_INVISIBILITY = HIDEFACE, - SEALED_INVISIBILITY = HIDEMASK | HIDEEYES | HIDEFACE, + SEALED_INVISIBILITY = HIDEMASK | HIDEEYES | HIDEEARS | HIDEFACE, SEALED_COVER = HEADCOVERSMOUTH | HEADCOVERSEYES, ), CHESTPLATE_FLAGS = list( @@ -482,7 +469,7 @@ SEALED_CLOTHING = THICKMATERIAL | STOPSPRESSUREDMAGE | BLOCK_GAS_SMOKE_EFFECT | BLOCKHAIR, UNSEALED_INVISIBILITY = HIDEFACE, - SEALED_INVISIBILITY = HIDEMASK | HIDEEYES | HIDEFACE, + SEALED_INVISIBILITY = HIDEMASK | HIDEEYES | HIDEEARS | HIDEFACE, SEALED_COVER = HEADCOVERSMOUTH | HEADCOVERSEYES, ), CHESTPLATE_FLAGS = list( @@ -507,14 +494,14 @@ armor = list(MELEE = 10, BULLET = 5, LASER = 5, ENERGY = 5, BOMB = 10, RAD = 0, FIRE = 75, ACID = 150) /datum/mod_theme/rescue - name = "rescue" - desc = "An advanced version of DeForest Medical Corporation's medical suit, designed for quick rescue of bodies from the most dangerous environments." - extended_desc = "An upgraded, overtuned version of DeForest Medical Corporation's medical suit, with BioTech Solutions making heavy modifications. \ - designed for quick rescue of bodies from the most dangerous environments. The same advanced leg servos \ - as the base version are seen here, giving paramedics incredible speed, but the same servos are also in the arms. \ - Users are capable of quickly hauling even the heaviest crewmembers using this suit, \ - all while being entirely immune against chemical and thermal threats. \ - It is slightly more demanding of power than civilian-grade models, and weak against fingers tapping the glass." + name = "'Valkyrie' rescue" + desc = "A next-generation medical suit for casualty care in even the most hostile of conditions. Fast, chemically sealed, and decently armored to boot." + extended_desc = "A direct upgrade to the older Apollo line, the D-112 'Valkyrie' is an advanced medical modsuit produced by the DeForest Medical Corporation. Offering iterative improvement over earlier lines, \ + the Valkyrie uses improved servo systems and drive motors to deliver faster movement speed than the Apollo line, and it comes standard with a high-efficiency energy core which helps offset its otherwise outsized power draw. \ + The suit's armor has also seen large improvement, incorporating ballistic polymer impact panels in key areas, offering moderate protection against melee and projectile attacks, while a chemically-treated \ + aramid bodysuit provides near-complete safety against fire and caustic chemicals. For added protection in chemical and biological hazard zones, the helmet incorporates an integrated CBRN filtration system rated \ + to halt even the most virulent of chemical weapons or infectious diseases. Today, the Valkyrie is a mainstay of numerous corporate and governmental medical units across the Sector, though the high price tag means \ + that many less-funded medical practices continue to operate the Apollo series." default_skin = "rescue" armor_type_1 = /obj/item/mod/armor/mod_theme_rescue resistance_flags = FIRE_PROOF | ACID_PROOF @@ -544,7 +531,7 @@ SEALED_CLOTHING = THICKMATERIAL | STOPSPRESSUREDMAGE | BLOCK_GAS_SMOKE_EFFECT | BLOCKHAIR, UNSEALED_INVISIBILITY = HIDEFACE, - SEALED_INVISIBILITY = HIDEMASK | HIDEEYES | HIDEFACE, + SEALED_INVISIBILITY = HIDEMASK | HIDEEYES | HIDEEARS | HIDEFACE, SEALED_COVER = HEADCOVERSMOUTH | HEADCOVERSEYES, ), CHESTPLATE_FLAGS = list( @@ -569,15 +556,14 @@ armor = list(MELEE = 20, BULLET = 20, LASER = 5, ENERGY = 5, BOMB = 10, RAD = 50, FIRE = 150, ACID = 150) //Extra melee / bullet armor for if they get caught in a fight. Of course, no laser armor. /datum/mod_theme/research - name = "research" - desc = "A private military EOD suit by Aussec Armory, intended for explosive research. Bulky, but expansive." - extended_desc = "A private military EOD suit by Aussec Armory, based off the work of Cybersun Industries. \ - This suit is intended for explosive research, built incredibly bulky and well-covering. \ - Featuring an inbuilt chemical scanning array, this suit uses two layers of plastitanium armor, \ - sandwiching an inert layer to dissipate kinetic energy into the suit and away from the user; \ - outperforming even the best conventional EOD suits. However, despite its immunity against even \ - missiles and artillery, all the explosive resistance is mostly working to keep the user intact, \ - not alive. The user will also find narrow doorframes nigh-impossible to surmount." + name = "'Minerva' research" + desc = "A powered EOD suit produced by Aussec Armory. Absolutely unmatched explosive and acid protection, along with heavy conventional armor and high modding potential." + extended_desc = "Developed following the surprising success of the 'Heracles' powerloader suit, the AX-1-0 'Minerva' was originally intended as a competitor to ongoing TSF trials for a new generation \ + of bomb-disposal armor. While the original design would fail to meet Federation maintenance standards, Aussec's board of directors saw sufficient potential in the suit to market it instead as a \ + heavy-duty research platform. Equipped with double-layered blast foam paneling encased in a durable plasteel outer carapace, the AX-1-0 offers outstanding protection against explosives and industrial chemicals, \ + and will even deflect some low-caliber ballistic rounds and melee weaponry. Unfortunately, underperforming heat dissipation materials mean that the suit offers little in the way of directed energy \ + protection. Today, the Minerva is most often seen in high-profile research laboratories, given its high price tag and maintenance requirements. Notably, Nanotrasen has purchased a significant number of the suits \ + for high-ranking science personnel, shipping most to the advanced testing labs of Epsilon Eridani." default_skin = "research" armor_type_1 = /obj/item/mod/armor/mod_theme_research resistance_flags = FIRE_PROOF | ACID_PROOF @@ -601,7 +587,7 @@ UNSEALED_LAYER = null, UNSEALED_CLOTHING = THICKMATERIAL, SEALED_CLOTHING = STOPSPRESSUREDMAGE | BLOCK_GAS_SMOKE_EFFECT | BLOCKHAIR, - UNSEALED_INVISIBILITY = HIDEFACE | HIDEMASK | HIDEEYES, + UNSEALED_INVISIBILITY = HIDEFACE | HIDEMASK | HIDEEARS | HIDEEYES, UNSEALED_COVER = HEADCOVERSMOUTH | HEADCOVERSEYES, ), CHESTPLATE_FLAGS = list( @@ -626,14 +612,14 @@ armor = list(MELEE = 30, BULLET = 30, LASER = 5, ENERGY = 5, BOMB = INFINITY, RAD = 75, FIRE = 75, ACID = 150) //Slow balistic / explosive testing armor. Not laser testing however! /datum/mod_theme/security - name = "security" - desc = "A Shellguard Munitions security suit, offering quicker speed at the cost of carrying capacity." - extended_desc = "A Shellguard Munitions classic, this model of MODsuit has been designed for quick response to \ - hostile situations. These suits have been layered with plating worthy enough for fires or corrosive environments, \ - and come with composite cushioning and an advanced honeycomb structure underneath the hull to ensure protection \ - against broken bones or possible avulsions. The suit's legs have been given more rugged actuators, \ - allowing the suit to do more work in carrying the weight. However, the systems used in these suits are more than \ - a few years out of date, leading to an overall lower capacity for modules." + name = "'Takabara' security" + desc = "An older-model Shellguard Munitions combat modsuit intended for corporate security forces. Decently armored and highly mobile, but somewhat lackluster in modification potential." + extended_desc = "A fairly average private security modsuit, the SA-330 'Takabara' is a Shellguard Munitions workhorse, and a recognizable symbol of Nanotrasen corporate security. \ + Equipped with kevlar paneling in vital areas and ceramic strike plates in the chest and back, the Takabara offers sufficient protection to deter most petty criminals and improvised melee weapons, \ + though it stands little match in the face of gunfire or advanced melee weapons. An unconventional nomex underlayer and chemically treated plating provides deceptively high fire \ + and acid protection. While the suit is quite easy to maintain, the limitations of its last-gen design have gradually become more apparent, with easily-taxed servos and restrictive hardware that limits its modification potential. \ + Despite these flaws, the Takabara continues to see immense success in the private security market across the Sector largely due to its low price and ease of operation. In particular, Nanotrasen \ + remains a primary customer thanks to their deep ties with Shellguard and extensive security infrastructure." default_skin = "security" armor_type_1 = /obj/item/mod/armor/mod_theme_security complexity_max = DEFAULT_MAX_COMPLEXITY - 3 @@ -656,7 +642,7 @@ UNSEALED_CLOTHING = THICKMATERIAL, SEALED_CLOTHING = STOPSPRESSUREDMAGE | BLOCKHAIR, UNSEALED_INVISIBILITY = HIDEFACE, - SEALED_INVISIBILITY = HIDEMASK | HIDEEYES | HIDEFACE, + SEALED_INVISIBILITY = HIDEMASK | HIDEEYES | HIDEEARS | HIDEFACE, UNSEALED_COVER = HEADCOVERSMOUTH, SEALED_COVER = HEADCOVERSEYES, ), @@ -682,14 +668,14 @@ armor = list(MELEE = 25, BULLET = 20, LASER = 20, ENERGY = 5, BOMB = 25, RAD = 0, FIRE = 150, ACID = 150) /datum/mod_theme/safeguard - name = "safeguard" - desc = "A Shellguard Munitions advanced security suit, offering greater speed and fire protection than the standard security model." - extended_desc = "A Shellguard Munitions advanced security suit, and their latest model. This variant has \ - ditched the presence of a reinforced glass visor entirely, replacing it with a 'blast visor' utilizing a \ - small camera on the left side to display the outside to the user. The plating on the suit has been \ - dramatically increased, especially in the pauldrons, giving the wearer an imposing silhouette. \ - Heatsinks line the sides of the suit, and greater technology has been used in insulating it against \ - both corrosive environments and sudden impacts to the user's joints." + name = "'Safeguard' bulwark" + desc = "A current-gen suit of powered armor by Shellguard Munitions. Offers substantially improved protection over the base security modsuit, and is completely fireproof." + extended_desc = "A fairly recent development by Shellguard Munitions, the SA-350 'Safeguard' modsuit is a largely iterative powered armor suit that builds off of and offers improvement \ + over the older Takabara series of corporate security suits. Expanding the ceramic and steel plating further provides significantly improved conventional defenses, while the addition of \ + an advanced temperature regulation system makes the Safeguard completely immune to extreme heat. The suit's internals were also enhanced, with improved servo systems for added mobility, \ + while the suit's updated computer hardware improves its overall modification potential. The most striking development, however, is the suit's overall bulkier and more intimidating appearance, incorporating \ + pronounced armored pauldrons and replacing the traditional eyeholes with a camera-equipped blank faceplate. Today, the Safeguard is most commonly seen in well-funded corporate security units, most \ + notably the Nanotrasen Corporation, which has purchased a large stock of the suits for high-ranking security personnel." default_skin = "safeguard" armor_type_1 = /obj/item/mod/armor/mod_theme_safeguard resistance_flags = FIRE_PROOF @@ -712,7 +698,7 @@ UNSEALED_LAYER = null, UNSEALED_CLOTHING = THICKMATERIAL, SEALED_CLOTHING = STOPSPRESSUREDMAGE | BLOCKHAIR, - UNSEALED_INVISIBILITY = HIDEFACE | HIDEMASK | HIDEEYES, + UNSEALED_INVISIBILITY = HIDEFACE | HIDEMASK | HIDEEARS | HIDEEYES, UNSEALED_COVER = HEADCOVERSMOUTH | HEADCOVERSEYES, ), CHESTPLATE_FLAGS = list( @@ -737,17 +723,13 @@ armor = list(MELEE = 30, BULLET = 25, LASER = 25, ENERGY = 15, BOMB = 40, RAD = 25, FIRE = INFINITY, ACID = 150) /datum/mod_theme/magnate - name = "magnate" - desc = "A fancy, very protective suit for Nanotrasen's captains. Shock, fire and acid-proof while also having a large capacity and high speed." - extended_desc = "They say it costs four hundred thousand credits to run this MODsuit... for twelve seconds. \ - The Magnate suit is designed for protection, comfort, and luxury for Nanotrasen Captains. \ - The onboard air filters have been preprogrammed with an additional five hundred different fragrances that can \ - be pumped into the helmet, all of highly-endangered flowers. A bespoke Tralex mechanical clock has been placed \ - in the wrist, and the Magnate package comes with carbon-fibre cufflinks to wear underneath. \ - My God, it even has a granite trim. The double-classified paint that's been painstakingly applied to the hull \ - provides protection against shock, fire, and the strongest acids. Onboard systems employ meta-positronic learning \ - and bluespace processing to allow for a wide array of onboard modules to be supported, and only the best actuators \ - have been employed for speed. The resemblance to a Gorlex Marauder helmet is *purely* coincidental." + name = "'Magnate' command" + desc = "An advanced command modsuit developed by Nanotrasen for high-ranking corporate officers. Heavily armored, highly mobile, and plenty of space for modifications." + extended_desc = "An in-house design by Nanotrasen R&D, the Magnate encases the user inside a shell of plastitanum alloy with an ablative surface coating, giving robust protection against ballistic and energy-based threats in equal measure, and granting respectable protection from corrosive substances as well. \ + An under-layer of ultra low-conductivity ceramic provides protection against the heat of raging fires and high intensity electrical discharges.\ + The use of custom articulation first utilized in the NA-20 'Daedalus' means that the Magnate will not encumber the user under most circumstances, allowing them to move freely despite the mass of the suit. \ + The over-engineered electrical and hydraulic systems also give it exceptional capacity for modification, allowing endless choice in how exactly a captain may wish to drain the resources of their robotics department. \ + Overall, the Magnate provides protection rivalled only by the 'Jaeger' MODsuit of Syndicate infamy. Nanotrasen's public relations department maintains that any resemblance to designs used by Gorlex are purely coincidental." default_skin = "magnate" armor_type_1 = /obj/item/mod/armor/mod_theme_magnate resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | ACID_PROOF // Theft targets should be hard to destroy @@ -771,7 +753,7 @@ SEALED_CLOTHING = THICKMATERIAL | STOPSPRESSUREDMAGE | BLOCKHAIR, UNSEALED_INVISIBILITY = HIDEFACE, - SEALED_INVISIBILITY = HIDEMASK | HIDEEYES | HIDEFACE, + SEALED_INVISIBILITY = HIDEMASK | HIDEEYES | HIDEEARS | HIDEFACE, SEALED_COVER = HEADCOVERSMOUTH | HEADCOVERSEYES, ), CHESTPLATE_FLAGS = list( @@ -796,15 +778,13 @@ armor = list(MELEE = 50, BULLET = 50, LASER = 50, ENERGY = 15, BOMB = 15, RAD = 50, FIRE = INFINITY, ACID = 450) //On one hand this is quite strong, on the other hand energy hole / antagonists need to steal, and thus by extention use this. /datum/mod_theme/praetorian - name = "praetorian" - desc = "A prototype of the Magnate-class suit issued to station Blueshields, still boasting exceptional protection worthy of an honor guard." - extended_desc = "A prototype of the Magnate-class suit issued for use with the station Blueshields, \ - it boasts most of the exceptional protection of it's successor, while sacrificing some of the module capacity.\ - Most of the protection of the Magnate, with none of the comfort! The visor uses blue-light to obscure \ - the face of it's wearer, adding to it's imposing figure. Compared to the sleek and luxurious design \ - that came after it, this suit does nothing to hide it's purpose, the reinforced plating layered \ - over the insulated inner armor granting it protection against corrosive liquids, explosive blasts, \ - fires, electrical shocks, and contempt from the rest of the crew." + name = "'Praetorian' escort" + desc = "A Nanotrasen refit of the Takabara modsuit line. Offers higher mobility than the base model, and comes with a snazzy blue-and-black paint job." + extended_desc = "A licensed copy of the Shellguard Munitions 'Takabara' modsuit, the NA-35 'Praetorian' is specially issued to Nanotrasen Asset Protection's Blueshield Corps: \ + elite bodyguards charged with protecting Nanotrasen VIPs. As such, the suit's motor and weight distribution systems have seen a measure of improvement, to allow for the \ + Blueshields to more effectively respond to threats facing their charges. Beyond this and its stylish blue & black paint job, however, the Praetorian differs little \ + from its Shellguard roots, retaining its middling armor ratings and restrictive hardware. Even so, Nanotrasen is more than happy with the design, and has proceeded \ + with a full rollout of the suit to Blueshields across their corporate empire." default_skin = "praetorian" armor_type_1 = /obj/item/mod/armor/praetorian resistance_flags = FIRE_PROOF | ACID_PROOF @@ -830,7 +810,7 @@ UNSEALED_LAYER = COLLAR_LAYER, SEALED_CLOTHING = THICKMATERIAL | STOPSPRESSUREDMAGE | BLOCKHAIR, UNSEALED_INVISIBILITY = HIDEFACE, - SEALED_INVISIBILITY = HIDEMASK | HIDEEYES | HIDEFACE, + SEALED_INVISIBILITY = HIDEMASK | HIDEEYES | HIDEEARS | HIDEFACE, SEALED_COVER = HEADCOVERSMOUTH | HEADCOVERSEYES, ), CHESTPLATE_FLAGS = list( @@ -855,8 +835,8 @@ armor = list(MELEE = 25, BULLET = 20, LASER = 20, ENERGY = 5, BOMB = 25, RAD = 0, FIRE = 150, ACID = 150) //Equivalent armor to Security MODsuits /datum/mod_theme/cosmohonk - name = "cosmohonk" - desc = "A suit by Honk Ltd. Protects against low humor environments. Most of the tech went to lower the power cost." + name = "'Cosmohonk' entertainer" + desc = "A highly specialized modsuit for use by clowns across the Sector. Excellent power efficiency, godawful everything else." extended_desc = "The Cosmohonk MODsuit was originally designed for interstellar comedy in low-humor environments. \ It utilizes tungsten electro-ceramic casing and chromium bipolars, coated in zirconium-boron paint underneath \ a dermatiraelian subspace alloy. Despite the glaringly obvious optronic vacuum drive pedals, \ @@ -880,7 +860,7 @@ UNSEALED_CLOTHING = THICKMATERIAL, SEALED_CLOTHING = STOPSPRESSUREDMAGE | BLOCKHAIR, - SEALED_INVISIBILITY = HIDEFACE | HIDEMASK | HIDEEYES, + SEALED_INVISIBILITY = HIDEFACE | HIDEMASK | HIDEEARS | HIDEEYES, SEALED_COVER = HEADCOVERSMOUTH | HEADCOVERSEYES, ), CHESTPLATE_FLAGS = list( @@ -905,15 +885,15 @@ armor = list(MELEE = 5, BULLET = 5, LASER = 5, ENERGY = 5, BOMB = 5, RAD = 0, FIRE = 75, ACID = 50) /datum/mod_theme/syndicate - name = "syndicate" - desc = "A suit designed by Gorlex Marauders, offering armor ruled illegal in most of Spinward Stellar." - extended_desc = "An advanced combat suit adorned in a sinister crimson red color scheme, produced and manufactured \ - for special mercenary operations. The build is a streamlined layering consisting of shaped Plasteel, \ - and composite ceramic, while the under suit is lined with a lightweight Kevlar and durathread hybrid weave \ - to provide ample protection to the user where the plating doesn't, with an illegal onboard electric powered \ - ablative shield module to provide resistance against conventional energy firearms. \ - A small tag hangs off of it reading; 'Property of the Gorlex Marauders, with assistance from Cybersun Industries. \ - All rights reserved, tampering with suit will void warranty." + name = "'Raider' blood-red syndicate" + desc = "An intimidating suit of powered armor in Gorlex blood-red & black, primarily used by the Syndicate. Offers substantial protection in all areas, and looks great while doing so." + extended_desc = "One of the Syndicate's most recognizable symbols, the CSC-22 'Raider' was commissioned by the Gorlex Marauders in conjunction with an unknown benefactor \ + some suspect to be Cybersun Industries, though the company vigorously denies this claim. The suit itself is purpose-built for fast-paced, high-intensity combat, and is armored to match. \ + Though offering substantial conventional armor with a durathread-kevlar underlayer overlaid with steel armor panels and ceramic strike plates, the Raider's most notable armor comes from its advanced Armor Booster in-built module. \ + Consisting of a miniaturized electromagnetic defense system and combat servomotors, the module allows the user to switch to 'Combat Mode' at the press of a button, massively improving movement speed and defense capability. \ + Unfortunately, doing so requires sacrificing EVA capability, as power is diverted from the environmental regulation systems, while auxiliary vents open to keep the EM defenses' motor cooled. \ + Today, the Raider is used almost exclusively by the Syndicate, and is the standard combat suit for their Nuclear Strike Teams. In particular, the Gorlex Marauders use the Raider as their standard assault suit, \ + and the mere sight of its blood-red plating is known to induce terror in most indepedent merchantmen." default_skin = "syndicate" armor_type_1 = /obj/item/mod/armor/mod_theme_syndicate flag_2_flags = RAD_PROTECT_CONTENTS_2 @@ -940,7 +920,7 @@ SEALED_CLOTHING = THICKMATERIAL | STOPSPRESSUREDMAGE | BLOCKHAIR, UNSEALED_INVISIBILITY = HIDEFACE, - SEALED_INVISIBILITY = HIDEMASK | HIDEEYES | HIDEFACE, + SEALED_INVISIBILITY = HIDEMASK | HIDEEYES | HIDEEARS | HIDEFACE, SEALED_COVER = HEADCOVERSMOUTH | HEADCOVERSEYES, ), CHESTPLATE_FLAGS = list( @@ -965,7 +945,7 @@ SEALED_CLOTHING = THICKMATERIAL | STOPSPRESSUREDMAGE | BLOCKHAIR, UNSEALED_INVISIBILITY = HIDEFACE, - SEALED_INVISIBILITY = HIDEMASK | HIDEEYES | HIDEFACE, + SEALED_INVISIBILITY = HIDEMASK | HIDEEYES | HIDEEARS | HIDEFACE, SEALED_COVER = HEADCOVERSMOUTH | HEADCOVERSEYES, ), CHESTPLATE_FLAGS = list( @@ -993,14 +973,14 @@ //laser = 20 with booster //energy = //20 with booster, energy has always been an armor hole. /datum/mod_theme/elite - name = "elite" - desc = "An elite suit upgraded by Cybersun Industries, offering upgraded armor values." - extended_desc = "An evolution of the syndicate suit, featuring a bulkier build and a matte black color scheme, \ - this suit is only produced for high ranking Syndicate officers and elite strike teams. \ - It comes built with a secondary layering of ceramic and Kevlar into the plating providing it with \ - exceptionally better protection along with fire and acid proofing. A small tag hangs off of it reading; \ - 'Property of the Gorlex Marauders, with assistance from Cybersun Industries. \ - All rights reserved, tampering with suit will void life expectancy.'" + name = "'Jaeger' elite syndicate" + desc = "A terrifying, jet-black suit of advanced power armor, used by the Syndicate's elite forces. Completely fireproof, and offers phenomenal protection in all areas." + extended_desc = "Following the incredible success of the Raider-series combat modsuit, several other prominent mercenary and pirate groups began to look into procuring their own personal combat modsuits, most notably the mysterious Inner Circle PMC. \ + The resulting design, known as the CSC-25 'Jaeger', is one of the finest suits of powered armor ever devised, and a herald of imminent death for any opposed to the Inner Circle and the Syndicate. \ + Replacing the earlier steel and ceramic armor panels with a reinforced plastitanium-alloy carapace and strengthened sorbothane impact absorption panels over the traditional kevlar weave undersuit, the Jaeger offers massively improved \ + protection over the Raider, including complete immunity to extreme heat. The Armor Booster subsystem has seen similar improvements, increasing protection to such an extent that only armor-piercing rifle rounds can reliably penetrate the armor. \ + Even the suit's helmet has seen massive changes, replacing the iconic quad-camera faceplate with a polarized plasmaglass visor, and incorporating an advanced filtration system to counteract chemical attacks. \ + Altogether, the Jaeger offers some of the best personal protection in the Sector, and has a price tag to match. Only the wealthiest of Syndicate clients can even hope to purchase one of these suits, let alone outfit an entire company with them." default_skin = "elite" armor_type_1 = /obj/item/mod/armor/mod_theme_elite resistance_flags = FIRE_PROOF | ACID_PROOF @@ -1028,7 +1008,7 @@ SEALED_CLOTHING = THICKMATERIAL | STOPSPRESSUREDMAGE | BLOCK_GAS_SMOKE_EFFECT | BLOCKHAIR, UNSEALED_INVISIBILITY = HIDEFACE, - SEALED_INVISIBILITY = HIDEMASK | HIDEEYES | HIDEFACE, + SEALED_INVISIBILITY = HIDEMASK | HIDEEYES | HIDEEARS | HIDEFACE, SEALED_COVER = HEADCOVERSMOUTH | HEADCOVERSEYES, ), CHESTPLATE_FLAGS = list( @@ -1057,15 +1037,14 @@ //energy = 15 // 25 /datum/mod_theme/prototype - name = "prototype" - desc = "A prototype modular suit powered by locomotives. While it is comfortable and has a big capacity, it remains very bulky and power-inefficient." - extended_desc = "This is a prototype powered exoskeleton, a design not seen in hundreds of years, the first \ - post-void war era modular suit to ever be safely utilized by an operator. This ancient clunker is still functional, \ - though it's missing several modern-day luxuries from updated Cybersun Industries designs. \ - Primarily, the suit's myoelectric suit layer is entirely non-existant, and the servos do very little to \ - help distribute the weight evenly across the wearer's body, making it slow and bulky to move in. \ - The internal heads-up display is rendered in nearly unreadable cyan, as the visor suggests, \ - leaving the user unable to see long distances. However, the way the helmet retracts is pretty cool." + name = "'Ogre' prototype" + desc = "A prototype modular suit developed many years ago. Incredibly heavy, power inefficient, and lacking in protection. At the very least, it's easy to modify." + extended_desc = "Quite possibly the first true modsuit ever created, the 'Ogre', as its mostly-faded ID label calls it, is a positively ancient mechanized suit that represents the very beginning of \ + the Sector's foray into powered modsuits. Naturally, such an elderly design lacks virtually all of the quality of life features seen in modsuits today. \ + The first-generation servodrives are woefully underpowered and exceptionally inefficient, leading to a ponderous top speed and an average battery life entirely \ + unsuited to extended EVA usage. As a technology testbed, the Ogre is also sorely lacking in armor protection, possessing little more than a steel carapace \ + more suited to deflecting micrometeoroids than any dedicated weaponry, though the treated underlayer does offer effective fire and chemical protection, at the cost of greatly \ + increased cancer risks after several hours of sustained use." default_skin = "prototype" armor_type_1 = /obj/item/mod/armor/mod_theme_prototype resistance_flags = FIRE_PROOF @@ -1088,7 +1067,7 @@ UNSEALED_LAYER = null, UNSEALED_CLOTHING = THICKMATERIAL, SEALED_CLOTHING = STOPSPRESSUREDMAGE | BLOCKHAIR, - UNSEALED_INVISIBILITY = HIDEFACE | HIDEMASK | HIDEEYES, + UNSEALED_INVISIBILITY = HIDEFACE | HIDEMASK | HIDEEARS | HIDEEYES, UNSEALED_COVER = HEADCOVERSMOUTH | HEADCOVERSEYES, ), CHESTPLATE_FLAGS = list( @@ -1146,7 +1125,7 @@ SEALED_CLOTHING = THICKMATERIAL | STOPSPRESSUREDMAGE | BLOCK_GAS_SMOKE_EFFECT | BLOCKHAIR, UNSEALED_INVISIBILITY = HIDEFACE, - SEALED_INVISIBILITY = HIDEMASK | HIDEEYES | HIDEFACE, + SEALED_INVISIBILITY = HIDEMASK | HIDEEYES | HIDEEARS | HIDEFACE, SEALED_COVER = HEADCOVERSMOUTH | HEADCOVERSEYES, ), CHESTPLATE_FLAGS = list( @@ -1170,7 +1149,7 @@ UNSEALED_LAYER = null, UNSEALED_CLOTHING = THICKMATERIAL, SEALED_CLOTHING = STOPSPRESSUREDMAGE | BLOCK_GAS_SMOKE_EFFECT | BLOCKHAIR, - UNSEALED_INVISIBILITY = HIDEFACE | HIDEMASK | HIDEEYES, + UNSEALED_INVISIBILITY = HIDEFACE | HIDEMASK | HIDEEARS | HIDEEYES, UNSEALED_COVER = HEADCOVERSMOUTH | HEADCOVERSEYES, ), CHESTPLATE_FLAGS = list( @@ -1196,14 +1175,15 @@ armor = list(MELEE = 40, BULLET = 25, LASER = 25, ENERGY = 20, BOMB = 25, RAD = INFINITY, FIRE = 200, ACID = 200) /datum/mod_theme/apocryphal - name = "apocryphal" - desc = "A high-tech, only technically legal, armored suit created by a collaboration effort between Nanotrasen and Shellguard Munitions." - extended_desc = "A bulky and only legal by technicality suit, this ominous black and red MODsuit is only worn by \ - Nanotrasen Black Ops teams. If you can see this suit, you fucked up. A collaborative joint effort between \ - Shellguard and Nanotrasen, the construction and modules gives the user robust protection against \ - anything that can be thrown at it, along with acute combat awareness tools for it's wearer. \ - Whether the wearer uses it or not is up to them. \ - There seems to be a little inscription on the wrist that reads; \'squiddie', d'aww." + name = "'Charon' absolver" + desc = "A highly classified suit of powered armor used by {REDACTED}. Offers absolutely unmatched protection in all areas." + extended_desc = "Developed in absolute secrecy via judicious use of black budgets and compartmentalized production, the NA-000 \ + 'Charon' represents the absolute pinnacle of Nanotrasen armor development, and is easily one of the most powerful suits in the entire Sector. \ + Incorporating a durable plasteel-alloy outer shell overlaying a duraweave-nanomesh bodysuit, all protected by a prototype EM defense system, the \ + Charon offers physical protection that is unmatched by nearly every other modsuit existing in the Sector today. Despite this weight, advanced \ + servo and weight distribution systems allow the wearer to move as if unencumbered, while a custom-tuned high-efficiency power distribution system \ + means that the NA-000 has better mileage than most civilian modsuits. Today, less than a hundred of these mighty war machines exist, all of which \ + reside deep in the secure armories of Nanotrasen Asset Protection." default_skin = "apocryphal" armor_type_1 = /obj/item/mod/armor/mod_theme_apocryphal resistance_flags = FIRE_PROOF | ACID_PROOF @@ -1229,7 +1209,7 @@ UNSEALED_CLOTHING = THICKMATERIAL, SEALED_CLOTHING = STOPSPRESSUREDMAGE | BLOCKHAIR, - SEALED_INVISIBILITY = HIDEFACE | HIDEMASK | HIDEEYES, + SEALED_INVISIBILITY = HIDEFACE | HIDEMASK | HIDEEARS | HIDEEYES, SEALED_COVER = HEADCOVERSMOUTH | HEADCOVERSEYES, ), CHESTPLATE_FLAGS = list( @@ -1255,7 +1235,7 @@ /datum/mod_theme/corporate name = "corporate" - desc = "A fancy, high-tech suit for Nanotrasen's high ranking officers." + desc = "A rare, extremely expensive modsuit used exclusively by Nanotrasen executives. Very few will get to see this suit, and fewer still will actually wear it." extended_desc = "An even more costly version of the Magnate model, the corporate suit is a thermally insulated, \ anti-corrosion coated suit for high-ranking CentCom Officers, deploying pristine protective armor and \ advanced actuators, feeling practically weightless when turned on. Scraping the paint of this suit is \ @@ -1284,7 +1264,7 @@ UNSEALED_CLOTHING = THICKMATERIAL, SEALED_CLOTHING = STOPSPRESSUREDMAGE | BLOCKHAIR, UNSEALED_INVISIBILITY = HIDEFACE, - SEALED_INVISIBILITY = HIDEMASK | HIDEEYES | HIDEFACE, + SEALED_INVISIBILITY = HIDEMASK | HIDEEYES | HIDEEARS | HIDEFACE, SEALED_COVER = HEADCOVERSMOUTH | HEADCOVERSEYES, ), CHESTPLATE_FLAGS = list( @@ -1310,10 +1290,8 @@ /datum/mod_theme/debug name = "debug" - desc = "Strangely nostalgic." - extended_desc = "An advanced suit that has dual ion engines powerful enough to grant a humanoid flight. \ - Contains an internal self-recharging high-current capacitor for short, powerful bo- \ - Oh wait, this is not actually a flight suit. Fuck." + desc = "An admin-only modsuit that's strictly worse than the already existent administrative suit. Why does this even exist?" + extended_desc = "nyoom" default_skin = "debug" armor_type_1 = /obj/item/mod/armor/mod_theme_debug resistance_flags = FIRE_PROOF | ACID_PROOF @@ -1333,7 +1311,7 @@ UNSEALED_CLOTHING = THICKMATERIAL, SEALED_CLOTHING = STOPSPRESSUREDMAGE | BLOCK_GAS_SMOKE_EFFECT, UNSEALED_INVISIBILITY = HIDEFACE, - SEALED_INVISIBILITY = HIDEMASK | HIDEEYES | HIDEFACE, + SEALED_INVISIBILITY = HIDEMASK | HIDEEYES | HIDEEARS | HIDEFACE, UNSEALED_COVER = HEADCOVERSMOUTH, SEALED_COVER = HEADCOVERSEYES, ), @@ -1361,11 +1339,8 @@ /datum/mod_theme/administrative name = "administrative" - desc = "A suit made of adminium. Who comes up with these stupid mineral names?" - extended_desc = "Yeah, okay, I guess you can call that an event. What I consider an event is something actually \ - fun and engaging for the players- instead, most were sitting out, dead or gibbed, while the lucky few got to \ - have all the fun. If this continues to be a pattern for your \"events\" (Admin Abuse) \ - there will be an admin complaint. You have been warned." + desc = "A completely game-breaking suit made of compressed admin abuse. Naturally, it's got bullshit stats, doesn't drain any power at all and... for fuck's sake, does it really need a thousand module slots?!" + extended_desc = "someone go get the intern to write something here" default_skin = "debug" armor_type_1 = /obj/item/mod/armor/mod_theme_administrative resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF @@ -1385,7 +1360,7 @@ UNSEALED_LAYER = null, UNSEALED_CLOTHING = THICKMATERIAL | STOPSPRESSUREDMAGE | BLOCK_GAS_SMOKE_EFFECT, UNSEALED_INVISIBILITY = HIDEFACE, - SEALED_INVISIBILITY = HIDEMASK | HIDEEYES | HIDEFACE, + SEALED_INVISIBILITY = HIDEMASK | HIDEEYES | HIDEEARS | HIDEFACE, UNSEALED_COVER = HEADCOVERSMOUTH | HEADCOVERSEYES, ), CHESTPLATE_FLAGS = list( diff --git a/code/modules/pda/PDA.dm b/code/modules/pda/PDA.dm index 5a09e2eb30cc..feaeb7920377 100644 --- a/code/modules/pda/PDA.dm +++ b/code/modules/pda/PDA.dm @@ -63,7 +63,10 @@ GLOBAL_LIST_EMPTY(PDAs) new/datum/data/pda/app/manifest, new/datum/data/pda/app/nanobank, new/datum/data/pda/app/atmos_scanner, - new/datum/data/pda/utility/flashlight) + new/datum/data/pda/utility/flashlight, + new/datum/data/pda/app/games, + // Here our games go + new/datum/data/pda/app/game/minesweeper) var/list/shortcut_cache = list() var/list/shortcut_cat_order = list() var/list/notifying_programs = list() diff --git a/code/modules/pda/games.dm b/code/modules/pda/games.dm new file mode 100644 index 000000000000..3f49266d7b46 --- /dev/null +++ b/code/modules/pda/games.dm @@ -0,0 +1,31 @@ +// Games Hub + +/datum/data/pda/app/games + name = "Games" + icon = "gamepad" + template = "pda_games" + +/datum/data/pda/app/games/update_ui(mob/user, list/data) + var/list/games = list() + for(var/datum/data/pda/app/game/game in pda.programs) + games += list(game.get_game_info()) + data["games"] = games + +/datum/data/pda/app/games/ui_act(action, params) + if(..()) + return + + switch(action) + if("play") + var/datum/data/pda/app/game/game = locate(params["id"]) in pda.programs + pda.start_program(game) + +// Game-type App + +/datum/data/pda/app/game + name = "base game" + icon = "gamepad" + hidden = TRUE + +/datum/data/pda/app/game/proc/get_game_info() + return list(name = name, icon = icon, id = UID()) diff --git a/code/modules/pda/games/minesweeper.dm b/code/modules/pda/games/minesweeper.dm new file mode 100644 index 000000000000..e273d3cf4762 --- /dev/null +++ b/code/modules/pda/games/minesweeper.dm @@ -0,0 +1,240 @@ +// Minesweeper + +#define MINESWEEPER_ROWS 16 +#define MINESWEEPER_COLUMNS 16 +#define MINESWEEPER_BOMBS 40 + +/datum/data/pda/app/game/minesweeper + name = "Minesweeper" + template = "pda_minesweeper" + update = PDA_APP_NOUPDATE + + /// Thing, to make first touch safety + var/first_touch = TRUE + // Win condition things + var/setted_flags = 0 + var/flagged_bombs = 0 + var/opened_cells = 0 + /// Decision to make interface untouchable in the momemnt of regenerating + var/ignore_touches = FALSE + /// Here we have all the minesweeper info + var/list/minesweeper_matrix = list() + // generations vars + var/generation_rows = MINESWEEPER_ROWS + var/generation_columns = MINESWEEPER_COLUMNS + var/generation_bombs = MINESWEEPER_BOMBS + + /// The moment then game was started for point count + var/start_time = 0 + + /// The leaderboard list + var/static/list/leaderboard = list() + +/datum/data/pda/app/game/minesweeper/start() + . = ..() + make_empty_matrix() + +/datum/data/pda/app/game/minesweeper/update_ui(mob/user, list/data) + data["matrix"] = minesweeper_matrix + data["flags"] = setted_flags + data["bombs"] = generation_bombs + data["leaderboard"] = leaderboard + +/datum/data/pda/app/game/minesweeper/ui_act(action, list/params, datum/tgui/ui, datum/ui_state/state) + if(..()) + return + + if(ignore_touches) + return + + switch(action) + if("Square") + switch(params["mode"]) + if("bomb") + if(first_touch) + generate_matrix(params["X"], params["Y"]) + open_cell(params["X"], params["Y"]) + + if(minesweeper_matrix[params["X"]][params["Y"]]["bomb"]) + on_loose(ui.user) + SStgui.update_uis(pda) + return + + if("flag") + if(first_touch || minesweeper_matrix[params["X"]][params["Y"]]["open"]) + return + + if(minesweeper_matrix[params["X"]][params["Y"]]["flag"]) + minesweeper_matrix[params["X"]][params["Y"]]["flag"] = FALSE + setted_flags -= 1 + if(minesweeper_matrix[params["X"]][params["Y"]]["bomb"]) + flagged_bombs -= 1 + else + minesweeper_matrix[params["X"]][params["Y"]]["flag"] = TRUE + setted_flags += 1 + if(minesweeper_matrix[params["X"]][params["Y"]]["bomb"]) + flagged_bombs += 1 + + check_win(ui.user) + SStgui.update_uis(pda) + +/datum/data/pda/app/game/minesweeper/proc/check_win(mob/user) + if(flagged_bombs == generation_bombs && \ + setted_flags == generation_bombs && \ + opened_cells == (generation_rows * generation_columns - generation_bombs)) + on_win(user) + +/datum/data/pda/app/game/minesweeper/proc/on_win(mob/user) + ignore_touches = TRUE + if(!pda.silent) + playsound(get_turf(pda), 'sound/machines/ping.ogg', 20, TRUE) + addtimer(CALLBACK(src, PROC_REF(make_empty_matrix)), 5 SECONDS) + add_into_leaders(user, world.time - start_time) + +/datum/data/pda/app/game/minesweeper/proc/add_into_leaders(mob/user, game_time) + var/nickname = tgui_input_text(user, "You finished the game in [game_time / 10] seconds.\n Write a nickname to save your result on the leaderboard.\n", "Minesweeper", "", 10) + if(!nickname) + return + + leaderboard += list(list("name" = nickname, "time" = "[game_time/10]")) + +/datum/data/pda/app/game/minesweeper/proc/on_loose(mob/user) + ignore_touches = TRUE + if(!pda.silent) + playsound(get_turf(pda), 'sound/effects/explosionfar.ogg', 50, TRUE) + addtimer(CALLBACK(src, PROC_REF(make_empty_matrix)), 3 SECONDS) + +/datum/data/pda/app/game/minesweeper/proc/make_empty_matrix(pay = TRUE) + minesweeper_matrix = list() + for(var/i in 1 to generation_rows) + var/list/new_row = list() + for(var/j in 1 to generation_columns) + new_row["[j]"] = list("open" = FALSE, "bomb" = FALSE, "flag" = FALSE, "around" = 0) + minesweeper_matrix["[i]"] = new_row + first_touch = TRUE + ignore_touches = FALSE + SStgui.update_uis(pda) + +/datum/data/pda/app/game/minesweeper/proc/generate_matrix(x, y) + flagged_bombs = 0 + setted_flags = 0 + opened_cells = 0 + var/list/possible_list = list() + var/num_x = text2num(x) + var/num_y = text2num(y) + var/count = 0 + + for(var/i in 1 to generation_rows) + for(var/j in 1 to generation_columns) + if((i in list(num_x - 1, num_x, num_x + 1)) && (j in list(num_y - 1, num_y, num_y + 1))) + continue + possible_list["[count]"] = list(i, j) + count++ + + for(var/bomb in 1 to generation_bombs) + var/cell = pick(possible_list) + var/coordinates = possible_list[cell] + possible_list -= cell + var/new_x = "[coordinates[1]]" + var/new_y = "[coordinates[2]]" + minesweeper_matrix[new_x][new_y]["bomb"] = TRUE + + if(new_x != "1") + minesweeper_matrix["[text2num(new_x)-1]"][new_y]["around"] += 1 + + if(new_y != "1") + minesweeper_matrix[new_x]["[text2num(new_y)-1]"]["around"] += 1 + + if(new_x != "1" && new_y != "1") + minesweeper_matrix["[text2num(new_x)-1]"]["[text2num(new_y)-1]"]["around"] += 1 + + if(new_x != "[generation_rows]") + minesweeper_matrix["[text2num(new_x)+1]"][new_y]["around"] += 1 + + if(new_y != "[generation_columns]") + minesweeper_matrix[new_x]["[text2num(new_y)+1]"]["around"] += 1 + + if(new_x != "[generation_rows]" && new_y != "[generation_columns]") + minesweeper_matrix["[text2num(new_x)+1]"]["[text2num(new_y)+1]"]["around"] += 1 + + if(new_x != "1" && new_y != "[generation_columns]") + minesweeper_matrix["[text2num(new_x)-1]"]["[text2num(new_y)+1]"]["around"] += 1 + + if(new_x != "[generation_rows]" && new_y != "1") + minesweeper_matrix["[text2num(new_x)+1]"]["[text2num(new_y)-1]"]["around"] += 1 + + first_touch = FALSE + start_time = world.time + +/datum/data/pda/app/game/minesweeper/proc/open_cell(x, y, start_cycle = TRUE) + . = list() + if(!minesweeper_matrix[x][y]["open"]) + minesweeper_matrix[x][y]["open"] = TRUE + opened_cells += 1 + + if(minesweeper_matrix[x][y]["flag"]) + minesweeper_matrix[x][y]["flag"] = FALSE + setted_flags -= 1 + if(minesweeper_matrix[x][y]["bomb"]) + flagged_bombs -= 1 + + if(minesweeper_matrix[x][y]["around"] == 0) + if(start_cycle) + update_zeros(x, y) + else + . = list(list(x, y)) + +/datum/data/pda/app/game/minesweeper/proc/update_zeros(x, y) + var/list/list_for_update = list(list(x, y)) + for(var/list/coordinates in list_for_update) + var/this_x = coordinates[1] + var/this_y = coordinates[2] + var/num_x = text2num(coordinates[1]) + var/num_y = text2num(coordinates[2]) + var/new_x + var/new_y + + if(num_x != 1) + new_x = "[num_x-1]" + list_for_update += open_cell(new_x, this_y) + + if(num_y != 1) + new_y = "[num_y-1]" + list_for_update += open_cell(this_x, new_y) + + if(num_x != generation_rows) + new_x = "[num_x+1]" + list_for_update += open_cell(new_x, this_y) + + if(num_y != generation_columns) + new_y = "[num_y+1]" + list_for_update += open_cell(this_x, new_y) + + if(num_x != 1 && num_y != 1) + new_x = "[num_x-1]" + new_y = "[num_y-1]" + if(minesweeper_matrix[new_x][this_y]["open"] && minesweeper_matrix[this_x][new_y]["open"]) + list_for_update += open_cell(new_x, new_y) + + if(num_x != generation_rows && num_y != generation_columns) + new_x = "[num_x+1]" + new_y = "[num_y+1]" + if(minesweeper_matrix[new_x][this_y]["open"] && minesweeper_matrix[this_x][new_y]["open"]) + list_for_update += open_cell(new_x, new_y) + + if(num_x != 1 && num_y != generation_columns) + new_x = "[num_x-1]" + new_y = "[num_y+1]" + if(minesweeper_matrix[new_x][this_y]["open"] && minesweeper_matrix[this_x][new_y]["open"]) + list_for_update += open_cell(new_x, new_y) + + if(num_x != generation_rows && num_y != 1) + new_x = "[num_x+1]" + new_y = "[num_y-1]" + if(minesweeper_matrix[new_x][this_y]["open"] && minesweeper_matrix[this_x][new_y]["open"]) + list_for_update += open_cell(new_x, new_y) + + +#undef MINESWEEPER_ROWS +#undef MINESWEEPER_COLUMNS +#undef MINESWEEPER_BOMBS diff --git a/code/modules/power/cables/cable.dm b/code/modules/power/cables/cable.dm index 685e1f8a97e0..befd0c7a1ad0 100644 --- a/code/modules/power/cables/cable.dm +++ b/code/modules/power/cables/cable.dm @@ -120,9 +120,9 @@ By design, d1 is the smallest direction and d2 is the highest if(!I.use_tool(src, user, 0, volume = I.tool_volume)) return if(powernet && (powernet.available_power > 0)) // is it powered? - to_chat(user, "Total power: [DisplayPower(powernet.available_power)]\nLoad: [DisplayPower(powernet.power_demand)]\nExcess power: [DisplayPower(get_surplus())]") + to_chat(user, chat_box_examine("Total power: [DisplayPower(powernet.available_power)]\nLoad: [DisplayPower(powernet.power_demand)]\nExcess power: [DisplayPower(get_surplus())]")) else - to_chat(user, "The cable is not powered.") + to_chat(user, "The cable is not powered.") shock(user, 5, 0.2) /obj/structure/cable/wirecutter_act(mob/user, obj/item/I) diff --git a/code/modules/power/engines/singularity/particle_accelerator/particle.dm b/code/modules/power/engines/singularity/particle_accelerator/particle.dm index 7810a0cc2b83..12641cefbd82 100644 --- a/code/modules/power/engines/singularity/particle_accelerator/particle.dm +++ b/code/modules/power/engines/singularity/particle_accelerator/particle.dm @@ -40,11 +40,16 @@ B.take_damage(energy * 0.6) movement_range = 0 +/// The particles bump the singularity /obj/effect/accelerated_particle/Bump(obj/singularity/S) if(!istype(S)) return ..() S.energy += energy + energy = 0 +/// The singularity bumps the particles +/obj/effect/accelerated_particle/singularity_act() + return /obj/effect/accelerated_particle/ex_act(severity) qdel(src) diff --git a/code/modules/projectiles/guns/projectile/toy.dm b/code/modules/projectiles/guns/projectile/toy.dm index 5747af681685..fda9c8b4587a 100644 --- a/code/modules/projectiles/guns/projectile/toy.dm +++ b/code/modules/projectiles/guns/projectile/toy.dm @@ -134,7 +134,6 @@ inhand_y_dimension = 32 mag_type = /obj/item/ammo_box/magazine/internal/shot/toy/tommygun w_class = WEIGHT_CLASS_SMALL - origin_tech = "combat=3;materials=2;syndicate=2" /obj/item/gun/projectile/automatic/sniper_rifle/toy name = "donksoft sniper rifle" diff --git a/code/modules/reagents/chemistry/machinery/chem_master.dm b/code/modules/reagents/chemistry/machinery/chem_master.dm index 0672fa1f7c7b..23f2dcacdb91 100644 --- a/code/modules/reagents/chemistry/machinery/chem_master.dm +++ b/code/modules/reagents/chemistry/machinery/chem_master.dm @@ -6,6 +6,9 @@ #define TRANSFER_TO_DISPOSAL 0 #define TRANSFER_TO_BEAKER 1 +#define SAFE_MIN_TEMPERATURE T0C+7 // Safe minimum temperature for chemicals before they would start to damage slimepeople. +#define SAFE_MAX_TEMPERATURE T0C+36 // Safe maximum temperature for chemicals before they would start to damage drask. + /obj/machinery/chem_master name = "\improper ChemMaster 3000" desc = "Used to turn reagents into pills, patches, and store them in bottles." @@ -610,6 +613,8 @@ for(var/datum/reagent/A in R.reagent_list) if(!safe_chem_list.Find(A.id)) return FALSE + if(R.chem_temp < SAFE_MIN_TEMPERATURE || R.chem_temp > SAFE_MAX_TEMPERATURE) + return FALSE return TRUE /datum/chemical_production_mode/patches/configure_item(data, datum/reagents/R, obj/item/reagent_containers/patch/P) @@ -628,7 +633,7 @@ production_name = "Bottles" production_icon = "wine-bottle" item_type = /obj/item/reagent_containers/glass/bottle/reagent - sprites = list("bottle", "small_bottle", "wide_bottle", "round_bottle", "reagent_bottle") + sprites = list("bottle", "reagent_bottle") max_items_amount = 5 max_units_per_item = 50 name_suffix = " bottle" @@ -665,3 +670,6 @@ #undef TRANSFER_TO_DISPOSAL #undef TRANSFER_TO_BEAKER + +#undef SAFE_MIN_TEMPERATURE +#undef SAFE_MAX_TEMPERATURE diff --git a/code/modules/reagents/chemistry/machinery/pandemic.dm b/code/modules/reagents/chemistry/machinery/pandemic.dm index 35eb0f141883..bf4830223396 100644 --- a/code/modules/reagents/chemistry/machinery/pandemic.dm +++ b/code/modules/reagents/chemistry/machinery/pandemic.dm @@ -81,7 +81,7 @@ /obj/machinery/computer/pandemic/proc/create_culture(name, bottle_type = "culture", cooldown = 50) var/obj/item/reagent_containers/glass/bottle/B = new/obj/item/reagent_containers/glass/bottle(loc) - B.icon_state = "round_bottle" + B.icon_state = "bottle" B.pixel_x = rand(-3, 3) B.pixel_y = rand(-3, 3) replicator_cooldown(cooldown) diff --git a/code/modules/reagents/reagent_containers/chemical_bottle.dm b/code/modules/reagents/reagent_containers/chemical_bottle.dm index 5375e5034b29..22c72441c285 100644 --- a/code/modules/reagents/reagent_containers/chemical_bottle.dm +++ b/code/modules/reagents/reagent_containers/chemical_bottle.dm @@ -5,37 +5,38 @@ name = "bottle" desc = "A small bottle." icon = 'icons/obj/chemical.dmi' - icon_state = "round_bottle" + icon_state = "bottle" item_state = "atoxinbottle" amount_per_transfer_from_this = 10 - possible_transfer_amounts = list(5,10,15,25,30) + possible_transfer_amounts = list(5, 10, 15, 25, 30, 40, 50) container_type = OPENCONTAINER - volume = 30 + volume = 50 /obj/item/reagent_containers/glass/bottle/on_reagent_change() update_icon(UPDATE_OVERLAYS) /obj/item/reagent_containers/glass/bottle/update_overlays() . = ..() - underlays.Cut() if(reagents.total_volume) - var/image/filling = image('icons/obj/reagentfillings.dmi', src, "[icon_state]10") + var/image/filling = image('icons/obj/reagentfillings.dmi', src, "[icon_state]1") var/percent = round((reagents.total_volume / volume) * 100) switch(percent) - if(0 to 24) - filling.icon_state = "[icon_state]10" - if(25 to 49) - filling.icon_state = "[icon_state]25" - if(50 to 74) - filling.icon_state = "[icon_state]50" - if(75 to 90) - filling.icon_state = "[icon_state]75" - if(91 to INFINITY) + if(1 to 19) + filling.icon_state = "[icon_state]1" + if(20 to 39) + filling.icon_state = "[icon_state]20" + if(40 to 59) + filling.icon_state = "[icon_state]40" + if(60 to 79) + filling.icon_state = "[icon_state]60" + if(80 to 99) + filling.icon_state = "[icon_state]80" + if(100 to INFINITY) filling.icon_state = "[icon_state]100" filling.icon += mix_color_from_reagents(reagents.reagent_list) - underlays += filling + . += filling if(!is_open_container()) . += "lid_[icon_state]" @@ -50,67 +51,56 @@ /obj/item/reagent_containers/glass/bottle/toxin name = "toxin bottle" desc = "A small bottle containing toxic compounds." - icon_state = "small_bottle" list_reagents = list("toxin" = 30) /obj/item/reagent_containers/glass/bottle/atropine name = "atropine bottle" desc = "A small bottle containing atropine, used for cardiac emergencies." - icon_state = "small_bottle" list_reagents = list("atropine" = 30) /obj/item/reagent_containers/glass/bottle/saline name = "saline-glucose bottle" desc = "A small bottle containing saline-glucose solution." - icon_state = "small_bottle" list_reagents = list("salglu_solution" = 30) /obj/item/reagent_containers/glass/bottle/salicylic name = "salicylic acid bottle" desc = "A small bottle containing medicine for pain and fevers." - icon_state = "small_bottle" list_reagents = list("sal_acid" = 30) /obj/item/reagent_containers/glass/bottle/cyanide name = "cyanide bottle" desc = "A small bottle of cyanide. Bitter almonds?" - icon_state = "small_bottle" list_reagents = list("cyanide" = 30) /obj/item/reagent_containers/glass/bottle/mutagen name = "unstable mutagen bottle" desc = "A small bottle of unstable mutagen. Randomly changes the DNA structure of whoever comes in contact." - icon_state = "bottle" list_reagents = list("mutagen" = 30) /obj/item/reagent_containers/glass/bottle/ash name = "ash bottle" desc = "A small bottle of ash. The substance, not the person." - icon_state = "bottle" list_reagents = list("ash" = 30) /obj/item/reagent_containers/glass/bottle/ammonia name = "ammonia bottle" desc = "A small bottle of ammonia. Good for cleaning, but don't mix it with bleach." - icon_state = "bottle" list_reagents = list("ammonia" = 30) /obj/item/reagent_containers/glass/bottle/diethylamine name = "diethylamine bottle" desc = "A small bottle of diethylamine. Good for plants, bad for people." - icon_state = "round_bottle" list_reagents = list("diethylamine" = 30) /obj/item/reagent_containers/glass/bottle/saltpetre name = "saltpetre bottle" desc = "A small bottle of saltpetre. Used in botany and to make gunpowder." - icon_state = "round_bottle" list_reagents = list("saltpetre" = 30) /obj/item/reagent_containers/glass/bottle/facid name = "fluorosulfuric acid bottle" desc = "A small bottle. Contains a small amount of Fluorosulfuric Acid" - icon_state = "round_bottle" list_reagents = list("facid" = 30) /obj/item/reagent_containers/glass/bottle/adminordrazine @@ -123,55 +113,46 @@ /obj/item/reagent_containers/glass/bottle/capsaicin name = "capsaicin bottle" desc = "A small bottle. Contains hot sauce." - icon_state = "round_bottle" list_reagents = list("capsaicin" = 30) /obj/item/reagent_containers/glass/bottle/frostoil name = "frost oil bottle" desc = "A small bottle. Contains cold sauce." - icon_state = "round_bottle" list_reagents = list("frostoil" = 30) /obj/item/reagent_containers/glass/bottle/morphine name = "morphine bottle" desc = "A small bottle of morphine, a powerful painkiller." - icon_state = "bottle" list_reagents = list("morphine" = 30) /obj/item/reagent_containers/glass/bottle/ether name = "ether bottle" desc = "A small bottle of an ether, a strong anesthetic and sedative." - icon_state = "round_bottle" list_reagents = list("ether" = 30) /obj/item/reagent_containers/glass/bottle/charcoal name = "charcoal bottle" desc = "A small bottle. Contains charcoal." - icon_state = "wide_bottle" list_reagents = list("charcoal" = 30) /obj/item/reagent_containers/glass/bottle/epinephrine name = "epinephrine bottle" desc = "A small bottle. Contains epinephrine - used to stabilize patients." - icon_state = "round_bottle" list_reagents = list("epinephrine" = 30) /obj/item/reagent_containers/glass/bottle/pancuronium name = "pancuronium bottle" desc = "A small bottle of pancuronium." - icon_state = "round_bottle" list_reagents = list("pancuronium" = 30) /obj/item/reagent_containers/glass/bottle/sulfonal name = "sulfonal bottle" desc = "A small bottle of Sulfonal." - icon_state = "round_bottle" list_reagents = list("sulfonal" = 30) /obj/item/reagent_containers/glass/bottle/love name = "love bottle" desc = "A small bottle of love." - icon_state = "round_bottle" list_reagents = list("love" = 50) //Reagent bottles @@ -180,8 +161,6 @@ name = "reagent bottle" desc = "A bottle for storing reagents." icon_state = "reagent_bottle" - possible_transfer_amounts = list(5, 10, 15, 25, 30, 50) - volume = 50 /obj/item/reagent_containers/glass/bottle/reagent/oil name = "oil bottle" @@ -278,8 +257,6 @@ /obj/item/reagent_containers/glass/bottle/traitor desc = "It has a small skull and crossbones on it. Uh-oh!" - possible_transfer_amounts = list(5,10,15,25,30,40) - volume = 40 /obj/item/reagent_containers/glass/bottle/traitor/Initialize(mapload) . = ..() @@ -288,162 +265,135 @@ /obj/item/reagent_containers/glass/bottle/plasma name = "plasma dust bottle" desc = "A small bottle of plasma in dust form. Extremely toxic and reacts with micro-organisms inside blood." - icon_state = "wide_bottle" list_reagents = list("plasma_dust" = 30) /obj/item/reagent_containers/glass/bottle/diphenhydramine name = "diphenhydramine bottle" desc = "A small bottle of diphenhydramine." - icon_state = "round_bottle" list_reagents = list("diphenhydramine" = 30) /obj/item/reagent_containers/glass/bottle/oculine name = "oculine bottle" desc = "A small bottle of combined eye and ear medication." - icon_state = "round_bottle" list_reagents = list("oculine" = 30) /obj/item/reagent_containers/glass/bottle/potassium_iodide name = "potassium iodide bottle" desc = "A small bottle of potassium iodide." - icon_state = "wide_bottle" list_reagents = list("potass_iodide" = 30) /obj/item/reagent_containers/glass/bottle/flu_virion name = "Flu virion culture bottle" desc = "A small bottle. Contains H13N1 flu virion culture in synthblood medium." - icon_state = "round_bottle" spawned_disease = /datum/disease/advance/flu /obj/item/reagent_containers/glass/bottle/epiglottis_virion name = "Epiglottis virion culture bottle" desc = "A small bottle. Contains Epiglottis virion culture in synthblood medium." - icon_state = "round_bottle" spawned_disease = /datum/disease/advance/voice_change /obj/item/reagent_containers/glass/bottle/liver_enhance_virion name = "Liver enhancement virion culture bottle" desc = "A small bottle. Contains liver enhancement virion culture in synthblood medium." - icon_state = "round_bottle" spawned_disease = /datum/disease/advance/heal /obj/item/reagent_containers/glass/bottle/hullucigen_virion name = "Hullucigen virion culture bottle" desc = "A small bottle. Contains hullucigen virion culture in synthblood medium." - icon_state = "round_bottle" spawned_disease = /datum/disease/advance/hullucigen /obj/item/reagent_containers/glass/bottle/pierrot_throat name = "Pierrot's Throat culture bottle" desc = "A small bottle. Contains H0NI<42 virion culture in synthblood medium." - icon_state = "round_bottle" spawned_disease = /datum/disease/pierrot_throat /obj/item/reagent_containers/glass/bottle/cold name = "Rhinovirus culture bottle" desc = "A small bottle. Contains XY-rhinovirus culture in synthblood medium." - icon_state = "round_bottle" spawned_disease = /datum/disease/advance/cold /obj/item/reagent_containers/glass/bottle/retrovirus name = "Retrovirus culture bottle" desc = "A small bottle. Contains a retrovirus culture in a synthblood medium." - icon_state = "round_bottle" spawned_disease = /datum/disease/dna_retrovirus /obj/item/reagent_containers/glass/bottle/gbs name = "GBS culture bottle" desc = "A small bottle. Contains Gravitokinetic Bipotential SADS+ culture in synthblood medium."//Or simply - General BullShit - icon_state = "round_bottle" amount_per_transfer_from_this = 5 spawned_disease = /datum/disease/gbs /obj/item/reagent_containers/glass/bottle/fake_gbs name = "GBS culture bottle" desc = "A small bottle. Contains Gravitokinetic Bipotential SADS- culture in synthblood medium."//Or simply - General BullShit - icon_state = "round_bottle" spawned_disease = /datum/disease/fake_gbs /obj/item/reagent_containers/glass/bottle/brainrot name = "Brainrot culture bottle" desc = "A small bottle. Contains Cryptococcus Cosmosis culture in synthblood medium." - icon_state = "round_bottle" spawned_disease = /datum/disease/brainrot /obj/item/reagent_containers/glass/bottle/magnitis name = "Magnitis culture bottle" desc = "A small bottle. Contains a small dosage of Fukkos Miracos." - icon_state = "round_bottle" spawned_disease = /datum/disease/magnitis /obj/item/reagent_containers/glass/bottle/wizarditis name = "Wizarditis culture bottle" desc = "A small bottle. Contains a sample of Rincewindus Vulgaris." - icon_state = "round_bottle" spawned_disease = /datum/disease/wizarditis /obj/item/reagent_containers/glass/bottle/anxiety name = "Severe Anxiety culture bottle" desc = "A small bottle. Contains a sample of Lepidopticides." - icon_state = "round_bottle" spawned_disease = /datum/disease/anxiety /obj/item/reagent_containers/glass/bottle/beesease name = "Beesease culture bottle" desc = "A small bottle. Contains a sample of invasive Apidae." - icon_state = "round_bottle" spawned_disease = /datum/disease/beesease /obj/item/reagent_containers/glass/bottle/fluspanish name = "Spanish flu culture bottle" desc = "A small bottle. Contains a sample of Inquisitius." - icon_state = "round_bottle" spawned_disease = /datum/disease/fluspanish /obj/item/reagent_containers/glass/bottle/tuberculosis name = "Fungal Tuberculosis culture bottle" desc = "A small bottle. Contains a sample of Fungal Tubercle bacillus." - icon_state = "round_bottle" spawned_disease = /datum/disease/tuberculosis /obj/item/reagent_containers/glass/bottle/regeneration name = "Regeneration culture bottle" desc = "A small bottle. Contains a sample of a virus that heals toxin damage." - icon_state = "round_bottle" spawned_disease = /datum/disease/advance/heal /obj/item/reagent_containers/glass/bottle/sensory_restoration name = "Sensory Restoration culture bottle" desc = "A small bottle. Contains a sample of a virus that heals sensory damage." - icon_state = "round_bottle" spawned_disease = /datum/disease/advance/sensory_restoration /obj/item/reagent_containers/glass/bottle/tuberculosiscure name = "BVAK bottle" desc = "A small bottle containing Bio Virus Antidote Kit." - icon_state = "wide_bottle" list_reagents = list("atropine" = 5, "epinephrine" = 5, "salbutamol" = 10, "spaceacillin" = 10) /obj/item/reagent_containers/glass/bottle/zombiecure1 name = "\improper Anti-Plague Sequence Alpha bottle" desc = "A small bottle containing 50 units of Anti-Plague Sequence Alpha. Prevents infection, cures level 1 infection." - icon_state = "wide_bottle" list_reagents = list("zombiecure1" = 50) /obj/item/reagent_containers/glass/bottle/zombiecure2 name = "\improper Anti-Plague Sequence Beta bottle" desc = "A small bottle containing 50 units of Anti-Plague Sequence Beta. Weakens zombies, heals low infections." - icon_state = "wide_bottle" list_reagents = list("zombiecure2" = 50) /obj/item/reagent_containers/glass/bottle/zombiecure3 name = "\improper Anti-Plague Sequence Gamma bottle" desc = "A small bottle containing 50 units of Anti-Plague Sequence Gamma. Lowers zombies healing. Heals stage 5 and slows stage 6 infections." - icon_state = "wide_bottle" list_reagents = list("zombiecure3" = 50) /obj/item/reagent_containers/glass/bottle/zombiecure4 name = "\improper Anti-Plague Sequence Omega bottle" desc = "A small bottle containing 50 units of Anti-Plague Sequence Omega. Cures all cases of the Necrotizing Plague. Also heals dead limbs." - icon_state = "wide_bottle" list_reagents = list("zombiecure4" = 50) diff --git a/code/modules/reagents/reagent_containers/glass_containers.dm b/code/modules/reagents/reagent_containers/glass_containers.dm index c4920cbcac9b..9c7b309cc61e 100644 --- a/code/modules/reagents/reagent_containers/glass_containers.dm +++ b/code/modules/reagents/reagent_containers/glass_containers.dm @@ -140,23 +140,21 @@ /obj/item/reagent_containers/glass/beaker/update_overlays() . = ..() if(reagents.total_volume) - var/image/filling = image('icons/obj/reagentfillings.dmi', src, "[icon_state]10") + var/image/filling = image('icons/obj/reagentfillings.dmi', src, "[icon_state]1") var/percent = round((reagents.total_volume / volume) * 100) switch(percent) - if(0 to 9) - filling.icon_state = "[icon_state]-10" - if(10 to 24) - filling.icon_state = "[icon_state]10" - if(25 to 49) - filling.icon_state = "[icon_state]25" - if(50 to 74) - filling.icon_state = "[icon_state]50" - if(75 to 79) - filling.icon_state = "[icon_state]75" - if(80 to 90) + if(1 to 19) + filling.icon_state = "[icon_state]1" + if(20 to 39) + filling.icon_state = "[icon_state]20" + if(40 to 59) + filling.icon_state = "[icon_state]40" + if(60 to 79) + filling.icon_state = "[icon_state]60" + if(80 to 99) filling.icon_state = "[icon_state]80" - if(91 to INFINITY) + if(100 to INFINITY) filling.icon_state = "[icon_state]100" filling.icon += mix_color_from_reagents(reagents.reagent_list) diff --git a/code/modules/shuttle/shuttle.dm b/code/modules/shuttle/shuttle.dm index 35ae17be544a..5e373f5c410a 100644 --- a/code/modules/shuttle/shuttle.dm +++ b/code/modules/shuttle/shuttle.dm @@ -534,6 +534,8 @@ continue AM.onShuttleMove(T0, T1, rotation, mobile_port.last_caller) + SEND_SIGNAL(T0, COMSIG_TURF_ON_SHUTTLE_MOVE, T1) + if(rotation) T1.shuttleRotate(rotation) diff --git a/config/example/config.toml b/config/example/config.toml index b79c9aaa375b..16fae30d0125 100644 --- a/config/example/config.toml +++ b/config/example/config.toml @@ -704,6 +704,7 @@ active_space_ruins = [ "_maps/map_files/RandomRuins/SpaceRuins/casino.dmm", "_maps/map_files/RandomRuins/SpaceRuins/rocky_motel.dmm", "_maps/map_files/RandomRuins/SpaceRuins/abandoned_sec_shuttle.dmm", + "_maps/map_files/RandomRuins/SpaceRuins/freighter.dmm", "_maps/map_files/RandomRuins/SpaceRuins/unathi_skiff.dmm", ## SS220 Ruins "_maps/map_files220/RandomRuins/SpaceRuins/mechtransport_new.dmm", diff --git a/docs/mapping/spawn_pools.md b/docs/mapping/spawn_pools.md new file mode 100644 index 000000000000..b17c1bea4f12 --- /dev/null +++ b/docs/mapping/spawn_pools.md @@ -0,0 +1,195 @@ +# Spawn Pools + +Mappers have many useful random spawners to provide variety to their maps. +However, if these spawners provide high-value loot, or rare loot, it can become +difficult to ensure that these spawners are generally balanced. + +In some cases this doesn't matter so much. Maintenance loot spawners have free +reign to spawn loot of varying value and the only balancing done is to adjust +the weights of these loots, and scale the amount of spawners to reasonably work +for a given map's size and expected population. + +In other situations, like explorer loot in space, a surplus of valuable loot +spawners can quickly give players enormous advantages. This is compounded by the +fact that ruins are generally reviewed for balance in a vacuum, because it would +be too difficult to try and reason through what could spawn on any given round +across all ruins. + +Spawn pools were written as an attempt to solve this problem. Pool spawners are +assigned a point value, and registered to a global pool. Spawn pools track these +spawners, and deduct points from a central budget every time one of them spawns +loot. Once the budget runs out, no more spawners from that pool are activated. + +## Example + +Let's take our explorer loot scenario as before. If we want to register all +explorer loot to a pool, we first need to create the pool as a distinct +`/datum/spawn_pool` subtype: + +```dm +/datum/spawn_pool/space_loot + id = "space_loot_pool" + available_points = 200 +``` + +And then we create the spawners we want, all subtypes of +`/obj/effect/spawner/random/pool`: + +```dm +/obj/effect/spawner/random/pool/space_loot + spawn_pool_id = "space_loot_pool" + +/obj/effect/spawner/random/pool/space_loot/tier1 + point_value = 5 + loot = list( + /obj/item/soap/syndie, + /obj/item/stamp/chameleon, + ) + +/obj/effect/spawner/random/pool/space_loot/tier2 + point_value = 60 + loot = list( + /obj/item/ammo_box/magazine/smgm45, + /obj/item/ammo_box/magazine/apsm10mm/hp, + ) + +/obj/effect/spawner/random/pool/space_loot/tier3 + point_value = 100 + loot = list( + /obj/item/gun/projectile/automatic/pistol/APS = 2, + /obj/item/gun/projectile/automatic/l6_saw = 1, + ) +``` + +Here we have three different tiers of loot. The lowest tier has low-value items +and a low point value of 5. The middle tier has ammo and a point value of 50. +The highest tier has guns and a point value of 100. Note that you can continue +to use weights in these spawners, as well as all the other features of +`/obj/effect/spawner/random`. + +Armed with these three spawners, we can now use them on any ruin we want, in any +quantity. We may put the tier 3 spawner in a difficult, popular ruin, and the +tier 1 spawner in a less popular ruin. Importantly, we can place many of these +spawners, with a guarantee that only a handful will actually receive loot. + +Let's examine through some sample runs. Let's say we have: + +- two tier 1 spawners +- two tier 2 spawners +- two tier 3 spawners + +### Example Scenarios + +Spawners are selected at random, so one run might look like this: + +1. Pool budget is 200. +2. Tier 3 spawner chosen, gun spawns, budget is now 100. +3. Tier 2 spawner chosen, ammo spawns, budget is now 40. +4. Tier 1 spawner chosen, soap spawns, budget is now 35. + +At this point, neither tier 2 or tier 3 spawners can be afforded. If they are +chosen in the random selection, they are discarded, and do not spawn anything. +When the pool reaches the remainin tier 1 spawner, it will proc: + +4. Tier 2 spawner chosen, cost too high, does not spawn. +5. Tier 3 spawner chosen, cost too high, does not spawn. +6. Tier 1 spawner chosen, chameleon stamp spawns, budget is now 30. + +The pool has now exhausted all its spawners and stops. + +Another run may look like this: + +1. Pool budget is 200. +2. Tier 3 spawner chosen, gun spawns, budget is now 100. +3. Tier 3 spawner chosen, gun spawns, budget is now 0. + +The budget has been exhausted and no more spawners are chosen. Obviously this +second scenario is not ideal, as now only high-value loot has spawned. One of +the ways to fix this is to set the tier 3 cost to 110, rather than 100. That +way, the pool can only afford to ever spawn one of them. + +## Nested Spawners + +This is not a great usage of the spawn pool. It still means that high value +ruins will have high value loot, and less often explored ruins are still not +worth visiting. What we want to do is expand the amount of variety and +randomness across all ruins. + +To do this, we can nest our spawners. Create a new subtype: + +```dm +/obj/effect/spawner/random/pool/space_loot/mixed + loot = list( + /obj/effect/spawner/random/pool/space_loot/tier1 = 5, + /obj/effect/spawner/random/pool/space_loot/tier2 = 2, + /obj/effect/spawner/random/pool/space_loot/tier3 = 1, + ) +``` + +This works much better for our purposes. Not only are we decreasing the weight +of tier 3 spawns, but we can place one spawner type everywhere, meaning any of +the spawners has a chance of spawning great or passable loot. + +By nesting spawners, we gain the fine-grained control we want over drop +likelihood: the budget system, much like ruin placement, is concerned only about +how much loot it should attempt to spawn. The nested spawner's weights dictate +what it is we want to spawn more or less often. + +## Unique and Guaranteed Spawners + +Pool spawners also expose two other important features: guaranteed and unique +spawns. + +If we have ruins that have specialized, valuable loot, we always want the pool +to spawn loot there, no matter what. It would be bad to run a difficult, unique +ruin only to be left with nothing or generic loot from the table. + +_Guaranteed spawns_ are a way to fix that. For example, let's say we have a mech +themed ruin and we want the loot to be exosuit parts, but we don't want those +parts spawning anywhere else. We create a distinct subtype: + +```dm +/obj/effect/spawner/random/pool/space_loot/mech_ruin + point_value = 100 + guaranteed = TRUE + loot = list( + /obj/item/mecha_parts/mecha_equipment/drill/diamonddrill, + /obj/item/mecha_parts/mecha_equipment/extinguisher, + /obj/item/mecha_parts/mecha_equipment/medical/sleeper, + ) +``` + +By placing this spawner in our ruin, we can guarantee that loot is spawned there +before any other spawners are checked. But we can also include a point value +with it, so that it still counts as part of the overall budget. + +Let's say we have an item that we want to be part of the generic pool, but we +only want it to spawn once. This is what _unique spawns_ are for. For example, +say we want to spawn a Syndicate Elite MODsuit, but we only want one spawning +anywhere in space. We create a unique subtype: + +```dm +/obj/effect/spawner/random/pool/space_loot/elite_modsuit + point_value = 100 + unique_picks = TRUE + loot = list(/obj/item/mod/control/pre_equipped/traitor_elite) +``` + +If this spawner is chosen, it will spawn the MODsuit, and then the MODsuit will +be removed from the list. Spawners with empty lists are no-ops, so any other +spawners of this type will simply be dropped. By providing rare unique spawns +like this, you can give players motivation to search high and low for elusive +loot, while continuing to ensure the global budget of the spawn pool is +respected. + +## Conclusion + +Spawn pools are useful and flexible, but they are not magic. Balancing their +spawner values against their budget requires careful consideration and testing, +and you will not get them right on the first try. There are various subtle +things you will have to watch out for. For example, if you make high-value loot +too high in cost but low-value loot too low, then if the budget is too high +you'll end up with a tiny amount of high-value loot (good) but a +disproportionately enormous amount of low-value loot (bad). If you have more +budget than spawners to accomodate it, then you'll end up with unused budget +which will skew balance. Be sure to tweak and experiment. diff --git a/icons/mob/simple_human.dmi b/icons/mob/simple_human.dmi index fd86de3d6879..311d82013cb8 100644 Binary files a/icons/mob/simple_human.dmi and b/icons/mob/simple_human.dmi differ diff --git a/icons/obj/chemical.dmi b/icons/obj/chemical.dmi index 29291e062e6b..82ad7c7f7e11 100644 Binary files a/icons/obj/chemical.dmi and b/icons/obj/chemical.dmi differ diff --git a/icons/obj/reagentfillings.dmi b/icons/obj/reagentfillings.dmi index 2b783a75ad62..1cb729cd2343 100644 Binary files a/icons/obj/reagentfillings.dmi and b/icons/obj/reagentfillings.dmi differ diff --git a/mkdocs.yml b/mkdocs.yml index 73aa8d48235f..4f166851582c 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -87,6 +87,7 @@ nav: - 'Mapping Requirements': './mapping/requirements.md' - 'Design Guidelines': './mapping/design.md' - 'Guide to Submaps': './mapping/submaps.md' + - 'Spawn Pools': './mapping/spawn_pools.md' - 'References': - 'Glossary': './references/glossary.md' diff --git a/modular_ss220/aesthetics/decals/code/decals.dm b/modular_ss220/aesthetics/decals/code/decals.dm index 9cabb9fcfa41..b2e8249cd569 100644 --- a/modular_ss220/aesthetics/decals/code/decals.dm +++ b/modular_ss220/aesthetics/decals/code/decals.dm @@ -1,8 +1,8 @@ -/datum/component/decal/generate_appearance(_icon, _icon_state, _dir, _layer, _color, _alpha) +/datum/element/decal/generate_appearance(_icon, _icon_state, _dir, _layer, _color, _alpha, source) . = ..() if(!.) return - var/atom/master = parent + var/atom/master = source if(master::color && _color) pic.appearance_flags |= RESET_COLOR diff --git a/modular_ss220/agent_id_tgui/code/agent_id_tgui.dm b/modular_ss220/agent_id_tgui/code/agent_id_tgui.dm index effcd2d15b6e..0f391743f3bf 100644 --- a/modular_ss220/agent_id_tgui/code/agent_id_tgui.dm +++ b/modular_ss220/agent_id_tgui/code/agent_id_tgui.dm @@ -1,255 +1,15 @@ /obj/item/card/id/syndicate - dna_hash = null - blood_type = null - fingerprint_hash = null - var/mob/living/carbon/human/registered_human var/static/list/restricted_appearances = list("admin", "deathsquad", "clownsquad", "data", "ERT_empty", "silver", "gold", "TDred", "TDgreen") var/static/list/appearances = GLOB.card_skins_ss220 + GLOB.card_skins_special_ss220 + GLOB.card_skins_donor_ss220 - restricted_appearances - var/static/list/departments = list( - "Assistant" = null, - "Service" = GLOB.service_positions, - "Supply" = GLOB.supply_positions, - "Engineering" = GLOB.engineering_positions, - "Medical" = GLOB.medical_positions, - "Science" = GLOB.science_positions, - "Security" = GLOB.security_positions, - "Command" = GLOB.command_positions, - "Special" = (get_all_solgov_jobs() + get_all_soviet_jobs() + get_all_centcom_jobs()), - "Custom" = null, - ) - -/obj/item/card/id/syndicate/ui_act(action, list/params, datum/tgui/ui, datum/ui_state/state) - if(..() || !registered_human) - return - . = TRUE - - switch(action) - if("change_name") - var/new_name - if(params["option"] == "Primary") - new_name = ishuman(registered_human) ? registered_human.real_name : registered_human.name - - else if(params["option"] == "Secondary") - new_name = tgui_input_list(registered_human, "Чьё имя вы хотите взять?", "Карта Агента - Имя", GLOB.human_list) - if(isnull(new_name)) - return - - else - new_name = params["name"] - - registered_name = reject_bad_name(new_name, TRUE) - UpdateName() - to_chat(registered_human, span_notice("Имя изменено на: [new_name].")) - - if("change_sex") - var/new_sex = params["sex"] - sex = new_sex - to_chat(registered_human, span_notice("Пол изменён на: [sex].")) - - if("change_age") - var/new_age = params["age"] - age = clamp(new_age, 17, 300) - to_chat(registered_human, span_notice("Возраст изменён на: [new_age].")) - - if("change_occupation") - change_occupation() - - if("change_fingerprints") - if(params["option"] == "Primary") - fingerprint_hash = md5(registered_human.dna.uni_identity) - else - var/fingerprints_param = params["new_fingerprints"] - if(fingerprints_param) - fingerprint_hash = fingerprints_param - - to_chat(registered_human, span_notice("Отпечатки изменёны на: [fingerprint_hash].")) - - if("change_blood_type") - if(params["option"] == "Primary") - blood_type = registered_human.dna.blood_type - else - var/blood_param = params["new_type"] - if(blood_param) - blood_type = blood_param - - to_chat(registered_human, span_notice("Тип крови изменён на: [blood_type].")) - - if("change_dna_hash") - if(params["option"] == "Primary") - dna_hash = registered_human.dna.unique_enzymes - else - var/dna_param = params["new_dna"] - if(dna_param) - dna_hash = dna_param - - to_chat(registered_human, span_notice("ДНК изменён на: [dna_hash].")) - - if("change_money_account") - var/new_account - if(params["option"] == "Primary") - new_account = rand(1000, 9999) * 1000 + rand(1000, 9999) - else - new_account = params["new_account"] - if(!isnum(new_account)) - to_chat(registered_human, span_warning("Номер аккаунта должен состоять только из цифр!")) - return - - associated_account_number = clamp(new_account, 1000000, 9999999) - to_chat(registered_human, span_notice("Привязанный счёт изменён на: [new_account].")) - - if("change_photo") - change_photo() - if("change_appearance") - change_appearance(params) - if("delete_info") - delete_info() - if("clear_access") - clear_access() - if("change_ai_tracking") - change_ai_tracking() - RebuildHTML() /obj/item/card/id/syndicate/ui_data(mob/user) - var/list/data = list() - data["registered_name"] = registered_name - data["sex"] = sex - data["age"] = age - data["assignment"] = assignment - data["associated_account_number"] = associated_account_number - data["blood_type"] = blood_type - data["dna_hash"] = dna_hash - data["fingerprint_hash"] = fingerprint_hash - data["photo"] = photo - data["ai_tracking"] = untrackable + var/list/data = ..() + var/default = 'icons/mob/hud/job_assets.dmi' + var/custom = 'modular_ss220/jobs/icons/job_assets.dmi' + data["job_assets"] = !hud_icon || icon_exists(default, hud_icon) ? default : custom return data /obj/item/card/id/syndicate/ui_static_data(mob/user) - var/list/data = list() - data["icon"] = icon + var/list/data = ..() data["appearances"] = appearances return data - -/obj/item/card/id/syndicate/ui_state(mob/user) - return GLOB.default_state - -/obj/item/card/id/syndicate/ui_interact(mob/user, datum/tgui/ui) - ui = SStgui.try_update_ui(user, src, ui) - if(!ui) - ui = new(user, src, "AgentCard", name) - ui.open() - -/obj/item/card/id/syndicate/proc/check_registered_human(mob/user) - if(!ishuman(user)) - return FALSE - if(!registered_human) - registered_human = user - if(registered_human != user) - return FALSE - return TRUE - -/obj/item/card/id/syndicate/attack_self(mob/user) - flash_card(user) - return - -/obj/item/card/id/syndicate/CtrlClick(mob/user) - if(!check_registered_human(user)) - return - ui_interact(user) - -/obj/item/card/id/syndicate/examine(mob/user) - . = ..() - if(check_registered_human(user)) - . += span_info("Ctrl-Click для открытия интерфейса.") - -/obj/item/card/id/proc/flash_card(mob/user) - user.visible_message( - span_notice("[user] показывает тебе: [bicon(src)] [src.name]. Должность на карте: [src.assignment]."), - span_notice("Ты показываешь свою ID карту: [bicon(src)] [src.name]. Должность на карте: [src.assignment].")) - if(mining_points) - to_chat(user, "На ней [mining_points] шахтёрских очков. Всего было получено за смену [total_mining_points] шахтёрских очков!") - src.add_fingerprint(user) - -/obj/item/card/id/syndicate/proc/delete_info() - name = null - registered_name = null - icon_state = null - sex = null - age = null - assignment = null - associated_account_number = null - blood_type = null - dna_hash = null - fingerprint_hash = null - photo = null - registered_user = null - SStgui.close_uis(src) - to_chat(registered_human, span_notice("Вся информация с карты агента была удалена.")) - -/obj/item/card/id/syndicate/proc/clear_access() - access = initial_access.Copy() - to_chat(registered_human, span_notice("Выполнен сброс доступов.")) - -/obj/item/card/id/syndicate/proc/change_ai_tracking() - untrackable = !untrackable - to_chat(registered_human, span_notice("Эта ID карта[untrackable ? " не" : ""] может быть отслежена ИИ.")) - -/obj/item/card/id/syndicate/proc/change_photo() - if(!Adjacent(registered_human)) - return - - var/job_clothes = null - if(assignment) - job_clothes = assignment - - var/icon/newphoto = get_id_photo(registered_human, job_clothes) - if(!newphoto) - return - - photo = newphoto - to_chat(registered_human, span_notice("Фото изменено. Если хотите другую одежду, то выберите другую должность и измените снова.")) - -/obj/item/card/id/syndicate/proc/change_appearance(list/params) - var/choice = params["new_appearance"] - if(!(choice in appearances)) - message_admins("Warning: AgentID href exploit attempted by [key_name(usr)]! Impossible icon_state: [choice].") - return - - icon_state = choice - to_chat(usr, span_notice("Внешний вид изменён на: [choice].")) - -/obj/item/card/id/syndicate/proc/change_occupation() - var/title = "Карта Агента - Должность" - var/department_icon_text = "Какая должность будет показываться с этой картой на ХУДах?" - var/department_selection_text = "Какую должность вы хотите присвоить этой карте? Выберите департамент, или можете вписать собственную должность." - var/selected_department = tgui_input_list(registered_human, department_selection_text, title, departments) - if(isnull(selected_department)) - return - - var/new_rank - var/new_job - if(selected_department == "Assistant") - new_job = selected_department - new_rank = selected_department - - else if(selected_department == "Custom") - new_job = sanitize(tgui_input_text(registered_human, "Введите название своей должности:", title, "Assistant", MAX_MESSAGE_LEN)) - var/department_icon = tgui_input_list(registered_human, department_icon_text, title, departments - list("Assistant", "Custom")) - if(isnull(department_icon)) - to_chat(registered_human, span_warning("Вы должны выбрать департамент!")) - return - new_rank = tgui_input_list(registered_human, department_icon_text, title, departments[department_icon]) - - else - new_job = tgui_input_list(registered_human, "Какую должность вы хотите?", title, departments[selected_department]) - if(isnull(new_job)) - new_job = "Assistant" - new_rank = new_job - - if(!Adjacent(registered_human)) - return - - assignment = new_job - rank = new_rank - UpdateName() - registered_human.sec_hud_set_ID() - to_chat(registered_human, span_notice("Должность сменена на [new_job].")) diff --git a/modular_ss220/antagonists/code/vox_raider/vox_raider_team.dm b/modular_ss220/antagonists/code/vox_raider/vox_raider_team.dm index eba5a040bbbe..488bf1e14624 100644 --- a/modular_ss220/antagonists/code/vox_raider/vox_raider_team.dm +++ b/modular_ss220/antagonists/code/vox_raider/vox_raider_team.dm @@ -57,7 +57,7 @@ continue var/teamwin = 1 to_send += "
Стая [name]" - for(var/datum/objective/objective in objective_holder.objectives) + for(var/datum/objective/objective in objective_holder.get_objectives()) if(!objective.check_completion()) teamwin = 0 if(teamwin) diff --git a/modular_ss220/clothing/code/mod.dm b/modular_ss220/clothing/code/mod.dm index ffc794a75a70..b0cbf5f3daa1 100644 --- a/modular_ss220/clothing/code/mod.dm +++ b/modular_ss220/clothing/code/mod.dm @@ -173,7 +173,7 @@ SEALED_CLOTHING = THICKMATERIAL | STOPSPRESSUREDMAGE | BLOCK_GAS_SMOKE_EFFECT | BLOCKHAIR, UNSEALED_INVISIBILITY = HIDEFACE, - SEALED_INVISIBILITY = HIDEMASK | HIDEEYES | HIDEFACE, + SEALED_INVISIBILITY = HIDEMASK | HIDEEYES | HIDEEARS | HIDEFACE, SEALED_COVER = HEADCOVERSMOUTH | HEADCOVERSEYES, ), CHESTPLATE_FLAGS = list( @@ -249,7 +249,7 @@ SEALED_CLOTHING = THICKMATERIAL | STOPSPRESSUREDMAGE | BLOCK_GAS_SMOKE_EFFECT | BLOCKHAIR, UNSEALED_INVISIBILITY = HIDEFACE, - SEALED_INVISIBILITY = HIDEMASK | HIDEEYES | HIDEFACE, + SEALED_INVISIBILITY = HIDEMASK | HIDEEYES | HIDEEARS | HIDEFACE, SEALED_COVER = HEADCOVERSMOUTH | HEADCOVERSEYES, ), CHESTPLATE_FLAGS = list( diff --git a/modular_ss220/jobs/code/card_id.dm b/modular_ss220/jobs/code/card_id.dm index 2c5a9f0d448d..6d8db55e4843 100644 --- a/modular_ss220/jobs/code/card_id.dm +++ b/modular_ss220/jobs/code/card_id.dm @@ -2,7 +2,7 @@ var/image/holder = hud_list[ID_HUD] holder.icon = 'icons/mob/hud/sechud.dmi' if(wear_id && (wear_id.get_job_name() in GLOB.all_jobs_ss220)) - holder.icon = 'modular_ss220/jobs/icons/hud.dmi' + holder.icon = 'modular_ss220/jobs/icons/sechud.dmi' . = ..() /obj/item/get_job_name() //Used in secHUD icon generation diff --git a/modular_ss220/jobs/icons/job_assets.dmi b/modular_ss220/jobs/icons/job_assets.dmi new file mode 100644 index 000000000000..e36bc7908527 Binary files /dev/null and b/modular_ss220/jobs/icons/job_assets.dmi differ diff --git a/modular_ss220/jobs/icons/hud.dmi b/modular_ss220/jobs/icons/sechud.dmi similarity index 100% rename from modular_ss220/jobs/icons/hud.dmi rename to modular_ss220/jobs/icons/sechud.dmi diff --git a/paradise.dme b/paradise.dme index 2325c87d8a53..a5b3885836e9 100644 --- a/paradise.dme +++ b/paradise.dme @@ -433,7 +433,6 @@ #include "code\datums\components\cult_held_body.dm" #include "code\datums\components\deadchat_control.dm" #include "code\datums\components\debris.dm" -#include "code\datums\components\decal.dm" #include "code\datums\components\defibrillator.dm" #include "code\datums\components\ducttape.dm" #include "code\datums\components\edit_complainer.dm" @@ -529,6 +528,7 @@ #include "code\datums\elements\atmos_requirements.dm" #include "code\datums\elements\body_temperature.dm" #include "code\datums\elements\bombable_turf.dm" +#include "code\datums\elements\decal_element.dm" #include "code\datums\elements\earhealing.dm" #include "code\datums\elements\rad_insulation.dm" #include "code\datums\elements\ridable.dm" @@ -1045,6 +1045,9 @@ #include "code\game\objects\effects\spawners\random\random_spawner.dm" #include "code\game\objects\effects\spawners\random\trash_spawners.dm" #include "code\game\objects\effects\spawners\random\wall_decal_spawners.dm" +#include "code\game\objects\effects\spawners\random\pool\pool_spawner.dm" +#include "code\game\objects\effects\spawners\random\pool\spawn_pool.dm" +#include "code\game\objects\effects\spawners\random\pool\spawn_pool_manager.dm" #include "code\game\objects\effects\temporary_visuals\clockcult.dm" #include "code\game\objects\effects\temporary_visuals\cult_visuals.dm" #include "code\game\objects\effects\temporary_visuals\explosion_temp_visuals.dm" @@ -1161,6 +1164,7 @@ #include "code\game\objects\items\tools\welder.dm" #include "code\game\objects\items\tools\wirecutters.dm" #include "code\game\objects\items\tools\wrench.dm" +#include "code\game\objects\items\weapons\agent_id.dm" #include "code\game\objects\items\weapons\AI_modules.dm" #include "code\game\objects\items\weapons\alien_specific.dm" #include "code\game\objects\items\weapons\batons.dm" @@ -1592,10 +1596,10 @@ #include "code\modules\asset_cache\assets\asset_common.dm" #include "code\modules\asset_cache\assets\asset_emoji.dm" #include "code\modules\asset_cache\assets\asset_icon_ref_map.dm" +#include "code\modules\asset_cache\assets\asset_job_icons.dm" #include "code\modules\asset_cache\assets\asset_jquery.dm" #include "code\modules\asset_cache\assets\asset_materials.dm" #include "code\modules\asset_cache\assets\asset_nanomap.dm" -#include "code\modules\asset_cache\assets\asset_orbit_icons.dm" #include "code\modules\asset_cache\assets\asset_panels.dm" #include "code\modules\asset_cache\assets\asset_paper.dm" #include "code\modules\asset_cache\assets\asset_rpd.dm" @@ -1665,6 +1669,7 @@ #include "code\modules\awaymissions\mission_code\ruins\derelict5.dm" #include "code\modules\awaymissions\mission_code\ruins\gps_ruin.dm" #include "code\modules\awaymissions\mission_code\ruins\moonoutpost19.dm" +#include "code\modules\awaymissions\mission_code\ruins\nian_freighter.dm" #include "code\modules\awaymissions\mission_code\ruins\oldstation.dm" #include "code\modules\awaymissions\mission_code\ruins\processing_facility.dm" #include "code\modules\awaymissions\mission_code\ruins\snowbiodome.dm" @@ -2574,6 +2579,8 @@ #include "code\modules\pda\cart.dm" #include "code\modules\pda\cart_apps.dm" #include "code\modules\pda\core_apps.dm" +#include "code\modules\pda\games.dm" +#include "code\modules\pda\games\minesweeper.dm" #include "code\modules\pda\messenger.dm" #include "code\modules\pda\messenger_plugins.dm" #include "code\modules\pda\nanobank.dm" diff --git a/sound/instruments/guitar/Ab2.ogg b/sound/instruments/guitar/Ab2.ogg new file mode 100644 index 000000000000..a473a2c7e21e Binary files /dev/null and b/sound/instruments/guitar/Ab2.ogg differ diff --git a/sound/instruments/guitar/An2.ogg b/sound/instruments/guitar/An2.ogg new file mode 100644 index 000000000000..87b13c655e1c Binary files /dev/null and b/sound/instruments/guitar/An2.ogg differ diff --git a/sound/instruments/guitar/Bb2.ogg b/sound/instruments/guitar/Bb2.ogg new file mode 100644 index 000000000000..5020c3152559 Binary files /dev/null and b/sound/instruments/guitar/Bb2.ogg differ diff --git a/sound/instruments/guitar/Bn2.ogg b/sound/instruments/guitar/Bn2.ogg new file mode 100644 index 000000000000..d5d72c573bee Binary files /dev/null and b/sound/instruments/guitar/Bn2.ogg differ diff --git a/sound/instruments/guitar/Cb3.ogg b/sound/instruments/guitar/Cb3.ogg new file mode 100644 index 000000000000..87466e99099c Binary files /dev/null and b/sound/instruments/guitar/Cb3.ogg differ diff --git a/sound/instruments/guitar/Cn3.ogg b/sound/instruments/guitar/Cn3.ogg new file mode 100644 index 000000000000..610011e76329 Binary files /dev/null and b/sound/instruments/guitar/Cn3.ogg differ diff --git a/sound/instruments/guitar/Db3.ogg b/sound/instruments/guitar/Db3.ogg new file mode 100644 index 000000000000..3c1375b7afd3 Binary files /dev/null and b/sound/instruments/guitar/Db3.ogg differ diff --git a/sound/instruments/guitar/Dn3.ogg b/sound/instruments/guitar/Dn3.ogg new file mode 100644 index 000000000000..4fc8cd101699 Binary files /dev/null and b/sound/instruments/guitar/Dn3.ogg differ diff --git a/sound/instruments/guitar/Eb3.ogg b/sound/instruments/guitar/Eb3.ogg new file mode 100644 index 000000000000..6ad99d2189b0 Binary files /dev/null and b/sound/instruments/guitar/Eb3.ogg differ diff --git a/sound/instruments/guitar/En2.ogg b/sound/instruments/guitar/En2.ogg new file mode 100644 index 000000000000..34fc445f86b5 Binary files /dev/null and b/sound/instruments/guitar/En2.ogg differ diff --git a/sound/instruments/guitar/Fb2.ogg b/sound/instruments/guitar/Fb2.ogg new file mode 100644 index 000000000000..61cbcd966730 Binary files /dev/null and b/sound/instruments/guitar/Fb2.ogg differ diff --git a/sound/instruments/guitar/Fn2.ogg b/sound/instruments/guitar/Fn2.ogg new file mode 100644 index 000000000000..c25552bb2d79 Binary files /dev/null and b/sound/instruments/guitar/Fn2.ogg differ diff --git a/sound/instruments/guitar/Gb2.ogg b/sound/instruments/guitar/Gb2.ogg new file mode 100644 index 000000000000..ebd3de36a2a0 Binary files /dev/null and b/sound/instruments/guitar/Gb2.ogg differ diff --git a/sound/instruments/guitar/Gn2.ogg b/sound/instruments/guitar/Gn2.ogg new file mode 100644 index 000000000000..d2d731c9bdd7 Binary files /dev/null and b/sound/instruments/guitar/Gn2.ogg differ diff --git a/sound/instruments/synthesis_samples/guitar/pgm_clean/c3.ogg b/sound/instruments/synthesis_samples/guitar/pgm_clean/c3.ogg new file mode 100644 index 000000000000..d146459c1d9f Binary files /dev/null and b/sound/instruments/synthesis_samples/guitar/pgm_clean/c3.ogg differ diff --git a/sound/instruments/synthesis_samples/guitar/pgm_clean/c4.ogg b/sound/instruments/synthesis_samples/guitar/pgm_clean/c4.ogg new file mode 100644 index 000000000000..c248375eb072 Binary files /dev/null and b/sound/instruments/synthesis_samples/guitar/pgm_clean/c4.ogg differ diff --git a/sound/instruments/synthesis_samples/guitar/pgm_clean/c5.ogg b/sound/instruments/synthesis_samples/guitar/pgm_clean/c5.ogg new file mode 100644 index 000000000000..de3f5c7bf003 Binary files /dev/null and b/sound/instruments/synthesis_samples/guitar/pgm_clean/c5.ogg differ diff --git a/sound/instruments/synthesis_samples/guitar/pgm_clean/c6.ogg b/sound/instruments/synthesis_samples/guitar/pgm_clean/c6.ogg new file mode 100644 index 000000000000..2262fc40c065 Binary files /dev/null and b/sound/instruments/synthesis_samples/guitar/pgm_clean/c6.ogg differ diff --git a/sound/instruments/synthesis_samples/guitar/pgm_clean/c7.ogg b/sound/instruments/synthesis_samples/guitar/pgm_clean/c7.ogg new file mode 100644 index 000000000000..8f6a7c3c1705 Binary files /dev/null and b/sound/instruments/synthesis_samples/guitar/pgm_clean/c7.ogg differ diff --git a/sound/instruments/synthesis_samples/guitar/synth_legacy/Cn3.ogg b/sound/instruments/synthesis_samples/guitar/synth_legacy/Cn3.ogg new file mode 100644 index 000000000000..f8976a2857d9 Binary files /dev/null and b/sound/instruments/synthesis_samples/guitar/synth_legacy/Cn3.ogg differ diff --git a/sound/instruments/synthesis_samples/guitar/synth_legacy/Cn4.ogg b/sound/instruments/synthesis_samples/guitar/synth_legacy/Cn4.ogg new file mode 100644 index 000000000000..bb80c989bea7 Binary files /dev/null and b/sound/instruments/synthesis_samples/guitar/synth_legacy/Cn4.ogg differ diff --git a/sound/instruments/synthesis_samples/guitar/synth_legacy/Cn5.ogg b/sound/instruments/synthesis_samples/guitar/synth_legacy/Cn5.ogg new file mode 100644 index 000000000000..0dfd2b7c8738 Binary files /dev/null and b/sound/instruments/synthesis_samples/guitar/synth_legacy/Cn5.ogg differ diff --git a/sound/instruments/synthesis_samples/guitar/synth_legacy/Cn6.ogg b/sound/instruments/synthesis_samples/guitar/synth_legacy/Cn6.ogg new file mode 100644 index 000000000000..baed4e2ad3f9 Binary files /dev/null and b/sound/instruments/synthesis_samples/guitar/synth_legacy/Cn6.ogg differ diff --git a/tgui/packages/tgui/interfaces/AgentCard.js b/tgui/packages/tgui/interfaces/AgentCard.tsx similarity index 53% rename from tgui/packages/tgui/interfaces/AgentCard.js rename to tgui/packages/tgui/interfaces/AgentCard.tsx index 4d85c3ff26d2..4e9bba35712b 100644 --- a/tgui/packages/tgui/interfaces/AgentCard.js +++ b/tgui/packages/tgui/interfaces/AgentCard.tsx @@ -1,5 +1,6 @@ +import { BooleanLike } from 'common/react'; import { useBackend, useLocalState, useSharedState } from '../backend'; -import { Button, NoticeBox, LabeledList, Section, Tabs, ImageButton, Stack, Slider } from '../components'; +import { Button, LabeledList, Section, Tabs, Icon, Stack, Box, Slider, ImageButton, DmIcon } from '../components'; import { Window } from '../layouts'; const GENDERS = [ @@ -10,6 +11,44 @@ const GENDERS = [ const BLOOD_TYPES = ['A+', 'A-', 'B+', 'B-', 'AB+', 'AB-', 'O+', 'O-']; +type Data = { + ai_tracking: BooleanLike; + associated_account_number: number; + age: number; + registered_name: string; + sex: string; + blood_type: string; + dna_hash: string; + fingerprint_hash: string; + photo: string; + assignment: string; + job_assets: string; // SS220 ADDITION + job_icon: string; + appearances: string[]; + id_icon: string; + photo_cooldown: boolean; +}; + +const unset = 'Empty'; +const InfoInput = ({ label, value, onCommit, onClick, onRClick, tooltip }) => ( + + + + + + + + + + + + act('change_fingerprints', { new_fingerprints: value })} onClick={() => act('change_fingerprints', { option: 'Primary' })} + onRClick={(event) => { + event.preventDefault(); + act('change_fingerprints', { option: 'Secondary' }); + }} + tooltip={tooltipTextRandom} /> - + {BLOOD_TYPES.map((type) => ( @@ -157,53 +212,66 @@ export const AgentCardInfo = (props, context) => { act('change_dna_hash', { new_dna: value })} onClick={() => act('change_dna_hash', { option: 'Primary' })} - tooltip="Ввести своё ДНК." + onRClick={(event) => { + event.preventDefault(); + act('change_dna_hash', { option: 'Secondary' }); + }} + tooltip={tooltipTextRandom} /> act('change_money_account', { new_account: value })} onClick={() => act('change_money_account', { option: 'Primary' })} - tooltip="Ввести случайный набор цифр." + onRClick={(event) => { + event.preventDefault(); + act('change_money_account', { option: 'Secondary' }); + }} + tooltip={tooltipTextRandom} /> - - - -
+ +
- + act('delete_info')} /> - + act('clear_access')} /> - -
@@ -213,24 +281,29 @@ export const AgentCardInfo = (props, context) => { }; export const AgentCardAppearances = (props, context) => { - const { act, data } = useBackend(context); - const [selectedAppearance, setSelectedAppearance] = useSharedState(context, 'selectedAppearance', ''); - const { icon, appearances } = data; - + const { act, data } = useBackend(context); + const [selectedAppearance, setSelectedAppearance] = useSharedState(context, 'selectedAppearance', null); + const { appearances, id_icon } = data; return ( -
+
{appearances.map((appearance) => ( { setSelectedAppearance(appearance); - act('change_appearance', { new_appearance: appearance }); + act('change_appearance', { + new_appearance: appearance, + }); }} /> ))} diff --git a/tgui/packages/tgui/interfaces/Orbit.js b/tgui/packages/tgui/interfaces/Orbit.js index 119172ce7ae9..7a48e568ad51 100644 --- a/tgui/packages/tgui/interfaces/Orbit.js +++ b/tgui/packages/tgui/interfaces/Orbit.js @@ -61,7 +61,7 @@ const OrbitedButton = (props, context) => { tooltip={ thing.assigned_role ? ( - {' '} + {' '} {thing.assigned_role} ) : ( diff --git a/tgui/packages/tgui/interfaces/pda/pda_games.js b/tgui/packages/tgui/interfaces/pda/pda_games.js new file mode 100644 index 000000000000..cd2ef28f395d --- /dev/null +++ b/tgui/packages/tgui/interfaces/pda/pda_games.js @@ -0,0 +1,33 @@ +import { useBackend } from '../../backend'; +import { Box, Button, ImageButton, Section } from '../../components'; +import { Icon, IconStack } from '../../components/Icon'; + +export const pda_games = (props, context) => { + const { act, data } = useBackend(context); + const { games } = data; + + const GetAppImage = (AppName) => { + switch (AppName) { + case 'Minesweeper': + return ( + + + + + ); + default: + return ; + } + }; + + return ( + + {games.map((game) => ( + + ))} + + ); +}; diff --git a/tgui/packages/tgui/interfaces/pda/pda_minesweeper.js b/tgui/packages/tgui/interfaces/pda/pda_minesweeper.js new file mode 100644 index 000000000000..f143e2abdc5b --- /dev/null +++ b/tgui/packages/tgui/interfaces/pda/pda_minesweeper.js @@ -0,0 +1,168 @@ +import { useBackend, useLocalState } from '../../backend'; +import { Box, Button, Stack, Section, Table, Icon } from '../../components'; + +export const pda_minesweeper = (props, context) => { + const { act, data } = useBackend(context); + + const [currentWindow, setWindow] = useLocalState(context, 'window', 'Game'); + + const AltWindow = { + 'Game': 'Leaderboard', + 'Leaderboard': 'Game', + }; + + return ( + + {currentWindow === 'Game' ? : } + + + + + ); +}; + +export const MineSweeperGame = (props, context) => { + const { act, data } = useBackend(context); + const { matrix, flags, bombs } = data; + + const NumColor = { + 1: 'blue', + 2: 'green', + 3: 'red', + 4: 'darkblue', + 5: 'brown', + 6: 'lightblue', + 7: 'black', + 8: 'white', + }; + + const handleClick = (row, cell, mode) => { + act('Square', { + 'X': row, + 'Y': cell, + 'mode': mode, + }); + }; + + return ( + + + {Object.keys(matrix).map((row) => ( + + {Object.keys(matrix[row]).map((cell) => ( + + ))} + + ))} + + + + + : {bombs} + + + + : {flags} + + + + + ); +}; + +export const MineSweeperLeaderboard = (props, context) => { + const { act, data } = useBackend(context); + const { leaderboard } = data; + const [sortId, _setSortId] = useLocalState(context, 'sortId', 'time'); + const [sortOrder, _setSortOrder] = useLocalState(context, 'sortOrder', false); + + return ( + + + Nick + Time + + {leaderboard && + leaderboard + .sort((a, b) => { + const i = sortOrder ? 1 : -1; + return a[sortId].localeCompare(b[sortId]) * i; + }) + .map((player, i) => ( + + {player.name} + {player.time} + + ))} +
+ ); +}; + +const SortButton = (properties, context) => { + const [sortId, setSortId] = useLocalState(context, 'sortId', 'time'); + const [sortOrder, setSortOrder] = useLocalState(context, 'sortOrder', false); + const { id, children } = properties; + return ( + + + + ); +}; diff --git a/tgui/packages/tgui/styles/interfaces/pda_minesweeper.scss b/tgui/packages/tgui/styles/interfaces/pda_minesweeper.scss new file mode 100644 index 000000000000..038380faa44a --- /dev/null +++ b/tgui/packages/tgui/styles/interfaces/pda_minesweeper.scss @@ -0,0 +1,40 @@ +@use '../base.scss'; +@use '../functions.scss' as *; + +.Minesweeper__closed { + vertical-align: middle; + background-color: lighten(base.$color-bg, 20%); + border: base.em(2px) outset lighten(base.$color-bg, 80%); +} + +.Minesweeper__open { + vertical-align: middle; + text-align: center; + font-size: medium; + background-color: lighten(base.$color-bg, 50%) !important; +} + +.Minesweeper__list { + tr > td { + text-align: center; + } + + tr:not(:first-child) { + height: 2em; + line-height: 1.75em; + transition: background-color 50ms; + cursor: pointer; + + &:hover, + &:focus { + background-color: rgba(base.$color-bg, 1); + } + } +} + +.Minesweeper__infobox { + max-height: 8em; + border: base.em(3px) outset lighten(base.$color-bg, 25%); + user-select: none; + -ms-user-select: none; // Remove with Byond 516 release +} diff --git a/tgui/packages/tgui/styles/main.scss b/tgui/packages/tgui/styles/main.scss index 44bd254d93c7..a510db31eb10 100644 --- a/tgui/packages/tgui/styles/main.scss +++ b/tgui/packages/tgui/styles/main.scss @@ -63,6 +63,7 @@ @include meta.load-css('./interfaces/OreRedemption.scss'); @include meta.load-css('./interfaces/PanDEMIC.scss'); @include meta.load-css('./interfaces/PDA.scss'); +@include meta.load-css('./interfaces/pda_minesweeper.scss'); @include meta.load-css('./interfaces/PdaPainter.scss'); @include meta.load-css('./interfaces/PoolController.scss'); @include meta.load-css('./interfaces/ReagentsEditor.scss'); diff --git a/tgui/public/tgui-polyfill.min.js b/tgui/public/tgui-polyfill.min.js index 2948f6a0d952..68c21147e6d9 100644 --- a/tgui/public/tgui-polyfill.min.js +++ b/tgui/public/tgui-polyfill.min.js @@ -1,6 +1 @@ -/** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ -(function(){"use strict";if(!window.Int32Array){window.Int32Array=Array}!function(){function t(){var e=Array.prototype.slice.call(arguments),n=document.createDocumentFragment();e.forEach((function(e){var t=e instanceof Node;n.appendChild(t?e:document.createTextNode(String(e)))})),this.appendChild(n)}function n(){this.parentNode&&this.parentNode.removeChild(this)}[Element.prototype,Document.prototype,DocumentFragment.prototype].forEach((function(e){e.hasOwnProperty("append")||Object.defineProperty(e,"append",{configurable:!0,enumerable:!0,writable:!0,value:t});e.hasOwnProperty("remove")||Object.defineProperty(e,"remove",{configurable:!0,enumerable:!0,writable:!0,value:n})}))}()})(); +(function(){"use strict";if(!window.Int32Array){window.Int32Array=Array}!function(){function t(){var e=Array.prototype.slice.call(arguments),n=document.createDocumentFragment();e.forEach((function(e){var t=e instanceof Node;n.appendChild(t?e:document.createTextNode(String(e)))})),this.appendChild(n)}function n(){this.parentNode&&this.parentNode.removeChild(this)}[Element.prototype,Document.prototype,DocumentFragment.prototype].forEach((function(e){e.hasOwnProperty("append")||Object.defineProperty(e,"append",{configurable:!0,enumerable:!0,writable:!0,value:t});e.hasOwnProperty("remove")||Object.defineProperty(e,"remove",{configurable:!0,enumerable:!0,writable:!0,value:n})}))}()})(); \ No newline at end of file diff --git a/tgui/public/tgui.bundle.css b/tgui/public/tgui.bundle.css index 7b989e3a6439..1fcedaa34b31 100644 --- a/tgui/public/tgui.bundle.css +++ b/tgui/public/tgui.bundle.css @@ -1 +1 @@ -html,body{box-sizing:border-box;height:100%;margin:0;font-size:12px}html{overflow:hidden;cursor:default}body{overflow:auto;font-family:Verdana,Geneva,sans-serif}*,*:before,*:after{box-sizing:inherit}h1,h2,h3,h4,h5,h6{display:block;margin:0;padding:6px 0;padding:.5rem 0}h1{font-size:18px;font-size:1.5rem}h2{font-size:16px;font-size:1.333rem}h3{font-size:14px;font-size:1.167rem}h4{font-size:12px;font-size:1rem}td,th{vertical-align:baseline;text-align:left}.candystripe:nth-child(odd){background-color:rgba(0,0,0,.25)}.color-black{color:#1a1a1a!important}.color-white{color:#fff!important}.color-red{color:#df3e3e!important}.color-orange{color:#f37f33!important}.color-yellow{color:#fbda21!important}.color-olive{color:#cbe41c!important}.color-green{color:#25ca4c!important}.color-teal{color:#00d6cc!important}.color-blue{color:#2e93de!important}.color-violet{color:#7349cf!important}.color-purple{color:#ad45d0!important}.color-pink{color:#e34da1!important}.color-brown{color:#b97447!important}.color-grey{color:#848484!important}.color-good{color:#68c22d!important}.color-average{color:#f29a29!important}.color-bad{color:#df3e3e!important}.color-label{color:#8b9bb0!important}.color-gold{color:#f3b22f!important}.color-bg-black{background-color:#000!important}.color-bg-white{background-color:#d9d9d9!important}.color-bg-red{background-color:#bd2020!important}.color-bg-orange{background-color:#d95e0c!important}.color-bg-yellow{background-color:#d9b804!important}.color-bg-olive{background-color:#9aad14!important}.color-bg-green{background-color:#1b9638!important}.color-bg-teal{background-color:#009a93!important}.color-bg-blue{background-color:#1c71b1!important}.color-bg-violet{background-color:#552dab!important}.color-bg-purple{background-color:#8b2baa!important}.color-bg-pink{background-color:#cf2082!important}.color-bg-brown{background-color:#8c5836!important}.color-bg-grey{background-color:#646464!important}.color-bg-good{background-color:#4d9121!important}.color-bg-average{background-color:#cd7a0d!important}.color-bg-bad{background-color:#bd2020!important}.color-bg-label{background-color:#657a94!important}.color-bg-gold{background-color:#d6920c!important}.color-border-black{border-color:#1a1a1a!important}.color-border-white{border-color:#fff!important}.color-border-red{border-color:#df3e3e!important}.color-border-orange{border-color:#f37f33!important}.color-border-yellow{border-color:#fbda21!important}.color-border-olive{border-color:#cbe41c!important}.color-border-green{border-color:#25ca4c!important}.color-border-teal{border-color:#00d6cc!important}.color-border-blue{border-color:#2e93de!important}.color-border-violet{border-color:#7349cf!important}.color-border-purple{border-color:#ad45d0!important}.color-border-pink{border-color:#e34da1!important}.color-border-brown{border-color:#b97447!important}.color-border-grey{border-color:#848484!important}.color-border-good{border-color:#68c22d!important}.color-border-average{border-color:#f29a29!important}.color-border-bad{border-color:#df3e3e!important}.color-border-label{border-color:#8b9bb0!important}.color-border-gold{border-color:#f3b22f!important}.debug-layout,.debug-layout *:not(g):not(path){color:rgba(255,255,255,.9)!important;background:rgba(0,0,0,0)!important;outline:1px solid rgba(255,255,255,.5)!important;box-shadow:none!important;filter:none!important}.debug-layout:hover,.debug-layout *:not(g):not(path):hover{outline-color:rgba(255,255,255,.8)!important}.outline-dotted{outline-style:dotted!important}.outline-dashed{outline-style:dashed!important}.outline-solid{outline-style:solid!important}.outline-double{outline-style:double!important}.outline-groove{outline-style:groove!important}.outline-ridge{outline-style:ridge!important}.outline-inset{outline-style:inset!important}.outline-outset{outline-style:outset!important}.outline-color-black{outline:.167rem solid #1a1a1a!important}.outline-color-white{outline:.167rem solid #fff!important}.outline-color-red{outline:.167rem solid #df3e3e!important}.outline-color-orange{outline:.167rem solid #f37f33!important}.outline-color-yellow{outline:.167rem solid #fbda21!important}.outline-color-olive{outline:.167rem solid #cbe41c!important}.outline-color-green{outline:.167rem solid #25ca4c!important}.outline-color-teal{outline:.167rem solid #00d6cc!important}.outline-color-blue{outline:.167rem solid #2e93de!important}.outline-color-violet{outline:.167rem solid #7349cf!important}.outline-color-purple{outline:.167rem solid #ad45d0!important}.outline-color-pink{outline:.167rem solid #e34da1!important}.outline-color-brown{outline:.167rem solid #b97447!important}.outline-color-grey{outline:.167rem solid #848484!important}.outline-color-good{outline:.167rem solid #68c22d!important}.outline-color-average{outline:.167rem solid #f29a29!important}.outline-color-bad{outline:.167rem solid #df3e3e!important}.outline-color-label{outline:.167rem solid #8b9bb0!important}.outline-color-gold{outline:.167rem solid #f3b22f!important}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-baseline{text-align:baseline}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-pre{white-space:pre}.text-bold{font-weight:700}.text-italic{font-style:italic}.text-underline{text-decoration:underline}.BlockQuote{color:#8b9bb0;border-left:.1666666667em solid #8b9bb0;padding-left:.5em;margin-bottom:.5em}.BlockQuote:last-child{margin-bottom:0}.Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.Button:last-child{margin-right:0;margin-bottom:0}.Button .fa,.Button .fas,.Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.Button--hasContent .fa,.Button--hasContent .fas,.Button--hasContent .far{margin-right:.25em}.Button--hasContent.Button--iconRight .fa,.Button--hasContent.Button--iconRight .fas,.Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.Button--fluid{display:block;margin-left:0;margin-right:0}.Button--circular{border-radius:50%}.Button--compact{padding:0 .25em;line-height:1.333em}.Button--multiLine{white-space:normal;word-wrap:break-word}.Button--modal{float:right;z-index:1;margin-top:-.5rem}.Button--color--black{background-color:#000;color:#fff;transition:color .2s,background-color .2s}.Button--color--black:hover{background-color:#101010;color:#fff}.Button--color--black--translucent{background-color:rgba(0,0,0,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--black--translucent:hover{background-color:rgba(16,16,16,.5);color:#fff}.Button--color--white{background-color:#d9d9d9;color:#000;transition:color .2s,background-color .2s}.Button--color--white:hover{background-color:#f8f8f8;color:#000}.Button--color--white--translucent{background-color:rgba(217,217,217,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--white--translucent:hover{background-color:rgba(248,248,248,.5);color:#fff}.Button--color--red{background-color:#bd2020;color:#fff;transition:color .2s,background-color .2s}.Button--color--red:hover{background-color:#d93f3f;color:#fff}.Button--color--red--translucent{background-color:rgba(189,32,32,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--red--translucent:hover{background-color:rgba(217,63,63,.5);color:#fff}.Button--color--orange{background-color:#d95e0c;color:#fff;transition:color .2s,background-color .2s}.Button--color--orange:hover{background-color:#ef7e33;color:#fff}.Button--color--orange--translucent{background-color:rgba(217,94,12,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--orange--translucent:hover{background-color:rgba(239,126,51,.5);color:#fff}.Button--color--yellow{background-color:#d9b804;color:#000;transition:color .2s,background-color .2s}.Button--color--yellow:hover{background-color:#f5d523;color:#000}.Button--color--yellow--translucent{background-color:rgba(217,184,4,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--yellow--translucent:hover{background-color:rgba(245,213,35,.5);color:#fff}.Button--color--olive{background-color:#9aad14;color:#fff;transition:color .2s,background-color .2s}.Button--color--olive:hover{background-color:#bdd327;color:#fff}.Button--color--olive--translucent{background-color:rgba(154,173,20,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--olive--translucent:hover{background-color:rgba(189,211,39,.5);color:#fff}.Button--color--green{background-color:#1b9638;color:#fff;transition:color .2s,background-color .2s}.Button--color--green:hover{background-color:#2fb94f;color:#fff}.Button--color--green--translucent{background-color:rgba(27,150,56,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--green--translucent:hover{background-color:rgba(47,185,79,.5);color:#fff}.Button--color--teal{background-color:#009a93;color:#fff;transition:color .2s,background-color .2s}.Button--color--teal:hover{background-color:#10bdb6;color:#fff}.Button--color--teal--translucent{background-color:rgba(0,154,147,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--teal--translucent:hover{background-color:rgba(16,189,182,.5);color:#fff}.Button--color--blue{background-color:#1c71b1;color:#fff;transition:color .2s,background-color .2s}.Button--color--blue:hover{background-color:#308fd6;color:#fff}.Button--color--blue--translucent{background-color:rgba(28,113,177,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--blue--translucent:hover{background-color:rgba(48,143,214,.5);color:#fff}.Button--color--violet{background-color:#552dab;color:#fff;transition:color .2s,background-color .2s}.Button--color--violet:hover{background-color:#7249ca;color:#fff}.Button--color--violet--translucent{background-color:rgba(85,45,171,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--violet--translucent:hover{background-color:rgba(114,73,202,.5);color:#fff}.Button--color--purple{background-color:#8b2baa;color:#fff;transition:color .2s,background-color .2s}.Button--color--purple:hover{background-color:#aa46ca;color:#fff}.Button--color--purple--translucent{background-color:rgba(139,43,170,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--purple--translucent:hover{background-color:rgba(170,70,202,.5);color:#fff}.Button--color--pink{background-color:#cf2082;color:#fff;transition:color .2s,background-color .2s}.Button--color--pink:hover{background-color:#e04ca0;color:#fff}.Button--color--pink--translucent{background-color:rgba(207,32,130,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--pink--translucent:hover{background-color:rgba(224,76,160,.5);color:#fff}.Button--color--brown{background-color:#8c5836;color:#fff;transition:color .2s,background-color .2s}.Button--color--brown:hover{background-color:#ae724c;color:#fff}.Button--color--brown--translucent{background-color:rgba(140,88,54,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--brown--translucent:hover{background-color:rgba(174,114,76,.5);color:#fff}.Button--color--grey{background-color:#646464;color:#fff;transition:color .2s,background-color .2s}.Button--color--grey:hover{background-color:#818181;color:#fff}.Button--color--grey--translucent{background-color:rgba(100,100,100,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--grey--translucent:hover{background-color:rgba(129,129,129,.5);color:#fff}.Button--color--good{background-color:#4d9121;color:#fff;transition:color .2s,background-color .2s}.Button--color--good:hover{background-color:#67b335;color:#fff}.Button--color--good--translucent{background-color:rgba(77,145,33,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--good--translucent:hover{background-color:rgba(103,179,53,.5);color:#fff}.Button--color--average{background-color:#cd7a0d;color:#fff;transition:color .2s,background-color .2s}.Button--color--average:hover{background-color:#eb972b;color:#fff}.Button--color--average--translucent{background-color:rgba(205,122,13,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--average--translucent:hover{background-color:rgba(235,151,43,.5);color:#fff}.Button--color--bad{background-color:#bd2020;color:#fff;transition:color .2s,background-color .2s}.Button--color--bad:hover{background-color:#d93f3f;color:#fff}.Button--color--bad--translucent{background-color:rgba(189,32,32,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--bad--translucent:hover{background-color:rgba(217,63,63,.5);color:#fff}.Button--color--label{background-color:#657a94;color:#fff;transition:color .2s,background-color .2s}.Button--color--label:hover{background-color:#8a9aae;color:#fff}.Button--color--label--translucent{background-color:rgba(101,122,148,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--label--translucent:hover{background-color:rgba(138,154,174,.5);color:#fff}.Button--color--gold{background-color:#d6920c;color:#fff;transition:color .2s,background-color .2s}.Button--color--gold:hover{background-color:#eeaf30;color:#fff}.Button--color--gold--translucent{background-color:rgba(214,146,12,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--gold--translucent:hover{background-color:rgba(238,175,48,.5);color:#fff}.Button--color--transparent{background-color:rgba(37,37,37,0);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--transparent:hover{background-color:rgba(56,56,56,.81);color:#fff}.Button--color--default{background-color:#3e6189;color:#fff;transition:color .2s,background-color .2s}.Button--color--default:hover{background-color:#567daa;color:#fff}.Button--color--default--translucent{background-color:rgba(46,46,46,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--default--translucent:hover{background-color:rgba(68,68,68,.5);color:#fff}.Button--color--caution{background-color:#d9b804;color:#000;transition:color .2s,background-color .2s}.Button--color--caution:hover{background-color:#f5d523;color:#000}.Button--color--caution--translucent{background-color:rgba(217,184,4,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--caution--translucent:hover{background-color:rgba(245,213,35,.5);color:#fff}.Button--color--danger{background-color:#bd2020;color:#fff;transition:color .2s,background-color .2s}.Button--color--danger:hover{background-color:#d93f3f;color:#fff}.Button--color--danger--translucent{background-color:rgba(189,32,32,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--danger--translucent:hover{background-color:rgba(217,63,63,.5);color:#fff}.Button--disabled{background-color:#999!important;color:rgba(255,255,255,.75)!important}.Button--disabled--translucent{background-color:rgba(77,23,23,.5)!important;color:rgba(255,255,255,.5)!important}.Button--selected,.Button--selected--translucent{background-color:#1b9638;color:#fff;transition:color .2s,background-color .2s}.Button--selected:hover,.Button--selected--translucent:hover{background-color:#2fb94f;color:#fff}.Collapsible{margin-bottom:.5rem}.Collapsible:last-child{margin-bottom:0}.ColorBox{display:inline-block;width:1em;height:1em;line-height:1em;text-align:center}.Dimmer{display:flex;justify-content:center;align-items:center;position:absolute;top:0;bottom:0;left:0;right:0;background-color:rgba(0,0,0,.75);z-index:5}.Dropdown{position:relative;align-items:center}.Dropdown__control{display:inline-block;align-items:center;font-family:Verdana,sans-serif;font-size:1em;width:8.3333333333em;line-height:1.3333333333em;-ms-user-select:none;user-select:none}.Dropdown__arrow-button{float:right;padding-left:.35em;width:1.2em;height:1.8333333333em;border-left:.0833333333em solid #000;border-left:.0833333333em solid rgba(0,0,0,.25)}.Dropdown__menu{overflow-y:auto;align-items:center;z-index:5;max-height:16.6666666667em;border-radius:0 0 .1666666667em .1666666667em;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75)}.Dropdown__menu-scroll{overflow-y:scroll}.Dropdown__menuentry{padding:.1666666667em .3333333333em;font-family:Verdana,sans-serif;font-size:1em;line-height:1.4166666667em;transition:background-color .1s ease-out}.Dropdown__menuentry.selected{background-color:rgba(255,255,255,.5)!important;transition:background-color 0ms}.Dropdown__menuentry:hover{background-color:rgba(255,255,255,.2);transition:background-color 0ms}.Dropdown__over{top:auto;bottom:100%}.Dropdown__selected-text{display:inline-block;text-overflow:ellipsis;white-space:nowrap;height:1.4166666667em;width:calc(100% - 1.2em);text-align:left;padding-top:2.5px}.Flex{display:-ms-flexbox;display:flex}.Flex--inline{display:inline-flex}.Flex--iefix{display:block}.Flex--iefix.Flex--inline,.Flex__item--iefix{display:inline-block}.Flex--iefix--column>.Flex__item--iefix{display:block}.IconStack>.Icon{position:absolute;width:100%;text-align:center}.IconStack{position:relative;display:inline-block;height:7em;width:10em;line-height:2em;vertical-align:middle}.IconStack:after{color:rgba(0,0,0,0);content:"."}.color__black{background-color:rgba(0,0,0,.2);color:#fff;border:solid rgba(32,32,32,.2);border-width:1px;transition:background-color .2s,border-color .2s}.color__black:hover{background-color:rgba(32,32,32,.2)}.contentColor__black{background-color:#000;color:#fff;border:solid #101010;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.buttonsContainerColor__black{background-color:rgba(0,0,0,.33);color:#fff;border:solid rgba(32,32,32,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.color__white{background-color:rgba(217,217,217,.2);color:#000;border:solid rgba(250,250,250,.2);border-width:1px;transition:background-color .2s,border-color .2s}.color__white:hover{background-color:rgba(250,250,250,.2)}.contentColor__white{background-color:#d9d9d9;color:#000;border:solid #f8f8f8;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.buttonsContainerColor__white{background-color:rgba(217,217,217,.33);color:#000;border:solid rgba(250,250,250,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.color__red{background-color:rgba(189,32,32,.2);color:#fff;border:solid rgba(227,112,112,.2);border-width:1px;transition:background-color .2s,border-color .2s}.color__red:hover{background-color:rgba(227,112,112,.2)}.contentColor__red{background-color:#bd2020;color:#fff;border:solid #d93f3f;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.buttonsContainerColor__red{background-color:rgba(189,32,32,.33);color:#fff;border:solid rgba(227,112,112,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.color__orange{background-color:rgba(217,94,12,.2);color:#fff;border:solid rgba(244,162,107,.2);border-width:1px;transition:background-color .2s,border-color .2s}.color__orange:hover{background-color:rgba(244,162,107,.2)}.contentColor__orange{background-color:#d95e0c;color:#fff;border:solid #ef7e33;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.buttonsContainerColor__orange{background-color:rgba(217,94,12,.33);color:#fff;border:solid rgba(244,162,107,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.color__yellow{background-color:rgba(217,184,4,.2);color:#000;border:solid rgba(248,225,91,.2);border-width:1px;transition:background-color .2s,border-color .2s}.color__yellow:hover{background-color:rgba(248,225,91,.2)}.contentColor__yellow{background-color:#d9b804;color:#000;border:solid #f5d523;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.buttonsContainerColor__yellow{background-color:rgba(217,184,4,.33);color:#000;border:solid rgba(248,225,91,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.color__olive{background-color:rgba(154,173,20,.2);color:#000;border:solid rgba(209,228,79,.2);border-width:1px;transition:background-color .2s,border-color .2s}.color__olive:hover{background-color:rgba(209,228,79,.2)}.contentColor__olive{background-color:#9aad14;color:#000;border:solid #bdd327;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.buttonsContainerColor__olive{background-color:rgba(154,173,20,.33);color:#000;border:solid rgba(209,228,79,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.color__green{background-color:rgba(27,150,56,.2);color:#fff;border:solid rgba(72,214,105,.2);border-width:1px;transition:background-color .2s,border-color .2s}.color__green:hover{background-color:rgba(72,214,105,.2)}.contentColor__green{background-color:#1b9638;color:#fff;border:solid #2fb94f;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.buttonsContainerColor__green{background-color:rgba(27,150,56,.33);color:#fff;border:solid rgba(72,214,105,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.color__teal{background-color:rgba(0,154,147,.2);color:#fff;border:solid rgba(32,225,216,.2);border-width:1px;transition:background-color .2s,border-color .2s}.color__teal:hover{background-color:rgba(32,225,216,.2)}.contentColor__teal{background-color:#009a93;color:#fff;border:solid #10bdb6;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.buttonsContainerColor__teal{background-color:rgba(0,154,147,.33);color:#fff;border:solid rgba(32,225,216,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.color__blue{background-color:rgba(28,113,177,.2);color:#fff;border:solid rgba(96,169,224,.2);border-width:1px;transition:background-color .2s,border-color .2s}.color__blue:hover{background-color:rgba(96,169,224,.2)}.contentColor__blue{background-color:#1c71b1;color:#fff;border:solid #308fd6;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.buttonsContainerColor__blue{background-color:rgba(28,113,177,.33);color:#fff;border:solid rgba(96,169,224,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.color__violet{background-color:rgba(85,45,171,.2);color:#fff;border:solid rgba(149,119,215,.2);border-width:1px;transition:background-color .2s,border-color .2s}.color__violet:hover{background-color:rgba(149,119,215,.2)}.contentColor__violet{background-color:#552dab;color:#fff;border:solid #7249ca;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.buttonsContainerColor__violet{background-color:rgba(85,45,171,.33);color:#fff;border:solid rgba(149,119,215,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.color__purple{background-color:rgba(139,43,170,.2);color:#fff;border:solid rgba(190,115,215,.2);border-width:1px;transition:background-color .2s,border-color .2s}.color__purple:hover{background-color:rgba(190,115,215,.2)}.contentColor__purple{background-color:#8b2baa;color:#fff;border:solid #aa46ca;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.buttonsContainerColor__purple{background-color:rgba(139,43,170,.33);color:#fff;border:solid rgba(190,115,215,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.color__pink{background-color:rgba(207,32,130,.2);color:#fff;border:solid rgba(233,129,188,.2);border-width:1px;transition:background-color .2s,border-color .2s}.color__pink:hover{background-color:rgba(233,129,188,.2)}.contentColor__pink{background-color:#cf2082;color:#fff;border:solid #e04ca0;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.buttonsContainerColor__pink{background-color:rgba(207,32,130,.33);color:#fff;border:solid rgba(233,129,188,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.color__brown{background-color:rgba(140,88,54,.2);color:#fff;border:solid rgba(195,144,111,.2);border-width:1px;transition:background-color .2s,border-color .2s}.color__brown:hover{background-color:rgba(195,144,111,.2)}.contentColor__brown{background-color:#8c5836;color:#fff;border:solid #ae724c;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.buttonsContainerColor__brown{background-color:rgba(140,88,54,.33);color:#fff;border:solid rgba(195,144,111,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.color__grey{background-color:rgba(100,100,100,.2);color:#fff;border:solid rgba(157,157,157,.2);border-width:1px;transition:background-color .2s,border-color .2s}.color__grey:hover{background-color:rgba(157,157,157,.2)}.contentColor__grey{background-color:#646464;color:#fff;border:solid #818181;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.buttonsContainerColor__grey{background-color:rgba(100,100,100,.33);color:#fff;border:solid rgba(157,157,157,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.color__good{background-color:rgba(77,145,33,.2);color:#fff;border:solid rgba(130,208,79,.2);border-width:1px;transition:background-color .2s,border-color .2s}.color__good:hover{background-color:rgba(130,208,79,.2)}.contentColor__good{background-color:#4d9121;color:#fff;border:solid #67b335;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.buttonsContainerColor__good{background-color:rgba(77,145,33,.33);color:#fff;border:solid rgba(130,208,79,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.color__average{background-color:rgba(205,122,13,.2);color:#fff;border:solid rgba(241,178,96,.2);border-width:1px;transition:background-color .2s,border-color .2s}.color__average:hover{background-color:rgba(241,178,96,.2)}.contentColor__average{background-color:#cd7a0d;color:#fff;border:solid #eb972b;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.buttonsContainerColor__average{background-color:rgba(205,122,13,.33);color:#fff;border:solid rgba(241,178,96,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.color__bad{background-color:rgba(189,32,32,.2);color:#fff;border:solid rgba(227,112,112,.2);border-width:1px;transition:background-color .2s,border-color .2s}.color__bad:hover{background-color:rgba(227,112,112,.2)}.contentColor__bad{background-color:#bd2020;color:#fff;border:solid #d93f3f;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.buttonsContainerColor__bad{background-color:rgba(189,32,32,.33);color:#fff;border:solid rgba(227,112,112,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.color__label{background-color:rgba(101,122,148,.2);color:#fff;border:solid rgba(175,186,201,.2);border-width:1px;transition:background-color .2s,border-color .2s}.color__label:hover{background-color:rgba(175,186,201,.2)}.contentColor__label{background-color:#657a94;color:#fff;border:solid #8a9aae;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.buttonsContainerColor__label{background-color:rgba(101,122,148,.33);color:#fff;border:solid rgba(175,186,201,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.color__gold{background-color:rgba(214,146,12,.2);color:#000;border:solid rgba(243,197,103,.2);border-width:1px;transition:background-color .2s,border-color .2s}.color__gold:hover{background-color:rgba(243,197,103,.2)}.contentColor__gold{background-color:#d6920c;color:#000;border:solid #eeaf30;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.buttonsContainerColor__gold{background-color:rgba(214,146,12,.33);color:#000;border:solid rgba(243,197,103,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.color__default{background-color:rgba(53,53,53,.2);color:#fff;border:solid rgba(99,99,99,.2);border-width:1px;transition:background-color .2s,border-color .2s}.color__default:hover{background-color:rgba(99,99,99,.2)}.disabled{background-color:rgba(99,29,29,.25)!important;border-color:rgba(99,29,29,.25)!important}.selected{background-color:rgba(27,150,56,.2);color:#fff;border:solid rgba(27,150,56,.25);border-width:1px;transition:background-color .2s,border-color .2s}.selected:hover{background-color:rgba(72,214,105,.2)}.contentColor__default{background-color:#313131;color:#fff;border:solid #404040;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.contentDisabled{background-color:#631d1d!important;border-top:1px solid #803131!important}.contentSelected{background-color:#1b9638;color:#fff;border:solid #2fb94f;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.buttonsContainerColor__default{background-color:rgba(53,53,53,.2);color:#fff;border:solid rgba(99,99,99,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.ImageButton{display:inline-table;position:relative;text-align:center;margin:.25em;user-select:none;-ms-user-select:none}.ImageButton .noAction{pointer-events:none}.ImageButton .container{display:flex;flex-direction:column;border-radius:.33em}.ImageButton .image{position:relative;align-self:center;pointer-events:none;overflow:hidden;line-height:0;padding:.25em;border-radius:.33em}.ImageButton .buttonsContainer{display:flex;position:absolute;overflow:hidden;left:1px;bottom:1.8em;max-width:100%;z-index:1}.ImageButton .buttonsContainer.buttonsAltContainer{overflow:visible;flex-direction:column;pointer-events:none;top:1px;bottom:inherit!important}.ImageButton .buttonsContainer.buttonsEmpty{bottom:1px}.ImageButton .buttonsContainer>*{margin:0!important;padding:0 .2em!important;border-radius:0!important}.ImageButton .content{-ms-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:.25em .5em;margin:-1px;border-radius:0 0 .33em .33em;z-index:2}.fluid{display:flex;flex-direction:row;position:relative;text-align:center;margin:0 0 .5em;user-select:none;-ms-user-select:none}.fluid:last-of-type{margin-bottom:0}.fluid .info{display:flex;flex-direction:column;justify-content:center;flex:1}.fluid .title{font-weight:700;padding:.5em}.fluid .title.divider{margin:0 .5em;border-bottom:.1666666667em solid rgba(255,255,255,.1)}.fluid .contentFluid{padding:.5em;color:#fff}.fluid .container{flex-direction:row;flex:1}.fluid .container.hasButtons{border-radius:.33em 0 0 .33em;border-width:1px 0 1px 1px}.fluid .image{padding:0}.fluid .buttonsContainer{position:relative;left:inherit;bottom:inherit;border-radius:0 .33em .33em 0}.fluid .buttonsContainer.buttonsEmpty{bottom:inherit}.fluid .buttonsContainer.buttonsAltContainer{overflow:hidden;pointer-events:auto;top:inherit}.fluid .buttonsContainer.buttonsAltContainer>*{border-top:1px solid rgba(255,255,255,.075)}.fluid .buttonsContainer.buttonsAltContainer>*:first-child{border-top:0}.fluid .buttonsContainer>*{display:inline-flex;flex-direction:column;justify-content:center;text-align:center;white-space:pre-wrap;line-height:1.1666666667em;height:100%;border-left:1px solid rgba(255,255,255,.075)}.Knob{position:relative;font-size:1rem;width:2.6em;height:2.6em;margin:0 auto -.2em;cursor:n-resize}.Knob:after{content:".";color:rgba(0,0,0,0);line-height:2.5em}.Knob__circle{position:absolute;top:.1em;bottom:.1em;left:.1em;right:.1em;margin:.3em;background-color:#333;background-image:linear-gradient(to bottom,rgba(255,255,255,.15),rgba(255,255,255,0));border-radius:50%;box-shadow:0 .05em .5em rgba(0,0,0,.5)}.Knob__cursorBox{position:absolute;top:0;bottom:0;left:0;right:0}.Knob__cursor{position:relative;top:.05em;margin:0 auto;width:.2em;height:.8em;background-color:rgba(255,255,255,.9)}.Knob__popupValue,.Knob__popupValue--right{position:absolute;top:-2rem;right:50%;font-size:1rem;text-align:center;padding:.25rem .5rem;color:#fff;background-color:#000;transform:translate(50%);white-space:nowrap}.Knob__popupValue--right{top:.25rem;right:-50%}.Knob__ring{position:absolute;top:0;bottom:0;left:0;right:0;padding:.1em}.Knob__ringTrackPivot{transform:rotate(135deg)}.Knob__ringTrack{fill:rgba(0,0,0,0);stroke:rgba(255,255,255,.1);stroke-width:8;stroke-linecap:round;stroke-dasharray:235.62}.Knob__ringFillPivot{transform:rotate(135deg)}.Knob--bipolar .Knob__ringFillPivot{transform:rotate(270deg)}.Knob__ringFill{fill:rgba(0,0,0,0);stroke:#6a96c9;stroke-width:8;stroke-linecap:round;stroke-dasharray:314.16;transition:stroke 50ms}.Knob--color--black .Knob__ringFill{stroke:#1a1a1a}.Knob--color--white .Knob__ringFill{stroke:#fff}.Knob--color--red .Knob__ringFill{stroke:#df3e3e}.Knob--color--orange .Knob__ringFill{stroke:#f37f33}.Knob--color--yellow .Knob__ringFill{stroke:#fbda21}.Knob--color--olive .Knob__ringFill{stroke:#cbe41c}.Knob--color--green .Knob__ringFill{stroke:#25ca4c}.Knob--color--teal .Knob__ringFill{stroke:#00d6cc}.Knob--color--blue .Knob__ringFill{stroke:#2e93de}.Knob--color--violet .Knob__ringFill{stroke:#7349cf}.Knob--color--purple .Knob__ringFill{stroke:#ad45d0}.Knob--color--pink .Knob__ringFill{stroke:#e34da1}.Knob--color--brown .Knob__ringFill{stroke:#b97447}.Knob--color--grey .Knob__ringFill{stroke:#848484}.Knob--color--good .Knob__ringFill{stroke:#68c22d}.Knob--color--average .Knob__ringFill{stroke:#f29a29}.Knob--color--bad .Knob__ringFill{stroke:#df3e3e}.Knob--color--label .Knob__ringFill{stroke:#8b9bb0}.Knob--color--gold .Knob__ringFill{stroke:#f3b22f}.LabeledList{display:table;width:100%;width:calc(100% + 1em);border-collapse:collapse;border-spacing:0;margin:-.25em -.5em 0;padding:0}.LabeledList__row{display:table-row}.LabeledList__row:last-child .LabeledList__cell{padding-bottom:0}.LabeledList__cell{display:table-cell;margin:0;padding:.25em .5em;border:0;text-align:left;vertical-align:baseline}.LabeledList__label{width:1%;white-space:nowrap;min-width:5em}.LabeledList__buttons{width:.1%;white-space:nowrap;text-align:right;padding-top:.0833333333em;padding-bottom:0}.LabeledList__breakContents{word-break:break-all;word-wrap:break-word}.Modal{background-color:#252525;max-width:calc(100% - 1rem);padding:1rem;scrollbar-base-color:#1c1c1c;scrollbar-face-color:#3b3b3b;scrollbar-3dlight-color:#252525;scrollbar-highlight-color:#252525;scrollbar-track-color:#1c1c1c;scrollbar-arrow-color:#929292;scrollbar-shadow-color:#3b3b3b}.NanoMap__container{overflow:hidden;width:100%;height:100%;z-index:1}.NanoMap__marker{z-index:10;padding:0;margin:0}.NanoMap__button{padding:3px;font-size:12px;border:2px solid #000}.NanoMap__button:hover{background-color:#adff2f}.NanoMap__zchooser{z-index:21;background-color:rgba(0,0,0,.33);position:absolute;top:60px;left:0;padding:.5rem;width:3%}.NanoMap__zoomer{z-index:20;background-color:rgba(0,0,0,.33);position:absolute;top:30px;left:0;padding:.5rem;width:24%}.NoticeBox{padding:.33em .5em;margin-bottom:.5em;box-shadow:none;font-weight:700;font-style:italic;color:#000;background-color:#bb9b68;background-image:repeating-linear-gradient(-45deg,transparent,transparent .8333333333em,rgba(0,0,0,.1) .8333333333em,rgba(0,0,0,.1) 1.6666666667em)}.NoticeBox--color--black{color:#fff;background-color:#000}.NoticeBox--color--white{color:#000;background-color:#b3b3b3}.NoticeBox--color--red{color:#fff;background-color:#701f1f}.NoticeBox--color--orange{color:#fff;background-color:#854114}.NoticeBox--color--yellow{color:#000;background-color:#83710d}.NoticeBox--color--olive{color:#000;background-color:#576015}.NoticeBox--color--green{color:#fff;background-color:#174e24}.NoticeBox--color--teal{color:#fff;background-color:#064845}.NoticeBox--color--blue{color:#fff;background-color:#1b4565}.NoticeBox--color--violet{color:#fff;background-color:#3b2864}.NoticeBox--color--purple{color:#fff;background-color:#542663}.NoticeBox--color--pink{color:#fff;background-color:#802257}.NoticeBox--color--brown{color:#fff;background-color:#4c3729}.NoticeBox--color--grey{color:#fff;background-color:#3e3e3e}.NoticeBox--color--good{color:#fff;background-color:#2e4b1a}.NoticeBox--color--average{color:#fff;background-color:#7b4e13}.NoticeBox--color--bad{color:#fff;background-color:#701f1f}.NoticeBox--color--label{color:#fff;background-color:#53565a}.NoticeBox--color--gold{color:#fff;background-color:#825d13}.NoticeBox--type--info{color:#fff;background-color:#235982}.NoticeBox--type--success{color:#fff;background-color:#1e662f}.NoticeBox--type--warning{color:#fff;background-color:#a95219}.NoticeBox--type--danger{color:#fff;background-color:#8f2828}.NumberInput{position:relative;display:inline-block;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;color:#88bfff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.NumberInput--fluid{display:block}.NumberInput__content{margin-left:.5em}.NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #88bfff;background-color:#88bfff}.NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:#0a0a0a;color:#fff;text-align:right}.ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:.16em;background-color:rgba(0,0,0,0);transition:border-color .5s}.ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.ProgressBar__fill--animated{transition:background-color .5s,width .5s}.ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.ProgressBar--color--default{border:.0833333333em solid #3e6189}.ProgressBar--color--default .ProgressBar__fill{background-color:#3e6189}.ProgressBar--color--disabled{border:1px solid #999}.ProgressBar--color--disabled .ProgressBar__fill{background-color:#999}.ProgressBar--color--black{border:.0833333333em solid #000!important}.ProgressBar--color--black .ProgressBar__fill{background-color:#000}.ProgressBar--color--white{border:.0833333333em solid #d9d9d9!important}.ProgressBar--color--white .ProgressBar__fill{background-color:#d9d9d9}.ProgressBar--color--red{border:.0833333333em solid #bd2020!important}.ProgressBar--color--red .ProgressBar__fill{background-color:#bd2020}.ProgressBar--color--orange{border:.0833333333em solid #d95e0c!important}.ProgressBar--color--orange .ProgressBar__fill{background-color:#d95e0c}.ProgressBar--color--yellow{border:.0833333333em solid #d9b804!important}.ProgressBar--color--yellow .ProgressBar__fill{background-color:#d9b804}.ProgressBar--color--olive{border:.0833333333em solid #9aad14!important}.ProgressBar--color--olive .ProgressBar__fill{background-color:#9aad14}.ProgressBar--color--green{border:.0833333333em solid #1b9638!important}.ProgressBar--color--green .ProgressBar__fill{background-color:#1b9638}.ProgressBar--color--teal{border:.0833333333em solid #009a93!important}.ProgressBar--color--teal .ProgressBar__fill{background-color:#009a93}.ProgressBar--color--blue{border:.0833333333em solid #1c71b1!important}.ProgressBar--color--blue .ProgressBar__fill{background-color:#1c71b1}.ProgressBar--color--violet{border:.0833333333em solid #552dab!important}.ProgressBar--color--violet .ProgressBar__fill{background-color:#552dab}.ProgressBar--color--purple{border:.0833333333em solid #8b2baa!important}.ProgressBar--color--purple .ProgressBar__fill{background-color:#8b2baa}.ProgressBar--color--pink{border:.0833333333em solid #cf2082!important}.ProgressBar--color--pink .ProgressBar__fill{background-color:#cf2082}.ProgressBar--color--brown{border:.0833333333em solid #8c5836!important}.ProgressBar--color--brown .ProgressBar__fill{background-color:#8c5836}.ProgressBar--color--grey{border:.0833333333em solid #646464!important}.ProgressBar--color--grey .ProgressBar__fill{background-color:#646464}.ProgressBar--color--good{border:.0833333333em solid #4d9121!important}.ProgressBar--color--good .ProgressBar__fill{background-color:#4d9121}.ProgressBar--color--average{border:.0833333333em solid #cd7a0d!important}.ProgressBar--color--average .ProgressBar__fill{background-color:#cd7a0d}.ProgressBar--color--bad{border:.0833333333em solid #bd2020!important}.ProgressBar--color--bad .ProgressBar__fill{background-color:#bd2020}.ProgressBar--color--label{border:.0833333333em solid #657a94!important}.ProgressBar--color--label .ProgressBar__fill{background-color:#657a94}.ProgressBar--color--gold{border:.0833333333em solid #d6920c!important}.ProgressBar--color--gold .ProgressBar__fill{background-color:#d6920c}.RoundGauge{font-size:1rem;width:2.6em;height:1.3em;margin:0 auto .2em}.RoundGauge__ringTrack{fill:rgba(0,0,0,0);stroke:rgba(255,255,255,.1);stroke-width:10;stroke-dasharray:157.08;stroke-dashoffset:157.08}.RoundGauge__ringFill{fill:rgba(0,0,0,0);stroke:#6a96c9;stroke-width:10;stroke-dasharray:314.16;transition:stroke 50ms}.RoundGauge__needle,.RoundGauge__ringFill{transition:transform 50ms ease-in-out}.RoundGauge__needleLine,.RoundGauge__needleMiddle{fill:#db2828}.RoundGauge__alert{fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;fill:rgba(255,255,255,.1)}.RoundGauge__alert.max{fill:#db2828}.RoundGauge--color--black.RoundGauge__ringFill{stroke:#1a1a1a}.RoundGauge--color--white.RoundGauge__ringFill{stroke:#fff}.RoundGauge--color--red.RoundGauge__ringFill{stroke:#df3e3e}.RoundGauge--color--orange.RoundGauge__ringFill{stroke:#f37f33}.RoundGauge--color--yellow.RoundGauge__ringFill{stroke:#fbda21}.RoundGauge--color--olive.RoundGauge__ringFill{stroke:#cbe41c}.RoundGauge--color--green.RoundGauge__ringFill{stroke:#25ca4c}.RoundGauge--color--teal.RoundGauge__ringFill{stroke:#00d6cc}.RoundGauge--color--blue.RoundGauge__ringFill{stroke:#2e93de}.RoundGauge--color--violet.RoundGauge__ringFill{stroke:#7349cf}.RoundGauge--color--purple.RoundGauge__ringFill{stroke:#ad45d0}.RoundGauge--color--pink.RoundGauge__ringFill{stroke:#e34da1}.RoundGauge--color--brown.RoundGauge__ringFill{stroke:#b97447}.RoundGauge--color--grey.RoundGauge__ringFill{stroke:#848484}.RoundGauge--color--good.RoundGauge__ringFill{stroke:#68c22d}.RoundGauge--color--average.RoundGauge__ringFill{stroke:#f29a29}.RoundGauge--color--bad.RoundGauge__ringFill{stroke:#df3e3e}.RoundGauge--color--label.RoundGauge__ringFill{stroke:#8b9bb0}.RoundGauge--color--gold.RoundGauge__ringFill{stroke:#f3b22f}.RoundGauge__alert--black{fill:#1a1a1a;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--white{fill:#fff;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--red{fill:#df3e3e;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--orange{fill:#f37f33;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--yellow{fill:#fbda21;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--olive{fill:#cbe41c;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--green{fill:#25ca4c;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--teal{fill:#00d6cc;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--blue{fill:#2e93de;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--violet{fill:#7349cf;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--purple{fill:#ad45d0;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--pink{fill:#e34da1;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--brown{fill:#b97447;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--grey{fill:#848484;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--good{fill:#68c22d;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--average{fill:#f29a29;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--bad{fill:#df3e3e;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--label{fill:#8b9bb0;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--gold{fill:#f3b22f;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}@keyframes RoundGauge__alertAnim{0%{opacity:.1}50%{opacity:1}to{opacity:.1}}.Section{position:relative;margin-bottom:.5em;background-color:#191919;background-color:rgba(0,0,0,.33);box-sizing:border-box}.Section:last-child{margin-bottom:0}.Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #4972a1}.Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.Section__rest{position:relative}.Section__content{padding:.66em .5em}.Section--fitted>.Section__rest>.Section__content{padding:0}.Section--fill{display:flex;flex-direction:column;height:100%}.Section--fill>.Section__rest{flex-grow:1}.Section--fill>.Section__rest>.Section__content{height:100%}.Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.Section--scrollable{overflow-x:hidden;overflow-y:hidden}.Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.Section .Section:first-child{margin-top:-.5em}.Section .Section .Section__titleText{font-size:1.0833333333em}.Section .Section .Section .Section__titleText{font-size:1em}.Slider:not(.Slider__disabled){cursor:e-resize}.Slider__cursorOffset{position:absolute;top:0;left:0;bottom:0;transition:none!important}.Slider__cursor{position:absolute;top:0;right:-.0833333333em;bottom:0;width:0;border-left:.1666666667em solid #fff}.Slider__pointer{position:absolute;right:-.4166666667em;bottom:-.3333333333em;width:0;height:0;border-left:.4166666667em solid rgba(0,0,0,0);border-right:.4166666667em solid rgba(0,0,0,0);border-bottom:.4166666667em solid #fff}.Slider__popupValue{position:absolute;right:0;top:-2rem;font-size:1rem;padding:.25rem .5rem;color:#fff;background-color:#000;transform:translate(50%);white-space:nowrap}.Divider--horizontal{margin:.5em 0}.Divider--horizontal:not(.Divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.Divider--vertical{height:100%;margin:0 .5em}.Divider--vertical:not(.Divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.Stack--fill{height:100%}.Stack--horizontal>.Stack__item{margin-left:.5em}.Stack--horizontal>.Stack__item:first-child{margin-left:0}.Stack--vertical>.Stack__item{margin-top:.5em}.Stack--vertical>.Stack__item:first-child{margin-top:0}.Stack--zebra>.Stack__item:nth-child(2n){background-color:rgba(0,0,0,.33)}.Stack--horizontal>.Stack__divider:not(.Stack__divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.Stack--vertical>.Stack__divider:not(.Stack__divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.Table{display:table;width:100%;border-collapse:collapse;border-spacing:0;margin:0}.Table--collapsing{width:auto}.Table__row{display:table-row}.Table__cell{display:table-cell;padding:0 .25em}.Table__cell:first-child{padding-left:0}.Table__cell:last-child{padding-right:0}.Table__row--header .Table__cell,.Table__cell--header{font-weight:700;padding-bottom:.5em}.Table__cell--collapsing{width:1%;white-space:nowrap}.Tabs{display:flex;align-items:stretch;overflow:hidden;background-color:rgba(0,0,0,.33)}.Tabs--fill{height:100%}.Section .Tabs{background-color:rgba(0,0,0,0)}.Section:not(.Section--fitted) .Tabs{margin:0 -.5em .5em}.Section:not(.Section--fitted) .Tabs:first-child{margin-top:-.5em}.Tabs--vertical{flex-direction:column;padding:.25em .25em .25em 0}.Tabs--horizontal{margin-bottom:.5em;padding:.25em .25em 0}.Tabs--horizontal:last-child{margin-bottom:0}.Tabs__Tab{flex-grow:0}.Tabs--fluid .Tabs__Tab{flex-grow:1}.Tab{display:flex;align-items:center;justify-content:space-between;background-color:rgba(0,0,0,0);color:rgba(255,255,255,.5);min-height:2.25em;min-width:4em;transition:background-color 50ms ease-out}.Tab:not(.Tab--selected):hover{background-color:rgba(255,255,255,.075);transition:background-color 0}.Tab--selected{background-color:rgba(255,255,255,.125);color:#dfe7f0}.Tab__text{flex-grow:1;margin:0 .5em}.Tab__left{min-width:1.5em;text-align:center;margin-left:.25em}.Tab__right{min-width:1.5em;text-align:center;margin-right:.25em}.Tabs--horizontal .Tab{border-top:.1666666667em solid rgba(0,0,0,0);border-bottom:.1666666667em solid rgba(0,0,0,0);border-top-left-radius:.25em;border-top-right-radius:.25em}.Tabs--horizontal .Tab--selected{border-bottom:.1666666667em solid #d4dfec}.Tabs--vertical .Tab{min-height:2em;border-left:.1666666667em solid rgba(0,0,0,0);border-right:.1666666667em solid rgba(0,0,0,0);border-top-right-radius:.25em;border-bottom-right-radius:.25em}.Tabs--vertical .Tab--selected{border-left:.1666666667em solid #d4dfec}.Tab--selected.Tab--color--black{color:#535353}.Tabs--horizontal .Tab--selected.Tab--color--black{border-bottom-color:#1a1a1a}.Tabs--vertical .Tab--selected.Tab--color--black{border-left-color:#1a1a1a}.Tab--selected.Tab--color--white{color:#fff}.Tabs--horizontal .Tab--selected.Tab--color--white{border-bottom-color:#fff}.Tabs--vertical .Tab--selected.Tab--color--white{border-left-color:#fff}.Tab--selected.Tab--color--red{color:#e76e6e}.Tabs--horizontal .Tab--selected.Tab--color--red{border-bottom-color:#df3e3e}.Tabs--vertical .Tab--selected.Tab--color--red{border-left-color:#df3e3e}.Tab--selected.Tab--color--orange{color:#f69f66}.Tabs--horizontal .Tab--selected.Tab--color--orange{border-bottom-color:#f37f33}.Tabs--vertical .Tab--selected.Tab--color--orange{border-left-color:#f37f33}.Tab--selected.Tab--color--yellow{color:#fce358}.Tabs--horizontal .Tab--selected.Tab--color--yellow{border-bottom-color:#fbda21}.Tabs--vertical .Tab--selected.Tab--color--yellow{border-left-color:#fbda21}.Tab--selected.Tab--color--olive{color:#d8eb55}.Tabs--horizontal .Tab--selected.Tab--color--olive{border-bottom-color:#cbe41c}.Tabs--vertical .Tab--selected.Tab--color--olive{border-left-color:#cbe41c}.Tab--selected.Tab--color--green{color:#53e074}.Tabs--horizontal .Tab--selected.Tab--color--green{border-bottom-color:#25ca4c}.Tabs--vertical .Tab--selected.Tab--color--green{border-left-color:#25ca4c}.Tab--selected.Tab--color--teal{color:#21fff5}.Tabs--horizontal .Tab--selected.Tab--color--teal{border-bottom-color:#00d6cc}.Tabs--vertical .Tab--selected.Tab--color--teal{border-left-color:#00d6cc}.Tab--selected.Tab--color--blue{color:#62aee6}.Tabs--horizontal .Tab--selected.Tab--color--blue{border-bottom-color:#2e93de}.Tabs--vertical .Tab--selected.Tab--color--blue{border-left-color:#2e93de}.Tab--selected.Tab--color--violet{color:#9676db}.Tabs--horizontal .Tab--selected.Tab--color--violet{border-bottom-color:#7349cf}.Tabs--vertical .Tab--selected.Tab--color--violet{border-left-color:#7349cf}.Tab--selected.Tab--color--purple{color:#c274db}.Tabs--horizontal .Tab--selected.Tab--color--purple{border-bottom-color:#ad45d0}.Tabs--vertical .Tab--selected.Tab--color--purple{border-left-color:#ad45d0}.Tab--selected.Tab--color--pink{color:#ea79b9}.Tabs--horizontal .Tab--selected.Tab--color--pink{border-bottom-color:#e34da1}.Tabs--vertical .Tab--selected.Tab--color--pink{border-left-color:#e34da1}.Tab--selected.Tab--color--brown{color:#ca9775}.Tabs--horizontal .Tab--selected.Tab--color--brown{border-bottom-color:#b97447}.Tabs--vertical .Tab--selected.Tab--color--brown{border-left-color:#b97447}.Tab--selected.Tab--color--grey{color:#a3a3a3}.Tabs--horizontal .Tab--selected.Tab--color--grey{border-bottom-color:#848484}.Tabs--vertical .Tab--selected.Tab--color--grey{border-left-color:#848484}.Tab--selected.Tab--color--good{color:#8cd95a}.Tabs--horizontal .Tab--selected.Tab--color--good{border-bottom-color:#68c22d}.Tabs--vertical .Tab--selected.Tab--color--good{border-left-color:#68c22d}.Tab--selected.Tab--color--average{color:#f5b35e}.Tabs--horizontal .Tab--selected.Tab--color--average{border-bottom-color:#f29a29}.Tabs--vertical .Tab--selected.Tab--color--average{border-left-color:#f29a29}.Tab--selected.Tab--color--bad{color:#e76e6e}.Tabs--horizontal .Tab--selected.Tab--color--bad{border-bottom-color:#df3e3e}.Tabs--vertical .Tab--selected.Tab--color--bad{border-left-color:#df3e3e}.Tab--selected.Tab--color--label{color:#a8b4c4}.Tabs--horizontal .Tab--selected.Tab--color--label{border-bottom-color:#8b9bb0}.Tabs--vertical .Tab--selected.Tab--color--label{border-left-color:#8b9bb0}.Tab--selected.Tab--color--gold{color:#f6c563}.Tabs--horizontal .Tab--selected.Tab--color--gold{border-bottom-color:#f3b22f}.Tabs--vertical .Tab--selected.Tab--color--gold{border-left-color:#f3b22f}.Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;background-color:#0a0a0a;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75);padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible;white-space:nowrap}.Input--disabled{color:#777;border-color:#848484;border-color:rgba(132,132,132,.75);background-color:#333;background-color:rgba(0,0,0,.25)}.Input--fluid{display:block;width:auto}.Input__baseline{display:inline-block;color:rgba(0,0,0,0)}.Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit}.Input__input::placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.Input__textarea{border:0;width:calc(100% + 4px);font-size:1em;line-height:1.4166666667em;margin-left:-.3333333333em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit;resize:both;overflow:auto;white-space:pre-wrap}.Input__textarea::placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.Input__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.Input--monospace .Input__input{font-family:Consolas,monospace}.TextArea{position:relative;display:inline-block;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;background-color:#0a0a0a;margin-right:.1666666667em;line-height:1.4166666667em;box-sizing:border-box;width:100%}.TextArea--fluid{display:block;width:auto;height:auto}.TextArea__textarea{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;height:100%;font-size:1em;line-height:1.4166666667em;min-height:1.4166666667em;margin:0;padding:0 .5em;font-family:inherit;background-color:rgba(0,0,0,0);color:inherit;box-sizing:border-box;word-wrap:break-word;overflow:hidden}.TextArea__textarea::placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.TextArea__textarea:-ms-input-placeholder{font-style:italic;color:rgba(125,125,125,.75)}.Tooltip{z-index:999;padding:.5em .75em;pointer-events:none;text-align:left;transition:opacity .15s ease-out;background-color:#000;color:#fff;box-shadow:.1em .1em 1.25em -.1em rgba(0,0,0,.5);border-radius:.16em;max-width:20.8333333333em}.AccountsUplinkTerminal__list tr>td{text-align:center}.AccountsUplinkTerminal__list tr:not(:first-child){height:24px;line-height:24px;cursor:pointer;transition:background-color 50ms}.AccountsUplinkTerminal__list tr:not(:first-child):hover,.AccountsUplinkTerminal__list tr:not(:first-child):focus{background-color:#252525}.AccountsUplinkTerminal__listRow--SUSPENDED{background-color:#740c20}.AlertModal__Message{text-align:center;justify-content:center}.AlertModal__Buttons{justify-content:center}.AlertModal__Loader{width:100%;position:relative;height:4px}.AlertModal__LoaderProgress{position:absolute;transition:background-color .5s ease-out,width .5s ease-out;background-color:#3e6189;height:100%}.BrigCells__list .Table__row--header,.BrigCells__list .Table__cell{text-align:center}.BrigCells__list .BrigCells__listRow--active .Table__cell{background-color:#890e26}.CameraConsole__left{position:absolute;top:36px;bottom:0;left:0;width:18.9166666667em}.CameraConsole__right{position:absolute;top:0;bottom:0;left:18.3333333333em;right:0;margin:.5em;background-color:rgba(0,0,0,.33)}.CameraConsole__toolbar{position:absolute;top:0;left:0;right:0;height:2em;line-height:2em;margin:.25em 1em 0}.CameraConsole__toolbarRight{position:absolute;top:0;right:0;height:2em;line-height:2em;margin:.33em .5em 0}.CameraConsole__map{position:absolute;top:2.1666666667em;bottom:0;left:0;right:0;margin:.5em;text-align:center}.CameraConsole__map .NoticeBox{margin-top:calc(50% - 2em)}.CameraConsole__right_map{position:relative;display:flex;flex:1;bottom:32px;flex-direction:column;background-color:rgba(0,0,0,.33)}.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation_value{position:relative;flex-grow:1;border-color:rgba(0,0,0,0);border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,rgba(0,0,0,0)),linear-gradient(to right,#fff,rgba(255,255,255,0))}.react-colorful__pointer-fill,.react-colorful__alpha-gradient{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation_value{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__hue,.react-colorful__r,.react-colorful__g,.react-colorful__b,.react-colorful__alpha,.react-colorful__saturation,.react-colorful__value{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(to right,red,#ff0 17%,#0f0 33%,#0ff,#00f 67%,#f0f 83%,red)}.react-colorful__r{background:linear-gradient(to right,#000,red)}.react-colorful__g{background:linear-gradient(to right,#000,#0f0)}.react-colorful__b{background:linear-gradient(to right,#000,#00f)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#cfcfcf;border:2px solid #cfcfcf;border-radius:50%;box-shadow:0 2px 5px rgba(0,0,0,.4)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1);background-color:#fff;border-color:#fff}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml,')}.react-colorful__saturation-pointer,.react-colorful__value-pointer,.react-colorful__hue-pointer,.react-colorful__r-pointer,.react-colorful__g-pointer,.react-colorful__b-pointer{z-index:1;width:20px;height:20px}.react-colorful__saturation_value-pointer{z-index:3}.Contractor *{font-family:Courier New,Courier,monospace}.Contractor .Section__titleText{display:inline-block;max-width:70%}.Contractor .Section__titleText>.Flex{width:100%}.Contractor .Section__titleText>.Flex>.Flex__item:first-of-type{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.Contractor__Contract .Button{font-size:11px;white-space:normal!important}.Contractor__photoZoom{text-align:center}.Contractor__photoZoom>img{width:96px;-ms-interpolation-mode:nearest-neighbor;image-rendering:pixelated}.Contractor__photoZoom>.Button{position:absolute}.highlighted-marker{box-sizing:content-box;display:inline-block;position:relative;top:50%;left:50%;transform:translate(-50%,-50%);border-style:solid;border-width:50%;border-radius:50%;animation:1s infinite mark-shrink}@keyframes mark-shrink{0%{width:200%;height:200%}to{width:0%;height:0%}}.Exofab .Dropdown__control{margin-bottom:-1px}.Exofab .Dropdown__selected-text{overflow:hidden;text-overflow:ellipsis;width:80%;display:inline-block;margin-bottom:-3px}.Exofab__materials{height:100%;overflow:auto}.Exofab__materials .Section__content{height:calc(100% - 31px)}.Exofab__material:not(.Exofab__material--line){margin-bottom:.25rem}.Exofab__material:not(.Exofab__material--line) .Button{width:28px;margin-right:.5rem}.Exofab__material--line .Button{background-color:rgba(0,0,0,0);width:14px}.Exofab__material--name{color:#7e90a7;text-transform:capitalize}.Exofab__material .Button{margin-bottom:0;padding:0;vertical-align:middle}.Exofab__queue{height:100%}.Exofab__queue--queue .Button{margin:0;transform:scale(.75)}.Exofab__queue--queue .Button:first-of-type{margin-left:.25rem}.Exofab__queue--time{text-align:center;color:#7e90a7}.Exofab__queue--deficit{text-align:center;color:#db2828;font-weight:700}.Exofab__queue--deficit>div:not(.Divider){display:inline-block;margin-bottom:-.75rem}.Exofab__queue .Section__content{height:calc(100% - 31px)}.Exofab__queue .Exofab__material--amount{margin-right:.25rem}.Exofab__design--cost{display:inline-block;vertical-align:middle;margin-top:.25rem}.Exofab__design--cost>div{display:inline-block}.Exofab__design--cost .Exofab__material{margin-left:.25rem}.Exofab__design--time{display:inline-block;margin-left:.5rem;color:#7e90a7}.Exofab__design--time i{margin-right:.25rem}.Exofab__designs .Section__content{height:calc(100% - 31px);overflow:auto}.Exofab__building{height:45px}.Exofab__building .ProgressBar{width:100%;height:75%}.Exofab__building .ProgressBar__content{line-height:26px;text-align:right;font-size:12px;font-weight:700;display:flex;justify-content:flex-end}.Exofab__dropdown{line-height:14px;font-size:12px;width:225px;height:85%;margin-top:1.5px}.GeneModder__left{position:absolute;top:0;bottom:0;left:0;width:40.8333333333em}.GeneModder__right{position:absolute;top:0;bottom:0;left:40.8333333333em;right:0;background-color:rgba(0,0,0,.33)}.Ingredient__Table tr:nth-child(2n){background-color:#333}.Ingredient__Table td{padding:3px}.Library__Booklist tr>td{text-align:center}.Library__Booklist tr:not(:first-child){height:24px;line-height:24px;transition:background-color 50ms}.Library__Booklist tr:not(:first-child):hover,.Library__Booklist tr:not(:first-child):focus{background-color:#252525}.Library__SearchContainer{background-color:rgba(37,37,37,.5)}.Library__SearchContainer tr td:first-child{width:60%}.ListInput__Section .Section__title{flex-shrink:0}.ListInput__Section .Section__titleText{font-size:12px}.ListInput__Loader{width:100%;position:relative;height:4px}.ListInput__LoaderProgress{position:absolute;transition:background-color .5s,width .5s;background-color:#3e6189;height:100%}.Loadout-Modal__background{padding:.5em;background-color:#252525}.Loadout-InfoBox{display:flex;line-height:1.2rem;text-shadow:0 1px 0 2px rgba(0,0,0,.66);text-align:left}.Newscaster__menu{width:40px;height:100%;margin-right:.5rem;flex-basis:content}.Newscaster__menu .Section__content{padding-left:0}.Newscaster__menuButton{color:#767676;cursor:pointer;position:relative;margin-left:6px;margin-right:1rem;white-space:nowrap;transition:color .1s}.Newscaster__menuButton--title{width:80%;display:none;overflow:hidden;text-overflow:ellipsis}.Newscaster__menuButton--unread{background-color:#e45e5e;color:#fff;font-size:10px;text-align:center;border-radius:32px;display:inline-block;width:12px;position:absolute;left:16px;margin-top:14px}.Newscaster__menuButton--selected{color:#fff}.Newscaster__menuButton--selected:after{content:"";background-color:#4972a1;width:2px;height:24px;position:absolute;left:-6px}.Newscaster__menuButton--security{color:#4972a1}.Newscaster__menuButton i{width:30px;text-align:center;vertical-align:middle;margin-left:-1px;margin-right:.5rem;margin-top:1px}.Newscaster__menuButton:hover{color:#fff}.Newscaster__menuButton:hover:before{background-color:#fff}.Newscaster__menuButton:not(:last-of-type){margin-bottom:.5rem}.Newscaster__menu--open{width:175px}.Newscaster__menu--open .Newscaster__menuButton--title{display:inline-block}.Newscaster__jobCategory--security .Section__title{color:#a14c49;border-bottom:2px solid #a14c49!important}.Newscaster__jobCategory--engineering .Section__title{color:#a17849;border-bottom:2px solid #a17849!important}.Newscaster__jobCategory--medical .Section__title{color:#499ea1;border-bottom:2px solid #499ea1!important}.Newscaster__jobCategory--science .Section__title{color:#a14972;border-bottom:2px solid #a14972!important}.Newscaster__jobCategory--service .Section__title{color:#a1499e;border-bottom:2px solid #a1499e!important}.Newscaster__jobCategory--supply .Section__title{color:#9ea149;border-bottom:2px solid #9ea149!important}.Newscaster__jobCategory:last-child{margin-bottom:.5rem}.Newscaster__jobOpening--command{font-weight:700}.Newscaster__jobOpening:not(:last-child){margin-bottom:.5rem}.Newscaster__emptyNotice{color:#7e90a7;text-align:center;position:absolute;top:50%;left:50%;transform:translateY(-50%) translate(-50%)}.Newscaster__emptyNotice i{margin-bottom:.25rem}.Newscaster__photo{cursor:pointer;width:100px;border:1px solid #000;transition:border-color .3s;-ms-interpolation-mode:nearest-neighbor;image-rendering:pixelated}.Newscaster__photo:hover{border-color:gray}.Newscaster__photoZoom{text-align:center}.Newscaster__photoZoom>img{transform:scale(2);-ms-interpolation-mode:nearest-neighbor;image-rendering:pixelated}.Newscaster__photoZoom>.Button{position:absolute;width:64px;left:50%;margin-left:-32px;bottom:1rem}.Newscaster__story--wanted{background-color:rgba(219,40,40,.1)}.Newscaster__story--wanted .Section__title{color:#db2828;border-bottom:2px solid #a14c49!important}.Newscaster__story:last-child{margin-bottom:.5rem}.NuclearBomb__displayBox{background-color:#002003;border:.167em inset #e8e4c9;color:#03e017;font-size:2em;font-family:monospace;padding:.25em}.NuclearBomb__Button{outline-width:.25rem!important;border-width:.65rem!important;padding-left:0!important;padding-right:0!important}.NuclearBomb__Button--keypad{background-color:#e8e4c9;border-color:#e8e4c9}.NuclearBomb__Button--keypad:hover{background-color:#f7f6ee!important;border-color:#f7f6ee!important}.NuclearBomb__Button--1{background-color:#d3cfb7!important;border-color:#d3cfb7!important;color:#a9a692!important}.NuclearBomb__Button--E{background-color:#d9b804!important;border-color:#d9b804!important}.NuclearBomb__Button--E:hover{background-color:#f3d00e!important;border-color:#f3d00e!important}.NuclearBomb__Button--C{background-color:#bd2020!important;border-color:#bd2020!important}.NuclearBomb__Button--C:hover{background-color:#d52b2b!important;border-color:#d52b2b!important}.OreRedemption__Ores .OreLine,.OreRedemption__Ores .OreHeader{min-height:32px;padding:0 .5rem}.OreRedemption__Ores .OreHeader{line-height:32px;background-color:rgba(0,0,0,.33);font-weight:700}.OreRedemption__Ores .OreLine:last-of-type{margin-bottom:.5rem}.OreRedemption__Ores .Section__content{padding:0;height:100%;overflow:auto}.symptoms-table{border-collapse:separate;border-spacing:0 .5ex;height:100%}.symptoms-table>tbody>tr:first-child{width:100%;font-weight:700}.symptoms-table>tbody>tr:nth-child(2)>td:first-child{padding-top:.5ex}.symptoms-table>tbody>tr>td:nth-child(n+2){text-align:center}.common-name-label>.LabeledList__cell{vertical-align:middle}.table-spacer{height:100%}.remove-section-bottom-padding .Section__content{padding-bottom:0}.PDA__footer{position:fixed;bottom:0%;left:0%;right:0%;height:30px}.PDA__footer__button{text-align:center;padding-top:4px;padding-bottom:2px;font-size:24px}.PdaPainter__list tr>td{text-align:center}.PdaPainter__list tr{height:24px;line-height:24px;cursor:pointer;transition:background-color 50ms}.PdaPainter__list tr:hover,.PdaPainter__list tr:focus{background-color:#252525}.PoolController__Buttons .Button:not(:last-child){margin-bottom:8px}.reagents-table{border-collapse:separate;border-spacing:0 .3em}.volume-cell{min-width:3em;text-align:right;vertical-align:middle}.volume-cell:not(:hover) .volume-actions-wrapper{display:none}.volume-cell:hover .volume-label{display:none}.reagent-absent-name-cell{color:#767676}.reagent-row>*:last-child{padding-right:.5em}.absent-row:not(:hover) .add-reagent-button{visibility:hidden}.condensed-button{margin:0;padding:0;min-height:0;line-height:0;background:none}.RndConsole{position:relative}.RndConsole__Overlay{position:absolute;display:flex;align-items:stretch;justify-content:stretch;top:0;left:0;width:100%;height:100vh}.RndConsole__LatheCategory__MatchingDesigns .Table__cell{padding-bottom:4px}.RndConsole__LatheMaterials .Table__cell:nth-child(2){padding-left:16px}.RndConsole__LatheMaterialStorage .Table__cell{padding:4px 0;border-bottom:1px solid #767676}.RndConsole__Overlay__Wrapper{display:flex;align-items:center;justify-content:stretch;flex-grow:1;padding:24px;background-color:rgba(255,255,255,0)}.RndConsole__Overlay__Wrapper .NoticeBox{flex-grow:1;margin-bottom:80px;font-size:18pt;padding:.3em .75em}.RndConsole__RndNavbar .Button{margin-bottom:10px}#research-levels tr>*:first-child{width:2em}#research-levels tr>*:nth-child(3),#research-levels tr>*:nth-child(4),#research-levels tr>*:nth-child(5){text-align:center}#research-levels tr:not(:first-child)>*:first-child{height:2em}.upgraded-level{color:#55d355}.research-level-no-effect{color:#888}.Roulette{font-family:Palatino}.Roulette__board{display:table;width:100%;border-collapse:collapse;border:2px solid #fff;margin:0}.Roulette__board-row{padding:0;margin:0}.Roulette__board-cell{display:table-cell;padding:0;margin:0;border:2px solid #fff;font-family:Palatino}.Roulette__board-cell:first-child{padding-left:0}.Roulette__board-cell:last-child{padding-right:0}.Roulette__board-extrabutton{text-align:center;font-size:20px;font-weight:700;height:28px;border:none!important;margin:0!important;padding-top:4px!important;color:#fff!important}.Roulette__lowertable{margin-top:8px;margin-left:80px;margin-right:80px;border-collapse:collapse;border:2px solid #fff;border-spacing:0}.Roulette__lowertable--cell{border:2px solid #fff;padding:0;margin:0}.Roulette__lowertable--betscell{vertical-align:top}.Roulette__lowertable--spinresult{text-align:center;font-size:100px;font-weight:700;vertical-align:middle}.Roulette__lowertable--spinresult-black{background-color:#000}.Roulette__lowertable--spinresult-red{background-color:#db2828}.Roulette__lowertable--spinresult-green{background-color:#20b142}.Roulette__lowertable--spinbutton{margin:0!important;border:none!important;font-size:50px;line-height:60px!important;text-align:center;font-weight:700}.Roulette__lowertable--header{width:1%;text-align:center;font-size:20px;font-weight:700}.Safe--engraving{position:absolute;width:95%;height:96%;left:2.5%;top:2%;border:5px outset #364963;padding:5px;text-align:center}.Safe--engraving--arrow{color:#35435a}.Safe--engraving--hinge{content:" ";background-color:#191f2a;width:25px;height:40px;position:absolute;right:-15px;margin-top:-20px}.Safe--dialer{margin-bottom:.5rem}.Safe--dialer--number{color:#bbb;display:inline;background-color:#191f2a;font-size:1.5rem;font-weight:700;padding:0 .5rem}.Safe--dialer--right .Button i{z-index:-100}.Safe--dialer .Button{width:80px}.Safe--contents{border:10px solid #191f2a;background-color:#0f131a;height:calc(85% + 7.5px);text-align:left;padding:5px}.Safe--help{position:absolute;bottom:30px;left:25px;width:50%}.SecureStorage__displayBox{background-color:#212121;color:#8b8b8b;border:.167em inset #e8e4c9;font-size:375%;font-family:monospace;padding:.25em}.SecureStorage__displayBox--good{background-color:#002003;color:#03e017}.SecureStorage__displayBox--bad{background-color:#210000;color:#e00202}.SecureStorage__Button{outline-width:.25rem!important;border-width:.3rem!important;border:.167em outset #e8e4c9;padding-left:0!important;padding-right:0!important}.SecureStorage__Button--keypad{background-color:#e8e4c9;border-color:#e8e4c9;color:#a9a692}.SecureStorage__Button--keypad:hover{background-color:#f7f6ee;border-color:#f7f6ee;color:#a9a692}.SecureStorage__Button--E{background-color:#d9b804;border-color:#d9b804;color:#fff}.SecureStorage__Button--E:hover{background-color:#f5d317;border-color:#f5d317;color:#fff}.SecureStorage__Button--C{background-color:#bd2020;border-color:#bd2020;color:#fff}.SecureStorage__Button--C:hover{background-color:#d83434;border-color:#d83434;color:#fff}.SecurityRecords__list tr>td{text-align:center}.SecurityRecords__list tr:not(:first-child){height:24px;line-height:24px;cursor:pointer;transition:background-color 50ms}.SecurityRecords__list tr:not(:first-child):hover,.SecurityRecords__list tr:not(:first-child):focus{background-color:#252525}.SecurityRecords__listRow--arrest{background-color:#740c20}.SecurityRecords__listRow--execute{background-color:#683e8c}.SecurityRecords__listRow--incarcerated{background-color:#633203}.SecurityRecords__listRow--parolled{background-color:#006d7b}.SecurityRecords__listRow--released{background-color:#1c5574}.SecurityRecords__listRow--demote{background-color:#155500}.SecurityRecords__listRow--search{background-color:#987a00}.SecurityRecords__listRow--monitor{background-color:#1f1180}.SeedExtractor__list tr:not(:first-child){height:24px;line-height:24px;cursor:pointer;transition:background-color 50ms}.SeedExtractor__list tr:not(:first-child):hover,.SeedExtractor__list tr:not(:first-child):focus{background-color:#252525}.MedicalRecords__list tr>td{text-align:center}.MedicalRecords__list tr:not(:first-child){height:24px;line-height:24px;cursor:pointer;transition:background-color 50ms}.MedicalRecords__list tr:not(:first-child):hover,.MedicalRecords__list tr:not(:first-child):focus{background-color:#252525}.MedicalRecords__listRow--deceased{background-color:#740c20}.MedicalRecords__listRow--ssd{background-color:#006d7b}.MedicalRecords__listRow--physically_unfit{background-color:#987a00}.MedicalRecords__listRow--disabled{background-color:#1f1180}.MedicalRecords__listMedbot--0{background-color:#2b1414}html,body{scrollbar-color:#3b3b3b #1c1c1c}.Layout,.Layout *{scrollbar-base-color:#1c1c1c;scrollbar-face-color:#3b3b3b;scrollbar-3dlight-color:#252525;scrollbar-highlight-color:#252525;scrollbar-track-color:#1c1c1c;scrollbar-arrow-color:#929292;scrollbar-shadow-color:#3b3b3b}.Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.Layout__content--flexRow{display:flex;flex-flow:row}.Layout__content--flexColumn{display:flex;flex-flow:column}.Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.Layout__content--noMargin{margin:0}.TitleBar{background-color:#363636;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#363636;transition:color .25s,background-color .25s}.TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#252525;background-image:linear-gradient(to bottom,#2a2a2a,#202020)}.Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.Window__contentPadding:after{height:0}.Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(62,62,62,.25);pointer-events:none}.Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.Layout__content{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMCIgdmlld0JveD0iMCAwIDQyNSAyMDAiIG9wYWNpdHk9Ii4zMyI+PHBhdGggZD0ibSAxNzguMDAzOTksMC4wMzg2OSAtNzEuMjAzOTMsMCBhIDYuNzYxMzQyMiw2LjAyNTU0OTUgMCAwIDAgLTYuNzYxMzQsNi4wMjU1NSBsIDAsMTg3Ljg3MTQ3IGEgNi43NjEzNDIyLDYuMDI1NTQ5NSAwIDAgMCA2Ljc2MTM0LDYuMDI1NTQgbCA1My4xMDcyLDAgYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIDYuNzYxMzUsLTYuMDI1NTQgbCAwLC0xMDEuNTQ0MDE4IDcyLjIxNjI4LDEwNC42OTkzOTggYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIDUuNzYwMTUsMi44NzAxNiBsIDczLjU1NDg3LDAgYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIDYuNzYxMzUsLTYuMDI1NTQgbCAwLC0xODcuODcxNDcgYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIC02Ljc2MTM1LC02LjAyNTU1IGwgLTU0LjcxNjQ0LDAgYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIC02Ljc2MTMzLDYuMDI1NTUgbCAwLDEwMi42MTkzNSBMIDE4My43NjQxMywyLjkwODg2IGEgNi43NjEzNDIyLDYuMDI1NTQ5NSAwIDAgMCAtNS43NjAxNCwtMi44NzAxNyB6IiAvPjxwYXRoIGQ9Ik0gNC44NDQ2MzMzLDIyLjEwODc1IEEgMTMuNDEyMDM5LDEyLjUwMTg0MiAwIDAgMSAxMy40Nzc1ODgsMC4wMzkyNCBsIDY2LjExODMxNSwwIGEgNS4zNjQ4MTU4LDUuMDAwNzM3IDAgMCAxIDUuMzY0ODIzLDUuMDAwNzMgbCAwLDc5Ljg3OTMxIHoiIC8+PHBhdGggZD0ibSA0MjAuMTU1MzUsMTc3Ljg5MTE5IGEgMTMuNDEyMDM4LDEyLjUwMTg0MiAwIDAgMSAtOC42MzI5NSwyMi4wNjk1MSBsIC02Ni4xMTgzMiwwIGEgNS4zNjQ4MTUyLDUuMDAwNzM3IDAgMCAxIC01LjM2NDgyLC01LjAwMDc0IGwgMCwtNzkuODc5MzEgeiIgLz48L3N2Zz48IS0tIFRoaXMgd29yayBpcyBsaWNlbnNlZCB1bmRlciBhIENyZWF0aXZlIENvbW1vbnMgQXR0cmlidXRpb24tU2hhcmVBbGlrZSA0LjAgSW50ZXJuYXRpb25hbCBMaWNlbnNlLiAtLT48IS0tIGh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL2xpY2Vuc2VzL2J5LXNhLzQuMC8gLS0+);background-size:70% 70%;background-position:center;background-repeat:no-repeat}.theme-abductor .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:2px;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-abductor .Button:last-child{margin-right:0;margin-bottom:0}.theme-abductor .Button .fa,.theme-abductor .Button .fas,.theme-abductor .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-abductor .Button--hasContent .fa,.theme-abductor .Button--hasContent .fas,.theme-abductor .Button--hasContent .far{margin-right:.25em}.theme-abductor .Button--hasContent.Button--iconRight .fa,.theme-abductor .Button--hasContent.Button--iconRight .fas,.theme-abductor .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-abductor .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-abductor .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-abductor .Button--circular{border-radius:50%}.theme-abductor .Button--compact{padding:0 .25em;line-height:1.333em}.theme-abductor .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-abductor .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-abductor .Button--color--transparent{background-color:rgba(42,49,74,0);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-abductor .Button--color--transparent:hover{background-color:rgba(62,70,100,.81);color:#fff}.theme-abductor .Button--color--default{background-color:#ad2350;color:#fff;transition:color .2s,background-color .2s}.theme-abductor .Button--color--default:hover{background-color:#d03a6b;color:#fff}.theme-abductor .Button--color--default--translucent{background-color:rgba(50,58,84,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-abductor .Button--color--default--translucent:hover{background-color:rgba(73,82,111,.5);color:#fff}.theme-abductor .Button--color--caution{background-color:#be6209;color:#fff;transition:color .2s,background-color .2s}.theme-abductor .Button--color--caution:hover{background-color:#e67f1a;color:#fff}.theme-abductor .Button--color--caution--translucent{background-color:rgba(190,98,9,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-abductor .Button--color--caution--translucent:hover{background-color:rgba(230,127,26,.5);color:#fff}.theme-abductor .Button--color--danger{background-color:#9a9d00;color:#fff;transition:color .2s,background-color .2s}.theme-abductor .Button--color--danger:hover{background-color:#bec110;color:#fff}.theme-abductor .Button--color--danger--translucent{background-color:rgba(154,157,0,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-abductor .Button--color--danger--translucent:hover{background-color:rgba(190,193,16,.5);color:#fff}.theme-abductor .Button--disabled{background-color:#363636!important;color:rgba(255,255,255,.75)!important}.theme-abductor .Button--disabled--translucent{background-color:rgba(77,23,23,.5)!important;color:rgba(255,255,255,.5)!important}.theme-abductor .Button--selected,.theme-abductor .Button--selected--translucent{background-color:#465899;color:#fff;transition:color .2s,background-color .2s}.theme-abductor .Button--selected:hover,.theme-abductor .Button--selected--translucent:hover{background-color:#6577b5;color:#fff}.theme-abductor .Divider--horizontal{margin:.5em 0}.theme-abductor .Divider--horizontal:not(.Divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.theme-abductor .Divider--vertical{height:100%;margin:0 .5em}.theme-abductor .Divider--vertical:not(.Divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.theme-abductor .color__default{background-color:rgba(180,80,112,.2);color:#fff;border:solid rgba(219,170,186,.2);border-width:1px;transition:background-color .2s,border-color .2s}.theme-abductor .color__default:hover{background-color:rgba(219,170,186,.2)}.theme-abductor .disabled{background-color:rgba(54,54,54,.25)!important;border-color:rgba(54,54,54,.25)!important}.theme-abductor .selected{background-color:rgba(70,88,153,.2);color:#fff;border:solid rgba(70,88,153,.25);border-width:1px;transition:background-color .2s,border-color .2s}.theme-abductor .selected:hover{background-color:rgba(142,155,201,.2)}.theme-abductor .contentColor__default{background-color:#af4c6c;color:#fff;border:solid #c45b7d;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.theme-abductor .contentDisabled{background-color:#363636!important;border-top:1px solid #4d4d4d!important}.theme-abductor .contentSelected{background-color:#465899;color:#fff;border:solid #6577b5;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.theme-abductor .buttonsContainerColor__default{background-color:rgba(180,80,112,.2);color:#fff;border:solid rgba(219,170,186,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.theme-abductor .ImageButton{display:inline-table;position:relative;text-align:center;margin:.25em;user-select:none;-ms-user-select:none}.theme-abductor .ImageButton .noAction{pointer-events:none}.theme-abductor .ImageButton .container{display:flex;flex-direction:column;border-radius:.33em}.theme-abductor .ImageButton .image{position:relative;align-self:center;pointer-events:none;overflow:hidden;line-height:0;padding:.25em;border-radius:.33em}.theme-abductor .ImageButton .buttonsContainer{display:flex;position:absolute;overflow:hidden;left:1px;bottom:1.8em;max-width:100%;z-index:1}.theme-abductor .ImageButton .buttonsContainer.buttonsAltContainer{overflow:visible;flex-direction:column;pointer-events:none;top:1px;bottom:inherit!important}.theme-abductor .ImageButton .buttonsContainer.buttonsEmpty{bottom:1px}.theme-abductor .ImageButton .buttonsContainer>*{margin:0!important;padding:0 .2em!important;border-radius:0!important}.theme-abductor .ImageButton .content{-ms-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:.25em .5em;margin:-1px;border-radius:0 0 .33em .33em;z-index:2}.theme-abductor .fluid{display:flex;flex-direction:row;position:relative;text-align:center;margin:0 0 .5em;user-select:none;-ms-user-select:none}.theme-abductor .fluid:last-of-type{margin-bottom:0}.theme-abductor .fluid .info{display:flex;flex-direction:column;justify-content:center;flex:1}.theme-abductor .fluid .title{font-weight:700;padding:.5em}.theme-abductor .fluid .title.divider{margin:0 .5em;border-bottom:.1666666667em solid rgba(255,255,255,.1)}.theme-abductor .fluid .contentFluid{padding:.5em;color:#fff}.theme-abductor .fluid .container{flex-direction:row;flex:1}.theme-abductor .fluid .container.hasButtons{border-radius:.33em 0 0 .33em;border-width:1px 0 1px 1px}.theme-abductor .fluid .image{padding:0}.theme-abductor .fluid .buttonsContainer{position:relative;left:inherit;bottom:inherit;border-radius:0 .33em .33em 0}.theme-abductor .fluid .buttonsContainer.buttonsEmpty{bottom:inherit}.theme-abductor .fluid .buttonsContainer.buttonsAltContainer{overflow:hidden;pointer-events:auto;top:inherit}.theme-abductor .fluid .buttonsContainer.buttonsAltContainer>*{border-top:1px solid rgba(255,255,255,.075)}.theme-abductor .fluid .buttonsContainer.buttonsAltContainer>*:first-child{border-top:0}.theme-abductor .fluid .buttonsContainer>*{display:inline-flex;flex-direction:column;justify-content:center;text-align:center;white-space:pre-wrap;line-height:1.1666666667em;height:100%;border-left:1px solid rgba(255,255,255,.075)}.theme-abductor .NoticeBox{padding:.33em .5em;margin-bottom:.5em;box-shadow:none;font-weight:700;font-style:italic;color:#fff;background-color:#a82d55;background-image:repeating-linear-gradient(-45deg,transparent,transparent .8333333333em,rgba(0,0,0,.1) .8333333333em,rgba(0,0,0,.1) 1.6666666667em)}.theme-abductor .NoticeBox--type--info{color:#fff;background-color:#235982}.theme-abductor .NoticeBox--type--success{color:#fff;background-color:#1e662f}.theme-abductor .NoticeBox--type--warning{color:#fff;background-color:#a95219}.theme-abductor .NoticeBox--type--danger{color:#fff;background-color:#8f2828}.theme-abductor .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #404b6e;border:.0833333333em solid rgba(64,75,110,.75);border-radius:2px;background-color:#0a0a0a;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75);padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible;white-space:nowrap}.theme-abductor .Input--disabled{color:#777;border-color:#171717;border-color:rgba(23,23,23,.75);background-color:#333;background-color:rgba(0,0,0,.25)}.theme-abductor .Input--fluid{display:block;width:auto}.theme-abductor .Input__baseline{display:inline-block;color:rgba(0,0,0,0)}.theme-abductor .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit}.theme-abductor .Input__input::placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-abductor .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-abductor .Input__textarea{border:0;width:calc(100% + 4px);font-size:1em;line-height:1.4166666667em;margin-left:-.3333333333em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit;resize:both;overflow:auto;white-space:pre-wrap}.theme-abductor .Input__textarea::placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-abductor .Input__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-abductor .Input--monospace .Input__input{font-family:Consolas,monospace}.theme-abductor .NumberInput{position:relative;display:inline-block;border:.0833333333em solid #404b6e;border:.0833333333em solid rgba(64,75,110,.75);border-radius:2px;color:#404b6e;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.theme-abductor .NumberInput--fluid{display:block}.theme-abductor .NumberInput__content{margin-left:.5em}.theme-abductor .NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.theme-abductor .NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #404b6e;background-color:#404b6e}.theme-abductor .NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:#0a0a0a;color:#fff;text-align:right}.theme-abductor .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:2px;background-color:rgba(0,0,0,.5);transition:border-color .5s}.theme-abductor .ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.theme-abductor .ProgressBar__fill--animated{transition:background-color .5s,width .5s}.theme-abductor .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-abductor .ProgressBar--color--default{border:.0833333333em solid #931e44}.theme-abductor .ProgressBar--color--default .ProgressBar__fill{background-color:#931e44}.theme-abductor .ProgressBar--color--disabled{border:1px solid #363636}.theme-abductor .ProgressBar--color--disabled .ProgressBar__fill{background-color:#363636}.theme-abductor .Section{position:relative;margin-bottom:.5em;background-color:#1c2132;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-abductor .Section:last-child{margin-bottom:0}.theme-abductor .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #ad2350}.theme-abductor .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-abductor .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-abductor .Section__rest{position:relative}.theme-abductor .Section__content{padding:.66em .5em}.theme-abductor .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-abductor .Section--fill{display:flex;flex-direction:column;height:100%}.theme-abductor .Section--fill>.Section__rest{flex-grow:1}.theme-abductor .Section--fill>.Section__rest>.Section__content{height:100%}.theme-abductor .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-abductor .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-abductor .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-abductor .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-abductor .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-abductor .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-abductor .Section .Section:first-child{margin-top:-.5em}.theme-abductor .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-abductor .Section .Section .Section .Section__titleText{font-size:1em}.theme-abductor .Tooltip{z-index:999;padding:.5em .75em;pointer-events:none;text-align:left;transition:opacity .15s ease-out;background-color:#a82d55;color:#fff;box-shadow:.1em .1em 1.25em -.1em rgba(0,0,0,.5);border-radius:2px;max-width:20.8333333333em}.theme-abductor html,.theme-abductor body{scrollbar-color:#384263 #202538}.theme-abductor .Layout,.theme-abductor .Layout *{scrollbar-base-color:#202538;scrollbar-face-color:#384263;scrollbar-3dlight-color:#2a314a;scrollbar-highlight-color:#2a314a;scrollbar-track-color:#202538;scrollbar-arrow-color:#818db8;scrollbar-shadow-color:#384263}.theme-abductor .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-abductor .Layout__content--flexRow{display:flex;flex-flow:row}.theme-abductor .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-abductor .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-abductor .Layout__content--noMargin{margin:0}.theme-abductor .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#2a314a;background-image:linear-gradient(to bottom,#353e5e,#1f2436)}.theme-abductor .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-abductor .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-abductor .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-abductor .Window__contentPadding:after{height:0}.theme-abductor .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-abductor .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(68,76,104,.25);pointer-events:none}.theme-abductor .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-abductor .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-abductor .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-abductor .TitleBar{background-color:#9e1b46;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-abductor .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#9e1b46;transition:color .25s,background-color .25s}.theme-abductor .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-abductor .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-abductor .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-abductor .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-abductor .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-abductor .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-abductor .Layout__content{background-image:none}.theme-cardtable .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:0;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-cardtable .Button:last-child{margin-right:0;margin-bottom:0}.theme-cardtable .Button .fa,.theme-cardtable .Button .fas,.theme-cardtable .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-cardtable .Button--hasContent .fa,.theme-cardtable .Button--hasContent .fas,.theme-cardtable .Button--hasContent .far{margin-right:.25em}.theme-cardtable .Button--hasContent.Button--iconRight .fa,.theme-cardtable .Button--hasContent.Button--iconRight .fas,.theme-cardtable .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-cardtable .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-cardtable .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-cardtable .Button--circular{border-radius:50%}.theme-cardtable .Button--compact{padding:0 .25em;line-height:1.333em}.theme-cardtable .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-cardtable .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-cardtable .Button--color--transparent{background-color:rgba(17,112,57,0);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-cardtable .Button--color--transparent:hover{background-color:rgba(32,145,79,.81);color:#fff}.theme-cardtable .Button--color--default{background-color:#117039;color:#fff;transition:color .2s,background-color .2s}.theme-cardtable .Button--color--default:hover{background-color:#238e50;color:#fff}.theme-cardtable .Button--color--default--translucent{background-color:rgba(25,124,67,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-cardtable .Button--color--default--translucent:hover{background-color:rgba(44,156,92,.5);color:#fff}.theme-cardtable .Button--color--caution{background-color:#be6209;color:#fff;transition:color .2s,background-color .2s}.theme-cardtable .Button--color--caution:hover{background-color:#e67f1a;color:#fff}.theme-cardtable .Button--color--caution--translucent{background-color:rgba(190,98,9,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-cardtable .Button--color--caution--translucent:hover{background-color:rgba(230,127,26,.5);color:#fff}.theme-cardtable .Button--color--danger{background-color:#9a9d00;color:#fff;transition:color .2s,background-color .2s}.theme-cardtable .Button--color--danger:hover{background-color:#bec110;color:#fff}.theme-cardtable .Button--color--danger--translucent{background-color:rgba(154,157,0,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-cardtable .Button--color--danger--translucent:hover{background-color:rgba(190,193,16,.5);color:#fff}.theme-cardtable .Button--disabled{background-color:#363636!important;color:rgba(255,255,255,.75)!important}.theme-cardtable .Button--disabled--translucent{background-color:rgba(77,23,23,.5)!important;color:rgba(255,255,255,.5)!important}.theme-cardtable .Button--selected,.theme-cardtable .Button--selected--translucent{background-color:#9d0808;color:#fff;transition:color .2s,background-color .2s}.theme-cardtable .Button--selected:hover,.theme-cardtable .Button--selected--translucent:hover{background-color:#c11919;color:#fff}.theme-cardtable .Divider--horizontal{margin:.5em 0}.theme-cardtable .Divider--horizontal:not(.Divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.theme-cardtable .Divider--vertical{height:100%;margin:0 .5em}.theme-cardtable .Divider--vertical:not(.Divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.theme-cardtable .color__default{background-color:rgba(78,214,135,.2);color:#000;border:solid rgba(190,240,210,.2);border-width:1px;transition:background-color .2s,border-color .2s}.theme-cardtable .color__default:hover{background-color:rgba(190,240,210,.2)}.theme-cardtable .disabled{background-color:rgba(54,54,54,.25)!important;border-color:rgba(54,54,54,.25)!important}.theme-cardtable .selected{background-color:rgba(157,8,8,.2);color:#fff;border:solid rgba(157,8,8,.25);border-width:1px;transition:background-color .2s,border-color .2s}.theme-cardtable .selected:hover{background-color:rgba(229,42,42,.2)}.theme-cardtable .contentColor__default{background-color:#4bd083;color:#000;border:solid #5be695;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.theme-cardtable .contentDisabled{background-color:#363636!important;border-top:1px solid #4d4d4d!important}.theme-cardtable .contentSelected{background-color:#9d0808;color:#fff;border:solid #c11919;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.theme-cardtable .buttonsContainerColor__default{background-color:rgba(78,214,135,.2);color:#000;border:solid rgba(190,240,210,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.theme-cardtable .ImageButton{display:inline-table;position:relative;text-align:center;margin:.25em;user-select:none;-ms-user-select:none}.theme-cardtable .ImageButton .noAction{pointer-events:none}.theme-cardtable .ImageButton .container{display:flex;flex-direction:column;border-radius:.33em}.theme-cardtable .ImageButton .image{position:relative;align-self:center;pointer-events:none;overflow:hidden;line-height:0;padding:.25em;border-radius:.33em}.theme-cardtable .ImageButton .buttonsContainer{display:flex;position:absolute;overflow:hidden;left:1px;bottom:1.8em;max-width:100%;z-index:1}.theme-cardtable .ImageButton .buttonsContainer.buttonsAltContainer{overflow:visible;flex-direction:column;pointer-events:none;top:1px;bottom:inherit!important}.theme-cardtable .ImageButton .buttonsContainer.buttonsEmpty{bottom:1px}.theme-cardtable .ImageButton .buttonsContainer>*{margin:0!important;padding:0 .2em!important;border-radius:0!important}.theme-cardtable .ImageButton .content{-ms-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:.25em .5em;margin:-1px;border-radius:0 0 .33em .33em;z-index:2}.theme-cardtable .fluid{display:flex;flex-direction:row;position:relative;text-align:center;margin:0 0 .5em;user-select:none;-ms-user-select:none}.theme-cardtable .fluid:last-of-type{margin-bottom:0}.theme-cardtable .fluid .info{display:flex;flex-direction:column;justify-content:center;flex:1}.theme-cardtable .fluid .title{font-weight:700;padding:.5em}.theme-cardtable .fluid .title.divider{margin:0 .5em;border-bottom:.1666666667em solid rgba(255,255,255,.1)}.theme-cardtable .fluid .contentFluid{padding:.5em;color:#fff}.theme-cardtable .fluid .container{flex-direction:row;flex:1}.theme-cardtable .fluid .container.hasButtons{border-radius:.33em 0 0 .33em;border-width:1px 0 1px 1px}.theme-cardtable .fluid .image{padding:0}.theme-cardtable .fluid .buttonsContainer{position:relative;left:inherit;bottom:inherit;border-radius:0 .33em .33em 0}.theme-cardtable .fluid .buttonsContainer.buttonsEmpty{bottom:inherit}.theme-cardtable .fluid .buttonsContainer.buttonsAltContainer{overflow:hidden;pointer-events:auto;top:inherit}.theme-cardtable .fluid .buttonsContainer.buttonsAltContainer>*{border-top:1px solid rgba(255,255,255,.075)}.theme-cardtable .fluid .buttonsContainer.buttonsAltContainer>*:first-child{border-top:0}.theme-cardtable .fluid .buttonsContainer>*{display:inline-flex;flex-direction:column;justify-content:center;text-align:center;white-space:pre-wrap;line-height:1.1666666667em;height:100%;border-left:1px solid rgba(255,255,255,.075)}.theme-cardtable .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:0;background-color:#0a0a0a;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75);padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible;white-space:nowrap}.theme-cardtable .Input--disabled{color:#777;border-color:#848484;border-color:rgba(132,132,132,.75);background-color:#333;background-color:rgba(0,0,0,.25)}.theme-cardtable .Input--fluid{display:block;width:auto}.theme-cardtable .Input__baseline{display:inline-block;color:rgba(0,0,0,0)}.theme-cardtable .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit}.theme-cardtable .Input__input::placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-cardtable .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-cardtable .Input__textarea{border:0;width:calc(100% + 4px);font-size:1em;line-height:1.4166666667em;margin-left:-.3333333333em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit;resize:both;overflow:auto;white-space:pre-wrap}.theme-cardtable .Input__textarea::placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-cardtable .Input__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-cardtable .Input--monospace .Input__input{font-family:Consolas,monospace}.theme-cardtable .NumberInput{position:relative;display:inline-block;border:.0833333333em solid #fff;border:.0833333333em solid rgba(255,255,255,.75);border-radius:0;color:#fff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.theme-cardtable .NumberInput--fluid{display:block}.theme-cardtable .NumberInput__content{margin-left:.5em}.theme-cardtable .NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.theme-cardtable .NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #fff;background-color:#fff}.theme-cardtable .NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:#0a0a0a;color:#fff;text-align:right}.theme-cardtable .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:0;background-color:rgba(0,0,0,.5);transition:border-color .5s}.theme-cardtable .ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.theme-cardtable .ProgressBar__fill--animated{transition:background-color .5s,width .5s}.theme-cardtable .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-cardtable .ProgressBar--color--default{border:.0833333333em solid #000}.theme-cardtable .ProgressBar--color--default .ProgressBar__fill{background-color:#000}.theme-cardtable .ProgressBar--color--disabled{border:1px solid #363636}.theme-cardtable .ProgressBar--color--disabled .ProgressBar__fill{background-color:#363636}.theme-cardtable .Section{position:relative;margin-bottom:.5em;background-color:#0b4b26;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-cardtable .Section:last-child{margin-bottom:0}.theme-cardtable .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #000}.theme-cardtable .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-cardtable .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-cardtable .Section__rest{position:relative}.theme-cardtable .Section__content{padding:.66em .5em}.theme-cardtable .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-cardtable .Section--fill{display:flex;flex-direction:column;height:100%}.theme-cardtable .Section--fill>.Section__rest{flex-grow:1}.theme-cardtable .Section--fill>.Section__rest>.Section__content{height:100%}.theme-cardtable .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-cardtable .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-cardtable .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-cardtable .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-cardtable .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-cardtable .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-cardtable .Section .Section:first-child{margin-top:-.5em}.theme-cardtable .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-cardtable .Section .Section .Section .Section__titleText{font-size:1em}.theme-cardtable html,.theme-cardtable body{scrollbar-color:#20d36c #0d542b}.theme-cardtable .Layout,.theme-cardtable .Layout *{scrollbar-base-color:#0d542b;scrollbar-face-color:#16914a;scrollbar-3dlight-color:#117039;scrollbar-highlight-color:#117039;scrollbar-track-color:#0d542b;scrollbar-arrow-color:#5ae695;scrollbar-shadow-color:#16914a}.theme-cardtable .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-cardtable .Layout__content--flexRow{display:flex;flex-flow:row}.theme-cardtable .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-cardtable .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-cardtable .Layout__content--noMargin{margin:0}.theme-cardtable .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#117039;background-image:linear-gradient(to bottom,#117039,#117039)}.theme-cardtable .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-cardtable .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-cardtable .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-cardtable .Window__contentPadding:after{height:0}.theme-cardtable .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-cardtable .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(39,148,85,.25);pointer-events:none}.theme-cardtable .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-cardtable .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-cardtable .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-cardtable .TitleBar{background-color:#381608;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-cardtable .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#381608;transition:color .25s,background-color .25s}.theme-cardtable .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-cardtable .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-cardtable .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-cardtable .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-cardtable .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-cardtable .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-cardtable .Button{border:.1666666667em solid #fff}.theme-changeling .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:2px;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-changeling .Button:last-child{margin-right:0;margin-bottom:0}.theme-changeling .Button .fa,.theme-changeling .Button .fas,.theme-changeling .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-changeling .Button--hasContent .fa,.theme-changeling .Button--hasContent .fas,.theme-changeling .Button--hasContent .far{margin-right:.25em}.theme-changeling .Button--hasContent.Button--iconRight .fa,.theme-changeling .Button--hasContent.Button--iconRight .fas,.theme-changeling .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-changeling .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-changeling .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-changeling .Button--circular{border-radius:50%}.theme-changeling .Button--compact{padding:0 .25em;line-height:1.333em}.theme-changeling .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-changeling .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-changeling .Button--color--transparent{background-color:rgba(46,38,51,0);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-changeling .Button--color--transparent:hover{background-color:rgba(67,57,73,.81);color:#fff}.theme-changeling .Button--color--default{background-color:#563d6b;color:#fff;transition:color .2s,background-color .2s}.theme-changeling .Button--color--default:hover{background-color:#715589;color:#fff}.theme-changeling .Button--color--default--translucent{background-color:rgba(55,47,60,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-changeling .Button--color--default--translucent:hover{background-color:rgba(78,69,84,.5);color:#fff}.theme-changeling .Button--color--caution{background-color:#d9b804;color:#000;transition:color .2s,background-color .2s}.theme-changeling .Button--color--caution:hover{background-color:#f5d523;color:#000}.theme-changeling .Button--color--caution--translucent{background-color:rgba(217,184,4,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-changeling .Button--color--caution--translucent:hover{background-color:rgba(245,213,35,.5);color:#fff}.theme-changeling .Button--color--danger{background-color:#bd2020;color:#fff;transition:color .2s,background-color .2s}.theme-changeling .Button--color--danger:hover{background-color:#d93f3f;color:#fff}.theme-changeling .Button--color--danger--translucent{background-color:rgba(189,32,32,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-changeling .Button--color--danger--translucent:hover{background-color:rgba(217,63,63,.5);color:#fff}.theme-changeling .Button--disabled{background-color:#999!important;color:rgba(255,255,255,.75)!important}.theme-changeling .Button--disabled--translucent{background-color:rgba(77,23,23,.5)!important;color:rgba(255,255,255,.5)!important}.theme-changeling .Button--selected,.theme-changeling .Button--selected--translucent{background-color:#188552;color:#fff;transition:color .2s,background-color .2s}.theme-changeling .Button--selected:hover,.theme-changeling .Button--selected--translucent:hover{background-color:#2ba66d;color:#fff}.theme-changeling .Divider--horizontal{margin:.5em 0}.theme-changeling .Divider--horizontal:not(.Divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.theme-changeling .Divider--vertical{height:100%;margin:0 .5em}.theme-changeling .Divider--vertical:not(.Divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.theme-changeling .color__default{background-color:rgba(103,88,114,.2);color:#fff;border:solid rgba(160,147,170,.2);border-width:1px;transition:background-color .2s,border-color .2s}.theme-changeling .color__default:hover{background-color:rgba(160,147,170,.2)}.theme-changeling .disabled{background-color:rgba(99,29,29,.25)!important;border-color:rgba(99,29,29,.25)!important}.theme-changeling .selected{background-color:rgba(24,133,82,.2);color:#fff;border:solid rgba(24,133,82,.25);border-width:1px;transition:background-color .2s,border-color .2s}.theme-changeling .selected:hover{background-color:rgba(62,199,135,.2)}.theme-changeling .contentColor__default{background-color:#63556e;color:#fff;border:solid #73647f;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.theme-changeling .contentDisabled{background-color:#631d1d!important;border-top:1px solid #803131!important}.theme-changeling .contentSelected{background-color:#188552;color:#fff;border:solid #2ba66d;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.theme-changeling .buttonsContainerColor__default{background-color:rgba(103,88,114,.2);color:#fff;border:solid rgba(160,147,170,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.theme-changeling .ImageButton{display:inline-table;position:relative;text-align:center;margin:.25em;user-select:none;-ms-user-select:none}.theme-changeling .ImageButton .noAction{pointer-events:none}.theme-changeling .ImageButton .container{display:flex;flex-direction:column;border-radius:.33em}.theme-changeling .ImageButton .image{position:relative;align-self:center;pointer-events:none;overflow:hidden;line-height:0;padding:.25em;border-radius:.33em}.theme-changeling .ImageButton .buttonsContainer{display:flex;position:absolute;overflow:hidden;left:1px;bottom:1.8em;max-width:100%;z-index:1}.theme-changeling .ImageButton .buttonsContainer.buttonsAltContainer{overflow:visible;flex-direction:column;pointer-events:none;top:1px;bottom:inherit!important}.theme-changeling .ImageButton .buttonsContainer.buttonsEmpty{bottom:1px}.theme-changeling .ImageButton .buttonsContainer>*{margin:0!important;padding:0 .2em!important;border-radius:0!important}.theme-changeling .ImageButton .content{-ms-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:.25em .5em;margin:-1px;border-radius:0 0 .33em .33em;z-index:2}.theme-changeling .fluid{display:flex;flex-direction:row;position:relative;text-align:center;margin:0 0 .5em;user-select:none;-ms-user-select:none}.theme-changeling .fluid:last-of-type{margin-bottom:0}.theme-changeling .fluid .info{display:flex;flex-direction:column;justify-content:center;flex:1}.theme-changeling .fluid .title{font-weight:700;padding:.5em}.theme-changeling .fluid .title.divider{margin:0 .5em;border-bottom:.1666666667em solid rgba(255,255,255,.1)}.theme-changeling .fluid .contentFluid{padding:.5em;color:#fff}.theme-changeling .fluid .container{flex-direction:row;flex:1}.theme-changeling .fluid .container.hasButtons{border-radius:.33em 0 0 .33em;border-width:1px 0 1px 1px}.theme-changeling .fluid .image{padding:0}.theme-changeling .fluid .buttonsContainer{position:relative;left:inherit;bottom:inherit;border-radius:0 .33em .33em 0}.theme-changeling .fluid .buttonsContainer.buttonsEmpty{bottom:inherit}.theme-changeling .fluid .buttonsContainer.buttonsAltContainer{overflow:hidden;pointer-events:auto;top:inherit}.theme-changeling .fluid .buttonsContainer.buttonsAltContainer>*{border-top:1px solid rgba(255,255,255,.075)}.theme-changeling .fluid .buttonsContainer.buttonsAltContainer>*:first-child{border-top:0}.theme-changeling .fluid .buttonsContainer>*{display:inline-flex;flex-direction:column;justify-content:center;text-align:center;white-space:pre-wrap;line-height:1.1666666667em;height:100%;border-left:1px solid rgba(255,255,255,.075)}.theme-changeling .Section{position:relative;margin-bottom:.5em;background-color:#1f1922;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-changeling .Section:last-child{margin-bottom:0}.theme-changeling .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #563d6b}.theme-changeling .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-changeling .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-changeling .Section__rest{position:relative}.theme-changeling .Section__content{padding:.66em .5em}.theme-changeling .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-changeling .Section--fill{display:flex;flex-direction:column;height:100%}.theme-changeling .Section--fill>.Section__rest{flex-grow:1}.theme-changeling .Section--fill>.Section__rest>.Section__content{height:100%}.theme-changeling .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-changeling .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-changeling .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-changeling .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-changeling .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-changeling .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-changeling .Section .Section:first-child{margin-top:-.5em}.theme-changeling .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-changeling .Section .Section .Section .Section__titleText{font-size:1em}.theme-changeling .Tabs{display:flex;align-items:stretch;overflow:hidden;background-color:rgba(0,0,0,.33)}.theme-changeling .Tabs--fill{height:100%}.theme-changeling .Section .Tabs{background-color:rgba(0,0,0,0)}.theme-changeling .Section:not(.Section--fitted) .Tabs{margin:0 -.5em .5em}.theme-changeling .Section:not(.Section--fitted) .Tabs:first-child{margin-top:-.5em}.theme-changeling .Tabs--vertical{flex-direction:column;padding:.25em .25em .25em 0}.theme-changeling .Tabs--horizontal{margin-bottom:.5em;padding:.25em .25em 0}.theme-changeling .Tabs--horizontal:last-child{margin-bottom:0}.theme-changeling .Tabs__Tab{flex-grow:0}.theme-changeling .Tabs--fluid .Tabs__Tab{flex-grow:1}.theme-changeling .Tab{display:flex;align-items:center;justify-content:space-between;background-color:rgba(0,0,0,0);color:rgba(255,255,255,.5);min-height:2.25em;min-width:4em;transition:background-color 50ms ease-out}.theme-changeling .Tab:not(.Tab--selected):hover{background-color:rgba(255,255,255,.075);transition:background-color 0}.theme-changeling .Tab--selected{background-color:#563d6b;color:#e3daea}.theme-changeling .Tab__text{flex-grow:1;margin:0 .5em}.theme-changeling .Tab__left{min-width:1.5em;text-align:center;margin-left:.25em}.theme-changeling .Tab__right{min-width:1.5em;text-align:center;margin-right:.25em}.theme-changeling .Tabs--horizontal .Tab{border-top:.1666666667em solid rgba(0,0,0,0);border-bottom:.1666666667em solid rgba(0,0,0,0);border-top-left-radius:.25em;border-top-right-radius:.25em}.theme-changeling .Tabs--horizontal .Tab--selected{border-bottom:.1666666667em solid #d9cee3}.theme-changeling .Tabs--vertical .Tab{min-height:2em;border-left:.1666666667em solid rgba(0,0,0,0);border-right:.1666666667em solid rgba(0,0,0,0);border-top-right-radius:.25em;border-bottom-right-radius:.25em}.theme-changeling .Tabs--vertical .Tab--selected{border-left:.1666666667em solid #d9cee3}.theme-changeling html,.theme-changeling body{scrollbar-color:#44384b #231d26}.theme-changeling .Layout,.theme-changeling .Layout *{scrollbar-base-color:#231d26;scrollbar-face-color:#44384b;scrollbar-3dlight-color:#2e2633;scrollbar-highlight-color:#2e2633;scrollbar-track-color:#231d26;scrollbar-arrow-color:#9986a5;scrollbar-shadow-color:#44384b}.theme-changeling .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-changeling .Layout__content--flexRow{display:flex;flex-flow:row}.theme-changeling .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-changeling .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-changeling .Layout__content--noMargin{margin:0}.theme-changeling .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#2e2633;background-image:linear-gradient(to bottom,#3e3345,#1e1921)}.theme-changeling .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-changeling .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-changeling .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-changeling .Window__contentPadding:after{height:0}.theme-changeling .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-changeling .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(72,63,78,.25);pointer-events:none}.theme-changeling .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-changeling .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-changeling .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-changeling .TitleBar{background-color:#352d3b;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-changeling .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#352d3b;transition:color .25s,background-color .25s}.theme-changeling .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-changeling .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-changeling .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-changeling .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-changeling .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-changeling .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-changeling .Layout__content{background-image:none}.theme-hackerman .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-hackerman .Button:last-child{margin-right:0;margin-bottom:0}.theme-hackerman .Button .fa,.theme-hackerman .Button .fas,.theme-hackerman .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-hackerman .Button--hasContent .fa,.theme-hackerman .Button--hasContent .fas,.theme-hackerman .Button--hasContent .far{margin-right:.25em}.theme-hackerman .Button--hasContent.Button--iconRight .fa,.theme-hackerman .Button--hasContent.Button--iconRight .fas,.theme-hackerman .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-hackerman .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-hackerman .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-hackerman .Button--circular{border-radius:50%}.theme-hackerman .Button--compact{padding:0 .25em;line-height:1.333em}.theme-hackerman .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-hackerman .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-hackerman .Button--color--transparent{background-color:rgba(18,27,18,0);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-hackerman .Button--color--transparent:hover{background-color:rgba(34,44,34,.81);color:#fff}.theme-hackerman .Button--color--default{background-color:#0f0;color:#000;transition:color .2s,background-color .2s}.theme-hackerman .Button--color--default:hover{background-color:#40ff40;color:#000}.theme-hackerman .Button--color--default--translucent{background-color:rgba(26,35,26,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-hackerman .Button--color--default--translucent:hover{background-color:rgba(46,56,46,.5);color:#fff}.theme-hackerman .Button--color--caution{background-color:#d9b804;color:#000;transition:color .2s,background-color .2s}.theme-hackerman .Button--color--caution:hover{background-color:#f5d523;color:#000}.theme-hackerman .Button--color--caution--translucent{background-color:rgba(217,184,4,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-hackerman .Button--color--caution--translucent:hover{background-color:rgba(245,213,35,.5);color:#fff}.theme-hackerman .Button--color--danger{background-color:#bd2020;color:#fff;transition:color .2s,background-color .2s}.theme-hackerman .Button--color--danger:hover{background-color:#d93f3f;color:#fff}.theme-hackerman .Button--color--danger--translucent{background-color:rgba(189,32,32,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-hackerman .Button--color--danger--translucent:hover{background-color:rgba(217,63,63,.5);color:#fff}.theme-hackerman .Button--disabled{background-color:#363636!important;color:rgba(255,255,255,.75)!important}.theme-hackerman .Button--disabled--translucent{background-color:rgba(77,23,23,.5)!important;color:rgba(255,255,255,.5)!important}.theme-hackerman .Button--selected,.theme-hackerman .Button--selected--translucent{background-color:#0f0;color:#000;transition:color .2s,background-color .2s}.theme-hackerman .Button--selected:hover,.theme-hackerman .Button--selected--translucent:hover{background-color:#40ff40;color:#000}.theme-hackerman .Divider--horizontal{margin:.5em 0}.theme-hackerman .Divider--horizontal:not(.Divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.theme-hackerman .Divider--vertical{height:100%;margin:0 .5em}.theme-hackerman .Divider--vertical:not(.Divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.theme-hackerman .color__default{background-color:rgba(54,236,54,.2);color:#000;border:solid rgba(178,248,178,.2);border-width:1px;transition:background-color .2s,border-color .2s}.theme-hackerman .color__default:hover{background-color:rgba(178,248,178,.2)}.theme-hackerman .disabled{background-color:rgba(54,54,54,.25)!important;border-color:rgba(54,54,54,.25)!important}.theme-hackerman .selected{background-color:rgba(128,255,128,.2);color:#000;border:solid rgba(128,255,128,.25);border-width:1px;transition:background-color .2s,border-color .2s}.theme-hackerman .selected:hover{background-color:rgba(239,255,239,.2)}.theme-hackerman .contentColor__default{background-color:#33e633;color:#000;border:solid #40ff40;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.theme-hackerman .contentDisabled{background-color:#363636!important;border-top:1px solid #4d4d4d!important}.theme-hackerman .contentSelected{background-color:#80ff80;color:#000;border:solid #cfffcf;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.theme-hackerman .buttonsContainerColor__default{background-color:rgba(54,236,54,.2);color:#000;border:solid rgba(178,248,178,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.theme-hackerman .ImageButton{display:inline-table;position:relative;text-align:center;margin:.25em;user-select:none;-ms-user-select:none}.theme-hackerman .ImageButton .noAction{pointer-events:none}.theme-hackerman .ImageButton .container{display:flex;flex-direction:column;border-radius:.33em}.theme-hackerman .ImageButton .image{position:relative;align-self:center;pointer-events:none;overflow:hidden;line-height:0;padding:.25em;border-radius:.33em}.theme-hackerman .ImageButton .buttonsContainer{display:flex;position:absolute;overflow:hidden;left:1px;bottom:1.8em;max-width:100%;z-index:1}.theme-hackerman .ImageButton .buttonsContainer.buttonsAltContainer{overflow:visible;flex-direction:column;pointer-events:none;top:1px;bottom:inherit!important}.theme-hackerman .ImageButton .buttonsContainer.buttonsEmpty{bottom:1px}.theme-hackerman .ImageButton .buttonsContainer>*{margin:0!important;padding:0 .2em!important;border-radius:0!important}.theme-hackerman .ImageButton .content{-ms-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:.25em .5em;margin:-1px;border-radius:0 0 .33em .33em;z-index:2}.theme-hackerman .fluid{display:flex;flex-direction:row;position:relative;text-align:center;margin:0 0 .5em;user-select:none;-ms-user-select:none}.theme-hackerman .fluid:last-of-type{margin-bottom:0}.theme-hackerman .fluid .info{display:flex;flex-direction:column;justify-content:center;flex:1}.theme-hackerman .fluid .title{font-weight:700;padding:.5em}.theme-hackerman .fluid .title.divider{margin:0 .5em;border-bottom:.1666666667em solid rgba(255,255,255,.1)}.theme-hackerman .fluid .contentFluid{padding:.5em;color:#fff}.theme-hackerman .fluid .container{flex-direction:row;flex:1}.theme-hackerman .fluid .container.hasButtons{border-radius:.33em 0 0 .33em;border-width:1px 0 1px 1px}.theme-hackerman .fluid .image{padding:0}.theme-hackerman .fluid .buttonsContainer{position:relative;left:inherit;bottom:inherit;border-radius:0 .33em .33em 0}.theme-hackerman .fluid .buttonsContainer.buttonsEmpty{bottom:inherit}.theme-hackerman .fluid .buttonsContainer.buttonsAltContainer{overflow:hidden;pointer-events:auto;top:inherit}.theme-hackerman .fluid .buttonsContainer.buttonsAltContainer>*{border-top:1px solid rgba(255,255,255,.075)}.theme-hackerman .fluid .buttonsContainer.buttonsAltContainer>*:first-child{border-top:0}.theme-hackerman .fluid .buttonsContainer>*{display:inline-flex;flex-direction:column;justify-content:center;text-align:center;white-space:pre-wrap;line-height:1.1666666667em;height:100%;border-left:1px solid rgba(255,255,255,.075)}.theme-hackerman .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid lime;border:.0833333333em solid rgba(0,255,0,.75);border-radius:.16em;background-color:#0a0a0a;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75);padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible;white-space:nowrap}.theme-hackerman .Input--disabled{color:#777;border-color:#404040;border-color:rgba(64,64,64,.75);background-color:#333;background-color:rgba(0,0,0,.25)}.theme-hackerman .Input--fluid{display:block;width:auto}.theme-hackerman .Input__baseline{display:inline-block;color:rgba(0,0,0,0)}.theme-hackerman .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit}.theme-hackerman .Input__input::placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-hackerman .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-hackerman .Input__textarea{border:0;width:calc(100% + 4px);font-size:1em;line-height:1.4166666667em;margin-left:-.3333333333em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit;resize:both;overflow:auto;white-space:pre-wrap}.theme-hackerman .Input__textarea::placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-hackerman .Input__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-hackerman .Input--monospace .Input__input{font-family:Consolas,monospace}.theme-hackerman .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:.16em;background-color:rgba(0,0,0,0);transition:border-color .5s}.theme-hackerman .ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.theme-hackerman .ProgressBar__fill--animated{transition:background-color .5s,width .5s}.theme-hackerman .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-hackerman .ProgressBar--color--default{border:.0833333333em solid #00d900}.theme-hackerman .ProgressBar--color--default .ProgressBar__fill{background-color:#00d900}.theme-hackerman .ProgressBar--color--disabled{border:1px solid #363636}.theme-hackerman .ProgressBar--color--disabled .ProgressBar__fill{background-color:#363636}.theme-hackerman .Modal{background-color:#121b12;max-width:calc(100% - 1rem);padding:1rem;scrollbar-base-color:#0e140e;scrollbar-face-color:#253725;scrollbar-3dlight-color:#121b12;scrollbar-highlight-color:#121b12;scrollbar-track-color:#0e140e;scrollbar-arrow-color:#74a274;scrollbar-shadow-color:#253725}.theme-hackerman .Section{position:relative;margin-bottom:.5em;background-color:#0c120c;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-hackerman .Section:last-child{margin-bottom:0}.theme-hackerman .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid lime}.theme-hackerman .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-hackerman .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-hackerman .Section__rest{position:relative}.theme-hackerman .Section__content{padding:.66em .5em}.theme-hackerman .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-hackerman .Section--fill{display:flex;flex-direction:column;height:100%}.theme-hackerman .Section--fill>.Section__rest{flex-grow:1}.theme-hackerman .Section--fill>.Section__rest>.Section__content{height:100%}.theme-hackerman .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-hackerman .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-hackerman .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-hackerman .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-hackerman .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-hackerman .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-hackerman .Section .Section:first-child{margin-top:-.5em}.theme-hackerman .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-hackerman .Section .Section .Section .Section__titleText{font-size:1em}.theme-hackerman html,.theme-hackerman body{scrollbar-color:#253725 #0e140e}.theme-hackerman .Layout,.theme-hackerman .Layout *{scrollbar-base-color:#0e140e;scrollbar-face-color:#253725;scrollbar-3dlight-color:#121b12;scrollbar-highlight-color:#121b12;scrollbar-track-color:#0e140e;scrollbar-arrow-color:#74a274;scrollbar-shadow-color:#253725}.theme-hackerman .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-hackerman .Layout__content--flexRow{display:flex;flex-flow:row}.theme-hackerman .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-hackerman .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-hackerman .Layout__content--noMargin{margin:0}.theme-hackerman .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#121b12;background-image:linear-gradient(to bottom,#121b12,#121b12)}.theme-hackerman .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-hackerman .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-hackerman .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-hackerman .Window__contentPadding:after{height:0}.theme-hackerman .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-hackerman .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(40,50,40,.25);pointer-events:none}.theme-hackerman .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-hackerman .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-hackerman .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-hackerman .TitleBar{background-color:#223d22;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-hackerman .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#223d22;transition:color .25s,background-color .25s}.theme-hackerman .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-hackerman .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-hackerman .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-hackerman .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-hackerman .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-hackerman .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-hackerman .Layout__content{background-image:none}.theme-hackerman .Button{font-family:monospace;border-width:.1666666667em;border-style:outset;border-color:#0a0;outline:.0833333333em solid #007a00}.theme-hackerman .candystripe:nth-child(odd){background-color:rgba(0,100,0,.5)}.theme-hydroponics .color-label{color:#8bb08b!important}.theme-hydroponics .color-bg-good{background-color:#4d9121!important}.theme-hydroponics .color-border-label{border-color:#8bb08b!important}.theme-hydroponics .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-hydroponics .Button:last-child{margin-right:0;margin-bottom:0}.theme-hydroponics .Button .fa,.theme-hydroponics .Button .fas,.theme-hydroponics .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-hydroponics .Button--hasContent .fa,.theme-hydroponics .Button--hasContent .fas,.theme-hydroponics .Button--hasContent .far{margin-right:.25em}.theme-hydroponics .Button--hasContent.Button--iconRight .fa,.theme-hydroponics .Button--hasContent.Button--iconRight .fas,.theme-hydroponics .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-hydroponics .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-hydroponics .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-hydroponics .Button--circular{border-radius:50%}.theme-hydroponics .Button--compact{padding:0 .25em;line-height:1.333em}.theme-hydroponics .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-hydroponics .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-hydroponics .Button--color--good{background-color:#4d9121;color:#fff;transition:color .2s,background-color .2s}.theme-hydroponics .Button--color--good:hover{background-color:#67b335;color:#fff}.theme-hydroponics .Button--color--good--translucent{background-color:rgba(77,145,33,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-hydroponics .Button--color--good--translucent:hover{background-color:rgba(103,179,53,.5);color:#fff}.theme-hydroponics .Button--color--transparent{background-color:rgba(37,37,37,0);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-hydroponics .Button--color--transparent:hover{background-color:rgba(56,56,56,.81);color:#fff}.theme-hydroponics .Button--color--default{background-color:#49a149;color:#fff;transition:color .2s,background-color .2s}.theme-hydroponics .Button--color--default:hover{background-color:#6dbb6d;color:#fff}.theme-hydroponics .Button--color--default--translucent{background-color:rgba(46,46,46,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-hydroponics .Button--color--default--translucent:hover{background-color:rgba(68,68,68,.5);color:#fff}.theme-hydroponics .Button--color--caution{background-color:#d9b804;color:#000;transition:color .2s,background-color .2s}.theme-hydroponics .Button--color--caution:hover{background-color:#f5d523;color:#000}.theme-hydroponics .Button--color--caution--translucent{background-color:rgba(217,184,4,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-hydroponics .Button--color--caution--translucent:hover{background-color:rgba(245,213,35,.5);color:#fff}.theme-hydroponics .Button--color--danger{background-color:#bd2020;color:#fff;transition:color .2s,background-color .2s}.theme-hydroponics .Button--color--danger:hover{background-color:#d93f3f;color:#fff}.theme-hydroponics .Button--color--danger--translucent{background-color:rgba(189,32,32,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-hydroponics .Button--color--danger--translucent:hover{background-color:rgba(217,63,63,.5);color:#fff}.theme-hydroponics .Button--disabled{background-color:#999!important;color:rgba(255,255,255,.75)!important}.theme-hydroponics .Button--disabled--translucent{background-color:rgba(77,23,23,.5)!important;color:rgba(255,255,255,.5)!important}.theme-hydroponics .Button--selected,.theme-hydroponics .Button--selected--translucent{background-color:#1b9638;color:#fff;transition:color .2s,background-color .2s}.theme-hydroponics .Button--selected:hover,.theme-hydroponics .Button--selected--translucent:hover{background-color:#2fb94f;color:#fff}.theme-hydroponics .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #8f8;border:.0833333333em solid rgba(136,255,136,.75);border-radius:.16em;background-color:#0a0a0a;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75);padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible;white-space:nowrap}.theme-hydroponics .Input--disabled{color:#777;border-color:#848484;border-color:rgba(132,132,132,.75);background-color:#333;background-color:rgba(0,0,0,.25)}.theme-hydroponics .Input--fluid{display:block;width:auto}.theme-hydroponics .Input__baseline{display:inline-block;color:rgba(0,0,0,0)}.theme-hydroponics .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit}.theme-hydroponics .Input__input::placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-hydroponics .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-hydroponics .Input__textarea{border:0;width:calc(100% + 4px);font-size:1em;line-height:1.4166666667em;margin-left:-.3333333333em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit;resize:both;overflow:auto;white-space:pre-wrap}.theme-hydroponics .Input__textarea::placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-hydroponics .Input__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-hydroponics .Input--monospace .Input__input{font-family:Consolas,monospace}.theme-hydroponics .NoticeBox{padding:.33em .5em;margin-bottom:.5em;box-shadow:none;font-weight:700;font-style:italic;color:#000;background-color:#bb9b68;background-image:repeating-linear-gradient(-45deg,transparent,transparent .8333333333em,rgba(0,0,0,.1) .8333333333em,rgba(0,0,0,.1) 1.6666666667em)}.theme-hydroponics .NoticeBox--color--good{color:#fff;background-color:#2e4b1a}.theme-hydroponics .NoticeBox--type--info{color:#000;background-color:#238223}.theme-hydroponics .NoticeBox--type--success{color:#fff;background-color:#1e662f}.theme-hydroponics .NoticeBox--type--warning{color:#fff;background-color:#a95219}.theme-hydroponics .NoticeBox--type--danger{color:#fff;background-color:#8f2828}.theme-hydroponics .Section{position:relative;margin-bottom:.5em;background-color:#191919;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-hydroponics .Section:last-child{margin-bottom:0}.theme-hydroponics .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #49a149}.theme-hydroponics .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-hydroponics .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-hydroponics .Section__rest{position:relative}.theme-hydroponics .Section__content{padding:.66em .5em}.theme-hydroponics .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-hydroponics .Section--fill{display:flex;flex-direction:column;height:100%}.theme-hydroponics .Section--fill>.Section__rest{flex-grow:1}.theme-hydroponics .Section--fill>.Section__rest>.Section__content{height:100%}.theme-hydroponics .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-hydroponics .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-hydroponics .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-hydroponics .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-hydroponics .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-hydroponics .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-hydroponics .Section .Section:first-child{margin-top:-.5em}.theme-hydroponics .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-hydroponics .Section .Section .Section .Section__titleText{font-size:1em}.theme-hydroponics .Newscaster__menu{width:40px;height:100%;margin-right:.5rem;flex-basis:content}.theme-hydroponics .Newscaster__menu .Section__content{padding-left:0}.theme-hydroponics .Newscaster__menuButton{color:#767676;cursor:pointer;position:relative;margin-left:6px;margin-right:1rem;white-space:nowrap;transition:color .1s}.theme-hydroponics .Newscaster__menuButton--title{width:80%;display:none;overflow:hidden;text-overflow:ellipsis}.theme-hydroponics .Newscaster__menuButton--unread{background-color:#e45e5e;color:#fff;font-size:10px;text-align:center;border-radius:32px;display:inline-block;width:12px;position:absolute;left:16px;margin-top:14px}.theme-hydroponics .Newscaster__menuButton--selected{color:#fff}.theme-hydroponics .Newscaster__menuButton--selected:after{content:"";background-color:#49a149;width:2px;height:24px;position:absolute;left:-6px}.theme-hydroponics .Newscaster__menuButton--security{color:#49a149}.theme-hydroponics .Newscaster__menuButton i{width:30px;text-align:center;vertical-align:middle;margin-left:-1px;margin-right:.5rem;margin-top:1px}.theme-hydroponics .Newscaster__menuButton:hover{color:#fff}.theme-hydroponics .Newscaster__menuButton:hover:before{background-color:#fff}.theme-hydroponics .Newscaster__menuButton:not(:last-of-type){margin-bottom:.5rem}.theme-hydroponics .Newscaster__menu--open{width:175px}.theme-hydroponics .Newscaster__menu--open .Newscaster__menuButton--title{display:inline-block}.theme-hydroponics .Newscaster__jobCategory--security .Section__title{color:#a14c49;border-bottom:2px solid #a14c49!important}.theme-hydroponics .Newscaster__jobCategory--engineering .Section__title{color:#a17849;border-bottom:2px solid #a17849!important}.theme-hydroponics .Newscaster__jobCategory--medical .Section__title{color:#499ea1;border-bottom:2px solid #499ea1!important}.theme-hydroponics .Newscaster__jobCategory--science .Section__title{color:#a14972;border-bottom:2px solid #a14972!important}.theme-hydroponics .Newscaster__jobCategory--service .Section__title{color:#a1499e;border-bottom:2px solid #a1499e!important}.theme-hydroponics .Newscaster__jobCategory--supply .Section__title{color:#9ea149;border-bottom:2px solid #9ea149!important}.theme-hydroponics .Newscaster__jobCategory:last-child{margin-bottom:.5rem}.theme-hydroponics .Newscaster__jobOpening--command{font-weight:700}.theme-hydroponics .Newscaster__jobOpening:not(:last-child){margin-bottom:.5rem}.theme-hydroponics .Newscaster__emptyNotice{color:#7ea77e;text-align:center;position:absolute;top:50%;left:50%;transform:translateY(-50%) translate(-50%)}.theme-hydroponics .Newscaster__emptyNotice i{margin-bottom:.25rem}.theme-hydroponics .Newscaster__photo{cursor:pointer;width:100px;border:1px solid #000;transition:border-color .3s;-ms-interpolation-mode:nearest-neighbor;image-rendering:pixelated}.theme-hydroponics .Newscaster__photo:hover{border-color:gray}.theme-hydroponics .Newscaster__photoZoom{text-align:center}.theme-hydroponics .Newscaster__photoZoom>img{transform:scale(2);-ms-interpolation-mode:nearest-neighbor;image-rendering:pixelated}.theme-hydroponics .Newscaster__photoZoom>.Button{position:absolute;width:64px;left:50%;margin-left:-32px;bottom:1rem}.theme-hydroponics .Newscaster__story--wanted{background-color:rgba(219,40,40,.1)}.theme-hydroponics .Newscaster__story--wanted .Section__title{color:#db2828;border-bottom:2px solid #a14c49!important}.theme-hydroponics .Newscaster__story:last-child{margin-bottom:.5rem}.theme-malfunction .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-malfunction .Button:last-child{margin-right:0;margin-bottom:0}.theme-malfunction .Button .fa,.theme-malfunction .Button .fas,.theme-malfunction .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-malfunction .Button--hasContent .fa,.theme-malfunction .Button--hasContent .fas,.theme-malfunction .Button--hasContent .far{margin-right:.25em}.theme-malfunction .Button--hasContent.Button--iconRight .fa,.theme-malfunction .Button--hasContent.Button--iconRight .fas,.theme-malfunction .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-malfunction .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-malfunction .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-malfunction .Button--circular{border-radius:50%}.theme-malfunction .Button--compact{padding:0 .25em;line-height:1.333em}.theme-malfunction .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-malfunction .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-malfunction .Button--color--transparent{background-color:rgba(27,52,67,0);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-malfunction .Button--color--transparent:hover{background-color:rgba(44,74,92,.81);color:#fff}.theme-malfunction .Button--color--default{background-color:#910101;color:#fff;transition:color .2s,background-color .2s}.theme-malfunction .Button--color--default:hover{background-color:#b31111;color:#fff}.theme-malfunction .Button--color--default--translucent{background-color:rgba(35,61,77,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-malfunction .Button--color--default--translucent:hover{background-color:rgba(56,85,103,.5);color:#fff}.theme-malfunction .Button--color--caution{background-color:#be6209;color:#fff;transition:color .2s,background-color .2s}.theme-malfunction .Button--color--caution:hover{background-color:#e67f1a;color:#fff}.theme-malfunction .Button--color--caution--translucent{background-color:rgba(190,98,9,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-malfunction .Button--color--caution--translucent:hover{background-color:rgba(230,127,26,.5);color:#fff}.theme-malfunction .Button--color--danger{background-color:#9a9d00;color:#fff;transition:color .2s,background-color .2s}.theme-malfunction .Button--color--danger:hover{background-color:#bec110;color:#fff}.theme-malfunction .Button--color--danger--translucent{background-color:rgba(154,157,0,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-malfunction .Button--color--danger--translucent:hover{background-color:rgba(190,193,16,.5);color:#fff}.theme-malfunction .Button--disabled{background-color:#363636!important;color:rgba(255,255,255,.75)!important}.theme-malfunction .Button--disabled--translucent{background-color:rgba(77,23,23,.5)!important;color:rgba(255,255,255,.5)!important}.theme-malfunction .Button--selected,.theme-malfunction .Button--selected--translucent{background-color:#1e5881;color:#fff;transition:color .2s,background-color .2s}.theme-malfunction .Button--selected:hover,.theme-malfunction .Button--selected--translucent:hover{background-color:#3273a1;color:#fff}.theme-malfunction .Divider--horizontal{margin:.5em 0}.theme-malfunction .Divider--horizontal:not(.Divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.theme-malfunction .Divider--vertical{height:100%;margin:0 .5em}.theme-malfunction .Divider--vertical:not(.Divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.theme-malfunction .color__default{background-color:rgba(117,55,55,.2);color:#fff;border:solid rgba(177,102,102,.2);border-width:1px;transition:background-color .2s,border-color .2s}.theme-malfunction .color__default:hover{background-color:rgba(177,102,102,.2)}.theme-malfunction .disabled{background-color:rgba(54,54,54,.25)!important;border-color:rgba(54,54,54,.25)!important}.theme-malfunction .selected{background-color:rgba(30,88,129,.2);color:#fff;border:solid rgba(30,88,129,.25);border-width:1px;transition:background-color .2s,border-color .2s}.theme-malfunction .selected:hover{background-color:rgba(70,142,194,.2)}.theme-malfunction .contentColor__default{background-color:#713434;color:#fff;border:solid #814141;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.theme-malfunction .contentDisabled{background-color:#363636!important;border-top:1px solid #4d4d4d!important}.theme-malfunction .contentSelected{background-color:#1e5881;color:#fff;border:solid #3273a1;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.theme-malfunction .buttonsContainerColor__default{background-color:rgba(117,55,55,.2);color:#fff;border:solid rgba(177,102,102,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.theme-malfunction .ImageButton{display:inline-table;position:relative;text-align:center;margin:.25em;user-select:none;-ms-user-select:none}.theme-malfunction .ImageButton .noAction{pointer-events:none}.theme-malfunction .ImageButton .container{display:flex;flex-direction:column;border-radius:.33em}.theme-malfunction .ImageButton .image{position:relative;align-self:center;pointer-events:none;overflow:hidden;line-height:0;padding:.25em;border-radius:.33em}.theme-malfunction .ImageButton .buttonsContainer{display:flex;position:absolute;overflow:hidden;left:1px;bottom:1.8em;max-width:100%;z-index:1}.theme-malfunction .ImageButton .buttonsContainer.buttonsAltContainer{overflow:visible;flex-direction:column;pointer-events:none;top:1px;bottom:inherit!important}.theme-malfunction .ImageButton .buttonsContainer.buttonsEmpty{bottom:1px}.theme-malfunction .ImageButton .buttonsContainer>*{margin:0!important;padding:0 .2em!important;border-radius:0!important}.theme-malfunction .ImageButton .content{-ms-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:.25em .5em;margin:-1px;border-radius:0 0 .33em .33em;z-index:2}.theme-malfunction .fluid{display:flex;flex-direction:row;position:relative;text-align:center;margin:0 0 .5em;user-select:none;-ms-user-select:none}.theme-malfunction .fluid:last-of-type{margin-bottom:0}.theme-malfunction .fluid .info{display:flex;flex-direction:column;justify-content:center;flex:1}.theme-malfunction .fluid .title{font-weight:700;padding:.5em}.theme-malfunction .fluid .title.divider{margin:0 .5em;border-bottom:.1666666667em solid rgba(255,255,255,.1)}.theme-malfunction .fluid .contentFluid{padding:.5em;color:#fff}.theme-malfunction .fluid .container{flex-direction:row;flex:1}.theme-malfunction .fluid .container.hasButtons{border-radius:.33em 0 0 .33em;border-width:1px 0 1px 1px}.theme-malfunction .fluid .image{padding:0}.theme-malfunction .fluid .buttonsContainer{position:relative;left:inherit;bottom:inherit;border-radius:0 .33em .33em 0}.theme-malfunction .fluid .buttonsContainer.buttonsEmpty{bottom:inherit}.theme-malfunction .fluid .buttonsContainer.buttonsAltContainer{overflow:hidden;pointer-events:auto;top:inherit}.theme-malfunction .fluid .buttonsContainer.buttonsAltContainer>*{border-top:1px solid rgba(255,255,255,.075)}.theme-malfunction .fluid .buttonsContainer.buttonsAltContainer>*:first-child{border-top:0}.theme-malfunction .fluid .buttonsContainer>*{display:inline-flex;flex-direction:column;justify-content:center;text-align:center;white-space:pre-wrap;line-height:1.1666666667em;height:100%;border-left:1px solid rgba(255,255,255,.075)}.theme-malfunction .NoticeBox{padding:.33em .5em;margin-bottom:.5em;box-shadow:none;font-weight:700;font-style:italic;color:#fff;background-color:#1a3f57;background-image:repeating-linear-gradient(-45deg,transparent,transparent .8333333333em,rgba(0,0,0,.1) .8333333333em,rgba(0,0,0,.1) 1.6666666667em)}.theme-malfunction .NoticeBox--type--info{color:#fff;background-color:#235982}.theme-malfunction .NoticeBox--type--success{color:#fff;background-color:#1e662f}.theme-malfunction .NoticeBox--type--warning{color:#fff;background-color:#a95219}.theme-malfunction .NoticeBox--type--danger{color:#fff;background-color:#8f2828}.theme-malfunction .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #910101;border:.0833333333em solid rgba(145,1,1,.75);border-radius:.16em;background-color:#0a0a0a;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75);padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible;white-space:nowrap}.theme-malfunction .Input--disabled{color:#777;border-color:#090909;border-color:rgba(9,9,9,.75);background-color:#333;background-color:rgba(0,0,0,.25)}.theme-malfunction .Input--fluid{display:block;width:auto}.theme-malfunction .Input__baseline{display:inline-block;color:rgba(0,0,0,0)}.theme-malfunction .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit}.theme-malfunction .Input__input::placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-malfunction .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-malfunction .Input__textarea{border:0;width:calc(100% + 4px);font-size:1em;line-height:1.4166666667em;margin-left:-.3333333333em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit;resize:both;overflow:auto;white-space:pre-wrap}.theme-malfunction .Input__textarea::placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-malfunction .Input__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-malfunction .Input--monospace .Input__input{font-family:Consolas,monospace}.theme-malfunction .NumberInput{position:relative;display:inline-block;border:.0833333333em solid #910101;border:.0833333333em solid rgba(145,1,1,.75);border-radius:.16em;color:#910101;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.theme-malfunction .NumberInput--fluid{display:block}.theme-malfunction .NumberInput__content{margin-left:.5em}.theme-malfunction .NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.theme-malfunction .NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #910101;background-color:#910101}.theme-malfunction .NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:#0a0a0a;color:#fff;text-align:right}.theme-malfunction .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:.16em;background-color:rgba(0,0,0,.5);transition:border-color .5s}.theme-malfunction .ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.theme-malfunction .ProgressBar__fill--animated{transition:background-color .5s,width .5s}.theme-malfunction .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-malfunction .ProgressBar--color--default{border:.0833333333em solid #7b0101}.theme-malfunction .ProgressBar--color--default .ProgressBar__fill{background-color:#7b0101}.theme-malfunction .ProgressBar--color--disabled{border:1px solid #363636}.theme-malfunction .ProgressBar--color--disabled .ProgressBar__fill{background-color:#363636}.theme-malfunction .Section{position:relative;margin-bottom:.5em;background-color:#12232d;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-malfunction .Section:last-child{margin-bottom:0}.theme-malfunction .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #910101}.theme-malfunction .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-malfunction .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-malfunction .Section__rest{position:relative}.theme-malfunction .Section__content{padding:.66em .5em}.theme-malfunction .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-malfunction .Section--fill{display:flex;flex-direction:column;height:100%}.theme-malfunction .Section--fill>.Section__rest{flex-grow:1}.theme-malfunction .Section--fill>.Section__rest>.Section__content{height:100%}.theme-malfunction .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-malfunction .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-malfunction .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-malfunction .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-malfunction .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-malfunction .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-malfunction .Section .Section:first-child{margin-top:-.5em}.theme-malfunction .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-malfunction .Section .Section .Section .Section__titleText{font-size:1em}.theme-malfunction .Tooltip{z-index:999;padding:.5em .75em;pointer-events:none;text-align:left;transition:opacity .15s ease-out;background-color:#235577;color:#fff;box-shadow:.1em .1em 1.25em -.1em rgba(0,0,0,.5);border-radius:.16em;max-width:20.8333333333em}.theme-malfunction html,.theme-malfunction body{scrollbar-color:#274b61 #142732}.theme-malfunction .Layout,.theme-malfunction .Layout *{scrollbar-base-color:#142732;scrollbar-face-color:#274b61;scrollbar-3dlight-color:#1b3443;scrollbar-highlight-color:#1b3443;scrollbar-track-color:#142732;scrollbar-arrow-color:#6ba2c3;scrollbar-shadow-color:#274b61}.theme-malfunction .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-malfunction .Layout__content--flexRow{display:flex;flex-flow:row}.theme-malfunction .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-malfunction .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-malfunction .Layout__content--noMargin{margin:0}.theme-malfunction .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#1b3443;background-image:linear-gradient(to bottom,#244559,#12232d)}.theme-malfunction .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-malfunction .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-malfunction .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-malfunction .Window__contentPadding:after{height:0}.theme-malfunction .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-malfunction .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(50,79,96,.25);pointer-events:none}.theme-malfunction .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-malfunction .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-malfunction .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-malfunction .TitleBar{background-color:#1a3f57;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-malfunction .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#1a3f57;transition:color .25s,background-color .25s}.theme-malfunction .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-malfunction .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-malfunction .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-malfunction .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-malfunction .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-malfunction .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-malfunction .Layout__content{background-image:none}.theme-ntos .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-ntos .Button:last-child{margin-right:0;margin-bottom:0}.theme-ntos .Button .fa,.theme-ntos .Button .fas,.theme-ntos .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-ntos .Button--hasContent .fa,.theme-ntos .Button--hasContent .fas,.theme-ntos .Button--hasContent .far{margin-right:.25em}.theme-ntos .Button--hasContent.Button--iconRight .fa,.theme-ntos .Button--hasContent.Button--iconRight .fas,.theme-ntos .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-ntos .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-ntos .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-ntos .Button--circular{border-radius:50%}.theme-ntos .Button--compact{padding:0 .25em;line-height:1.333em}.theme-ntos .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-ntos .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-ntos .Button--color--transparent{background-color:rgba(31,43,57,0);color:rgba(227,240,255,.75);transition:color .2s,background-color .2s}.theme-ntos .Button--color--transparent:hover{background-color:rgba(49,63,80,.81);color:#fff}.theme-ntos .Button--color--default{background-color:#384e68;color:#fff;transition:color .2s,background-color .2s}.theme-ntos .Button--color--default:hover{background-color:#4f6885;color:#fff}.theme-ntos .Button--color--default--translucent{background-color:rgba(39,51,67,.33);color:rgba(227,240,255,.75);transition:color .2s,background-color .2s}.theme-ntos .Button--color--default--translucent:hover{background-color:rgba(60,74,92,.5);color:#fff}.theme-ntos .Button--color--caution{background-color:#d9b804;color:#000;transition:color .2s,background-color .2s}.theme-ntos .Button--color--caution:hover{background-color:#f5d523;color:#000}.theme-ntos .Button--color--caution--translucent{background-color:rgba(217,184,4,.33);color:rgba(227,240,255,.75);transition:color .2s,background-color .2s}.theme-ntos .Button--color--caution--translucent:hover{background-color:rgba(245,213,35,.5);color:#fff}.theme-ntos .Button--color--danger{background-color:#bd2020;color:#fff;transition:color .2s,background-color .2s}.theme-ntos .Button--color--danger:hover{background-color:#d93f3f;color:#fff}.theme-ntos .Button--color--danger--translucent{background-color:rgba(189,32,32,.33);color:rgba(227,240,255,.75);transition:color .2s,background-color .2s}.theme-ntos .Button--color--danger--translucent:hover{background-color:rgba(217,63,63,.5);color:#fff}.theme-ntos .Button--disabled{background-color:#999!important;color:rgba(227,240,255,.75)!important}.theme-ntos .Button--disabled--translucent{background-color:rgba(77,23,23,.5)!important;color:rgba(227,240,255,.75)!important}.theme-ntos .Button--selected,.theme-ntos .Button--selected--translucent{background-color:#1b9638;color:#fff;transition:color .2s,background-color .2s}.theme-ntos .Button--selected:hover,.theme-ntos .Button--selected--translucent:hover{background-color:#2fb94f;color:#fff}.theme-ntos .Divider--horizontal{margin:.5em 0}.theme-ntos .Divider--horizontal:not(.Divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.theme-ntos .Divider--vertical{height:100%;margin:0 .5em}.theme-ntos .Divider--vertical:not(.Divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.theme-ntos .color__default{background-color:rgba(96,112,131,.2);color:#fff;border:solid rgba(162,173,186,.2);border-width:1px;transition:background-color .2s,border-color .2s}.theme-ntos .color__default:hover{background-color:rgba(162,173,186,.2)}.theme-ntos .disabled{background-color:rgba(99,29,29,.25)!important;border-color:rgba(99,29,29,.25)!important}.theme-ntos .selected{background-color:rgba(27,150,56,.2);color:#fff;border:solid rgba(27,150,56,.25);border-width:1px;transition:background-color .2s,border-color .2s}.theme-ntos .selected:hover{background-color:rgba(72,214,105,.2)}.theme-ntos .contentColor__default{background-color:#5c6c7f;color:#fff;border:solid #6b7d92;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.theme-ntos .contentDisabled{background-color:#631d1d!important;border-top:1px solid #803131!important}.theme-ntos .contentSelected{background-color:#1b9638;color:#fff;border:solid #2fb94f;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.theme-ntos .buttonsContainerColor__default{background-color:rgba(96,112,131,.2);color:#fff;border:solid rgba(162,173,186,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.theme-ntos .ImageButton{display:inline-table;position:relative;text-align:center;margin:.25em;user-select:none;-ms-user-select:none}.theme-ntos .ImageButton .noAction{pointer-events:none}.theme-ntos .ImageButton .container{display:flex;flex-direction:column;border-radius:.33em}.theme-ntos .ImageButton .image{position:relative;align-self:center;pointer-events:none;overflow:hidden;line-height:0;padding:.25em;border-radius:.33em}.theme-ntos .ImageButton .buttonsContainer{display:flex;position:absolute;overflow:hidden;left:1px;bottom:1.8em;max-width:100%;z-index:1}.theme-ntos .ImageButton .buttonsContainer.buttonsAltContainer{overflow:visible;flex-direction:column;pointer-events:none;top:1px;bottom:inherit!important}.theme-ntos .ImageButton .buttonsContainer.buttonsEmpty{bottom:1px}.theme-ntos .ImageButton .buttonsContainer>*{margin:0!important;padding:0 .2em!important;border-radius:0!important}.theme-ntos .ImageButton .content{-ms-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:.25em .5em;margin:-1px;border-radius:0 0 .33em .33em;z-index:2}.theme-ntos .fluid{display:flex;flex-direction:row;position:relative;text-align:center;margin:0 0 .5em;user-select:none;-ms-user-select:none}.theme-ntos .fluid:last-of-type{margin-bottom:0}.theme-ntos .fluid .info{display:flex;flex-direction:column;justify-content:center;flex:1}.theme-ntos .fluid .title{font-weight:700;padding:.5em}.theme-ntos .fluid .title.divider{margin:0 .5em;border-bottom:.1666666667em solid rgba(255,255,255,.1)}.theme-ntos .fluid .contentFluid{padding:.5em;color:#fff}.theme-ntos .fluid .container{flex-direction:row;flex:1}.theme-ntos .fluid .container.hasButtons{border-radius:.33em 0 0 .33em;border-width:1px 0 1px 1px}.theme-ntos .fluid .image{padding:0}.theme-ntos .fluid .buttonsContainer{position:relative;left:inherit;bottom:inherit;border-radius:0 .33em .33em 0}.theme-ntos .fluid .buttonsContainer.buttonsEmpty{bottom:inherit}.theme-ntos .fluid .buttonsContainer.buttonsAltContainer{overflow:hidden;pointer-events:auto;top:inherit}.theme-ntos .fluid .buttonsContainer.buttonsAltContainer>*{border-top:1px solid rgba(255,255,255,.075)}.theme-ntos .fluid .buttonsContainer.buttonsAltContainer>*:first-child{border-top:0}.theme-ntos .fluid .buttonsContainer>*{display:inline-flex;flex-direction:column;justify-content:center;text-align:center;white-space:pre-wrap;line-height:1.1666666667em;height:100%;border-left:1px solid rgba(255,255,255,.075)}.theme-ntos .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:.16em;background-color:rgba(0,0,0,.5);transition:border-color .5s}.theme-ntos .ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.theme-ntos .ProgressBar__fill--animated{transition:background-color .5s,width .5s}.theme-ntos .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-ntos .ProgressBar--color--default{border:.0833333333em solid #384e68}.theme-ntos .ProgressBar--color--default .ProgressBar__fill{background-color:#384e68}.theme-ntos .ProgressBar--color--disabled{border:1px solid #999}.theme-ntos .ProgressBar--color--disabled .ProgressBar__fill{background-color:#999}.theme-ntos .Section{position:relative;margin-bottom:.5em;background-color:#151d26;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-ntos .Section:last-child{margin-bottom:0}.theme-ntos .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #4972a1}.theme-ntos .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-ntos .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-ntos .Section__rest{position:relative}.theme-ntos .Section__content{padding:.66em .5em}.theme-ntos .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-ntos .Section--fill{display:flex;flex-direction:column;height:100%}.theme-ntos .Section--fill>.Section__rest{flex-grow:1}.theme-ntos .Section--fill>.Section__rest>.Section__content{height:100%}.theme-ntos .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-ntos .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-ntos .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-ntos .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-ntos .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-ntos .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-ntos .Section .Section:first-child{margin-top:-.5em}.theme-ntos .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-ntos .Section .Section .Section .Section__titleText{font-size:1em}.theme-ntos html,.theme-ntos body{scrollbar-color:#2e3f55 #17202b}.theme-ntos .Layout,.theme-ntos .Layout *{scrollbar-base-color:#17202b;scrollbar-face-color:#2e3f55;scrollbar-3dlight-color:#1f2b39;scrollbar-highlight-color:#1f2b39;scrollbar-track-color:#17202b;scrollbar-arrow-color:#7693b5;scrollbar-shadow-color:#2e3f55}.theme-ntos .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-ntos .Layout__content--flexRow{display:flex;flex-flow:row}.theme-ntos .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-ntos .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-ntos .Layout__content--noMargin{margin:0}.theme-ntos .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#1f2b39;background-image:linear-gradient(to bottom,#223040,#1b2633)}.theme-ntos .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-ntos .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-ntos .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-ntos .Window__contentPadding:after{height:0}.theme-ntos .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-ntos .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(55,69,85,.25);pointer-events:none}.theme-ntos .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-ntos .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-ntos .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-ntos .TitleBar{background-color:#2a3b4e;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-ntos .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#2a3b4e;transition:color .25s,background-color .25s}.theme-ntos .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-ntos .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-ntos .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-ntos .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-ntos .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-ntos .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-paper .Tabs{display:flex;align-items:stretch;overflow:hidden;background-color:rgba(0,0,0,.33)}.theme-paper .Tabs--fill{height:100%}.theme-paper .Section .Tabs{background-color:rgba(0,0,0,0)}.theme-paper .Section:not(.Section--fitted) .Tabs{margin:0 -.5em .5em}.theme-paper .Section:not(.Section--fitted) .Tabs:first-child{margin-top:-.5em}.theme-paper .Tabs--vertical{flex-direction:column;padding:.25em .25em .25em 0}.theme-paper .Tabs--horizontal{margin-bottom:.5em;padding:.25em .25em 0}.theme-paper .Tabs--horizontal:last-child{margin-bottom:0}.theme-paper .Tabs__Tab{flex-grow:0}.theme-paper .Tabs--fluid .Tabs__Tab{flex-grow:1}.theme-paper .Tab{display:flex;align-items:center;justify-content:space-between;background-color:rgba(0,0,0,0);color:rgba(255,255,255,.5);min-height:2.25em;min-width:4em;transition:background-color 50ms ease-out}.theme-paper .Tab:not(.Tab--selected):hover{background-color:rgba(255,255,255,.075);transition:background-color 0}.theme-paper .Tab--selected{background-color:rgba(255,255,255,.125);color:#fafafa}.theme-paper .Tab__text{flex-grow:1;margin:0 .5em}.theme-paper .Tab__left{min-width:1.5em;text-align:center;margin-left:.25em}.theme-paper .Tab__right{min-width:1.5em;text-align:center;margin-right:.25em}.theme-paper .Tabs--horizontal .Tab{border-top:.1666666667em solid rgba(0,0,0,0);border-bottom:.1666666667em solid rgba(0,0,0,0);border-top-left-radius:.25em;border-top-right-radius:.25em}.theme-paper .Tabs--horizontal .Tab--selected{border-bottom:.1666666667em solid #f9f9f9}.theme-paper .Tabs--vertical .Tab{min-height:2em;border-left:.1666666667em solid rgba(0,0,0,0);border-right:.1666666667em solid rgba(0,0,0,0);border-top-right-radius:.25em;border-bottom-right-radius:.25em}.theme-paper .Tabs--vertical .Tab--selected{border-left:.1666666667em solid #f9f9f9}.theme-paper .Section{position:relative;margin-bottom:.5em;background-color:#e6e6e6;background-color:rgba(0,0,0,.1);box-sizing:border-box}.theme-paper .Section:last-child{margin-bottom:0}.theme-paper .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #fff}.theme-paper .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#000}.theme-paper .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-paper .Section__rest{position:relative}.theme-paper .Section__content{padding:.66em .5em}.theme-paper .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-paper .Section--fill{display:flex;flex-direction:column;height:100%}.theme-paper .Section--fill>.Section__rest{flex-grow:1}.theme-paper .Section--fill>.Section__rest>.Section__content{height:100%}.theme-paper .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-paper .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-paper .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-paper .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-paper .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-paper .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-paper .Section .Section:first-child{margin-top:-.5em}.theme-paper .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-paper .Section .Section .Section .Section__titleText{font-size:1em}.theme-paper .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-paper .Button:last-child{margin-right:0;margin-bottom:0}.theme-paper .Button .fa,.theme-paper .Button .fas,.theme-paper .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-paper .Button--hasContent .fa,.theme-paper .Button--hasContent .fas,.theme-paper .Button--hasContent .far{margin-right:.25em}.theme-paper .Button--hasContent.Button--iconRight .fa,.theme-paper .Button--hasContent.Button--iconRight .fas,.theme-paper .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-paper .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-paper .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-paper .Button--circular{border-radius:50%}.theme-paper .Button--compact{padding:0 .25em;line-height:1.333em}.theme-paper .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-paper .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-paper .Button--color--transparent{background-color:rgba(255,255,255,0);color:rgba(0,0,0,.5);transition:color .2s,background-color .2s}.theme-paper .Button--color--transparent:hover{background-color:rgba(255,255,255,.81);color:#000}.theme-paper .Button--color--default{background-color:#e8e4c9;color:#000;transition:color .2s,background-color .2s}.theme-paper .Button--color--default:hover{background-color:#fbfaf5;color:#000}.theme-paper .Button--color--default--translucent{background-color:rgba(255,255,255,.33);color:rgba(0,0,0,.5);transition:color .2s,background-color .2s}.theme-paper .Button--color--default--translucent:hover{background-color:rgba(255,255,255,.5);color:#fff}.theme-paper .Button--color--caution{background-color:#be6209;color:#fff;transition:color .2s,background-color .2s}.theme-paper .Button--color--caution:hover{background-color:#e67f1a;color:#fff}.theme-paper .Button--color--caution--translucent{background-color:rgba(190,98,9,.33);color:rgba(0,0,0,.5);transition:color .2s,background-color .2s}.theme-paper .Button--color--caution--translucent:hover{background-color:rgba(230,127,26,.5);color:#fff}.theme-paper .Button--color--danger{background-color:#9a9d00;color:#fff;transition:color .2s,background-color .2s}.theme-paper .Button--color--danger:hover{background-color:#bec110;color:#fff}.theme-paper .Button--color--danger--translucent{background-color:rgba(154,157,0,.33);color:rgba(0,0,0,.5);transition:color .2s,background-color .2s}.theme-paper .Button--color--danger--translucent:hover{background-color:rgba(190,193,16,.5);color:#fff}.theme-paper .Button--disabled{background-color:#363636!important;color:rgba(0,0,0,.75)!important}.theme-paper .Button--disabled--translucent{background-color:rgba(77,23,23,.5)!important;color:rgba(0,0,0,.5)!important}.theme-paper .Button--selected,.theme-paper .Button--selected--translucent{background-color:#9d0808;color:#fff;transition:color .2s,background-color .2s}.theme-paper .Button--selected:hover,.theme-paper .Button--selected--translucent:hover{background-color:#c11919;color:#fff}.theme-paper .Divider--horizontal{margin:.5em 0}.theme-paper .Divider--horizontal:not(.Divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.theme-paper .Divider--vertical{height:100%;margin:0 .5em}.theme-paper .Divider--vertical:not(.Divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.theme-paper .color__default{background-color:rgba(232,229,202,.2);color:#000;border:solid rgba(252,252,249,.2);border-width:1px;transition:background-color .2s,border-color .2s}.theme-paper .color__default:hover{background-color:rgba(252,252,249,.2)}.theme-paper .disabled{background-color:rgba(54,54,54,.25)!important;border-color:rgba(54,54,54,.25)!important}.theme-paper .selected{background-color:rgba(157,8,8,.2);color:#fff;border:solid rgba(157,8,8,.25);border-width:1px;transition:background-color .2s,border-color .2s}.theme-paper .selected:hover{background-color:rgba(229,42,42,.2)}.theme-paper .contentColor__default{background-color:#e5e0c2;color:#000;border:solid #f3f2e4;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.theme-paper .contentDisabled{background-color:#363636!important;border-top:1px solid #4d4d4d!important}.theme-paper .contentSelected{background-color:#9d0808;color:#fff;border:solid #c11919;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.theme-paper .buttonsContainerColor__default{background-color:rgba(232,229,202,.2);color:#000;border:solid rgba(252,252,249,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.theme-paper .ImageButton{display:inline-table;position:relative;text-align:center;margin:.25em;user-select:none;-ms-user-select:none}.theme-paper .ImageButton .noAction{pointer-events:none}.theme-paper .ImageButton .container{display:flex;flex-direction:column;border-radius:.33em}.theme-paper .ImageButton .image{position:relative;align-self:center;pointer-events:none;overflow:hidden;line-height:0;padding:.25em;border-radius:.33em}.theme-paper .ImageButton .buttonsContainer{display:flex;position:absolute;overflow:hidden;left:1px;bottom:1.8em;max-width:100%;z-index:1}.theme-paper .ImageButton .buttonsContainer.buttonsAltContainer{overflow:visible;flex-direction:column;pointer-events:none;top:1px;bottom:inherit!important}.theme-paper .ImageButton .buttonsContainer.buttonsEmpty{bottom:1px}.theme-paper .ImageButton .buttonsContainer>*{margin:0!important;padding:0 .2em!important;border-radius:0!important}.theme-paper .ImageButton .content{-ms-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:.25em .5em;margin:-1px;border-radius:0 0 .33em .33em;z-index:2}.theme-paper .fluid{display:flex;flex-direction:row;position:relative;text-align:center;margin:0 0 .5em;user-select:none;-ms-user-select:none}.theme-paper .fluid:last-of-type{margin-bottom:0}.theme-paper .fluid .info{display:flex;flex-direction:column;justify-content:center;flex:1}.theme-paper .fluid .title{font-weight:700;padding:.5em}.theme-paper .fluid .title.divider{margin:0 .5em;border-bottom:.1666666667em solid rgba(255,255,255,.1)}.theme-paper .fluid .contentFluid{padding:.5em;color:#fff}.theme-paper .fluid .container{flex-direction:row;flex:1}.theme-paper .fluid .container.hasButtons{border-radius:.33em 0 0 .33em;border-width:1px 0 1px 1px}.theme-paper .fluid .image{padding:0}.theme-paper .fluid .buttonsContainer{position:relative;left:inherit;bottom:inherit;border-radius:0 .33em .33em 0}.theme-paper .fluid .buttonsContainer.buttonsEmpty{bottom:inherit}.theme-paper .fluid .buttonsContainer.buttonsAltContainer{overflow:hidden;pointer-events:auto;top:inherit}.theme-paper .fluid .buttonsContainer.buttonsAltContainer>*{border-top:1px solid rgba(255,255,255,.075)}.theme-paper .fluid .buttonsContainer.buttonsAltContainer>*:first-child{border-top:0}.theme-paper .fluid .buttonsContainer>*{display:inline-flex;flex-direction:column;justify-content:center;text-align:center;white-space:pre-wrap;line-height:1.1666666667em;height:100%;border-left:1px solid rgba(255,255,255,.075)}.theme-paper .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:.16em;background-color:rgba(0,0,0,0);transition:border-color .5s}.theme-paper .ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.theme-paper .ProgressBar__fill--animated{transition:background-color .5s,width .5s}.theme-paper .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-paper .ProgressBar--color--default{border:.0833333333em solid #bfbfbf}.theme-paper .ProgressBar--color--default .ProgressBar__fill{background-color:#bfbfbf}.theme-paper .ProgressBar--color--disabled{border:1px solid #363636}.theme-paper .ProgressBar--color--disabled .ProgressBar__fill{background-color:#363636}.theme-paper html,.theme-paper body{scrollbar-color:#fff #bfbfbf}.theme-paper .Layout,.theme-paper .Layout *{scrollbar-base-color:#bfbfbf;scrollbar-face-color:#fff;scrollbar-3dlight-color:#fff;scrollbar-highlight-color:#fff;scrollbar-track-color:#bfbfbf;scrollbar-arrow-color:#fff;scrollbar-shadow-color:#fff}.theme-paper .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-paper .Layout__content--flexRow{display:flex;flex-flow:row}.theme-paper .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-paper .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-paper .Layout__content--noMargin{margin:0}.theme-paper .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#000;background-color:#fff;background-image:linear-gradient(to bottom,#fff,#fff)}.theme-paper .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-paper .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-paper .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-paper .Window__contentPadding:after{height:0}.theme-paper .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-paper .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(255,255,255,.25);pointer-events:none}.theme-paper .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-paper .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-paper .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-paper .TitleBar{background-color:#fff;border-bottom:1px solid rgba(0,0,0,.25);box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-paper .TitleBar__clickable{color:rgba(0,0,0,.5);background-color:#fff;transition:color .25s,background-color .25s}.theme-paper .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-paper .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(0,0,0,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-paper .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-paper .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-paper .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-paper .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-paper .PaperInput{position:relative;display:inline-block;width:120px;border:none;background:rgba(0,0,0,0);border-bottom:1px solid #000;outline:none;background-color:rgba(255,255,62,.8);padding:0 4px;margin-right:2px;line-height:17px;overflow:visible}.theme-paper .PaperInput__baseline{display:inline-block;color:rgba(0,0,0,0)}.theme-paper .PaperInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:12px;line-height:17px;height:17px;margin:0;padding:0 6px;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit}.theme-paper .PaperInput__input::placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-paper .PaperInput__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-paper .Layout__content{background-image:none}.theme-paper .Window{background-image:none;color:#000}.theme-paper .paper-text input:disabled{position:relative;display:inline-block;border:none;background:rgba(0,0,0,0);border-bottom:1px solid #000;outline:none;background-color:rgba(255,255,62,.8);padding:0 4px;margin-right:2px;line-height:17px;overflow:visible}.theme-paper .paper-text input,.theme-paper .paper-field{position:relative;display:inline-block;border:none;background:rgba(0,0,0,0);border-bottom:1px solid #000;outline:none;background-color:rgba(255,255,62,.8);padding:0 4px;margin-right:2px;line-height:17px;overflow:visible}.theme-paper .paper-field input:disabled{position:relative;display:inline-block;border:none;background:rgba(0,0,0,0);border-bottom:1px solid #000;outline:none;background-color:rgba(255,255,62,.8);padding:0 4px;margin-right:2px;line-height:17px;overflow:visible}.theme-retro .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:0;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-retro .Button:last-child{margin-right:0;margin-bottom:0}.theme-retro .Button .fa,.theme-retro .Button .fas,.theme-retro .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-retro .Button--hasContent .fa,.theme-retro .Button--hasContent .fas,.theme-retro .Button--hasContent .far{margin-right:.25em}.theme-retro .Button--hasContent.Button--iconRight .fa,.theme-retro .Button--hasContent.Button--iconRight .fas,.theme-retro .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-retro .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-retro .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-retro .Button--circular{border-radius:50%}.theme-retro .Button--compact{padding:0 .25em;line-height:1.333em}.theme-retro .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-retro .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-retro .Button--color--transparent{background-color:rgba(232,228,201,0);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-retro .Button--color--transparent:hover{background-color:rgba(255,255,255,.81);color:#000}.theme-retro .Button--color--default{background-color:#e8e4c9;color:#000;transition:color .2s,background-color .2s}.theme-retro .Button--color--default:hover{background-color:#fbfaf5;color:#000}.theme-retro .Button--color--default--translucent{background-color:rgba(242,240,225,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-retro .Button--color--default--translucent:hover{background-color:rgba(253,252,250,.5);color:#fff}.theme-retro .Button--color--caution{background-color:#be6209;color:#fff;transition:color .2s,background-color .2s}.theme-retro .Button--color--caution:hover{background-color:#e67f1a;color:#fff}.theme-retro .Button--color--caution--translucent{background-color:rgba(190,98,9,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-retro .Button--color--caution--translucent:hover{background-color:rgba(230,127,26,.5);color:#fff}.theme-retro .Button--color--danger{background-color:#9a9d00;color:#fff;transition:color .2s,background-color .2s}.theme-retro .Button--color--danger:hover{background-color:#bec110;color:#fff}.theme-retro .Button--color--danger--translucent{background-color:rgba(154,157,0,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-retro .Button--color--danger--translucent:hover{background-color:rgba(190,193,16,.5);color:#fff}.theme-retro .Button--disabled{background-color:#363636!important;color:rgba(255,255,255,.75)!important}.theme-retro .Button--disabled--translucent{background-color:rgba(77,23,23,.5)!important;color:rgba(255,255,255,.5)!important}.theme-retro .Button--selected,.theme-retro .Button--selected--translucent{background-color:#9d0808;color:#fff;transition:color .2s,background-color .2s}.theme-retro .Button--selected:hover,.theme-retro .Button--selected--translucent:hover{background-color:#c11919;color:#fff}.theme-retro .Divider--horizontal{margin:.5em 0}.theme-retro .Divider--horizontal:not(.Divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.theme-retro .Divider--vertical{height:100%;margin:0 .5em}.theme-retro .Divider--vertical:not(.Divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.theme-retro .color__default{background-color:rgba(232,229,202,.2);color:#000;border:solid rgba(252,252,249,.2);border-width:1px;transition:background-color .2s,border-color .2s}.theme-retro .color__default:hover{background-color:rgba(252,252,249,.2)}.theme-retro .disabled{background-color:rgba(54,54,54,.25)!important;border-color:rgba(54,54,54,.25)!important}.theme-retro .selected{background-color:rgba(157,8,8,.2);color:#fff;border:solid rgba(157,8,8,.25);border-width:1px;transition:background-color .2s,border-color .2s}.theme-retro .selected:hover{background-color:rgba(229,42,42,.2)}.theme-retro .contentColor__default{background-color:#e5e0c2;color:#000;border:solid #f3f2e4;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.theme-retro .contentDisabled{background-color:#363636!important;border-top:1px solid #4d4d4d!important}.theme-retro .contentSelected{background-color:#9d0808;color:#fff;border:solid #c11919;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.theme-retro .buttonsContainerColor__default{background-color:rgba(232,229,202,.2);color:#000;border:solid rgba(252,252,249,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.theme-retro .ImageButton{display:inline-table;position:relative;text-align:center;margin:.25em;user-select:none;-ms-user-select:none}.theme-retro .ImageButton .noAction{pointer-events:none}.theme-retro .ImageButton .container{display:flex;flex-direction:column;border-radius:.33em}.theme-retro .ImageButton .image{position:relative;align-self:center;pointer-events:none;overflow:hidden;line-height:0;padding:.25em;border-radius:.33em}.theme-retro .ImageButton .buttonsContainer{display:flex;position:absolute;overflow:hidden;left:1px;bottom:1.8em;max-width:100%;z-index:1}.theme-retro .ImageButton .buttonsContainer.buttonsAltContainer{overflow:visible;flex-direction:column;pointer-events:none;top:1px;bottom:inherit!important}.theme-retro .ImageButton .buttonsContainer.buttonsEmpty{bottom:1px}.theme-retro .ImageButton .buttonsContainer>*{margin:0!important;padding:0 .2em!important;border-radius:0!important}.theme-retro .ImageButton .content{-ms-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:.25em .5em;margin:-1px;border-radius:0 0 .33em .33em;z-index:2}.theme-retro .fluid{display:flex;flex-direction:row;position:relative;text-align:center;margin:0 0 .5em;user-select:none;-ms-user-select:none}.theme-retro .fluid:last-of-type{margin-bottom:0}.theme-retro .fluid .info{display:flex;flex-direction:column;justify-content:center;flex:1}.theme-retro .fluid .title{font-weight:700;padding:.5em}.theme-retro .fluid .title.divider{margin:0 .5em;border-bottom:.1666666667em solid rgba(255,255,255,.1)}.theme-retro .fluid .contentFluid{padding:.5em;color:#fff}.theme-retro .fluid .container{flex-direction:row;flex:1}.theme-retro .fluid .container.hasButtons{border-radius:.33em 0 0 .33em;border-width:1px 0 1px 1px}.theme-retro .fluid .image{padding:0}.theme-retro .fluid .buttonsContainer{position:relative;left:inherit;bottom:inherit;border-radius:0 .33em .33em 0}.theme-retro .fluid .buttonsContainer.buttonsEmpty{bottom:inherit}.theme-retro .fluid .buttonsContainer.buttonsAltContainer{overflow:hidden;pointer-events:auto;top:inherit}.theme-retro .fluid .buttonsContainer.buttonsAltContainer>*{border-top:1px solid rgba(255,255,255,.075)}.theme-retro .fluid .buttonsContainer.buttonsAltContainer>*:first-child{border-top:0}.theme-retro .fluid .buttonsContainer>*{display:inline-flex;flex-direction:column;justify-content:center;text-align:center;white-space:pre-wrap;line-height:1.1666666667em;height:100%;border-left:1px solid rgba(255,255,255,.075)}.theme-retro .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:0;background-color:rgba(0,0,0,.5);transition:border-color .5s}.theme-retro .ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.theme-retro .ProgressBar__fill--animated{transition:background-color .5s,width .5s}.theme-retro .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-retro .ProgressBar--color--default{border:.0833333333em solid #000}.theme-retro .ProgressBar--color--default .ProgressBar__fill{background-color:#000}.theme-retro .ProgressBar--color--disabled{border:1px solid #999}.theme-retro .ProgressBar--color--disabled .ProgressBar__fill{background-color:#999}.theme-retro .Section{position:relative;margin-bottom:.5em;background-color:#9b9987;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-retro .Section:last-child{margin-bottom:0}.theme-retro .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #000}.theme-retro .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-retro .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-retro .Section__rest{position:relative}.theme-retro .Section__content{padding:.66em .5em}.theme-retro .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-retro .Section--fill{display:flex;flex-direction:column;height:100%}.theme-retro .Section--fill>.Section__rest{flex-grow:1}.theme-retro .Section--fill>.Section__rest>.Section__content{height:100%}.theme-retro .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-retro .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-retro .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-retro .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-retro .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-retro .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-retro .Section .Section:first-child{margin-top:-.5em}.theme-retro .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-retro .Section .Section .Section .Section__titleText{font-size:1em}.theme-retro html,.theme-retro body{scrollbar-color:#efecd9 #c8be7d}.theme-retro .Layout,.theme-retro .Layout *{scrollbar-base-color:#c8be7d;scrollbar-face-color:#eae7ce;scrollbar-3dlight-color:#e8e4c9;scrollbar-highlight-color:#e8e4c9;scrollbar-track-color:#c8be7d;scrollbar-arrow-color:#f4f2e4;scrollbar-shadow-color:#eae7ce}.theme-retro .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-retro .Layout__content--flexRow{display:flex;flex-flow:row}.theme-retro .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-retro .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-retro .Layout__content--noMargin{margin:0}.theme-retro .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#e8e4c9;background-image:linear-gradient(to bottom,#e8e4c9,#e8e4c9)}.theme-retro .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-retro .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-retro .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-retro .Window__contentPadding:after{height:0}.theme-retro .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-retro .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(251,250,246,.25);pointer-events:none}.theme-retro .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-retro .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-retro .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-retro .TitleBar{background-color:#585337;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-retro .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#585337;transition:color .25s,background-color .25s}.theme-retro .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-retro .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-retro .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-retro .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-retro .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-retro .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-retro .Button{font-family:monospace;color:#161613;border:.1666666667em outset #e8e4c9;outline:.0833333333em solid #161613}.theme-retro .Layout__content{background-image:none}.theme-safe .Section{position:relative;margin-bottom:.5em;background-color:#b2ae74;box-sizing:border-box}.theme-safe .Section:last-child{margin-bottom:0}.theme-safe .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #3d566b}.theme-safe .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-safe .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-safe .Section__rest{position:relative}.theme-safe .Section__content{padding:.66em .5em}.theme-safe .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-safe .Section--fill{display:flex;flex-direction:column;height:100%}.theme-safe .Section--fill>.Section__rest{flex-grow:1}.theme-safe .Section--fill>.Section__rest>.Section__content{height:100%}.theme-safe .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-safe .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-safe .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-safe .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-safe .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-safe .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-safe .Section .Section:first-child{margin-top:-.5em}.theme-safe .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-safe .Section .Section .Section .Section__titleText{font-size:1em}.theme-safe .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#222b3a;background-image:linear-gradient(to bottom,#242d3d,#202937)}.theme-safe .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-safe .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-safe .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-safe .Window__contentPadding:after{height:0}.theme-safe .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-safe .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(58,69,86,.25);pointer-events:none}.theme-safe .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-safe .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-safe .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-safe .TitleBar{background-color:#35435a;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-safe .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#35435a;transition:color .25s,background-color .25s}.theme-safe .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-safe .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-safe .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-safe .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-safe .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-safe .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-safe .Safe--engraving{position:absolute;width:95%;height:96%;left:2.5%;top:2%;border:5px outset #364963;padding:5px;text-align:center}.theme-safe .Safe--engraving--arrow{color:#35435a}.theme-safe .Safe--engraving--hinge{content:" ";background-color:#191f2a;width:25px;height:40px;position:absolute;right:-15px;margin-top:-20px}.theme-safe .Safe--dialer{margin-bottom:.5rem}.theme-safe .Safe--dialer--number{color:#bbb;display:inline;background-color:#191f2a;font-size:1.5rem;font-weight:700;padding:0 .5rem}.theme-safe .Safe--dialer--right .Button i{z-index:-100}.theme-safe .Safe--dialer .Button{width:80px}.theme-safe .Safe--contents{border:10px solid #191f2a;background-color:#0f131a;height:calc(85% + 7.5px);text-align:left;padding:5px}.theme-safe .Safe--help{position:absolute;bottom:30px;left:25px;width:50%}.theme-safe .Layout__content{background-image:none}.theme-safe .Section{font-family:Comic Sans MS,cursive,sans-serif;font-style:italic;color:#000;box-shadow:5px 5px #111;background-image:linear-gradient(to bottom,#b2ae74,#8e8b5d);transform:rotate(-1deg)}.theme-safe .Section__title{padding-bottom:0;border:0}.theme-safe .Section:before{content:" ";display:block;width:24px;height:40px;background-image:linear-gradient(to bottom,transparent 0%,#ffffff 100%);box-shadow:1px 1px #111;opacity:.2;position:absolute;top:-30px;left:calc(50% - 12px);transform:rotate(-5deg)}.theme-securestorage .TitleBar{background-color:#e8e4c9;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-securestorage .TitleBar__clickable{color:rgba(25,25,22,.5);background-color:#e8e4c9;transition:color .25s,background-color .25s}.theme-securestorage .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-securestorage .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:#191916;font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-securestorage .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-securestorage .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-securestorage .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-securestorage .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-securestorage html,.theme-securestorage body{scrollbar-color:#efecd9 #c8be7d}.theme-securestorage .Layout,.theme-securestorage .Layout *{scrollbar-base-color:#c8be7d;scrollbar-face-color:#eae7ce;scrollbar-3dlight-color:#e8e4c9;scrollbar-highlight-color:#e8e4c9;scrollbar-track-color:#c8be7d;scrollbar-arrow-color:#f4f2e4;scrollbar-shadow-color:#eae7ce}.theme-securestorage .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-securestorage .Layout__content--flexRow{display:flex;flex-flow:row}.theme-securestorage .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-securestorage .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-securestorage .Layout__content--noMargin{margin:0}.theme-securestorage .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#e8e4c9;background-image:linear-gradient(to bottom,#f1efde,#dfd9b4)}.theme-securestorage .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-securestorage .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-securestorage .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-securestorage .Window__contentPadding:after{height:0}.theme-securestorage .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-securestorage .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(251,250,246,.25);pointer-events:none}.theme-securestorage .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-securestorage .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-securestorage .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-securestorage .Section{position:relative;margin-bottom:.5em;background-color:#9b9987;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-securestorage .Section:last-child{margin-bottom:0}.theme-securestorage .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #397439}.theme-securestorage .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-securestorage .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-securestorage .Section__rest{position:relative}.theme-securestorage .Section__content{padding:.66em .5em}.theme-securestorage .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-securestorage .Section--fill{display:flex;flex-direction:column;height:100%}.theme-securestorage .Section--fill>.Section__rest{flex-grow:1}.theme-securestorage .Section--fill>.Section__rest>.Section__content{height:100%}.theme-securestorage .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-securestorage .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-securestorage .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-securestorage .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-securestorage .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-securestorage .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-securestorage .Section .Section:first-child{margin-top:-.5em}.theme-securestorage .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-securestorage .Section .Section .Section .Section__titleText{font-size:1em}.theme-securestorage .Layout__content{background-image:none}.theme-security .color-label{color:#b08e8b!important}.theme-security .color-bg-good{background-color:#4d9121!important}.theme-security .color-border-label{border-color:#b08e8b!important}.theme-security .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-security .Button:last-child{margin-right:0;margin-bottom:0}.theme-security .Button .fa,.theme-security .Button .fas,.theme-security .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-security .Button--hasContent .fa,.theme-security .Button--hasContent .fas,.theme-security .Button--hasContent .far{margin-right:.25em}.theme-security .Button--hasContent.Button--iconRight .fa,.theme-security .Button--hasContent.Button--iconRight .fas,.theme-security .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-security .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-security .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-security .Button--circular{border-radius:50%}.theme-security .Button--compact{padding:0 .25em;line-height:1.333em}.theme-security .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-security .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-security .Button--color--good{background-color:#4d9121;color:#fff;transition:color .2s,background-color .2s}.theme-security .Button--color--good:hover{background-color:#67b335;color:#fff}.theme-security .Button--color--good--translucent{background-color:rgba(77,145,33,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-security .Button--color--good--translucent:hover{background-color:rgba(103,179,53,.5);color:#fff}.theme-security .Button--color--transparent{background-color:rgba(37,37,37,0);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-security .Button--color--transparent:hover{background-color:rgba(56,56,56,.81);color:#fff}.theme-security .Button--color--default{background-color:#a14c49;color:#fff;transition:color .2s,background-color .2s}.theme-security .Button--color--default:hover{background-color:#bb6f6d;color:#fff}.theme-security .Button--color--default--translucent{background-color:rgba(46,46,46,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-security .Button--color--default--translucent:hover{background-color:rgba(68,68,68,.5);color:#fff}.theme-security .Button--color--caution{background-color:#d9b804;color:#000;transition:color .2s,background-color .2s}.theme-security .Button--color--caution:hover{background-color:#f5d523;color:#000}.theme-security .Button--color--caution--translucent{background-color:rgba(217,184,4,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-security .Button--color--caution--translucent:hover{background-color:rgba(245,213,35,.5);color:#fff}.theme-security .Button--color--danger{background-color:#bd2020;color:#fff;transition:color .2s,background-color .2s}.theme-security .Button--color--danger:hover{background-color:#d93f3f;color:#fff}.theme-security .Button--color--danger--translucent{background-color:rgba(189,32,32,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-security .Button--color--danger--translucent:hover{background-color:rgba(217,63,63,.5);color:#fff}.theme-security .Button--disabled{background-color:#999!important;color:rgba(255,255,255,.75)!important}.theme-security .Button--disabled--translucent{background-color:rgba(77,23,23,.5)!important;color:rgba(255,255,255,.5)!important}.theme-security .Button--selected,.theme-security .Button--selected--translucent{background-color:#1b9638;color:#fff;transition:color .2s,background-color .2s}.theme-security .Button--selected:hover,.theme-security .Button--selected--translucent:hover{background-color:#2fb94f;color:#fff}.theme-security .Divider--horizontal{margin:.5em 0}.theme-security .Divider--horizontal:not(.Divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.theme-security .Divider--vertical{height:100%;margin:0 .5em}.theme-security .Divider--vertical:not(.Divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.theme-security .color__good{background-color:rgba(77,145,33,.2);color:#fff;border:solid rgba(130,208,79,.2);border-width:1px;transition:background-color .2s,border-color .2s}.theme-security .color__good:hover{background-color:rgba(130,208,79,.2)}.theme-security .contentColor__good{background-color:#4d9121;color:#fff;border:solid #67b335;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.theme-security .buttonsContainerColor__good{background-color:rgba(77,145,33,.33);color:#fff;border:solid rgba(130,208,79,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.theme-security .color__default{background-color:rgba(169,108,106,.2);color:#fff;border:solid rgba(217,191,190,.2);border-width:1px;transition:background-color .2s,border-color .2s}.theme-security .color__default:hover{background-color:rgba(217,191,190,.2)}.theme-security .disabled{background-color:rgba(99,29,29,.25)!important;border-color:rgba(99,29,29,.25)!important}.theme-security .selected{background-color:rgba(27,150,56,.2);color:#fff;border:solid rgba(27,150,56,.25);border-width:1px;transition:background-color .2s,border-color .2s}.theme-security .selected:hover{background-color:rgba(72,214,105,.2)}.theme-security .contentColor__default{background-color:#a46866;color:#fff;border:solid #b97977;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.theme-security .contentDisabled{background-color:#631d1d!important;border-top:1px solid #803131!important}.theme-security .contentSelected{background-color:#1b9638;color:#fff;border:solid #2fb94f;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.theme-security .buttonsContainerColor__default{background-color:rgba(169,108,106,.2);color:#fff;border:solid rgba(217,191,190,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.theme-security .ImageButton{display:inline-table;position:relative;text-align:center;margin:.25em;user-select:none;-ms-user-select:none}.theme-security .ImageButton .noAction{pointer-events:none}.theme-security .ImageButton .container{display:flex;flex-direction:column;border-radius:.33em}.theme-security .ImageButton .image{position:relative;align-self:center;pointer-events:none;overflow:hidden;line-height:0;padding:.25em;border-radius:.33em}.theme-security .ImageButton .buttonsContainer{display:flex;position:absolute;overflow:hidden;left:1px;bottom:1.8em;max-width:100%;z-index:1}.theme-security .ImageButton .buttonsContainer.buttonsAltContainer{overflow:visible;flex-direction:column;pointer-events:none;top:1px;bottom:inherit!important}.theme-security .ImageButton .buttonsContainer.buttonsEmpty{bottom:1px}.theme-security .ImageButton .buttonsContainer>*{margin:0!important;padding:0 .2em!important;border-radius:0!important}.theme-security .ImageButton .content{-ms-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:.25em .5em;margin:-1px;border-radius:0 0 .33em .33em;z-index:2}.theme-security .fluid{display:flex;flex-direction:row;position:relative;text-align:center;margin:0 0 .5em;user-select:none;-ms-user-select:none}.theme-security .fluid:last-of-type{margin-bottom:0}.theme-security .fluid .info{display:flex;flex-direction:column;justify-content:center;flex:1}.theme-security .fluid .title{font-weight:700;padding:.5em}.theme-security .fluid .title.divider{margin:0 .5em;border-bottom:.1666666667em solid rgba(255,255,255,.1)}.theme-security .fluid .contentFluid{padding:.5em;color:#fff}.theme-security .fluid .container{flex-direction:row;flex:1}.theme-security .fluid .container.hasButtons{border-radius:.33em 0 0 .33em;border-width:1px 0 1px 1px}.theme-security .fluid .image{padding:0}.theme-security .fluid .buttonsContainer{position:relative;left:inherit;bottom:inherit;border-radius:0 .33em .33em 0}.theme-security .fluid .buttonsContainer.buttonsEmpty{bottom:inherit}.theme-security .fluid .buttonsContainer.buttonsAltContainer{overflow:hidden;pointer-events:auto;top:inherit}.theme-security .fluid .buttonsContainer.buttonsAltContainer>*{border-top:1px solid rgba(255,255,255,.075)}.theme-security .fluid .buttonsContainer.buttonsAltContainer>*:first-child{border-top:0}.theme-security .fluid .buttonsContainer>*{display:inline-flex;flex-direction:column;justify-content:center;text-align:center;white-space:pre-wrap;line-height:1.1666666667em;height:100%;border-left:1px solid rgba(255,255,255,.075)}.theme-security .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #ff8d88;border:.0833333333em solid rgba(255,141,136,.75);border-radius:.16em;background-color:#0a0a0a;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75);padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible;white-space:nowrap}.theme-security .Input--disabled{color:#777;border-color:#848484;border-color:rgba(132,132,132,.75);background-color:#333;background-color:rgba(0,0,0,.25)}.theme-security .Input--fluid{display:block;width:auto}.theme-security .Input__baseline{display:inline-block;color:rgba(0,0,0,0)}.theme-security .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit}.theme-security .Input__input::placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-security .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-security .Input__textarea{border:0;width:calc(100% + 4px);font-size:1em;line-height:1.4166666667em;margin-left:-.3333333333em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit;resize:both;overflow:auto;white-space:pre-wrap}.theme-security .Input__textarea::placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-security .Input__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-security .Input--monospace .Input__input{font-family:Consolas,monospace}.theme-security .NoticeBox{padding:.33em .5em;margin-bottom:.5em;box-shadow:none;font-weight:700;font-style:italic;color:#000;background-color:#bb9b68;background-image:repeating-linear-gradient(-45deg,transparent,transparent .8333333333em,rgba(0,0,0,.1) .8333333333em,rgba(0,0,0,.1) 1.6666666667em)}.theme-security .NoticeBox--color--good{color:#fff;background-color:#2e4b1a}.theme-security .NoticeBox--type--info{color:#fff;background-color:#822329}.theme-security .NoticeBox--type--success{color:#fff;background-color:#1e662f}.theme-security .NoticeBox--type--warning{color:#fff;background-color:#a95219}.theme-security .NoticeBox--type--danger{color:#fff;background-color:#8f2828}.theme-security .Section{position:relative;margin-bottom:.5em;background-color:#191919;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-security .Section:last-child{margin-bottom:0}.theme-security .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #a14c49}.theme-security .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-security .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-security .Section__rest{position:relative}.theme-security .Section__content{padding:.66em .5em}.theme-security .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-security .Section--fill{display:flex;flex-direction:column;height:100%}.theme-security .Section--fill>.Section__rest{flex-grow:1}.theme-security .Section--fill>.Section__rest>.Section__content{height:100%}.theme-security .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-security .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-security .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-security .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-security .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-security .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-security .Section .Section:first-child{margin-top:-.5em}.theme-security .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-security .Section .Section .Section .Section__titleText{font-size:1em}.theme-security .Newscaster__menu{width:40px;height:100%;margin-right:.5rem;flex-basis:content}.theme-security .Newscaster__menu .Section__content{padding-left:0}.theme-security .Newscaster__menuButton{color:#767676;cursor:pointer;position:relative;margin-left:6px;margin-right:1rem;white-space:nowrap;transition:color .1s}.theme-security .Newscaster__menuButton--title{width:80%;display:none;overflow:hidden;text-overflow:ellipsis}.theme-security .Newscaster__menuButton--unread{background-color:#e45e5e;color:#fff;font-size:10px;text-align:center;border-radius:32px;display:inline-block;width:12px;position:absolute;left:16px;margin-top:14px}.theme-security .Newscaster__menuButton--selected{color:#fff}.theme-security .Newscaster__menuButton--selected:after{content:"";background-color:#a14c49;width:2px;height:24px;position:absolute;left:-6px}.theme-security .Newscaster__menuButton--security{color:#a14c49}.theme-security .Newscaster__menuButton i{width:30px;text-align:center;vertical-align:middle;margin-left:-1px;margin-right:.5rem;margin-top:1px}.theme-security .Newscaster__menuButton:hover{color:#fff}.theme-security .Newscaster__menuButton:hover:before{background-color:#fff}.theme-security .Newscaster__menuButton:not(:last-of-type){margin-bottom:.5rem}.theme-security .Newscaster__menu--open{width:175px}.theme-security .Newscaster__menu--open .Newscaster__menuButton--title{display:inline-block}.theme-security .Newscaster__jobCategory--security .Section__title{color:#a14c49;border-bottom:2px solid #a14c49!important}.theme-security .Newscaster__jobCategory--engineering .Section__title{color:#a17849;border-bottom:2px solid #a17849!important}.theme-security .Newscaster__jobCategory--medical .Section__title{color:#499ea1;border-bottom:2px solid #499ea1!important}.theme-security .Newscaster__jobCategory--science .Section__title{color:#a14972;border-bottom:2px solid #a14972!important}.theme-security .Newscaster__jobCategory--service .Section__title{color:#a1499e;border-bottom:2px solid #a1499e!important}.theme-security .Newscaster__jobCategory--supply .Section__title{color:#9ea149;border-bottom:2px solid #9ea149!important}.theme-security .Newscaster__jobCategory:last-child{margin-bottom:.5rem}.theme-security .Newscaster__jobOpening--command{font-weight:700}.theme-security .Newscaster__jobOpening:not(:last-child){margin-bottom:.5rem}.theme-security .Newscaster__emptyNotice{color:#a7817e;text-align:center;position:absolute;top:50%;left:50%;transform:translateY(-50%) translate(-50%)}.theme-security .Newscaster__emptyNotice i{margin-bottom:.25rem}.theme-security .Newscaster__photo{cursor:pointer;width:100px;border:1px solid #000;transition:border-color .3s;-ms-interpolation-mode:nearest-neighbor;image-rendering:pixelated}.theme-security .Newscaster__photo:hover{border-color:gray}.theme-security .Newscaster__photoZoom{text-align:center}.theme-security .Newscaster__photoZoom>img{transform:scale(2);-ms-interpolation-mode:nearest-neighbor;image-rendering:pixelated}.theme-security .Newscaster__photoZoom>.Button{position:absolute;width:64px;left:50%;margin-left:-32px;bottom:1rem}.theme-security .Newscaster__story--wanted{background-color:rgba(219,40,40,.1)}.theme-security .Newscaster__story--wanted .Section__title{color:#db2828;border-bottom:2px solid #a14c49!important}.theme-security .Newscaster__story:last-child{margin-bottom:.5rem}.theme-syndicate .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-syndicate .Button:last-child{margin-right:0;margin-bottom:0}.theme-syndicate .Button .fa,.theme-syndicate .Button .fas,.theme-syndicate .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-syndicate .Button--hasContent .fa,.theme-syndicate .Button--hasContent .fas,.theme-syndicate .Button--hasContent .far{margin-right:.25em}.theme-syndicate .Button--hasContent.Button--iconRight .fa,.theme-syndicate .Button--hasContent.Button--iconRight .fas,.theme-syndicate .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-syndicate .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-syndicate .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-syndicate .Button--circular{border-radius:50%}.theme-syndicate .Button--compact{padding:0 .25em;line-height:1.333em}.theme-syndicate .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-syndicate .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-syndicate .Button--color--transparent{background-color:rgba(85,2,2,0);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-syndicate .Button--color--transparent:hover{background-color:rgba(113,14,14,.81);color:#fff}.theme-syndicate .Button--color--default{background-color:#397439;color:#fff;transition:color .2s,background-color .2s}.theme-syndicate .Button--color--default:hover{background-color:#509350;color:#fff}.theme-syndicate .Button--color--default--translucent{background-color:rgba(96,8,8,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-syndicate .Button--color--default--translucent:hover{background-color:rgba(124,25,25,.5);color:#fff}.theme-syndicate .Button--color--caution{background-color:#be6209;color:#fff;transition:color .2s,background-color .2s}.theme-syndicate .Button--color--caution:hover{background-color:#e67f1a;color:#fff}.theme-syndicate .Button--color--caution--translucent{background-color:rgba(190,98,9,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-syndicate .Button--color--caution--translucent:hover{background-color:rgba(230,127,26,.5);color:#fff}.theme-syndicate .Button--color--danger{background-color:#9a9d00;color:#fff;transition:color .2s,background-color .2s}.theme-syndicate .Button--color--danger:hover{background-color:#bec110;color:#fff}.theme-syndicate .Button--color--danger--translucent{background-color:rgba(154,157,0,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-syndicate .Button--color--danger--translucent:hover{background-color:rgba(190,193,16,.5);color:#fff}.theme-syndicate .Button--disabled{background-color:#363636!important;color:rgba(255,255,255,.75)!important}.theme-syndicate .Button--disabled--translucent{background-color:rgba(77,23,23,.5)!important;color:rgba(255,255,255,.5)!important}.theme-syndicate .Button--selected,.theme-syndicate .Button--selected--translucent{background-color:#9d0808;color:#fff;transition:color .2s,background-color .2s}.theme-syndicate .Button--selected:hover,.theme-syndicate .Button--selected--translucent:hover{background-color:#c11919;color:#fff}.theme-syndicate .Divider--horizontal{margin:.5em 0}.theme-syndicate .Divider--horizontal:not(.Divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.theme-syndicate .Divider--vertical{height:100%;margin:0 .5em}.theme-syndicate .Divider--vertical:not(.Divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.theme-syndicate .color__default{background-color:rgba(87,122,87,.2);color:#fff;border:solid rgba(148,177,148,.2);border-width:1px;transition:background-color .2s,border-color .2s}.theme-syndicate .color__default:hover{background-color:rgba(148,177,148,.2)}.theme-syndicate .disabled{background-color:rgba(54,54,54,.25)!important;border-color:rgba(54,54,54,.25)!important}.theme-syndicate .selected{background-color:rgba(157,8,8,.2);color:#fff;border:solid rgba(157,8,8,.25);border-width:1px;transition:background-color .2s,border-color .2s}.theme-syndicate .selected:hover{background-color:rgba(229,42,42,.2)}.theme-syndicate .contentColor__default{background-color:#547654;color:#fff;border:solid #638763;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.theme-syndicate .contentDisabled{background-color:#363636!important;border-top:1px solid #4d4d4d!important}.theme-syndicate .contentSelected{background-color:#9d0808;color:#fff;border:solid #c11919;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.theme-syndicate .buttonsContainerColor__default{background-color:rgba(87,122,87,.2);color:#fff;border:solid rgba(148,177,148,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.theme-syndicate .ImageButton{display:inline-table;position:relative;text-align:center;margin:.25em;user-select:none;-ms-user-select:none}.theme-syndicate .ImageButton .noAction{pointer-events:none}.theme-syndicate .ImageButton .container{display:flex;flex-direction:column;border-radius:.33em}.theme-syndicate .ImageButton .image{position:relative;align-self:center;pointer-events:none;overflow:hidden;line-height:0;padding:.25em;border-radius:.33em}.theme-syndicate .ImageButton .buttonsContainer{display:flex;position:absolute;overflow:hidden;left:1px;bottom:1.8em;max-width:100%;z-index:1}.theme-syndicate .ImageButton .buttonsContainer.buttonsAltContainer{overflow:visible;flex-direction:column;pointer-events:none;top:1px;bottom:inherit!important}.theme-syndicate .ImageButton .buttonsContainer.buttonsEmpty{bottom:1px}.theme-syndicate .ImageButton .buttonsContainer>*{margin:0!important;padding:0 .2em!important;border-radius:0!important}.theme-syndicate .ImageButton .content{-ms-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:.25em .5em;margin:-1px;border-radius:0 0 .33em .33em;z-index:2}.theme-syndicate .fluid{display:flex;flex-direction:row;position:relative;text-align:center;margin:0 0 .5em;user-select:none;-ms-user-select:none}.theme-syndicate .fluid:last-of-type{margin-bottom:0}.theme-syndicate .fluid .info{display:flex;flex-direction:column;justify-content:center;flex:1}.theme-syndicate .fluid .title{font-weight:700;padding:.5em}.theme-syndicate .fluid .title.divider{margin:0 .5em;border-bottom:.1666666667em solid rgba(255,255,255,.1)}.theme-syndicate .fluid .contentFluid{padding:.5em;color:#fff}.theme-syndicate .fluid .container{flex-direction:row;flex:1}.theme-syndicate .fluid .container.hasButtons{border-radius:.33em 0 0 .33em;border-width:1px 0 1px 1px}.theme-syndicate .fluid .image{padding:0}.theme-syndicate .fluid .buttonsContainer{position:relative;left:inherit;bottom:inherit;border-radius:0 .33em .33em 0}.theme-syndicate .fluid .buttonsContainer.buttonsEmpty{bottom:inherit}.theme-syndicate .fluid .buttonsContainer.buttonsAltContainer{overflow:hidden;pointer-events:auto;top:inherit}.theme-syndicate .fluid .buttonsContainer.buttonsAltContainer>*{border-top:1px solid rgba(255,255,255,.075)}.theme-syndicate .fluid .buttonsContainer.buttonsAltContainer>*:first-child{border-top:0}.theme-syndicate .fluid .buttonsContainer>*{display:inline-flex;flex-direction:column;justify-content:center;text-align:center;white-space:pre-wrap;line-height:1.1666666667em;height:100%;border-left:1px solid rgba(255,255,255,.075)}.theme-syndicate .NoticeBox{padding:.33em .5em;margin-bottom:.5em;box-shadow:none;font-weight:700;font-style:italic;color:#fff;background-color:#910101;background-image:repeating-linear-gradient(-45deg,transparent,transparent .8333333333em,rgba(0,0,0,.1) .8333333333em,rgba(0,0,0,.1) 1.6666666667em)}.theme-syndicate .NoticeBox--type--info{color:#fff;background-color:#235982}.theme-syndicate .NoticeBox--type--success{color:#fff;background-color:#1e662f}.theme-syndicate .NoticeBox--type--warning{color:#fff;background-color:#a95219}.theme-syndicate .NoticeBox--type--danger{color:#fff;background-color:#8f2828}.theme-syndicate .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #87ce87;border:.0833333333em solid rgba(135,206,135,.75);border-radius:.16em;background-color:#0a0a0a;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75);padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible;white-space:nowrap}.theme-syndicate .Input--disabled{color:#777;border-color:#6b6b6b;border-color:rgba(107,107,107,.75);background-color:#333;background-color:rgba(0,0,0,.25)}.theme-syndicate .Input--fluid{display:block;width:auto}.theme-syndicate .Input__baseline{display:inline-block;color:rgba(0,0,0,0)}.theme-syndicate .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit}.theme-syndicate .Input__input::placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-syndicate .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-syndicate .Input__textarea{border:0;width:calc(100% + 4px);font-size:1em;line-height:1.4166666667em;margin-left:-.3333333333em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit;resize:both;overflow:auto;white-space:pre-wrap}.theme-syndicate .Input__textarea::placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-syndicate .Input__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-syndicate .Input--monospace .Input__input{font-family:Consolas,monospace}.theme-syndicate .NumberInput{position:relative;display:inline-block;border:.0833333333em solid #87ce87;border:.0833333333em solid rgba(135,206,135,.75);border-radius:.16em;color:#87ce87;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.theme-syndicate .NumberInput--fluid{display:block}.theme-syndicate .NumberInput__content{margin-left:.5em}.theme-syndicate .NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.theme-syndicate .NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #87ce87;background-color:#87ce87}.theme-syndicate .NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:#0a0a0a;color:#fff;text-align:right}.theme-syndicate .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:.16em;background-color:rgba(0,0,0,.5);transition:border-color .5s}.theme-syndicate .ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.theme-syndicate .ProgressBar__fill--animated{transition:background-color .5s,width .5s}.theme-syndicate .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-syndicate .ProgressBar--color--default{border:.0833333333em solid #306330}.theme-syndicate .ProgressBar--color--default .ProgressBar__fill{background-color:#306330}.theme-syndicate .ProgressBar--color--disabled{border:1px solid #999}.theme-syndicate .ProgressBar--color--disabled .ProgressBar__fill{background-color:#999}.theme-syndicate .Section{position:relative;margin-bottom:.5em;background-color:#390101;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-syndicate .Section:last-child{margin-bottom:0}.theme-syndicate .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #397439}.theme-syndicate .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-syndicate .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-syndicate .Section__rest{position:relative}.theme-syndicate .Section__content{padding:.66em .5em}.theme-syndicate .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-syndicate .Section--fill{display:flex;flex-direction:column;height:100%}.theme-syndicate .Section--fill>.Section__rest{flex-grow:1}.theme-syndicate .Section--fill>.Section__rest>.Section__content{height:100%}.theme-syndicate .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-syndicate .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-syndicate .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-syndicate .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-syndicate .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-syndicate .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-syndicate .Section .Section:first-child{margin-top:-.5em}.theme-syndicate .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-syndicate .Section .Section .Section .Section__titleText{font-size:1em}.theme-syndicate .Tooltip{z-index:999;padding:.5em .75em;pointer-events:none;text-align:left;transition:opacity .15s ease-out;background-color:#4a0202;color:#fff;box-shadow:.1em .1em 1.25em -.1em rgba(0,0,0,.5);border-radius:.16em;max-width:20.8333333333em}.theme-syndicate html,.theme-syndicate body{scrollbar-color:#7e0303 #400202}.theme-syndicate .Layout,.theme-syndicate .Layout *{scrollbar-base-color:#400202;scrollbar-face-color:#7e0303;scrollbar-3dlight-color:#550202;scrollbar-highlight-color:#550202;scrollbar-track-color:#400202;scrollbar-arrow-color:#fa3030;scrollbar-shadow-color:#7e0303}.theme-syndicate .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-syndicate .Layout__content--flexRow{display:flex;flex-flow:row}.theme-syndicate .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-syndicate .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-syndicate .Layout__content--noMargin{margin:0}.theme-syndicate .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#550202;background-image:linear-gradient(to bottom,#730303,#370101)}.theme-syndicate .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-syndicate .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-syndicate .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-syndicate .Window__contentPadding:after{height:0}.theme-syndicate .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-syndicate .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(117,22,22,.25);pointer-events:none}.theme-syndicate .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-syndicate .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-syndicate .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-syndicate .TitleBar{background-color:#910101;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-syndicate .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#910101;transition:color .25s,background-color .25s}.theme-syndicate .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-syndicate .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-syndicate .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-syndicate .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-syndicate .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-syndicate .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-syndicate .Layout__content{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMCIgdmlld0JveD0iMCAwIDIwMCAyODkuNzQyIiBvcGFjaXR5PSIuMzMiPjxwYXRoIGQ9Im0gOTMuNTM3Njc3LDAgYyAtMTguMTEzMTI1LDAgLTM0LjIyMDEzMywzLjExMTY0IC00OC4zMjM0ODQsOS4zMzQzNyAtMTMuOTY1MDkyLDYuMjIxNjcgLTI0LjYxMjQ0MiwxNS4wNzExNCAtMzEuOTQwNjUxLDI2LjU0NzEgLTcuMTg5OTM5OCwxMS4zMzc4OSAtMTAuMzAxMjI2NiwyNC43NDkxMSAtMTAuMzAxMjI2Niw0MC4yMzQ3OCAwLDEwLjY0NjYyIDIuNzI1MDAyNiwyMC40NjQ2NSA4LjE3NTExMTYsMjkuNDUyNTggNS42MTUyNzcsOC45ODY4NiAxNC4wMzgyNzcsMTcuMzUyMDQgMjUuMjY4ODIxLDI1LjA5NDM2IDExLjIzMDU0NCw3LjYwNTMxIDI2LjUwNzQyMSwxNS40MTgzNSA0NS44MzA1MTQsMjMuNDM3ODIgMTkuOTgzNzQ4LDguMjk1NTcgMzQuODQ4ODQ4LDE1LjU1NDcxIDQ0LjU5Mjk5OCwyMS43NzYzOCA5Ljc0NDE0LDYuMjIyNzMgMTYuNzYxNywxMi44NTg1IDIxLjA1NTcyLDE5LjkwOTUxIDQuMjk0MDQsNy4wNTIwOCA2LjQ0MTkzLDE1Ljc2NDA4IDYuNDQxOTMsMjYuMTM0NTkgMCwxNi4xNzcwMiAtNS4yMDE5NiwyOC40ODIyMiAtMTUuNjA2NzMsMzYuOTE2ODIgLTEwLjIzOTYsOC40MzQ3IC0yNS4wMjIwMywxMi42NTIzIC00NC4zNDUxNjksMTIuNjUyMyAtMTQuMDM4MTcxLDAgLTI1LjUxNTI0NywtMS42NTk0IC0zNC40MzM2MTgsLTQuOTc3NyAtOC45MTgzNywtMy40NTY2IC0xNi4xODU1NzIsLTguNzExMyAtMjEuODAwODM5LC0xNS43NjMzIC01LjYxNTI3NywtNy4wNTIxIC0xMC4wNzQ3OTUsLTE2LjY2MDg4IC0xMy4zNzc4OTksLTI4LjgyODEyIGwgLTI0Ljc3MzE2MjYyOTM5NDUsMCAwLDU2LjgyNjMyIEMgMzMuODU2NzY5LDI4Ni4wNzYwMSA2My43NDkwNCwyODkuNzQyMDEgODkuNjc4MzgzLDI4OS43NDIwMSBjIDE2LjAyMDAyNywwIDMwLjcxOTc4NywtMS4zODI3IDQ0LjA5NzMzNywtNC4xNDc5IDEzLjU0MjcyLC0yLjkwNDMgMjUuMTA0MSwtNy40Njc2IDM0LjY4MzA5LC0xMy42ODkzIDkuNzQ0MTMsLTYuMzU5NyAxNy4zNDA0MiwtMTQuNTE5NSAyMi43OTA1MiwtMjQuNDc0OCA1LjQ1MDEsLTEwLjA5MzMyIDguMTc1MTEsLTIyLjM5OTU5IDguMTc1MTEsLTM2LjkxNjgyIDAsLTEyLjk5NzY0IC0zLjMwMjEsLTI0LjMzNTM5IC05LjkwODI5LC0zNC4wMTQ2IC02LjQ0MTA1LC05LjgxNzI1IC0xNS41MjU0NSwtMTguNTI3MDcgLTI3LjI1MTQ2LC0yNi4xMzEzMyAtMTEuNTYwODUsLTcuNjA0MjcgLTI3LjkxMDgzLC0xNS44MzE0MiAtNDkuMDUwNjYsLTI0LjY4MDIyIC0xNy41MDY0NCwtNy4xOTAxMiAtMzAuNzE5NjY4LC0xMy42ODk0OCAtMzkuNjM4MDM4LC0xOS40OTcwMSAtOC45MTgzNzEsLTUuODA3NTIgLTE4LjYwNzQ3NCwtMTIuNDM0MDkgLTI0LjA5NjUyNCwtMTguODc0MTcgLTUuNDI2MDQzLC02LjM2NjE2IC05LjY1ODgyNiwtMTUuMDcwMDMgLTkuNjU4ODI2LC0yNC44ODcyOSAwLC05LjI2NDAxIDIuMDc1NDE0LC0xNy4yMTM0NSA2LjIyMzQ1NCwtMjMuODUwMzMgMTEuMDk4Mjk4LC0xNC4zOTc0OCA0MS4yODY2MzgsLTEuNzk1MDcgNDUuMDc1NjA5LDI0LjM0NzYyIDQuODM5MzkyLDYuNzc0OTEgOC44NDkzNSwxNi4yNDcyOSAxMi4wMjk1MTUsMjguNDE1NiBsIDIwLjUzMjM0LDAgMCwtNTUuOTk5NjcgYyAtNC40NzgyNSwtNS45MjQ0OCAtOS45NTQ4OCwtMTAuNjMyMjIgLTE1LjkwODM3LC0xNC4zNzQxMSAxLjY0MDU1LDAuNDc5MDUgMy4xOTAzOSwxLjAyMzc2IDQuNjM4NjUsMS42NDAyNCA2LjQ5ODYxLDIuNjI2MDcgMTIuMTY3OTMsNy4zMjc0NyAxNy4wMDczLDE0LjEwMzQ1IDQuODM5MzksNi43NzQ5MSA4Ljg0OTM1LDE2LjI0NTY3IDEyLjAyOTUyLDI4LjQxMzk3IDAsMCA4LjQ4MTI4LC0wLjEyODk0IDguNDg5NzgsLTAuMDAyIDAuNDE3NzYsNi40MTQ5NCAtMS43NTMzOSw5LjQ1Mjg2IC00LjEyMzQyLDEyLjU2MTA0IC0yLjQxNzQsMy4xNjk3OCAtNS4xNDQ4Niw2Ljc4OTczIC00LjAwMjc4LDEzLjAwMjkgMS41MDc4Niw4LjIwMzE4IDEwLjE4MzU0LDEwLjU5NjQyIDE0LjYyMTk0LDkuMzExNTQgLTMuMzE4NDIsLTAuNDk5MTEgLTUuMzE4NTUsLTEuNzQ5NDggLTUuMzE4NTUsLTEuNzQ5NDggMCwwIDEuODc2NDYsMC45OTg2OCA1LjY1MTE3LC0xLjM1OTgxIC0zLjI3Njk1LDAuOTU1NzEgLTEwLjcwNTI5LC0wLjc5NzM4IC0xMS44MDEyNSwtNi43NjMxMyAtMC45NTc1MiwtNS4yMDg2MSAwLjk0NjU0LC03LjI5NTE0IDMuNDAxMTMsLTEwLjUxNDgyIDIuNDU0NjIsLTMuMjE5NjggNS4yODQyNiwtNi45NTgzMSA0LjY4NDMsLTE0LjQ4ODI0IGwgMC4wMDMsMC4wMDIgOC45MjY3NiwwIDAsLTU1Ljk5OTY3IGMgLTE1LjA3MTI1LC0zLjg3MTY4IC0yNy42NTMxNCwtNi4zNjA0MiAtMzcuNzQ2NzEsLTcuNDY1ODYgLTkuOTU1MzEsLTEuMTA3NTUgLTIwLjE4ODIzLC0xLjY1OTgxIC0zMC42OTY2MTMsLTEuNjU5ODEgeiBtIDcwLjMyMTYwMywxNy4zMDg5MyAwLjIzODA1LDQwLjMwNDkgYyAxLjMxODA4LDEuMjI2NjYgMi40Mzk2NSwyLjI3ODE1IDMuMzQwODEsMy4xMDYwMiA0LjgzOTM5LDYuNzc0OTEgOC44NDkzNCwxNi4yNDU2NiAxMi4wMjk1MSwyOC40MTM5NyBsIDIwLjUzMjM0LDAgMCwtNTUuOTk5NjcgYyAtNi42NzczMSwtNC41OTM4MSAtMTkuODM2NDMsLTEwLjQ3MzA5IC0zNi4xNDA3MSwtMTUuODI1MjIgeiBtIC0yOC4xMjA0OSw1LjYwNTUxIDguNTY0NzksMTcuNzE2NTUgYyAtMTEuOTcwMzcsLTYuNDY2OTcgLTEzLjg0Njc4LC05LjcxNzI2IC04LjU2NDc5LC0xNy43MTY1NSB6IG0gMjIuNzk3MDUsMCBjIDIuNzcxNSw3Ljk5OTI5IDEuNzg3NDEsMTEuMjQ5NTggLTQuNDkzNTQsMTcuNzE2NTUgbCA0LjQ5MzU0LC0xNy43MTY1NSB6IG0gMTUuMjIxOTUsMjQuMDA4NDggOC41NjQ3OSwxNy43MTY1NSBjIC0xMS45NzAzOCwtNi40NjY5NyAtMTMuODQ2NzksLTkuNzE3MjYgLTguNTY0NzksLTE3LjcxNjU1IHogbSAyMi43OTcwNCwwIGMgMi43NzE1LDcuOTk5MjkgMS43ODc0MSwxMS4yNDk1OCAtNC40OTM1NCwxNy43MTY1NSBsIDQuNDkzNTQsLTE3LjcxNjU1IHogbSAtOTkuMTEzODQsMi4yMDc2NCA4LjU2NDc5LDE3LjcxNjU1IGMgLTExLjk3MDM4MiwtNi40NjY5NyAtMTMuODQ2NzgyLC05LjcxNzI2IC04LjU2NDc5LC0xNy43MTY1NSB6IG0gMjIuNzk1NDIsMCBjIDIuNzcxNSw3Ljk5OTI5IDEuNzg3NDEsMTEuMjQ5NTggLTQuNDkzNTQsMTcuNzE2NTUgbCA0LjQ5MzU0LC0xNy43MTY1NSB6IiAvPjwvc3ZnPjwhLS0gVGhpcyB3b3JrIGlzIGxpY2Vuc2VkIHVuZGVyIGEgQ3JlYXRpdmUgQ29tbW9ucyBBdHRyaWJ1dGlvbi1TaGFyZUFsaWtlIDQuMCBJbnRlcm5hdGlvbmFsIExpY2Vuc2UuIC0tPjwhLS0gaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbGljZW5zZXMvYnktc2EvNC4wLyAtLT4=)}.theme-syndicate .candystripe:nth-child(odd){background-color:rgba(0,0,0,.4)}.theme-syndicate .candystripe:nth-child(2n){background-color:rgba(0,0,0,.25)}.theme-nologo .Layout__content{background-image:none}.theme-noticeboard .color-black{color:#1a1a1a!important}.theme-noticeboard .color-white{color:#fff!important}.theme-noticeboard .color-red{color:#df3e3e!important}.theme-noticeboard .color-orange{color:#f37f33!important}.theme-noticeboard .color-yellow{color:#fbda21!important}.theme-noticeboard .color-olive{color:#cbe41c!important}.theme-noticeboard .color-green{color:#25ca4c!important}.theme-noticeboard .color-teal{color:#00d6cc!important}.theme-noticeboard .color-blue{color:#2e93de!important}.theme-noticeboard .color-violet{color:#7349cf!important}.theme-noticeboard .color-purple{color:#ad45d0!important}.theme-noticeboard .color-pink{color:#e34da1!important}.theme-noticeboard .color-brown{color:#b97447!important}.theme-noticeboard .color-grey{color:#848484!important}.theme-noticeboard .color-good{color:#68c22d!important}.theme-noticeboard .color-average{color:#f29a29!important}.theme-noticeboard .color-bad{color:#df3e3e!important}.theme-noticeboard .color-label{color:#8b9bb0!important}.theme-noticeboard .color-gold{color:#f3b22f!important}.theme-noticeboard .color-bg-black{background-color:#000!important}.theme-noticeboard .color-bg-white{background-color:#d9d9d9!important}.theme-noticeboard .color-bg-red{background-color:#bd2020!important}.theme-noticeboard .color-bg-orange{background-color:#d95e0c!important}.theme-noticeboard .color-bg-yellow{background-color:#d9b804!important}.theme-noticeboard .color-bg-olive{background-color:#9aad14!important}.theme-noticeboard .color-bg-green{background-color:#1b9638!important}.theme-noticeboard .color-bg-teal{background-color:#009a93!important}.theme-noticeboard .color-bg-blue{background-color:#1c71b1!important}.theme-noticeboard .color-bg-violet{background-color:#552dab!important}.theme-noticeboard .color-bg-purple{background-color:#8b2baa!important}.theme-noticeboard .color-bg-pink{background-color:#cf2082!important}.theme-noticeboard .color-bg-brown{background-color:#8c5836!important}.theme-noticeboard .color-bg-grey{background-color:#646464!important}.theme-noticeboard .color-bg-good{background-color:#4d9121!important}.theme-noticeboard .color-bg-average{background-color:#cd7a0d!important}.theme-noticeboard .color-bg-bad{background-color:#bd2020!important}.theme-noticeboard .color-bg-label{background-color:#657a94!important}.theme-noticeboard .color-bg-gold{background-color:#d6920c!important}.theme-noticeboard .color-border-black{border-color:#1a1a1a!important}.theme-noticeboard .color-border-white{border-color:#fff!important}.theme-noticeboard .color-border-red{border-color:#df3e3e!important}.theme-noticeboard .color-border-orange{border-color:#f37f33!important}.theme-noticeboard .color-border-yellow{border-color:#fbda21!important}.theme-noticeboard .color-border-olive{border-color:#cbe41c!important}.theme-noticeboard .color-border-green{border-color:#25ca4c!important}.theme-noticeboard .color-border-teal{border-color:#00d6cc!important}.theme-noticeboard .color-border-blue{border-color:#2e93de!important}.theme-noticeboard .color-border-violet{border-color:#7349cf!important}.theme-noticeboard .color-border-purple{border-color:#ad45d0!important}.theme-noticeboard .color-border-pink{border-color:#e34da1!important}.theme-noticeboard .color-border-brown{border-color:#b97447!important}.theme-noticeboard .color-border-grey{border-color:#848484!important}.theme-noticeboard .color-border-good{border-color:#68c22d!important}.theme-noticeboard .color-border-average{border-color:#f29a29!important}.theme-noticeboard .color-border-bad{border-color:#df3e3e!important}.theme-noticeboard .color-border-label{border-color:#8b9bb0!important}.theme-noticeboard .color-border-gold{border-color:#f3b22f!important}.theme-noticeboard .Section{position:relative;margin-bottom:.5em;background-color:#f2f2f2;box-sizing:border-box}.theme-noticeboard .Section:last-child{margin-bottom:0}.theme-noticeboard .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #4972a1}.theme-noticeboard .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-noticeboard .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-noticeboard .Section__rest{position:relative}.theme-noticeboard .Section__content{padding:.66em .5em}.theme-noticeboard .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-noticeboard .Section--fill{display:flex;flex-direction:column;height:100%}.theme-noticeboard .Section--fill>.Section__rest{flex-grow:1}.theme-noticeboard .Section--fill>.Section__rest>.Section__content{height:100%}.theme-noticeboard .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-noticeboard .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-noticeboard .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-noticeboard .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-noticeboard .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-noticeboard .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-noticeboard .Section .Section:first-child{margin-top:-.5em}.theme-noticeboard .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-noticeboard .Section .Section .Section .Section__titleText{font-size:1em}.theme-noticeboard .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#2b0f0c;background-image:linear-gradient(to bottom,#2b0f0c,#2b0f0c)}.theme-noticeboard .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-noticeboard .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-noticeboard .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-noticeboard .Window__contentPadding:after{height:0}.theme-noticeboard .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-noticeboard .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(69,37,33,.25);pointer-events:none}.theme-noticeboard .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-noticeboard .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-noticeboard .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-noticeboard .TitleBar{background-color:#2b0f0c;border-bottom:1px solid #2b0f0c;box-shadow:0 2px 2px #2b0f0c;box-shadow:0 .1666666667rem .1666666667rem #2b0f0c;user-select:none;-ms-user-select:none}.theme-noticeboard .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#2b0f0c;transition:color .25s,background-color .25s}.theme-noticeboard .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-noticeboard .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-noticeboard .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-noticeboard .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-noticeboard .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-noticeboard .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-noticeboard .Layout,.theme-noticeboard .Layout *{scrollbar-base-color:#f2f2f2;scrollbar-face-color:#e1e1e1;scrollbar-3dlight-color:#f2f2f2;scrollbar-highlight-color:#c8c8c8;scrollbar-track-color:#f2f2f2;scrollbar-arrow-color:#969696;scrollbar-shadow-color:#f2f2f2}.theme-noticeboard .Layout__content{background-image:none}.theme-noticeboard .Window__contentPadding{background-color:#824b28;box-shadow:inset 0 0 10px 1px rgba(0,0,0,.75);border-radius:1em}.theme-noticeboard .Stack--horizontal>.Stack__item{margin-left:1em}.theme-noticeboard .Stack--horizontal>.Stack__item:last-child{margin-right:1em}.theme-noticeboard .Section{font-family:Comic Sans MS,cursive,sans-serif;font-style:italic;white-space:pre-wrap;color:#000;box-shadow:5px 5px 5px rgba(0,0,0,.5);border-radius:100px 100px 200px 200px/10px;transition:all .1s ease-in-out}.theme-noticeboard .Section>.Section__rest>.Section__content{overflow-y:hidden;overflow-x:hidden}.theme-noticeboard .Section__content{margin-top:.25em}.theme-noticeboard .Section__title{margin-top:.5em;padding-bottom:0;border:0}.theme-noticeboard .Section__titleText{color:#000}.theme-noticeboard .Section:hover{transform:scale(1.15);border-radius:1em;box-shadow:0 0 20px 10px rgba(0,0,0,.33);z-index:2}.theme-noticeboard .Section:before{content:" ";display:block;width:10px;height:10px;background:linear-gradient(300deg,#640000,red 75%,#ff7d7d);box-shadow:1.5px 1.5px 5px rgba(0,0,0,.6);border-radius:100%;position:absolute;left:calc(50% - 12px);margin-top:.25em;transform:matrix(1,0,.4,.9,0,0)} +html,body{box-sizing:border-box;height:100%;margin:0;font-size:12px}html{overflow:hidden;cursor:default}body{overflow:auto;font-family:Verdana,Geneva,sans-serif}*,*:before,*:after{box-sizing:inherit}h1,h2,h3,h4,h5,h6{display:block;margin:0;padding:6px 0;padding:.5rem 0}h1{font-size:18px;font-size:1.5rem}h2{font-size:16px;font-size:1.333rem}h3{font-size:14px;font-size:1.167rem}h4{font-size:12px;font-size:1rem}td,th{vertical-align:baseline;text-align:left}.candystripe:nth-child(odd){background-color:rgba(0,0,0,.25)}.color-black{color:#1a1a1a!important}.color-white{color:#fff!important}.color-red{color:#df3e3e!important}.color-orange{color:#f37f33!important}.color-yellow{color:#fbda21!important}.color-olive{color:#cbe41c!important}.color-green{color:#25ca4c!important}.color-teal{color:#00d6cc!important}.color-blue{color:#2e93de!important}.color-violet{color:#7349cf!important}.color-purple{color:#ad45d0!important}.color-pink{color:#e34da1!important}.color-brown{color:#b97447!important}.color-grey{color:#848484!important}.color-good{color:#68c22d!important}.color-average{color:#f29a29!important}.color-bad{color:#df3e3e!important}.color-label{color:#8b9bb0!important}.color-gold{color:#f3b22f!important}.color-bg-black{background-color:#000!important}.color-bg-white{background-color:#d9d9d9!important}.color-bg-red{background-color:#bd2020!important}.color-bg-orange{background-color:#d95e0c!important}.color-bg-yellow{background-color:#d9b804!important}.color-bg-olive{background-color:#9aad14!important}.color-bg-green{background-color:#1b9638!important}.color-bg-teal{background-color:#009a93!important}.color-bg-blue{background-color:#1c71b1!important}.color-bg-violet{background-color:#552dab!important}.color-bg-purple{background-color:#8b2baa!important}.color-bg-pink{background-color:#cf2082!important}.color-bg-brown{background-color:#8c5836!important}.color-bg-grey{background-color:#646464!important}.color-bg-good{background-color:#4d9121!important}.color-bg-average{background-color:#cd7a0d!important}.color-bg-bad{background-color:#bd2020!important}.color-bg-label{background-color:#657a94!important}.color-bg-gold{background-color:#d6920c!important}.color-border-black{border-color:#1a1a1a!important}.color-border-white{border-color:#fff!important}.color-border-red{border-color:#df3e3e!important}.color-border-orange{border-color:#f37f33!important}.color-border-yellow{border-color:#fbda21!important}.color-border-olive{border-color:#cbe41c!important}.color-border-green{border-color:#25ca4c!important}.color-border-teal{border-color:#00d6cc!important}.color-border-blue{border-color:#2e93de!important}.color-border-violet{border-color:#7349cf!important}.color-border-purple{border-color:#ad45d0!important}.color-border-pink{border-color:#e34da1!important}.color-border-brown{border-color:#b97447!important}.color-border-grey{border-color:#848484!important}.color-border-good{border-color:#68c22d!important}.color-border-average{border-color:#f29a29!important}.color-border-bad{border-color:#df3e3e!important}.color-border-label{border-color:#8b9bb0!important}.color-border-gold{border-color:#f3b22f!important}.debug-layout,.debug-layout *:not(g):not(path){color:rgba(255,255,255,.9)!important;background:rgba(0,0,0,0)!important;outline:1px solid rgba(255,255,255,.5)!important;box-shadow:none!important;filter:none!important}.debug-layout:hover,.debug-layout *:not(g):not(path):hover{outline-color:rgba(255,255,255,.8)!important}.outline-dotted{outline-style:dotted!important}.outline-dashed{outline-style:dashed!important}.outline-solid{outline-style:solid!important}.outline-double{outline-style:double!important}.outline-groove{outline-style:groove!important}.outline-ridge{outline-style:ridge!important}.outline-inset{outline-style:inset!important}.outline-outset{outline-style:outset!important}.outline-color-black{outline:.167rem solid #1a1a1a!important}.outline-color-white{outline:.167rem solid #fff!important}.outline-color-red{outline:.167rem solid #df3e3e!important}.outline-color-orange{outline:.167rem solid #f37f33!important}.outline-color-yellow{outline:.167rem solid #fbda21!important}.outline-color-olive{outline:.167rem solid #cbe41c!important}.outline-color-green{outline:.167rem solid #25ca4c!important}.outline-color-teal{outline:.167rem solid #00d6cc!important}.outline-color-blue{outline:.167rem solid #2e93de!important}.outline-color-violet{outline:.167rem solid #7349cf!important}.outline-color-purple{outline:.167rem solid #ad45d0!important}.outline-color-pink{outline:.167rem solid #e34da1!important}.outline-color-brown{outline:.167rem solid #b97447!important}.outline-color-grey{outline:.167rem solid #848484!important}.outline-color-good{outline:.167rem solid #68c22d!important}.outline-color-average{outline:.167rem solid #f29a29!important}.outline-color-bad{outline:.167rem solid #df3e3e!important}.outline-color-label{outline:.167rem solid #8b9bb0!important}.outline-color-gold{outline:.167rem solid #f3b22f!important}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-baseline{text-align:baseline}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-pre{white-space:pre}.text-bold{font-weight:700}.text-italic{font-style:italic}.text-underline{text-decoration:underline}.BlockQuote{color:#8b9bb0;border-left:.1666666667em solid #8b9bb0;padding-left:.5em;margin-bottom:.5em}.BlockQuote:last-child{margin-bottom:0}.Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.Button:last-child{margin-right:0;margin-bottom:0}.Button .fa,.Button .fas,.Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.Button--hasContent .fa,.Button--hasContent .fas,.Button--hasContent .far{margin-right:.25em}.Button--hasContent.Button--iconRight .fa,.Button--hasContent.Button--iconRight .fas,.Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.Button--fluid{display:block;margin-left:0;margin-right:0}.Button--circular{border-radius:50%}.Button--compact{padding:0 .25em;line-height:1.333em}.Button--multiLine{white-space:normal;word-wrap:break-word}.Button--modal{float:right;z-index:1;margin-top:-.5rem}.Button--color--black{background-color:#000;color:#fff;transition:color .2s,background-color .2s}.Button--color--black:hover{background-color:#101010;color:#fff}.Button--color--black--translucent{background-color:rgba(0,0,0,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--black--translucent:hover{background-color:rgba(16,16,16,.5);color:#fff}.Button--color--white{background-color:#d9d9d9;color:#000;transition:color .2s,background-color .2s}.Button--color--white:hover{background-color:#f8f8f8;color:#000}.Button--color--white--translucent{background-color:rgba(217,217,217,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--white--translucent:hover{background-color:rgba(248,248,248,.5);color:#fff}.Button--color--red{background-color:#bd2020;color:#fff;transition:color .2s,background-color .2s}.Button--color--red:hover{background-color:#d93f3f;color:#fff}.Button--color--red--translucent{background-color:rgba(189,32,32,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--red--translucent:hover{background-color:rgba(217,63,63,.5);color:#fff}.Button--color--orange{background-color:#d95e0c;color:#fff;transition:color .2s,background-color .2s}.Button--color--orange:hover{background-color:#ef7e33;color:#fff}.Button--color--orange--translucent{background-color:rgba(217,94,12,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--orange--translucent:hover{background-color:rgba(239,126,51,.5);color:#fff}.Button--color--yellow{background-color:#d9b804;color:#000;transition:color .2s,background-color .2s}.Button--color--yellow:hover{background-color:#f5d523;color:#000}.Button--color--yellow--translucent{background-color:rgba(217,184,4,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--yellow--translucent:hover{background-color:rgba(245,213,35,.5);color:#fff}.Button--color--olive{background-color:#9aad14;color:#fff;transition:color .2s,background-color .2s}.Button--color--olive:hover{background-color:#bdd327;color:#fff}.Button--color--olive--translucent{background-color:rgba(154,173,20,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--olive--translucent:hover{background-color:rgba(189,211,39,.5);color:#fff}.Button--color--green{background-color:#1b9638;color:#fff;transition:color .2s,background-color .2s}.Button--color--green:hover{background-color:#2fb94f;color:#fff}.Button--color--green--translucent{background-color:rgba(27,150,56,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--green--translucent:hover{background-color:rgba(47,185,79,.5);color:#fff}.Button--color--teal{background-color:#009a93;color:#fff;transition:color .2s,background-color .2s}.Button--color--teal:hover{background-color:#10bdb6;color:#fff}.Button--color--teal--translucent{background-color:rgba(0,154,147,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--teal--translucent:hover{background-color:rgba(16,189,182,.5);color:#fff}.Button--color--blue{background-color:#1c71b1;color:#fff;transition:color .2s,background-color .2s}.Button--color--blue:hover{background-color:#308fd6;color:#fff}.Button--color--blue--translucent{background-color:rgba(28,113,177,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--blue--translucent:hover{background-color:rgba(48,143,214,.5);color:#fff}.Button--color--violet{background-color:#552dab;color:#fff;transition:color .2s,background-color .2s}.Button--color--violet:hover{background-color:#7249ca;color:#fff}.Button--color--violet--translucent{background-color:rgba(85,45,171,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--violet--translucent:hover{background-color:rgba(114,73,202,.5);color:#fff}.Button--color--purple{background-color:#8b2baa;color:#fff;transition:color .2s,background-color .2s}.Button--color--purple:hover{background-color:#aa46ca;color:#fff}.Button--color--purple--translucent{background-color:rgba(139,43,170,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--purple--translucent:hover{background-color:rgba(170,70,202,.5);color:#fff}.Button--color--pink{background-color:#cf2082;color:#fff;transition:color .2s,background-color .2s}.Button--color--pink:hover{background-color:#e04ca0;color:#fff}.Button--color--pink--translucent{background-color:rgba(207,32,130,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--pink--translucent:hover{background-color:rgba(224,76,160,.5);color:#fff}.Button--color--brown{background-color:#8c5836;color:#fff;transition:color .2s,background-color .2s}.Button--color--brown:hover{background-color:#ae724c;color:#fff}.Button--color--brown--translucent{background-color:rgba(140,88,54,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--brown--translucent:hover{background-color:rgba(174,114,76,.5);color:#fff}.Button--color--grey{background-color:#646464;color:#fff;transition:color .2s,background-color .2s}.Button--color--grey:hover{background-color:#818181;color:#fff}.Button--color--grey--translucent{background-color:rgba(100,100,100,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--grey--translucent:hover{background-color:rgba(129,129,129,.5);color:#fff}.Button--color--good{background-color:#4d9121;color:#fff;transition:color .2s,background-color .2s}.Button--color--good:hover{background-color:#67b335;color:#fff}.Button--color--good--translucent{background-color:rgba(77,145,33,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--good--translucent:hover{background-color:rgba(103,179,53,.5);color:#fff}.Button--color--average{background-color:#cd7a0d;color:#fff;transition:color .2s,background-color .2s}.Button--color--average:hover{background-color:#eb972b;color:#fff}.Button--color--average--translucent{background-color:rgba(205,122,13,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--average--translucent:hover{background-color:rgba(235,151,43,.5);color:#fff}.Button--color--bad{background-color:#bd2020;color:#fff;transition:color .2s,background-color .2s}.Button--color--bad:hover{background-color:#d93f3f;color:#fff}.Button--color--bad--translucent{background-color:rgba(189,32,32,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--bad--translucent:hover{background-color:rgba(217,63,63,.5);color:#fff}.Button--color--label{background-color:#657a94;color:#fff;transition:color .2s,background-color .2s}.Button--color--label:hover{background-color:#8a9aae;color:#fff}.Button--color--label--translucent{background-color:rgba(101,122,148,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--label--translucent:hover{background-color:rgba(138,154,174,.5);color:#fff}.Button--color--gold{background-color:#d6920c;color:#fff;transition:color .2s,background-color .2s}.Button--color--gold:hover{background-color:#eeaf30;color:#fff}.Button--color--gold--translucent{background-color:rgba(214,146,12,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--gold--translucent:hover{background-color:rgba(238,175,48,.5);color:#fff}.Button--color--transparent{background-color:rgba(37,37,37,0);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--transparent:hover{background-color:rgba(56,56,56,.81);color:#fff}.Button--color--default{background-color:#3e6189;color:#fff;transition:color .2s,background-color .2s}.Button--color--default:hover{background-color:#567daa;color:#fff}.Button--color--default--translucent{background-color:rgba(46,46,46,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--default--translucent:hover{background-color:rgba(68,68,68,.5);color:#fff}.Button--color--caution{background-color:#d9b804;color:#000;transition:color .2s,background-color .2s}.Button--color--caution:hover{background-color:#f5d523;color:#000}.Button--color--caution--translucent{background-color:rgba(217,184,4,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--caution--translucent:hover{background-color:rgba(245,213,35,.5);color:#fff}.Button--color--danger{background-color:#bd2020;color:#fff;transition:color .2s,background-color .2s}.Button--color--danger:hover{background-color:#d93f3f;color:#fff}.Button--color--danger--translucent{background-color:rgba(189,32,32,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.Button--color--danger--translucent:hover{background-color:rgba(217,63,63,.5);color:#fff}.Button--disabled{background-color:#999!important;color:rgba(255,255,255,.75)!important}.Button--disabled--translucent{background-color:rgba(77,23,23,.5)!important;color:rgba(255,255,255,.5)!important}.Button--selected,.Button--selected--translucent{background-color:#1b9638;color:#fff;transition:color .2s,background-color .2s}.Button--selected:hover,.Button--selected--translucent:hover{background-color:#2fb94f;color:#fff}.Collapsible{margin-bottom:.5rem}.Collapsible:last-child{margin-bottom:0}.ColorBox{display:inline-block;width:1em;height:1em;line-height:1em;text-align:center}.Dimmer{display:flex;justify-content:center;align-items:center;position:absolute;top:0;bottom:0;left:0;right:0;background-color:rgba(0,0,0,.75);z-index:5}.Dropdown{position:relative;align-items:center}.Dropdown__control{display:inline-block;align-items:center;font-family:Verdana,sans-serif;font-size:1em;width:8.3333333333em;line-height:1.3333333333em;-ms-user-select:none;user-select:none}.Dropdown__arrow-button{float:right;padding-left:.35em;width:1.2em;height:1.8333333333em;border-left:.0833333333em solid #000;border-left:.0833333333em solid rgba(0,0,0,.25)}.Dropdown__menu{overflow-y:auto;align-items:center;z-index:5;max-height:16.6666666667em;border-radius:0 0 .1666666667em .1666666667em;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75)}.Dropdown__menu-scroll{overflow-y:scroll}.Dropdown__menuentry{padding:.1666666667em .3333333333em;font-family:Verdana,sans-serif;font-size:1em;line-height:1.4166666667em;transition:background-color .1s ease-out}.Dropdown__menuentry.selected{background-color:rgba(255,255,255,.5)!important;transition:background-color 0ms}.Dropdown__menuentry:hover{background-color:rgba(255,255,255,.2);transition:background-color 0ms}.Dropdown__over{top:auto;bottom:100%}.Dropdown__selected-text{display:inline-block;text-overflow:ellipsis;white-space:nowrap;height:1.4166666667em;width:calc(100% - 1.2em);text-align:left;padding-top:2.5px}.Flex{display:-ms-flexbox;display:flex}.Flex--inline{display:inline-flex}.Flex--iefix{display:block}.Flex--iefix.Flex--inline,.Flex__item--iefix{display:inline-block}.Flex--iefix--column>.Flex__item--iefix{display:block}.IconStack>.Icon{position:absolute;width:100%;text-align:center}.IconStack{position:relative;display:inline-block;height:7em;width:10em;line-height:2em;vertical-align:middle}.IconStack:after{color:rgba(0,0,0,0);content:"."}.color__black{background-color:rgba(0,0,0,.2);color:#fff;border:solid rgba(32,32,32,.2);border-width:1px;transition:background-color .2s,border-color .2s}.color__black:hover{background-color:rgba(32,32,32,.2)}.contentColor__black{background-color:#000;color:#fff;border:solid #101010;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.buttonsContainerColor__black{background-color:rgba(0,0,0,.33);color:#fff;border:solid rgba(32,32,32,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.color__white{background-color:rgba(217,217,217,.2);color:#000;border:solid rgba(250,250,250,.2);border-width:1px;transition:background-color .2s,border-color .2s}.color__white:hover{background-color:rgba(250,250,250,.2)}.contentColor__white{background-color:#d9d9d9;color:#000;border:solid #f8f8f8;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.buttonsContainerColor__white{background-color:rgba(217,217,217,.33);color:#000;border:solid rgba(250,250,250,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.color__red{background-color:rgba(189,32,32,.2);color:#fff;border:solid rgba(227,112,112,.2);border-width:1px;transition:background-color .2s,border-color .2s}.color__red:hover{background-color:rgba(227,112,112,.2)}.contentColor__red{background-color:#bd2020;color:#fff;border:solid #d93f3f;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.buttonsContainerColor__red{background-color:rgba(189,32,32,.33);color:#fff;border:solid rgba(227,112,112,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.color__orange{background-color:rgba(217,94,12,.2);color:#fff;border:solid rgba(244,162,107,.2);border-width:1px;transition:background-color .2s,border-color .2s}.color__orange:hover{background-color:rgba(244,162,107,.2)}.contentColor__orange{background-color:#d95e0c;color:#fff;border:solid #ef7e33;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.buttonsContainerColor__orange{background-color:rgba(217,94,12,.33);color:#fff;border:solid rgba(244,162,107,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.color__yellow{background-color:rgba(217,184,4,.2);color:#000;border:solid rgba(248,225,91,.2);border-width:1px;transition:background-color .2s,border-color .2s}.color__yellow:hover{background-color:rgba(248,225,91,.2)}.contentColor__yellow{background-color:#d9b804;color:#000;border:solid #f5d523;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.buttonsContainerColor__yellow{background-color:rgba(217,184,4,.33);color:#000;border:solid rgba(248,225,91,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.color__olive{background-color:rgba(154,173,20,.2);color:#000;border:solid rgba(209,228,79,.2);border-width:1px;transition:background-color .2s,border-color .2s}.color__olive:hover{background-color:rgba(209,228,79,.2)}.contentColor__olive{background-color:#9aad14;color:#000;border:solid #bdd327;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.buttonsContainerColor__olive{background-color:rgba(154,173,20,.33);color:#000;border:solid rgba(209,228,79,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.color__green{background-color:rgba(27,150,56,.2);color:#fff;border:solid rgba(72,214,105,.2);border-width:1px;transition:background-color .2s,border-color .2s}.color__green:hover{background-color:rgba(72,214,105,.2)}.contentColor__green{background-color:#1b9638;color:#fff;border:solid #2fb94f;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.buttonsContainerColor__green{background-color:rgba(27,150,56,.33);color:#fff;border:solid rgba(72,214,105,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.color__teal{background-color:rgba(0,154,147,.2);color:#fff;border:solid rgba(32,225,216,.2);border-width:1px;transition:background-color .2s,border-color .2s}.color__teal:hover{background-color:rgba(32,225,216,.2)}.contentColor__teal{background-color:#009a93;color:#fff;border:solid #10bdb6;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.buttonsContainerColor__teal{background-color:rgba(0,154,147,.33);color:#fff;border:solid rgba(32,225,216,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.color__blue{background-color:rgba(28,113,177,.2);color:#fff;border:solid rgba(96,169,224,.2);border-width:1px;transition:background-color .2s,border-color .2s}.color__blue:hover{background-color:rgba(96,169,224,.2)}.contentColor__blue{background-color:#1c71b1;color:#fff;border:solid #308fd6;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.buttonsContainerColor__blue{background-color:rgba(28,113,177,.33);color:#fff;border:solid rgba(96,169,224,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.color__violet{background-color:rgba(85,45,171,.2);color:#fff;border:solid rgba(149,119,215,.2);border-width:1px;transition:background-color .2s,border-color .2s}.color__violet:hover{background-color:rgba(149,119,215,.2)}.contentColor__violet{background-color:#552dab;color:#fff;border:solid #7249ca;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.buttonsContainerColor__violet{background-color:rgba(85,45,171,.33);color:#fff;border:solid rgba(149,119,215,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.color__purple{background-color:rgba(139,43,170,.2);color:#fff;border:solid rgba(190,115,215,.2);border-width:1px;transition:background-color .2s,border-color .2s}.color__purple:hover{background-color:rgba(190,115,215,.2)}.contentColor__purple{background-color:#8b2baa;color:#fff;border:solid #aa46ca;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.buttonsContainerColor__purple{background-color:rgba(139,43,170,.33);color:#fff;border:solid rgba(190,115,215,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.color__pink{background-color:rgba(207,32,130,.2);color:#fff;border:solid rgba(233,129,188,.2);border-width:1px;transition:background-color .2s,border-color .2s}.color__pink:hover{background-color:rgba(233,129,188,.2)}.contentColor__pink{background-color:#cf2082;color:#fff;border:solid #e04ca0;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.buttonsContainerColor__pink{background-color:rgba(207,32,130,.33);color:#fff;border:solid rgba(233,129,188,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.color__brown{background-color:rgba(140,88,54,.2);color:#fff;border:solid rgba(195,144,111,.2);border-width:1px;transition:background-color .2s,border-color .2s}.color__brown:hover{background-color:rgba(195,144,111,.2)}.contentColor__brown{background-color:#8c5836;color:#fff;border:solid #ae724c;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.buttonsContainerColor__brown{background-color:rgba(140,88,54,.33);color:#fff;border:solid rgba(195,144,111,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.color__grey{background-color:rgba(100,100,100,.2);color:#fff;border:solid rgba(157,157,157,.2);border-width:1px;transition:background-color .2s,border-color .2s}.color__grey:hover{background-color:rgba(157,157,157,.2)}.contentColor__grey{background-color:#646464;color:#fff;border:solid #818181;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.buttonsContainerColor__grey{background-color:rgba(100,100,100,.33);color:#fff;border:solid rgba(157,157,157,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.color__good{background-color:rgba(77,145,33,.2);color:#fff;border:solid rgba(130,208,79,.2);border-width:1px;transition:background-color .2s,border-color .2s}.color__good:hover{background-color:rgba(130,208,79,.2)}.contentColor__good{background-color:#4d9121;color:#fff;border:solid #67b335;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.buttonsContainerColor__good{background-color:rgba(77,145,33,.33);color:#fff;border:solid rgba(130,208,79,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.color__average{background-color:rgba(205,122,13,.2);color:#fff;border:solid rgba(241,178,96,.2);border-width:1px;transition:background-color .2s,border-color .2s}.color__average:hover{background-color:rgba(241,178,96,.2)}.contentColor__average{background-color:#cd7a0d;color:#fff;border:solid #eb972b;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.buttonsContainerColor__average{background-color:rgba(205,122,13,.33);color:#fff;border:solid rgba(241,178,96,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.color__bad{background-color:rgba(189,32,32,.2);color:#fff;border:solid rgba(227,112,112,.2);border-width:1px;transition:background-color .2s,border-color .2s}.color__bad:hover{background-color:rgba(227,112,112,.2)}.contentColor__bad{background-color:#bd2020;color:#fff;border:solid #d93f3f;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.buttonsContainerColor__bad{background-color:rgba(189,32,32,.33);color:#fff;border:solid rgba(227,112,112,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.color__label{background-color:rgba(101,122,148,.2);color:#fff;border:solid rgba(175,186,201,.2);border-width:1px;transition:background-color .2s,border-color .2s}.color__label:hover{background-color:rgba(175,186,201,.2)}.contentColor__label{background-color:#657a94;color:#fff;border:solid #8a9aae;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.buttonsContainerColor__label{background-color:rgba(101,122,148,.33);color:#fff;border:solid rgba(175,186,201,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.color__gold{background-color:rgba(214,146,12,.2);color:#000;border:solid rgba(243,197,103,.2);border-width:1px;transition:background-color .2s,border-color .2s}.color__gold:hover{background-color:rgba(243,197,103,.2)}.contentColor__gold{background-color:#d6920c;color:#000;border:solid #eeaf30;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.buttonsContainerColor__gold{background-color:rgba(214,146,12,.33);color:#000;border:solid rgba(243,197,103,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.color__default{background-color:rgba(53,53,53,.2);color:#fff;border:solid rgba(99,99,99,.2);border-width:1px;transition:background-color .2s,border-color .2s}.color__default:hover{background-color:rgba(99,99,99,.2)}.disabled{background-color:rgba(99,29,29,.25)!important;border-color:rgba(99,29,29,.25)!important}.selected{background-color:rgba(27,150,56,.2);color:#fff;border:solid rgba(27,150,56,.25);border-width:1px;transition:background-color .2s,border-color .2s}.selected:hover{background-color:rgba(72,214,105,.2)}.contentColor__default{background-color:#313131;color:#fff;border:solid #404040;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.contentDisabled{background-color:#631d1d!important;border-top:1px solid #803131!important}.contentSelected{background-color:#1b9638;color:#fff;border:solid #2fb94f;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.buttonsContainerColor__default{background-color:rgba(53,53,53,.2);color:#fff;border:solid rgba(99,99,99,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.ImageButton{display:inline-table;position:relative;text-align:center;margin:.25em;user-select:none;-ms-user-select:none}.ImageButton .noAction{pointer-events:none}.ImageButton .container{display:flex;flex-direction:column;border-radius:.33em}.ImageButton .image{position:relative;align-self:center;pointer-events:none;overflow:hidden;line-height:0;padding:.25em;border-radius:.33em}.ImageButton .buttonsContainer{display:flex;position:absolute;overflow:hidden;left:1px;bottom:1.8em;max-width:100%;z-index:1}.ImageButton .buttonsContainer.buttonsAltContainer{overflow:visible;flex-direction:column;pointer-events:none;top:1px;bottom:inherit!important}.ImageButton .buttonsContainer.buttonsEmpty{bottom:1px}.ImageButton .buttonsContainer>*{margin:0!important;padding:0 .2em!important;border-radius:0!important}.ImageButton .content{-ms-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:.25em .5em;margin:-1px;border-radius:0 0 .33em .33em;z-index:2}.fluid{display:flex;flex-direction:row;position:relative;text-align:center;margin:0 0 .5em;user-select:none;-ms-user-select:none}.fluid:last-of-type{margin-bottom:0}.fluid .info{display:flex;flex-direction:column;justify-content:center;flex:1}.fluid .title{font-weight:700;padding:.5em}.fluid .title.divider{margin:0 .5em;border-bottom:.1666666667em solid rgba(255,255,255,.1)}.fluid .contentFluid{padding:.5em;color:#fff}.fluid .container{flex-direction:row;flex:1}.fluid .container.hasButtons{border-radius:.33em 0 0 .33em;border-width:1px 0 1px 1px}.fluid .image{padding:0}.fluid .buttonsContainer{position:relative;left:inherit;bottom:inherit;border-radius:0 .33em .33em 0}.fluid .buttonsContainer.buttonsEmpty{bottom:inherit}.fluid .buttonsContainer.buttonsAltContainer{overflow:hidden;pointer-events:auto;top:inherit}.fluid .buttonsContainer.buttonsAltContainer>*{border-top:1px solid rgba(255,255,255,.075)}.fluid .buttonsContainer.buttonsAltContainer>*:first-child{border-top:0}.fluid .buttonsContainer>*{display:inline-flex;flex-direction:column;justify-content:center;text-align:center;white-space:pre-wrap;line-height:1.1666666667em;height:100%;border-left:1px solid rgba(255,255,255,.075)}.Knob{position:relative;font-size:1rem;width:2.6em;height:2.6em;margin:0 auto -.2em;cursor:n-resize}.Knob:after{content:".";color:rgba(0,0,0,0);line-height:2.5em}.Knob__circle{position:absolute;top:.1em;bottom:.1em;left:.1em;right:.1em;margin:.3em;background-color:#333;background-image:linear-gradient(to bottom,rgba(255,255,255,.15),rgba(255,255,255,0));border-radius:50%;box-shadow:0 .05em .5em rgba(0,0,0,.5)}.Knob__cursorBox{position:absolute;top:0;bottom:0;left:0;right:0}.Knob__cursor{position:relative;top:.05em;margin:0 auto;width:.2em;height:.8em;background-color:rgba(255,255,255,.9)}.Knob__popupValue,.Knob__popupValue--right{position:absolute;top:-2rem;right:50%;font-size:1rem;text-align:center;padding:.25rem .5rem;color:#fff;background-color:#000;transform:translate(50%);white-space:nowrap}.Knob__popupValue--right{top:.25rem;right:-50%}.Knob__ring{position:absolute;top:0;bottom:0;left:0;right:0;padding:.1em}.Knob__ringTrackPivot{transform:rotate(135deg)}.Knob__ringTrack{fill:rgba(0,0,0,0);stroke:rgba(255,255,255,.1);stroke-width:8;stroke-linecap:round;stroke-dasharray:235.62}.Knob__ringFillPivot{transform:rotate(135deg)}.Knob--bipolar .Knob__ringFillPivot{transform:rotate(270deg)}.Knob__ringFill{fill:rgba(0,0,0,0);stroke:#6a96c9;stroke-width:8;stroke-linecap:round;stroke-dasharray:314.16;transition:stroke 50ms}.Knob--color--black .Knob__ringFill{stroke:#1a1a1a}.Knob--color--white .Knob__ringFill{stroke:#fff}.Knob--color--red .Knob__ringFill{stroke:#df3e3e}.Knob--color--orange .Knob__ringFill{stroke:#f37f33}.Knob--color--yellow .Knob__ringFill{stroke:#fbda21}.Knob--color--olive .Knob__ringFill{stroke:#cbe41c}.Knob--color--green .Knob__ringFill{stroke:#25ca4c}.Knob--color--teal .Knob__ringFill{stroke:#00d6cc}.Knob--color--blue .Knob__ringFill{stroke:#2e93de}.Knob--color--violet .Knob__ringFill{stroke:#7349cf}.Knob--color--purple .Knob__ringFill{stroke:#ad45d0}.Knob--color--pink .Knob__ringFill{stroke:#e34da1}.Knob--color--brown .Knob__ringFill{stroke:#b97447}.Knob--color--grey .Knob__ringFill{stroke:#848484}.Knob--color--good .Knob__ringFill{stroke:#68c22d}.Knob--color--average .Knob__ringFill{stroke:#f29a29}.Knob--color--bad .Knob__ringFill{stroke:#df3e3e}.Knob--color--label .Knob__ringFill{stroke:#8b9bb0}.Knob--color--gold .Knob__ringFill{stroke:#f3b22f}.LabeledList{display:table;width:100%;width:calc(100% + 1em);border-collapse:collapse;border-spacing:0;margin:-.25em -.5em 0;padding:0}.LabeledList__row{display:table-row}.LabeledList__row:last-child .LabeledList__cell{padding-bottom:0}.LabeledList__cell{display:table-cell;margin:0;padding:.25em .5em;border:0;text-align:left;vertical-align:baseline}.LabeledList__label{width:1%;white-space:nowrap;min-width:5em}.LabeledList__buttons{width:.1%;white-space:nowrap;text-align:right;padding-top:.0833333333em;padding-bottom:0}.LabeledList__breakContents{word-break:break-all;word-wrap:break-word}.Modal{background-color:#252525;max-width:calc(100% - 1rem);padding:1rem;scrollbar-base-color:#1c1c1c;scrollbar-face-color:#3b3b3b;scrollbar-3dlight-color:#252525;scrollbar-highlight-color:#252525;scrollbar-track-color:#1c1c1c;scrollbar-arrow-color:#929292;scrollbar-shadow-color:#3b3b3b}.NanoMap__container{overflow:hidden;width:100%;height:100%;z-index:1}.NanoMap__marker{z-index:10;padding:0;margin:0}.NanoMap__button{padding:3px;font-size:12px;border:2px solid #000}.NanoMap__button:hover{background-color:#adff2f}.NanoMap__zchooser{z-index:21;background-color:rgba(0,0,0,.33);position:absolute;top:60px;left:0;padding:.5rem;width:3%}.NanoMap__zoomer{z-index:20;background-color:rgba(0,0,0,.33);position:absolute;top:30px;left:0;padding:.5rem;width:24%}.NoticeBox{padding:.33em .5em;margin-bottom:.5em;box-shadow:none;font-weight:700;font-style:italic;color:#000;background-color:#bb9b68;background-image:repeating-linear-gradient(-45deg,transparent,transparent .8333333333em,rgba(0,0,0,.1) .8333333333em,rgba(0,0,0,.1) 1.6666666667em)}.NoticeBox--color--black{color:#fff;background-color:#000}.NoticeBox--color--white{color:#000;background-color:#b3b3b3}.NoticeBox--color--red{color:#fff;background-color:#701f1f}.NoticeBox--color--orange{color:#fff;background-color:#854114}.NoticeBox--color--yellow{color:#000;background-color:#83710d}.NoticeBox--color--olive{color:#000;background-color:#576015}.NoticeBox--color--green{color:#fff;background-color:#174e24}.NoticeBox--color--teal{color:#fff;background-color:#064845}.NoticeBox--color--blue{color:#fff;background-color:#1b4565}.NoticeBox--color--violet{color:#fff;background-color:#3b2864}.NoticeBox--color--purple{color:#fff;background-color:#542663}.NoticeBox--color--pink{color:#fff;background-color:#802257}.NoticeBox--color--brown{color:#fff;background-color:#4c3729}.NoticeBox--color--grey{color:#fff;background-color:#3e3e3e}.NoticeBox--color--good{color:#fff;background-color:#2e4b1a}.NoticeBox--color--average{color:#fff;background-color:#7b4e13}.NoticeBox--color--bad{color:#fff;background-color:#701f1f}.NoticeBox--color--label{color:#fff;background-color:#53565a}.NoticeBox--color--gold{color:#fff;background-color:#825d13}.NoticeBox--type--info{color:#fff;background-color:#235982}.NoticeBox--type--success{color:#fff;background-color:#1e662f}.NoticeBox--type--warning{color:#fff;background-color:#a95219}.NoticeBox--type--danger{color:#fff;background-color:#8f2828}.NumberInput{position:relative;display:inline-block;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;color:#88bfff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.NumberInput--fluid{display:block}.NumberInput__content{margin-left:.5em}.NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #88bfff;background-color:#88bfff}.NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:#0a0a0a;color:#fff;text-align:right}.ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:.16em;background-color:rgba(0,0,0,0);transition:border-color .5s}.ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.ProgressBar__fill--animated{transition:background-color .5s,width .5s}.ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.ProgressBar--color--default{border:.0833333333em solid #3e6189}.ProgressBar--color--default .ProgressBar__fill{background-color:#3e6189}.ProgressBar--color--disabled{border:1px solid #999}.ProgressBar--color--disabled .ProgressBar__fill{background-color:#999}.ProgressBar--color--black{border:.0833333333em solid #000!important}.ProgressBar--color--black .ProgressBar__fill{background-color:#000}.ProgressBar--color--white{border:.0833333333em solid #d9d9d9!important}.ProgressBar--color--white .ProgressBar__fill{background-color:#d9d9d9}.ProgressBar--color--red{border:.0833333333em solid #bd2020!important}.ProgressBar--color--red .ProgressBar__fill{background-color:#bd2020}.ProgressBar--color--orange{border:.0833333333em solid #d95e0c!important}.ProgressBar--color--orange .ProgressBar__fill{background-color:#d95e0c}.ProgressBar--color--yellow{border:.0833333333em solid #d9b804!important}.ProgressBar--color--yellow .ProgressBar__fill{background-color:#d9b804}.ProgressBar--color--olive{border:.0833333333em solid #9aad14!important}.ProgressBar--color--olive .ProgressBar__fill{background-color:#9aad14}.ProgressBar--color--green{border:.0833333333em solid #1b9638!important}.ProgressBar--color--green .ProgressBar__fill{background-color:#1b9638}.ProgressBar--color--teal{border:.0833333333em solid #009a93!important}.ProgressBar--color--teal .ProgressBar__fill{background-color:#009a93}.ProgressBar--color--blue{border:.0833333333em solid #1c71b1!important}.ProgressBar--color--blue .ProgressBar__fill{background-color:#1c71b1}.ProgressBar--color--violet{border:.0833333333em solid #552dab!important}.ProgressBar--color--violet .ProgressBar__fill{background-color:#552dab}.ProgressBar--color--purple{border:.0833333333em solid #8b2baa!important}.ProgressBar--color--purple .ProgressBar__fill{background-color:#8b2baa}.ProgressBar--color--pink{border:.0833333333em solid #cf2082!important}.ProgressBar--color--pink .ProgressBar__fill{background-color:#cf2082}.ProgressBar--color--brown{border:.0833333333em solid #8c5836!important}.ProgressBar--color--brown .ProgressBar__fill{background-color:#8c5836}.ProgressBar--color--grey{border:.0833333333em solid #646464!important}.ProgressBar--color--grey .ProgressBar__fill{background-color:#646464}.ProgressBar--color--good{border:.0833333333em solid #4d9121!important}.ProgressBar--color--good .ProgressBar__fill{background-color:#4d9121}.ProgressBar--color--average{border:.0833333333em solid #cd7a0d!important}.ProgressBar--color--average .ProgressBar__fill{background-color:#cd7a0d}.ProgressBar--color--bad{border:.0833333333em solid #bd2020!important}.ProgressBar--color--bad .ProgressBar__fill{background-color:#bd2020}.ProgressBar--color--label{border:.0833333333em solid #657a94!important}.ProgressBar--color--label .ProgressBar__fill{background-color:#657a94}.ProgressBar--color--gold{border:.0833333333em solid #d6920c!important}.ProgressBar--color--gold .ProgressBar__fill{background-color:#d6920c}.RoundGauge{font-size:1rem;width:2.6em;height:1.3em;margin:0 auto .2em}.RoundGauge__ringTrack{fill:rgba(0,0,0,0);stroke:rgba(255,255,255,.1);stroke-width:10;stroke-dasharray:157.08;stroke-dashoffset:157.08}.RoundGauge__ringFill{fill:rgba(0,0,0,0);stroke:#6a96c9;stroke-width:10;stroke-dasharray:314.16;transition:stroke 50ms}.RoundGauge__needle,.RoundGauge__ringFill{transition:transform 50ms ease-in-out}.RoundGauge__needleLine,.RoundGauge__needleMiddle{fill:#db2828}.RoundGauge__alert{fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;fill:rgba(255,255,255,.1)}.RoundGauge__alert.max{fill:#db2828}.RoundGauge--color--black.RoundGauge__ringFill{stroke:#1a1a1a}.RoundGauge--color--white.RoundGauge__ringFill{stroke:#fff}.RoundGauge--color--red.RoundGauge__ringFill{stroke:#df3e3e}.RoundGauge--color--orange.RoundGauge__ringFill{stroke:#f37f33}.RoundGauge--color--yellow.RoundGauge__ringFill{stroke:#fbda21}.RoundGauge--color--olive.RoundGauge__ringFill{stroke:#cbe41c}.RoundGauge--color--green.RoundGauge__ringFill{stroke:#25ca4c}.RoundGauge--color--teal.RoundGauge__ringFill{stroke:#00d6cc}.RoundGauge--color--blue.RoundGauge__ringFill{stroke:#2e93de}.RoundGauge--color--violet.RoundGauge__ringFill{stroke:#7349cf}.RoundGauge--color--purple.RoundGauge__ringFill{stroke:#ad45d0}.RoundGauge--color--pink.RoundGauge__ringFill{stroke:#e34da1}.RoundGauge--color--brown.RoundGauge__ringFill{stroke:#b97447}.RoundGauge--color--grey.RoundGauge__ringFill{stroke:#848484}.RoundGauge--color--good.RoundGauge__ringFill{stroke:#68c22d}.RoundGauge--color--average.RoundGauge__ringFill{stroke:#f29a29}.RoundGauge--color--bad.RoundGauge__ringFill{stroke:#df3e3e}.RoundGauge--color--label.RoundGauge__ringFill{stroke:#8b9bb0}.RoundGauge--color--gold.RoundGauge__ringFill{stroke:#f3b22f}.RoundGauge__alert--black{fill:#1a1a1a;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--white{fill:#fff;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--red{fill:#df3e3e;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--orange{fill:#f37f33;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--yellow{fill:#fbda21;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--olive{fill:#cbe41c;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--green{fill:#25ca4c;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--teal{fill:#00d6cc;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--blue{fill:#2e93de;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--violet{fill:#7349cf;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--purple{fill:#ad45d0;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--pink{fill:#e34da1;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--brown{fill:#b97447;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--grey{fill:#848484;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--good{fill:#68c22d;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--average{fill:#f29a29;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--bad{fill:#df3e3e;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--label{fill:#8b9bb0;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}.RoundGauge__alert--gold{fill:#f3b22f;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:RoundGauge__alertAnim 1s cubic-bezier(.34,1.56,.64,1) infinite}@keyframes RoundGauge__alertAnim{0%{opacity:.1}50%{opacity:1}to{opacity:.1}}.Section{position:relative;margin-bottom:.5em;background-color:#191919;background-color:rgba(0,0,0,.33);box-sizing:border-box}.Section:last-child{margin-bottom:0}.Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #4972a1}.Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.Section__rest{position:relative}.Section__content{padding:.66em .5em}.Section--fitted>.Section__rest>.Section__content{padding:0}.Section--fill{display:flex;flex-direction:column;height:100%}.Section--fill>.Section__rest{flex-grow:1}.Section--fill>.Section__rest>.Section__content{height:100%}.Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.Section--scrollable{overflow-x:hidden;overflow-y:hidden}.Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.Section .Section:first-child{margin-top:-.5em}.Section .Section .Section__titleText{font-size:1.0833333333em}.Section .Section .Section .Section__titleText{font-size:1em}.Slider:not(.Slider__disabled){cursor:e-resize}.Slider__cursorOffset{position:absolute;top:0;left:0;bottom:0;transition:none!important}.Slider__cursor{position:absolute;top:0;right:-.0833333333em;bottom:0;width:0;border-left:.1666666667em solid #fff}.Slider__pointer{position:absolute;right:-.4166666667em;bottom:-.3333333333em;width:0;height:0;border-left:.4166666667em solid rgba(0,0,0,0);border-right:.4166666667em solid rgba(0,0,0,0);border-bottom:.4166666667em solid #fff}.Slider__popupValue{position:absolute;right:0;top:-2rem;font-size:1rem;padding:.25rem .5rem;color:#fff;background-color:#000;transform:translate(50%);white-space:nowrap}.Divider--horizontal{margin:.5em 0}.Divider--horizontal:not(.Divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.Divider--vertical{height:100%;margin:0 .5em}.Divider--vertical:not(.Divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.Stack--fill{height:100%}.Stack--horizontal>.Stack__item{margin-left:.5em}.Stack--horizontal>.Stack__item:first-child{margin-left:0}.Stack--vertical>.Stack__item{margin-top:.5em}.Stack--vertical>.Stack__item:first-child{margin-top:0}.Stack--zebra>.Stack__item:nth-child(2n){background-color:rgba(0,0,0,.33)}.Stack--horizontal>.Stack__divider:not(.Stack__divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.Stack--vertical>.Stack__divider:not(.Stack__divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.Table{display:table;width:100%;border-collapse:collapse;border-spacing:0;margin:0}.Table--collapsing{width:auto}.Table__row{display:table-row}.Table__cell{display:table-cell;padding:0 .25em}.Table__cell:first-child{padding-left:0}.Table__cell:last-child{padding-right:0}.Table__row--header .Table__cell,.Table__cell--header{font-weight:700;padding-bottom:.5em}.Table__cell--collapsing{width:1%;white-space:nowrap}.Tabs{display:flex;align-items:stretch;overflow:hidden;background-color:rgba(0,0,0,.33)}.Tabs--fill{height:100%}.Section .Tabs{background-color:rgba(0,0,0,0)}.Section:not(.Section--fitted) .Tabs{margin:0 -.5em .5em}.Section:not(.Section--fitted) .Tabs:first-child{margin-top:-.5em}.Tabs--vertical{flex-direction:column;padding:.25em .25em .25em 0}.Tabs--horizontal{margin-bottom:.5em;padding:.25em .25em 0}.Tabs--horizontal:last-child{margin-bottom:0}.Tabs__Tab{flex-grow:0}.Tabs--fluid .Tabs__Tab{flex-grow:1}.Tab{display:flex;align-items:center;justify-content:space-between;background-color:rgba(0,0,0,0);color:rgba(255,255,255,.5);min-height:2.25em;min-width:4em;transition:background-color 50ms ease-out}.Tab:not(.Tab--selected):hover{background-color:rgba(255,255,255,.075);transition:background-color 0}.Tab--selected{background-color:rgba(255,255,255,.125);color:#dfe7f0}.Tab__text{flex-grow:1;margin:0 .5em}.Tab__left{min-width:1.5em;text-align:center;margin-left:.25em}.Tab__right{min-width:1.5em;text-align:center;margin-right:.25em}.Tabs--horizontal .Tab{border-top:.1666666667em solid rgba(0,0,0,0);border-bottom:.1666666667em solid rgba(0,0,0,0);border-top-left-radius:.25em;border-top-right-radius:.25em}.Tabs--horizontal .Tab--selected{border-bottom:.1666666667em solid #d4dfec}.Tabs--vertical .Tab{min-height:2em;border-left:.1666666667em solid rgba(0,0,0,0);border-right:.1666666667em solid rgba(0,0,0,0);border-top-right-radius:.25em;border-bottom-right-radius:.25em}.Tabs--vertical .Tab--selected{border-left:.1666666667em solid #d4dfec}.Tab--selected.Tab--color--black{color:#535353}.Tabs--horizontal .Tab--selected.Tab--color--black{border-bottom-color:#1a1a1a}.Tabs--vertical .Tab--selected.Tab--color--black{border-left-color:#1a1a1a}.Tab--selected.Tab--color--white{color:#fff}.Tabs--horizontal .Tab--selected.Tab--color--white{border-bottom-color:#fff}.Tabs--vertical .Tab--selected.Tab--color--white{border-left-color:#fff}.Tab--selected.Tab--color--red{color:#e76e6e}.Tabs--horizontal .Tab--selected.Tab--color--red{border-bottom-color:#df3e3e}.Tabs--vertical .Tab--selected.Tab--color--red{border-left-color:#df3e3e}.Tab--selected.Tab--color--orange{color:#f69f66}.Tabs--horizontal .Tab--selected.Tab--color--orange{border-bottom-color:#f37f33}.Tabs--vertical .Tab--selected.Tab--color--orange{border-left-color:#f37f33}.Tab--selected.Tab--color--yellow{color:#fce358}.Tabs--horizontal .Tab--selected.Tab--color--yellow{border-bottom-color:#fbda21}.Tabs--vertical .Tab--selected.Tab--color--yellow{border-left-color:#fbda21}.Tab--selected.Tab--color--olive{color:#d8eb55}.Tabs--horizontal .Tab--selected.Tab--color--olive{border-bottom-color:#cbe41c}.Tabs--vertical .Tab--selected.Tab--color--olive{border-left-color:#cbe41c}.Tab--selected.Tab--color--green{color:#53e074}.Tabs--horizontal .Tab--selected.Tab--color--green{border-bottom-color:#25ca4c}.Tabs--vertical .Tab--selected.Tab--color--green{border-left-color:#25ca4c}.Tab--selected.Tab--color--teal{color:#21fff5}.Tabs--horizontal .Tab--selected.Tab--color--teal{border-bottom-color:#00d6cc}.Tabs--vertical .Tab--selected.Tab--color--teal{border-left-color:#00d6cc}.Tab--selected.Tab--color--blue{color:#62aee6}.Tabs--horizontal .Tab--selected.Tab--color--blue{border-bottom-color:#2e93de}.Tabs--vertical .Tab--selected.Tab--color--blue{border-left-color:#2e93de}.Tab--selected.Tab--color--violet{color:#9676db}.Tabs--horizontal .Tab--selected.Tab--color--violet{border-bottom-color:#7349cf}.Tabs--vertical .Tab--selected.Tab--color--violet{border-left-color:#7349cf}.Tab--selected.Tab--color--purple{color:#c274db}.Tabs--horizontal .Tab--selected.Tab--color--purple{border-bottom-color:#ad45d0}.Tabs--vertical .Tab--selected.Tab--color--purple{border-left-color:#ad45d0}.Tab--selected.Tab--color--pink{color:#ea79b9}.Tabs--horizontal .Tab--selected.Tab--color--pink{border-bottom-color:#e34da1}.Tabs--vertical .Tab--selected.Tab--color--pink{border-left-color:#e34da1}.Tab--selected.Tab--color--brown{color:#ca9775}.Tabs--horizontal .Tab--selected.Tab--color--brown{border-bottom-color:#b97447}.Tabs--vertical .Tab--selected.Tab--color--brown{border-left-color:#b97447}.Tab--selected.Tab--color--grey{color:#a3a3a3}.Tabs--horizontal .Tab--selected.Tab--color--grey{border-bottom-color:#848484}.Tabs--vertical .Tab--selected.Tab--color--grey{border-left-color:#848484}.Tab--selected.Tab--color--good{color:#8cd95a}.Tabs--horizontal .Tab--selected.Tab--color--good{border-bottom-color:#68c22d}.Tabs--vertical .Tab--selected.Tab--color--good{border-left-color:#68c22d}.Tab--selected.Tab--color--average{color:#f5b35e}.Tabs--horizontal .Tab--selected.Tab--color--average{border-bottom-color:#f29a29}.Tabs--vertical .Tab--selected.Tab--color--average{border-left-color:#f29a29}.Tab--selected.Tab--color--bad{color:#e76e6e}.Tabs--horizontal .Tab--selected.Tab--color--bad{border-bottom-color:#df3e3e}.Tabs--vertical .Tab--selected.Tab--color--bad{border-left-color:#df3e3e}.Tab--selected.Tab--color--label{color:#a8b4c4}.Tabs--horizontal .Tab--selected.Tab--color--label{border-bottom-color:#8b9bb0}.Tabs--vertical .Tab--selected.Tab--color--label{border-left-color:#8b9bb0}.Tab--selected.Tab--color--gold{color:#f6c563}.Tabs--horizontal .Tab--selected.Tab--color--gold{border-bottom-color:#f3b22f}.Tabs--vertical .Tab--selected.Tab--color--gold{border-left-color:#f3b22f}.Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;background-color:#0a0a0a;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75);padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible;white-space:nowrap}.Input--disabled{color:#777;border-color:#848484;border-color:rgba(132,132,132,.75);background-color:#333;background-color:rgba(0,0,0,.25)}.Input--fluid{display:block;width:auto}.Input__baseline{display:inline-block;color:rgba(0,0,0,0)}.Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit}.Input__input::placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.Input__textarea{border:0;width:calc(100% + 4px);font-size:1em;line-height:1.4166666667em;margin-left:-.3333333333em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit;resize:both;overflow:auto;white-space:pre-wrap}.Input__textarea::placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.Input__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.Input--monospace .Input__input{font-family:Consolas,monospace}.TextArea{position:relative;display:inline-block;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;background-color:#0a0a0a;margin-right:.1666666667em;line-height:1.4166666667em;box-sizing:border-box;width:100%}.TextArea--fluid{display:block;width:auto;height:auto}.TextArea__textarea{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;height:100%;font-size:1em;line-height:1.4166666667em;min-height:1.4166666667em;margin:0;padding:0 .5em;font-family:inherit;background-color:rgba(0,0,0,0);color:inherit;box-sizing:border-box;word-wrap:break-word;overflow:hidden}.TextArea__textarea::placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.TextArea__textarea:-ms-input-placeholder{font-style:italic;color:rgba(125,125,125,.75)}.Tooltip{z-index:999;padding:.5em .75em;pointer-events:none;text-align:left;transition:opacity .15s ease-out;background-color:#000;color:#fff;box-shadow:.1em .1em 1.25em -.1em rgba(0,0,0,.5);border-radius:.16em;max-width:20.8333333333em}.AccountsUplinkTerminal__list tr>td{text-align:center}.AccountsUplinkTerminal__list tr:not(:first-child){height:24px;line-height:24px;cursor:pointer;transition:background-color 50ms}.AccountsUplinkTerminal__list tr:not(:first-child):hover,.AccountsUplinkTerminal__list tr:not(:first-child):focus{background-color:#252525}.AccountsUplinkTerminal__listRow--SUSPENDED{background-color:#740c20}.AlertModal__Message{text-align:center;justify-content:center}.AlertModal__Buttons{justify-content:center}.AlertModal__Loader{width:100%;position:relative;height:4px}.AlertModal__LoaderProgress{position:absolute;transition:background-color .5s ease-out,width .5s ease-out;background-color:#3e6189;height:100%}.BrigCells__list .Table__row--header,.BrigCells__list .Table__cell{text-align:center}.BrigCells__list .BrigCells__listRow--active .Table__cell{background-color:#890e26}.CameraConsole__left{position:absolute;top:36px;bottom:0;left:0;width:18.9166666667em}.CameraConsole__right{position:absolute;top:0;bottom:0;left:18.3333333333em;right:0;margin:.5em;background-color:rgba(0,0,0,.33)}.CameraConsole__toolbar{position:absolute;top:0;left:0;right:0;height:2em;line-height:2em;margin:.25em 1em 0}.CameraConsole__toolbarRight{position:absolute;top:0;right:0;height:2em;line-height:2em;margin:.33em .5em 0}.CameraConsole__map{position:absolute;top:2.1666666667em;bottom:0;left:0;right:0;margin:.5em;text-align:center}.CameraConsole__map .NoticeBox{margin-top:calc(50% - 2em)}.CameraConsole__right_map{position:relative;display:flex;flex:1;bottom:32px;flex-direction:column;background-color:rgba(0,0,0,.33)}.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation_value{position:relative;flex-grow:1;border-color:rgba(0,0,0,0);border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,rgba(0,0,0,0)),linear-gradient(to right,#fff,rgba(255,255,255,0))}.react-colorful__pointer-fill,.react-colorful__alpha-gradient{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation_value{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__hue,.react-colorful__r,.react-colorful__g,.react-colorful__b,.react-colorful__alpha,.react-colorful__saturation,.react-colorful__value{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(to right,red,#ff0 17%,#0f0 33%,#0ff,#00f 67%,#f0f 83%,red)}.react-colorful__r{background:linear-gradient(to right,#000,red)}.react-colorful__g{background:linear-gradient(to right,#000,#0f0)}.react-colorful__b{background:linear-gradient(to right,#000,#00f)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#cfcfcf;border:2px solid #cfcfcf;border-radius:50%;box-shadow:0 2px 5px rgba(0,0,0,.4)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1);background-color:#fff;border-color:#fff}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml,')}.react-colorful__saturation-pointer,.react-colorful__value-pointer,.react-colorful__hue-pointer,.react-colorful__r-pointer,.react-colorful__g-pointer,.react-colorful__b-pointer{z-index:1;width:20px;height:20px}.react-colorful__saturation_value-pointer{z-index:3}.Contractor *{font-family:Courier New,Courier,monospace}.Contractor .Section__titleText{display:inline-block;max-width:70%}.Contractor .Section__titleText>.Flex{width:100%}.Contractor .Section__titleText>.Flex>.Flex__item:first-of-type{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.Contractor__Contract .Button{font-size:11px;white-space:normal!important}.Contractor__photoZoom{text-align:center}.Contractor__photoZoom>img{width:96px;-ms-interpolation-mode:nearest-neighbor;image-rendering:pixelated}.Contractor__photoZoom>.Button{position:absolute}.highlighted-marker{box-sizing:content-box;display:inline-block;position:relative;top:50%;left:50%;transform:translate(-50%,-50%);border-style:solid;border-width:50%;border-radius:50%;animation:1s infinite mark-shrink}@keyframes mark-shrink{0%{width:200%;height:200%}to{width:0%;height:0%}}.Exofab .Dropdown__control{margin-bottom:-1px}.Exofab .Dropdown__selected-text{overflow:hidden;text-overflow:ellipsis;width:80%;display:inline-block;margin-bottom:-3px}.Exofab__materials{height:100%;overflow:auto}.Exofab__materials .Section__content{height:calc(100% - 31px)}.Exofab__material:not(.Exofab__material--line){margin-bottom:.25rem}.Exofab__material:not(.Exofab__material--line) .Button{width:28px;margin-right:.5rem}.Exofab__material--line .Button{background-color:rgba(0,0,0,0);width:14px}.Exofab__material--name{color:#7e90a7;text-transform:capitalize}.Exofab__material .Button{margin-bottom:0;padding:0;vertical-align:middle}.Exofab__queue{height:100%}.Exofab__queue--queue .Button{margin:0;transform:scale(.75)}.Exofab__queue--queue .Button:first-of-type{margin-left:.25rem}.Exofab__queue--time{text-align:center;color:#7e90a7}.Exofab__queue--deficit{text-align:center;color:#db2828;font-weight:700}.Exofab__queue--deficit>div:not(.Divider){display:inline-block;margin-bottom:-.75rem}.Exofab__queue .Section__content{height:calc(100% - 31px)}.Exofab__queue .Exofab__material--amount{margin-right:.25rem}.Exofab__design--cost{display:inline-block;vertical-align:middle;margin-top:.25rem}.Exofab__design--cost>div{display:inline-block}.Exofab__design--cost .Exofab__material{margin-left:.25rem}.Exofab__design--time{display:inline-block;margin-left:.5rem;color:#7e90a7}.Exofab__design--time i{margin-right:.25rem}.Exofab__designs .Section__content{height:calc(100% - 31px);overflow:auto}.Exofab__building{height:45px}.Exofab__building .ProgressBar{width:100%;height:75%}.Exofab__building .ProgressBar__content{line-height:26px;text-align:right;font-size:12px;font-weight:700;display:flex;justify-content:flex-end}.Exofab__dropdown{line-height:14px;font-size:12px;width:225px;height:85%;margin-top:1.5px}.GeneModder__left{position:absolute;top:0;bottom:0;left:0;width:40.8333333333em}.GeneModder__right{position:absolute;top:0;bottom:0;left:40.8333333333em;right:0;background-color:rgba(0,0,0,.33)}.Ingredient__Table tr:nth-child(2n){background-color:#333}.Ingredient__Table td{padding:3px}.Library__Booklist tr>td{text-align:center}.Library__Booklist tr:not(:first-child){height:24px;line-height:24px;transition:background-color 50ms}.Library__Booklist tr:not(:first-child):hover,.Library__Booklist tr:not(:first-child):focus{background-color:#252525}.Library__SearchContainer{background-color:rgba(37,37,37,.5)}.Library__SearchContainer tr td:first-child{width:60%}.ListInput__Section .Section__title{flex-shrink:0}.ListInput__Section .Section__titleText{font-size:12px}.ListInput__Loader{width:100%;position:relative;height:4px}.ListInput__LoaderProgress{position:absolute;transition:background-color .5s,width .5s;background-color:#3e6189;height:100%}.Loadout-Modal__background{padding:.5em;background-color:#252525}.Loadout-InfoBox{display:flex;line-height:1.2rem;text-shadow:0 1px 0 2px rgba(0,0,0,.66);text-align:left}.Newscaster__menu{width:40px;height:100%;margin-right:.5rem;flex-basis:content}.Newscaster__menu .Section__content{padding-left:0}.Newscaster__menuButton{color:#767676;cursor:pointer;position:relative;margin-left:6px;margin-right:1rem;white-space:nowrap;transition:color .1s}.Newscaster__menuButton--title{width:80%;display:none;overflow:hidden;text-overflow:ellipsis}.Newscaster__menuButton--unread{background-color:#e45e5e;color:#fff;font-size:10px;text-align:center;border-radius:32px;display:inline-block;width:12px;position:absolute;left:16px;margin-top:14px}.Newscaster__menuButton--selected{color:#fff}.Newscaster__menuButton--selected:after{content:"";background-color:#4972a1;width:2px;height:24px;position:absolute;left:-6px}.Newscaster__menuButton--security{color:#4972a1}.Newscaster__menuButton i{width:30px;text-align:center;vertical-align:middle;margin-left:-1px;margin-right:.5rem;margin-top:1px}.Newscaster__menuButton:hover{color:#fff}.Newscaster__menuButton:hover:before{background-color:#fff}.Newscaster__menuButton:not(:last-of-type){margin-bottom:.5rem}.Newscaster__menu--open{width:175px}.Newscaster__menu--open .Newscaster__menuButton--title{display:inline-block}.Newscaster__jobCategory--security .Section__title{color:#a14c49;border-bottom:2px solid #a14c49!important}.Newscaster__jobCategory--engineering .Section__title{color:#a17849;border-bottom:2px solid #a17849!important}.Newscaster__jobCategory--medical .Section__title{color:#499ea1;border-bottom:2px solid #499ea1!important}.Newscaster__jobCategory--science .Section__title{color:#a14972;border-bottom:2px solid #a14972!important}.Newscaster__jobCategory--service .Section__title{color:#a1499e;border-bottom:2px solid #a1499e!important}.Newscaster__jobCategory--supply .Section__title{color:#9ea149;border-bottom:2px solid #9ea149!important}.Newscaster__jobCategory:last-child{margin-bottom:.5rem}.Newscaster__jobOpening--command{font-weight:700}.Newscaster__jobOpening:not(:last-child){margin-bottom:.5rem}.Newscaster__emptyNotice{color:#7e90a7;text-align:center;position:absolute;top:50%;left:50%;transform:translateY(-50%) translate(-50%)}.Newscaster__emptyNotice i{margin-bottom:.25rem}.Newscaster__photo{cursor:pointer;width:100px;border:1px solid #000;transition:border-color .3s;-ms-interpolation-mode:nearest-neighbor;image-rendering:pixelated}.Newscaster__photo:hover{border-color:gray}.Newscaster__photoZoom{text-align:center}.Newscaster__photoZoom>img{transform:scale(2);-ms-interpolation-mode:nearest-neighbor;image-rendering:pixelated}.Newscaster__photoZoom>.Button{position:absolute;width:64px;left:50%;margin-left:-32px;bottom:1rem}.Newscaster__story--wanted{background-color:rgba(219,40,40,.1)}.Newscaster__story--wanted .Section__title{color:#db2828;border-bottom:2px solid #a14c49!important}.Newscaster__story:last-child{margin-bottom:.5rem}.NuclearBomb__displayBox{background-color:#002003;border:.167em inset #e8e4c9;color:#03e017;font-size:2em;font-family:monospace;padding:.25em}.NuclearBomb__Button{outline-width:.25rem!important;border-width:.65rem!important;padding-left:0!important;padding-right:0!important}.NuclearBomb__Button--keypad{background-color:#e8e4c9;border-color:#e8e4c9}.NuclearBomb__Button--keypad:hover{background-color:#f7f6ee!important;border-color:#f7f6ee!important}.NuclearBomb__Button--1{background-color:#d3cfb7!important;border-color:#d3cfb7!important;color:#a9a692!important}.NuclearBomb__Button--E{background-color:#d9b804!important;border-color:#d9b804!important}.NuclearBomb__Button--E:hover{background-color:#f3d00e!important;border-color:#f3d00e!important}.NuclearBomb__Button--C{background-color:#bd2020!important;border-color:#bd2020!important}.NuclearBomb__Button--C:hover{background-color:#d52b2b!important;border-color:#d52b2b!important}.OreRedemption__Ores .OreLine,.OreRedemption__Ores .OreHeader{min-height:32px;padding:0 .5rem}.OreRedemption__Ores .OreHeader{line-height:32px;background-color:rgba(0,0,0,.33);font-weight:700}.OreRedemption__Ores .OreLine:last-of-type{margin-bottom:.5rem}.OreRedemption__Ores .Section__content{padding:0;height:100%;overflow:auto}.symptoms-table{border-collapse:separate;border-spacing:0 .5ex;height:100%}.symptoms-table>tbody>tr:first-child{width:100%;font-weight:700}.symptoms-table>tbody>tr:nth-child(2)>td:first-child{padding-top:.5ex}.symptoms-table>tbody>tr>td:nth-child(n+2){text-align:center}.common-name-label>.LabeledList__cell{vertical-align:middle}.table-spacer{height:100%}.remove-section-bottom-padding .Section__content{padding-bottom:0}.PDA__footer{position:fixed;bottom:0%;left:0%;right:0%;height:30px}.PDA__footer__button{text-align:center;padding-top:4px;padding-bottom:2px;font-size:24px}.Minesweeper__closed{vertical-align:middle;background-color:#353535;border:.1666666667em outset #676767}.Minesweeper__open{vertical-align:middle;text-align:center;font-size:medium;background-color:#4f4f4f!important}.Minesweeper__list tr>td{text-align:center}.Minesweeper__list tr:not(:first-child){height:2em;line-height:1.75em;transition:background-color 50ms;cursor:pointer}.Minesweeper__list tr:not(:first-child):hover,.Minesweeper__list tr:not(:first-child):focus{background-color:#252525}.Minesweeper__infobox{max-height:8em;border:.25em outset #3a3a3a;user-select:none;-ms-user-select:none}.PdaPainter__list tr>td{text-align:center}.PdaPainter__list tr{height:24px;line-height:24px;cursor:pointer;transition:background-color 50ms}.PdaPainter__list tr:hover,.PdaPainter__list tr:focus{background-color:#252525}.PoolController__Buttons .Button:not(:last-child){margin-bottom:8px}.reagents-table{border-collapse:separate;border-spacing:0 .3em}.volume-cell{min-width:3em;text-align:right;vertical-align:middle}.volume-cell:not(:hover) .volume-actions-wrapper{display:none}.volume-cell:hover .volume-label{display:none}.reagent-absent-name-cell{color:#767676}.reagent-row>*:last-child{padding-right:.5em}.absent-row:not(:hover) .add-reagent-button{visibility:hidden}.condensed-button{margin:0;padding:0;min-height:0;line-height:0;background:none}.RndConsole{position:relative}.RndConsole__Overlay{position:absolute;display:flex;align-items:stretch;justify-content:stretch;top:0;left:0;width:100%;height:100vh}.RndConsole__LatheCategory__MatchingDesigns .Table__cell{padding-bottom:4px}.RndConsole__LatheMaterials .Table__cell:nth-child(2){padding-left:16px}.RndConsole__LatheMaterialStorage .Table__cell{padding:4px 0;border-bottom:1px solid #767676}.RndConsole__Overlay__Wrapper{display:flex;align-items:center;justify-content:stretch;flex-grow:1;padding:24px;background-color:rgba(255,255,255,0)}.RndConsole__Overlay__Wrapper .NoticeBox{flex-grow:1;margin-bottom:80px;font-size:18pt;padding:.3em .75em}.RndConsole__RndNavbar .Button{margin-bottom:10px}#research-levels tr>*:first-child{width:2em}#research-levels tr>*:nth-child(3),#research-levels tr>*:nth-child(4),#research-levels tr>*:nth-child(5){text-align:center}#research-levels tr:not(:first-child)>*:first-child{height:2em}.upgraded-level{color:#55d355}.research-level-no-effect{color:#888}.Roulette{font-family:Palatino}.Roulette__board{display:table;width:100%;border-collapse:collapse;border:2px solid #fff;margin:0}.Roulette__board-row{padding:0;margin:0}.Roulette__board-cell{display:table-cell;padding:0;margin:0;border:2px solid #fff;font-family:Palatino}.Roulette__board-cell:first-child{padding-left:0}.Roulette__board-cell:last-child{padding-right:0}.Roulette__board-extrabutton{text-align:center;font-size:20px;font-weight:700;height:28px;border:none!important;margin:0!important;padding-top:4px!important;color:#fff!important}.Roulette__lowertable{margin-top:8px;margin-left:80px;margin-right:80px;border-collapse:collapse;border:2px solid #fff;border-spacing:0}.Roulette__lowertable--cell{border:2px solid #fff;padding:0;margin:0}.Roulette__lowertable--betscell{vertical-align:top}.Roulette__lowertable--spinresult{text-align:center;font-size:100px;font-weight:700;vertical-align:middle}.Roulette__lowertable--spinresult-black{background-color:#000}.Roulette__lowertable--spinresult-red{background-color:#db2828}.Roulette__lowertable--spinresult-green{background-color:#20b142}.Roulette__lowertable--spinbutton{margin:0!important;border:none!important;font-size:50px;line-height:60px!important;text-align:center;font-weight:700}.Roulette__lowertable--header{width:1%;text-align:center;font-size:20px;font-weight:700}.Safe--engraving{position:absolute;width:95%;height:96%;left:2.5%;top:2%;border:5px outset #364963;padding:5px;text-align:center}.Safe--engraving--arrow{color:#35435a}.Safe--engraving--hinge{content:" ";background-color:#191f2a;width:25px;height:40px;position:absolute;right:-15px;margin-top:-20px}.Safe--dialer{margin-bottom:.5rem}.Safe--dialer--number{color:#bbb;display:inline;background-color:#191f2a;font-size:1.5rem;font-weight:700;padding:0 .5rem}.Safe--dialer--right .Button i{z-index:-100}.Safe--dialer .Button{width:80px}.Safe--contents{border:10px solid #191f2a;background-color:#0f131a;height:calc(85% + 7.5px);text-align:left;padding:5px}.Safe--help{position:absolute;bottom:30px;left:25px;width:50%}.SecureStorage__displayBox{background-color:#212121;color:#8b8b8b;border:.167em inset #e8e4c9;font-size:375%;font-family:monospace;padding:.25em}.SecureStorage__displayBox--good{background-color:#002003;color:#03e017}.SecureStorage__displayBox--bad{background-color:#210000;color:#e00202}.SecureStorage__Button{outline-width:.25rem!important;border-width:.3rem!important;border:.167em outset #e8e4c9;padding-left:0!important;padding-right:0!important}.SecureStorage__Button--keypad{background-color:#e8e4c9;border-color:#e8e4c9;color:#a9a692}.SecureStorage__Button--keypad:hover{background-color:#f7f6ee;border-color:#f7f6ee;color:#a9a692}.SecureStorage__Button--E{background-color:#d9b804;border-color:#d9b804;color:#fff}.SecureStorage__Button--E:hover{background-color:#f5d317;border-color:#f5d317;color:#fff}.SecureStorage__Button--C{background-color:#bd2020;border-color:#bd2020;color:#fff}.SecureStorage__Button--C:hover{background-color:#d83434;border-color:#d83434;color:#fff}.SecurityRecords__list tr>td{text-align:center}.SecurityRecords__list tr:not(:first-child){height:24px;line-height:24px;cursor:pointer;transition:background-color 50ms}.SecurityRecords__list tr:not(:first-child):hover,.SecurityRecords__list tr:not(:first-child):focus{background-color:#252525}.SecurityRecords__listRow--arrest{background-color:#740c20}.SecurityRecords__listRow--execute{background-color:#683e8c}.SecurityRecords__listRow--incarcerated{background-color:#633203}.SecurityRecords__listRow--parolled{background-color:#006d7b}.SecurityRecords__listRow--released{background-color:#1c5574}.SecurityRecords__listRow--demote{background-color:#155500}.SecurityRecords__listRow--search{background-color:#987a00}.SecurityRecords__listRow--monitor{background-color:#1f1180}.SeedExtractor__list tr:not(:first-child){height:24px;line-height:24px;cursor:pointer;transition:background-color 50ms}.SeedExtractor__list tr:not(:first-child):hover,.SeedExtractor__list tr:not(:first-child):focus{background-color:#252525}.MedicalRecords__list tr>td{text-align:center}.MedicalRecords__list tr:not(:first-child){height:24px;line-height:24px;cursor:pointer;transition:background-color 50ms}.MedicalRecords__list tr:not(:first-child):hover,.MedicalRecords__list tr:not(:first-child):focus{background-color:#252525}.MedicalRecords__listRow--deceased{background-color:#740c20}.MedicalRecords__listRow--ssd{background-color:#006d7b}.MedicalRecords__listRow--physically_unfit{background-color:#987a00}.MedicalRecords__listRow--disabled{background-color:#1f1180}.MedicalRecords__listMedbot--0{background-color:#2b1414}html,body{scrollbar-color:#3b3b3b #1c1c1c}.Layout,.Layout *{scrollbar-base-color:#1c1c1c;scrollbar-face-color:#3b3b3b;scrollbar-3dlight-color:#252525;scrollbar-highlight-color:#252525;scrollbar-track-color:#1c1c1c;scrollbar-arrow-color:#929292;scrollbar-shadow-color:#3b3b3b}.Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.Layout__content--flexRow{display:flex;flex-flow:row}.Layout__content--flexColumn{display:flex;flex-flow:column}.Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.Layout__content--noMargin{margin:0}.TitleBar{background-color:#363636;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#363636;transition:color .25s,background-color .25s}.TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#252525;background-image:linear-gradient(to bottom,#2a2a2a,#202020)}.Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.Window__contentPadding:after{height:0}.Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(62,62,62,.25);pointer-events:none}.Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.Layout__content{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMCIgdmlld0JveD0iMCAwIDQyNSAyMDAiIG9wYWNpdHk9Ii4zMyI+PHBhdGggZD0ibSAxNzguMDAzOTksMC4wMzg2OSAtNzEuMjAzOTMsMCBhIDYuNzYxMzQyMiw2LjAyNTU0OTUgMCAwIDAgLTYuNzYxMzQsNi4wMjU1NSBsIDAsMTg3Ljg3MTQ3IGEgNi43NjEzNDIyLDYuMDI1NTQ5NSAwIDAgMCA2Ljc2MTM0LDYuMDI1NTQgbCA1My4xMDcyLDAgYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIDYuNzYxMzUsLTYuMDI1NTQgbCAwLC0xMDEuNTQ0MDE4IDcyLjIxNjI4LDEwNC42OTkzOTggYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIDUuNzYwMTUsMi44NzAxNiBsIDczLjU1NDg3LDAgYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIDYuNzYxMzUsLTYuMDI1NTQgbCAwLC0xODcuODcxNDcgYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIC02Ljc2MTM1LC02LjAyNTU1IGwgLTU0LjcxNjQ0LDAgYSA2Ljc2MTM0MjIsNi4wMjU1NDk1IDAgMCAwIC02Ljc2MTMzLDYuMDI1NTUgbCAwLDEwMi42MTkzNSBMIDE4My43NjQxMywyLjkwODg2IGEgNi43NjEzNDIyLDYuMDI1NTQ5NSAwIDAgMCAtNS43NjAxNCwtMi44NzAxNyB6IiAvPjxwYXRoIGQ9Ik0gNC44NDQ2MzMzLDIyLjEwODc1IEEgMTMuNDEyMDM5LDEyLjUwMTg0MiAwIDAgMSAxMy40Nzc1ODgsMC4wMzkyNCBsIDY2LjExODMxNSwwIGEgNS4zNjQ4MTU4LDUuMDAwNzM3IDAgMCAxIDUuMzY0ODIzLDUuMDAwNzMgbCAwLDc5Ljg3OTMxIHoiIC8+PHBhdGggZD0ibSA0MjAuMTU1MzUsMTc3Ljg5MTE5IGEgMTMuNDEyMDM4LDEyLjUwMTg0MiAwIDAgMSAtOC42MzI5NSwyMi4wNjk1MSBsIC02Ni4xMTgzMiwwIGEgNS4zNjQ4MTUyLDUuMDAwNzM3IDAgMCAxIC01LjM2NDgyLC01LjAwMDc0IGwgMCwtNzkuODc5MzEgeiIgLz48L3N2Zz48IS0tIFRoaXMgd29yayBpcyBsaWNlbnNlZCB1bmRlciBhIENyZWF0aXZlIENvbW1vbnMgQXR0cmlidXRpb24tU2hhcmVBbGlrZSA0LjAgSW50ZXJuYXRpb25hbCBMaWNlbnNlLiAtLT48IS0tIGh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL2xpY2Vuc2VzL2J5LXNhLzQuMC8gLS0+);background-size:70% 70%;background-position:center;background-repeat:no-repeat}.theme-abductor .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:2px;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-abductor .Button:last-child{margin-right:0;margin-bottom:0}.theme-abductor .Button .fa,.theme-abductor .Button .fas,.theme-abductor .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-abductor .Button--hasContent .fa,.theme-abductor .Button--hasContent .fas,.theme-abductor .Button--hasContent .far{margin-right:.25em}.theme-abductor .Button--hasContent.Button--iconRight .fa,.theme-abductor .Button--hasContent.Button--iconRight .fas,.theme-abductor .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-abductor .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-abductor .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-abductor .Button--circular{border-radius:50%}.theme-abductor .Button--compact{padding:0 .25em;line-height:1.333em}.theme-abductor .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-abductor .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-abductor .Button--color--transparent{background-color:rgba(42,49,74,0);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-abductor .Button--color--transparent:hover{background-color:rgba(62,70,100,.81);color:#fff}.theme-abductor .Button--color--default{background-color:#ad2350;color:#fff;transition:color .2s,background-color .2s}.theme-abductor .Button--color--default:hover{background-color:#d03a6b;color:#fff}.theme-abductor .Button--color--default--translucent{background-color:rgba(50,58,84,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-abductor .Button--color--default--translucent:hover{background-color:rgba(73,82,111,.5);color:#fff}.theme-abductor .Button--color--caution{background-color:#be6209;color:#fff;transition:color .2s,background-color .2s}.theme-abductor .Button--color--caution:hover{background-color:#e67f1a;color:#fff}.theme-abductor .Button--color--caution--translucent{background-color:rgba(190,98,9,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-abductor .Button--color--caution--translucent:hover{background-color:rgba(230,127,26,.5);color:#fff}.theme-abductor .Button--color--danger{background-color:#9a9d00;color:#fff;transition:color .2s,background-color .2s}.theme-abductor .Button--color--danger:hover{background-color:#bec110;color:#fff}.theme-abductor .Button--color--danger--translucent{background-color:rgba(154,157,0,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-abductor .Button--color--danger--translucent:hover{background-color:rgba(190,193,16,.5);color:#fff}.theme-abductor .Button--disabled{background-color:#363636!important;color:rgba(255,255,255,.75)!important}.theme-abductor .Button--disabled--translucent{background-color:rgba(77,23,23,.5)!important;color:rgba(255,255,255,.5)!important}.theme-abductor .Button--selected,.theme-abductor .Button--selected--translucent{background-color:#465899;color:#fff;transition:color .2s,background-color .2s}.theme-abductor .Button--selected:hover,.theme-abductor .Button--selected--translucent:hover{background-color:#6577b5;color:#fff}.theme-abductor .Divider--horizontal{margin:.5em 0}.theme-abductor .Divider--horizontal:not(.Divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.theme-abductor .Divider--vertical{height:100%;margin:0 .5em}.theme-abductor .Divider--vertical:not(.Divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.theme-abductor .color__default{background-color:rgba(180,80,112,.2);color:#fff;border:solid rgba(219,170,186,.2);border-width:1px;transition:background-color .2s,border-color .2s}.theme-abductor .color__default:hover{background-color:rgba(219,170,186,.2)}.theme-abductor .disabled{background-color:rgba(54,54,54,.25)!important;border-color:rgba(54,54,54,.25)!important}.theme-abductor .selected{background-color:rgba(70,88,153,.2);color:#fff;border:solid rgba(70,88,153,.25);border-width:1px;transition:background-color .2s,border-color .2s}.theme-abductor .selected:hover{background-color:rgba(142,155,201,.2)}.theme-abductor .contentColor__default{background-color:#af4c6c;color:#fff;border:solid #c45b7d;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.theme-abductor .contentDisabled{background-color:#363636!important;border-top:1px solid #4d4d4d!important}.theme-abductor .contentSelected{background-color:#465899;color:#fff;border:solid #6577b5;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.theme-abductor .buttonsContainerColor__default{background-color:rgba(180,80,112,.2);color:#fff;border:solid rgba(219,170,186,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.theme-abductor .ImageButton{display:inline-table;position:relative;text-align:center;margin:.25em;user-select:none;-ms-user-select:none}.theme-abductor .ImageButton .noAction{pointer-events:none}.theme-abductor .ImageButton .container{display:flex;flex-direction:column;border-radius:.33em}.theme-abductor .ImageButton .image{position:relative;align-self:center;pointer-events:none;overflow:hidden;line-height:0;padding:.25em;border-radius:.33em}.theme-abductor .ImageButton .buttonsContainer{display:flex;position:absolute;overflow:hidden;left:1px;bottom:1.8em;max-width:100%;z-index:1}.theme-abductor .ImageButton .buttonsContainer.buttonsAltContainer{overflow:visible;flex-direction:column;pointer-events:none;top:1px;bottom:inherit!important}.theme-abductor .ImageButton .buttonsContainer.buttonsEmpty{bottom:1px}.theme-abductor .ImageButton .buttonsContainer>*{margin:0!important;padding:0 .2em!important;border-radius:0!important}.theme-abductor .ImageButton .content{-ms-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:.25em .5em;margin:-1px;border-radius:0 0 .33em .33em;z-index:2}.theme-abductor .fluid{display:flex;flex-direction:row;position:relative;text-align:center;margin:0 0 .5em;user-select:none;-ms-user-select:none}.theme-abductor .fluid:last-of-type{margin-bottom:0}.theme-abductor .fluid .info{display:flex;flex-direction:column;justify-content:center;flex:1}.theme-abductor .fluid .title{font-weight:700;padding:.5em}.theme-abductor .fluid .title.divider{margin:0 .5em;border-bottom:.1666666667em solid rgba(255,255,255,.1)}.theme-abductor .fluid .contentFluid{padding:.5em;color:#fff}.theme-abductor .fluid .container{flex-direction:row;flex:1}.theme-abductor .fluid .container.hasButtons{border-radius:.33em 0 0 .33em;border-width:1px 0 1px 1px}.theme-abductor .fluid .image{padding:0}.theme-abductor .fluid .buttonsContainer{position:relative;left:inherit;bottom:inherit;border-radius:0 .33em .33em 0}.theme-abductor .fluid .buttonsContainer.buttonsEmpty{bottom:inherit}.theme-abductor .fluid .buttonsContainer.buttonsAltContainer{overflow:hidden;pointer-events:auto;top:inherit}.theme-abductor .fluid .buttonsContainer.buttonsAltContainer>*{border-top:1px solid rgba(255,255,255,.075)}.theme-abductor .fluid .buttonsContainer.buttonsAltContainer>*:first-child{border-top:0}.theme-abductor .fluid .buttonsContainer>*{display:inline-flex;flex-direction:column;justify-content:center;text-align:center;white-space:pre-wrap;line-height:1.1666666667em;height:100%;border-left:1px solid rgba(255,255,255,.075)}.theme-abductor .NoticeBox{padding:.33em .5em;margin-bottom:.5em;box-shadow:none;font-weight:700;font-style:italic;color:#fff;background-color:#a82d55;background-image:repeating-linear-gradient(-45deg,transparent,transparent .8333333333em,rgba(0,0,0,.1) .8333333333em,rgba(0,0,0,.1) 1.6666666667em)}.theme-abductor .NoticeBox--type--info{color:#fff;background-color:#235982}.theme-abductor .NoticeBox--type--success{color:#fff;background-color:#1e662f}.theme-abductor .NoticeBox--type--warning{color:#fff;background-color:#a95219}.theme-abductor .NoticeBox--type--danger{color:#fff;background-color:#8f2828}.theme-abductor .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #404b6e;border:.0833333333em solid rgba(64,75,110,.75);border-radius:2px;background-color:#0a0a0a;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75);padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible;white-space:nowrap}.theme-abductor .Input--disabled{color:#777;border-color:#171717;border-color:rgba(23,23,23,.75);background-color:#333;background-color:rgba(0,0,0,.25)}.theme-abductor .Input--fluid{display:block;width:auto}.theme-abductor .Input__baseline{display:inline-block;color:rgba(0,0,0,0)}.theme-abductor .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit}.theme-abductor .Input__input::placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-abductor .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-abductor .Input__textarea{border:0;width:calc(100% + 4px);font-size:1em;line-height:1.4166666667em;margin-left:-.3333333333em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit;resize:both;overflow:auto;white-space:pre-wrap}.theme-abductor .Input__textarea::placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-abductor .Input__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-abductor .Input--monospace .Input__input{font-family:Consolas,monospace}.theme-abductor .NumberInput{position:relative;display:inline-block;border:.0833333333em solid #404b6e;border:.0833333333em solid rgba(64,75,110,.75);border-radius:2px;color:#404b6e;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.theme-abductor .NumberInput--fluid{display:block}.theme-abductor .NumberInput__content{margin-left:.5em}.theme-abductor .NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.theme-abductor .NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #404b6e;background-color:#404b6e}.theme-abductor .NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:#0a0a0a;color:#fff;text-align:right}.theme-abductor .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:2px;background-color:rgba(0,0,0,.5);transition:border-color .5s}.theme-abductor .ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.theme-abductor .ProgressBar__fill--animated{transition:background-color .5s,width .5s}.theme-abductor .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-abductor .ProgressBar--color--default{border:.0833333333em solid #931e44}.theme-abductor .ProgressBar--color--default .ProgressBar__fill{background-color:#931e44}.theme-abductor .ProgressBar--color--disabled{border:1px solid #363636}.theme-abductor .ProgressBar--color--disabled .ProgressBar__fill{background-color:#363636}.theme-abductor .Section{position:relative;margin-bottom:.5em;background-color:#1c2132;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-abductor .Section:last-child{margin-bottom:0}.theme-abductor .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #ad2350}.theme-abductor .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-abductor .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-abductor .Section__rest{position:relative}.theme-abductor .Section__content{padding:.66em .5em}.theme-abductor .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-abductor .Section--fill{display:flex;flex-direction:column;height:100%}.theme-abductor .Section--fill>.Section__rest{flex-grow:1}.theme-abductor .Section--fill>.Section__rest>.Section__content{height:100%}.theme-abductor .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-abductor .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-abductor .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-abductor .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-abductor .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-abductor .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-abductor .Section .Section:first-child{margin-top:-.5em}.theme-abductor .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-abductor .Section .Section .Section .Section__titleText{font-size:1em}.theme-abductor .Tooltip{z-index:999;padding:.5em .75em;pointer-events:none;text-align:left;transition:opacity .15s ease-out;background-color:#a82d55;color:#fff;box-shadow:.1em .1em 1.25em -.1em rgba(0,0,0,.5);border-radius:2px;max-width:20.8333333333em}.theme-abductor html,.theme-abductor body{scrollbar-color:#384263 #202538}.theme-abductor .Layout,.theme-abductor .Layout *{scrollbar-base-color:#202538;scrollbar-face-color:#384263;scrollbar-3dlight-color:#2a314a;scrollbar-highlight-color:#2a314a;scrollbar-track-color:#202538;scrollbar-arrow-color:#818db8;scrollbar-shadow-color:#384263}.theme-abductor .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-abductor .Layout__content--flexRow{display:flex;flex-flow:row}.theme-abductor .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-abductor .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-abductor .Layout__content--noMargin{margin:0}.theme-abductor .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#2a314a;background-image:linear-gradient(to bottom,#353e5e,#1f2436)}.theme-abductor .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-abductor .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-abductor .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-abductor .Window__contentPadding:after{height:0}.theme-abductor .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-abductor .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(68,76,104,.25);pointer-events:none}.theme-abductor .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-abductor .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-abductor .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-abductor .TitleBar{background-color:#9e1b46;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-abductor .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#9e1b46;transition:color .25s,background-color .25s}.theme-abductor .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-abductor .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-abductor .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-abductor .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-abductor .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-abductor .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-abductor .Layout__content{background-image:none}.theme-cardtable .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:0;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-cardtable .Button:last-child{margin-right:0;margin-bottom:0}.theme-cardtable .Button .fa,.theme-cardtable .Button .fas,.theme-cardtable .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-cardtable .Button--hasContent .fa,.theme-cardtable .Button--hasContent .fas,.theme-cardtable .Button--hasContent .far{margin-right:.25em}.theme-cardtable .Button--hasContent.Button--iconRight .fa,.theme-cardtable .Button--hasContent.Button--iconRight .fas,.theme-cardtable .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-cardtable .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-cardtable .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-cardtable .Button--circular{border-radius:50%}.theme-cardtable .Button--compact{padding:0 .25em;line-height:1.333em}.theme-cardtable .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-cardtable .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-cardtable .Button--color--transparent{background-color:rgba(17,112,57,0);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-cardtable .Button--color--transparent:hover{background-color:rgba(32,145,79,.81);color:#fff}.theme-cardtable .Button--color--default{background-color:#117039;color:#fff;transition:color .2s,background-color .2s}.theme-cardtable .Button--color--default:hover{background-color:#238e50;color:#fff}.theme-cardtable .Button--color--default--translucent{background-color:rgba(25,124,67,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-cardtable .Button--color--default--translucent:hover{background-color:rgba(44,156,92,.5);color:#fff}.theme-cardtable .Button--color--caution{background-color:#be6209;color:#fff;transition:color .2s,background-color .2s}.theme-cardtable .Button--color--caution:hover{background-color:#e67f1a;color:#fff}.theme-cardtable .Button--color--caution--translucent{background-color:rgba(190,98,9,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-cardtable .Button--color--caution--translucent:hover{background-color:rgba(230,127,26,.5);color:#fff}.theme-cardtable .Button--color--danger{background-color:#9a9d00;color:#fff;transition:color .2s,background-color .2s}.theme-cardtable .Button--color--danger:hover{background-color:#bec110;color:#fff}.theme-cardtable .Button--color--danger--translucent{background-color:rgba(154,157,0,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-cardtable .Button--color--danger--translucent:hover{background-color:rgba(190,193,16,.5);color:#fff}.theme-cardtable .Button--disabled{background-color:#363636!important;color:rgba(255,255,255,.75)!important}.theme-cardtable .Button--disabled--translucent{background-color:rgba(77,23,23,.5)!important;color:rgba(255,255,255,.5)!important}.theme-cardtable .Button--selected,.theme-cardtable .Button--selected--translucent{background-color:#9d0808;color:#fff;transition:color .2s,background-color .2s}.theme-cardtable .Button--selected:hover,.theme-cardtable .Button--selected--translucent:hover{background-color:#c11919;color:#fff}.theme-cardtable .Divider--horizontal{margin:.5em 0}.theme-cardtable .Divider--horizontal:not(.Divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.theme-cardtable .Divider--vertical{height:100%;margin:0 .5em}.theme-cardtable .Divider--vertical:not(.Divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.theme-cardtable .color__default{background-color:rgba(78,214,135,.2);color:#000;border:solid rgba(190,240,210,.2);border-width:1px;transition:background-color .2s,border-color .2s}.theme-cardtable .color__default:hover{background-color:rgba(190,240,210,.2)}.theme-cardtable .disabled{background-color:rgba(54,54,54,.25)!important;border-color:rgba(54,54,54,.25)!important}.theme-cardtable .selected{background-color:rgba(157,8,8,.2);color:#fff;border:solid rgba(157,8,8,.25);border-width:1px;transition:background-color .2s,border-color .2s}.theme-cardtable .selected:hover{background-color:rgba(229,42,42,.2)}.theme-cardtable .contentColor__default{background-color:#4bd083;color:#000;border:solid #5be695;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.theme-cardtable .contentDisabled{background-color:#363636!important;border-top:1px solid #4d4d4d!important}.theme-cardtable .contentSelected{background-color:#9d0808;color:#fff;border:solid #c11919;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.theme-cardtable .buttonsContainerColor__default{background-color:rgba(78,214,135,.2);color:#000;border:solid rgba(190,240,210,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.theme-cardtable .ImageButton{display:inline-table;position:relative;text-align:center;margin:.25em;user-select:none;-ms-user-select:none}.theme-cardtable .ImageButton .noAction{pointer-events:none}.theme-cardtable .ImageButton .container{display:flex;flex-direction:column;border-radius:.33em}.theme-cardtable .ImageButton .image{position:relative;align-self:center;pointer-events:none;overflow:hidden;line-height:0;padding:.25em;border-radius:.33em}.theme-cardtable .ImageButton .buttonsContainer{display:flex;position:absolute;overflow:hidden;left:1px;bottom:1.8em;max-width:100%;z-index:1}.theme-cardtable .ImageButton .buttonsContainer.buttonsAltContainer{overflow:visible;flex-direction:column;pointer-events:none;top:1px;bottom:inherit!important}.theme-cardtable .ImageButton .buttonsContainer.buttonsEmpty{bottom:1px}.theme-cardtable .ImageButton .buttonsContainer>*{margin:0!important;padding:0 .2em!important;border-radius:0!important}.theme-cardtable .ImageButton .content{-ms-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:.25em .5em;margin:-1px;border-radius:0 0 .33em .33em;z-index:2}.theme-cardtable .fluid{display:flex;flex-direction:row;position:relative;text-align:center;margin:0 0 .5em;user-select:none;-ms-user-select:none}.theme-cardtable .fluid:last-of-type{margin-bottom:0}.theme-cardtable .fluid .info{display:flex;flex-direction:column;justify-content:center;flex:1}.theme-cardtable .fluid .title{font-weight:700;padding:.5em}.theme-cardtable .fluid .title.divider{margin:0 .5em;border-bottom:.1666666667em solid rgba(255,255,255,.1)}.theme-cardtable .fluid .contentFluid{padding:.5em;color:#fff}.theme-cardtable .fluid .container{flex-direction:row;flex:1}.theme-cardtable .fluid .container.hasButtons{border-radius:.33em 0 0 .33em;border-width:1px 0 1px 1px}.theme-cardtable .fluid .image{padding:0}.theme-cardtable .fluid .buttonsContainer{position:relative;left:inherit;bottom:inherit;border-radius:0 .33em .33em 0}.theme-cardtable .fluid .buttonsContainer.buttonsEmpty{bottom:inherit}.theme-cardtable .fluid .buttonsContainer.buttonsAltContainer{overflow:hidden;pointer-events:auto;top:inherit}.theme-cardtable .fluid .buttonsContainer.buttonsAltContainer>*{border-top:1px solid rgba(255,255,255,.075)}.theme-cardtable .fluid .buttonsContainer.buttonsAltContainer>*:first-child{border-top:0}.theme-cardtable .fluid .buttonsContainer>*{display:inline-flex;flex-direction:column;justify-content:center;text-align:center;white-space:pre-wrap;line-height:1.1666666667em;height:100%;border-left:1px solid rgba(255,255,255,.075)}.theme-cardtable .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:0;background-color:#0a0a0a;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75);padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible;white-space:nowrap}.theme-cardtable .Input--disabled{color:#777;border-color:#848484;border-color:rgba(132,132,132,.75);background-color:#333;background-color:rgba(0,0,0,.25)}.theme-cardtable .Input--fluid{display:block;width:auto}.theme-cardtable .Input__baseline{display:inline-block;color:rgba(0,0,0,0)}.theme-cardtable .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit}.theme-cardtable .Input__input::placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-cardtable .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-cardtable .Input__textarea{border:0;width:calc(100% + 4px);font-size:1em;line-height:1.4166666667em;margin-left:-.3333333333em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit;resize:both;overflow:auto;white-space:pre-wrap}.theme-cardtable .Input__textarea::placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-cardtable .Input__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-cardtable .Input--monospace .Input__input{font-family:Consolas,monospace}.theme-cardtable .NumberInput{position:relative;display:inline-block;border:.0833333333em solid #fff;border:.0833333333em solid rgba(255,255,255,.75);border-radius:0;color:#fff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.theme-cardtable .NumberInput--fluid{display:block}.theme-cardtable .NumberInput__content{margin-left:.5em}.theme-cardtable .NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.theme-cardtable .NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #fff;background-color:#fff}.theme-cardtable .NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:#0a0a0a;color:#fff;text-align:right}.theme-cardtable .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:0;background-color:rgba(0,0,0,.5);transition:border-color .5s}.theme-cardtable .ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.theme-cardtable .ProgressBar__fill--animated{transition:background-color .5s,width .5s}.theme-cardtable .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-cardtable .ProgressBar--color--default{border:.0833333333em solid #000}.theme-cardtable .ProgressBar--color--default .ProgressBar__fill{background-color:#000}.theme-cardtable .ProgressBar--color--disabled{border:1px solid #363636}.theme-cardtable .ProgressBar--color--disabled .ProgressBar__fill{background-color:#363636}.theme-cardtable .Section{position:relative;margin-bottom:.5em;background-color:#0b4b26;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-cardtable .Section:last-child{margin-bottom:0}.theme-cardtable .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #000}.theme-cardtable .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-cardtable .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-cardtable .Section__rest{position:relative}.theme-cardtable .Section__content{padding:.66em .5em}.theme-cardtable .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-cardtable .Section--fill{display:flex;flex-direction:column;height:100%}.theme-cardtable .Section--fill>.Section__rest{flex-grow:1}.theme-cardtable .Section--fill>.Section__rest>.Section__content{height:100%}.theme-cardtable .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-cardtable .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-cardtable .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-cardtable .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-cardtable .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-cardtable .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-cardtable .Section .Section:first-child{margin-top:-.5em}.theme-cardtable .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-cardtable .Section .Section .Section .Section__titleText{font-size:1em}.theme-cardtable html,.theme-cardtable body{scrollbar-color:#20d36c #0d542b}.theme-cardtable .Layout,.theme-cardtable .Layout *{scrollbar-base-color:#0d542b;scrollbar-face-color:#16914a;scrollbar-3dlight-color:#117039;scrollbar-highlight-color:#117039;scrollbar-track-color:#0d542b;scrollbar-arrow-color:#5ae695;scrollbar-shadow-color:#16914a}.theme-cardtable .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-cardtable .Layout__content--flexRow{display:flex;flex-flow:row}.theme-cardtable .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-cardtable .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-cardtable .Layout__content--noMargin{margin:0}.theme-cardtable .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#117039;background-image:linear-gradient(to bottom,#117039,#117039)}.theme-cardtable .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-cardtable .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-cardtable .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-cardtable .Window__contentPadding:after{height:0}.theme-cardtable .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-cardtable .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(39,148,85,.25);pointer-events:none}.theme-cardtable .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-cardtable .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-cardtable .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-cardtable .TitleBar{background-color:#381608;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-cardtable .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#381608;transition:color .25s,background-color .25s}.theme-cardtable .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-cardtable .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-cardtable .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-cardtable .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-cardtable .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-cardtable .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-cardtable .Button{border:.1666666667em solid #fff}.theme-changeling .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:2px;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-changeling .Button:last-child{margin-right:0;margin-bottom:0}.theme-changeling .Button .fa,.theme-changeling .Button .fas,.theme-changeling .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-changeling .Button--hasContent .fa,.theme-changeling .Button--hasContent .fas,.theme-changeling .Button--hasContent .far{margin-right:.25em}.theme-changeling .Button--hasContent.Button--iconRight .fa,.theme-changeling .Button--hasContent.Button--iconRight .fas,.theme-changeling .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-changeling .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-changeling .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-changeling .Button--circular{border-radius:50%}.theme-changeling .Button--compact{padding:0 .25em;line-height:1.333em}.theme-changeling .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-changeling .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-changeling .Button--color--transparent{background-color:rgba(46,38,51,0);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-changeling .Button--color--transparent:hover{background-color:rgba(67,57,73,.81);color:#fff}.theme-changeling .Button--color--default{background-color:#563d6b;color:#fff;transition:color .2s,background-color .2s}.theme-changeling .Button--color--default:hover{background-color:#715589;color:#fff}.theme-changeling .Button--color--default--translucent{background-color:rgba(55,47,60,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-changeling .Button--color--default--translucent:hover{background-color:rgba(78,69,84,.5);color:#fff}.theme-changeling .Button--color--caution{background-color:#d9b804;color:#000;transition:color .2s,background-color .2s}.theme-changeling .Button--color--caution:hover{background-color:#f5d523;color:#000}.theme-changeling .Button--color--caution--translucent{background-color:rgba(217,184,4,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-changeling .Button--color--caution--translucent:hover{background-color:rgba(245,213,35,.5);color:#fff}.theme-changeling .Button--color--danger{background-color:#bd2020;color:#fff;transition:color .2s,background-color .2s}.theme-changeling .Button--color--danger:hover{background-color:#d93f3f;color:#fff}.theme-changeling .Button--color--danger--translucent{background-color:rgba(189,32,32,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-changeling .Button--color--danger--translucent:hover{background-color:rgba(217,63,63,.5);color:#fff}.theme-changeling .Button--disabled{background-color:#999!important;color:rgba(255,255,255,.75)!important}.theme-changeling .Button--disabled--translucent{background-color:rgba(77,23,23,.5)!important;color:rgba(255,255,255,.5)!important}.theme-changeling .Button--selected,.theme-changeling .Button--selected--translucent{background-color:#188552;color:#fff;transition:color .2s,background-color .2s}.theme-changeling .Button--selected:hover,.theme-changeling .Button--selected--translucent:hover{background-color:#2ba66d;color:#fff}.theme-changeling .Divider--horizontal{margin:.5em 0}.theme-changeling .Divider--horizontal:not(.Divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.theme-changeling .Divider--vertical{height:100%;margin:0 .5em}.theme-changeling .Divider--vertical:not(.Divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.theme-changeling .color__default{background-color:rgba(103,88,114,.2);color:#fff;border:solid rgba(160,147,170,.2);border-width:1px;transition:background-color .2s,border-color .2s}.theme-changeling .color__default:hover{background-color:rgba(160,147,170,.2)}.theme-changeling .disabled{background-color:rgba(99,29,29,.25)!important;border-color:rgba(99,29,29,.25)!important}.theme-changeling .selected{background-color:rgba(24,133,82,.2);color:#fff;border:solid rgba(24,133,82,.25);border-width:1px;transition:background-color .2s,border-color .2s}.theme-changeling .selected:hover{background-color:rgba(62,199,135,.2)}.theme-changeling .contentColor__default{background-color:#63556e;color:#fff;border:solid #73647f;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.theme-changeling .contentDisabled{background-color:#631d1d!important;border-top:1px solid #803131!important}.theme-changeling .contentSelected{background-color:#188552;color:#fff;border:solid #2ba66d;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.theme-changeling .buttonsContainerColor__default{background-color:rgba(103,88,114,.2);color:#fff;border:solid rgba(160,147,170,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.theme-changeling .ImageButton{display:inline-table;position:relative;text-align:center;margin:.25em;user-select:none;-ms-user-select:none}.theme-changeling .ImageButton .noAction{pointer-events:none}.theme-changeling .ImageButton .container{display:flex;flex-direction:column;border-radius:.33em}.theme-changeling .ImageButton .image{position:relative;align-self:center;pointer-events:none;overflow:hidden;line-height:0;padding:.25em;border-radius:.33em}.theme-changeling .ImageButton .buttonsContainer{display:flex;position:absolute;overflow:hidden;left:1px;bottom:1.8em;max-width:100%;z-index:1}.theme-changeling .ImageButton .buttonsContainer.buttonsAltContainer{overflow:visible;flex-direction:column;pointer-events:none;top:1px;bottom:inherit!important}.theme-changeling .ImageButton .buttonsContainer.buttonsEmpty{bottom:1px}.theme-changeling .ImageButton .buttonsContainer>*{margin:0!important;padding:0 .2em!important;border-radius:0!important}.theme-changeling .ImageButton .content{-ms-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:.25em .5em;margin:-1px;border-radius:0 0 .33em .33em;z-index:2}.theme-changeling .fluid{display:flex;flex-direction:row;position:relative;text-align:center;margin:0 0 .5em;user-select:none;-ms-user-select:none}.theme-changeling .fluid:last-of-type{margin-bottom:0}.theme-changeling .fluid .info{display:flex;flex-direction:column;justify-content:center;flex:1}.theme-changeling .fluid .title{font-weight:700;padding:.5em}.theme-changeling .fluid .title.divider{margin:0 .5em;border-bottom:.1666666667em solid rgba(255,255,255,.1)}.theme-changeling .fluid .contentFluid{padding:.5em;color:#fff}.theme-changeling .fluid .container{flex-direction:row;flex:1}.theme-changeling .fluid .container.hasButtons{border-radius:.33em 0 0 .33em;border-width:1px 0 1px 1px}.theme-changeling .fluid .image{padding:0}.theme-changeling .fluid .buttonsContainer{position:relative;left:inherit;bottom:inherit;border-radius:0 .33em .33em 0}.theme-changeling .fluid .buttonsContainer.buttonsEmpty{bottom:inherit}.theme-changeling .fluid .buttonsContainer.buttonsAltContainer{overflow:hidden;pointer-events:auto;top:inherit}.theme-changeling .fluid .buttonsContainer.buttonsAltContainer>*{border-top:1px solid rgba(255,255,255,.075)}.theme-changeling .fluid .buttonsContainer.buttonsAltContainer>*:first-child{border-top:0}.theme-changeling .fluid .buttonsContainer>*{display:inline-flex;flex-direction:column;justify-content:center;text-align:center;white-space:pre-wrap;line-height:1.1666666667em;height:100%;border-left:1px solid rgba(255,255,255,.075)}.theme-changeling .Section{position:relative;margin-bottom:.5em;background-color:#1f1922;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-changeling .Section:last-child{margin-bottom:0}.theme-changeling .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #563d6b}.theme-changeling .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-changeling .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-changeling .Section__rest{position:relative}.theme-changeling .Section__content{padding:.66em .5em}.theme-changeling .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-changeling .Section--fill{display:flex;flex-direction:column;height:100%}.theme-changeling .Section--fill>.Section__rest{flex-grow:1}.theme-changeling .Section--fill>.Section__rest>.Section__content{height:100%}.theme-changeling .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-changeling .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-changeling .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-changeling .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-changeling .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-changeling .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-changeling .Section .Section:first-child{margin-top:-.5em}.theme-changeling .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-changeling .Section .Section .Section .Section__titleText{font-size:1em}.theme-changeling .Tabs{display:flex;align-items:stretch;overflow:hidden;background-color:rgba(0,0,0,.33)}.theme-changeling .Tabs--fill{height:100%}.theme-changeling .Section .Tabs{background-color:rgba(0,0,0,0)}.theme-changeling .Section:not(.Section--fitted) .Tabs{margin:0 -.5em .5em}.theme-changeling .Section:not(.Section--fitted) .Tabs:first-child{margin-top:-.5em}.theme-changeling .Tabs--vertical{flex-direction:column;padding:.25em .25em .25em 0}.theme-changeling .Tabs--horizontal{margin-bottom:.5em;padding:.25em .25em 0}.theme-changeling .Tabs--horizontal:last-child{margin-bottom:0}.theme-changeling .Tabs__Tab{flex-grow:0}.theme-changeling .Tabs--fluid .Tabs__Tab{flex-grow:1}.theme-changeling .Tab{display:flex;align-items:center;justify-content:space-between;background-color:rgba(0,0,0,0);color:rgba(255,255,255,.5);min-height:2.25em;min-width:4em;transition:background-color 50ms ease-out}.theme-changeling .Tab:not(.Tab--selected):hover{background-color:rgba(255,255,255,.075);transition:background-color 0}.theme-changeling .Tab--selected{background-color:#563d6b;color:#e3daea}.theme-changeling .Tab__text{flex-grow:1;margin:0 .5em}.theme-changeling .Tab__left{min-width:1.5em;text-align:center;margin-left:.25em}.theme-changeling .Tab__right{min-width:1.5em;text-align:center;margin-right:.25em}.theme-changeling .Tabs--horizontal .Tab{border-top:.1666666667em solid rgba(0,0,0,0);border-bottom:.1666666667em solid rgba(0,0,0,0);border-top-left-radius:.25em;border-top-right-radius:.25em}.theme-changeling .Tabs--horizontal .Tab--selected{border-bottom:.1666666667em solid #d9cee3}.theme-changeling .Tabs--vertical .Tab{min-height:2em;border-left:.1666666667em solid rgba(0,0,0,0);border-right:.1666666667em solid rgba(0,0,0,0);border-top-right-radius:.25em;border-bottom-right-radius:.25em}.theme-changeling .Tabs--vertical .Tab--selected{border-left:.1666666667em solid #d9cee3}.theme-changeling html,.theme-changeling body{scrollbar-color:#44384b #231d26}.theme-changeling .Layout,.theme-changeling .Layout *{scrollbar-base-color:#231d26;scrollbar-face-color:#44384b;scrollbar-3dlight-color:#2e2633;scrollbar-highlight-color:#2e2633;scrollbar-track-color:#231d26;scrollbar-arrow-color:#9986a5;scrollbar-shadow-color:#44384b}.theme-changeling .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-changeling .Layout__content--flexRow{display:flex;flex-flow:row}.theme-changeling .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-changeling .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-changeling .Layout__content--noMargin{margin:0}.theme-changeling .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#2e2633;background-image:linear-gradient(to bottom,#3e3345,#1e1921)}.theme-changeling .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-changeling .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-changeling .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-changeling .Window__contentPadding:after{height:0}.theme-changeling .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-changeling .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(72,63,78,.25);pointer-events:none}.theme-changeling .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-changeling .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-changeling .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-changeling .TitleBar{background-color:#352d3b;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-changeling .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#352d3b;transition:color .25s,background-color .25s}.theme-changeling .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-changeling .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-changeling .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-changeling .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-changeling .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-changeling .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-changeling .Layout__content{background-image:none}.theme-hackerman .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-hackerman .Button:last-child{margin-right:0;margin-bottom:0}.theme-hackerman .Button .fa,.theme-hackerman .Button .fas,.theme-hackerman .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-hackerman .Button--hasContent .fa,.theme-hackerman .Button--hasContent .fas,.theme-hackerman .Button--hasContent .far{margin-right:.25em}.theme-hackerman .Button--hasContent.Button--iconRight .fa,.theme-hackerman .Button--hasContent.Button--iconRight .fas,.theme-hackerman .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-hackerman .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-hackerman .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-hackerman .Button--circular{border-radius:50%}.theme-hackerman .Button--compact{padding:0 .25em;line-height:1.333em}.theme-hackerman .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-hackerman .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-hackerman .Button--color--transparent{background-color:rgba(18,27,18,0);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-hackerman .Button--color--transparent:hover{background-color:rgba(34,44,34,.81);color:#fff}.theme-hackerman .Button--color--default{background-color:#0f0;color:#000;transition:color .2s,background-color .2s}.theme-hackerman .Button--color--default:hover{background-color:#40ff40;color:#000}.theme-hackerman .Button--color--default--translucent{background-color:rgba(26,35,26,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-hackerman .Button--color--default--translucent:hover{background-color:rgba(46,56,46,.5);color:#fff}.theme-hackerman .Button--color--caution{background-color:#d9b804;color:#000;transition:color .2s,background-color .2s}.theme-hackerman .Button--color--caution:hover{background-color:#f5d523;color:#000}.theme-hackerman .Button--color--caution--translucent{background-color:rgba(217,184,4,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-hackerman .Button--color--caution--translucent:hover{background-color:rgba(245,213,35,.5);color:#fff}.theme-hackerman .Button--color--danger{background-color:#bd2020;color:#fff;transition:color .2s,background-color .2s}.theme-hackerman .Button--color--danger:hover{background-color:#d93f3f;color:#fff}.theme-hackerman .Button--color--danger--translucent{background-color:rgba(189,32,32,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-hackerman .Button--color--danger--translucent:hover{background-color:rgba(217,63,63,.5);color:#fff}.theme-hackerman .Button--disabled{background-color:#363636!important;color:rgba(255,255,255,.75)!important}.theme-hackerman .Button--disabled--translucent{background-color:rgba(77,23,23,.5)!important;color:rgba(255,255,255,.5)!important}.theme-hackerman .Button--selected,.theme-hackerman .Button--selected--translucent{background-color:#0f0;color:#000;transition:color .2s,background-color .2s}.theme-hackerman .Button--selected:hover,.theme-hackerman .Button--selected--translucent:hover{background-color:#40ff40;color:#000}.theme-hackerman .Divider--horizontal{margin:.5em 0}.theme-hackerman .Divider--horizontal:not(.Divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.theme-hackerman .Divider--vertical{height:100%;margin:0 .5em}.theme-hackerman .Divider--vertical:not(.Divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.theme-hackerman .color__default{background-color:rgba(54,236,54,.2);color:#000;border:solid rgba(178,248,178,.2);border-width:1px;transition:background-color .2s,border-color .2s}.theme-hackerman .color__default:hover{background-color:rgba(178,248,178,.2)}.theme-hackerman .disabled{background-color:rgba(54,54,54,.25)!important;border-color:rgba(54,54,54,.25)!important}.theme-hackerman .selected{background-color:rgba(128,255,128,.2);color:#000;border:solid rgba(128,255,128,.25);border-width:1px;transition:background-color .2s,border-color .2s}.theme-hackerman .selected:hover{background-color:rgba(239,255,239,.2)}.theme-hackerman .contentColor__default{background-color:#33e633;color:#000;border:solid #40ff40;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.theme-hackerman .contentDisabled{background-color:#363636!important;border-top:1px solid #4d4d4d!important}.theme-hackerman .contentSelected{background-color:#80ff80;color:#000;border:solid #cfffcf;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.theme-hackerman .buttonsContainerColor__default{background-color:rgba(54,236,54,.2);color:#000;border:solid rgba(178,248,178,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.theme-hackerman .ImageButton{display:inline-table;position:relative;text-align:center;margin:.25em;user-select:none;-ms-user-select:none}.theme-hackerman .ImageButton .noAction{pointer-events:none}.theme-hackerman .ImageButton .container{display:flex;flex-direction:column;border-radius:.33em}.theme-hackerman .ImageButton .image{position:relative;align-self:center;pointer-events:none;overflow:hidden;line-height:0;padding:.25em;border-radius:.33em}.theme-hackerman .ImageButton .buttonsContainer{display:flex;position:absolute;overflow:hidden;left:1px;bottom:1.8em;max-width:100%;z-index:1}.theme-hackerman .ImageButton .buttonsContainer.buttonsAltContainer{overflow:visible;flex-direction:column;pointer-events:none;top:1px;bottom:inherit!important}.theme-hackerman .ImageButton .buttonsContainer.buttonsEmpty{bottom:1px}.theme-hackerman .ImageButton .buttonsContainer>*{margin:0!important;padding:0 .2em!important;border-radius:0!important}.theme-hackerman .ImageButton .content{-ms-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:.25em .5em;margin:-1px;border-radius:0 0 .33em .33em;z-index:2}.theme-hackerman .fluid{display:flex;flex-direction:row;position:relative;text-align:center;margin:0 0 .5em;user-select:none;-ms-user-select:none}.theme-hackerman .fluid:last-of-type{margin-bottom:0}.theme-hackerman .fluid .info{display:flex;flex-direction:column;justify-content:center;flex:1}.theme-hackerman .fluid .title{font-weight:700;padding:.5em}.theme-hackerman .fluid .title.divider{margin:0 .5em;border-bottom:.1666666667em solid rgba(255,255,255,.1)}.theme-hackerman .fluid .contentFluid{padding:.5em;color:#fff}.theme-hackerman .fluid .container{flex-direction:row;flex:1}.theme-hackerman .fluid .container.hasButtons{border-radius:.33em 0 0 .33em;border-width:1px 0 1px 1px}.theme-hackerman .fluid .image{padding:0}.theme-hackerman .fluid .buttonsContainer{position:relative;left:inherit;bottom:inherit;border-radius:0 .33em .33em 0}.theme-hackerman .fluid .buttonsContainer.buttonsEmpty{bottom:inherit}.theme-hackerman .fluid .buttonsContainer.buttonsAltContainer{overflow:hidden;pointer-events:auto;top:inherit}.theme-hackerman .fluid .buttonsContainer.buttonsAltContainer>*{border-top:1px solid rgba(255,255,255,.075)}.theme-hackerman .fluid .buttonsContainer.buttonsAltContainer>*:first-child{border-top:0}.theme-hackerman .fluid .buttonsContainer>*{display:inline-flex;flex-direction:column;justify-content:center;text-align:center;white-space:pre-wrap;line-height:1.1666666667em;height:100%;border-left:1px solid rgba(255,255,255,.075)}.theme-hackerman .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid lime;border:.0833333333em solid rgba(0,255,0,.75);border-radius:.16em;background-color:#0a0a0a;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75);padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible;white-space:nowrap}.theme-hackerman .Input--disabled{color:#777;border-color:#404040;border-color:rgba(64,64,64,.75);background-color:#333;background-color:rgba(0,0,0,.25)}.theme-hackerman .Input--fluid{display:block;width:auto}.theme-hackerman .Input__baseline{display:inline-block;color:rgba(0,0,0,0)}.theme-hackerman .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit}.theme-hackerman .Input__input::placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-hackerman .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-hackerman .Input__textarea{border:0;width:calc(100% + 4px);font-size:1em;line-height:1.4166666667em;margin-left:-.3333333333em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit;resize:both;overflow:auto;white-space:pre-wrap}.theme-hackerman .Input__textarea::placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-hackerman .Input__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-hackerman .Input--monospace .Input__input{font-family:Consolas,monospace}.theme-hackerman .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:.16em;background-color:rgba(0,0,0,0);transition:border-color .5s}.theme-hackerman .ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.theme-hackerman .ProgressBar__fill--animated{transition:background-color .5s,width .5s}.theme-hackerman .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-hackerman .ProgressBar--color--default{border:.0833333333em solid #00d900}.theme-hackerman .ProgressBar--color--default .ProgressBar__fill{background-color:#00d900}.theme-hackerman .ProgressBar--color--disabled{border:1px solid #363636}.theme-hackerman .ProgressBar--color--disabled .ProgressBar__fill{background-color:#363636}.theme-hackerman .Modal{background-color:#121b12;max-width:calc(100% - 1rem);padding:1rem;scrollbar-base-color:#0e140e;scrollbar-face-color:#253725;scrollbar-3dlight-color:#121b12;scrollbar-highlight-color:#121b12;scrollbar-track-color:#0e140e;scrollbar-arrow-color:#74a274;scrollbar-shadow-color:#253725}.theme-hackerman .Section{position:relative;margin-bottom:.5em;background-color:#0c120c;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-hackerman .Section:last-child{margin-bottom:0}.theme-hackerman .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid lime}.theme-hackerman .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-hackerman .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-hackerman .Section__rest{position:relative}.theme-hackerman .Section__content{padding:.66em .5em}.theme-hackerman .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-hackerman .Section--fill{display:flex;flex-direction:column;height:100%}.theme-hackerman .Section--fill>.Section__rest{flex-grow:1}.theme-hackerman .Section--fill>.Section__rest>.Section__content{height:100%}.theme-hackerman .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-hackerman .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-hackerman .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-hackerman .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-hackerman .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-hackerman .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-hackerman .Section .Section:first-child{margin-top:-.5em}.theme-hackerman .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-hackerman .Section .Section .Section .Section__titleText{font-size:1em}.theme-hackerman html,.theme-hackerman body{scrollbar-color:#253725 #0e140e}.theme-hackerman .Layout,.theme-hackerman .Layout *{scrollbar-base-color:#0e140e;scrollbar-face-color:#253725;scrollbar-3dlight-color:#121b12;scrollbar-highlight-color:#121b12;scrollbar-track-color:#0e140e;scrollbar-arrow-color:#74a274;scrollbar-shadow-color:#253725}.theme-hackerman .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-hackerman .Layout__content--flexRow{display:flex;flex-flow:row}.theme-hackerman .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-hackerman .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-hackerman .Layout__content--noMargin{margin:0}.theme-hackerman .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#121b12;background-image:linear-gradient(to bottom,#121b12,#121b12)}.theme-hackerman .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-hackerman .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-hackerman .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-hackerman .Window__contentPadding:after{height:0}.theme-hackerman .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-hackerman .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(40,50,40,.25);pointer-events:none}.theme-hackerman .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-hackerman .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-hackerman .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-hackerman .TitleBar{background-color:#223d22;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-hackerman .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#223d22;transition:color .25s,background-color .25s}.theme-hackerman .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-hackerman .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-hackerman .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-hackerman .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-hackerman .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-hackerman .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-hackerman .Layout__content{background-image:none}.theme-hackerman .Button{font-family:monospace;border-width:.1666666667em;border-style:outset;border-color:#0a0;outline:.0833333333em solid #007a00}.theme-hackerman .candystripe:nth-child(odd){background-color:rgba(0,100,0,.5)}.theme-hydroponics .color-label{color:#8bb08b!important}.theme-hydroponics .color-bg-good{background-color:#4d9121!important}.theme-hydroponics .color-border-label{border-color:#8bb08b!important}.theme-hydroponics .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-hydroponics .Button:last-child{margin-right:0;margin-bottom:0}.theme-hydroponics .Button .fa,.theme-hydroponics .Button .fas,.theme-hydroponics .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-hydroponics .Button--hasContent .fa,.theme-hydroponics .Button--hasContent .fas,.theme-hydroponics .Button--hasContent .far{margin-right:.25em}.theme-hydroponics .Button--hasContent.Button--iconRight .fa,.theme-hydroponics .Button--hasContent.Button--iconRight .fas,.theme-hydroponics .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-hydroponics .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-hydroponics .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-hydroponics .Button--circular{border-radius:50%}.theme-hydroponics .Button--compact{padding:0 .25em;line-height:1.333em}.theme-hydroponics .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-hydroponics .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-hydroponics .Button--color--good{background-color:#4d9121;color:#fff;transition:color .2s,background-color .2s}.theme-hydroponics .Button--color--good:hover{background-color:#67b335;color:#fff}.theme-hydroponics .Button--color--good--translucent{background-color:rgba(77,145,33,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-hydroponics .Button--color--good--translucent:hover{background-color:rgba(103,179,53,.5);color:#fff}.theme-hydroponics .Button--color--transparent{background-color:rgba(37,37,37,0);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-hydroponics .Button--color--transparent:hover{background-color:rgba(56,56,56,.81);color:#fff}.theme-hydroponics .Button--color--default{background-color:#49a149;color:#fff;transition:color .2s,background-color .2s}.theme-hydroponics .Button--color--default:hover{background-color:#6dbb6d;color:#fff}.theme-hydroponics .Button--color--default--translucent{background-color:rgba(46,46,46,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-hydroponics .Button--color--default--translucent:hover{background-color:rgba(68,68,68,.5);color:#fff}.theme-hydroponics .Button--color--caution{background-color:#d9b804;color:#000;transition:color .2s,background-color .2s}.theme-hydroponics .Button--color--caution:hover{background-color:#f5d523;color:#000}.theme-hydroponics .Button--color--caution--translucent{background-color:rgba(217,184,4,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-hydroponics .Button--color--caution--translucent:hover{background-color:rgba(245,213,35,.5);color:#fff}.theme-hydroponics .Button--color--danger{background-color:#bd2020;color:#fff;transition:color .2s,background-color .2s}.theme-hydroponics .Button--color--danger:hover{background-color:#d93f3f;color:#fff}.theme-hydroponics .Button--color--danger--translucent{background-color:rgba(189,32,32,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-hydroponics .Button--color--danger--translucent:hover{background-color:rgba(217,63,63,.5);color:#fff}.theme-hydroponics .Button--disabled{background-color:#999!important;color:rgba(255,255,255,.75)!important}.theme-hydroponics .Button--disabled--translucent{background-color:rgba(77,23,23,.5)!important;color:rgba(255,255,255,.5)!important}.theme-hydroponics .Button--selected,.theme-hydroponics .Button--selected--translucent{background-color:#1b9638;color:#fff;transition:color .2s,background-color .2s}.theme-hydroponics .Button--selected:hover,.theme-hydroponics .Button--selected--translucent:hover{background-color:#2fb94f;color:#fff}.theme-hydroponics .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #8f8;border:.0833333333em solid rgba(136,255,136,.75);border-radius:.16em;background-color:#0a0a0a;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75);padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible;white-space:nowrap}.theme-hydroponics .Input--disabled{color:#777;border-color:#848484;border-color:rgba(132,132,132,.75);background-color:#333;background-color:rgba(0,0,0,.25)}.theme-hydroponics .Input--fluid{display:block;width:auto}.theme-hydroponics .Input__baseline{display:inline-block;color:rgba(0,0,0,0)}.theme-hydroponics .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit}.theme-hydroponics .Input__input::placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-hydroponics .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-hydroponics .Input__textarea{border:0;width:calc(100% + 4px);font-size:1em;line-height:1.4166666667em;margin-left:-.3333333333em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit;resize:both;overflow:auto;white-space:pre-wrap}.theme-hydroponics .Input__textarea::placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-hydroponics .Input__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-hydroponics .Input--monospace .Input__input{font-family:Consolas,monospace}.theme-hydroponics .NoticeBox{padding:.33em .5em;margin-bottom:.5em;box-shadow:none;font-weight:700;font-style:italic;color:#000;background-color:#bb9b68;background-image:repeating-linear-gradient(-45deg,transparent,transparent .8333333333em,rgba(0,0,0,.1) .8333333333em,rgba(0,0,0,.1) 1.6666666667em)}.theme-hydroponics .NoticeBox--color--good{color:#fff;background-color:#2e4b1a}.theme-hydroponics .NoticeBox--type--info{color:#000;background-color:#238223}.theme-hydroponics .NoticeBox--type--success{color:#fff;background-color:#1e662f}.theme-hydroponics .NoticeBox--type--warning{color:#fff;background-color:#a95219}.theme-hydroponics .NoticeBox--type--danger{color:#fff;background-color:#8f2828}.theme-hydroponics .Section{position:relative;margin-bottom:.5em;background-color:#191919;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-hydroponics .Section:last-child{margin-bottom:0}.theme-hydroponics .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #49a149}.theme-hydroponics .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-hydroponics .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-hydroponics .Section__rest{position:relative}.theme-hydroponics .Section__content{padding:.66em .5em}.theme-hydroponics .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-hydroponics .Section--fill{display:flex;flex-direction:column;height:100%}.theme-hydroponics .Section--fill>.Section__rest{flex-grow:1}.theme-hydroponics .Section--fill>.Section__rest>.Section__content{height:100%}.theme-hydroponics .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-hydroponics .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-hydroponics .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-hydroponics .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-hydroponics .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-hydroponics .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-hydroponics .Section .Section:first-child{margin-top:-.5em}.theme-hydroponics .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-hydroponics .Section .Section .Section .Section__titleText{font-size:1em}.theme-hydroponics .Newscaster__menu{width:40px;height:100%;margin-right:.5rem;flex-basis:content}.theme-hydroponics .Newscaster__menu .Section__content{padding-left:0}.theme-hydroponics .Newscaster__menuButton{color:#767676;cursor:pointer;position:relative;margin-left:6px;margin-right:1rem;white-space:nowrap;transition:color .1s}.theme-hydroponics .Newscaster__menuButton--title{width:80%;display:none;overflow:hidden;text-overflow:ellipsis}.theme-hydroponics .Newscaster__menuButton--unread{background-color:#e45e5e;color:#fff;font-size:10px;text-align:center;border-radius:32px;display:inline-block;width:12px;position:absolute;left:16px;margin-top:14px}.theme-hydroponics .Newscaster__menuButton--selected{color:#fff}.theme-hydroponics .Newscaster__menuButton--selected:after{content:"";background-color:#49a149;width:2px;height:24px;position:absolute;left:-6px}.theme-hydroponics .Newscaster__menuButton--security{color:#49a149}.theme-hydroponics .Newscaster__menuButton i{width:30px;text-align:center;vertical-align:middle;margin-left:-1px;margin-right:.5rem;margin-top:1px}.theme-hydroponics .Newscaster__menuButton:hover{color:#fff}.theme-hydroponics .Newscaster__menuButton:hover:before{background-color:#fff}.theme-hydroponics .Newscaster__menuButton:not(:last-of-type){margin-bottom:.5rem}.theme-hydroponics .Newscaster__menu--open{width:175px}.theme-hydroponics .Newscaster__menu--open .Newscaster__menuButton--title{display:inline-block}.theme-hydroponics .Newscaster__jobCategory--security .Section__title{color:#a14c49;border-bottom:2px solid #a14c49!important}.theme-hydroponics .Newscaster__jobCategory--engineering .Section__title{color:#a17849;border-bottom:2px solid #a17849!important}.theme-hydroponics .Newscaster__jobCategory--medical .Section__title{color:#499ea1;border-bottom:2px solid #499ea1!important}.theme-hydroponics .Newscaster__jobCategory--science .Section__title{color:#a14972;border-bottom:2px solid #a14972!important}.theme-hydroponics .Newscaster__jobCategory--service .Section__title{color:#a1499e;border-bottom:2px solid #a1499e!important}.theme-hydroponics .Newscaster__jobCategory--supply .Section__title{color:#9ea149;border-bottom:2px solid #9ea149!important}.theme-hydroponics .Newscaster__jobCategory:last-child{margin-bottom:.5rem}.theme-hydroponics .Newscaster__jobOpening--command{font-weight:700}.theme-hydroponics .Newscaster__jobOpening:not(:last-child){margin-bottom:.5rem}.theme-hydroponics .Newscaster__emptyNotice{color:#7ea77e;text-align:center;position:absolute;top:50%;left:50%;transform:translateY(-50%) translate(-50%)}.theme-hydroponics .Newscaster__emptyNotice i{margin-bottom:.25rem}.theme-hydroponics .Newscaster__photo{cursor:pointer;width:100px;border:1px solid #000;transition:border-color .3s;-ms-interpolation-mode:nearest-neighbor;image-rendering:pixelated}.theme-hydroponics .Newscaster__photo:hover{border-color:gray}.theme-hydroponics .Newscaster__photoZoom{text-align:center}.theme-hydroponics .Newscaster__photoZoom>img{transform:scale(2);-ms-interpolation-mode:nearest-neighbor;image-rendering:pixelated}.theme-hydroponics .Newscaster__photoZoom>.Button{position:absolute;width:64px;left:50%;margin-left:-32px;bottom:1rem}.theme-hydroponics .Newscaster__story--wanted{background-color:rgba(219,40,40,.1)}.theme-hydroponics .Newscaster__story--wanted .Section__title{color:#db2828;border-bottom:2px solid #a14c49!important}.theme-hydroponics .Newscaster__story:last-child{margin-bottom:.5rem}.theme-malfunction .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-malfunction .Button:last-child{margin-right:0;margin-bottom:0}.theme-malfunction .Button .fa,.theme-malfunction .Button .fas,.theme-malfunction .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-malfunction .Button--hasContent .fa,.theme-malfunction .Button--hasContent .fas,.theme-malfunction .Button--hasContent .far{margin-right:.25em}.theme-malfunction .Button--hasContent.Button--iconRight .fa,.theme-malfunction .Button--hasContent.Button--iconRight .fas,.theme-malfunction .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-malfunction .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-malfunction .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-malfunction .Button--circular{border-radius:50%}.theme-malfunction .Button--compact{padding:0 .25em;line-height:1.333em}.theme-malfunction .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-malfunction .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-malfunction .Button--color--transparent{background-color:rgba(27,52,67,0);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-malfunction .Button--color--transparent:hover{background-color:rgba(44,74,92,.81);color:#fff}.theme-malfunction .Button--color--default{background-color:#910101;color:#fff;transition:color .2s,background-color .2s}.theme-malfunction .Button--color--default:hover{background-color:#b31111;color:#fff}.theme-malfunction .Button--color--default--translucent{background-color:rgba(35,61,77,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-malfunction .Button--color--default--translucent:hover{background-color:rgba(56,85,103,.5);color:#fff}.theme-malfunction .Button--color--caution{background-color:#be6209;color:#fff;transition:color .2s,background-color .2s}.theme-malfunction .Button--color--caution:hover{background-color:#e67f1a;color:#fff}.theme-malfunction .Button--color--caution--translucent{background-color:rgba(190,98,9,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-malfunction .Button--color--caution--translucent:hover{background-color:rgba(230,127,26,.5);color:#fff}.theme-malfunction .Button--color--danger{background-color:#9a9d00;color:#fff;transition:color .2s,background-color .2s}.theme-malfunction .Button--color--danger:hover{background-color:#bec110;color:#fff}.theme-malfunction .Button--color--danger--translucent{background-color:rgba(154,157,0,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-malfunction .Button--color--danger--translucent:hover{background-color:rgba(190,193,16,.5);color:#fff}.theme-malfunction .Button--disabled{background-color:#363636!important;color:rgba(255,255,255,.75)!important}.theme-malfunction .Button--disabled--translucent{background-color:rgba(77,23,23,.5)!important;color:rgba(255,255,255,.5)!important}.theme-malfunction .Button--selected,.theme-malfunction .Button--selected--translucent{background-color:#1e5881;color:#fff;transition:color .2s,background-color .2s}.theme-malfunction .Button--selected:hover,.theme-malfunction .Button--selected--translucent:hover{background-color:#3273a1;color:#fff}.theme-malfunction .Divider--horizontal{margin:.5em 0}.theme-malfunction .Divider--horizontal:not(.Divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.theme-malfunction .Divider--vertical{height:100%;margin:0 .5em}.theme-malfunction .Divider--vertical:not(.Divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.theme-malfunction .color__default{background-color:rgba(117,55,55,.2);color:#fff;border:solid rgba(177,102,102,.2);border-width:1px;transition:background-color .2s,border-color .2s}.theme-malfunction .color__default:hover{background-color:rgba(177,102,102,.2)}.theme-malfunction .disabled{background-color:rgba(54,54,54,.25)!important;border-color:rgba(54,54,54,.25)!important}.theme-malfunction .selected{background-color:rgba(30,88,129,.2);color:#fff;border:solid rgba(30,88,129,.25);border-width:1px;transition:background-color .2s,border-color .2s}.theme-malfunction .selected:hover{background-color:rgba(70,142,194,.2)}.theme-malfunction .contentColor__default{background-color:#713434;color:#fff;border:solid #814141;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.theme-malfunction .contentDisabled{background-color:#363636!important;border-top:1px solid #4d4d4d!important}.theme-malfunction .contentSelected{background-color:#1e5881;color:#fff;border:solid #3273a1;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.theme-malfunction .buttonsContainerColor__default{background-color:rgba(117,55,55,.2);color:#fff;border:solid rgba(177,102,102,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.theme-malfunction .ImageButton{display:inline-table;position:relative;text-align:center;margin:.25em;user-select:none;-ms-user-select:none}.theme-malfunction .ImageButton .noAction{pointer-events:none}.theme-malfunction .ImageButton .container{display:flex;flex-direction:column;border-radius:.33em}.theme-malfunction .ImageButton .image{position:relative;align-self:center;pointer-events:none;overflow:hidden;line-height:0;padding:.25em;border-radius:.33em}.theme-malfunction .ImageButton .buttonsContainer{display:flex;position:absolute;overflow:hidden;left:1px;bottom:1.8em;max-width:100%;z-index:1}.theme-malfunction .ImageButton .buttonsContainer.buttonsAltContainer{overflow:visible;flex-direction:column;pointer-events:none;top:1px;bottom:inherit!important}.theme-malfunction .ImageButton .buttonsContainer.buttonsEmpty{bottom:1px}.theme-malfunction .ImageButton .buttonsContainer>*{margin:0!important;padding:0 .2em!important;border-radius:0!important}.theme-malfunction .ImageButton .content{-ms-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:.25em .5em;margin:-1px;border-radius:0 0 .33em .33em;z-index:2}.theme-malfunction .fluid{display:flex;flex-direction:row;position:relative;text-align:center;margin:0 0 .5em;user-select:none;-ms-user-select:none}.theme-malfunction .fluid:last-of-type{margin-bottom:0}.theme-malfunction .fluid .info{display:flex;flex-direction:column;justify-content:center;flex:1}.theme-malfunction .fluid .title{font-weight:700;padding:.5em}.theme-malfunction .fluid .title.divider{margin:0 .5em;border-bottom:.1666666667em solid rgba(255,255,255,.1)}.theme-malfunction .fluid .contentFluid{padding:.5em;color:#fff}.theme-malfunction .fluid .container{flex-direction:row;flex:1}.theme-malfunction .fluid .container.hasButtons{border-radius:.33em 0 0 .33em;border-width:1px 0 1px 1px}.theme-malfunction .fluid .image{padding:0}.theme-malfunction .fluid .buttonsContainer{position:relative;left:inherit;bottom:inherit;border-radius:0 .33em .33em 0}.theme-malfunction .fluid .buttonsContainer.buttonsEmpty{bottom:inherit}.theme-malfunction .fluid .buttonsContainer.buttonsAltContainer{overflow:hidden;pointer-events:auto;top:inherit}.theme-malfunction .fluid .buttonsContainer.buttonsAltContainer>*{border-top:1px solid rgba(255,255,255,.075)}.theme-malfunction .fluid .buttonsContainer.buttonsAltContainer>*:first-child{border-top:0}.theme-malfunction .fluid .buttonsContainer>*{display:inline-flex;flex-direction:column;justify-content:center;text-align:center;white-space:pre-wrap;line-height:1.1666666667em;height:100%;border-left:1px solid rgba(255,255,255,.075)}.theme-malfunction .NoticeBox{padding:.33em .5em;margin-bottom:.5em;box-shadow:none;font-weight:700;font-style:italic;color:#fff;background-color:#1a3f57;background-image:repeating-linear-gradient(-45deg,transparent,transparent .8333333333em,rgba(0,0,0,.1) .8333333333em,rgba(0,0,0,.1) 1.6666666667em)}.theme-malfunction .NoticeBox--type--info{color:#fff;background-color:#235982}.theme-malfunction .NoticeBox--type--success{color:#fff;background-color:#1e662f}.theme-malfunction .NoticeBox--type--warning{color:#fff;background-color:#a95219}.theme-malfunction .NoticeBox--type--danger{color:#fff;background-color:#8f2828}.theme-malfunction .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #910101;border:.0833333333em solid rgba(145,1,1,.75);border-radius:.16em;background-color:#0a0a0a;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75);padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible;white-space:nowrap}.theme-malfunction .Input--disabled{color:#777;border-color:#090909;border-color:rgba(9,9,9,.75);background-color:#333;background-color:rgba(0,0,0,.25)}.theme-malfunction .Input--fluid{display:block;width:auto}.theme-malfunction .Input__baseline{display:inline-block;color:rgba(0,0,0,0)}.theme-malfunction .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit}.theme-malfunction .Input__input::placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-malfunction .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-malfunction .Input__textarea{border:0;width:calc(100% + 4px);font-size:1em;line-height:1.4166666667em;margin-left:-.3333333333em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit;resize:both;overflow:auto;white-space:pre-wrap}.theme-malfunction .Input__textarea::placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-malfunction .Input__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-malfunction .Input--monospace .Input__input{font-family:Consolas,monospace}.theme-malfunction .NumberInput{position:relative;display:inline-block;border:.0833333333em solid #910101;border:.0833333333em solid rgba(145,1,1,.75);border-radius:.16em;color:#910101;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.theme-malfunction .NumberInput--fluid{display:block}.theme-malfunction .NumberInput__content{margin-left:.5em}.theme-malfunction .NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.theme-malfunction .NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #910101;background-color:#910101}.theme-malfunction .NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:#0a0a0a;color:#fff;text-align:right}.theme-malfunction .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:.16em;background-color:rgba(0,0,0,.5);transition:border-color .5s}.theme-malfunction .ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.theme-malfunction .ProgressBar__fill--animated{transition:background-color .5s,width .5s}.theme-malfunction .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-malfunction .ProgressBar--color--default{border:.0833333333em solid #7b0101}.theme-malfunction .ProgressBar--color--default .ProgressBar__fill{background-color:#7b0101}.theme-malfunction .ProgressBar--color--disabled{border:1px solid #363636}.theme-malfunction .ProgressBar--color--disabled .ProgressBar__fill{background-color:#363636}.theme-malfunction .Section{position:relative;margin-bottom:.5em;background-color:#12232d;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-malfunction .Section:last-child{margin-bottom:0}.theme-malfunction .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #910101}.theme-malfunction .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-malfunction .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-malfunction .Section__rest{position:relative}.theme-malfunction .Section__content{padding:.66em .5em}.theme-malfunction .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-malfunction .Section--fill{display:flex;flex-direction:column;height:100%}.theme-malfunction .Section--fill>.Section__rest{flex-grow:1}.theme-malfunction .Section--fill>.Section__rest>.Section__content{height:100%}.theme-malfunction .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-malfunction .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-malfunction .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-malfunction .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-malfunction .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-malfunction .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-malfunction .Section .Section:first-child{margin-top:-.5em}.theme-malfunction .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-malfunction .Section .Section .Section .Section__titleText{font-size:1em}.theme-malfunction .Tooltip{z-index:999;padding:.5em .75em;pointer-events:none;text-align:left;transition:opacity .15s ease-out;background-color:#235577;color:#fff;box-shadow:.1em .1em 1.25em -.1em rgba(0,0,0,.5);border-radius:.16em;max-width:20.8333333333em}.theme-malfunction html,.theme-malfunction body{scrollbar-color:#274b61 #142732}.theme-malfunction .Layout,.theme-malfunction .Layout *{scrollbar-base-color:#142732;scrollbar-face-color:#274b61;scrollbar-3dlight-color:#1b3443;scrollbar-highlight-color:#1b3443;scrollbar-track-color:#142732;scrollbar-arrow-color:#6ba2c3;scrollbar-shadow-color:#274b61}.theme-malfunction .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-malfunction .Layout__content--flexRow{display:flex;flex-flow:row}.theme-malfunction .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-malfunction .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-malfunction .Layout__content--noMargin{margin:0}.theme-malfunction .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#1b3443;background-image:linear-gradient(to bottom,#244559,#12232d)}.theme-malfunction .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-malfunction .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-malfunction .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-malfunction .Window__contentPadding:after{height:0}.theme-malfunction .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-malfunction .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(50,79,96,.25);pointer-events:none}.theme-malfunction .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-malfunction .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-malfunction .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-malfunction .TitleBar{background-color:#1a3f57;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-malfunction .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#1a3f57;transition:color .25s,background-color .25s}.theme-malfunction .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-malfunction .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-malfunction .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-malfunction .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-malfunction .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-malfunction .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-malfunction .Layout__content{background-image:none}.theme-ntos .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-ntos .Button:last-child{margin-right:0;margin-bottom:0}.theme-ntos .Button .fa,.theme-ntos .Button .fas,.theme-ntos .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-ntos .Button--hasContent .fa,.theme-ntos .Button--hasContent .fas,.theme-ntos .Button--hasContent .far{margin-right:.25em}.theme-ntos .Button--hasContent.Button--iconRight .fa,.theme-ntos .Button--hasContent.Button--iconRight .fas,.theme-ntos .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-ntos .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-ntos .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-ntos .Button--circular{border-radius:50%}.theme-ntos .Button--compact{padding:0 .25em;line-height:1.333em}.theme-ntos .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-ntos .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-ntos .Button--color--transparent{background-color:rgba(31,43,57,0);color:rgba(227,240,255,.75);transition:color .2s,background-color .2s}.theme-ntos .Button--color--transparent:hover{background-color:rgba(49,63,80,.81);color:#fff}.theme-ntos .Button--color--default{background-color:#384e68;color:#fff;transition:color .2s,background-color .2s}.theme-ntos .Button--color--default:hover{background-color:#4f6885;color:#fff}.theme-ntos .Button--color--default--translucent{background-color:rgba(39,51,67,.33);color:rgba(227,240,255,.75);transition:color .2s,background-color .2s}.theme-ntos .Button--color--default--translucent:hover{background-color:rgba(60,74,92,.5);color:#fff}.theme-ntos .Button--color--caution{background-color:#d9b804;color:#000;transition:color .2s,background-color .2s}.theme-ntos .Button--color--caution:hover{background-color:#f5d523;color:#000}.theme-ntos .Button--color--caution--translucent{background-color:rgba(217,184,4,.33);color:rgba(227,240,255,.75);transition:color .2s,background-color .2s}.theme-ntos .Button--color--caution--translucent:hover{background-color:rgba(245,213,35,.5);color:#fff}.theme-ntos .Button--color--danger{background-color:#bd2020;color:#fff;transition:color .2s,background-color .2s}.theme-ntos .Button--color--danger:hover{background-color:#d93f3f;color:#fff}.theme-ntos .Button--color--danger--translucent{background-color:rgba(189,32,32,.33);color:rgba(227,240,255,.75);transition:color .2s,background-color .2s}.theme-ntos .Button--color--danger--translucent:hover{background-color:rgba(217,63,63,.5);color:#fff}.theme-ntos .Button--disabled{background-color:#999!important;color:rgba(227,240,255,.75)!important}.theme-ntos .Button--disabled--translucent{background-color:rgba(77,23,23,.5)!important;color:rgba(227,240,255,.75)!important}.theme-ntos .Button--selected,.theme-ntos .Button--selected--translucent{background-color:#1b9638;color:#fff;transition:color .2s,background-color .2s}.theme-ntos .Button--selected:hover,.theme-ntos .Button--selected--translucent:hover{background-color:#2fb94f;color:#fff}.theme-ntos .Divider--horizontal{margin:.5em 0}.theme-ntos .Divider--horizontal:not(.Divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.theme-ntos .Divider--vertical{height:100%;margin:0 .5em}.theme-ntos .Divider--vertical:not(.Divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.theme-ntos .color__default{background-color:rgba(96,112,131,.2);color:#fff;border:solid rgba(162,173,186,.2);border-width:1px;transition:background-color .2s,border-color .2s}.theme-ntos .color__default:hover{background-color:rgba(162,173,186,.2)}.theme-ntos .disabled{background-color:rgba(99,29,29,.25)!important;border-color:rgba(99,29,29,.25)!important}.theme-ntos .selected{background-color:rgba(27,150,56,.2);color:#fff;border:solid rgba(27,150,56,.25);border-width:1px;transition:background-color .2s,border-color .2s}.theme-ntos .selected:hover{background-color:rgba(72,214,105,.2)}.theme-ntos .contentColor__default{background-color:#5c6c7f;color:#fff;border:solid #6b7d92;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.theme-ntos .contentDisabled{background-color:#631d1d!important;border-top:1px solid #803131!important}.theme-ntos .contentSelected{background-color:#1b9638;color:#fff;border:solid #2fb94f;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.theme-ntos .buttonsContainerColor__default{background-color:rgba(96,112,131,.2);color:#fff;border:solid rgba(162,173,186,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.theme-ntos .ImageButton{display:inline-table;position:relative;text-align:center;margin:.25em;user-select:none;-ms-user-select:none}.theme-ntos .ImageButton .noAction{pointer-events:none}.theme-ntos .ImageButton .container{display:flex;flex-direction:column;border-radius:.33em}.theme-ntos .ImageButton .image{position:relative;align-self:center;pointer-events:none;overflow:hidden;line-height:0;padding:.25em;border-radius:.33em}.theme-ntos .ImageButton .buttonsContainer{display:flex;position:absolute;overflow:hidden;left:1px;bottom:1.8em;max-width:100%;z-index:1}.theme-ntos .ImageButton .buttonsContainer.buttonsAltContainer{overflow:visible;flex-direction:column;pointer-events:none;top:1px;bottom:inherit!important}.theme-ntos .ImageButton .buttonsContainer.buttonsEmpty{bottom:1px}.theme-ntos .ImageButton .buttonsContainer>*{margin:0!important;padding:0 .2em!important;border-radius:0!important}.theme-ntos .ImageButton .content{-ms-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:.25em .5em;margin:-1px;border-radius:0 0 .33em .33em;z-index:2}.theme-ntos .fluid{display:flex;flex-direction:row;position:relative;text-align:center;margin:0 0 .5em;user-select:none;-ms-user-select:none}.theme-ntos .fluid:last-of-type{margin-bottom:0}.theme-ntos .fluid .info{display:flex;flex-direction:column;justify-content:center;flex:1}.theme-ntos .fluid .title{font-weight:700;padding:.5em}.theme-ntos .fluid .title.divider{margin:0 .5em;border-bottom:.1666666667em solid rgba(255,255,255,.1)}.theme-ntos .fluid .contentFluid{padding:.5em;color:#fff}.theme-ntos .fluid .container{flex-direction:row;flex:1}.theme-ntos .fluid .container.hasButtons{border-radius:.33em 0 0 .33em;border-width:1px 0 1px 1px}.theme-ntos .fluid .image{padding:0}.theme-ntos .fluid .buttonsContainer{position:relative;left:inherit;bottom:inherit;border-radius:0 .33em .33em 0}.theme-ntos .fluid .buttonsContainer.buttonsEmpty{bottom:inherit}.theme-ntos .fluid .buttonsContainer.buttonsAltContainer{overflow:hidden;pointer-events:auto;top:inherit}.theme-ntos .fluid .buttonsContainer.buttonsAltContainer>*{border-top:1px solid rgba(255,255,255,.075)}.theme-ntos .fluid .buttonsContainer.buttonsAltContainer>*:first-child{border-top:0}.theme-ntos .fluid .buttonsContainer>*{display:inline-flex;flex-direction:column;justify-content:center;text-align:center;white-space:pre-wrap;line-height:1.1666666667em;height:100%;border-left:1px solid rgba(255,255,255,.075)}.theme-ntos .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:.16em;background-color:rgba(0,0,0,.5);transition:border-color .5s}.theme-ntos .ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.theme-ntos .ProgressBar__fill--animated{transition:background-color .5s,width .5s}.theme-ntos .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-ntos .ProgressBar--color--default{border:.0833333333em solid #384e68}.theme-ntos .ProgressBar--color--default .ProgressBar__fill{background-color:#384e68}.theme-ntos .ProgressBar--color--disabled{border:1px solid #999}.theme-ntos .ProgressBar--color--disabled .ProgressBar__fill{background-color:#999}.theme-ntos .Section{position:relative;margin-bottom:.5em;background-color:#151d26;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-ntos .Section:last-child{margin-bottom:0}.theme-ntos .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #4972a1}.theme-ntos .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-ntos .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-ntos .Section__rest{position:relative}.theme-ntos .Section__content{padding:.66em .5em}.theme-ntos .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-ntos .Section--fill{display:flex;flex-direction:column;height:100%}.theme-ntos .Section--fill>.Section__rest{flex-grow:1}.theme-ntos .Section--fill>.Section__rest>.Section__content{height:100%}.theme-ntos .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-ntos .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-ntos .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-ntos .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-ntos .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-ntos .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-ntos .Section .Section:first-child{margin-top:-.5em}.theme-ntos .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-ntos .Section .Section .Section .Section__titleText{font-size:1em}.theme-ntos html,.theme-ntos body{scrollbar-color:#2e3f55 #17202b}.theme-ntos .Layout,.theme-ntos .Layout *{scrollbar-base-color:#17202b;scrollbar-face-color:#2e3f55;scrollbar-3dlight-color:#1f2b39;scrollbar-highlight-color:#1f2b39;scrollbar-track-color:#17202b;scrollbar-arrow-color:#7693b5;scrollbar-shadow-color:#2e3f55}.theme-ntos .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-ntos .Layout__content--flexRow{display:flex;flex-flow:row}.theme-ntos .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-ntos .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-ntos .Layout__content--noMargin{margin:0}.theme-ntos .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#1f2b39;background-image:linear-gradient(to bottom,#223040,#1b2633)}.theme-ntos .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-ntos .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-ntos .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-ntos .Window__contentPadding:after{height:0}.theme-ntos .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-ntos .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(55,69,85,.25);pointer-events:none}.theme-ntos .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-ntos .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-ntos .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-ntos .TitleBar{background-color:#2a3b4e;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-ntos .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#2a3b4e;transition:color .25s,background-color .25s}.theme-ntos .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-ntos .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-ntos .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-ntos .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-ntos .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-ntos .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-paper .Tabs{display:flex;align-items:stretch;overflow:hidden;background-color:rgba(0,0,0,.33)}.theme-paper .Tabs--fill{height:100%}.theme-paper .Section .Tabs{background-color:rgba(0,0,0,0)}.theme-paper .Section:not(.Section--fitted) .Tabs{margin:0 -.5em .5em}.theme-paper .Section:not(.Section--fitted) .Tabs:first-child{margin-top:-.5em}.theme-paper .Tabs--vertical{flex-direction:column;padding:.25em .25em .25em 0}.theme-paper .Tabs--horizontal{margin-bottom:.5em;padding:.25em .25em 0}.theme-paper .Tabs--horizontal:last-child{margin-bottom:0}.theme-paper .Tabs__Tab{flex-grow:0}.theme-paper .Tabs--fluid .Tabs__Tab{flex-grow:1}.theme-paper .Tab{display:flex;align-items:center;justify-content:space-between;background-color:rgba(0,0,0,0);color:rgba(255,255,255,.5);min-height:2.25em;min-width:4em;transition:background-color 50ms ease-out}.theme-paper .Tab:not(.Tab--selected):hover{background-color:rgba(255,255,255,.075);transition:background-color 0}.theme-paper .Tab--selected{background-color:rgba(255,255,255,.125);color:#fafafa}.theme-paper .Tab__text{flex-grow:1;margin:0 .5em}.theme-paper .Tab__left{min-width:1.5em;text-align:center;margin-left:.25em}.theme-paper .Tab__right{min-width:1.5em;text-align:center;margin-right:.25em}.theme-paper .Tabs--horizontal .Tab{border-top:.1666666667em solid rgba(0,0,0,0);border-bottom:.1666666667em solid rgba(0,0,0,0);border-top-left-radius:.25em;border-top-right-radius:.25em}.theme-paper .Tabs--horizontal .Tab--selected{border-bottom:.1666666667em solid #f9f9f9}.theme-paper .Tabs--vertical .Tab{min-height:2em;border-left:.1666666667em solid rgba(0,0,0,0);border-right:.1666666667em solid rgba(0,0,0,0);border-top-right-radius:.25em;border-bottom-right-radius:.25em}.theme-paper .Tabs--vertical .Tab--selected{border-left:.1666666667em solid #f9f9f9}.theme-paper .Section{position:relative;margin-bottom:.5em;background-color:#e6e6e6;background-color:rgba(0,0,0,.1);box-sizing:border-box}.theme-paper .Section:last-child{margin-bottom:0}.theme-paper .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #fff}.theme-paper .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#000}.theme-paper .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-paper .Section__rest{position:relative}.theme-paper .Section__content{padding:.66em .5em}.theme-paper .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-paper .Section--fill{display:flex;flex-direction:column;height:100%}.theme-paper .Section--fill>.Section__rest{flex-grow:1}.theme-paper .Section--fill>.Section__rest>.Section__content{height:100%}.theme-paper .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-paper .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-paper .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-paper .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-paper .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-paper .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-paper .Section .Section:first-child{margin-top:-.5em}.theme-paper .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-paper .Section .Section .Section .Section__titleText{font-size:1em}.theme-paper .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-paper .Button:last-child{margin-right:0;margin-bottom:0}.theme-paper .Button .fa,.theme-paper .Button .fas,.theme-paper .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-paper .Button--hasContent .fa,.theme-paper .Button--hasContent .fas,.theme-paper .Button--hasContent .far{margin-right:.25em}.theme-paper .Button--hasContent.Button--iconRight .fa,.theme-paper .Button--hasContent.Button--iconRight .fas,.theme-paper .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-paper .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-paper .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-paper .Button--circular{border-radius:50%}.theme-paper .Button--compact{padding:0 .25em;line-height:1.333em}.theme-paper .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-paper .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-paper .Button--color--transparent{background-color:rgba(255,255,255,0);color:rgba(0,0,0,.5);transition:color .2s,background-color .2s}.theme-paper .Button--color--transparent:hover{background-color:rgba(255,255,255,.81);color:#000}.theme-paper .Button--color--default{background-color:#e8e4c9;color:#000;transition:color .2s,background-color .2s}.theme-paper .Button--color--default:hover{background-color:#fbfaf5;color:#000}.theme-paper .Button--color--default--translucent{background-color:rgba(255,255,255,.33);color:rgba(0,0,0,.5);transition:color .2s,background-color .2s}.theme-paper .Button--color--default--translucent:hover{background-color:rgba(255,255,255,.5);color:#fff}.theme-paper .Button--color--caution{background-color:#be6209;color:#fff;transition:color .2s,background-color .2s}.theme-paper .Button--color--caution:hover{background-color:#e67f1a;color:#fff}.theme-paper .Button--color--caution--translucent{background-color:rgba(190,98,9,.33);color:rgba(0,0,0,.5);transition:color .2s,background-color .2s}.theme-paper .Button--color--caution--translucent:hover{background-color:rgba(230,127,26,.5);color:#fff}.theme-paper .Button--color--danger{background-color:#9a9d00;color:#fff;transition:color .2s,background-color .2s}.theme-paper .Button--color--danger:hover{background-color:#bec110;color:#fff}.theme-paper .Button--color--danger--translucent{background-color:rgba(154,157,0,.33);color:rgba(0,0,0,.5);transition:color .2s,background-color .2s}.theme-paper .Button--color--danger--translucent:hover{background-color:rgba(190,193,16,.5);color:#fff}.theme-paper .Button--disabled{background-color:#363636!important;color:rgba(0,0,0,.75)!important}.theme-paper .Button--disabled--translucent{background-color:rgba(77,23,23,.5)!important;color:rgba(0,0,0,.5)!important}.theme-paper .Button--selected,.theme-paper .Button--selected--translucent{background-color:#9d0808;color:#fff;transition:color .2s,background-color .2s}.theme-paper .Button--selected:hover,.theme-paper .Button--selected--translucent:hover{background-color:#c11919;color:#fff}.theme-paper .Divider--horizontal{margin:.5em 0}.theme-paper .Divider--horizontal:not(.Divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.theme-paper .Divider--vertical{height:100%;margin:0 .5em}.theme-paper .Divider--vertical:not(.Divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.theme-paper .color__default{background-color:rgba(232,229,202,.2);color:#000;border:solid rgba(252,252,249,.2);border-width:1px;transition:background-color .2s,border-color .2s}.theme-paper .color__default:hover{background-color:rgba(252,252,249,.2)}.theme-paper .disabled{background-color:rgba(54,54,54,.25)!important;border-color:rgba(54,54,54,.25)!important}.theme-paper .selected{background-color:rgba(157,8,8,.2);color:#fff;border:solid rgba(157,8,8,.25);border-width:1px;transition:background-color .2s,border-color .2s}.theme-paper .selected:hover{background-color:rgba(229,42,42,.2)}.theme-paper .contentColor__default{background-color:#e5e0c2;color:#000;border:solid #f3f2e4;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.theme-paper .contentDisabled{background-color:#363636!important;border-top:1px solid #4d4d4d!important}.theme-paper .contentSelected{background-color:#9d0808;color:#fff;border:solid #c11919;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.theme-paper .buttonsContainerColor__default{background-color:rgba(232,229,202,.2);color:#000;border:solid rgba(252,252,249,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.theme-paper .ImageButton{display:inline-table;position:relative;text-align:center;margin:.25em;user-select:none;-ms-user-select:none}.theme-paper .ImageButton .noAction{pointer-events:none}.theme-paper .ImageButton .container{display:flex;flex-direction:column;border-radius:.33em}.theme-paper .ImageButton .image{position:relative;align-self:center;pointer-events:none;overflow:hidden;line-height:0;padding:.25em;border-radius:.33em}.theme-paper .ImageButton .buttonsContainer{display:flex;position:absolute;overflow:hidden;left:1px;bottom:1.8em;max-width:100%;z-index:1}.theme-paper .ImageButton .buttonsContainer.buttonsAltContainer{overflow:visible;flex-direction:column;pointer-events:none;top:1px;bottom:inherit!important}.theme-paper .ImageButton .buttonsContainer.buttonsEmpty{bottom:1px}.theme-paper .ImageButton .buttonsContainer>*{margin:0!important;padding:0 .2em!important;border-radius:0!important}.theme-paper .ImageButton .content{-ms-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:.25em .5em;margin:-1px;border-radius:0 0 .33em .33em;z-index:2}.theme-paper .fluid{display:flex;flex-direction:row;position:relative;text-align:center;margin:0 0 .5em;user-select:none;-ms-user-select:none}.theme-paper .fluid:last-of-type{margin-bottom:0}.theme-paper .fluid .info{display:flex;flex-direction:column;justify-content:center;flex:1}.theme-paper .fluid .title{font-weight:700;padding:.5em}.theme-paper .fluid .title.divider{margin:0 .5em;border-bottom:.1666666667em solid rgba(255,255,255,.1)}.theme-paper .fluid .contentFluid{padding:.5em;color:#fff}.theme-paper .fluid .container{flex-direction:row;flex:1}.theme-paper .fluid .container.hasButtons{border-radius:.33em 0 0 .33em;border-width:1px 0 1px 1px}.theme-paper .fluid .image{padding:0}.theme-paper .fluid .buttonsContainer{position:relative;left:inherit;bottom:inherit;border-radius:0 .33em .33em 0}.theme-paper .fluid .buttonsContainer.buttonsEmpty{bottom:inherit}.theme-paper .fluid .buttonsContainer.buttonsAltContainer{overflow:hidden;pointer-events:auto;top:inherit}.theme-paper .fluid .buttonsContainer.buttonsAltContainer>*{border-top:1px solid rgba(255,255,255,.075)}.theme-paper .fluid .buttonsContainer.buttonsAltContainer>*:first-child{border-top:0}.theme-paper .fluid .buttonsContainer>*{display:inline-flex;flex-direction:column;justify-content:center;text-align:center;white-space:pre-wrap;line-height:1.1666666667em;height:100%;border-left:1px solid rgba(255,255,255,.075)}.theme-paper .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:.16em;background-color:rgba(0,0,0,0);transition:border-color .5s}.theme-paper .ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.theme-paper .ProgressBar__fill--animated{transition:background-color .5s,width .5s}.theme-paper .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-paper .ProgressBar--color--default{border:.0833333333em solid #bfbfbf}.theme-paper .ProgressBar--color--default .ProgressBar__fill{background-color:#bfbfbf}.theme-paper .ProgressBar--color--disabled{border:1px solid #363636}.theme-paper .ProgressBar--color--disabled .ProgressBar__fill{background-color:#363636}.theme-paper html,.theme-paper body{scrollbar-color:#fff #bfbfbf}.theme-paper .Layout,.theme-paper .Layout *{scrollbar-base-color:#bfbfbf;scrollbar-face-color:#fff;scrollbar-3dlight-color:#fff;scrollbar-highlight-color:#fff;scrollbar-track-color:#bfbfbf;scrollbar-arrow-color:#fff;scrollbar-shadow-color:#fff}.theme-paper .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-paper .Layout__content--flexRow{display:flex;flex-flow:row}.theme-paper .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-paper .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-paper .Layout__content--noMargin{margin:0}.theme-paper .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#000;background-color:#fff;background-image:linear-gradient(to bottom,#fff,#fff)}.theme-paper .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-paper .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-paper .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-paper .Window__contentPadding:after{height:0}.theme-paper .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-paper .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(255,255,255,.25);pointer-events:none}.theme-paper .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-paper .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-paper .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-paper .TitleBar{background-color:#fff;border-bottom:1px solid rgba(0,0,0,.25);box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-paper .TitleBar__clickable{color:rgba(0,0,0,.5);background-color:#fff;transition:color .25s,background-color .25s}.theme-paper .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-paper .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(0,0,0,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-paper .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-paper .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-paper .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-paper .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-paper .PaperInput{position:relative;display:inline-block;width:120px;border:none;background:rgba(0,0,0,0);border-bottom:1px solid #000;outline:none;background-color:rgba(255,255,62,.8);padding:0 4px;margin-right:2px;line-height:17px;overflow:visible}.theme-paper .PaperInput__baseline{display:inline-block;color:rgba(0,0,0,0)}.theme-paper .PaperInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:12px;line-height:17px;height:17px;margin:0;padding:0 6px;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit}.theme-paper .PaperInput__input::placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-paper .PaperInput__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-paper .Layout__content{background-image:none}.theme-paper .Window{background-image:none;color:#000}.theme-paper .paper-text input:disabled{position:relative;display:inline-block;border:none;background:rgba(0,0,0,0);border-bottom:1px solid #000;outline:none;background-color:rgba(255,255,62,.8);padding:0 4px;margin-right:2px;line-height:17px;overflow:visible}.theme-paper .paper-text input,.theme-paper .paper-field{position:relative;display:inline-block;border:none;background:rgba(0,0,0,0);border-bottom:1px solid #000;outline:none;background-color:rgba(255,255,62,.8);padding:0 4px;margin-right:2px;line-height:17px;overflow:visible}.theme-paper .paper-field input:disabled{position:relative;display:inline-block;border:none;background:rgba(0,0,0,0);border-bottom:1px solid #000;outline:none;background-color:rgba(255,255,62,.8);padding:0 4px;margin-right:2px;line-height:17px;overflow:visible}.theme-retro .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:0;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-retro .Button:last-child{margin-right:0;margin-bottom:0}.theme-retro .Button .fa,.theme-retro .Button .fas,.theme-retro .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-retro .Button--hasContent .fa,.theme-retro .Button--hasContent .fas,.theme-retro .Button--hasContent .far{margin-right:.25em}.theme-retro .Button--hasContent.Button--iconRight .fa,.theme-retro .Button--hasContent.Button--iconRight .fas,.theme-retro .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-retro .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-retro .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-retro .Button--circular{border-radius:50%}.theme-retro .Button--compact{padding:0 .25em;line-height:1.333em}.theme-retro .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-retro .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-retro .Button--color--transparent{background-color:rgba(232,228,201,0);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-retro .Button--color--transparent:hover{background-color:rgba(255,255,255,.81);color:#000}.theme-retro .Button--color--default{background-color:#e8e4c9;color:#000;transition:color .2s,background-color .2s}.theme-retro .Button--color--default:hover{background-color:#fbfaf5;color:#000}.theme-retro .Button--color--default--translucent{background-color:rgba(242,240,225,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-retro .Button--color--default--translucent:hover{background-color:rgba(253,252,250,.5);color:#fff}.theme-retro .Button--color--caution{background-color:#be6209;color:#fff;transition:color .2s,background-color .2s}.theme-retro .Button--color--caution:hover{background-color:#e67f1a;color:#fff}.theme-retro .Button--color--caution--translucent{background-color:rgba(190,98,9,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-retro .Button--color--caution--translucent:hover{background-color:rgba(230,127,26,.5);color:#fff}.theme-retro .Button--color--danger{background-color:#9a9d00;color:#fff;transition:color .2s,background-color .2s}.theme-retro .Button--color--danger:hover{background-color:#bec110;color:#fff}.theme-retro .Button--color--danger--translucent{background-color:rgba(154,157,0,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-retro .Button--color--danger--translucent:hover{background-color:rgba(190,193,16,.5);color:#fff}.theme-retro .Button--disabled{background-color:#363636!important;color:rgba(255,255,255,.75)!important}.theme-retro .Button--disabled--translucent{background-color:rgba(77,23,23,.5)!important;color:rgba(255,255,255,.5)!important}.theme-retro .Button--selected,.theme-retro .Button--selected--translucent{background-color:#9d0808;color:#fff;transition:color .2s,background-color .2s}.theme-retro .Button--selected:hover,.theme-retro .Button--selected--translucent:hover{background-color:#c11919;color:#fff}.theme-retro .Divider--horizontal{margin:.5em 0}.theme-retro .Divider--horizontal:not(.Divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.theme-retro .Divider--vertical{height:100%;margin:0 .5em}.theme-retro .Divider--vertical:not(.Divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.theme-retro .color__default{background-color:rgba(232,229,202,.2);color:#000;border:solid rgba(252,252,249,.2);border-width:1px;transition:background-color .2s,border-color .2s}.theme-retro .color__default:hover{background-color:rgba(252,252,249,.2)}.theme-retro .disabled{background-color:rgba(54,54,54,.25)!important;border-color:rgba(54,54,54,.25)!important}.theme-retro .selected{background-color:rgba(157,8,8,.2);color:#fff;border:solid rgba(157,8,8,.25);border-width:1px;transition:background-color .2s,border-color .2s}.theme-retro .selected:hover{background-color:rgba(229,42,42,.2)}.theme-retro .contentColor__default{background-color:#e5e0c2;color:#000;border:solid #f3f2e4;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.theme-retro .contentDisabled{background-color:#363636!important;border-top:1px solid #4d4d4d!important}.theme-retro .contentSelected{background-color:#9d0808;color:#fff;border:solid #c11919;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.theme-retro .buttonsContainerColor__default{background-color:rgba(232,229,202,.2);color:#000;border:solid rgba(252,252,249,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.theme-retro .ImageButton{display:inline-table;position:relative;text-align:center;margin:.25em;user-select:none;-ms-user-select:none}.theme-retro .ImageButton .noAction{pointer-events:none}.theme-retro .ImageButton .container{display:flex;flex-direction:column;border-radius:.33em}.theme-retro .ImageButton .image{position:relative;align-self:center;pointer-events:none;overflow:hidden;line-height:0;padding:.25em;border-radius:.33em}.theme-retro .ImageButton .buttonsContainer{display:flex;position:absolute;overflow:hidden;left:1px;bottom:1.8em;max-width:100%;z-index:1}.theme-retro .ImageButton .buttonsContainer.buttonsAltContainer{overflow:visible;flex-direction:column;pointer-events:none;top:1px;bottom:inherit!important}.theme-retro .ImageButton .buttonsContainer.buttonsEmpty{bottom:1px}.theme-retro .ImageButton .buttonsContainer>*{margin:0!important;padding:0 .2em!important;border-radius:0!important}.theme-retro .ImageButton .content{-ms-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:.25em .5em;margin:-1px;border-radius:0 0 .33em .33em;z-index:2}.theme-retro .fluid{display:flex;flex-direction:row;position:relative;text-align:center;margin:0 0 .5em;user-select:none;-ms-user-select:none}.theme-retro .fluid:last-of-type{margin-bottom:0}.theme-retro .fluid .info{display:flex;flex-direction:column;justify-content:center;flex:1}.theme-retro .fluid .title{font-weight:700;padding:.5em}.theme-retro .fluid .title.divider{margin:0 .5em;border-bottom:.1666666667em solid rgba(255,255,255,.1)}.theme-retro .fluid .contentFluid{padding:.5em;color:#fff}.theme-retro .fluid .container{flex-direction:row;flex:1}.theme-retro .fluid .container.hasButtons{border-radius:.33em 0 0 .33em;border-width:1px 0 1px 1px}.theme-retro .fluid .image{padding:0}.theme-retro .fluid .buttonsContainer{position:relative;left:inherit;bottom:inherit;border-radius:0 .33em .33em 0}.theme-retro .fluid .buttonsContainer.buttonsEmpty{bottom:inherit}.theme-retro .fluid .buttonsContainer.buttonsAltContainer{overflow:hidden;pointer-events:auto;top:inherit}.theme-retro .fluid .buttonsContainer.buttonsAltContainer>*{border-top:1px solid rgba(255,255,255,.075)}.theme-retro .fluid .buttonsContainer.buttonsAltContainer>*:first-child{border-top:0}.theme-retro .fluid .buttonsContainer>*{display:inline-flex;flex-direction:column;justify-content:center;text-align:center;white-space:pre-wrap;line-height:1.1666666667em;height:100%;border-left:1px solid rgba(255,255,255,.075)}.theme-retro .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:0;background-color:rgba(0,0,0,.5);transition:border-color .5s}.theme-retro .ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.theme-retro .ProgressBar__fill--animated{transition:background-color .5s,width .5s}.theme-retro .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-retro .ProgressBar--color--default{border:.0833333333em solid #000}.theme-retro .ProgressBar--color--default .ProgressBar__fill{background-color:#000}.theme-retro .ProgressBar--color--disabled{border:1px solid #999}.theme-retro .ProgressBar--color--disabled .ProgressBar__fill{background-color:#999}.theme-retro .Section{position:relative;margin-bottom:.5em;background-color:#9b9987;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-retro .Section:last-child{margin-bottom:0}.theme-retro .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #000}.theme-retro .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-retro .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-retro .Section__rest{position:relative}.theme-retro .Section__content{padding:.66em .5em}.theme-retro .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-retro .Section--fill{display:flex;flex-direction:column;height:100%}.theme-retro .Section--fill>.Section__rest{flex-grow:1}.theme-retro .Section--fill>.Section__rest>.Section__content{height:100%}.theme-retro .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-retro .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-retro .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-retro .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-retro .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-retro .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-retro .Section .Section:first-child{margin-top:-.5em}.theme-retro .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-retro .Section .Section .Section .Section__titleText{font-size:1em}.theme-retro html,.theme-retro body{scrollbar-color:#efecd9 #c8be7d}.theme-retro .Layout,.theme-retro .Layout *{scrollbar-base-color:#c8be7d;scrollbar-face-color:#eae7ce;scrollbar-3dlight-color:#e8e4c9;scrollbar-highlight-color:#e8e4c9;scrollbar-track-color:#c8be7d;scrollbar-arrow-color:#f4f2e4;scrollbar-shadow-color:#eae7ce}.theme-retro .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-retro .Layout__content--flexRow{display:flex;flex-flow:row}.theme-retro .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-retro .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-retro .Layout__content--noMargin{margin:0}.theme-retro .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#e8e4c9;background-image:linear-gradient(to bottom,#e8e4c9,#e8e4c9)}.theme-retro .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-retro .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-retro .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-retro .Window__contentPadding:after{height:0}.theme-retro .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-retro .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(251,250,246,.25);pointer-events:none}.theme-retro .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-retro .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-retro .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-retro .TitleBar{background-color:#585337;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-retro .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#585337;transition:color .25s,background-color .25s}.theme-retro .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-retro .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-retro .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-retro .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-retro .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-retro .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-retro .Button{font-family:monospace;color:#161613;border:.1666666667em outset #e8e4c9;outline:.0833333333em solid #161613}.theme-retro .Layout__content{background-image:none}.theme-safe .Section{position:relative;margin-bottom:.5em;background-color:#b2ae74;box-sizing:border-box}.theme-safe .Section:last-child{margin-bottom:0}.theme-safe .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #3d566b}.theme-safe .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-safe .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-safe .Section__rest{position:relative}.theme-safe .Section__content{padding:.66em .5em}.theme-safe .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-safe .Section--fill{display:flex;flex-direction:column;height:100%}.theme-safe .Section--fill>.Section__rest{flex-grow:1}.theme-safe .Section--fill>.Section__rest>.Section__content{height:100%}.theme-safe .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-safe .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-safe .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-safe .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-safe .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-safe .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-safe .Section .Section:first-child{margin-top:-.5em}.theme-safe .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-safe .Section .Section .Section .Section__titleText{font-size:1em}.theme-safe .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#222b3a;background-image:linear-gradient(to bottom,#242d3d,#202937)}.theme-safe .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-safe .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-safe .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-safe .Window__contentPadding:after{height:0}.theme-safe .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-safe .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(58,69,86,.25);pointer-events:none}.theme-safe .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-safe .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-safe .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-safe .TitleBar{background-color:#35435a;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-safe .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#35435a;transition:color .25s,background-color .25s}.theme-safe .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-safe .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-safe .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-safe .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-safe .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-safe .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-safe .Safe--engraving{position:absolute;width:95%;height:96%;left:2.5%;top:2%;border:5px outset #364963;padding:5px;text-align:center}.theme-safe .Safe--engraving--arrow{color:#35435a}.theme-safe .Safe--engraving--hinge{content:" ";background-color:#191f2a;width:25px;height:40px;position:absolute;right:-15px;margin-top:-20px}.theme-safe .Safe--dialer{margin-bottom:.5rem}.theme-safe .Safe--dialer--number{color:#bbb;display:inline;background-color:#191f2a;font-size:1.5rem;font-weight:700;padding:0 .5rem}.theme-safe .Safe--dialer--right .Button i{z-index:-100}.theme-safe .Safe--dialer .Button{width:80px}.theme-safe .Safe--contents{border:10px solid #191f2a;background-color:#0f131a;height:calc(85% + 7.5px);text-align:left;padding:5px}.theme-safe .Safe--help{position:absolute;bottom:30px;left:25px;width:50%}.theme-safe .Layout__content{background-image:none}.theme-safe .Section{font-family:Comic Sans MS,cursive,sans-serif;font-style:italic;color:#000;box-shadow:5px 5px #111;background-image:linear-gradient(to bottom,#b2ae74,#8e8b5d);transform:rotate(-1deg)}.theme-safe .Section__title{padding-bottom:0;border:0}.theme-safe .Section:before{content:" ";display:block;width:24px;height:40px;background-image:linear-gradient(to bottom,transparent 0%,#ffffff 100%);box-shadow:1px 1px #111;opacity:.2;position:absolute;top:-30px;left:calc(50% - 12px);transform:rotate(-5deg)}.theme-securestorage .TitleBar{background-color:#e8e4c9;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-securestorage .TitleBar__clickable{color:rgba(25,25,22,.5);background-color:#e8e4c9;transition:color .25s,background-color .25s}.theme-securestorage .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-securestorage .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:#191916;font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-securestorage .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-securestorage .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-securestorage .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-securestorage .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-securestorage html,.theme-securestorage body{scrollbar-color:#efecd9 #c8be7d}.theme-securestorage .Layout,.theme-securestorage .Layout *{scrollbar-base-color:#c8be7d;scrollbar-face-color:#eae7ce;scrollbar-3dlight-color:#e8e4c9;scrollbar-highlight-color:#e8e4c9;scrollbar-track-color:#c8be7d;scrollbar-arrow-color:#f4f2e4;scrollbar-shadow-color:#eae7ce}.theme-securestorage .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-securestorage .Layout__content--flexRow{display:flex;flex-flow:row}.theme-securestorage .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-securestorage .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-securestorage .Layout__content--noMargin{margin:0}.theme-securestorage .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#e8e4c9;background-image:linear-gradient(to bottom,#f1efde,#dfd9b4)}.theme-securestorage .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-securestorage .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-securestorage .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-securestorage .Window__contentPadding:after{height:0}.theme-securestorage .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-securestorage .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(251,250,246,.25);pointer-events:none}.theme-securestorage .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-securestorage .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-securestorage .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-securestorage .Section{position:relative;margin-bottom:.5em;background-color:#9b9987;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-securestorage .Section:last-child{margin-bottom:0}.theme-securestorage .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #397439}.theme-securestorage .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-securestorage .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-securestorage .Section__rest{position:relative}.theme-securestorage .Section__content{padding:.66em .5em}.theme-securestorage .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-securestorage .Section--fill{display:flex;flex-direction:column;height:100%}.theme-securestorage .Section--fill>.Section__rest{flex-grow:1}.theme-securestorage .Section--fill>.Section__rest>.Section__content{height:100%}.theme-securestorage .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-securestorage .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-securestorage .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-securestorage .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-securestorage .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-securestorage .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-securestorage .Section .Section:first-child{margin-top:-.5em}.theme-securestorage .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-securestorage .Section .Section .Section .Section__titleText{font-size:1em}.theme-securestorage .Layout__content{background-image:none}.theme-security .color-label{color:#b08e8b!important}.theme-security .color-bg-good{background-color:#4d9121!important}.theme-security .color-border-label{border-color:#b08e8b!important}.theme-security .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-security .Button:last-child{margin-right:0;margin-bottom:0}.theme-security .Button .fa,.theme-security .Button .fas,.theme-security .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-security .Button--hasContent .fa,.theme-security .Button--hasContent .fas,.theme-security .Button--hasContent .far{margin-right:.25em}.theme-security .Button--hasContent.Button--iconRight .fa,.theme-security .Button--hasContent.Button--iconRight .fas,.theme-security .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-security .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-security .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-security .Button--circular{border-radius:50%}.theme-security .Button--compact{padding:0 .25em;line-height:1.333em}.theme-security .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-security .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-security .Button--color--good{background-color:#4d9121;color:#fff;transition:color .2s,background-color .2s}.theme-security .Button--color--good:hover{background-color:#67b335;color:#fff}.theme-security .Button--color--good--translucent{background-color:rgba(77,145,33,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-security .Button--color--good--translucent:hover{background-color:rgba(103,179,53,.5);color:#fff}.theme-security .Button--color--transparent{background-color:rgba(37,37,37,0);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-security .Button--color--transparent:hover{background-color:rgba(56,56,56,.81);color:#fff}.theme-security .Button--color--default{background-color:#a14c49;color:#fff;transition:color .2s,background-color .2s}.theme-security .Button--color--default:hover{background-color:#bb6f6d;color:#fff}.theme-security .Button--color--default--translucent{background-color:rgba(46,46,46,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-security .Button--color--default--translucent:hover{background-color:rgba(68,68,68,.5);color:#fff}.theme-security .Button--color--caution{background-color:#d9b804;color:#000;transition:color .2s,background-color .2s}.theme-security .Button--color--caution:hover{background-color:#f5d523;color:#000}.theme-security .Button--color--caution--translucent{background-color:rgba(217,184,4,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-security .Button--color--caution--translucent:hover{background-color:rgba(245,213,35,.5);color:#fff}.theme-security .Button--color--danger{background-color:#bd2020;color:#fff;transition:color .2s,background-color .2s}.theme-security .Button--color--danger:hover{background-color:#d93f3f;color:#fff}.theme-security .Button--color--danger--translucent{background-color:rgba(189,32,32,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-security .Button--color--danger--translucent:hover{background-color:rgba(217,63,63,.5);color:#fff}.theme-security .Button--disabled{background-color:#999!important;color:rgba(255,255,255,.75)!important}.theme-security .Button--disabled--translucent{background-color:rgba(77,23,23,.5)!important;color:rgba(255,255,255,.5)!important}.theme-security .Button--selected,.theme-security .Button--selected--translucent{background-color:#1b9638;color:#fff;transition:color .2s,background-color .2s}.theme-security .Button--selected:hover,.theme-security .Button--selected--translucent:hover{background-color:#2fb94f;color:#fff}.theme-security .Divider--horizontal{margin:.5em 0}.theme-security .Divider--horizontal:not(.Divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.theme-security .Divider--vertical{height:100%;margin:0 .5em}.theme-security .Divider--vertical:not(.Divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.theme-security .color__good{background-color:rgba(77,145,33,.2);color:#fff;border:solid rgba(130,208,79,.2);border-width:1px;transition:background-color .2s,border-color .2s}.theme-security .color__good:hover{background-color:rgba(130,208,79,.2)}.theme-security .contentColor__good{background-color:#4d9121;color:#fff;border:solid #67b335;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.theme-security .buttonsContainerColor__good{background-color:rgba(77,145,33,.33);color:#fff;border:solid rgba(130,208,79,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.theme-security .color__default{background-color:rgba(169,108,106,.2);color:#fff;border:solid rgba(217,191,190,.2);border-width:1px;transition:background-color .2s,border-color .2s}.theme-security .color__default:hover{background-color:rgba(217,191,190,.2)}.theme-security .disabled{background-color:rgba(99,29,29,.25)!important;border-color:rgba(99,29,29,.25)!important}.theme-security .selected{background-color:rgba(27,150,56,.2);color:#fff;border:solid rgba(27,150,56,.25);border-width:1px;transition:background-color .2s,border-color .2s}.theme-security .selected:hover{background-color:rgba(72,214,105,.2)}.theme-security .contentColor__default{background-color:#a46866;color:#fff;border:solid #b97977;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.theme-security .contentDisabled{background-color:#631d1d!important;border-top:1px solid #803131!important}.theme-security .contentSelected{background-color:#1b9638;color:#fff;border:solid #2fb94f;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.theme-security .buttonsContainerColor__default{background-color:rgba(169,108,106,.2);color:#fff;border:solid rgba(217,191,190,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.theme-security .ImageButton{display:inline-table;position:relative;text-align:center;margin:.25em;user-select:none;-ms-user-select:none}.theme-security .ImageButton .noAction{pointer-events:none}.theme-security .ImageButton .container{display:flex;flex-direction:column;border-radius:.33em}.theme-security .ImageButton .image{position:relative;align-self:center;pointer-events:none;overflow:hidden;line-height:0;padding:.25em;border-radius:.33em}.theme-security .ImageButton .buttonsContainer{display:flex;position:absolute;overflow:hidden;left:1px;bottom:1.8em;max-width:100%;z-index:1}.theme-security .ImageButton .buttonsContainer.buttonsAltContainer{overflow:visible;flex-direction:column;pointer-events:none;top:1px;bottom:inherit!important}.theme-security .ImageButton .buttonsContainer.buttonsEmpty{bottom:1px}.theme-security .ImageButton .buttonsContainer>*{margin:0!important;padding:0 .2em!important;border-radius:0!important}.theme-security .ImageButton .content{-ms-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:.25em .5em;margin:-1px;border-radius:0 0 .33em .33em;z-index:2}.theme-security .fluid{display:flex;flex-direction:row;position:relative;text-align:center;margin:0 0 .5em;user-select:none;-ms-user-select:none}.theme-security .fluid:last-of-type{margin-bottom:0}.theme-security .fluid .info{display:flex;flex-direction:column;justify-content:center;flex:1}.theme-security .fluid .title{font-weight:700;padding:.5em}.theme-security .fluid .title.divider{margin:0 .5em;border-bottom:.1666666667em solid rgba(255,255,255,.1)}.theme-security .fluid .contentFluid{padding:.5em;color:#fff}.theme-security .fluid .container{flex-direction:row;flex:1}.theme-security .fluid .container.hasButtons{border-radius:.33em 0 0 .33em;border-width:1px 0 1px 1px}.theme-security .fluid .image{padding:0}.theme-security .fluid .buttonsContainer{position:relative;left:inherit;bottom:inherit;border-radius:0 .33em .33em 0}.theme-security .fluid .buttonsContainer.buttonsEmpty{bottom:inherit}.theme-security .fluid .buttonsContainer.buttonsAltContainer{overflow:hidden;pointer-events:auto;top:inherit}.theme-security .fluid .buttonsContainer.buttonsAltContainer>*{border-top:1px solid rgba(255,255,255,.075)}.theme-security .fluid .buttonsContainer.buttonsAltContainer>*:first-child{border-top:0}.theme-security .fluid .buttonsContainer>*{display:inline-flex;flex-direction:column;justify-content:center;text-align:center;white-space:pre-wrap;line-height:1.1666666667em;height:100%;border-left:1px solid rgba(255,255,255,.075)}.theme-security .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #ff8d88;border:.0833333333em solid rgba(255,141,136,.75);border-radius:.16em;background-color:#0a0a0a;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75);padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible;white-space:nowrap}.theme-security .Input--disabled{color:#777;border-color:#848484;border-color:rgba(132,132,132,.75);background-color:#333;background-color:rgba(0,0,0,.25)}.theme-security .Input--fluid{display:block;width:auto}.theme-security .Input__baseline{display:inline-block;color:rgba(0,0,0,0)}.theme-security .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit}.theme-security .Input__input::placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-security .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-security .Input__textarea{border:0;width:calc(100% + 4px);font-size:1em;line-height:1.4166666667em;margin-left:-.3333333333em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit;resize:both;overflow:auto;white-space:pre-wrap}.theme-security .Input__textarea::placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-security .Input__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-security .Input--monospace .Input__input{font-family:Consolas,monospace}.theme-security .NoticeBox{padding:.33em .5em;margin-bottom:.5em;box-shadow:none;font-weight:700;font-style:italic;color:#000;background-color:#bb9b68;background-image:repeating-linear-gradient(-45deg,transparent,transparent .8333333333em,rgba(0,0,0,.1) .8333333333em,rgba(0,0,0,.1) 1.6666666667em)}.theme-security .NoticeBox--color--good{color:#fff;background-color:#2e4b1a}.theme-security .NoticeBox--type--info{color:#fff;background-color:#822329}.theme-security .NoticeBox--type--success{color:#fff;background-color:#1e662f}.theme-security .NoticeBox--type--warning{color:#fff;background-color:#a95219}.theme-security .NoticeBox--type--danger{color:#fff;background-color:#8f2828}.theme-security .Section{position:relative;margin-bottom:.5em;background-color:#191919;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-security .Section:last-child{margin-bottom:0}.theme-security .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #a14c49}.theme-security .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-security .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-security .Section__rest{position:relative}.theme-security .Section__content{padding:.66em .5em}.theme-security .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-security .Section--fill{display:flex;flex-direction:column;height:100%}.theme-security .Section--fill>.Section__rest{flex-grow:1}.theme-security .Section--fill>.Section__rest>.Section__content{height:100%}.theme-security .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-security .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-security .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-security .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-security .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-security .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-security .Section .Section:first-child{margin-top:-.5em}.theme-security .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-security .Section .Section .Section .Section__titleText{font-size:1em}.theme-security .Newscaster__menu{width:40px;height:100%;margin-right:.5rem;flex-basis:content}.theme-security .Newscaster__menu .Section__content{padding-left:0}.theme-security .Newscaster__menuButton{color:#767676;cursor:pointer;position:relative;margin-left:6px;margin-right:1rem;white-space:nowrap;transition:color .1s}.theme-security .Newscaster__menuButton--title{width:80%;display:none;overflow:hidden;text-overflow:ellipsis}.theme-security .Newscaster__menuButton--unread{background-color:#e45e5e;color:#fff;font-size:10px;text-align:center;border-radius:32px;display:inline-block;width:12px;position:absolute;left:16px;margin-top:14px}.theme-security .Newscaster__menuButton--selected{color:#fff}.theme-security .Newscaster__menuButton--selected:after{content:"";background-color:#a14c49;width:2px;height:24px;position:absolute;left:-6px}.theme-security .Newscaster__menuButton--security{color:#a14c49}.theme-security .Newscaster__menuButton i{width:30px;text-align:center;vertical-align:middle;margin-left:-1px;margin-right:.5rem;margin-top:1px}.theme-security .Newscaster__menuButton:hover{color:#fff}.theme-security .Newscaster__menuButton:hover:before{background-color:#fff}.theme-security .Newscaster__menuButton:not(:last-of-type){margin-bottom:.5rem}.theme-security .Newscaster__menu--open{width:175px}.theme-security .Newscaster__menu--open .Newscaster__menuButton--title{display:inline-block}.theme-security .Newscaster__jobCategory--security .Section__title{color:#a14c49;border-bottom:2px solid #a14c49!important}.theme-security .Newscaster__jobCategory--engineering .Section__title{color:#a17849;border-bottom:2px solid #a17849!important}.theme-security .Newscaster__jobCategory--medical .Section__title{color:#499ea1;border-bottom:2px solid #499ea1!important}.theme-security .Newscaster__jobCategory--science .Section__title{color:#a14972;border-bottom:2px solid #a14972!important}.theme-security .Newscaster__jobCategory--service .Section__title{color:#a1499e;border-bottom:2px solid #a1499e!important}.theme-security .Newscaster__jobCategory--supply .Section__title{color:#9ea149;border-bottom:2px solid #9ea149!important}.theme-security .Newscaster__jobCategory:last-child{margin-bottom:.5rem}.theme-security .Newscaster__jobOpening--command{font-weight:700}.theme-security .Newscaster__jobOpening:not(:last-child){margin-bottom:.5rem}.theme-security .Newscaster__emptyNotice{color:#a7817e;text-align:center;position:absolute;top:50%;left:50%;transform:translateY(-50%) translate(-50%)}.theme-security .Newscaster__emptyNotice i{margin-bottom:.25rem}.theme-security .Newscaster__photo{cursor:pointer;width:100px;border:1px solid #000;transition:border-color .3s;-ms-interpolation-mode:nearest-neighbor;image-rendering:pixelated}.theme-security .Newscaster__photo:hover{border-color:gray}.theme-security .Newscaster__photoZoom{text-align:center}.theme-security .Newscaster__photoZoom>img{transform:scale(2);-ms-interpolation-mode:nearest-neighbor;image-rendering:pixelated}.theme-security .Newscaster__photoZoom>.Button{position:absolute;width:64px;left:50%;margin-left:-32px;bottom:1rem}.theme-security .Newscaster__story--wanted{background-color:rgba(219,40,40,.1)}.theme-security .Newscaster__story--wanted .Section__title{color:#db2828;border-bottom:2px solid #a14c49!important}.theme-security .Newscaster__story:last-child{margin-bottom:.5rem}.theme-syndicate .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-syndicate .Button:last-child{margin-right:0;margin-bottom:0}.theme-syndicate .Button .fa,.theme-syndicate .Button .fas,.theme-syndicate .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-syndicate .Button--hasContent .fa,.theme-syndicate .Button--hasContent .fas,.theme-syndicate .Button--hasContent .far{margin-right:.25em}.theme-syndicate .Button--hasContent.Button--iconRight .fa,.theme-syndicate .Button--hasContent.Button--iconRight .fas,.theme-syndicate .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-syndicate .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-syndicate .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-syndicate .Button--circular{border-radius:50%}.theme-syndicate .Button--compact{padding:0 .25em;line-height:1.333em}.theme-syndicate .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-syndicate .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-syndicate .Button--color--transparent{background-color:rgba(85,2,2,0);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-syndicate .Button--color--transparent:hover{background-color:rgba(113,14,14,.81);color:#fff}.theme-syndicate .Button--color--default{background-color:#397439;color:#fff;transition:color .2s,background-color .2s}.theme-syndicate .Button--color--default:hover{background-color:#509350;color:#fff}.theme-syndicate .Button--color--default--translucent{background-color:rgba(96,8,8,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-syndicate .Button--color--default--translucent:hover{background-color:rgba(124,25,25,.5);color:#fff}.theme-syndicate .Button--color--caution{background-color:#be6209;color:#fff;transition:color .2s,background-color .2s}.theme-syndicate .Button--color--caution:hover{background-color:#e67f1a;color:#fff}.theme-syndicate .Button--color--caution--translucent{background-color:rgba(190,98,9,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-syndicate .Button--color--caution--translucent:hover{background-color:rgba(230,127,26,.5);color:#fff}.theme-syndicate .Button--color--danger{background-color:#9a9d00;color:#fff;transition:color .2s,background-color .2s}.theme-syndicate .Button--color--danger:hover{background-color:#bec110;color:#fff}.theme-syndicate .Button--color--danger--translucent{background-color:rgba(154,157,0,.33);color:rgba(255,255,255,.5);transition:color .2s,background-color .2s}.theme-syndicate .Button--color--danger--translucent:hover{background-color:rgba(190,193,16,.5);color:#fff}.theme-syndicate .Button--disabled{background-color:#363636!important;color:rgba(255,255,255,.75)!important}.theme-syndicate .Button--disabled--translucent{background-color:rgba(77,23,23,.5)!important;color:rgba(255,255,255,.5)!important}.theme-syndicate .Button--selected,.theme-syndicate .Button--selected--translucent{background-color:#9d0808;color:#fff;transition:color .2s,background-color .2s}.theme-syndicate .Button--selected:hover,.theme-syndicate .Button--selected--translucent:hover{background-color:#c11919;color:#fff}.theme-syndicate .Divider--horizontal{margin:.5em 0}.theme-syndicate .Divider--horizontal:not(.Divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.theme-syndicate .Divider--vertical{height:100%;margin:0 .5em}.theme-syndicate .Divider--vertical:not(.Divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.theme-syndicate .color__default{background-color:rgba(87,122,87,.2);color:#fff;border:solid rgba(148,177,148,.2);border-width:1px;transition:background-color .2s,border-color .2s}.theme-syndicate .color__default:hover{background-color:rgba(148,177,148,.2)}.theme-syndicate .disabled{background-color:rgba(54,54,54,.25)!important;border-color:rgba(54,54,54,.25)!important}.theme-syndicate .selected{background-color:rgba(157,8,8,.2);color:#fff;border:solid rgba(157,8,8,.25);border-width:1px;transition:background-color .2s,border-color .2s}.theme-syndicate .selected:hover{background-color:rgba(229,42,42,.2)}.theme-syndicate .contentColor__default{background-color:#547654;color:#fff;border:solid #638763;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.theme-syndicate .contentDisabled{background-color:#363636!important;border-top:1px solid #4d4d4d!important}.theme-syndicate .contentSelected{background-color:#9d0808;color:#fff;border:solid #c11919;border-width:1px 0 0 0;transition:background-color .2s,border-color .2s}.theme-syndicate .buttonsContainerColor__default{background-color:rgba(87,122,87,.2);color:#fff;border:solid rgba(148,177,148,.2);border-width:1px 1px 1px 0;transition:background-color 0,border-color 0}.theme-syndicate .ImageButton{display:inline-table;position:relative;text-align:center;margin:.25em;user-select:none;-ms-user-select:none}.theme-syndicate .ImageButton .noAction{pointer-events:none}.theme-syndicate .ImageButton .container{display:flex;flex-direction:column;border-radius:.33em}.theme-syndicate .ImageButton .image{position:relative;align-self:center;pointer-events:none;overflow:hidden;line-height:0;padding:.25em;border-radius:.33em}.theme-syndicate .ImageButton .buttonsContainer{display:flex;position:absolute;overflow:hidden;left:1px;bottom:1.8em;max-width:100%;z-index:1}.theme-syndicate .ImageButton .buttonsContainer.buttonsAltContainer{overflow:visible;flex-direction:column;pointer-events:none;top:1px;bottom:inherit!important}.theme-syndicate .ImageButton .buttonsContainer.buttonsEmpty{bottom:1px}.theme-syndicate .ImageButton .buttonsContainer>*{margin:0!important;padding:0 .2em!important;border-radius:0!important}.theme-syndicate .ImageButton .content{-ms-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:.25em .5em;margin:-1px;border-radius:0 0 .33em .33em;z-index:2}.theme-syndicate .fluid{display:flex;flex-direction:row;position:relative;text-align:center;margin:0 0 .5em;user-select:none;-ms-user-select:none}.theme-syndicate .fluid:last-of-type{margin-bottom:0}.theme-syndicate .fluid .info{display:flex;flex-direction:column;justify-content:center;flex:1}.theme-syndicate .fluid .title{font-weight:700;padding:.5em}.theme-syndicate .fluid .title.divider{margin:0 .5em;border-bottom:.1666666667em solid rgba(255,255,255,.1)}.theme-syndicate .fluid .contentFluid{padding:.5em;color:#fff}.theme-syndicate .fluid .container{flex-direction:row;flex:1}.theme-syndicate .fluid .container.hasButtons{border-radius:.33em 0 0 .33em;border-width:1px 0 1px 1px}.theme-syndicate .fluid .image{padding:0}.theme-syndicate .fluid .buttonsContainer{position:relative;left:inherit;bottom:inherit;border-radius:0 .33em .33em 0}.theme-syndicate .fluid .buttonsContainer.buttonsEmpty{bottom:inherit}.theme-syndicate .fluid .buttonsContainer.buttonsAltContainer{overflow:hidden;pointer-events:auto;top:inherit}.theme-syndicate .fluid .buttonsContainer.buttonsAltContainer>*{border-top:1px solid rgba(255,255,255,.075)}.theme-syndicate .fluid .buttonsContainer.buttonsAltContainer>*:first-child{border-top:0}.theme-syndicate .fluid .buttonsContainer>*{display:inline-flex;flex-direction:column;justify-content:center;text-align:center;white-space:pre-wrap;line-height:1.1666666667em;height:100%;border-left:1px solid rgba(255,255,255,.075)}.theme-syndicate .NoticeBox{padding:.33em .5em;margin-bottom:.5em;box-shadow:none;font-weight:700;font-style:italic;color:#fff;background-color:#910101;background-image:repeating-linear-gradient(-45deg,transparent,transparent .8333333333em,rgba(0,0,0,.1) .8333333333em,rgba(0,0,0,.1) 1.6666666667em)}.theme-syndicate .NoticeBox--type--info{color:#fff;background-color:#235982}.theme-syndicate .NoticeBox--type--success{color:#fff;background-color:#1e662f}.theme-syndicate .NoticeBox--type--warning{color:#fff;background-color:#a95219}.theme-syndicate .NoticeBox--type--danger{color:#fff;background-color:#8f2828}.theme-syndicate .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #87ce87;border:.0833333333em solid rgba(135,206,135,.75);border-radius:.16em;background-color:#0a0a0a;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75);padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible;white-space:nowrap}.theme-syndicate .Input--disabled{color:#777;border-color:#6b6b6b;border-color:rgba(107,107,107,.75);background-color:#333;background-color:rgba(0,0,0,.25)}.theme-syndicate .Input--fluid{display:block;width:auto}.theme-syndicate .Input__baseline{display:inline-block;color:rgba(0,0,0,0)}.theme-syndicate .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit}.theme-syndicate .Input__input::placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-syndicate .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-syndicate .Input__textarea{border:0;width:calc(100% + 4px);font-size:1em;line-height:1.4166666667em;margin-left:-.3333333333em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit;resize:both;overflow:auto;white-space:pre-wrap}.theme-syndicate .Input__textarea::placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-syndicate .Input__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-syndicate .Input--monospace .Input__input{font-family:Consolas,monospace}.theme-syndicate .NumberInput{position:relative;display:inline-block;border:.0833333333em solid #87ce87;border:.0833333333em solid rgba(135,206,135,.75);border-radius:.16em;color:#87ce87;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.theme-syndicate .NumberInput--fluid{display:block}.theme-syndicate .NumberInput__content{margin-left:.5em}.theme-syndicate .NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.theme-syndicate .NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #87ce87;background-color:#87ce87}.theme-syndicate .NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:#0a0a0a;color:#fff;text-align:right}.theme-syndicate .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:.16em;background-color:rgba(0,0,0,.5);transition:border-color .5s}.theme-syndicate .ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.theme-syndicate .ProgressBar__fill--animated{transition:background-color .5s,width .5s}.theme-syndicate .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-syndicate .ProgressBar--color--default{border:.0833333333em solid #306330}.theme-syndicate .ProgressBar--color--default .ProgressBar__fill{background-color:#306330}.theme-syndicate .ProgressBar--color--disabled{border:1px solid #999}.theme-syndicate .ProgressBar--color--disabled .ProgressBar__fill{background-color:#999}.theme-syndicate .Section{position:relative;margin-bottom:.5em;background-color:#390101;background-color:rgba(0,0,0,.33);box-sizing:border-box}.theme-syndicate .Section:last-child{margin-bottom:0}.theme-syndicate .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #397439}.theme-syndicate .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-syndicate .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-syndicate .Section__rest{position:relative}.theme-syndicate .Section__content{padding:.66em .5em}.theme-syndicate .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-syndicate .Section--fill{display:flex;flex-direction:column;height:100%}.theme-syndicate .Section--fill>.Section__rest{flex-grow:1}.theme-syndicate .Section--fill>.Section__rest>.Section__content{height:100%}.theme-syndicate .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-syndicate .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-syndicate .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-syndicate .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-syndicate .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-syndicate .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-syndicate .Section .Section:first-child{margin-top:-.5em}.theme-syndicate .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-syndicate .Section .Section .Section .Section__titleText{font-size:1em}.theme-syndicate .Tooltip{z-index:999;padding:.5em .75em;pointer-events:none;text-align:left;transition:opacity .15s ease-out;background-color:#4a0202;color:#fff;box-shadow:.1em .1em 1.25em -.1em rgba(0,0,0,.5);border-radius:.16em;max-width:20.8333333333em}.theme-syndicate html,.theme-syndicate body{scrollbar-color:#7e0303 #400202}.theme-syndicate .Layout,.theme-syndicate .Layout *{scrollbar-base-color:#400202;scrollbar-face-color:#7e0303;scrollbar-3dlight-color:#550202;scrollbar-highlight-color:#550202;scrollbar-track-color:#400202;scrollbar-arrow-color:#fa3030;scrollbar-shadow-color:#7e0303}.theme-syndicate .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-syndicate .Layout__content--flexRow{display:flex;flex-flow:row}.theme-syndicate .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-syndicate .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-syndicate .Layout__content--noMargin{margin:0}.theme-syndicate .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#550202;background-image:linear-gradient(to bottom,#730303,#370101)}.theme-syndicate .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-syndicate .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-syndicate .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-syndicate .Window__contentPadding:after{height:0}.theme-syndicate .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-syndicate .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(117,22,22,.25);pointer-events:none}.theme-syndicate .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-syndicate .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-syndicate .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-syndicate .TitleBar{background-color:#910101;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-syndicate .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#910101;transition:color .25s,background-color .25s}.theme-syndicate .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-syndicate .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-syndicate .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-syndicate .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-syndicate .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-syndicate .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-syndicate .Layout__content{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMCIgdmlld0JveD0iMCAwIDIwMCAyODkuNzQyIiBvcGFjaXR5PSIuMzMiPjxwYXRoIGQ9Im0gOTMuNTM3Njc3LDAgYyAtMTguMTEzMTI1LDAgLTM0LjIyMDEzMywzLjExMTY0IC00OC4zMjM0ODQsOS4zMzQzNyAtMTMuOTY1MDkyLDYuMjIxNjcgLTI0LjYxMjQ0MiwxNS4wNzExNCAtMzEuOTQwNjUxLDI2LjU0NzEgLTcuMTg5OTM5OCwxMS4zMzc4OSAtMTAuMzAxMjI2NiwyNC43NDkxMSAtMTAuMzAxMjI2Niw0MC4yMzQ3OCAwLDEwLjY0NjYyIDIuNzI1MDAyNiwyMC40NjQ2NSA4LjE3NTExMTYsMjkuNDUyNTggNS42MTUyNzcsOC45ODY4NiAxNC4wMzgyNzcsMTcuMzUyMDQgMjUuMjY4ODIxLDI1LjA5NDM2IDExLjIzMDU0NCw3LjYwNTMxIDI2LjUwNzQyMSwxNS40MTgzNSA0NS44MzA1MTQsMjMuNDM3ODIgMTkuOTgzNzQ4LDguMjk1NTcgMzQuODQ4ODQ4LDE1LjU1NDcxIDQ0LjU5Mjk5OCwyMS43NzYzOCA5Ljc0NDE0LDYuMjIyNzMgMTYuNzYxNywxMi44NTg1IDIxLjA1NTcyLDE5LjkwOTUxIDQuMjk0MDQsNy4wNTIwOCA2LjQ0MTkzLDE1Ljc2NDA4IDYuNDQxOTMsMjYuMTM0NTkgMCwxNi4xNzcwMiAtNS4yMDE5NiwyOC40ODIyMiAtMTUuNjA2NzMsMzYuOTE2ODIgLTEwLjIzOTYsOC40MzQ3IC0yNS4wMjIwMywxMi42NTIzIC00NC4zNDUxNjksMTIuNjUyMyAtMTQuMDM4MTcxLDAgLTI1LjUxNTI0NywtMS42NTk0IC0zNC40MzM2MTgsLTQuOTc3NyAtOC45MTgzNywtMy40NTY2IC0xNi4xODU1NzIsLTguNzExMyAtMjEuODAwODM5LC0xNS43NjMzIC01LjYxNTI3NywtNy4wNTIxIC0xMC4wNzQ3OTUsLTE2LjY2MDg4IC0xMy4zNzc4OTksLTI4LjgyODEyIGwgLTI0Ljc3MzE2MjYyOTM5NDUsMCAwLDU2LjgyNjMyIEMgMzMuODU2NzY5LDI4Ni4wNzYwMSA2My43NDkwNCwyODkuNzQyMDEgODkuNjc4MzgzLDI4OS43NDIwMSBjIDE2LjAyMDAyNywwIDMwLjcxOTc4NywtMS4zODI3IDQ0LjA5NzMzNywtNC4xNDc5IDEzLjU0MjcyLC0yLjkwNDMgMjUuMTA0MSwtNy40Njc2IDM0LjY4MzA5LC0xMy42ODkzIDkuNzQ0MTMsLTYuMzU5NyAxNy4zNDA0MiwtMTQuNTE5NSAyMi43OTA1MiwtMjQuNDc0OCA1LjQ1MDEsLTEwLjA5MzMyIDguMTc1MTEsLTIyLjM5OTU5IDguMTc1MTEsLTM2LjkxNjgyIDAsLTEyLjk5NzY0IC0zLjMwMjEsLTI0LjMzNTM5IC05LjkwODI5LC0zNC4wMTQ2IC02LjQ0MTA1LC05LjgxNzI1IC0xNS41MjU0NSwtMTguNTI3MDcgLTI3LjI1MTQ2LC0yNi4xMzEzMyAtMTEuNTYwODUsLTcuNjA0MjcgLTI3LjkxMDgzLC0xNS44MzE0MiAtNDkuMDUwNjYsLTI0LjY4MDIyIC0xNy41MDY0NCwtNy4xOTAxMiAtMzAuNzE5NjY4LC0xMy42ODk0OCAtMzkuNjM4MDM4LC0xOS40OTcwMSAtOC45MTgzNzEsLTUuODA3NTIgLTE4LjYwNzQ3NCwtMTIuNDM0MDkgLTI0LjA5NjUyNCwtMTguODc0MTcgLTUuNDI2MDQzLC02LjM2NjE2IC05LjY1ODgyNiwtMTUuMDcwMDMgLTkuNjU4ODI2LC0yNC44ODcyOSAwLC05LjI2NDAxIDIuMDc1NDE0LC0xNy4yMTM0NSA2LjIyMzQ1NCwtMjMuODUwMzMgMTEuMDk4Mjk4LC0xNC4zOTc0OCA0MS4yODY2MzgsLTEuNzk1MDcgNDUuMDc1NjA5LDI0LjM0NzYyIDQuODM5MzkyLDYuNzc0OTEgOC44NDkzNSwxNi4yNDcyOSAxMi4wMjk1MTUsMjguNDE1NiBsIDIwLjUzMjM0LDAgMCwtNTUuOTk5NjcgYyAtNC40NzgyNSwtNS45MjQ0OCAtOS45NTQ4OCwtMTAuNjMyMjIgLTE1LjkwODM3LC0xNC4zNzQxMSAxLjY0MDU1LDAuNDc5MDUgMy4xOTAzOSwxLjAyMzc2IDQuNjM4NjUsMS42NDAyNCA2LjQ5ODYxLDIuNjI2MDcgMTIuMTY3OTMsNy4zMjc0NyAxNy4wMDczLDE0LjEwMzQ1IDQuODM5MzksNi43NzQ5MSA4Ljg0OTM1LDE2LjI0NTY3IDEyLjAyOTUyLDI4LjQxMzk3IDAsMCA4LjQ4MTI4LC0wLjEyODk0IDguNDg5NzgsLTAuMDAyIDAuNDE3NzYsNi40MTQ5NCAtMS43NTMzOSw5LjQ1Mjg2IC00LjEyMzQyLDEyLjU2MTA0IC0yLjQxNzQsMy4xNjk3OCAtNS4xNDQ4Niw2Ljc4OTczIC00LjAwMjc4LDEzLjAwMjkgMS41MDc4Niw4LjIwMzE4IDEwLjE4MzU0LDEwLjU5NjQyIDE0LjYyMTk0LDkuMzExNTQgLTMuMzE4NDIsLTAuNDk5MTEgLTUuMzE4NTUsLTEuNzQ5NDggLTUuMzE4NTUsLTEuNzQ5NDggMCwwIDEuODc2NDYsMC45OTg2OCA1LjY1MTE3LC0xLjM1OTgxIC0zLjI3Njk1LDAuOTU1NzEgLTEwLjcwNTI5LC0wLjc5NzM4IC0xMS44MDEyNSwtNi43NjMxMyAtMC45NTc1MiwtNS4yMDg2MSAwLjk0NjU0LC03LjI5NTE0IDMuNDAxMTMsLTEwLjUxNDgyIDIuNDU0NjIsLTMuMjE5NjggNS4yODQyNiwtNi45NTgzMSA0LjY4NDMsLTE0LjQ4ODI0IGwgMC4wMDMsMC4wMDIgOC45MjY3NiwwIDAsLTU1Ljk5OTY3IGMgLTE1LjA3MTI1LC0zLjg3MTY4IC0yNy42NTMxNCwtNi4zNjA0MiAtMzcuNzQ2NzEsLTcuNDY1ODYgLTkuOTU1MzEsLTEuMTA3NTUgLTIwLjE4ODIzLC0xLjY1OTgxIC0zMC42OTY2MTMsLTEuNjU5ODEgeiBtIDcwLjMyMTYwMywxNy4zMDg5MyAwLjIzODA1LDQwLjMwNDkgYyAxLjMxODA4LDEuMjI2NjYgMi40Mzk2NSwyLjI3ODE1IDMuMzQwODEsMy4xMDYwMiA0LjgzOTM5LDYuNzc0OTEgOC44NDkzNCwxNi4yNDU2NiAxMi4wMjk1MSwyOC40MTM5NyBsIDIwLjUzMjM0LDAgMCwtNTUuOTk5NjcgYyAtNi42NzczMSwtNC41OTM4MSAtMTkuODM2NDMsLTEwLjQ3MzA5IC0zNi4xNDA3MSwtMTUuODI1MjIgeiBtIC0yOC4xMjA0OSw1LjYwNTUxIDguNTY0NzksMTcuNzE2NTUgYyAtMTEuOTcwMzcsLTYuNDY2OTcgLTEzLjg0Njc4LC05LjcxNzI2IC04LjU2NDc5LC0xNy43MTY1NSB6IG0gMjIuNzk3MDUsMCBjIDIuNzcxNSw3Ljk5OTI5IDEuNzg3NDEsMTEuMjQ5NTggLTQuNDkzNTQsMTcuNzE2NTUgbCA0LjQ5MzU0LC0xNy43MTY1NSB6IG0gMTUuMjIxOTUsMjQuMDA4NDggOC41NjQ3OSwxNy43MTY1NSBjIC0xMS45NzAzOCwtNi40NjY5NyAtMTMuODQ2NzksLTkuNzE3MjYgLTguNTY0NzksLTE3LjcxNjU1IHogbSAyMi43OTcwNCwwIGMgMi43NzE1LDcuOTk5MjkgMS43ODc0MSwxMS4yNDk1OCAtNC40OTM1NCwxNy43MTY1NSBsIDQuNDkzNTQsLTE3LjcxNjU1IHogbSAtOTkuMTEzODQsMi4yMDc2NCA4LjU2NDc5LDE3LjcxNjU1IGMgLTExLjk3MDM4MiwtNi40NjY5NyAtMTMuODQ2NzgyLC05LjcxNzI2IC04LjU2NDc5LC0xNy43MTY1NSB6IG0gMjIuNzk1NDIsMCBjIDIuNzcxNSw3Ljk5OTI5IDEuNzg3NDEsMTEuMjQ5NTggLTQuNDkzNTQsMTcuNzE2NTUgbCA0LjQ5MzU0LC0xNy43MTY1NSB6IiAvPjwvc3ZnPjwhLS0gVGhpcyB3b3JrIGlzIGxpY2Vuc2VkIHVuZGVyIGEgQ3JlYXRpdmUgQ29tbW9ucyBBdHRyaWJ1dGlvbi1TaGFyZUFsaWtlIDQuMCBJbnRlcm5hdGlvbmFsIExpY2Vuc2UuIC0tPjwhLS0gaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbGljZW5zZXMvYnktc2EvNC4wLyAtLT4=)}.theme-syndicate .candystripe:nth-child(odd){background-color:rgba(0,0,0,.4)}.theme-syndicate .candystripe:nth-child(2n){background-color:rgba(0,0,0,.25)}.theme-nologo .Layout__content{background-image:none}.theme-noticeboard .color-black{color:#1a1a1a!important}.theme-noticeboard .color-white{color:#fff!important}.theme-noticeboard .color-red{color:#df3e3e!important}.theme-noticeboard .color-orange{color:#f37f33!important}.theme-noticeboard .color-yellow{color:#fbda21!important}.theme-noticeboard .color-olive{color:#cbe41c!important}.theme-noticeboard .color-green{color:#25ca4c!important}.theme-noticeboard .color-teal{color:#00d6cc!important}.theme-noticeboard .color-blue{color:#2e93de!important}.theme-noticeboard .color-violet{color:#7349cf!important}.theme-noticeboard .color-purple{color:#ad45d0!important}.theme-noticeboard .color-pink{color:#e34da1!important}.theme-noticeboard .color-brown{color:#b97447!important}.theme-noticeboard .color-grey{color:#848484!important}.theme-noticeboard .color-good{color:#68c22d!important}.theme-noticeboard .color-average{color:#f29a29!important}.theme-noticeboard .color-bad{color:#df3e3e!important}.theme-noticeboard .color-label{color:#8b9bb0!important}.theme-noticeboard .color-gold{color:#f3b22f!important}.theme-noticeboard .color-bg-black{background-color:#000!important}.theme-noticeboard .color-bg-white{background-color:#d9d9d9!important}.theme-noticeboard .color-bg-red{background-color:#bd2020!important}.theme-noticeboard .color-bg-orange{background-color:#d95e0c!important}.theme-noticeboard .color-bg-yellow{background-color:#d9b804!important}.theme-noticeboard .color-bg-olive{background-color:#9aad14!important}.theme-noticeboard .color-bg-green{background-color:#1b9638!important}.theme-noticeboard .color-bg-teal{background-color:#009a93!important}.theme-noticeboard .color-bg-blue{background-color:#1c71b1!important}.theme-noticeboard .color-bg-violet{background-color:#552dab!important}.theme-noticeboard .color-bg-purple{background-color:#8b2baa!important}.theme-noticeboard .color-bg-pink{background-color:#cf2082!important}.theme-noticeboard .color-bg-brown{background-color:#8c5836!important}.theme-noticeboard .color-bg-grey{background-color:#646464!important}.theme-noticeboard .color-bg-good{background-color:#4d9121!important}.theme-noticeboard .color-bg-average{background-color:#cd7a0d!important}.theme-noticeboard .color-bg-bad{background-color:#bd2020!important}.theme-noticeboard .color-bg-label{background-color:#657a94!important}.theme-noticeboard .color-bg-gold{background-color:#d6920c!important}.theme-noticeboard .color-border-black{border-color:#1a1a1a!important}.theme-noticeboard .color-border-white{border-color:#fff!important}.theme-noticeboard .color-border-red{border-color:#df3e3e!important}.theme-noticeboard .color-border-orange{border-color:#f37f33!important}.theme-noticeboard .color-border-yellow{border-color:#fbda21!important}.theme-noticeboard .color-border-olive{border-color:#cbe41c!important}.theme-noticeboard .color-border-green{border-color:#25ca4c!important}.theme-noticeboard .color-border-teal{border-color:#00d6cc!important}.theme-noticeboard .color-border-blue{border-color:#2e93de!important}.theme-noticeboard .color-border-violet{border-color:#7349cf!important}.theme-noticeboard .color-border-purple{border-color:#ad45d0!important}.theme-noticeboard .color-border-pink{border-color:#e34da1!important}.theme-noticeboard .color-border-brown{border-color:#b97447!important}.theme-noticeboard .color-border-grey{border-color:#848484!important}.theme-noticeboard .color-border-good{border-color:#68c22d!important}.theme-noticeboard .color-border-average{border-color:#f29a29!important}.theme-noticeboard .color-border-bad{border-color:#df3e3e!important}.theme-noticeboard .color-border-label{border-color:#8b9bb0!important}.theme-noticeboard .color-border-gold{border-color:#f3b22f!important}.theme-noticeboard .Section{position:relative;margin-bottom:.5em;background-color:#f2f2f2;box-sizing:border-box}.theme-noticeboard .Section:last-child{margin-bottom:0}.theme-noticeboard .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #4972a1}.theme-noticeboard .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-noticeboard .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-noticeboard .Section__rest{position:relative}.theme-noticeboard .Section__content{padding:.66em .5em}.theme-noticeboard .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-noticeboard .Section--fill{display:flex;flex-direction:column;height:100%}.theme-noticeboard .Section--fill>.Section__rest{flex-grow:1}.theme-noticeboard .Section--fill>.Section__rest>.Section__content{height:100%}.theme-noticeboard .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-noticeboard .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-noticeboard .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-noticeboard .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-noticeboard .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-noticeboard .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-noticeboard .Section .Section:first-child{margin-top:-.5em}.theme-noticeboard .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-noticeboard .Section .Section .Section .Section__titleText{font-size:1em}.theme-noticeboard .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#2b0f0c;background-image:linear-gradient(to bottom,#2b0f0c,#2b0f0c)}.theme-noticeboard .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-noticeboard .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-noticeboard .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-noticeboard .Window__contentPadding:after{height:0}.theme-noticeboard .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-noticeboard .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(69,37,33,.25);pointer-events:none}.theme-noticeboard .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-noticeboard .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-noticeboard .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-noticeboard .TitleBar{background-color:#2b0f0c;border-bottom:1px solid #2b0f0c;box-shadow:0 2px 2px #2b0f0c;box-shadow:0 .1666666667rem .1666666667rem #2b0f0c;user-select:none;-ms-user-select:none}.theme-noticeboard .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#2b0f0c;transition:color .25s,background-color .25s}.theme-noticeboard .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-noticeboard .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-noticeboard .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-noticeboard .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-noticeboard .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-noticeboard .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-noticeboard .Layout,.theme-noticeboard .Layout *{scrollbar-base-color:#f2f2f2;scrollbar-face-color:#e1e1e1;scrollbar-3dlight-color:#f2f2f2;scrollbar-highlight-color:#c8c8c8;scrollbar-track-color:#f2f2f2;scrollbar-arrow-color:#969696;scrollbar-shadow-color:#f2f2f2}.theme-noticeboard .Layout__content{background-image:none}.theme-noticeboard .Window__contentPadding{background-color:#824b28;box-shadow:inset 0 0 10px 1px rgba(0,0,0,.75);border-radius:1em}.theme-noticeboard .Stack--horizontal>.Stack__item{margin-left:1em}.theme-noticeboard .Stack--horizontal>.Stack__item:last-child{margin-right:1em}.theme-noticeboard .Section{font-family:Comic Sans MS,cursive,sans-serif;font-style:italic;white-space:pre-wrap;color:#000;box-shadow:5px 5px 5px rgba(0,0,0,.5);border-radius:100px 100px 200px 200px/10px;transition:all .1s ease-in-out}.theme-noticeboard .Section>.Section__rest>.Section__content{overflow-y:hidden;overflow-x:hidden}.theme-noticeboard .Section__content{margin-top:.25em}.theme-noticeboard .Section__title{margin-top:.5em;padding-bottom:0;border:0}.theme-noticeboard .Section__titleText{color:#000}.theme-noticeboard .Section:hover{transform:scale(1.15);border-radius:1em;box-shadow:0 0 20px 10px rgba(0,0,0,.33);z-index:2}.theme-noticeboard .Section:before{content:" ";display:block;width:10px;height:10px;background:linear-gradient(300deg,#640000,red 75%,#ff7d7d);box-shadow:1.5px 1.5px 5px rgba(0,0,0,.6);border-radius:100%;position:absolute;left:calc(50% - 12px);margin-top:.25em;transform:matrix(1,0,.4,.9,0,0)} diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js index b94fcf3bba72..8b0e5933ed8a 100644 --- a/tgui/public/tgui.bundle.js +++ b/tgui/public/tgui.bundle.js @@ -1,30 +1,30 @@ -(function(){(function(){var Qt={96376:function(x,r,n){"use strict";r.__esModule=!0,r.createPopper=void 0,r.popperGenerator=m;var e=C(n(74758)),a=C(n(28811)),t=C(n(98309)),o=C(n(44896)),p=C(n(33118)),b=C(n(10579)),y=C(n(56500)),I=C(n(17633));r.detectOverflow=I.default;var k=n(75573);function C(d){return d&&d.__esModule?d:{default:d}}var i={placement:"bottom",modifiers:[],strategy:"absolute"};function c(){for(var d=arguments.length,s=new Array(d),l=0;l0&&(0,a.round)(C.width)/y.offsetWidth||1,c=y.offsetHeight>0&&(0,a.round)(C.height)/y.offsetHeight||1);var m=(0,e.isElement)(y)?(0,t.default)(y):window,u=m.visualViewport,d=!(0,o.default)()&&k,s=(C.left+(d&&u?u.offsetLeft:0))/i,l=(C.top+(d&&u?u.offsetTop:0))/c,h=C.width/i,N=C.height/c;return{width:h,height:N,top:l,right:s+h,bottom:l+N,left:s,x:s,y:l}}},49035:function(x,r,n){"use strict";r.__esModule=!0,r.default=N;var e=n(46206),a=d(n(87991)),t=d(n(79752)),o=d(n(98309)),p=d(n(44896)),b=d(n(40600)),y=d(n(16599)),I=n(75573),k=d(n(37786)),C=d(n(57819)),i=d(n(4206)),c=d(n(12972)),m=d(n(81666)),u=n(63618);function d(v){return v&&v.__esModule?v:{default:v}}function s(v,f){var g=(0,k.default)(v,!1,f==="fixed");return g.top=g.top+v.clientTop,g.left=g.left+v.clientLeft,g.bottom=g.top+v.clientHeight,g.right=g.left+v.clientWidth,g.width=v.clientWidth,g.height=v.clientHeight,g.x=g.left,g.y=g.top,g}function l(v,f,g){return f===e.viewport?(0,m.default)((0,a.default)(v,g)):(0,I.isElement)(f)?s(f,g):(0,m.default)((0,t.default)((0,b.default)(v)))}function h(v){var f=(0,o.default)((0,C.default)(v)),g=["absolute","fixed"].indexOf((0,y.default)(v).position)>=0,V=g&&(0,I.isHTMLElement)(v)?(0,p.default)(v):v;return(0,I.isElement)(V)?f.filter(function(B){return(0,I.isElement)(B)&&(0,i.default)(B,V)&&(0,c.default)(B)!=="body"}):[]}function N(v,f,g,V){var B=f==="clippingParents"?h(v):[].concat(f),S=[].concat(B,[g]),L=S[0],w=S.reduce(function(A,T){var E=l(v,T,V);return A.top=(0,u.max)(E.top,A.top),A.right=(0,u.min)(E.right,A.right),A.bottom=(0,u.min)(E.bottom,A.bottom),A.left=(0,u.max)(E.left,A.left),A},l(v,L,V));return w.width=w.right-w.left,w.height=w.bottom-w.top,w.x=w.left,w.y=w.top,w}},74758:function(x,r,n){"use strict";r.__esModule=!0,r.default=i;var e=k(n(37786)),a=k(n(13390)),t=k(n(12972)),o=n(75573),p=k(n(79697)),b=k(n(40600)),y=k(n(10798)),I=n(63618);function k(c){return c&&c.__esModule?c:{default:c}}function C(c){var m=c.getBoundingClientRect(),u=(0,I.round)(m.width)/c.offsetWidth||1,d=(0,I.round)(m.height)/c.offsetHeight||1;return u!==1||d!==1}function i(c,m,u){u===void 0&&(u=!1);var d=(0,o.isHTMLElement)(m),s=(0,o.isHTMLElement)(m)&&C(m),l=(0,b.default)(m),h=(0,e.default)(c,s,u),N={scrollLeft:0,scrollTop:0},v={x:0,y:0};return(d||!d&&!u)&&(((0,t.default)(m)!=="body"||(0,y.default)(l))&&(N=(0,a.default)(m)),(0,o.isHTMLElement)(m)?(v=(0,e.default)(m,!0),v.x+=m.clientLeft,v.y+=m.clientTop):l&&(v.x=(0,p.default)(l))),{x:h.left+N.scrollLeft-v.x,y:h.top+N.scrollTop-v.y,width:h.width,height:h.height}}},16599:function(x,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(95115));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return(0,e.default)(o).getComputedStyle(o)}},40600:function(x,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(75573);function a(t){return(((0,e.isElement)(t)?t.ownerDocument:t.document)||window.document).documentElement}},79752:function(x,r,n){"use strict";r.__esModule=!0,r.default=y;var e=b(n(40600)),a=b(n(16599)),t=b(n(79697)),o=b(n(43750)),p=n(63618);function b(I){return I&&I.__esModule?I:{default:I}}function y(I){var k,C=(0,e.default)(I),i=(0,o.default)(I),c=(k=I.ownerDocument)==null?void 0:k.body,m=(0,p.max)(C.scrollWidth,C.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),u=(0,p.max)(C.scrollHeight,C.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),d=-i.scrollLeft+(0,t.default)(I),s=-i.scrollTop;return(0,a.default)(c||C).direction==="rtl"&&(d+=(0,p.max)(C.clientWidth,c?c.clientWidth:0)-m),{width:m,height:u,x:d,y:s}}},3073:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}},28811:function(x,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(37786));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var p=(0,e.default)(o),b=o.offsetWidth,y=o.offsetHeight;return Math.abs(p.width-b)<=1&&(b=p.width),Math.abs(p.height-y)<=1&&(y=p.height),{x:o.offsetLeft,y:o.offsetTop,width:b,height:y}}},12972:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e?(e.nodeName||"").toLowerCase():null}},13390:function(x,r,n){"use strict";r.__esModule=!0,r.default=b;var e=p(n(43750)),a=p(n(95115)),t=n(75573),o=p(n(3073));function p(y){return y&&y.__esModule?y:{default:y}}function b(y){return y===(0,a.default)(y)||!(0,t.isHTMLElement)(y)?(0,e.default)(y):(0,o.default)(y)}},44896:function(x,r,n){"use strict";r.__esModule=!0,r.default=i;var e=I(n(95115)),a=I(n(12972)),t=I(n(16599)),o=n(75573),p=I(n(87031)),b=I(n(57819)),y=I(n(35366));function I(c){return c&&c.__esModule?c:{default:c}}function k(c){return!(0,o.isHTMLElement)(c)||(0,t.default)(c).position==="fixed"?null:c.offsetParent}function C(c){var m=/firefox/i.test((0,y.default)()),u=/Trident/i.test((0,y.default)());if(u&&(0,o.isHTMLElement)(c)){var d=(0,t.default)(c);if(d.position==="fixed")return null}var s=(0,b.default)(c);for((0,o.isShadowRoot)(s)&&(s=s.host);(0,o.isHTMLElement)(s)&&["html","body"].indexOf((0,a.default)(s))<0;){var l=(0,t.default)(s);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||m&&l.willChange==="filter"||m&&l.filter&&l.filter!=="none")return s;s=s.parentNode}return null}function i(c){for(var m=(0,e.default)(c),u=k(c);u&&(0,p.default)(u)&&(0,t.default)(u).position==="static";)u=k(u);return u&&((0,a.default)(u)==="html"||(0,a.default)(u)==="body"&&(0,t.default)(u).position==="static")?m:u||C(c)||m}},57819:function(x,r,n){"use strict";r.__esModule=!0,r.default=p;var e=o(n(12972)),a=o(n(40600)),t=n(75573);function o(b){return b&&b.__esModule?b:{default:b}}function p(b){return(0,e.default)(b)==="html"?b:b.assignedSlot||b.parentNode||((0,t.isShadowRoot)(b)?b.host:null)||(0,a.default)(b)}},24426:function(x,r,n){"use strict";r.__esModule=!0,r.default=b;var e=p(n(57819)),a=p(n(10798)),t=p(n(12972)),o=n(75573);function p(y){return y&&y.__esModule?y:{default:y}}function b(y){return["html","body","#document"].indexOf((0,t.default)(y))>=0?y.ownerDocument.body:(0,o.isHTMLElement)(y)&&(0,a.default)(y)?y:b((0,e.default)(y))}},87991:function(x,r,n){"use strict";r.__esModule=!0,r.default=b;var e=p(n(95115)),a=p(n(40600)),t=p(n(79697)),o=p(n(89331));function p(y){return y&&y.__esModule?y:{default:y}}function b(y,I){var k=(0,e.default)(y),C=(0,a.default)(y),i=k.visualViewport,c=C.clientWidth,m=C.clientHeight,u=0,d=0;if(i){c=i.width,m=i.height;var s=(0,o.default)();(s||!s&&I==="fixed")&&(u=i.offsetLeft,d=i.offsetTop)}return{width:c,height:m,x:u+(0,t.default)(y),y:d}}},95115:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var a=e.ownerDocument;return a&&a.defaultView||window}return e}},43750:function(x,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(95115));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var p=(0,e.default)(o),b=p.pageXOffset,y=p.pageYOffset;return{scrollLeft:b,scrollTop:y}}},79697:function(x,r,n){"use strict";r.__esModule=!0,r.default=p;var e=o(n(37786)),a=o(n(40600)),t=o(n(43750));function o(b){return b&&b.__esModule?b:{default:b}}function p(b){return(0,e.default)((0,a.default)(b)).left+(0,t.default)(b).scrollLeft}},75573:function(x,r,n){"use strict";r.__esModule=!0,r.isElement=t,r.isHTMLElement=o,r.isShadowRoot=p;var e=a(n(95115));function a(b){return b&&b.__esModule?b:{default:b}}function t(b){var y=(0,e.default)(b).Element;return b instanceof y||b instanceof Element}function o(b){var y=(0,e.default)(b).HTMLElement;return b instanceof y||b instanceof HTMLElement}function p(b){if(typeof ShadowRoot=="undefined")return!1;var y=(0,e.default)(b).ShadowRoot;return b instanceof y||b instanceof ShadowRoot}},89331:function(x,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(35366));function a(o){return o&&o.__esModule?o:{default:o}}function t(){return!/^((?!chrome|android).)*safari/i.test((0,e.default)())}},10798:function(x,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(16599));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var p=(0,e.default)(o),b=p.overflow,y=p.overflowX,I=p.overflowY;return/auto|scroll|overlay|hidden/.test(b+I+y)}},87031:function(x,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(12972));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return["table","td","th"].indexOf((0,e.default)(o))>=0}},98309:function(x,r,n){"use strict";r.__esModule=!0,r.default=b;var e=p(n(24426)),a=p(n(57819)),t=p(n(95115)),o=p(n(10798));function p(y){return y&&y.__esModule?y:{default:y}}function b(y,I){var k;I===void 0&&(I=[]);var C=(0,e.default)(y),i=C===((k=y.ownerDocument)==null?void 0:k.body),c=(0,t.default)(C),m=i?[c].concat(c.visualViewport||[],(0,o.default)(C)?C:[]):C,u=I.concat(m);return i?u:u.concat(b((0,a.default)(m)))}},46206:function(x,r){"use strict";r.__esModule=!0,r.write=r.viewport=r.variationPlacements=r.top=r.start=r.right=r.reference=r.read=r.popper=r.placements=r.modifierPhases=r.main=r.left=r.end=r.clippingParents=r.bottom=r.beforeWrite=r.beforeRead=r.beforeMain=r.basePlacements=r.auto=r.afterWrite=r.afterRead=r.afterMain=void 0;var n=r.top="top",e=r.bottom="bottom",a=r.right="right",t=r.left="left",o=r.auto="auto",p=r.basePlacements=[n,e,a,t],b=r.start="start",y=r.end="end",I=r.clippingParents="clippingParents",k=r.viewport="viewport",C=r.popper="popper",i=r.reference="reference",c=r.variationPlacements=p.reduce(function(B,S){return B.concat([S+"-"+b,S+"-"+y])},[]),m=r.placements=[].concat(p,[o]).reduce(function(B,S){return B.concat([S,S+"-"+b,S+"-"+y])},[]),u=r.beforeRead="beforeRead",d=r.read="read",s=r.afterRead="afterRead",l=r.beforeMain="beforeMain",h=r.main="main",N=r.afterMain="afterMain",v=r.beforeWrite="beforeWrite",f=r.write="write",g=r.afterWrite="afterWrite",V=r.modifierPhases=[u,d,s,l,h,N,v,f,g]},95996:function(x,r,n){"use strict";r.__esModule=!0;var e={popperGenerator:!0,detectOverflow:!0,createPopperBase:!0,createPopper:!0,createPopperLite:!0};r.popperGenerator=r.detectOverflow=r.createPopperLite=r.createPopperBase=r.createPopper=void 0;var a=n(46206);Object.keys(a).forEach(function(y){y==="default"||y==="__esModule"||Object.prototype.hasOwnProperty.call(e,y)||y in r&&r[y]===a[y]||(r[y]=a[y])});var t=n(39805);Object.keys(t).forEach(function(y){y==="default"||y==="__esModule"||Object.prototype.hasOwnProperty.call(e,y)||y in r&&r[y]===t[y]||(r[y]=t[y])});var o=n(96376);r.popperGenerator=o.popperGenerator,r.detectOverflow=o.detectOverflow,r.createPopperBase=o.createPopper;var p=n(83312);r.createPopper=p.createPopper;var b=n(2473);r.createPopperLite=b.createPopper},19975:function(x,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=t(n(12972)),a=n(75573);function t(y){return y&&y.__esModule?y:{default:y}}function o(y){var I=y.state;Object.keys(I.elements).forEach(function(k){var C=I.styles[k]||{},i=I.attributes[k]||{},c=I.elements[k];!(0,a.isHTMLElement)(c)||!(0,e.default)(c)||(Object.assign(c.style,C),Object.keys(i).forEach(function(m){var u=i[m];u===!1?c.removeAttribute(m):c.setAttribute(m,u===!0?"":u)}))})}function p(y){var I=y.state,k={popper:{position:I.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(I.elements.popper.style,k.popper),I.styles=k,I.elements.arrow&&Object.assign(I.elements.arrow.style,k.arrow),function(){Object.keys(I.elements).forEach(function(C){var i=I.elements[C],c=I.attributes[C]||{},m=Object.keys(I.styles.hasOwnProperty(C)?I.styles[C]:k[C]),u=m.reduce(function(d,s){return d[s]="",d},{});!(0,a.isHTMLElement)(i)||!(0,e.default)(i)||(Object.assign(i.style,u),Object.keys(c).forEach(function(d){i.removeAttribute(d)}))})}}var b=r.default={name:"applyStyles",enabled:!0,phase:"write",fn:o,effect:p,requires:["computeStyles"]}},52744:function(x,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=C(n(83104)),a=C(n(28811)),t=C(n(4206)),o=C(n(44896)),p=C(n(41199)),b=n(28595),y=C(n(43286)),I=C(n(81447)),k=n(46206);function C(d){return d&&d.__esModule?d:{default:d}}var i=function(){function d(s,l){return s=typeof s=="function"?s(Object.assign({},l.rects,{placement:l.placement})):s,(0,y.default)(typeof s!="number"?s:(0,I.default)(s,k.basePlacements))}return d}();function c(d){var s,l=d.state,h=d.name,N=d.options,v=l.elements.arrow,f=l.modifiersData.popperOffsets,g=(0,e.default)(l.placement),V=(0,p.default)(g),B=[k.left,k.right].indexOf(g)>=0,S=B?"height":"width";if(!(!v||!f)){var L=i(N.padding,l),w=(0,a.default)(v),A=V==="y"?k.top:k.left,T=V==="y"?k.bottom:k.right,E=l.rects.reference[S]+l.rects.reference[V]-f[V]-l.rects.popper[S],P=f[V]-l.rects.reference[V],D=(0,o.default)(v),M=D?V==="y"?D.clientHeight||0:D.clientWidth||0:0,O=E/2-P/2,R=L[A],j=M-w[S]-L[T],_=M/2-w[S]/2+O,W=(0,b.within)(R,_,j),z=V;l.modifiersData[h]=(s={},s[z]=W,s.centerOffset=W-_,s)}}function m(d){var s=d.state,l=d.options,h=l.element,N=h===void 0?"[data-popper-arrow]":h;N!=null&&(typeof N=="string"&&(N=s.elements.popper.querySelector(N),!N)||(0,t.default)(s.elements.popper,N)&&(s.elements.arrow=N))}var u=r.default={name:"arrow",enabled:!0,phase:"main",fn:c,effect:m,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},59894:function(x,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.mapToStyles=c;var e=n(46206),a=k(n(44896)),t=k(n(95115)),o=k(n(40600)),p=k(n(16599)),b=k(n(83104)),y=k(n(45)),I=n(63618);function k(d){return d&&d.__esModule?d:{default:d}}var C={top:"auto",right:"auto",bottom:"auto",left:"auto"};function i(d,s){var l=d.x,h=d.y,N=s.devicePixelRatio||1;return{x:(0,I.round)(l*N)/N||0,y:(0,I.round)(h*N)/N||0}}function c(d){var s,l=d.popper,h=d.popperRect,N=d.placement,v=d.variation,f=d.offsets,g=d.position,V=d.gpuAcceleration,B=d.adaptive,S=d.roundOffsets,L=d.isFixed,w=f.x,A=w===void 0?0:w,T=f.y,E=T===void 0?0:T,P=typeof S=="function"?S({x:A,y:E}):{x:A,y:E};A=P.x,E=P.y;var D=f.hasOwnProperty("x"),M=f.hasOwnProperty("y"),O=e.left,R=e.top,j=window;if(B){var _=(0,a.default)(l),W="clientHeight",z="clientWidth";if(_===(0,t.default)(l)&&(_=(0,o.default)(l),(0,p.default)(_).position!=="static"&&g==="absolute"&&(W="scrollHeight",z="scrollWidth")),_=_,N===e.top||(N===e.left||N===e.right)&&v===e.end){R=e.bottom;var K=L&&_===j&&j.visualViewport?j.visualViewport.height:_[W];E-=K-h.height,E*=V?1:-1}if(N===e.left||(N===e.top||N===e.bottom)&&v===e.end){O=e.right;var G=L&&_===j&&j.visualViewport?j.visualViewport.width:_[z];A-=G-h.width,A*=V?1:-1}}var Q=Object.assign({position:g},B&&C),J=S===!0?i({x:A,y:E},(0,t.default)(l)):{x:A,y:E};if(A=J.x,E=J.y,V){var ue;return Object.assign({},Q,(ue={},ue[R]=M?"0":"",ue[O]=D?"0":"",ue.transform=(j.devicePixelRatio||1)<=1?"translate("+A+"px, "+E+"px)":"translate3d("+A+"px, "+E+"px, 0)",ue))}return Object.assign({},Q,(s={},s[R]=M?E+"px":"",s[O]=D?A+"px":"",s.transform="",s))}function m(d){var s=d.state,l=d.options,h=l.gpuAcceleration,N=h===void 0?!0:h,v=l.adaptive,f=v===void 0?!0:v,g=l.roundOffsets,V=g===void 0?!0:g,B={placement:(0,b.default)(s.placement),variation:(0,y.default)(s.placement),popper:s.elements.popper,popperRect:s.rects.popper,gpuAcceleration:N,isFixed:s.options.strategy==="fixed"};s.modifiersData.popperOffsets!=null&&(s.styles.popper=Object.assign({},s.styles.popper,c(Object.assign({},B,{offsets:s.modifiersData.popperOffsets,position:s.options.strategy,adaptive:f,roundOffsets:V})))),s.modifiersData.arrow!=null&&(s.styles.arrow=Object.assign({},s.styles.arrow,c(Object.assign({},B,{offsets:s.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:V})))),s.attributes.popper=Object.assign({},s.attributes.popper,{"data-popper-placement":s.placement})}var u=r.default={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:m,data:{}}},36692:function(x,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(95115));function a(b){return b&&b.__esModule?b:{default:b}}var t={passive:!0};function o(b){var y=b.state,I=b.instance,k=b.options,C=k.scroll,i=C===void 0?!0:C,c=k.resize,m=c===void 0?!0:c,u=(0,e.default)(y.elements.popper),d=[].concat(y.scrollParents.reference,y.scrollParents.popper);return i&&d.forEach(function(s){s.addEventListener("scroll",I.update,t)}),m&&u.addEventListener("resize",I.update,t),function(){i&&d.forEach(function(s){s.removeEventListener("scroll",I.update,t)}),m&&u.removeEventListener("resize",I.update,t)}}var p=r.default={name:"eventListeners",enabled:!0,phase:"write",fn:function(){function b(){}return b}(),effect:o,data:{}}},23798:function(x,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=I(n(71376)),a=I(n(83104)),t=I(n(86459)),o=I(n(17633)),p=I(n(9041)),b=n(46206),y=I(n(45));function I(c){return c&&c.__esModule?c:{default:c}}function k(c){if((0,a.default)(c)===b.auto)return[];var m=(0,e.default)(c);return[(0,t.default)(c),m,(0,t.default)(m)]}function C(c){var m=c.state,u=c.options,d=c.name;if(!m.modifiersData[d]._skip){for(var s=u.mainAxis,l=s===void 0?!0:s,h=u.altAxis,N=h===void 0?!0:h,v=u.fallbackPlacements,f=u.padding,g=u.boundary,V=u.rootBoundary,B=u.altBoundary,S=u.flipVariations,L=S===void 0?!0:S,w=u.allowedAutoPlacements,A=m.options.placement,T=(0,a.default)(A),E=T===A,P=v||(E||!L?[(0,e.default)(A)]:k(A)),D=[A].concat(P).reduce(function(re,oe){return re.concat((0,a.default)(oe)===b.auto?(0,p.default)(m,{placement:oe,boundary:g,rootBoundary:V,padding:f,flipVariations:L,allowedAutoPlacements:w}):oe)},[]),M=m.rects.reference,O=m.rects.popper,R=new Map,j=!0,_=D[0],W=0;W=0,J=Q?"width":"height",ue=(0,o.default)(m,{placement:z,boundary:g,rootBoundary:V,altBoundary:B,padding:f}),ie=Q?G?b.right:b.left:G?b.bottom:b.top;M[J]>O[J]&&(ie=(0,e.default)(ie));var pe=(0,e.default)(ie),te=[];if(l&&te.push(ue[K]<=0),N&&te.push(ue[ie]<=0,ue[pe]<=0),te.every(function(re){return re})){_=z,j=!1;break}R.set(z,te)}if(j)for(var q=L?3:1,ne=function(){function re(oe){var fe=D.find(function(me){var Y=R.get(me);if(Y)return Y.slice(0,oe).every(function(ve){return ve})});if(fe)return _=fe,"break"}return re}(),le=q;le>0;le--){var ee=ne(le);if(ee==="break")break}m.placement!==_&&(m.modifiersData[d]._skip=!0,m.placement=_,m.reset=!0)}}var i=r.default={name:"flip",enabled:!0,phase:"main",fn:C,requiresIfExists:["offset"],data:{_skip:!1}}},83761:function(x,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(46206),a=t(n(17633));function t(I){return I&&I.__esModule?I:{default:I}}function o(I,k,C){return C===void 0&&(C={x:0,y:0}),{top:I.top-k.height-C.y,right:I.right-k.width+C.x,bottom:I.bottom-k.height+C.y,left:I.left-k.width-C.x}}function p(I){return[e.top,e.right,e.bottom,e.left].some(function(k){return I[k]>=0})}function b(I){var k=I.state,C=I.name,i=k.rects.reference,c=k.rects.popper,m=k.modifiersData.preventOverflow,u=(0,a.default)(k,{elementContext:"reference"}),d=(0,a.default)(k,{altBoundary:!0}),s=o(u,i),l=o(d,c,m),h=p(s),N=p(l);k.modifiersData[C]={referenceClippingOffsets:s,popperEscapeOffsets:l,isReferenceHidden:h,hasPopperEscaped:N},k.attributes.popper=Object.assign({},k.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":N})}var y=r.default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:b}},39805:function(x,r,n){"use strict";r.__esModule=!0,r.preventOverflow=r.popperOffsets=r.offset=r.hide=r.flip=r.eventListeners=r.computeStyles=r.arrow=r.applyStyles=void 0;var e=C(n(19975));r.applyStyles=e.default;var a=C(n(52744));r.arrow=a.default;var t=C(n(59894));r.computeStyles=t.default;var o=C(n(36692));r.eventListeners=o.default;var p=C(n(23798));r.flip=p.default;var b=C(n(83761));r.hide=b.default;var y=C(n(61410));r.offset=y.default;var I=C(n(40107));r.popperOffsets=I.default;var k=C(n(75137));r.preventOverflow=k.default;function C(i){return i&&i.__esModule?i:{default:i}}},61410:function(x,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.distanceAndSkiddingToXY=o;var e=t(n(83104)),a=n(46206);function t(y){return y&&y.__esModule?y:{default:y}}function o(y,I,k){var C=(0,e.default)(y),i=[a.left,a.top].indexOf(C)>=0?-1:1,c=typeof k=="function"?k(Object.assign({},I,{placement:y})):k,m=c[0],u=c[1];return m=m||0,u=(u||0)*i,[a.left,a.right].indexOf(C)>=0?{x:u,y:m}:{x:m,y:u}}function p(y){var I=y.state,k=y.options,C=y.name,i=k.offset,c=i===void 0?[0,0]:i,m=a.placements.reduce(function(l,h){return l[h]=o(h,I.rects,c),l},{}),u=m[I.placement],d=u.x,s=u.y;I.modifiersData.popperOffsets!=null&&(I.modifiersData.popperOffsets.x+=d,I.modifiersData.popperOffsets.y+=s),I.modifiersData[C]=m}var b=r.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:p}},40107:function(x,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(89951));function a(p){return p&&p.__esModule?p:{default:p}}function t(p){var b=p.state,y=p.name;b.modifiersData[y]=(0,e.default)({reference:b.rects.reference,element:b.rects.popper,strategy:"absolute",placement:b.placement})}var o=r.default={name:"popperOffsets",enabled:!0,phase:"read",fn:t,data:{}}},75137:function(x,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(46206),a=c(n(83104)),t=c(n(41199)),o=c(n(28066)),p=n(28595),b=c(n(28811)),y=c(n(44896)),I=c(n(17633)),k=c(n(45)),C=c(n(34780)),i=n(63618);function c(d){return d&&d.__esModule?d:{default:d}}function m(d){var s=d.state,l=d.options,h=d.name,N=l.mainAxis,v=N===void 0?!0:N,f=l.altAxis,g=f===void 0?!1:f,V=l.boundary,B=l.rootBoundary,S=l.altBoundary,L=l.padding,w=l.tether,A=w===void 0?!0:w,T=l.tetherOffset,E=T===void 0?0:T,P=(0,I.default)(s,{boundary:V,rootBoundary:B,padding:L,altBoundary:S}),D=(0,a.default)(s.placement),M=(0,k.default)(s.placement),O=!M,R=(0,t.default)(D),j=(0,o.default)(R),_=s.modifiersData.popperOffsets,W=s.rects.reference,z=s.rects.popper,K=typeof E=="function"?E(Object.assign({},s.rects,{placement:s.placement})):E,G=typeof K=="number"?{mainAxis:K,altAxis:K}:Object.assign({mainAxis:0,altAxis:0},K),Q=s.modifiersData.offset?s.modifiersData.offset[s.placement]:null,J={x:0,y:0};if(_){if(v){var ue,ie=R==="y"?e.top:e.left,pe=R==="y"?e.bottom:e.right,te=R==="y"?"height":"width",q=_[R],ne=q+P[ie],le=q-P[pe],ee=A?-z[te]/2:0,re=M===e.start?W[te]:z[te],oe=M===e.start?-z[te]:-W[te],fe=s.elements.arrow,me=A&&fe?(0,b.default)(fe):{width:0,height:0},Y=s.modifiersData["arrow#persistent"]?s.modifiersData["arrow#persistent"].padding:(0,C.default)(),ve=Y[ie],he=Y[pe],Ve=(0,p.within)(0,W[te],me[te]),Be=O?W[te]/2-ee-Ve-ve-G.mainAxis:re-Ve-ve-G.mainAxis,be=O?-W[te]/2+ee+Ve+he+G.mainAxis:oe+Ve+he+G.mainAxis,Le=s.elements.arrow&&(0,y.default)(s.elements.arrow),we=Le?R==="y"?Le.clientTop||0:Le.clientLeft||0:0,xe=(ue=Q==null?void 0:Q[R])!=null?ue:0,Re=q+Be-xe-we,He=q+be-xe,ye=(0,p.within)(A?(0,i.min)(ne,Re):ne,q,A?(0,i.max)(le,He):le);_[R]=ye,J[R]=ye-q}if(g){var de,Ce=R==="x"?e.top:e.left,ke=R==="x"?e.bottom:e.right,ge=_[j],Se=j==="y"?"height":"width",Pe=ge+P[Ce],je=ge-P[ke],Fe=[e.top,e.left].indexOf(D)!==-1,ze=(de=Q==null?void 0:Q[j])!=null?de:0,We=Fe?Pe:ge-W[Se]-z[Se]-ze+G.altAxis,Ue=Fe?ge+W[Se]+z[Se]-ze-G.altAxis:je,Xe=A&&Fe?(0,p.withinMaxClamp)(We,ge,Ue):(0,p.within)(A?We:Pe,ge,A?Ue:je);_[j]=Xe,J[j]=Xe-ge}s.modifiersData[h]=J}}var u=r.default={name:"preventOverflow",enabled:!0,phase:"main",fn:m,requiresIfExists:["offset"]}},2473:function(x,r,n){"use strict";r.__esModule=!0,r.defaultModifiers=r.createPopper=void 0;var e=n(96376);r.popperGenerator=e.popperGenerator,r.detectOverflow=e.detectOverflow;var a=b(n(36692)),t=b(n(40107)),o=b(n(59894)),p=b(n(19975));function b(k){return k&&k.__esModule?k:{default:k}}var y=r.defaultModifiers=[a.default,t.default,o.default,p.default],I=r.createPopper=(0,e.popperGenerator)({defaultModifiers:y})},83312:function(x,r,n){"use strict";r.__esModule=!0;var e={createPopper:!0,createPopperLite:!0,defaultModifiers:!0,popperGenerator:!0,detectOverflow:!0};r.defaultModifiers=r.createPopperLite=r.createPopper=void 0;var a=n(96376);r.popperGenerator=a.popperGenerator,r.detectOverflow=a.detectOverflow;var t=u(n(36692)),o=u(n(40107)),p=u(n(59894)),b=u(n(19975)),y=u(n(61410)),I=u(n(23798)),k=u(n(75137)),C=u(n(52744)),i=u(n(83761)),c=n(2473);r.createPopperLite=c.createPopper;var m=n(39805);Object.keys(m).forEach(function(l){l==="default"||l==="__esModule"||Object.prototype.hasOwnProperty.call(e,l)||l in r&&r[l]===m[l]||(r[l]=m[l])});function u(l){return l&&l.__esModule?l:{default:l}}var d=r.defaultModifiers=[t.default,o.default,p.default,b.default,y.default,I.default,k.default,C.default,i.default],s=r.createPopperLite=r.createPopper=(0,a.popperGenerator)({defaultModifiers:d})},9041:function(x,r,n){"use strict";r.__esModule=!0,r.default=b;var e=p(n(45)),a=n(46206),t=p(n(17633)),o=p(n(83104));function p(y){return y&&y.__esModule?y:{default:y}}function b(y,I){I===void 0&&(I={});var k=I,C=k.placement,i=k.boundary,c=k.rootBoundary,m=k.padding,u=k.flipVariations,d=k.allowedAutoPlacements,s=d===void 0?a.placements:d,l=(0,e.default)(C),h=l?u?a.variationPlacements:a.variationPlacements.filter(function(f){return(0,e.default)(f)===l}):a.basePlacements,N=h.filter(function(f){return s.indexOf(f)>=0});N.length===0&&(N=h);var v=N.reduce(function(f,g){return f[g]=(0,t.default)(y,{placement:g,boundary:i,rootBoundary:c,padding:m})[(0,o.default)(g)],f},{});return Object.keys(v).sort(function(f,g){return v[f]-v[g]})}},89951:function(x,r,n){"use strict";r.__esModule=!0,r.default=b;var e=p(n(83104)),a=p(n(45)),t=p(n(41199)),o=n(46206);function p(y){return y&&y.__esModule?y:{default:y}}function b(y){var I=y.reference,k=y.element,C=y.placement,i=C?(0,e.default)(C):null,c=C?(0,a.default)(C):null,m=I.x+I.width/2-k.width/2,u=I.y+I.height/2-k.height/2,d;switch(i){case o.top:d={x:m,y:I.y-k.height};break;case o.bottom:d={x:m,y:I.y+I.height};break;case o.right:d={x:I.x+I.width,y:u};break;case o.left:d={x:I.x-k.width,y:u};break;default:d={x:I.x,y:I.y}}var s=i?(0,t.default)(i):null;if(s!=null){var l=s==="y"?"height":"width";switch(c){case o.start:d[s]=d[s]-(I[l]/2-k[l]/2);break;case o.end:d[s]=d[s]+(I[l]/2-k[l]/2);break;default:}}return d}},10579:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a;return function(){return a||(a=new Promise(function(t){Promise.resolve().then(function(){a=void 0,t(e())})})),a}}},17633:function(x,r,n){"use strict";r.__esModule=!0,r.default=i;var e=C(n(49035)),a=C(n(40600)),t=C(n(37786)),o=C(n(89951)),p=C(n(81666)),b=n(46206),y=n(75573),I=C(n(43286)),k=C(n(81447));function C(c){return c&&c.__esModule?c:{default:c}}function i(c,m){m===void 0&&(m={});var u=m,d=u.placement,s=d===void 0?c.placement:d,l=u.strategy,h=l===void 0?c.strategy:l,N=u.boundary,v=N===void 0?b.clippingParents:N,f=u.rootBoundary,g=f===void 0?b.viewport:f,V=u.elementContext,B=V===void 0?b.popper:V,S=u.altBoundary,L=S===void 0?!1:S,w=u.padding,A=w===void 0?0:w,T=(0,I.default)(typeof A!="number"?A:(0,k.default)(A,b.basePlacements)),E=B===b.popper?b.reference:b.popper,P=c.rects.popper,D=c.elements[L?E:B],M=(0,e.default)((0,y.isElement)(D)?D:D.contextElement||(0,a.default)(c.elements.popper),v,g,h),O=(0,t.default)(c.elements.reference),R=(0,o.default)({reference:O,element:P,strategy:"absolute",placement:s}),j=(0,p.default)(Object.assign({},P,R)),_=B===b.popper?j:O,W={top:M.top-_.top+T.top,bottom:_.bottom-M.bottom+T.bottom,left:M.left-_.left+T.left,right:_.right-M.right+T.right},z=c.modifiersData.offset;if(B===b.popper&&z){var K=z[s];Object.keys(W).forEach(function(G){var Q=[b.right,b.bottom].indexOf(G)>=0?1:-1,J=[b.top,b.bottom].indexOf(G)>=0?"y":"x";W[G]+=K[J]*Q})}return W}},81447:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(e,a){return a.reduce(function(t,o){return t[o]=e,t},{})}},28066:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e==="x"?"y":"x"}},83104:function(x,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(46206);function a(t){return t.split("-")[0]}},34780:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(){return{top:0,right:0,bottom:0,left:0}}},41199:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}},71376:function(x,r){"use strict";r.__esModule=!0,r.default=e;var n={left:"right",right:"left",bottom:"top",top:"bottom"};function e(a){return a.replace(/left|right|bottom|top/g,function(t){return n[t]})}},86459:function(x,r){"use strict";r.__esModule=!0,r.default=e;var n={start:"end",end:"start"};function e(a){return a.replace(/start|end/g,function(t){return n[t]})}},45:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e.split("-")[1]}},63618:function(x,r){"use strict";r.__esModule=!0,r.round=r.min=r.max=void 0;var n=r.max=Math.max,e=r.min=Math.min,a=r.round=Math.round},56500:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a=e.reduce(function(t,o){var p=t[o.name];return t[o.name]=p?Object.assign({},p,o,{options:Object.assign({},p.options,o.options),data:Object.assign({},p.data,o.data)}):o,t},{});return Object.keys(a).map(function(t){return a[t]})}},43286:function(x,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(34780));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return Object.assign({},(0,e.default)(),o)}},33118:function(x,r,n){"use strict";r.__esModule=!0,r.default=t;var e=n(46206);function a(o){var p=new Map,b=new Set,y=[];o.forEach(function(k){p.set(k.name,k)});function I(k){b.add(k.name);var C=[].concat(k.requires||[],k.requiresIfExists||[]);C.forEach(function(i){if(!b.has(i)){var c=p.get(i);c&&I(c)}}),y.push(k)}return o.forEach(function(k){b.has(k.name)||I(k)}),y}function t(o){var p=a(o);return e.modifierPhases.reduce(function(b,y){return b.concat(p.filter(function(I){return I.phase===y}))},[])}},81666:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}},35366:function(x,r){"use strict";r.__esModule=!0,r.default=n;function n(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(a){return a.brand+"/"+a.version}).join(" "):navigator.userAgent}},28595:function(x,r,n){"use strict";r.__esModule=!0,r.within=a,r.withinMaxClamp=t;var e=n(63618);function a(o,p,b){return(0,e.max)(o,(0,e.min)(p,b))}function t(o,p,b){var y=a(o,p,b);return y>b?b:y}},15875:function(x,r){"use strict";r.__esModule=!0,r.VNodeFlags=r.ChildFlags=void 0;var n;(function(a){a[a.Unknown=0]="Unknown",a[a.HtmlElement=1]="HtmlElement",a[a.ComponentUnknown=2]="ComponentUnknown",a[a.ComponentClass=4]="ComponentClass",a[a.ComponentFunction=8]="ComponentFunction",a[a.Text=16]="Text",a[a.SvgElement=32]="SvgElement",a[a.InputElement=64]="InputElement",a[a.TextareaElement=128]="TextareaElement",a[a.SelectElement=256]="SelectElement",a[a.Portal=1024]="Portal",a[a.ReCreate=2048]="ReCreate",a[a.ContentEditable=4096]="ContentEditable",a[a.Fragment=8192]="Fragment",a[a.InUse=16384]="InUse",a[a.ForwardRef=32768]="ForwardRef",a[a.Normalized=65536]="Normalized",a[a.ForwardRefComponent=32776]="ForwardRefComponent",a[a.FormElement=448]="FormElement",a[a.Element=481]="Element",a[a.Component=14]="Component",a[a.DOMRef=1521]="DOMRef",a[a.InUseOrNormalized=81920]="InUseOrNormalized",a[a.ClearInUse=-16385]="ClearInUse",a[a.ComponentKnown=12]="ComponentKnown"})(n||(r.VNodeFlags=n={}));var e;(function(a){a[a.UnknownChildren=0]="UnknownChildren",a[a.HasInvalidChildren=1]="HasInvalidChildren",a[a.HasVNodeChildren=2]="HasVNodeChildren",a[a.HasNonKeyedChildren=4]="HasNonKeyedChildren",a[a.HasKeyedChildren=8]="HasKeyedChildren",a[a.HasTextChildren=16]="HasTextChildren",a[a.MultipleChildren=12]="MultipleChildren"})(e||(r.ChildFlags=e={}))},89292:function(x,r){"use strict";r.__esModule=!0,r.Fragment=r.EMPTY_OBJ=r.Component=r.AnimationQueues=void 0,r._CI=Ot,r._HI=me,r._M=$e,r._MCCC=Ft,r._ME=Dt,r._MFCC=_t,r._MP=Mt,r._MR=at,r._RFC=gt,r.__render=Ht,r.createComponentVNode=ue,r.createFragment=pe,r.createPortal=ee,r.createRef=nn,r.createRenderer=En,r.createTextVNode=ie,r.createVNode=K,r.directClone=ne,r.findDOMFromVNode=V,r.forwardRef=on,r.getFlagsForElementVnode=oe,r.linkEvent=C,r.normalizeProps=te,r.options=void 0,r.render=zt,r.rerender=Kt,r.version=void 0;var n=Array.isArray;function e(F){var U=typeof F;return U==="string"||U==="number"}function a(F){return F==null}function t(F){return F===null||F===!1||F===!0||F===void 0}function o(F){return typeof F=="function"}function p(F){return typeof F=="string"}function b(F){return typeof F=="number"}function y(F){return F===null}function I(F){return F===void 0}function k(F,U){var H={};if(F)for(var $ in F)H[$]=F[$];if(U)for(var Z in U)H[Z]=U[Z];return H}function C(F,U){return o(U)?{data:F,event:U}:null}function i(F){return!y(F)&&typeof F=="object"}var c=r.EMPTY_OBJ={},m=r.Fragment="$F",u=r.AnimationQueues=function(){function F(){this.componentDidAppear=[],this.componentWillDisappear=[],this.componentWillMove=[]}return F}();function d(F){return F.substring(2).toLowerCase()}function s(F,U){F.appendChild(U)}function l(F,U,H){y(H)?s(F,U):F.insertBefore(U,H)}function h(F,U){return U?document.createElementNS("http://www.w3.org/2000/svg",F):document.createElement(F)}function N(F,U,H){F.replaceChild(U,H)}function v(F,U){F.removeChild(U)}function f(F){for(var U=0;U0?B(H.componentWillDisappear,w(F,U)):L(F,U,!1)}function T(F,U,H,$,Z,ae,ce,se){F.componentWillMove.push({dom:$,fn:function(){function Ne(){ce&4?H.componentWillMove(U,Z,$):ce&8&&H.onComponentWillMove(U,Z,$,se)}return Ne}(),next:ae,parent:Z})}function E(F,U,H,$,Z){var ae,ce,se=U.flags;do{var Ne=U.flags;if(Ne&1521){!a(ae)&&(o(ae.componentWillMove)||o(ae.onComponentWillMove))?T(Z,F,ae,U.dom,H,$,se,ce):l(H,U.dom,$);return}var Te=U.children;if(Ne&4)ae=U.children,ce=U.props,U=Te.$LI;else if(Ne&8)ae=U.ref,ce=U.props,U=Te;else if(Ne&8192)if(U.childFlags===2)U=Te;else{for(var Ie=0,Ee=Te.length;Ie0,Te=y(se),Ie=p(se)&&se[0]===W;Ne||Te||Ie?(H=H||U.slice(0,ae),(Ne||Ie)&&(ce=ne(ce)),(Te||Ie)&&(ce.key=W+ae),H.push(ce)):H&&H.push(ce),ce.flags|=65536}}H=H||U,H.length===0?$=1:$=8}else H=U,H.flags|=65536,U.flags&81920&&(H=ne(U)),$=2;return F.children=H,F.childFlags=$,F}function me(F){return t(F)||e(F)?ie(F,null):n(F)?pe(F,0,null):F.flags&16384?ne(F):F}var Y="http://www.w3.org/1999/xlink",ve="http://www.w3.org/XML/1998/namespace",he={"xlink:actuate":Y,"xlink:arcrole":Y,"xlink:href":Y,"xlink:role":Y,"xlink:show":Y,"xlink:title":Y,"xlink:type":Y,"xml:base":ve,"xml:lang":ve,"xml:space":ve};function Ve(F){return{onClick:F,onDblClick:F,onFocusIn:F,onFocusOut:F,onKeyDown:F,onKeyPress:F,onKeyUp:F,onMouseDown:F,onMouseMove:F,onMouseUp:F,onTouchEnd:F,onTouchMove:F,onTouchStart:F}}var Be=Ve(0),be=Ve(null),Le=Ve(!0);function we(F,U){var H=U.$EV;return H||(H=U.$EV=Ve(null)),H[F]||++Be[F]===1&&(be[F]=je(F)),H}function xe(F,U){var H=U.$EV;H&&H[F]&&(--Be[F]===0&&(document.removeEventListener(d(F),be[F]),be[F]=null),H[F]=null)}function Re(F,U,H,$){if(o(H))we(F,$)[F]=H;else if(i(H)){if(R(U,H))return;we(F,$)[F]=H}else xe(F,$)}function He(F){return o(F.composedPath)?F.composedPath()[0]:F.target}function ye(F,U,H,$){var Z=He(F);do{if(U&&Z.disabled)return;var ae=Z.$EV;if(ae){var ce=ae[H];if(ce&&($.dom=Z,ce.event?ce.event(ce.data,F):ce(F),F.cancelBubble))return}Z=Z.parentNode}while(!y(Z))}function de(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function Ce(){return this.defaultPrevented}function ke(){return this.cancelBubble}function ge(F){var U={dom:document};return F.isDefaultPrevented=Ce,F.isPropagationStopped=ke,F.stopPropagation=de,Object.defineProperty(F,"currentTarget",{configurable:!0,get:function(){function H(){return U.dom}return H}()}),U}function Se(F){return function(U){if(U.button!==0){U.stopPropagation();return}ye(U,!0,F,ge(U))}}function Pe(F){return function(U){ye(U,!1,F,ge(U))}}function je(F){var U=F==="onClick"||F==="onDblClick"?Se(F):Pe(F);return document.addEventListener(d(F),U),U}function Fe(F,U){var H=document.createElement("i");return H.innerHTML=U,H.innerHTML===F.innerHTML}function ze(F,U,H){if(F[U]){var $=F[U];$.event?$.event($.data,H):$(H)}else{var Z=U.toLowerCase();F[Z]&&F[Z](H)}}function We(F,U){var H=function(){function $(Z){var ae=this.$V;if(ae){var ce=ae.props||c,se=ae.dom;if(p(F))ze(ce,F,Z);else for(var Ne=0;Ne-1&&U.options[ae]&&(se=U.options[ae].value),H&&a(se)&&(se=F.defaultValue),rt($,se)}}var Zt=We("onInput",Tt),qt=We("onChange");function en(F,U){Ue(F,"input",Zt),U.onChange&&Ue(F,"change",qt)}function Tt(F,U,H){var $=F.value,Z=U.value;if(a($)){if(H){var ae=F.defaultValue;!a(ae)&&ae!==Z&&(U.defaultValue=ae,U.value=ae)}}else Z!==$&&(U.defaultValue=$,U.value=$)}function xt(F,U,H,$,Z,ae){F&64?dt($,H):F&256?wt($,H,Z,U):F&128&&Tt($,H,Z),ae&&(H.$V=U)}function tn(F,U,H){F&64?Bt(U,H):F&256?Jt(U):F&128&&en(U,H)}function At(F){return F.type&&Xe(F.type)?!a(F.checked):!a(F.value)}function nn(){return{current:null}}function on(F){var U={render:F};return U}function st(F){F&&!_(F,null)&&F.current&&(F.current=null)}function at(F,U,H){F&&(o(F)||F.current!==void 0)&&H.push(function(){!_(F,U)&&F.current!==void 0&&(F.current=U)})}function Qe(F,U,H){Ze(F,H),A(F,U,H)}function Ze(F,U){var H=F.flags,$=F.children,Z;if(H&481){Z=F.ref;var ae=F.props;st(Z);var ce=F.childFlags;if(!y(ae))for(var se=Object.keys(ae),Ne=0,Te=se.length;Ne0?B(H.componentWillDisappear,rn(U,F)):F.textContent=""}function pt(F,U,H,$){ct(H,$),U.flags&8192?A(U,F,$):mt(F,H,$)}function Et(F,U,H,$,Z){F.componentWillDisappear.push(function(ae){$&4?U.componentWillDisappear(H,ae):$&8&&U.onComponentWillDisappear(H,Z,ae)})}function an(F){var U=F.event;return function(H){U(F.data,H)}}function cn(F,U,H,$){if(i(H)){if(R(U,H))return;H=an(H)}Ue($,d(F),H)}function ln(F,U,H){if(a(U)){H.removeAttribute("style");return}var $=H.style,Z,ae;if(p(U)){$.cssText=U;return}if(!a(F)&&!p(F)){for(Z in U)ae=U[Z],ae!==F[Z]&&$.setProperty(Z,ae);for(Z in F)a(U[Z])&&$.removeProperty(Z)}else for(Z in U)ae=U[Z],$.setProperty(Z,ae)}function un(F,U,H,$,Z){var ae=F&&F.__html||"",ce=U&&U.__html||"";ae!==ce&&!a(ce)&&!Fe($,ce)&&(y(H)||(H.childFlags&12?ct(H.children,Z):H.childFlags===2&&Ze(H.children,Z),H.children=null,H.childFlags=1),$.innerHTML=ce)}function vt(F,U,H,$,Z,ae,ce,se){switch(F){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":$.autofocus=!!H;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":$[F]=!!H;break;case"defaultChecked":case"value":case"volume":if(ae&&F==="value")break;var Ne=a(H)?"":H;$[F]!==Ne&&($[F]=Ne);break;case"style":ln(U,H,$);break;case"dangerouslySetInnerHTML":un(U,H,ce,$,se);break;default:Le[F]?Re(F,U,H,$):F.charCodeAt(0)===111&&F.charCodeAt(1)===110?cn(F,U,H,$):a(H)?$.removeAttribute(F):Z&&he[F]?$.setAttributeNS(he[F],F,H):$.setAttribute(F,H);break}}function Mt(F,U,H,$,Z,ae){var ce=!1,se=(U&448)>0;se&&(ce=At(H),ce&&tn(U,$,H));for(var Ne in H)vt(Ne,null,H[Ne],$,Z,ce,null,ae);se&&xt(U,F,$,H,!0,ce)}function Pt(F,U,H){var $=me(F.render(U,F.state,H)),Z=H;return o(F.getChildContext)&&(Z=k(H,F.getChildContext())),F.$CX=Z,$}function Ot(F,U,H,$,Z,ae){var ce=new U(H,$),se=ce.$N=!!(U.getDerivedStateFromProps||ce.getSnapshotBeforeUpdate);if(ce.$SVG=Z,ce.$L=ae,F.children=ce,ce.$BS=!1,ce.context=$,ce.props===c&&(ce.props=H),se)ce.state=P(ce,H,ce.state);else if(o(ce.componentWillMount)){ce.$BR=!0,ce.componentWillMount();var Ne=ce.$PS;if(!y(Ne)){var Te=ce.state;if(y(Te))ce.state=Ne;else for(var Ie in Ne)Te[Ie]=Ne[Ie];ce.$PS=null}ce.$BR=!1}return ce.$LI=Pt(ce,H,$),ce}function gt(F,U){var H=F.props||c;return F.flags&32768?F.type.render(H,F.ref,U):F.type(H,U)}function $e(F,U,H,$,Z,ae,ce){var se=F.flags|=16384;se&481?Dt(F,U,H,$,Z,ae,ce):se&4?mn(F,U,H,$,Z,ae,ce):se&8?pn(F,U,H,$,Z,ae,ce):se&16?Rt(F,U,Z):se&8192?sn(F,H,U,$,Z,ae,ce):se&1024&&dn(F,H,U,Z,ae,ce)}function dn(F,U,H,$,Z,ae){$e(F.children,F.ref,U,!1,null,Z,ae);var ce=le();Rt(ce,H,$),F.dom=ce.dom}function sn(F,U,H,$,Z,ae,ce){var se=F.children,Ne=F.childFlags;Ne&12&&se.length===0&&(Ne=F.childFlags=2,se=F.children=le()),Ne===2?$e(se,H,U,$,Z,ae,ce):ot(se,H,U,$,Z,ae,ce)}function Rt(F,U,H){var $=F.dom=document.createTextNode(F.children);y(U)||l(U,$,H)}function Dt(F,U,H,$,Z,ae,ce){var se=F.flags,Ne=F.props,Te=F.className,Ie=F.childFlags,Ee=F.dom=h(F.type,$=$||(se&32)>0),Ae=F.children;if(!a(Te)&&Te!==""&&($?Ee.setAttribute("class",Te):Ee.className=Te),Ie===16)O(Ee,Ae);else if(Ie!==1){var Me=$&&F.type!=="foreignObject";Ie===2?(Ae.flags&16384&&(F.children=Ae=ne(Ae)),$e(Ae,Ee,H,Me,null,ae,ce)):(Ie===8||Ie===4)&&ot(Ae,Ee,H,Me,null,ae,ce)}y(U)||l(U,Ee,Z),y(Ne)||Mt(F,se,Ne,Ee,$,ce),at(F.ref,Ee,ae)}function ot(F,U,H,$,Z,ae,ce){for(var se=0;seMe)&&(Ee=V(se[Me-1],!1).nextSibling)}Nt(Te,Ie,se,Ne,H,$,Z,Ee,F,ae,ce)}function Vn(F,U,H,$,Z){var ae=F.ref,ce=U.ref,se=U.children;if(Nt(F.childFlags,U.childFlags,F.children,se,ae,H,!1,null,F,$,Z),U.dom=F.dom,ae!==ce&&!t(se)){var Ne=se.dom;v(ae,Ne),s(ce,Ne)}}function bn(F,U,H,$,Z,ae,ce){var se=U.dom=F.dom,Ne=F.props,Te=U.props,Ie=!1,Ee=!1,Ae;if($=$||(Z&32)>0,Ne!==Te){var Me=Ne||c;if(Ae=Te||c,Ae!==c){Ie=(Z&448)>0,Ie&&(Ee=At(Ae));for(var _e in Ae){var Oe=Me[_e],Ke=Ae[_e];Oe!==Ke&&vt(_e,Oe,Ke,se,$,Ee,F,ce)}}if(Me!==c)for(var De in Me)a(Ae[De])&&!a(Me[De])&&vt(De,Me[De],null,se,$,Ee,F,ce)}var tt=U.children,Ye=U.className;F.className!==Ye&&(a(Ye)?se.removeAttribute("class"):$?se.setAttribute("class",Ye):se.className=Ye),Z&4096?gn(se,tt):Nt(F.childFlags,U.childFlags,F.children,tt,se,H,$&&U.type!=="foreignObject",null,F,ae,ce),Ie&&xt(Z,U,se,Ae,!1,Ee);var it=U.ref,Je=F.ref;Je!==it&&(st(Je),at(it,se,ae))}function kn(F,U,H,$,Z,ae,ce){Ze(F,ce),ot(U,H,$,Z,V(F,!0),ae,ce),A(F,H,ce)}function Nt(F,U,H,$,Z,ae,ce,se,Ne,Te,Ie){switch(F){case 2:switch(U){case 2:qe(H,$,Z,ae,ce,se,Te,Ie);break;case 1:Qe(H,Z,Ie);break;case 16:Ze(H,Ie),O(Z,$);break;default:kn(H,$,Z,ae,ce,Te,Ie);break}break;case 1:switch(U){case 2:$e($,Z,ae,ce,se,Te,Ie);break;case 1:break;case 16:O(Z,$);break;default:ot($,Z,ae,ce,se,Te,Ie);break}break;case 16:switch(U){case 16:vn(H,$,Z);break;case 2:mt(Z,H,Ie),$e($,Z,ae,ce,se,Te,Ie);break;case 1:mt(Z,H,Ie);break;default:mt(Z,H,Ie),ot($,Z,ae,ce,se,Te,Ie);break}break;default:switch(U){case 16:ct(H,Ie),O(Z,$);break;case 2:pt(Z,Ne,H,Ie),$e($,Z,ae,ce,se,Te,Ie);break;case 1:pt(Z,Ne,H,Ie);break;default:var Ee=H.length|0,Ae=$.length|0;Ee===0?Ae>0&&ot($,Z,ae,ce,se,Te,Ie):Ae===0?pt(Z,Ne,H,Ie):U===8&&F===8?wn(H,$,Z,ae,ce,Ee,Ae,se,Ne,Te,Ie):Ln(H,$,Z,ae,ce,Ee,Ae,se,Te,Ie);break}break}}function yn(F,U,H,$,Z){Z.push(function(){F.componentDidUpdate(U,H,$)})}function Wt(F,U,H,$,Z,ae,ce,se,Ne,Te){var Ie=F.state,Ee=F.props,Ae=!!F.$N,Me=o(F.shouldComponentUpdate);if(Ae&&(U=P(F,H,U!==Ie?k(Ie,U):U)),ce||!Me||Me&&F.shouldComponentUpdate(H,U,Z)){!Ae&&o(F.componentWillUpdate)&&F.componentWillUpdate(H,U,Z),F.props=H,F.state=U,F.context=Z;var _e=null,Oe=Pt(F,H,Z);Ae&&o(F.getSnapshotBeforeUpdate)&&(_e=F.getSnapshotBeforeUpdate(Ee,Ie)),qe(F.$LI,Oe,$,F.$CX,ae,se,Ne,Te),F.$LI=Oe,o(F.componentDidUpdate)&&yn(F,Ee,Ie,_e,Ne)}else F.props=H,F.state=U,F.context=Z}function Sn(F,U,H,$,Z,ae,ce,se){var Ne=U.children=F.children;if(!y(Ne)){Ne.$L=ce;var Te=U.props||c,Ie=U.ref,Ee=F.ref,Ae=Ne.state;if(!Ne.$N){if(o(Ne.componentWillReceiveProps)){if(Ne.$BR=!0,Ne.componentWillReceiveProps(Te,$),Ne.$UN)return;Ne.$BR=!1}y(Ne.$PS)||(Ae=k(Ae,Ne.$PS),Ne.$PS=null)}Wt(Ne,Ae,Te,H,$,Z,!1,ae,ce,se),Ee!==Ie&&(st(Ee),at(Ie,Ne,ce))}}function Bn(F,U,H,$,Z,ae,ce,se){var Ne=!0,Te=U.props||c,Ie=U.ref,Ee=F.props,Ae=!a(Ie),Me=F.children;if(Ae&&o(Ie.onComponentShouldUpdate)&&(Ne=Ie.onComponentShouldUpdate(Ee,Te)),Ne!==!1){Ae&&o(Ie.onComponentWillUpdate)&&Ie.onComponentWillUpdate(Ee,Te);var _e=me(gt(U,$));qe(Me,_e,H,$,Z,ae,ce,se),U.children=_e,Ae&&o(Ie.onComponentDidUpdate)&&Ie.onComponentDidUpdate(Ee,Te)}else U.children=Me}function In(F,U){var H=U.children,$=U.dom=F.dom;H!==F.children&&($.nodeValue=H)}function Ln(F,U,H,$,Z,ae,ce,se,Ne,Te){for(var Ie=ae>ce?ce:ae,Ee=0,Ae,Me;Eece)for(Ee=Ie;EeEe||Me>Ae)break e;_e=F[Me],Oe=U[Me]}for(_e=F[Ee],Oe=U[Ae];_e.key===Oe.key;){if(Oe.flags&16384&&(U[Ae]=Oe=ne(Oe)),qe(_e,Oe,H,$,Z,se,Te,Ie),F[Ee]=Oe,Ee--,Ae--,Me>Ee||Me>Ae)break e;_e=F[Ee],Oe=U[Ae]}}if(Me>Ee){if(Me<=Ae)for(Ke=Ae+1,De=KeAe)for(;Me<=Ee;)Qe(F[Me++],H,Ie);else Tn(F,U,$,ae,ce,Ee,Ae,Me,H,Z,se,Ne,Te,Ie)}function Tn(F,U,H,$,Z,ae,ce,se,Ne,Te,Ie,Ee,Ae,Me){var _e,Oe,Ke=0,De=0,tt=se,Ye=se,it=ae-se+1,Je=ce-se+1,lt=new Int32Array(Je+1),nt=it===$,bt=!1,Ge=0,ut=0;if(Z<4||(it|Je)<32)for(De=tt;De<=ae;++De)if(_e=F[De],utse?bt=!0:Ge=se,Oe.flags&16384&&(U[se]=Oe=ne(Oe)),qe(_e,Oe,Ne,H,Te,Ie,Ae,Me),++ut;break}!nt&&se>ce&&Qe(_e,Ne,Me)}else nt||Qe(_e,Ne,Me);else{var Yt={};for(De=Ye;De<=ce;++De)Yt[U[De].key]=De;for(De=tt;De<=ae;++De)if(_e=F[De],uttt;)Qe(F[tt++],Ne,Me);lt[se-Ye]=De+1,Ge>se?bt=!0:Ge=se,Oe=U[se],Oe.flags&16384&&(U[se]=Oe=ne(Oe)),qe(_e,Oe,Ne,H,Te,Ie,Ae,Me),++ut}else nt||Qe(_e,Ne,Me);else nt||Qe(_e,Ne,Me)}if(nt)pt(Ne,Ee,F,Me),ot(U,Ne,H,Te,Ie,Ae,Me);else if(bt){var Xt=xn(lt);for(se=Xt.length-1,De=Je-1;De>=0;De--)lt[De]===0?(Ge=De+Ye,Oe=U[Ge],Oe.flags&16384&&(U[Ge]=Oe=ne(Oe)),Ke=Ge+1,$e(Oe,Ne,H,Te,Ke0&&S(Me.componentWillMove)}else if(ut!==Je)for(De=Je-1;De>=0;De--)lt[De]===0&&(Ge=De+Ye,Oe=U[Ge],Oe.flags&16384&&(U[Ge]=Oe=ne(Oe)),Ke=Ge+1,$e(Oe,Ne,H,Te,KeUt&&(Ut=Ne,et=new Int32Array(Ne),ft=new Int32Array(Ne));H>1,F[et[se]]0&&(ft[H]=et[ae-1]),et[ae]=H)}ae=Z+1;var Te=new Int32Array(ae);for(ce=et[ae-1];ae-- >0;)Te[ae]=ce,ce=ft[ce],et[ae]=0;return Te}var An=typeof document!="undefined";An&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);function Ht(F,U,H,$){var Z=[],ae=new u,ce=U.$V;D.v=!0,a(ce)?a(F)||(F.flags&16384&&(F=ne(F)),$e(F,U,$,!1,null,Z,ae),U.$V=F,ce=F):a(F)?(Qe(ce,U,ae),U.$V=null):(F.flags&16384&&(F=ne(F)),qe(ce,F,U,$,!1,null,Z,ae),ce=U.$V=F),f(Z),B(ae.componentDidAppear),D.v=!1,o(H)&&H(),o(M.renderComplete)&&M.renderComplete(ce,U)}function zt(F,U,H,$){H===void 0&&(H=null),$===void 0&&($=c),Ht(F,U,H,$)}function En(F){return function(){function U(H,$,Z,ae){F||(F=H),zt($,F,Z,ae)}return U}()}var ht=[],Mn=typeof Promise!="undefined"?Promise.resolve().then.bind(Promise.resolve()):function(F){window.setTimeout(F,0)},Vt=!1;function $t(F,U,H,$){var Z=F.$PS;if(o(U)&&(U=U(Z?k(F.state,Z):F.state,F.props,F.context)),a(Z))F.$PS=U;else for(var ae in U)Z[ae]=U[ae];if(F.$BR)o(H)&&F.$L.push(H.bind(F));else{if(!D.v&&ht.length===0){Gt(F,$),o(H)&&H.call(F);return}if(ht.indexOf(F)===-1&&ht.push(F),$&&(F.$F=!0),Vt||(Vt=!0,Mn(Kt)),o(H)){var ce=F.$QU;ce||(ce=F.$QU=[]),ce.push(H)}}}function Pn(F){for(var U=F.$QU,H=0;H=0;--_){var W=this.tryEntries[_],z=W.completion;if(W.tryLoc==="root")return j("end");if(W.tryLoc<=this.prev){var K=a.call(W,"catchLoc"),G=a.call(W,"finallyLoc");if(K&&G){if(this.prev=0;--j){var _=this.tryEntries[j];if(_.tryLoc<=this.prev&&a.call(_,"finallyLoc")&&this.prev<_.finallyLoc){var W=_;break}}W&&(O==="break"||O==="continue")&&W.tryLoc<=R&&R<=W.finallyLoc&&(W=null);var z=W?W.completion:{};return z.type=O,z.arg=R,W?(this.method="next",this.next=W.finallyLoc,s):this.complete(z)}return M}(),complete:function(){function M(O,R){if(O.type==="throw")throw O.arg;return O.type==="break"||O.type==="continue"?this.next=O.arg:O.type==="return"?(this.rval=this.arg=O.arg,this.method="return",this.next="end"):O.type==="normal"&&R&&(this.next=R),s}return M}(),finish:function(){function M(O){for(var R=this.tryEntries.length-1;R>=0;--R){var j=this.tryEntries[R];if(j.finallyLoc===O)return this.complete(j.completion,j.afterLoc),T(j),s}}return M}(),catch:function(){function M(O){for(var R=this.tryEntries.length-1;R>=0;--R){var j=this.tryEntries[R];if(j.tryLoc===O){var _=j.completion;if(_.type==="throw"){var W=_.arg;T(j)}return W}}throw new Error("illegal catch attempt")}return M}(),delegateYield:function(){function M(O,R,j){return this.delegate={iterator:P(O),resultName:R,nextLoc:j},this.method==="next"&&(this.arg=o),s}return M}()},n}(x.exports);try{regeneratorRuntime=r}catch(n){typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},30236:function(){"use strict";self.fetch||(self.fetch=function(x,r){return r=r||{},new Promise(function(n,e){var a=new XMLHttpRequest,t=[],o={},p=function(){function y(){return{ok:(a.status/100|0)==2,statusText:a.statusText,status:a.status,url:a.responseURL,text:function(){function I(){return Promise.resolve(a.responseText)}return I}(),json:function(){function I(){return Promise.resolve(a.responseText).then(JSON.parse)}return I}(),blob:function(){function I(){return Promise.resolve(new Blob([a.response]))}return I}(),clone:y,headers:{keys:function(){function I(){return t}return I}(),entries:function(){function I(){return t.map(function(k){return[k,a.getResponseHeader(k)]})}return I}(),get:function(){function I(k){return a.getResponseHeader(k)}return I}(),has:function(){function I(k){return a.getResponseHeader(k)!=null}return I}()}}}return y}();for(var b in a.open(r.method||"get",x,!0),a.onload=function(){a.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(y,I){o[I]||t.push(o[I]=I)}),n(p())},a.onerror=e,a.withCredentials=r.credentials=="include",r.headers)a.setRequestHeader(b,r.headers[b]);a.send(r.body||null)})})},88510:function(x,r){"use strict";r.__esModule=!0,r.zipWith=r.zip=r.uniqBy=r.uniq=r.toKeyedArray=r.toArray=r.sortBy=r.sort=r.reduce=r.range=r.map=r.filterMap=r.filter=void 0;function n(l,h){var N=typeof Symbol!="undefined"&&l[Symbol.iterator]||l["@@iterator"];if(N)return(N=N.call(l)).next.bind(N);if(Array.isArray(l)||(N=e(l))||h&&l&&typeof l.length=="number"){N&&(l=N);var v=0;return function(){return v>=l.length?{done:!0}:{done:!1,value:l[v++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(l,h){if(l){if(typeof l=="string")return a(l,h);var N={}.toString.call(l).slice(8,-1);return N==="Object"&&l.constructor&&(N=l.constructor.name),N==="Map"||N==="Set"?Array.from(l):N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N)?a(l,h):void 0}}function a(l,h){(h==null||h>l.length)&&(h=l.length);for(var N=0,v=Array(h);N0&&(0,a.round)(C.width)/y.offsetWidth||1,c=y.offsetHeight>0&&(0,a.round)(C.height)/y.offsetHeight||1);var m=(0,e.isElement)(y)?(0,t.default)(y):window,l=m.visualViewport,d=!(0,o.default)()&&k,s=(C.left+(d&&l?l.offsetLeft:0))/i,u=(C.top+(d&&l?l.offsetTop:0))/c,h=C.width/i,g=C.height/c;return{width:h,height:g,top:u,right:s+h,bottom:u+g,left:s,x:s,y:u}}},49035:function(T,r,n){"use strict";r.__esModule=!0,r.default=g;var e=n(46206),a=d(n(87991)),t=d(n(79752)),o=d(n(98309)),p=d(n(44896)),b=d(n(40600)),y=d(n(16599)),I=n(75573),k=d(n(37786)),C=d(n(57819)),i=d(n(4206)),c=d(n(12972)),m=d(n(81666)),l=n(63618);function d(v){return v&&v.__esModule?v:{default:v}}function s(v,f){var N=(0,k.default)(v,!1,f==="fixed");return N.top=N.top+v.clientTop,N.left=N.left+v.clientLeft,N.bottom=N.top+v.clientHeight,N.right=N.left+v.clientWidth,N.width=v.clientWidth,N.height=v.clientHeight,N.x=N.left,N.y=N.top,N}function u(v,f,N){return f===e.viewport?(0,m.default)((0,a.default)(v,N)):(0,I.isElement)(f)?s(f,N):(0,m.default)((0,t.default)((0,b.default)(v)))}function h(v){var f=(0,o.default)((0,C.default)(v)),N=["absolute","fixed"].indexOf((0,y.default)(v).position)>=0,V=N&&(0,I.isHTMLElement)(v)?(0,p.default)(v):v;return(0,I.isElement)(V)?f.filter(function(B){return(0,I.isElement)(B)&&(0,i.default)(B,V)&&(0,c.default)(B)!=="body"}):[]}function g(v,f,N,V){var B=f==="clippingParents"?h(v):[].concat(f),S=[].concat(B,[N]),L=S[0],w=S.reduce(function(A,x){var E=u(v,x,V);return A.top=(0,l.max)(E.top,A.top),A.right=(0,l.min)(E.right,A.right),A.bottom=(0,l.min)(E.bottom,A.bottom),A.left=(0,l.max)(E.left,A.left),A},u(v,L,V));return w.width=w.right-w.left,w.height=w.bottom-w.top,w.x=w.left,w.y=w.top,w}},74758:function(T,r,n){"use strict";r.__esModule=!0,r.default=i;var e=k(n(37786)),a=k(n(13390)),t=k(n(12972)),o=n(75573),p=k(n(79697)),b=k(n(40600)),y=k(n(10798)),I=n(63618);function k(c){return c&&c.__esModule?c:{default:c}}function C(c){var m=c.getBoundingClientRect(),l=(0,I.round)(m.width)/c.offsetWidth||1,d=(0,I.round)(m.height)/c.offsetHeight||1;return l!==1||d!==1}function i(c,m,l){l===void 0&&(l=!1);var d=(0,o.isHTMLElement)(m),s=(0,o.isHTMLElement)(m)&&C(m),u=(0,b.default)(m),h=(0,e.default)(c,s,l),g={scrollLeft:0,scrollTop:0},v={x:0,y:0};return(d||!d&&!l)&&(((0,t.default)(m)!=="body"||(0,y.default)(u))&&(g=(0,a.default)(m)),(0,o.isHTMLElement)(m)?(v=(0,e.default)(m,!0),v.x+=m.clientLeft,v.y+=m.clientTop):u&&(v.x=(0,p.default)(u))),{x:h.left+g.scrollLeft-v.x,y:h.top+g.scrollTop-v.y,width:h.width,height:h.height}}},16599:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(95115));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return(0,e.default)(o).getComputedStyle(o)}},40600:function(T,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(75573);function a(t){return(((0,e.isElement)(t)?t.ownerDocument:t.document)||window.document).documentElement}},79752:function(T,r,n){"use strict";r.__esModule=!0,r.default=y;var e=b(n(40600)),a=b(n(16599)),t=b(n(79697)),o=b(n(43750)),p=n(63618);function b(I){return I&&I.__esModule?I:{default:I}}function y(I){var k,C=(0,e.default)(I),i=(0,o.default)(I),c=(k=I.ownerDocument)==null?void 0:k.body,m=(0,p.max)(C.scrollWidth,C.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),l=(0,p.max)(C.scrollHeight,C.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),d=-i.scrollLeft+(0,t.default)(I),s=-i.scrollTop;return(0,a.default)(c||C).direction==="rtl"&&(d+=(0,p.max)(C.clientWidth,c?c.clientWidth:0)-m),{width:m,height:l,x:d,y:s}}},3073:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}},28811:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(37786));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var p=(0,e.default)(o),b=o.offsetWidth,y=o.offsetHeight;return Math.abs(p.width-b)<=1&&(b=p.width),Math.abs(p.height-y)<=1&&(y=p.height),{x:o.offsetLeft,y:o.offsetTop,width:b,height:y}}},12972:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e?(e.nodeName||"").toLowerCase():null}},13390:function(T,r,n){"use strict";r.__esModule=!0,r.default=b;var e=p(n(43750)),a=p(n(95115)),t=n(75573),o=p(n(3073));function p(y){return y&&y.__esModule?y:{default:y}}function b(y){return y===(0,a.default)(y)||!(0,t.isHTMLElement)(y)?(0,e.default)(y):(0,o.default)(y)}},44896:function(T,r,n){"use strict";r.__esModule=!0,r.default=i;var e=I(n(95115)),a=I(n(12972)),t=I(n(16599)),o=n(75573),p=I(n(87031)),b=I(n(57819)),y=I(n(35366));function I(c){return c&&c.__esModule?c:{default:c}}function k(c){return!(0,o.isHTMLElement)(c)||(0,t.default)(c).position==="fixed"?null:c.offsetParent}function C(c){var m=/firefox/i.test((0,y.default)()),l=/Trident/i.test((0,y.default)());if(l&&(0,o.isHTMLElement)(c)){var d=(0,t.default)(c);if(d.position==="fixed")return null}var s=(0,b.default)(c);for((0,o.isShadowRoot)(s)&&(s=s.host);(0,o.isHTMLElement)(s)&&["html","body"].indexOf((0,a.default)(s))<0;){var u=(0,t.default)(s);if(u.transform!=="none"||u.perspective!=="none"||u.contain==="paint"||["transform","perspective"].indexOf(u.willChange)!==-1||m&&u.willChange==="filter"||m&&u.filter&&u.filter!=="none")return s;s=s.parentNode}return null}function i(c){for(var m=(0,e.default)(c),l=k(c);l&&(0,p.default)(l)&&(0,t.default)(l).position==="static";)l=k(l);return l&&((0,a.default)(l)==="html"||(0,a.default)(l)==="body"&&(0,t.default)(l).position==="static")?m:l||C(c)||m}},57819:function(T,r,n){"use strict";r.__esModule=!0,r.default=p;var e=o(n(12972)),a=o(n(40600)),t=n(75573);function o(b){return b&&b.__esModule?b:{default:b}}function p(b){return(0,e.default)(b)==="html"?b:b.assignedSlot||b.parentNode||((0,t.isShadowRoot)(b)?b.host:null)||(0,a.default)(b)}},24426:function(T,r,n){"use strict";r.__esModule=!0,r.default=b;var e=p(n(57819)),a=p(n(10798)),t=p(n(12972)),o=n(75573);function p(y){return y&&y.__esModule?y:{default:y}}function b(y){return["html","body","#document"].indexOf((0,t.default)(y))>=0?y.ownerDocument.body:(0,o.isHTMLElement)(y)&&(0,a.default)(y)?y:b((0,e.default)(y))}},87991:function(T,r,n){"use strict";r.__esModule=!0,r.default=b;var e=p(n(95115)),a=p(n(40600)),t=p(n(79697)),o=p(n(89331));function p(y){return y&&y.__esModule?y:{default:y}}function b(y,I){var k=(0,e.default)(y),C=(0,a.default)(y),i=k.visualViewport,c=C.clientWidth,m=C.clientHeight,l=0,d=0;if(i){c=i.width,m=i.height;var s=(0,o.default)();(s||!s&&I==="fixed")&&(l=i.offsetLeft,d=i.offsetTop)}return{width:c,height:m,x:l+(0,t.default)(y),y:d}}},95115:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var a=e.ownerDocument;return a&&a.defaultView||window}return e}},43750:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(95115));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var p=(0,e.default)(o),b=p.pageXOffset,y=p.pageYOffset;return{scrollLeft:b,scrollTop:y}}},79697:function(T,r,n){"use strict";r.__esModule=!0,r.default=p;var e=o(n(37786)),a=o(n(40600)),t=o(n(43750));function o(b){return b&&b.__esModule?b:{default:b}}function p(b){return(0,e.default)((0,a.default)(b)).left+(0,t.default)(b).scrollLeft}},75573:function(T,r,n){"use strict";r.__esModule=!0,r.isElement=t,r.isHTMLElement=o,r.isShadowRoot=p;var e=a(n(95115));function a(b){return b&&b.__esModule?b:{default:b}}function t(b){var y=(0,e.default)(b).Element;return b instanceof y||b instanceof Element}function o(b){var y=(0,e.default)(b).HTMLElement;return b instanceof y||b instanceof HTMLElement}function p(b){if(typeof ShadowRoot=="undefined")return!1;var y=(0,e.default)(b).ShadowRoot;return b instanceof y||b instanceof ShadowRoot}},89331:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(35366));function a(o){return o&&o.__esModule?o:{default:o}}function t(){return!/^((?!chrome|android).)*safari/i.test((0,e.default)())}},10798:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(16599));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var p=(0,e.default)(o),b=p.overflow,y=p.overflowX,I=p.overflowY;return/auto|scroll|overlay|hidden/.test(b+I+y)}},87031:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(12972));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return["table","td","th"].indexOf((0,e.default)(o))>=0}},98309:function(T,r,n){"use strict";r.__esModule=!0,r.default=b;var e=p(n(24426)),a=p(n(57819)),t=p(n(95115)),o=p(n(10798));function p(y){return y&&y.__esModule?y:{default:y}}function b(y,I){var k;I===void 0&&(I=[]);var C=(0,e.default)(y),i=C===((k=y.ownerDocument)==null?void 0:k.body),c=(0,t.default)(C),m=i?[c].concat(c.visualViewport||[],(0,o.default)(C)?C:[]):C,l=I.concat(m);return i?l:l.concat(b((0,a.default)(m)))}},46206:function(T,r){"use strict";r.__esModule=!0,r.write=r.viewport=r.variationPlacements=r.top=r.start=r.right=r.reference=r.read=r.popper=r.placements=r.modifierPhases=r.main=r.left=r.end=r.clippingParents=r.bottom=r.beforeWrite=r.beforeRead=r.beforeMain=r.basePlacements=r.auto=r.afterWrite=r.afterRead=r.afterMain=void 0;var n=r.top="top",e=r.bottom="bottom",a=r.right="right",t=r.left="left",o=r.auto="auto",p=r.basePlacements=[n,e,a,t],b=r.start="start",y=r.end="end",I=r.clippingParents="clippingParents",k=r.viewport="viewport",C=r.popper="popper",i=r.reference="reference",c=r.variationPlacements=p.reduce(function(B,S){return B.concat([S+"-"+b,S+"-"+y])},[]),m=r.placements=[].concat(p,[o]).reduce(function(B,S){return B.concat([S,S+"-"+b,S+"-"+y])},[]),l=r.beforeRead="beforeRead",d=r.read="read",s=r.afterRead="afterRead",u=r.beforeMain="beforeMain",h=r.main="main",g=r.afterMain="afterMain",v=r.beforeWrite="beforeWrite",f=r.write="write",N=r.afterWrite="afterWrite",V=r.modifierPhases=[l,d,s,u,h,g,v,f,N]},95996:function(T,r,n){"use strict";r.__esModule=!0;var e={popperGenerator:!0,detectOverflow:!0,createPopperBase:!0,createPopper:!0,createPopperLite:!0};r.popperGenerator=r.detectOverflow=r.createPopperLite=r.createPopperBase=r.createPopper=void 0;var a=n(46206);Object.keys(a).forEach(function(y){y==="default"||y==="__esModule"||Object.prototype.hasOwnProperty.call(e,y)||y in r&&r[y]===a[y]||(r[y]=a[y])});var t=n(39805);Object.keys(t).forEach(function(y){y==="default"||y==="__esModule"||Object.prototype.hasOwnProperty.call(e,y)||y in r&&r[y]===t[y]||(r[y]=t[y])});var o=n(96376);r.popperGenerator=o.popperGenerator,r.detectOverflow=o.detectOverflow,r.createPopperBase=o.createPopper;var p=n(83312);r.createPopper=p.createPopper;var b=n(2473);r.createPopperLite=b.createPopper},19975:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=t(n(12972)),a=n(75573);function t(y){return y&&y.__esModule?y:{default:y}}function o(y){var I=y.state;Object.keys(I.elements).forEach(function(k){var C=I.styles[k]||{},i=I.attributes[k]||{},c=I.elements[k];!(0,a.isHTMLElement)(c)||!(0,e.default)(c)||(Object.assign(c.style,C),Object.keys(i).forEach(function(m){var l=i[m];l===!1?c.removeAttribute(m):c.setAttribute(m,l===!0?"":l)}))})}function p(y){var I=y.state,k={popper:{position:I.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(I.elements.popper.style,k.popper),I.styles=k,I.elements.arrow&&Object.assign(I.elements.arrow.style,k.arrow),function(){Object.keys(I.elements).forEach(function(C){var i=I.elements[C],c=I.attributes[C]||{},m=Object.keys(I.styles.hasOwnProperty(C)?I.styles[C]:k[C]),l=m.reduce(function(d,s){return d[s]="",d},{});!(0,a.isHTMLElement)(i)||!(0,e.default)(i)||(Object.assign(i.style,l),Object.keys(c).forEach(function(d){i.removeAttribute(d)}))})}}var b=r.default={name:"applyStyles",enabled:!0,phase:"write",fn:o,effect:p,requires:["computeStyles"]}},52744:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=C(n(83104)),a=C(n(28811)),t=C(n(4206)),o=C(n(44896)),p=C(n(41199)),b=n(28595),y=C(n(43286)),I=C(n(81447)),k=n(46206);function C(d){return d&&d.__esModule?d:{default:d}}var i=function(){function d(s,u){return s=typeof s=="function"?s(Object.assign({},u.rects,{placement:u.placement})):s,(0,y.default)(typeof s!="number"?s:(0,I.default)(s,k.basePlacements))}return d}();function c(d){var s,u=d.state,h=d.name,g=d.options,v=u.elements.arrow,f=u.modifiersData.popperOffsets,N=(0,e.default)(u.placement),V=(0,p.default)(N),B=[k.left,k.right].indexOf(N)>=0,S=B?"height":"width";if(!(!v||!f)){var L=i(g.padding,u),w=(0,a.default)(v),A=V==="y"?k.top:k.left,x=V==="y"?k.bottom:k.right,E=u.rects.reference[S]+u.rects.reference[V]-f[V]-u.rects.popper[S],P=f[V]-u.rects.reference[V],D=(0,o.default)(v),M=D?V==="y"?D.clientHeight||0:D.clientWidth||0:0,O=E/2-P/2,R=L[A],j=M-w[S]-L[x],_=M/2-w[S]/2+O,W=(0,b.within)(R,_,j),z=V;u.modifiersData[h]=(s={},s[z]=W,s.centerOffset=W-_,s)}}function m(d){var s=d.state,u=d.options,h=u.element,g=h===void 0?"[data-popper-arrow]":h;g!=null&&(typeof g=="string"&&(g=s.elements.popper.querySelector(g),!g)||(0,t.default)(s.elements.popper,g)&&(s.elements.arrow=g))}var l=r.default={name:"arrow",enabled:!0,phase:"main",fn:c,effect:m,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},59894:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.mapToStyles=c;var e=n(46206),a=k(n(44896)),t=k(n(95115)),o=k(n(40600)),p=k(n(16599)),b=k(n(83104)),y=k(n(45)),I=n(63618);function k(d){return d&&d.__esModule?d:{default:d}}var C={top:"auto",right:"auto",bottom:"auto",left:"auto"};function i(d,s){var u=d.x,h=d.y,g=s.devicePixelRatio||1;return{x:(0,I.round)(u*g)/g||0,y:(0,I.round)(h*g)/g||0}}function c(d){var s,u=d.popper,h=d.popperRect,g=d.placement,v=d.variation,f=d.offsets,N=d.position,V=d.gpuAcceleration,B=d.adaptive,S=d.roundOffsets,L=d.isFixed,w=f.x,A=w===void 0?0:w,x=f.y,E=x===void 0?0:x,P=typeof S=="function"?S({x:A,y:E}):{x:A,y:E};A=P.x,E=P.y;var D=f.hasOwnProperty("x"),M=f.hasOwnProperty("y"),O=e.left,R=e.top,j=window;if(B){var _=(0,a.default)(u),W="clientHeight",z="clientWidth";if(_===(0,t.default)(u)&&(_=(0,o.default)(u),(0,p.default)(_).position!=="static"&&N==="absolute"&&(W="scrollHeight",z="scrollWidth")),_=_,g===e.top||(g===e.left||g===e.right)&&v===e.end){R=e.bottom;var K=L&&_===j&&j.visualViewport?j.visualViewport.height:_[W];E-=K-h.height,E*=V?1:-1}if(g===e.left||(g===e.top||g===e.bottom)&&v===e.end){O=e.right;var G=L&&_===j&&j.visualViewport?j.visualViewport.width:_[z];A-=G-h.width,A*=V?1:-1}}var Q=Object.assign({position:N},B&&C),J=S===!0?i({x:A,y:E},(0,t.default)(u)):{x:A,y:E};if(A=J.x,E=J.y,V){var ue;return Object.assign({},Q,(ue={},ue[R]=M?"0":"",ue[O]=D?"0":"",ue.transform=(j.devicePixelRatio||1)<=1?"translate("+A+"px, "+E+"px)":"translate3d("+A+"px, "+E+"px, 0)",ue))}return Object.assign({},Q,(s={},s[R]=M?E+"px":"",s[O]=D?A+"px":"",s.transform="",s))}function m(d){var s=d.state,u=d.options,h=u.gpuAcceleration,g=h===void 0?!0:h,v=u.adaptive,f=v===void 0?!0:v,N=u.roundOffsets,V=N===void 0?!0:N,B={placement:(0,b.default)(s.placement),variation:(0,y.default)(s.placement),popper:s.elements.popper,popperRect:s.rects.popper,gpuAcceleration:g,isFixed:s.options.strategy==="fixed"};s.modifiersData.popperOffsets!=null&&(s.styles.popper=Object.assign({},s.styles.popper,c(Object.assign({},B,{offsets:s.modifiersData.popperOffsets,position:s.options.strategy,adaptive:f,roundOffsets:V})))),s.modifiersData.arrow!=null&&(s.styles.arrow=Object.assign({},s.styles.arrow,c(Object.assign({},B,{offsets:s.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:V})))),s.attributes.popper=Object.assign({},s.attributes.popper,{"data-popper-placement":s.placement})}var l=r.default={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:m,data:{}}},36692:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(95115));function a(b){return b&&b.__esModule?b:{default:b}}var t={passive:!0};function o(b){var y=b.state,I=b.instance,k=b.options,C=k.scroll,i=C===void 0?!0:C,c=k.resize,m=c===void 0?!0:c,l=(0,e.default)(y.elements.popper),d=[].concat(y.scrollParents.reference,y.scrollParents.popper);return i&&d.forEach(function(s){s.addEventListener("scroll",I.update,t)}),m&&l.addEventListener("resize",I.update,t),function(){i&&d.forEach(function(s){s.removeEventListener("scroll",I.update,t)}),m&&l.removeEventListener("resize",I.update,t)}}var p=r.default={name:"eventListeners",enabled:!0,phase:"write",fn:function(){function b(){}return b}(),effect:o,data:{}}},23798:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=I(n(71376)),a=I(n(83104)),t=I(n(86459)),o=I(n(17633)),p=I(n(9041)),b=n(46206),y=I(n(45));function I(c){return c&&c.__esModule?c:{default:c}}function k(c){if((0,a.default)(c)===b.auto)return[];var m=(0,e.default)(c);return[(0,t.default)(c),m,(0,t.default)(m)]}function C(c){var m=c.state,l=c.options,d=c.name;if(!m.modifiersData[d]._skip){for(var s=l.mainAxis,u=s===void 0?!0:s,h=l.altAxis,g=h===void 0?!0:h,v=l.fallbackPlacements,f=l.padding,N=l.boundary,V=l.rootBoundary,B=l.altBoundary,S=l.flipVariations,L=S===void 0?!0:S,w=l.allowedAutoPlacements,A=m.options.placement,x=(0,a.default)(A),E=x===A,P=v||(E||!L?[(0,e.default)(A)]:k(A)),D=[A].concat(P).reduce(function(re,oe){return re.concat((0,a.default)(oe)===b.auto?(0,p.default)(m,{placement:oe,boundary:N,rootBoundary:V,padding:f,flipVariations:L,allowedAutoPlacements:w}):oe)},[]),M=m.rects.reference,O=m.rects.popper,R=new Map,j=!0,_=D[0],W=0;W=0,J=Q?"width":"height",ue=(0,o.default)(m,{placement:z,boundary:N,rootBoundary:V,altBoundary:B,padding:f}),ie=Q?G?b.right:b.left:G?b.bottom:b.top;M[J]>O[J]&&(ie=(0,e.default)(ie));var pe=(0,e.default)(ie),te=[];if(u&&te.push(ue[K]<=0),g&&te.push(ue[ie]<=0,ue[pe]<=0),te.every(function(re){return re})){_=z,j=!1;break}R.set(z,te)}if(j)for(var q=L?3:1,ne=function(){function re(oe){var fe=D.find(function(me){var Y=R.get(me);if(Y)return Y.slice(0,oe).every(function(ve){return ve})});if(fe)return _=fe,"break"}return re}(),le=q;le>0;le--){var ee=ne(le);if(ee==="break")break}m.placement!==_&&(m.modifiersData[d]._skip=!0,m.placement=_,m.reset=!0)}}var i=r.default={name:"flip",enabled:!0,phase:"main",fn:C,requiresIfExists:["offset"],data:{_skip:!1}}},83761:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(46206),a=t(n(17633));function t(I){return I&&I.__esModule?I:{default:I}}function o(I,k,C){return C===void 0&&(C={x:0,y:0}),{top:I.top-k.height-C.y,right:I.right-k.width+C.x,bottom:I.bottom-k.height+C.y,left:I.left-k.width-C.x}}function p(I){return[e.top,e.right,e.bottom,e.left].some(function(k){return I[k]>=0})}function b(I){var k=I.state,C=I.name,i=k.rects.reference,c=k.rects.popper,m=k.modifiersData.preventOverflow,l=(0,a.default)(k,{elementContext:"reference"}),d=(0,a.default)(k,{altBoundary:!0}),s=o(l,i),u=o(d,c,m),h=p(s),g=p(u);k.modifiersData[C]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:h,hasPopperEscaped:g},k.attributes.popper=Object.assign({},k.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":g})}var y=r.default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:b}},39805:function(T,r,n){"use strict";r.__esModule=!0,r.preventOverflow=r.popperOffsets=r.offset=r.hide=r.flip=r.eventListeners=r.computeStyles=r.arrow=r.applyStyles=void 0;var e=C(n(19975));r.applyStyles=e.default;var a=C(n(52744));r.arrow=a.default;var t=C(n(59894));r.computeStyles=t.default;var o=C(n(36692));r.eventListeners=o.default;var p=C(n(23798));r.flip=p.default;var b=C(n(83761));r.hide=b.default;var y=C(n(61410));r.offset=y.default;var I=C(n(40107));r.popperOffsets=I.default;var k=C(n(75137));r.preventOverflow=k.default;function C(i){return i&&i.__esModule?i:{default:i}}},61410:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.distanceAndSkiddingToXY=o;var e=t(n(83104)),a=n(46206);function t(y){return y&&y.__esModule?y:{default:y}}function o(y,I,k){var C=(0,e.default)(y),i=[a.left,a.top].indexOf(C)>=0?-1:1,c=typeof k=="function"?k(Object.assign({},I,{placement:y})):k,m=c[0],l=c[1];return m=m||0,l=(l||0)*i,[a.left,a.right].indexOf(C)>=0?{x:l,y:m}:{x:m,y:l}}function p(y){var I=y.state,k=y.options,C=y.name,i=k.offset,c=i===void 0?[0,0]:i,m=a.placements.reduce(function(u,h){return u[h]=o(h,I.rects,c),u},{}),l=m[I.placement],d=l.x,s=l.y;I.modifiersData.popperOffsets!=null&&(I.modifiersData.popperOffsets.x+=d,I.modifiersData.popperOffsets.y+=s),I.modifiersData[C]=m}var b=r.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:p}},40107:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(89951));function a(p){return p&&p.__esModule?p:{default:p}}function t(p){var b=p.state,y=p.name;b.modifiersData[y]=(0,e.default)({reference:b.rects.reference,element:b.rects.popper,strategy:"absolute",placement:b.placement})}var o=r.default={name:"popperOffsets",enabled:!0,phase:"read",fn:t,data:{}}},75137:function(T,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(46206),a=c(n(83104)),t=c(n(41199)),o=c(n(28066)),p=n(28595),b=c(n(28811)),y=c(n(44896)),I=c(n(17633)),k=c(n(45)),C=c(n(34780)),i=n(63618);function c(d){return d&&d.__esModule?d:{default:d}}function m(d){var s=d.state,u=d.options,h=d.name,g=u.mainAxis,v=g===void 0?!0:g,f=u.altAxis,N=f===void 0?!1:f,V=u.boundary,B=u.rootBoundary,S=u.altBoundary,L=u.padding,w=u.tether,A=w===void 0?!0:w,x=u.tetherOffset,E=x===void 0?0:x,P=(0,I.default)(s,{boundary:V,rootBoundary:B,padding:L,altBoundary:S}),D=(0,a.default)(s.placement),M=(0,k.default)(s.placement),O=!M,R=(0,t.default)(D),j=(0,o.default)(R),_=s.modifiersData.popperOffsets,W=s.rects.reference,z=s.rects.popper,K=typeof E=="function"?E(Object.assign({},s.rects,{placement:s.placement})):E,G=typeof K=="number"?{mainAxis:K,altAxis:K}:Object.assign({mainAxis:0,altAxis:0},K),Q=s.modifiersData.offset?s.modifiersData.offset[s.placement]:null,J={x:0,y:0};if(_){if(v){var ue,ie=R==="y"?e.top:e.left,pe=R==="y"?e.bottom:e.right,te=R==="y"?"height":"width",q=_[R],ne=q+P[ie],le=q-P[pe],ee=A?-z[te]/2:0,re=M===e.start?W[te]:z[te],oe=M===e.start?-z[te]:-W[te],fe=s.elements.arrow,me=A&&fe?(0,b.default)(fe):{width:0,height:0},Y=s.modifiersData["arrow#persistent"]?s.modifiersData["arrow#persistent"].padding:(0,C.default)(),ve=Y[ie],he=Y[pe],Ve=(0,p.within)(0,W[te],me[te]),Be=O?W[te]/2-ee-Ve-ve-G.mainAxis:re-Ve-ve-G.mainAxis,be=O?-W[te]/2+ee+Ve+he+G.mainAxis:oe+Ve+he+G.mainAxis,Le=s.elements.arrow&&(0,y.default)(s.elements.arrow),we=Le?R==="y"?Le.clientTop||0:Le.clientLeft||0:0,xe=(ue=Q==null?void 0:Q[R])!=null?ue:0,Re=q+Be-xe-we,He=q+be-xe,ye=(0,p.within)(A?(0,i.min)(ne,Re):ne,q,A?(0,i.max)(le,He):le);_[R]=ye,J[R]=ye-q}if(N){var de,Ce=R==="x"?e.top:e.left,ke=R==="x"?e.bottom:e.right,ge=_[j],Se=j==="y"?"height":"width",Pe=ge+P[Ce],je=ge-P[ke],Fe=[e.top,e.left].indexOf(D)!==-1,ze=(de=Q==null?void 0:Q[j])!=null?de:0,We=Fe?Pe:ge-W[Se]-z[Se]-ze+G.altAxis,Ue=Fe?ge+W[Se]+z[Se]-ze-G.altAxis:je,Xe=A&&Fe?(0,p.withinMaxClamp)(We,ge,Ue):(0,p.within)(A?We:Pe,ge,A?Ue:je);_[j]=Xe,J[j]=Xe-ge}s.modifiersData[h]=J}}var l=r.default={name:"preventOverflow",enabled:!0,phase:"main",fn:m,requiresIfExists:["offset"]}},2473:function(T,r,n){"use strict";r.__esModule=!0,r.defaultModifiers=r.createPopper=void 0;var e=n(96376);r.popperGenerator=e.popperGenerator,r.detectOverflow=e.detectOverflow;var a=b(n(36692)),t=b(n(40107)),o=b(n(59894)),p=b(n(19975));function b(k){return k&&k.__esModule?k:{default:k}}var y=r.defaultModifiers=[a.default,t.default,o.default,p.default],I=r.createPopper=(0,e.popperGenerator)({defaultModifiers:y})},83312:function(T,r,n){"use strict";r.__esModule=!0;var e={createPopper:!0,createPopperLite:!0,defaultModifiers:!0,popperGenerator:!0,detectOverflow:!0};r.defaultModifiers=r.createPopperLite=r.createPopper=void 0;var a=n(96376);r.popperGenerator=a.popperGenerator,r.detectOverflow=a.detectOverflow;var t=l(n(36692)),o=l(n(40107)),p=l(n(59894)),b=l(n(19975)),y=l(n(61410)),I=l(n(23798)),k=l(n(75137)),C=l(n(52744)),i=l(n(83761)),c=n(2473);r.createPopperLite=c.createPopper;var m=n(39805);Object.keys(m).forEach(function(u){u==="default"||u==="__esModule"||Object.prototype.hasOwnProperty.call(e,u)||u in r&&r[u]===m[u]||(r[u]=m[u])});function l(u){return u&&u.__esModule?u:{default:u}}var d=r.defaultModifiers=[t.default,o.default,p.default,b.default,y.default,I.default,k.default,C.default,i.default],s=r.createPopperLite=r.createPopper=(0,a.popperGenerator)({defaultModifiers:d})},9041:function(T,r,n){"use strict";r.__esModule=!0,r.default=b;var e=p(n(45)),a=n(46206),t=p(n(17633)),o=p(n(83104));function p(y){return y&&y.__esModule?y:{default:y}}function b(y,I){I===void 0&&(I={});var k=I,C=k.placement,i=k.boundary,c=k.rootBoundary,m=k.padding,l=k.flipVariations,d=k.allowedAutoPlacements,s=d===void 0?a.placements:d,u=(0,e.default)(C),h=u?l?a.variationPlacements:a.variationPlacements.filter(function(f){return(0,e.default)(f)===u}):a.basePlacements,g=h.filter(function(f){return s.indexOf(f)>=0});g.length===0&&(g=h);var v=g.reduce(function(f,N){return f[N]=(0,t.default)(y,{placement:N,boundary:i,rootBoundary:c,padding:m})[(0,o.default)(N)],f},{});return Object.keys(v).sort(function(f,N){return v[f]-v[N]})}},89951:function(T,r,n){"use strict";r.__esModule=!0,r.default=b;var e=p(n(83104)),a=p(n(45)),t=p(n(41199)),o=n(46206);function p(y){return y&&y.__esModule?y:{default:y}}function b(y){var I=y.reference,k=y.element,C=y.placement,i=C?(0,e.default)(C):null,c=C?(0,a.default)(C):null,m=I.x+I.width/2-k.width/2,l=I.y+I.height/2-k.height/2,d;switch(i){case o.top:d={x:m,y:I.y-k.height};break;case o.bottom:d={x:m,y:I.y+I.height};break;case o.right:d={x:I.x+I.width,y:l};break;case o.left:d={x:I.x-k.width,y:l};break;default:d={x:I.x,y:I.y}}var s=i?(0,t.default)(i):null;if(s!=null){var u=s==="y"?"height":"width";switch(c){case o.start:d[s]=d[s]-(I[u]/2-k[u]/2);break;case o.end:d[s]=d[s]+(I[u]/2-k[u]/2);break;default:}}return d}},10579:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a;return function(){return a||(a=new Promise(function(t){Promise.resolve().then(function(){a=void 0,t(e())})})),a}}},17633:function(T,r,n){"use strict";r.__esModule=!0,r.default=i;var e=C(n(49035)),a=C(n(40600)),t=C(n(37786)),o=C(n(89951)),p=C(n(81666)),b=n(46206),y=n(75573),I=C(n(43286)),k=C(n(81447));function C(c){return c&&c.__esModule?c:{default:c}}function i(c,m){m===void 0&&(m={});var l=m,d=l.placement,s=d===void 0?c.placement:d,u=l.strategy,h=u===void 0?c.strategy:u,g=l.boundary,v=g===void 0?b.clippingParents:g,f=l.rootBoundary,N=f===void 0?b.viewport:f,V=l.elementContext,B=V===void 0?b.popper:V,S=l.altBoundary,L=S===void 0?!1:S,w=l.padding,A=w===void 0?0:w,x=(0,I.default)(typeof A!="number"?A:(0,k.default)(A,b.basePlacements)),E=B===b.popper?b.reference:b.popper,P=c.rects.popper,D=c.elements[L?E:B],M=(0,e.default)((0,y.isElement)(D)?D:D.contextElement||(0,a.default)(c.elements.popper),v,N,h),O=(0,t.default)(c.elements.reference),R=(0,o.default)({reference:O,element:P,strategy:"absolute",placement:s}),j=(0,p.default)(Object.assign({},P,R)),_=B===b.popper?j:O,W={top:M.top-_.top+x.top,bottom:_.bottom-M.bottom+x.bottom,left:M.left-_.left+x.left,right:_.right-M.right+x.right},z=c.modifiersData.offset;if(B===b.popper&&z){var K=z[s];Object.keys(W).forEach(function(G){var Q=[b.right,b.bottom].indexOf(G)>=0?1:-1,J=[b.top,b.bottom].indexOf(G)>=0?"y":"x";W[G]+=K[J]*Q})}return W}},81447:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e,a){return a.reduce(function(t,o){return t[o]=e,t},{})}},28066:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e==="x"?"y":"x"}},83104:function(T,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(46206);function a(t){return t.split("-")[0]}},34780:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(){return{top:0,right:0,bottom:0,left:0}}},41199:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}},71376:function(T,r){"use strict";r.__esModule=!0,r.default=e;var n={left:"right",right:"left",bottom:"top",top:"bottom"};function e(a){return a.replace(/left|right|bottom|top/g,function(t){return n[t]})}},86459:function(T,r){"use strict";r.__esModule=!0,r.default=e;var n={start:"end",end:"start"};function e(a){return a.replace(/start|end/g,function(t){return n[t]})}},45:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e.split("-")[1]}},63618:function(T,r){"use strict";r.__esModule=!0,r.round=r.min=r.max=void 0;var n=r.max=Math.max,e=r.min=Math.min,a=r.round=Math.round},56500:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a=e.reduce(function(t,o){var p=t[o.name];return t[o.name]=p?Object.assign({},p,o,{options:Object.assign({},p.options,o.options),data:Object.assign({},p.data,o.data)}):o,t},{});return Object.keys(a).map(function(t){return a[t]})}},43286:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(34780));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return Object.assign({},(0,e.default)(),o)}},33118:function(T,r,n){"use strict";r.__esModule=!0,r.default=t;var e=n(46206);function a(o){var p=new Map,b=new Set,y=[];o.forEach(function(k){p.set(k.name,k)});function I(k){b.add(k.name);var C=[].concat(k.requires||[],k.requiresIfExists||[]);C.forEach(function(i){if(!b.has(i)){var c=p.get(i);c&&I(c)}}),y.push(k)}return o.forEach(function(k){b.has(k.name)||I(k)}),y}function t(o){var p=a(o);return e.modifierPhases.reduce(function(b,y){return b.concat(p.filter(function(I){return I.phase===y}))},[])}},81666:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}},35366:function(T,r){"use strict";r.__esModule=!0,r.default=n;function n(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(a){return a.brand+"/"+a.version}).join(" "):navigator.userAgent}},28595:function(T,r,n){"use strict";r.__esModule=!0,r.within=a,r.withinMaxClamp=t;var e=n(63618);function a(o,p,b){return(0,e.max)(o,(0,e.min)(p,b))}function t(o,p,b){var y=a(o,p,b);return y>b?b:y}},15875:function(T,r){"use strict";r.__esModule=!0,r.VNodeFlags=r.ChildFlags=void 0;var n;(function(a){a[a.Unknown=0]="Unknown",a[a.HtmlElement=1]="HtmlElement",a[a.ComponentUnknown=2]="ComponentUnknown",a[a.ComponentClass=4]="ComponentClass",a[a.ComponentFunction=8]="ComponentFunction",a[a.Text=16]="Text",a[a.SvgElement=32]="SvgElement",a[a.InputElement=64]="InputElement",a[a.TextareaElement=128]="TextareaElement",a[a.SelectElement=256]="SelectElement",a[a.Portal=1024]="Portal",a[a.ReCreate=2048]="ReCreate",a[a.ContentEditable=4096]="ContentEditable",a[a.Fragment=8192]="Fragment",a[a.InUse=16384]="InUse",a[a.ForwardRef=32768]="ForwardRef",a[a.Normalized=65536]="Normalized",a[a.ForwardRefComponent=32776]="ForwardRefComponent",a[a.FormElement=448]="FormElement",a[a.Element=481]="Element",a[a.Component=14]="Component",a[a.DOMRef=1521]="DOMRef",a[a.InUseOrNormalized=81920]="InUseOrNormalized",a[a.ClearInUse=-16385]="ClearInUse",a[a.ComponentKnown=12]="ComponentKnown"})(n||(r.VNodeFlags=n={}));var e;(function(a){a[a.UnknownChildren=0]="UnknownChildren",a[a.HasInvalidChildren=1]="HasInvalidChildren",a[a.HasVNodeChildren=2]="HasVNodeChildren",a[a.HasNonKeyedChildren=4]="HasNonKeyedChildren",a[a.HasKeyedChildren=8]="HasKeyedChildren",a[a.HasTextChildren=16]="HasTextChildren",a[a.MultipleChildren=12]="MultipleChildren"})(e||(r.ChildFlags=e={}))},89292:function(T,r){"use strict";r.__esModule=!0,r.Fragment=r.EMPTY_OBJ=r.Component=r.AnimationQueues=void 0,r._CI=Ot,r._HI=me,r._M=$e,r._MCCC=Ft,r._ME=Dt,r._MFCC=_t,r._MP=Mt,r._MR=at,r._RFC=gt,r.__render=Ht,r.createComponentVNode=ue,r.createFragment=pe,r.createPortal=ee,r.createRef=nn,r.createRenderer=En,r.createTextVNode=ie,r.createVNode=K,r.directClone=ne,r.findDOMFromVNode=V,r.forwardRef=on,r.getFlagsForElementVnode=oe,r.linkEvent=C,r.normalizeProps=te,r.options=void 0,r.render=zt,r.rerender=Kt,r.version=void 0;var n=Array.isArray;function e(F){var U=typeof F;return U==="string"||U==="number"}function a(F){return F==null}function t(F){return F===null||F===!1||F===!0||F===void 0}function o(F){return typeof F=="function"}function p(F){return typeof F=="string"}function b(F){return typeof F=="number"}function y(F){return F===null}function I(F){return F===void 0}function k(F,U){var H={};if(F)for(var $ in F)H[$]=F[$];if(U)for(var Z in U)H[Z]=U[Z];return H}function C(F,U){return o(U)?{data:F,event:U}:null}function i(F){return!y(F)&&typeof F=="object"}var c=r.EMPTY_OBJ={},m=r.Fragment="$F",l=r.AnimationQueues=function(){function F(){this.componentDidAppear=[],this.componentWillDisappear=[],this.componentWillMove=[]}return F}();function d(F){return F.substring(2).toLowerCase()}function s(F,U){F.appendChild(U)}function u(F,U,H){y(H)?s(F,U):F.insertBefore(U,H)}function h(F,U){return U?document.createElementNS("http://www.w3.org/2000/svg",F):document.createElement(F)}function g(F,U,H){F.replaceChild(U,H)}function v(F,U){F.removeChild(U)}function f(F){for(var U=0;U0?B(H.componentWillDisappear,w(F,U)):L(F,U,!1)}function x(F,U,H,$,Z,ae,ce,se){F.componentWillMove.push({dom:$,fn:function(){function Ne(){ce&4?H.componentWillMove(U,Z,$):ce&8&&H.onComponentWillMove(U,Z,$,se)}return Ne}(),next:ae,parent:Z})}function E(F,U,H,$,Z){var ae,ce,se=U.flags;do{var Ne=U.flags;if(Ne&1521){!a(ae)&&(o(ae.componentWillMove)||o(ae.onComponentWillMove))?x(Z,F,ae,U.dom,H,$,se,ce):u(H,U.dom,$);return}var Te=U.children;if(Ne&4)ae=U.children,ce=U.props,U=Te.$LI;else if(Ne&8)ae=U.ref,ce=U.props,U=Te;else if(Ne&8192)if(U.childFlags===2)U=Te;else{for(var Ie=0,Ee=Te.length;Ie0,Te=y(se),Ie=p(se)&&se[0]===W;Ne||Te||Ie?(H=H||U.slice(0,ae),(Ne||Ie)&&(ce=ne(ce)),(Te||Ie)&&(ce.key=W+ae),H.push(ce)):H&&H.push(ce),ce.flags|=65536}}H=H||U,H.length===0?$=1:$=8}else H=U,H.flags|=65536,U.flags&81920&&(H=ne(U)),$=2;return F.children=H,F.childFlags=$,F}function me(F){return t(F)||e(F)?ie(F,null):n(F)?pe(F,0,null):F.flags&16384?ne(F):F}var Y="http://www.w3.org/1999/xlink",ve="http://www.w3.org/XML/1998/namespace",he={"xlink:actuate":Y,"xlink:arcrole":Y,"xlink:href":Y,"xlink:role":Y,"xlink:show":Y,"xlink:title":Y,"xlink:type":Y,"xml:base":ve,"xml:lang":ve,"xml:space":ve};function Ve(F){return{onClick:F,onDblClick:F,onFocusIn:F,onFocusOut:F,onKeyDown:F,onKeyPress:F,onKeyUp:F,onMouseDown:F,onMouseMove:F,onMouseUp:F,onTouchEnd:F,onTouchMove:F,onTouchStart:F}}var Be=Ve(0),be=Ve(null),Le=Ve(!0);function we(F,U){var H=U.$EV;return H||(H=U.$EV=Ve(null)),H[F]||++Be[F]===1&&(be[F]=je(F)),H}function xe(F,U){var H=U.$EV;H&&H[F]&&(--Be[F]===0&&(document.removeEventListener(d(F),be[F]),be[F]=null),H[F]=null)}function Re(F,U,H,$){if(o(H))we(F,$)[F]=H;else if(i(H)){if(R(U,H))return;we(F,$)[F]=H}else xe(F,$)}function He(F){return o(F.composedPath)?F.composedPath()[0]:F.target}function ye(F,U,H,$){var Z=He(F);do{if(U&&Z.disabled)return;var ae=Z.$EV;if(ae){var ce=ae[H];if(ce&&($.dom=Z,ce.event?ce.event(ce.data,F):ce(F),F.cancelBubble))return}Z=Z.parentNode}while(!y(Z))}function de(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function Ce(){return this.defaultPrevented}function ke(){return this.cancelBubble}function ge(F){var U={dom:document};return F.isDefaultPrevented=Ce,F.isPropagationStopped=ke,F.stopPropagation=de,Object.defineProperty(F,"currentTarget",{configurable:!0,get:function(){function H(){return U.dom}return H}()}),U}function Se(F){return function(U){if(U.button!==0){U.stopPropagation();return}ye(U,!0,F,ge(U))}}function Pe(F){return function(U){ye(U,!1,F,ge(U))}}function je(F){var U=F==="onClick"||F==="onDblClick"?Se(F):Pe(F);return document.addEventListener(d(F),U),U}function Fe(F,U){var H=document.createElement("i");return H.innerHTML=U,H.innerHTML===F.innerHTML}function ze(F,U,H){if(F[U]){var $=F[U];$.event?$.event($.data,H):$(H)}else{var Z=U.toLowerCase();F[Z]&&F[Z](H)}}function We(F,U){var H=function(){function $(Z){var ae=this.$V;if(ae){var ce=ae.props||c,se=ae.dom;if(p(F))ze(ce,F,Z);else for(var Ne=0;Ne-1&&U.options[ae]&&(se=U.options[ae].value),H&&a(se)&&(se=F.defaultValue),rt($,se)}}var Zt=We("onInput",Tt),qt=We("onChange");function en(F,U){Ue(F,"input",Zt),U.onChange&&Ue(F,"change",qt)}function Tt(F,U,H){var $=F.value,Z=U.value;if(a($)){if(H){var ae=F.defaultValue;!a(ae)&&ae!==Z&&(U.defaultValue=ae,U.value=ae)}}else Z!==$&&(U.defaultValue=$,U.value=$)}function xt(F,U,H,$,Z,ae){F&64?dt($,H):F&256?wt($,H,Z,U):F&128&&Tt($,H,Z),ae&&(H.$V=U)}function tn(F,U,H){F&64?Bt(U,H):F&256?Jt(U):F&128&&en(U,H)}function At(F){return F.type&&Xe(F.type)?!a(F.checked):!a(F.value)}function nn(){return{current:null}}function on(F){var U={render:F};return U}function st(F){F&&!_(F,null)&&F.current&&(F.current=null)}function at(F,U,H){F&&(o(F)||F.current!==void 0)&&H.push(function(){!_(F,U)&&F.current!==void 0&&(F.current=U)})}function Qe(F,U,H){Ze(F,H),A(F,U,H)}function Ze(F,U){var H=F.flags,$=F.children,Z;if(H&481){Z=F.ref;var ae=F.props;st(Z);var ce=F.childFlags;if(!y(ae))for(var se=Object.keys(ae),Ne=0,Te=se.length;Ne0?B(H.componentWillDisappear,rn(U,F)):F.textContent=""}function pt(F,U,H,$){ct(H,$),U.flags&8192?A(U,F,$):mt(F,H,$)}function Et(F,U,H,$,Z){F.componentWillDisappear.push(function(ae){$&4?U.componentWillDisappear(H,ae):$&8&&U.onComponentWillDisappear(H,Z,ae)})}function an(F){var U=F.event;return function(H){U(F.data,H)}}function cn(F,U,H,$){if(i(H)){if(R(U,H))return;H=an(H)}Ue($,d(F),H)}function ln(F,U,H){if(a(U)){H.removeAttribute("style");return}var $=H.style,Z,ae;if(p(U)){$.cssText=U;return}if(!a(F)&&!p(F)){for(Z in U)ae=U[Z],ae!==F[Z]&&$.setProperty(Z,ae);for(Z in F)a(U[Z])&&$.removeProperty(Z)}else for(Z in U)ae=U[Z],$.setProperty(Z,ae)}function un(F,U,H,$,Z){var ae=F&&F.__html||"",ce=U&&U.__html||"";ae!==ce&&!a(ce)&&!Fe($,ce)&&(y(H)||(H.childFlags&12?ct(H.children,Z):H.childFlags===2&&Ze(H.children,Z),H.children=null,H.childFlags=1),$.innerHTML=ce)}function vt(F,U,H,$,Z,ae,ce,se){switch(F){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":$.autofocus=!!H;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":$[F]=!!H;break;case"defaultChecked":case"value":case"volume":if(ae&&F==="value")break;var Ne=a(H)?"":H;$[F]!==Ne&&($[F]=Ne);break;case"style":ln(U,H,$);break;case"dangerouslySetInnerHTML":un(U,H,ce,$,se);break;default:Le[F]?Re(F,U,H,$):F.charCodeAt(0)===111&&F.charCodeAt(1)===110?cn(F,U,H,$):a(H)?$.removeAttribute(F):Z&&he[F]?$.setAttributeNS(he[F],F,H):$.setAttribute(F,H);break}}function Mt(F,U,H,$,Z,ae){var ce=!1,se=(U&448)>0;se&&(ce=At(H),ce&&tn(U,$,H));for(var Ne in H)vt(Ne,null,H[Ne],$,Z,ce,null,ae);se&&xt(U,F,$,H,!0,ce)}function Pt(F,U,H){var $=me(F.render(U,F.state,H)),Z=H;return o(F.getChildContext)&&(Z=k(H,F.getChildContext())),F.$CX=Z,$}function Ot(F,U,H,$,Z,ae){var ce=new U(H,$),se=ce.$N=!!(U.getDerivedStateFromProps||ce.getSnapshotBeforeUpdate);if(ce.$SVG=Z,ce.$L=ae,F.children=ce,ce.$BS=!1,ce.context=$,ce.props===c&&(ce.props=H),se)ce.state=P(ce,H,ce.state);else if(o(ce.componentWillMount)){ce.$BR=!0,ce.componentWillMount();var Ne=ce.$PS;if(!y(Ne)){var Te=ce.state;if(y(Te))ce.state=Ne;else for(var Ie in Ne)Te[Ie]=Ne[Ie];ce.$PS=null}ce.$BR=!1}return ce.$LI=Pt(ce,H,$),ce}function gt(F,U){var H=F.props||c;return F.flags&32768?F.type.render(H,F.ref,U):F.type(H,U)}function $e(F,U,H,$,Z,ae,ce){var se=F.flags|=16384;se&481?Dt(F,U,H,$,Z,ae,ce):se&4?mn(F,U,H,$,Z,ae,ce):se&8?pn(F,U,H,$,Z,ae,ce):se&16?Rt(F,U,Z):se&8192?sn(F,H,U,$,Z,ae,ce):se&1024&&dn(F,H,U,Z,ae,ce)}function dn(F,U,H,$,Z,ae){$e(F.children,F.ref,U,!1,null,Z,ae);var ce=le();Rt(ce,H,$),F.dom=ce.dom}function sn(F,U,H,$,Z,ae,ce){var se=F.children,Ne=F.childFlags;Ne&12&&se.length===0&&(Ne=F.childFlags=2,se=F.children=le()),Ne===2?$e(se,H,U,$,Z,ae,ce):ot(se,H,U,$,Z,ae,ce)}function Rt(F,U,H){var $=F.dom=document.createTextNode(F.children);y(U)||u(U,$,H)}function Dt(F,U,H,$,Z,ae,ce){var se=F.flags,Ne=F.props,Te=F.className,Ie=F.childFlags,Ee=F.dom=h(F.type,$=$||(se&32)>0),Ae=F.children;if(!a(Te)&&Te!==""&&($?Ee.setAttribute("class",Te):Ee.className=Te),Ie===16)O(Ee,Ae);else if(Ie!==1){var Me=$&&F.type!=="foreignObject";Ie===2?(Ae.flags&16384&&(F.children=Ae=ne(Ae)),$e(Ae,Ee,H,Me,null,ae,ce)):(Ie===8||Ie===4)&&ot(Ae,Ee,H,Me,null,ae,ce)}y(U)||u(U,Ee,Z),y(Ne)||Mt(F,se,Ne,Ee,$,ce),at(F.ref,Ee,ae)}function ot(F,U,H,$,Z,ae,ce){for(var se=0;seMe)&&(Ee=V(se[Me-1],!1).nextSibling)}Nt(Te,Ie,se,Ne,H,$,Z,Ee,F,ae,ce)}function Vn(F,U,H,$,Z){var ae=F.ref,ce=U.ref,se=U.children;if(Nt(F.childFlags,U.childFlags,F.children,se,ae,H,!1,null,F,$,Z),U.dom=F.dom,ae!==ce&&!t(se)){var Ne=se.dom;v(ae,Ne),s(ce,Ne)}}function bn(F,U,H,$,Z,ae,ce){var se=U.dom=F.dom,Ne=F.props,Te=U.props,Ie=!1,Ee=!1,Ae;if($=$||(Z&32)>0,Ne!==Te){var Me=Ne||c;if(Ae=Te||c,Ae!==c){Ie=(Z&448)>0,Ie&&(Ee=At(Ae));for(var _e in Ae){var Oe=Me[_e],Ke=Ae[_e];Oe!==Ke&&vt(_e,Oe,Ke,se,$,Ee,F,ce)}}if(Me!==c)for(var De in Me)a(Ae[De])&&!a(Me[De])&&vt(De,Me[De],null,se,$,Ee,F,ce)}var tt=U.children,Ye=U.className;F.className!==Ye&&(a(Ye)?se.removeAttribute("class"):$?se.setAttribute("class",Ye):se.className=Ye),Z&4096?gn(se,tt):Nt(F.childFlags,U.childFlags,F.children,tt,se,H,$&&U.type!=="foreignObject",null,F,ae,ce),Ie&&xt(Z,U,se,Ae,!1,Ee);var it=U.ref,Je=F.ref;Je!==it&&(st(Je),at(it,se,ae))}function kn(F,U,H,$,Z,ae,ce){Ze(F,ce),ot(U,H,$,Z,V(F,!0),ae,ce),A(F,H,ce)}function Nt(F,U,H,$,Z,ae,ce,se,Ne,Te,Ie){switch(F){case 2:switch(U){case 2:qe(H,$,Z,ae,ce,se,Te,Ie);break;case 1:Qe(H,Z,Ie);break;case 16:Ze(H,Ie),O(Z,$);break;default:kn(H,$,Z,ae,ce,Te,Ie);break}break;case 1:switch(U){case 2:$e($,Z,ae,ce,se,Te,Ie);break;case 1:break;case 16:O(Z,$);break;default:ot($,Z,ae,ce,se,Te,Ie);break}break;case 16:switch(U){case 16:vn(H,$,Z);break;case 2:mt(Z,H,Ie),$e($,Z,ae,ce,se,Te,Ie);break;case 1:mt(Z,H,Ie);break;default:mt(Z,H,Ie),ot($,Z,ae,ce,se,Te,Ie);break}break;default:switch(U){case 16:ct(H,Ie),O(Z,$);break;case 2:pt(Z,Ne,H,Ie),$e($,Z,ae,ce,se,Te,Ie);break;case 1:pt(Z,Ne,H,Ie);break;default:var Ee=H.length|0,Ae=$.length|0;Ee===0?Ae>0&&ot($,Z,ae,ce,se,Te,Ie):Ae===0?pt(Z,Ne,H,Ie):U===8&&F===8?wn(H,$,Z,ae,ce,Ee,Ae,se,Ne,Te,Ie):Ln(H,$,Z,ae,ce,Ee,Ae,se,Te,Ie);break}break}}function yn(F,U,H,$,Z){Z.push(function(){F.componentDidUpdate(U,H,$)})}function Wt(F,U,H,$,Z,ae,ce,se,Ne,Te){var Ie=F.state,Ee=F.props,Ae=!!F.$N,Me=o(F.shouldComponentUpdate);if(Ae&&(U=P(F,H,U!==Ie?k(Ie,U):U)),ce||!Me||Me&&F.shouldComponentUpdate(H,U,Z)){!Ae&&o(F.componentWillUpdate)&&F.componentWillUpdate(H,U,Z),F.props=H,F.state=U,F.context=Z;var _e=null,Oe=Pt(F,H,Z);Ae&&o(F.getSnapshotBeforeUpdate)&&(_e=F.getSnapshotBeforeUpdate(Ee,Ie)),qe(F.$LI,Oe,$,F.$CX,ae,se,Ne,Te),F.$LI=Oe,o(F.componentDidUpdate)&&yn(F,Ee,Ie,_e,Ne)}else F.props=H,F.state=U,F.context=Z}function Sn(F,U,H,$,Z,ae,ce,se){var Ne=U.children=F.children;if(!y(Ne)){Ne.$L=ce;var Te=U.props||c,Ie=U.ref,Ee=F.ref,Ae=Ne.state;if(!Ne.$N){if(o(Ne.componentWillReceiveProps)){if(Ne.$BR=!0,Ne.componentWillReceiveProps(Te,$),Ne.$UN)return;Ne.$BR=!1}y(Ne.$PS)||(Ae=k(Ae,Ne.$PS),Ne.$PS=null)}Wt(Ne,Ae,Te,H,$,Z,!1,ae,ce,se),Ee!==Ie&&(st(Ee),at(Ie,Ne,ce))}}function Bn(F,U,H,$,Z,ae,ce,se){var Ne=!0,Te=U.props||c,Ie=U.ref,Ee=F.props,Ae=!a(Ie),Me=F.children;if(Ae&&o(Ie.onComponentShouldUpdate)&&(Ne=Ie.onComponentShouldUpdate(Ee,Te)),Ne!==!1){Ae&&o(Ie.onComponentWillUpdate)&&Ie.onComponentWillUpdate(Ee,Te);var _e=me(gt(U,$));qe(Me,_e,H,$,Z,ae,ce,se),U.children=_e,Ae&&o(Ie.onComponentDidUpdate)&&Ie.onComponentDidUpdate(Ee,Te)}else U.children=Me}function In(F,U){var H=U.children,$=U.dom=F.dom;H!==F.children&&($.nodeValue=H)}function Ln(F,U,H,$,Z,ae,ce,se,Ne,Te){for(var Ie=ae>ce?ce:ae,Ee=0,Ae,Me;Eece)for(Ee=Ie;EeEe||Me>Ae)break e;_e=F[Me],Oe=U[Me]}for(_e=F[Ee],Oe=U[Ae];_e.key===Oe.key;){if(Oe.flags&16384&&(U[Ae]=Oe=ne(Oe)),qe(_e,Oe,H,$,Z,se,Te,Ie),F[Ee]=Oe,Ee--,Ae--,Me>Ee||Me>Ae)break e;_e=F[Ee],Oe=U[Ae]}}if(Me>Ee){if(Me<=Ae)for(Ke=Ae+1,De=KeAe)for(;Me<=Ee;)Qe(F[Me++],H,Ie);else Tn(F,U,$,ae,ce,Ee,Ae,Me,H,Z,se,Ne,Te,Ie)}function Tn(F,U,H,$,Z,ae,ce,se,Ne,Te,Ie,Ee,Ae,Me){var _e,Oe,Ke=0,De=0,tt=se,Ye=se,it=ae-se+1,Je=ce-se+1,lt=new Int32Array(Je+1),nt=it===$,bt=!1,Ge=0,ut=0;if(Z<4||(it|Je)<32)for(De=tt;De<=ae;++De)if(_e=F[De],utse?bt=!0:Ge=se,Oe.flags&16384&&(U[se]=Oe=ne(Oe)),qe(_e,Oe,Ne,H,Te,Ie,Ae,Me),++ut;break}!nt&&se>ce&&Qe(_e,Ne,Me)}else nt||Qe(_e,Ne,Me);else{var Yt={};for(De=Ye;De<=ce;++De)Yt[U[De].key]=De;for(De=tt;De<=ae;++De)if(_e=F[De],uttt;)Qe(F[tt++],Ne,Me);lt[se-Ye]=De+1,Ge>se?bt=!0:Ge=se,Oe=U[se],Oe.flags&16384&&(U[se]=Oe=ne(Oe)),qe(_e,Oe,Ne,H,Te,Ie,Ae,Me),++ut}else nt||Qe(_e,Ne,Me);else nt||Qe(_e,Ne,Me)}if(nt)pt(Ne,Ee,F,Me),ot(U,Ne,H,Te,Ie,Ae,Me);else if(bt){var Xt=xn(lt);for(se=Xt.length-1,De=Je-1;De>=0;De--)lt[De]===0?(Ge=De+Ye,Oe=U[Ge],Oe.flags&16384&&(U[Ge]=Oe=ne(Oe)),Ke=Ge+1,$e(Oe,Ne,H,Te,Ke0&&S(Me.componentWillMove)}else if(ut!==Je)for(De=Je-1;De>=0;De--)lt[De]===0&&(Ge=De+Ye,Oe=U[Ge],Oe.flags&16384&&(U[Ge]=Oe=ne(Oe)),Ke=Ge+1,$e(Oe,Ne,H,Te,KeUt&&(Ut=Ne,et=new Int32Array(Ne),ft=new Int32Array(Ne));H>1,F[et[se]]0&&(ft[H]=et[ae-1]),et[ae]=H)}ae=Z+1;var Te=new Int32Array(ae);for(ce=et[ae-1];ae-- >0;)Te[ae]=ce,ce=ft[ce],et[ae]=0;return Te}var An=typeof document!="undefined";An&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);function Ht(F,U,H,$){var Z=[],ae=new l,ce=U.$V;D.v=!0,a(ce)?a(F)||(F.flags&16384&&(F=ne(F)),$e(F,U,$,!1,null,Z,ae),U.$V=F,ce=F):a(F)?(Qe(ce,U,ae),U.$V=null):(F.flags&16384&&(F=ne(F)),qe(ce,F,U,$,!1,null,Z,ae),ce=U.$V=F),f(Z),B(ae.componentDidAppear),D.v=!1,o(H)&&H(),o(M.renderComplete)&&M.renderComplete(ce,U)}function zt(F,U,H,$){H===void 0&&(H=null),$===void 0&&($=c),Ht(F,U,H,$)}function En(F){return function(){function U(H,$,Z,ae){F||(F=H),zt($,F,Z,ae)}return U}()}var ht=[],Mn=typeof Promise!="undefined"?Promise.resolve().then.bind(Promise.resolve()):function(F){window.setTimeout(F,0)},Vt=!1;function $t(F,U,H,$){var Z=F.$PS;if(o(U)&&(U=U(Z?k(F.state,Z):F.state,F.props,F.context)),a(Z))F.$PS=U;else for(var ae in U)Z[ae]=U[ae];if(F.$BR)o(H)&&F.$L.push(H.bind(F));else{if(!D.v&&ht.length===0){Gt(F,$),o(H)&&H.call(F);return}if(ht.indexOf(F)===-1&&ht.push(F),$&&(F.$F=!0),Vt||(Vt=!0,Mn(Kt)),o(H)){var ce=F.$QU;ce||(ce=F.$QU=[]),ce.push(H)}}}function Pn(F){for(var U=F.$QU,H=0;H=0;--_){var W=this.tryEntries[_],z=W.completion;if(W.tryLoc==="root")return j("end");if(W.tryLoc<=this.prev){var K=a.call(W,"catchLoc"),G=a.call(W,"finallyLoc");if(K&&G){if(this.prev=0;--j){var _=this.tryEntries[j];if(_.tryLoc<=this.prev&&a.call(_,"finallyLoc")&&this.prev<_.finallyLoc){var W=_;break}}W&&(O==="break"||O==="continue")&&W.tryLoc<=R&&R<=W.finallyLoc&&(W=null);var z=W?W.completion:{};return z.type=O,z.arg=R,W?(this.method="next",this.next=W.finallyLoc,s):this.complete(z)}return M}(),complete:function(){function M(O,R){if(O.type==="throw")throw O.arg;return O.type==="break"||O.type==="continue"?this.next=O.arg:O.type==="return"?(this.rval=this.arg=O.arg,this.method="return",this.next="end"):O.type==="normal"&&R&&(this.next=R),s}return M}(),finish:function(){function M(O){for(var R=this.tryEntries.length-1;R>=0;--R){var j=this.tryEntries[R];if(j.finallyLoc===O)return this.complete(j.completion,j.afterLoc),x(j),s}}return M}(),catch:function(){function M(O){for(var R=this.tryEntries.length-1;R>=0;--R){var j=this.tryEntries[R];if(j.tryLoc===O){var _=j.completion;if(_.type==="throw"){var W=_.arg;x(j)}return W}}throw new Error("illegal catch attempt")}return M}(),delegateYield:function(){function M(O,R,j){return this.delegate={iterator:P(O),resultName:R,nextLoc:j},this.method==="next"&&(this.arg=o),s}return M}()},n}(T.exports);try{regeneratorRuntime=r}catch(n){typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},30236:function(){"use strict";self.fetch||(self.fetch=function(T,r){return r=r||{},new Promise(function(n,e){var a=new XMLHttpRequest,t=[],o={},p=function(){function y(){return{ok:(a.status/100|0)==2,statusText:a.statusText,status:a.status,url:a.responseURL,text:function(){function I(){return Promise.resolve(a.responseText)}return I}(),json:function(){function I(){return Promise.resolve(a.responseText).then(JSON.parse)}return I}(),blob:function(){function I(){return Promise.resolve(new Blob([a.response]))}return I}(),clone:y,headers:{keys:function(){function I(){return t}return I}(),entries:function(){function I(){return t.map(function(k){return[k,a.getResponseHeader(k)]})}return I}(),get:function(){function I(k){return a.getResponseHeader(k)}return I}(),has:function(){function I(k){return a.getResponseHeader(k)!=null}return I}()}}}return y}();for(var b in a.open(r.method||"get",T,!0),a.onload=function(){a.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(y,I){o[I]||t.push(o[I]=I)}),n(p())},a.onerror=e,a.withCredentials=r.credentials=="include",r.headers)a.setRequestHeader(b,r.headers[b]);a.send(r.body||null)})})},88510:function(T,r){"use strict";r.__esModule=!0,r.zipWith=r.zip=r.uniqBy=r.uniq=r.toKeyedArray=r.toArray=r.sortBy=r.sort=r.reduce=r.range=r.map=r.filterMap=r.filter=void 0;function n(u,h){var g=typeof Symbol!="undefined"&&u[Symbol.iterator]||u["@@iterator"];if(g)return(g=g.call(u)).next.bind(g);if(Array.isArray(u)||(g=e(u))||h&&u&&typeof u.length=="number"){g&&(u=g);var v=0;return function(){return v>=u.length?{done:!0}:{done:!1,value:u[v++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(u,h){if(u){if(typeof u=="string")return a(u,h);var g={}.toString.call(u).slice(8,-1);return g==="Object"&&u.constructor&&(g=u.constructor.name),g==="Map"||g==="Set"?Array.from(u):g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g)?a(u,h):void 0}}function a(u,h){(h==null||h>u.length)&&(h=u.length);for(var g=0,v=Array(h);gS)return 1}return 0},k=r.sortBy=function(){function l(){for(var h=arguments.length,N=new Array(h),v=0;vS)return 1}return 0},k=r.sortBy=function(){function u(){for(var h=arguments.length,g=new Array(h),v=0;v=1-n)return j[_-1];var z=W%1,K=W|0;return D.lerp(j[K],j[K+1],z)}return O}(),D}(),a=function(M,O,R){return O===void 0&&(O=0),R===void 0&&(R=Math.pow(10,O)),Math.round(R*M)/R},t={grad:360/400,turn:360,rad:360/(Math.PI*2)},o=r.hexToHsva=function(){function D(M){return S(p(M))}return D}(),p=r.hexToRgba=function(){function D(M){return M[0]==="#"&&(M=M.substring(1)),M.length<6?{r:parseInt(M[0]+M[0],16),g:parseInt(M[1]+M[1],16),b:parseInt(M[2]+M[2],16),a:M.length===4?a(parseInt(M[3]+M[3],16)/255,2):1}:{r:parseInt(M.substring(0,2),16),g:parseInt(M.substring(2,4),16),b:parseInt(M.substring(4,6),16),a:M.length===8?a(parseInt(M.substring(6,8),16)/255,2):1}}return D}(),b=r.parseHue=function(){function D(M,O){return O===void 0&&(O="deg"),Number(M)*(t[O]||1)}return D}(),y=r.hslaStringToHsva=function(){function D(M){var O=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i,R=O.exec(M);return R?k({h:b(R[1],R[2]),s:Number(R[3]),l:Number(R[4]),a:R[5]===void 0?1:Number(R[5])/(R[6]?100:1)}):{h:0,s:0,v:0,a:1}}return D}(),I=r.hslStringToHsva=y,k=r.hslaToHsva=function(){function D(M){var O=M.h,R=M.s,j=M.l,_=M.a;return R*=(j<50?j:100-j)/100,{h:O,s:R>0?2*R/(j+R)*100:0,v:j+R,a:_}}return D}(),C=r.hsvaToHex=function(){function D(M){return B(s(M))}return D}(),i=r.hsvaToHsla=function(){function D(M){var O=M.h,R=M.s,j=M.v,_=M.a,W=(200-R)*j/100;return{h:a(O),s:a(W>0&&W<200?R*j/100/(W<=100?W:200-W)*100:0),l:a(W/2),a:a(_,2)}}return D}(),c=r.hsvaToHslString=function(){function D(M){var O=i(M),R=O.h,j=O.s,_=O.l;return"hsl("+R+", "+j+"%, "+_+"%)"}return D}(),m=r.hsvaToHsvString=function(){function D(M){var O=L(M),R=O.h,j=O.s,_=O.v;return"hsv("+R+", "+j+"%, "+_+"%)"}return D}(),u=r.hsvaToHsvaString=function(){function D(M){var O=L(M),R=O.h,j=O.s,_=O.v,W=O.a;return"hsva("+R+", "+j+"%, "+_+"%, "+W+")"}return D}(),d=r.hsvaToHslaString=function(){function D(M){var O=i(M),R=O.h,j=O.s,_=O.l,W=O.a;return"hsla("+R+", "+j+"%, "+_+"%, "+W+")"}return D}(),s=r.hsvaToRgba=function(){function D(M){var O=M.h,R=M.s,j=M.v,_=M.a;O=O/360*6,R=R/100,j=j/100;var W=Math.floor(O),z=j*(1-R),K=j*(1-(O-W)*R),G=j*(1-(1-O+W)*R),Q=W%6;return{r:[j,K,z,z,G,j][Q]*255,g:[G,j,j,K,z,z][Q]*255,b:[z,z,G,j,j,K][Q]*255,a:a(_,2)}}return D}(),l=r.hsvaToRgbString=function(){function D(M){var O=s(M),R=O.r,j=O.g,_=O.b;return"rgb("+a(R)+", "+a(j)+", "+a(_)+")"}return D}(),h=r.hsvaToRgbaString=function(){function D(M){var O=s(M),R=O.r,j=O.g,_=O.b,W=O.a;return"rgba("+a(R)+", "+a(j)+", "+a(_)+", "+a(W,2)+")"}return D}(),N=r.hsvaStringToHsva=function(){function D(M){var O=/hsva?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i,R=O.exec(M);return R?L({h:b(R[1],R[2]),s:Number(R[3]),v:Number(R[4]),a:R[5]===void 0?1:Number(R[5])/(R[6]?100:1)}):{h:0,s:0,v:0,a:1}}return D}(),v=r.hsvStringToHsva=N,f=r.rgbaStringToHsva=function(){function D(M){var O=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i,R=O.exec(M);return R?S({r:Number(R[1])/(R[2]?100/255:1),g:Number(R[3])/(R[4]?100/255:1),b:Number(R[5])/(R[6]?100/255:1),a:R[7]===void 0?1:Number(R[7])/(R[8]?100:1)}):{h:0,s:0,v:0,a:1}}return D}(),g=r.rgbStringToHsva=f,V=function(M){var O=M.toString(16);return O.length<2?"0"+O:O},B=r.rgbaToHex=function(){function D(M){var O=M.r,R=M.g,j=M.b,_=M.a,W=_<1?V(a(_*255)):"";return"#"+V(a(O))+V(a(R))+V(a(j))+W}return D}(),S=r.rgbaToHsva=function(){function D(M){var O=M.r,R=M.g,j=M.b,_=M.a,W=Math.max(O,R,j),z=W-Math.min(O,R,j),K=z?W===O?(R-j)/z:W===R?2+(j-O)/z:4+(O-R)/z:0;return{h:60*(K<0?K+6:K),s:W?z/W*100:0,v:W/255*100,a:_}}return D}(),L=r.roundHsva=function(){function D(M){return{h:a(M.h),s:a(M.s),v:a(M.v),a:a(M.a,2)}}return D}(),w=r.rgbaToRgb=function(){function D(M){var O=M.r,R=M.g,j=M.b;return{r:O,g:R,b:j}}return D}(),A=r.hslaToHsl=function(){function D(M){var O=M.h,R=M.s,j=M.l;return{h:O,s:R,l:j}}return D}(),T=r.hsvaToHsv=function(){function D(M){var O=L(M),R=O.h,j=O.s,_=O.v;return{h:R,s:j,v:_}}return D}(),E=/^#?([0-9A-F]{3,8})$/i,P=r.validHex=function(){function D(M,O){var R=E.exec(M),j=R?R[1].length:0;return j===3||j===6||!!O&&j===4||!!O&&j===8}return D}()},92868:function(x,r){"use strict";r.__esModule=!0,r.EventEmitter=void 0;/** + */var n=1e-4,e=r.Color=function(){function D(O,R,j,_){O===void 0&&(O=0),R===void 0&&(R=0),j===void 0&&(j=0),_===void 0&&(_=1),this.r=void 0,this.g=void 0,this.b=void 0,this.a=void 0,this.r=O,this.g=R,this.b=j,this.a=_}var M=D.prototype;return M.toString=function(){function O(){return"rgba("+(this.r|0)+", "+(this.g|0)+", "+(this.b|0)+", "+(this.a|0)+")"}return O}(),D.fromHex=function(){function O(R){return new D(parseInt(R.substr(1,2),16),parseInt(R.substr(3,2),16),parseInt(R.substr(5,2),16))}return O}(),D.lerp=function(){function O(R,j,_){return new D((j.r-R.r)*_+R.r,(j.g-R.g)*_+R.g,(j.b-R.b)*_+R.b,(j.a-R.a)*_+R.a)}return O}(),D.lookup=function(){function O(R,j){j===void 0&&(j=[]);var _=j.length;if(_<2)throw new Error("Needs at least two colors!");var W=R*(_-1);if(R=1-n)return j[_-1];var z=W%1,K=W|0;return D.lerp(j[K],j[K+1],z)}return O}(),D}(),a=function(M,O,R){return O===void 0&&(O=0),R===void 0&&(R=Math.pow(10,O)),Math.round(R*M)/R},t={grad:360/400,turn:360,rad:360/(Math.PI*2)},o=r.hexToHsva=function(){function D(M){return S(p(M))}return D}(),p=r.hexToRgba=function(){function D(M){return M[0]==="#"&&(M=M.substring(1)),M.length<6?{r:parseInt(M[0]+M[0],16),g:parseInt(M[1]+M[1],16),b:parseInt(M[2]+M[2],16),a:M.length===4?a(parseInt(M[3]+M[3],16)/255,2):1}:{r:parseInt(M.substring(0,2),16),g:parseInt(M.substring(2,4),16),b:parseInt(M.substring(4,6),16),a:M.length===8?a(parseInt(M.substring(6,8),16)/255,2):1}}return D}(),b=r.parseHue=function(){function D(M,O){return O===void 0&&(O="deg"),Number(M)*(t[O]||1)}return D}(),y=r.hslaStringToHsva=function(){function D(M){var O=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i,R=O.exec(M);return R?k({h:b(R[1],R[2]),s:Number(R[3]),l:Number(R[4]),a:R[5]===void 0?1:Number(R[5])/(R[6]?100:1)}):{h:0,s:0,v:0,a:1}}return D}(),I=r.hslStringToHsva=y,k=r.hslaToHsva=function(){function D(M){var O=M.h,R=M.s,j=M.l,_=M.a;return R*=(j<50?j:100-j)/100,{h:O,s:R>0?2*R/(j+R)*100:0,v:j+R,a:_}}return D}(),C=r.hsvaToHex=function(){function D(M){return B(s(M))}return D}(),i=r.hsvaToHsla=function(){function D(M){var O=M.h,R=M.s,j=M.v,_=M.a,W=(200-R)*j/100;return{h:a(O),s:a(W>0&&W<200?R*j/100/(W<=100?W:200-W)*100:0),l:a(W/2),a:a(_,2)}}return D}(),c=r.hsvaToHslString=function(){function D(M){var O=i(M),R=O.h,j=O.s,_=O.l;return"hsl("+R+", "+j+"%, "+_+"%)"}return D}(),m=r.hsvaToHsvString=function(){function D(M){var O=L(M),R=O.h,j=O.s,_=O.v;return"hsv("+R+", "+j+"%, "+_+"%)"}return D}(),l=r.hsvaToHsvaString=function(){function D(M){var O=L(M),R=O.h,j=O.s,_=O.v,W=O.a;return"hsva("+R+", "+j+"%, "+_+"%, "+W+")"}return D}(),d=r.hsvaToHslaString=function(){function D(M){var O=i(M),R=O.h,j=O.s,_=O.l,W=O.a;return"hsla("+R+", "+j+"%, "+_+"%, "+W+")"}return D}(),s=r.hsvaToRgba=function(){function D(M){var O=M.h,R=M.s,j=M.v,_=M.a;O=O/360*6,R=R/100,j=j/100;var W=Math.floor(O),z=j*(1-R),K=j*(1-(O-W)*R),G=j*(1-(1-O+W)*R),Q=W%6;return{r:[j,K,z,z,G,j][Q]*255,g:[G,j,j,K,z,z][Q]*255,b:[z,z,G,j,j,K][Q]*255,a:a(_,2)}}return D}(),u=r.hsvaToRgbString=function(){function D(M){var O=s(M),R=O.r,j=O.g,_=O.b;return"rgb("+a(R)+", "+a(j)+", "+a(_)+")"}return D}(),h=r.hsvaToRgbaString=function(){function D(M){var O=s(M),R=O.r,j=O.g,_=O.b,W=O.a;return"rgba("+a(R)+", "+a(j)+", "+a(_)+", "+a(W,2)+")"}return D}(),g=r.hsvaStringToHsva=function(){function D(M){var O=/hsva?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i,R=O.exec(M);return R?L({h:b(R[1],R[2]),s:Number(R[3]),v:Number(R[4]),a:R[5]===void 0?1:Number(R[5])/(R[6]?100:1)}):{h:0,s:0,v:0,a:1}}return D}(),v=r.hsvStringToHsva=g,f=r.rgbaStringToHsva=function(){function D(M){var O=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i,R=O.exec(M);return R?S({r:Number(R[1])/(R[2]?100/255:1),g:Number(R[3])/(R[4]?100/255:1),b:Number(R[5])/(R[6]?100/255:1),a:R[7]===void 0?1:Number(R[7])/(R[8]?100:1)}):{h:0,s:0,v:0,a:1}}return D}(),N=r.rgbStringToHsva=f,V=function(M){var O=M.toString(16);return O.length<2?"0"+O:O},B=r.rgbaToHex=function(){function D(M){var O=M.r,R=M.g,j=M.b,_=M.a,W=_<1?V(a(_*255)):"";return"#"+V(a(O))+V(a(R))+V(a(j))+W}return D}(),S=r.rgbaToHsva=function(){function D(M){var O=M.r,R=M.g,j=M.b,_=M.a,W=Math.max(O,R,j),z=W-Math.min(O,R,j),K=z?W===O?(R-j)/z:W===R?2+(j-O)/z:4+(O-R)/z:0;return{h:60*(K<0?K+6:K),s:W?z/W*100:0,v:W/255*100,a:_}}return D}(),L=r.roundHsva=function(){function D(M){return{h:a(M.h),s:a(M.s),v:a(M.v),a:a(M.a,2)}}return D}(),w=r.rgbaToRgb=function(){function D(M){var O=M.r,R=M.g,j=M.b;return{r:O,g:R,b:j}}return D}(),A=r.hslaToHsl=function(){function D(M){var O=M.h,R=M.s,j=M.l;return{h:O,s:R,l:j}}return D}(),x=r.hsvaToHsv=function(){function D(M){var O=L(M),R=O.h,j=O.s,_=O.v;return{h:R,s:j,v:_}}return D}(),E=/^#?([0-9A-F]{3,8})$/i,P=r.validHex=function(){function D(M,O){var R=E.exec(M),j=R?R[1].length:0;return j===3||j===6||!!O&&j===4||!!O&&j===8}return D}()},92868:function(T,r){"use strict";r.__esModule=!0,r.EventEmitter=void 0;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var n=r.EventEmitter=function(){function e(){this.listeners={}}var a=e.prototype;return a.on=function(){function t(o,p){this.listeners[o]=this.listeners[o]||[],this.listeners[o].push(p)}return t}(),a.off=function(){function t(o,p){var b=this.listeners[o];if(!b)throw new Error('There is no listeners for "'+o+'"');this.listeners[o]=b.filter(function(y){return y!==p})}return t}(),a.emit=function(){function t(o){var p=this.listeners[o];if(p){for(var b=arguments.length,y=new Array(b>1?b-1:0),I=1;I1?b-1:0),I=1;I1?I-1:0),C=1;C1?k-1:0),i=1;i1?I-1:0),C=1;C1?k-1:0),i=1;ii?i:k}return I}(),e=r.clamp01=function(){function I(k){return k<0?0:k>1?1:k}return I}(),a=r.scale=function(){function I(k,C,i){return(k-C)/(i-C)}return I}(),t=r.round=function(){function I(k,C){if(!k||isNaN(k))return k;var i,c,m,u;return C|=0,i=Math.pow(10,C),k*=i,u=+(k>0)|-(k<0),m=Math.abs(k%1)>=.4999999999854481,c=Math.floor(k),m&&(k=c+(u>0)),(m?k:Math.round(k))/i}return I}(),o=r.toFixed=function(){function I(k,C){return C===void 0&&(C=0),Number(k).toFixed(Math.max(C,0))}return I}(),p=r.inRange=function(){function I(k,C){return C&&k>=C[0]&&k<=C[1]}return I}(),b=r.keyOfMatchingRange=function(){function I(k,C){for(var i=0,c=Object.keys(C);ii?i:k}return I}(),e=r.clamp01=function(){function I(k){return k<0?0:k>1?1:k}return I}(),a=r.scale=function(){function I(k,C,i){return(k-C)/(i-C)}return I}(),t=r.round=function(){function I(k,C){if(!k||isNaN(k))return k;var i,c,m,l;return C|=0,i=Math.pow(10,C),k*=i,l=+(k>0)|-(k<0),m=Math.abs(k%1)>=.4999999999854481,c=Math.floor(k),m&&(k=c+(l>0)),(m?k:Math.round(k))/i}return I}(),o=r.toFixed=function(){function I(k,C){return C===void 0&&(C=0),Number(k).toFixed(Math.max(C,0))}return I}(),p=r.inRange=function(){function I(k,C){return C&&k>=C[0]&&k<=C[1]}return I}(),b=r.keyOfMatchingRange=function(){function I(k,C){for(var i=0,c=Object.keys(C);i1?u-1:0),s=1;s1?V-1:0),S=1;S=0;--me){var Y=this.tryEntries[me],ve=Y.completion;if(Y.tryLoc==="root")return fe("end");if(Y.tryLoc<=this.prev){var he=g.call(Y,"catchLoc"),Ve=g.call(Y,"finallyLoc");if(he&&Ve){if(this.prev=0;--fe){var me=this.tryEntries[fe];if(me.tryLoc<=this.prev&&g.call(me,"finallyLoc")&&this.prev=0;--oe){var fe=this.tryEntries[oe];if(fe.finallyLoc===re)return this.complete(fe.completion,fe.afterLoc),q(fe),R}}return ee}(),catch:function(){function ee(re){for(var oe=this.tryEntries.length-1;oe>=0;--oe){var fe=this.tryEntries[oe];if(fe.tryLoc===re){var me=fe.completion;if(me.type==="throw"){var Y=me.arg;q(fe)}return Y}}throw Error("illegal catch attempt")}return ee}(),delegateYield:function(){function ee(re,oe,fe){return this.delegate={iterator:le(re),resultName:oe,nextLoc:fe},this.method==="next"&&(this.arg=N),R}return ee}()},v}function e(N,v,f,g,V,B,S){try{var L=N[B](S),w=L.value}catch(A){return void f(A)}L.done?v(w):Promise.resolve(w).then(g,V)}function a(N){return function(){var v=this,f=arguments;return new Promise(function(g,V){var B=N.apply(v,f);function S(w){e(B,g,V,S,L,"next",w)}function L(w){e(B,g,V,S,L,"throw",w)}S(void 0)})}}/** + */var a=r.createStore=function(){function I(k,C){if(C)return C(I)(k);var i,c=[],m=function(){function s(){return i}return s}(),l=function(){function s(u){c.push(u)}return s}(),d=function(){function s(u){i=k(i,u);for(var h=0;h1?l-1:0),s=1;s1?V-1:0),S=1;S=0;--me){var Y=this.tryEntries[me],ve=Y.completion;if(Y.tryLoc==="root")return fe("end");if(Y.tryLoc<=this.prev){var he=N.call(Y,"catchLoc"),Ve=N.call(Y,"finallyLoc");if(he&&Ve){if(this.prev=0;--fe){var me=this.tryEntries[fe];if(me.tryLoc<=this.prev&&N.call(me,"finallyLoc")&&this.prev=0;--oe){var fe=this.tryEntries[oe];if(fe.finallyLoc===re)return this.complete(fe.completion,fe.afterLoc),q(fe),R}}return ee}(),catch:function(){function ee(re){for(var oe=this.tryEntries.length-1;oe>=0;--oe){var fe=this.tryEntries[oe];if(fe.tryLoc===re){var me=fe.completion;if(me.type==="throw"){var Y=me.arg;q(fe)}return Y}}throw Error("illegal catch attempt")}return ee}(),delegateYield:function(){function ee(re,oe,fe){return this.delegate={iterator:le(re),resultName:oe,nextLoc:fe},this.method==="next"&&(this.arg=g),R}return ee}()},v}function e(g,v,f,N,V,B,S){try{var L=g[B](S),w=L.value}catch(A){return void f(A)}L.done?v(w):Promise.resolve(w).then(N,V)}function a(g){return function(){var v=this,f=arguments;return new Promise(function(N,V){var B=g.apply(v,f);function S(w){e(B,N,V,S,L,"next",w)}function L(w){e(B,N,V,S,L,"throw",w)}S(void 0)})}}/** * Browser-agnostic abstraction of key-value web storage. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.IMPL_MEMORY=0,o=r.IMPL_HUB_STORAGE=1,p=r.IMPL_INDEXED_DB=2,b=1,y="para-tgui",I="storage-v1",k="readonly",C="readwrite",i=function(v){return function(){try{return!!v()}catch(f){return!1}}},c=i(function(){return window.hubStorage&&window.hubStorage.getItem}),m=i(function(){return(window.indexedDB||window.msIndexedDB)&&(window.IDBTransaction||window.msIDBTransaction)}),u=function(){function N(){this.impl=t,this.store={}}var v=N.prototype;return v.get=function(){var f=a(n().mark(function(){function V(B){return n().wrap(function(){function S(L){for(;;)switch(L.prev=L.next){case 0:return L.abrupt("return",this.store[B]);case 1:case"end":return L.stop()}}return S}(),V,this)}return V}()));function g(V){return f.apply(this,arguments)}return g}(),v.set=function(){var f=a(n().mark(function(){function V(B,S){return n().wrap(function(){function L(w){for(;;)switch(w.prev=w.next){case 0:this.store[B]=S;case 1:case"end":return w.stop()}}return L}(),V,this)}return V}()));function g(V,B){return f.apply(this,arguments)}return g}(),v.remove=function(){var f=a(n().mark(function(){function V(B){return n().wrap(function(){function S(L){for(;;)switch(L.prev=L.next){case 0:this.store[B]=void 0;case 1:case"end":return L.stop()}}return S}(),V,this)}return V}()));function g(V){return f.apply(this,arguments)}return g}(),v.clear=function(){var f=a(n().mark(function(){function V(){return n().wrap(function(){function B(S){for(;;)switch(S.prev=S.next){case 0:this.store={};case 1:case"end":return S.stop()}}return B}(),V,this)}return V}()));function g(){return f.apply(this,arguments)}return g}(),N}(),d=function(){function N(){this.impl=o}var v=N.prototype;return v.get=function(){var f=a(n().mark(function(){function V(B){var S;return n().wrap(function(){function L(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,window.hubStorage.getItem("paradise-"+B);case 2:if(S=w.sent,typeof S!="string"){w.next=5;break}return w.abrupt("return",JSON.parse(S));case 5:case"end":return w.stop()}}return L}(),V)}return V}()));function g(V){return f.apply(this,arguments)}return g}(),v.set=function(){function f(g,V){window.hubStorage.setItem("paradise-"+g,JSON.stringify(V))}return f}(),v.remove=function(){function f(g){window.hubStorage.removeItem("paradise-"+g)}return f}(),v.clear=function(){function f(){window.hubStorage.clear()}return f}(),N}(),s=function(){function N(){this.impl=p,this.dbPromise=new Promise(function(f,g){var V=window.indexedDB||window.msIndexedDB,B=V.open(y,b);B.onupgradeneeded=function(){try{B.result.createObjectStore(I)}catch(S){g(new Error("Failed to upgrade IDB: "+B.error))}},B.onsuccess=function(){return f(B.result)},B.onerror=function(){g(new Error("Failed to open IDB: "+B.error))}})}var v=N.prototype;return v.getStore=function(){var f=a(n().mark(function(){function V(B){return n().wrap(function(){function S(L){for(;;)switch(L.prev=L.next){case 0:return L.abrupt("return",this.dbPromise.then(function(w){return w.transaction(I,B).objectStore(I)}));case 1:case"end":return L.stop()}}return S}(),V,this)}return V}()));function g(V){return f.apply(this,arguments)}return g}(),v.get=function(){var f=a(n().mark(function(){function V(B){var S;return n().wrap(function(){function L(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.getStore(k);case 2:return S=w.sent,w.abrupt("return",new Promise(function(A,T){var E=S.get(B);E.onsuccess=function(){return A(E.result)},E.onerror=function(){return T(E.error)}}));case 4:case"end":return w.stop()}}return L}(),V,this)}return V}()));function g(V){return f.apply(this,arguments)}return g}(),v.set=function(){var f=a(n().mark(function(){function V(B,S){var L;return n().wrap(function(){function w(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,this.getStore(C);case 2:L=A.sent,L.put(S,B);case 4:case"end":return A.stop()}}return w}(),V,this)}return V}()));function g(V,B){return f.apply(this,arguments)}return g}(),v.remove=function(){var f=a(n().mark(function(){function V(B){var S;return n().wrap(function(){function L(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.getStore(C);case 2:S=w.sent,S.delete(B);case 4:case"end":return w.stop()}}return L}(),V,this)}return V}()));function g(V){return f.apply(this,arguments)}return g}(),v.clear=function(){var f=a(n().mark(function(){function V(){var B;return n().wrap(function(){function S(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,this.getStore(C);case 2:B=L.sent,B.clear();case 4:case"end":return L.stop()}}return S}(),V,this)}return V}()));function g(){return f.apply(this,arguments)}return g}(),N}(),l=function(){function N(){this.backendPromise=a(n().mark(function(){function f(){var g;return n().wrap(function(){function V(B){for(;;)switch(B.prev=B.next){case 0:if(!(!Byond.TRIDENT&&c())){B.next=2;break}return B.abrupt("return",new d);case 2:if(!m()){B.next=12;break}return B.prev=3,g=new s,B.next=7,g.dbPromise;case 7:return B.abrupt("return",g);case 10:B.prev=10,B.t0=B.catch(3);case 12:return B.abrupt("return",new u);case 13:case"end":return B.stop()}}return V}(),f,null,[[3,10]])}return f}()))()}var v=N.prototype;return v.get=function(){var f=a(n().mark(function(){function V(B){var S;return n().wrap(function(){function L(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.backendPromise;case 2:return S=w.sent,w.abrupt("return",S.get(B));case 4:case"end":return w.stop()}}return L}(),V,this)}return V}()));function g(V){return f.apply(this,arguments)}return g}(),v.set=function(){var f=a(n().mark(function(){function V(B,S){var L;return n().wrap(function(){function w(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,this.backendPromise;case 2:return L=A.sent,A.abrupt("return",L.set(B,S));case 4:case"end":return A.stop()}}return w}(),V,this)}return V}()));function g(V,B){return f.apply(this,arguments)}return g}(),v.remove=function(){var f=a(n().mark(function(){function V(B){var S;return n().wrap(function(){function L(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.backendPromise;case 2:return S=w.sent,w.abrupt("return",S.remove(B));case 4:case"end":return w.stop()}}return L}(),V,this)}return V}()));function g(V){return f.apply(this,arguments)}return g}(),v.clear=function(){var f=a(n().mark(function(){function V(){var B;return n().wrap(function(){function S(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,this.backendPromise;case 2:return B=L.sent,L.abrupt("return",B.clear());case 4:case"end":return L.stop()}}return S}(),V,this)}return V}()));function g(){return f.apply(this,arguments)}return g}(),N}(),h=r.storage=new l},25328:function(x,r){"use strict";r.__esModule=!0,r.toTitleCase=r.multiline=r.decodeHtmlEntities=r.createSearch=r.createGlobPattern=r.capitalize=r.buildQueryString=void 0;function n(C,i){var c=typeof Symbol!="undefined"&&C[Symbol.iterator]||C["@@iterator"];if(c)return(c=c.call(C)).next.bind(c);if(Array.isArray(C)||(c=e(C))||i&&C&&typeof C.length=="number"){c&&(C=c);var m=0;return function(){return m>=C.length?{done:!0}:{done:!1,value:C[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(C,i){if(C){if(typeof C=="string")return a(C,i);var c={}.toString.call(C).slice(8,-1);return c==="Object"&&C.constructor&&(c=C.constructor.name),c==="Map"||c==="Set"?Array.from(C):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?a(C,i):void 0}}function a(C,i){(i==null||i>C.length)&&(i=C.length);for(var c=0,m=Array(i);c=C.length?{done:!0}:{done:!1,value:C[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(C,i){if(C){if(typeof C=="string")return a(C,i);var c={}.toString.call(C).slice(8,-1);return c==="Object"&&C.constructor&&(c=C.constructor.name),c==="Map"||c==="Set"?Array.from(C):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?a(C,i):void 0}}function a(C,i){(i==null||i>C.length)&&(i=C.length);for(var c=0,m=Array(i);c",apos:"'"};return i.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(c,function(u,d){return m[d]}).replace(/&#?([0-9]+);/gi,function(u,d){var s=parseInt(d,10);return String.fromCharCode(s)}).replace(/&#x?([0-9a-f]+);/gi,function(u,d){var s=parseInt(d,16);return String.fromCharCode(s)})}return C}(),k=r.buildQueryString=function(){function C(i){return Object.keys(i).map(function(c){return encodeURIComponent(c)+"="+encodeURIComponent(i[c])}).join("&")}return C}()},69214:function(x,r){"use strict";r.__esModule=!0,r.throttle=r.sleep=r.debounce=void 0;/** + */var t=r.multiline=function(){function C(i){if(Array.isArray(i))return C(i.join(""));for(var c=i.split("\n"),m,l=n(c),d;!(d=l()).done;)for(var s=d.value,u=0;u",apos:"'"};return i.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(c,function(l,d){return m[d]}).replace(/&#?([0-9]+);/gi,function(l,d){var s=parseInt(d,10);return String.fromCharCode(s)}).replace(/&#x?([0-9a-f]+);/gi,function(l,d){var s=parseInt(d,16);return String.fromCharCode(s)})}return C}(),k=r.buildQueryString=function(){function C(i){return Object.keys(i).map(function(c){return encodeURIComponent(c)+"="+encodeURIComponent(i[c])}).join("&")}return C}()},69214:function(T,r){"use strict";r.__esModule=!0,r.throttle=r.sleep=r.debounce=void 0;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var n=r.debounce=function(){function t(o,p,b){b===void 0&&(b=!1);var y;return function(){for(var I=arguments.length,k=new Array(I),C=0;C=p)o.apply(null,C),b=c;else{var m;y=setTimeout(function(){return I.apply(void 0,C)},p-(c-((m=b)!=null?m:0)))}}return I}()}return t}()},97450:function(x,r,n){"use strict";r.__esModule=!0,r.vecSubtract=r.vecScale=r.vecNormalize=r.vecMultiply=r.vecLength=r.vecInverse=r.vecDivide=r.vecAdd=void 0;var e=n(88510);/** + */var n=r.debounce=function(){function t(o,p,b){b===void 0&&(b=!1);var y;return function(){for(var I=arguments.length,k=new Array(I),C=0;C=p)o.apply(null,C),b=c;else{var m;y=setTimeout(function(){return I.apply(void 0,C)},p-(c-((m=b)!=null?m:0)))}}return I}()}return t}()},97450:function(T,r,n){"use strict";r.__esModule=!0,r.vecSubtract=r.vecScale=r.vecNormalize=r.vecMultiply=r.vecLength=r.vecInverse=r.vecDivide=r.vecAdd=void 0;var e=n(88510);/** * N-dimensional vector manipulation functions. * * Vectors are plain number arrays, i.e. [x, y, z]. @@ -62,11 +62,11 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var a=function(d,s){return d+s},t=function(d,s){return d-s},o=function(d,s){return d*s},p=function(d,s){return d/s},b=r.vecAdd=function(){function u(){for(var d=arguments.length,s=new Array(d),l=0;l0&&(g.style=T),g}return v}(),h=r.computeBoxClassName=function(){function v(f){var g=f.textColor||f.color,V=f.backgroundColor;return(0,e.classes)([C(g)&&"color-"+g,C(V)&&"color-bg-"+V])}return v}(),N=r.Box=function(){function v(f){var g=f.as,V=g===void 0?"div":g,B=f.className,S=f.children,L=b(f,p);if(typeof S=="function")return S(l(f));var w=typeof B=="string"?B+" "+h(L):h(L),A=l(L);return(0,a.createVNode)(t.VNodeFlags.HtmlElement,V,w,S,t.ChildFlags.UnknownChildren,A)}return v}();N.defaultHooks=e.pureComponentHooks},96184:function(x,r,n){"use strict";r.__esModule=!0,r.ButtonInput=r.ButtonConfirm=r.ButtonCheckbox=r.Button=void 0;var e=n(89005),a=n(35840),t=n(92986),o=n(9394),p=n(55937),b=n(1331),y=n(62147),I=["className","fluid","translucent","icon","iconRotation","iconSpin","color","textColor","disabled","selected","tooltip","tooltipPosition","ellipsis","compact","circular","content","iconColor","iconRight","iconStyle","children","onclick","onClick","multiLine"],k=["checked"],C=["confirmContent","confirmColor","confirmIcon","icon","color","content","onClick"],i=["fluid","content","icon","iconRotation","iconSpin","tooltip","tooltipPosition","color","disabled","multiLine"];/** + */function b(v,f){if(v==null)return{};var N={};for(var V in v)if({}.hasOwnProperty.call(v,V)){if(f.includes(V))continue;N[V]=v[V]}return N}var y=r.unit=function(){function v(f){if(typeof f=="string")return f.endsWith("px")?parseFloat(f)/12+"rem":f;if(typeof f=="number")return f+"rem"}return v}(),I=r.halfUnit=function(){function v(f){if(typeof f=="string")return y(f);if(typeof f=="number")return y(f*.5)}return v}(),k=function(f){return!C(f)},C=function(f){if(typeof f=="string")return o.CSS_COLORS.includes(f)},i=function(f){return function(N,V){(typeof V=="number"||typeof V=="string")&&(N[f]=V)}},c=function(f,N){return function(V,B){(typeof B=="number"||typeof B=="string")&&(V[f]=N(B))}},m=function(f,N){return function(V,B){B&&(V[f]=N)}},l=function(f,N,V){return function(B,S){if(typeof S=="number"||typeof S=="string")for(var L=0;L0&&(N.style=x),N}return v}(),h=r.computeBoxClassName=function(){function v(f){var N=f.textColor||f.color,V=f.backgroundColor;return(0,e.classes)([C(N)&&"color-"+N,C(V)&&"color-bg-"+V])}return v}(),g=r.Box=function(){function v(f){var N=f.as,V=N===void 0?"div":N,B=f.className,S=f.children,L=b(f,p);if(typeof S=="function")return S(u(f));var w=typeof B=="string"?B+" "+h(L):h(L),A=u(L);return(0,a.createVNode)(t.VNodeFlags.HtmlElement,V,w,S,t.ChildFlags.UnknownChildren,A)}return v}();g.defaultHooks=e.pureComponentHooks},96184:function(T,r,n){"use strict";r.__esModule=!0,r.ButtonInput=r.ButtonConfirm=r.ButtonCheckbox=r.Button=void 0;var e=n(89005),a=n(35840),t=n(92986),o=n(9394),p=n(55937),b=n(1331),y=n(62147),I=["className","fluid","translucent","icon","iconRotation","iconSpin","color","textColor","disabled","selected","tooltip","tooltipPosition","ellipsis","compact","circular","content","iconColor","iconRight","iconStyle","children","onclick","onClick","multiLine"],k=["checked"],C=["confirmContent","confirmColor","confirmIcon","icon","color","content","onClick"],i=["fluid","content","icon","iconRotation","iconSpin","tooltip","tooltipPosition","color","disabled","multiLine"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function c(v,f){v.prototype=Object.create(f.prototype),v.prototype.constructor=v,m(v,f)}function m(v,f){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(g,V){return g.__proto__=V,g},m(v,f)}function u(v,f){if(v==null)return{};var g={};for(var V in v)if({}.hasOwnProperty.call(v,V)){if(f.includes(V))continue;g[V]=v[V]}return g}var d=(0,o.createLogger)("Button"),s=r.Button=function(){function v(f){var g=f.className,V=f.fluid,B=f.translucent,S=f.icon,L=f.iconRotation,w=f.iconSpin,A=f.color,T=f.textColor,E=f.disabled,P=f.selected,D=f.tooltip,M=f.tooltipPosition,O=f.ellipsis,R=f.compact,j=f.circular,_=f.content,W=f.iconColor,z=f.iconRight,K=f.iconStyle,G=f.children,Q=f.onclick,J=f.onClick,ue=f.multiLine,ie=u(f,I),pe=!!(_||G);Q&&d.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"),ie.onClick=function(q){!E&&J&&J(q)};var te=(0,e.normalizeProps)((0,e.createComponentVNode)(2,p.Box,Object.assign({className:(0,a.classes)(["Button",V&&"Button--fluid",E&&"Button--disabled"+(B?"--translucent":""),P&&"Button--selected"+(B?"--translucent":""),pe&&"Button--hasContent",O&&"Button--ellipsis",j&&"Button--circular",R&&"Button--compact",z&&"Button--iconRight",ue&&"Button--multiLine",A&&typeof A=="string"?"Button--color--"+A+(B?"--translucent":""):"Button--color--default"+(B?"--translucent":""),g]),tabIndex:!E&&"0",color:T,onKeyDown:function(){function q(ne){var le=window.event?ne.which:ne.keyCode;if(le===t.KEY_SPACE||le===t.KEY_ENTER){ne.preventDefault(),!E&&J&&J(ne);return}if(le===t.KEY_ESCAPE){ne.preventDefault();return}}return q}()},ie,{children:[S&&!z&&(0,e.createComponentVNode)(2,b.Icon,{name:S,color:W,rotation:L,spin:w,style:K}),_,G,S&&z&&(0,e.createComponentVNode)(2,b.Icon,{name:S,color:W,rotation:L,spin:w,style:K})]})));return D&&(te=(0,e.createComponentVNode)(2,y.Tooltip,{content:D,position:M,children:te})),te}return v}();s.defaultHooks=a.pureComponentHooks;var l=r.ButtonCheckbox=function(){function v(f){var g=f.checked,V=u(f,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({color:"transparent",icon:g?"check-square-o":"square-o",selected:g},V)))}return v}();s.Checkbox=l;var h=r.ButtonConfirm=function(v){function f(){var V;return V=v.call(this)||this,V.handleClick=function(){V.state.clickedOnce&&V.setClickedOnce(!1)},V.state={clickedOnce:!1},V}c(f,v);var g=f.prototype;return g.setClickedOnce=function(){function V(B){var S=this;this.setState({clickedOnce:B}),B?setTimeout(function(){return window.addEventListener("click",S.handleClick)}):window.removeEventListener("click",this.handleClick)}return V}(),g.render=function(){function V(){var B=this,S=this.props,L=S.confirmContent,w=L===void 0?"Confirm?":L,A=S.confirmColor,T=A===void 0?"bad":A,E=S.confirmIcon,P=S.icon,D=S.color,M=S.content,O=S.onClick,R=u(S,C);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({content:this.state.clickedOnce?w:M,icon:this.state.clickedOnce?E:P,color:this.state.clickedOnce?T:D,onClick:function(){function j(_){return B.state.clickedOnce?O==null?void 0:O(_):B.setClickedOnce(!0)}return j}()},R)))}return V}(),f}(e.Component);s.Confirm=h;var N=r.ButtonInput=function(v){function f(){var V;return V=v.call(this)||this,V.inputRef=void 0,V.inputRef=(0,e.createRef)(),V.state={inInput:!1},V}c(f,v);var g=f.prototype;return g.setInInput=function(){function V(B){var S=this.props.disabled;if(!S&&(this.setState({inInput:B}),this.inputRef)){var L=this.inputRef.current;if(B){L.value=this.props.currentValue||"";try{L.focus(),L.select()}catch(w){}}}}return V}(),g.commitResult=function(){function V(B){if(this.inputRef){var S=this.inputRef.current,L=S.value!=="";if(L){this.props.onCommit(B,S.value);return}else{if(!this.props.defaultValue)return;this.props.onCommit(B,this.props.defaultValue)}}}return V}(),g.render=function(){function V(){var B=this,S=this.props,L=S.fluid,w=S.content,A=S.icon,T=S.iconRotation,E=S.iconSpin,P=S.tooltip,D=S.tooltipPosition,M=S.color,O=M===void 0?"default":M,R=S.disabled,j=S.multiLine,_=u(S,i),W=(0,e.normalizeProps)((0,e.createComponentVNode)(2,p.Box,Object.assign({className:(0,a.classes)(["Button",L&&"Button--fluid",R&&"Button--disabled","Button--color--"+O,j+"Button--multiLine"])},_,{onClick:function(){function z(){return B.setInInput(!0)}return z}(),children:[A&&(0,e.createComponentVNode)(2,b.Icon,{name:A,rotation:T,spin:E}),(0,e.createVNode)(1,"div",null,w,0),(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:this.state.inInput?void 0:"none","text-align":"left"},onBlur:function(){function z(K){B.state.inInput&&(B.setInInput(!1),B.commitResult(K))}return z}(),onKeyDown:function(){function z(K){if(K.keyCode===t.KEY_ENTER){B.setInInput(!1),B.commitResult(K);return}K.keyCode===t.KEY_ESCAPE&&B.setInInput(!1)}return z}()},null,this.inputRef)]})));return P&&(W=(0,e.createComponentVNode)(2,y.Tooltip,{content:P,position:D,children:W})),W}return V}(),f}(e.Component);s.Input=N},18982:function(x,r,n){"use strict";r.__esModule=!0,r.ByondUi=void 0;var e=n(89005),a=n(35840),t=n(69214),o=n(9394),p=n(55937),b=["params"],y=["params"],I=["parent","params"];function k(h,N){if(h==null)return{};var v={};for(var f in h)if({}.hasOwnProperty.call(h,f)){if(N.includes(f))continue;v[f]=h[f]}return v}function C(h,N){h.prototype=Object.create(N.prototype),h.prototype.constructor=h,i(h,N)}function i(h,N){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(v,f){return v.__proto__=f,v},i(h,N)}/** + */function c(v,f){v.prototype=Object.create(f.prototype),v.prototype.constructor=v,m(v,f)}function m(v,f){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(N,V){return N.__proto__=V,N},m(v,f)}function l(v,f){if(v==null)return{};var N={};for(var V in v)if({}.hasOwnProperty.call(v,V)){if(f.includes(V))continue;N[V]=v[V]}return N}var d=(0,o.createLogger)("Button"),s=r.Button=function(){function v(f){var N=f.className,V=f.fluid,B=f.translucent,S=f.icon,L=f.iconRotation,w=f.iconSpin,A=f.color,x=f.textColor,E=f.disabled,P=f.selected,D=f.tooltip,M=f.tooltipPosition,O=f.ellipsis,R=f.compact,j=f.circular,_=f.content,W=f.iconColor,z=f.iconRight,K=f.iconStyle,G=f.children,Q=f.onclick,J=f.onClick,ue=f.multiLine,ie=l(f,I),pe=!!(_||G);Q&&d.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"),ie.onClick=function(q){!E&&J&&J(q)};var te=(0,e.normalizeProps)((0,e.createComponentVNode)(2,p.Box,Object.assign({className:(0,a.classes)(["Button",V&&"Button--fluid",E&&"Button--disabled"+(B?"--translucent":""),P&&"Button--selected"+(B?"--translucent":""),pe&&"Button--hasContent",O&&"Button--ellipsis",j&&"Button--circular",R&&"Button--compact",z&&"Button--iconRight",ue&&"Button--multiLine",A&&typeof A=="string"?"Button--color--"+A+(B?"--translucent":""):"Button--color--default"+(B?"--translucent":""),N]),tabIndex:!E&&"0",color:x,onKeyDown:function(){function q(ne){var le=window.event?ne.which:ne.keyCode;if(le===t.KEY_SPACE||le===t.KEY_ENTER){ne.preventDefault(),!E&&J&&J(ne);return}if(le===t.KEY_ESCAPE){ne.preventDefault();return}}return q}()},ie,{children:[S&&!z&&(0,e.createComponentVNode)(2,b.Icon,{name:S,color:W,rotation:L,spin:w,style:K}),_,G,S&&z&&(0,e.createComponentVNode)(2,b.Icon,{name:S,color:W,rotation:L,spin:w,style:K})]})));return D&&(te=(0,e.createComponentVNode)(2,y.Tooltip,{content:D,position:M,children:te})),te}return v}();s.defaultHooks=a.pureComponentHooks;var u=r.ButtonCheckbox=function(){function v(f){var N=f.checked,V=l(f,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({color:"transparent",icon:N?"check-square-o":"square-o",selected:N},V)))}return v}();s.Checkbox=u;var h=r.ButtonConfirm=function(v){function f(){var V;return V=v.call(this)||this,V.handleClick=function(){V.state.clickedOnce&&V.setClickedOnce(!1)},V.state={clickedOnce:!1},V}c(f,v);var N=f.prototype;return N.setClickedOnce=function(){function V(B){var S=this;this.setState({clickedOnce:B}),B?setTimeout(function(){return window.addEventListener("click",S.handleClick)}):window.removeEventListener("click",this.handleClick)}return V}(),N.render=function(){function V(){var B=this,S=this.props,L=S.confirmContent,w=L===void 0?"Confirm?":L,A=S.confirmColor,x=A===void 0?"bad":A,E=S.confirmIcon,P=S.icon,D=S.color,M=S.content,O=S.onClick,R=l(S,C);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({content:this.state.clickedOnce?w:M,icon:this.state.clickedOnce?E:P,color:this.state.clickedOnce?x:D,onClick:function(){function j(_){return B.state.clickedOnce?O==null?void 0:O(_):B.setClickedOnce(!0)}return j}()},R)))}return V}(),f}(e.Component);s.Confirm=h;var g=r.ButtonInput=function(v){function f(){var V;return V=v.call(this)||this,V.inputRef=void 0,V.inputRef=(0,e.createRef)(),V.state={inInput:!1},V}c(f,v);var N=f.prototype;return N.setInInput=function(){function V(B){var S=this.props.disabled;if(!S&&(this.setState({inInput:B}),this.inputRef)){var L=this.inputRef.current;if(B){L.value=this.props.currentValue||"";try{L.focus(),L.select()}catch(w){}}}}return V}(),N.commitResult=function(){function V(B){if(this.inputRef){var S=this.inputRef.current,L=S.value!=="";if(L){this.props.onCommit(B,S.value);return}else{if(!this.props.defaultValue)return;this.props.onCommit(B,this.props.defaultValue)}}}return V}(),N.render=function(){function V(){var B=this,S=this.props,L=S.fluid,w=S.content,A=S.icon,x=S.iconRotation,E=S.iconSpin,P=S.tooltip,D=S.tooltipPosition,M=S.color,O=M===void 0?"default":M,R=S.disabled,j=S.multiLine,_=l(S,i),W=(0,e.normalizeProps)((0,e.createComponentVNode)(2,p.Box,Object.assign({className:(0,a.classes)(["Button",L&&"Button--fluid",R&&"Button--disabled","Button--color--"+O,j+"Button--multiLine"])},_,{onClick:function(){function z(){return B.setInInput(!0)}return z}(),children:[A&&(0,e.createComponentVNode)(2,b.Icon,{name:A,rotation:x,spin:E}),(0,e.createVNode)(1,"div",null,w,0),(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:this.state.inInput?void 0:"none","text-align":"left"},onBlur:function(){function z(K){B.state.inInput&&(B.setInInput(!1),B.commitResult(K))}return z}(),onKeyDown:function(){function z(K){if(K.keyCode===t.KEY_ENTER){B.setInInput(!1),B.commitResult(K);return}K.keyCode===t.KEY_ESCAPE&&B.setInInput(!1)}return z}()},null,this.inputRef)]})));return P&&(W=(0,e.createComponentVNode)(2,y.Tooltip,{content:P,position:D,children:W})),W}return V}(),f}(e.Component);s.Input=g},18982:function(T,r,n){"use strict";r.__esModule=!0,r.ByondUi=void 0;var e=n(89005),a=n(35840),t=n(69214),o=n(9394),p=n(55937),b=["params"],y=["params"],I=["parent","params"];function k(h,g){if(h==null)return{};var v={};for(var f in h)if({}.hasOwnProperty.call(h,f)){if(g.includes(f))continue;v[f]=h[f]}return v}function C(h,g){h.prototype=Object.create(g.prototype),h.prototype.constructor=h,i(h,g)}function i(h,g){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(v,f){return v.__proto__=f,v},i(h,g)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var c=(0,o.createLogger)("ByondUi"),m=[],u=function(N){var v=m.length;m.push(null);var f=N||"byondui_"+v;return c.log("allocated '"+f+"'"),{render:function(){function g(V){c.log("rendering '"+f+"'"),m[v]=f,Byond.winset(f,V)}return g}(),unmount:function(){function g(){c.log("unmounting '"+f+"'"),m[v]=null,Byond.winset(f,{parent:""})}return g}()}};window.addEventListener("beforeunload",function(){for(var h=0;h0){var M=D[0],O=D[D.length-1];D.push([P[0]+T,O[1]]),D.push([P[0]+T,-T]),D.push([-T,-T]),D.push([-T,M[1]])}var R=C(D);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({position:"relative"},E,{children:function(){function j(_){return(0,e.normalizeProps)((0,e.createVNode)(1,"div",null,(0,e.createVNode)(32,"svg",null,(0,e.createVNode)(32,"polyline",null,null,1,{transform:"scale(1, -1) translate(0, -"+P[1]+")",fill:S,stroke:w,"stroke-width":T,points:R}),2,{viewBox:"0 0 "+P[0]+" "+P[1],preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"}}),2,Object.assign({},_),null,h.ref))}return j}()})))}return l}(),d}(e.Component);i.defaultHooks=t.pureComponentHooks;var c=function(d){return null},m=r.Chart={Line:i}},4796:function(x,r,n){"use strict";r.__esModule=!0,r.Collapsible=void 0;var e=n(89005),a=n(55937),t=n(96184),o=["children","color","title","buttons","contentStyle"];function p(k,C){if(k==null)return{};var i={};for(var c in k)if({}.hasOwnProperty.call(k,c)){if(C.includes(c))continue;i[c]=k[c]}return i}function b(k,C){k.prototype=Object.create(C.prototype),k.prototype.constructor=k,y(k,C)}function y(k,C){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,c){return i.__proto__=c,i},y(k,C)}/** +*/var k=function(d,s,u,h){if(d.length===0)return[];var g=(0,a.zipWith)(Math.min).apply(void 0,d),v=(0,a.zipWith)(Math.max).apply(void 0,d);u!==void 0&&(g[0]=u[0],v[0]=u[1]),h!==void 0&&(g[1]=h[0],v[1]=h[1]);var f=(0,a.map)(function(N){return(0,a.zipWith)(function(V,B,S,L){return(V-B)/(S-B)*L})(N,g,v,s)})(d);return f},C=function(d){for(var s="",u=0;u0){var M=D[0],O=D[D.length-1];D.push([P[0]+x,O[1]]),D.push([P[0]+x,-x]),D.push([-x,-x]),D.push([-x,M[1]])}var R=C(D);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({position:"relative"},E,{children:function(){function j(_){return(0,e.normalizeProps)((0,e.createVNode)(1,"div",null,(0,e.createVNode)(32,"svg",null,(0,e.createVNode)(32,"polyline",null,null,1,{transform:"scale(1, -1) translate(0, -"+P[1]+")",fill:S,stroke:w,"stroke-width":x,points:R}),2,{viewBox:"0 0 "+P[0]+" "+P[1],preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"}}),2,Object.assign({},_),null,h.ref))}return j}()})))}return u}(),d}(e.Component);i.defaultHooks=t.pureComponentHooks;var c=function(d){return null},m=r.Chart={Line:i}},4796:function(T,r,n){"use strict";r.__esModule=!0,r.Collapsible=void 0;var e=n(89005),a=n(55937),t=n(96184),o=["children","color","title","buttons","contentStyle"];function p(k,C){if(k==null)return{};var i={};for(var c in k)if({}.hasOwnProperty.call(k,c)){if(C.includes(c))continue;i[c]=k[c]}return i}function b(k,C){k.prototype=Object.create(C.prototype),k.prototype.constructor=k,y(k,C)}function y(k,C){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,c){return i.__proto__=c,i},y(k,C)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var I=r.Collapsible=function(k){function C(c){var m;m=k.call(this,c)||this;var u=c.open;return m.state={open:u||!1},m}b(C,k);var i=C.prototype;return i.render=function(){function c(){var m=this,u=this.props,d=this.state.open,s=u.children,l=u.color,h=l===void 0?"default":l,N=u.title,v=u.buttons,f=u.contentStyle,g=p(u,o);return(0,e.createComponentVNode)(2,a.Box,{className:"Collapsible",children:[(0,e.createVNode)(1,"div","Table",[(0,e.createVNode)(1,"div","Table__cell",(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({fluid:!0,color:h,icon:d?"chevron-down":"chevron-right",onClick:function(){function V(){return m.setState({open:!d})}return V}()},g,{children:N}))),2),v&&(0,e.createVNode)(1,"div","Table__cell Table__cell--collapsing",v,0)],0),d&&(0,e.createComponentVNode)(2,a.Box,{mt:1,style:f,children:s})]})}return c}(),C}(e.Component)},88894:function(x,r,n){"use strict";r.__esModule=!0,r.ColorBox=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["content","children","className","color","backgroundColor"];/** +*/var I=r.Collapsible=function(k){function C(c){var m;m=k.call(this,c)||this;var l=c.open;return m.state={open:l||!1},m}b(C,k);var i=C.prototype;return i.render=function(){function c(){var m=this,l=this.props,d=this.state.open,s=l.children,u=l.color,h=u===void 0?"default":u,g=l.title,v=l.buttons,f=l.contentStyle,N=p(l,o);return(0,e.createComponentVNode)(2,a.Box,{className:"Collapsible",children:[(0,e.createVNode)(1,"div","Table",[(0,e.createVNode)(1,"div","Table__cell",(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({fluid:!0,color:h,icon:d?"chevron-down":"chevron-right",onClick:function(){function V(){return m.setState({open:!d})}return V}()},N,{children:g}))),2),v&&(0,e.createVNode)(1,"div","Table__cell Table__cell--collapsing",v,0)],0),d&&(0,e.createComponentVNode)(2,a.Box,{mt:1,style:f,children:s})]})}return c}(),C}(e.Component)},88894:function(T,r,n){"use strict";r.__esModule=!0,r.ColorBox=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["content","children","className","color","backgroundColor"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function p(y,I){if(y==null)return{};var k={};for(var C in y)if({}.hasOwnProperty.call(y,C)){if(I.includes(C))continue;k[C]=y[C]}return k}var b=r.ColorBox=function(){function y(I){var k=I.content,C=I.children,i=I.className,c=I.color,m=I.backgroundColor,u=p(I,o);return u.color=k?null:"transparent",u.backgroundColor=c||m,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["ColorBox",i,(0,t.computeBoxClassName)(u)]),k||".",0,Object.assign({},(0,t.computeBoxProps)(u))))}return y}();b.defaultHooks=a.pureComponentHooks},73379:function(x,r,n){"use strict";r.__esModule=!0,r.Countdown=void 0;var e=n(89005),a=n(55937),t=["format"];function o(I,k){if(I==null)return{};var C={};for(var i in I)if({}.hasOwnProperty.call(I,i)){if(k.includes(i))continue;C[i]=I[i]}return C}function p(I,k){I.prototype=Object.create(k.prototype),I.prototype.constructor=I,b(I,k)}function b(I,k){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(C,i){return C.__proto__=i,C},b(I,k)}var y=r.Countdown=function(I){function k(i){var c;return c=I.call(this,i)||this,c.timer=null,c.state={value:Math.max(i.timeLeft*100,0)},c}p(k,I);var C=k.prototype;return C.tick=function(){function i(){var c=Math.max(this.state.value-this.props.rate,0);c<=0&&clearInterval(this.timer),this.setState(function(m){return{value:c}})}return i}(),C.componentDidMount=function(){function i(){var c=this;this.timer=setInterval(function(){return c.tick()},this.props.rate)}return i}(),C.componentWillUnmount=function(){function i(){clearInterval(this.timer)}return i}(),C.componentDidUpdate=function(){function i(c){var m=this;this.props.current!==c.current&&this.setState(function(u){return{value:Math.max(m.props.timeLeft*100,0)}}),this.timer||this.componentDidMount()}return i}(),C.render=function(){function i(){var c=this.props,m=c.format,u=o(c,t),d=new Date(this.state.value).toISOString().slice(11,19);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({as:"span"},u,{children:m?m(this.state.value,d):d})))}return i}(),k}(e.Component);y.defaultProps={rate:1e3}},61940:function(x,r,n){"use strict";r.__esModule=!0,r.Dimmer=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["className","children"];/** + */function p(y,I){if(y==null)return{};var k={};for(var C in y)if({}.hasOwnProperty.call(y,C)){if(I.includes(C))continue;k[C]=y[C]}return k}var b=r.ColorBox=function(){function y(I){var k=I.content,C=I.children,i=I.className,c=I.color,m=I.backgroundColor,l=p(I,o);return l.color=k?null:"transparent",l.backgroundColor=c||m,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["ColorBox",i,(0,t.computeBoxClassName)(l)]),k||".",0,Object.assign({},(0,t.computeBoxProps)(l))))}return y}();b.defaultHooks=a.pureComponentHooks},73379:function(T,r,n){"use strict";r.__esModule=!0,r.Countdown=void 0;var e=n(89005),a=n(55937),t=["format"];function o(I,k){if(I==null)return{};var C={};for(var i in I)if({}.hasOwnProperty.call(I,i)){if(k.includes(i))continue;C[i]=I[i]}return C}function p(I,k){I.prototype=Object.create(k.prototype),I.prototype.constructor=I,b(I,k)}function b(I,k){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(C,i){return C.__proto__=i,C},b(I,k)}var y=r.Countdown=function(I){function k(i){var c;return c=I.call(this,i)||this,c.timer=null,c.state={value:Math.max(i.timeLeft*100,0)},c}p(k,I);var C=k.prototype;return C.tick=function(){function i(){var c=Math.max(this.state.value-this.props.rate,0);c<=0&&clearInterval(this.timer),this.setState(function(m){return{value:c}})}return i}(),C.componentDidMount=function(){function i(){var c=this;this.timer=setInterval(function(){return c.tick()},this.props.rate)}return i}(),C.componentWillUnmount=function(){function i(){clearInterval(this.timer)}return i}(),C.componentDidUpdate=function(){function i(c){var m=this;this.props.current!==c.current&&this.setState(function(l){return{value:Math.max(m.props.timeLeft*100,0)}}),this.timer||this.componentDidMount()}return i}(),C.render=function(){function i(){var c=this.props,m=c.format,l=o(c,t),d=new Date(this.state.value).toISOString().slice(11,19);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({as:"span"},l,{children:m?m(this.state.value,d):d})))}return i}(),k}(e.Component);y.defaultProps={rate:1e3}},61940:function(T,r,n){"use strict";r.__esModule=!0,r.Dimmer=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["className","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function p(y,I){if(y==null)return{};var k={};for(var C in y)if({}.hasOwnProperty.call(y,C)){if(I.includes(C))continue;k[C]=y[C]}return k}var b=r.Dimmer=function(){function y(I){var k=I.className,C=I.children,i=p(I,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Dimmer"].concat(k))},i,{children:(0,e.createVNode)(1,"div","Dimmer__inner",C,0)})))}return y}()},13605:function(x,r,n){"use strict";r.__esModule=!0,r.Divider=void 0;var e=n(89005),a=n(35840);/** + */function p(y,I){if(y==null)return{};var k={};for(var C in y)if({}.hasOwnProperty.call(y,C)){if(I.includes(C))continue;k[C]=y[C]}return k}var b=r.Dimmer=function(){function y(I){var k=I.className,C=I.children,i=p(I,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Dimmer"].concat(k))},i,{children:(0,e.createVNode)(1,"div","Dimmer__inner",C,0)})))}return y}()},13605:function(T,r,n){"use strict";r.__esModule=!0,r.Divider=void 0;var e=n(89005),a=n(35840);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.Divider=function(){function o(p){var b=p.vertical,y=p.hidden;return(0,e.createVNode)(1,"div",(0,a.classes)(["Divider",y&&"Divider--hidden",b?"Divider--vertical":"Divider--horizontal"]))}return o}()},60218:function(x,r,n){"use strict";r.__esModule=!0,r.DmIcon=void 0;var e=n(89005),a=n(79140),t=n(46085),o=n(91225),p=["className","direction","fallback","frame","icon_state","movement"];function b(d,s){if(d==null)return{};var l={};for(var h in d)if({}.hasOwnProperty.call(d,h)){if(s.includes(h))continue;l[h]=d[h]}return l}function y(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */y=function(){return s};var d,s={},l=Object.prototype,h=l.hasOwnProperty,N=Object.defineProperty||function(te,q,ne){te[q]=ne.value},v=typeof Symbol=="function"?Symbol:{},f=v.iterator||"@@iterator",g=v.asyncIterator||"@@asyncIterator",V=v.toStringTag||"@@toStringTag";function B(te,q,ne){return Object.defineProperty(te,q,{value:ne,enumerable:!0,configurable:!0,writable:!0}),te[q]}try{B({},"")}catch(te){B=function(ne,le,ee){return ne[le]=ee}}function S(te,q,ne,le){var ee=q&&q.prototype instanceof D?q:D,re=Object.create(ee.prototype),oe=new ie(le||[]);return N(re,"_invoke",{value:G(te,ne,oe)}),re}function L(te,q,ne){try{return{type:"normal",arg:te.call(q,ne)}}catch(le){return{type:"throw",arg:le}}}s.wrap=S;var w="suspendedStart",A="suspendedYield",T="executing",E="completed",P={};function D(){}function M(){}function O(){}var R={};B(R,f,function(){return this});var j=Object.getPrototypeOf,_=j&&j(j(pe([])));_&&_!==l&&h.call(_,f)&&(R=_);var W=O.prototype=D.prototype=Object.create(R);function z(te){["next","throw","return"].forEach(function(q){B(te,q,function(ne){return this._invoke(q,ne)})})}function K(te,q){function ne(ee,re,oe,fe){var me=L(te[ee],te,re);if(me.type!=="throw"){var Y=me.arg,ve=Y.value;return ve&&typeof ve=="object"&&h.call(ve,"__await")?q.resolve(ve.__await).then(function(he){ne("next",he,oe,fe)},function(he){ne("throw",he,oe,fe)}):q.resolve(ve).then(function(he){Y.value=he,oe(Y)},function(he){return ne("throw",he,oe,fe)})}fe(me.arg)}var le;N(this,"_invoke",{value:function(){function ee(re,oe){function fe(){return new q(function(me,Y){ne(re,oe,me,Y)})}return le=le?le.then(fe,fe):fe()}return ee}()})}function G(te,q,ne){var le=w;return function(ee,re){if(le===T)throw Error("Generator is already running");if(le===E){if(ee==="throw")throw re;return{value:d,done:!0}}for(ne.method=ee,ne.arg=re;;){var oe=ne.delegate;if(oe){var fe=Q(oe,ne);if(fe){if(fe===P)continue;return fe}}if(ne.method==="next")ne.sent=ne._sent=ne.arg;else if(ne.method==="throw"){if(le===w)throw le=E,ne.arg;ne.dispatchException(ne.arg)}else ne.method==="return"&&ne.abrupt("return",ne.arg);le=T;var me=L(te,q,ne);if(me.type==="normal"){if(le=ne.done?E:A,me.arg===P)continue;return{value:me.arg,done:ne.done}}me.type==="throw"&&(le=E,ne.method="throw",ne.arg=me.arg)}}}function Q(te,q){var ne=q.method,le=te.iterator[ne];if(le===d)return q.delegate=null,ne==="throw"&&te.iterator.return&&(q.method="return",q.arg=d,Q(te,q),q.method==="throw")||ne!=="return"&&(q.method="throw",q.arg=new TypeError("The iterator does not provide a '"+ne+"' method")),P;var ee=L(le,te.iterator,q.arg);if(ee.type==="throw")return q.method="throw",q.arg=ee.arg,q.delegate=null,P;var re=ee.arg;return re?re.done?(q[te.resultName]=re.value,q.next=te.nextLoc,q.method!=="return"&&(q.method="next",q.arg=d),q.delegate=null,P):re:(q.method="throw",q.arg=new TypeError("iterator result is not an object"),q.delegate=null,P)}function J(te){var q={tryLoc:te[0]};1 in te&&(q.catchLoc=te[1]),2 in te&&(q.finallyLoc=te[2],q.afterLoc=te[3]),this.tryEntries.push(q)}function ue(te){var q=te.completion||{};q.type="normal",delete q.arg,te.completion=q}function ie(te){this.tryEntries=[{tryLoc:"root"}],te.forEach(J,this),this.reset(!0)}function pe(te){if(te||te===""){var q=te[f];if(q)return q.call(te);if(typeof te.next=="function")return te;if(!isNaN(te.length)){var ne=-1,le=function(){function ee(){for(;++ne=0;--ee){var re=this.tryEntries[ee],oe=re.completion;if(re.tryLoc==="root")return le("end");if(re.tryLoc<=this.prev){var fe=h.call(re,"catchLoc"),me=h.call(re,"finallyLoc");if(fe&&me){if(this.prev=0;--le){var ee=this.tryEntries[le];if(ee.tryLoc<=this.prev&&h.call(ee,"finallyLoc")&&this.prev=0;--ne){var le=this.tryEntries[ne];if(le.finallyLoc===q)return this.complete(le.completion,le.afterLoc),ue(le),P}}return te}(),catch:function(){function te(q){for(var ne=this.tryEntries.length-1;ne>=0;--ne){var le=this.tryEntries[ne];if(le.tryLoc===q){var ee=le.completion;if(ee.type==="throw"){var re=ee.arg;ue(le)}return re}}throw Error("illegal catch attempt")}return te}(),delegateYield:function(){function te(q,ne,le){return this.delegate={iterator:pe(q),resultName:ne,nextLoc:le},this.method==="next"&&(this.arg=d),P}return te}()},s}function I(d,s,l,h,N,v,f){try{var g=d[v](f),V=g.value}catch(B){return void l(B)}g.done?s(V):Promise.resolve(V).then(h,N)}function k(d){return function(){var s=this,l=arguments;return new Promise(function(h,N){var v=d.apply(s,l);function f(V){I(v,h,N,f,g,"next",V)}function g(V){I(v,h,N,f,g,"throw",V)}f(void 0)})}}function C(d,s){d.prototype=Object.create(s.prototype),d.prototype.constructor=d,i(d,s)}function i(d,s){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,h){return l.__proto__=h,l},i(d,s)}var c=function(d){return d[d.NORTH=1]="NORTH",d[d.SOUTH=2]="SOUTH",d[d.EAST=4]="EAST",d[d.WEST=8]="WEST",d[d.NORTHEAST=5]="NORTHEAST",d[d.NORTHWEST=9]="NORTHWEST",d[d.SOUTHEAST=6]="SOUTHEAST",d[d.SOUTHWEST=10]="SOUTHWEST",d}(c||{}),m,u=r.DmIcon=function(d){function s(h){var N;return N=d.call(this,h)||this,N.state={iconRef:""},N}C(s,d);var l=s.prototype;return l.fetchRefMap=function(){var h=k(y().mark(function(){function v(){var f,g;return y().wrap(function(){function V(B){for(;;)switch(B.prev=B.next){case 0:return B.prev=0,B.next=3,(0,t.fetchRetry)((0,a.resolveAsset)("icon_ref_map.json"));case 3:return f=B.sent,B.next=6,f.json();case 6:g=B.sent,m=g,this.setState({iconRef:g[this.props.icon]||""}),B.next=14;break;case 11:return B.prev=11,B.t0=B.catch(0),B.abrupt("return");case 14:case"end":return B.stop()}}return V}(),v,this,[[0,11]])}return v}()));function N(){return h.apply(this,arguments)}return N}(),l.componentDidMount=function(){function h(){m?this.setState({iconRef:m[this.props.icon]}):this.fetchRefMap()}return h}(),l.componentDidUpdate=function(){function h(N){N.icon!==this.props.icon&&(m?this.setState({iconRef:m[this.props.icon]}):this.fetchRefMap())}return h}(),l.render=function(){function h(){var N=this.props,v=N.className,f=N.direction,g=f===void 0?c.SOUTH:f,V=N.fallback,B=N.frame,S=B===void 0?1:B,L=N.icon_state,w=N.movement,A=w===void 0?!1:w,T=b(N,p),E=this.state.iconRef,P=E+"?state="+L+"&dir="+g+"&movement="+!!A+"&frame="+S;return E?(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Image,Object.assign({fixErrors:!0,src:P},T))):V||null}return h}(),s}(e.Component)},20342:function(x,r,n){"use strict";r.__esModule=!0,r.DraggableControl=void 0;var e=n(89005),a=n(44879),t=n(35840),o=n(9474);function p(C,i){C.prototype=Object.create(i.prototype),C.prototype.constructor=C,b(C,i)}function b(C,i){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,m){return c.__proto__=m,c},b(C,i)}var y=400,I=function(i,c){return i.screenX*c[0]+i.screenY*c[1]},k=r.DraggableControl=function(C){function i(m){var u;return u=C.call(this,m)||this,u.inputRef=(0,e.createRef)(),u.state={originalValue:m.value,value:m.value,dragging:!1,editing:!1,origin:null,suppressingFlicker:!1},u.flickerTimer=null,u.suppressFlicker=function(){var d=u.props.suppressFlicker;d>0&&(u.setState({suppressingFlicker:!0}),clearTimeout(u.flickerTimer),u.flickerTimer=setTimeout(function(){return u.setState({suppressingFlicker:!1})},d))},u.handleDragStart=function(d){var s=u.props,l=s.value,h=s.dragMatrix,N=s.disabled,v=u.state.editing;v||N||(document.body.style["pointer-events"]="none",u.ref=d.currentTarget,u.setState({originalValue:l,dragging:!1,value:l,origin:I(d,h)}),u.timer=setTimeout(function(){u.setState({dragging:!0})},250),u.dragInterval=setInterval(function(){var f=u.state,g=f.dragging,V=f.value,B=u.props.onDrag;g&&B&&B(d,V)},u.props.updateRate||y),document.addEventListener("mousemove",u.handleDragMove),document.addEventListener("mouseup",u.handleDragEnd))},u.handleDragMove=function(d){var s,l=u.props,h=l.minValue,N=l.maxValue,v=l.step,f=l.dragMatrix,g=l.disabled;if(!g){var V=u.ref.offsetWidth/((N-h)/v),B=(s=u.props.stepPixelSize)!=null?s:V;typeof B=="function"&&(B=B(V)),u.setState(function(S){var L=Object.assign({},S),w=S.origin,A=I(d,f)-w;if(S.dragging){var T=Math.trunc(A/B);L.value=(0,a.clamp)(Math.floor(L.originalValue/v)*v+T*v,h,N)}else Math.abs(A)>4&&(L.dragging=!0);return L})}},u.handleDragEnd=function(d){var s=u.props,l=s.onChange,h=s.onDrag,N=u.state,v=N.dragging,f=N.value;if(document.body.style["pointer-events"]="auto",clearTimeout(u.timer),clearInterval(u.dragInterval),u.setState({originalValue:null,dragging:!1,editing:!v,origin:null}),document.removeEventListener("mousemove",u.handleDragMove),document.removeEventListener("mouseup",u.handleDragEnd),v)u.suppressFlicker(),l&&l(d,f),h&&h(d,f);else if(u.inputRef){var g=u.inputRef.current;g.value=f;try{g.focus(),g.select()}catch(V){}}},u}p(i,C);var c=i.prototype;return c.render=function(){function m(){var u=this,d=this.state,s=d.dragging,l=d.editing,h=d.value,N=d.suppressingFlicker,v=this.props,f=v.animated,g=v.value,V=v.unit,B=v.minValue,S=v.maxValue,L=v.format,w=v.onChange,A=v.onDrag,T=v.children,E=v.height,P=v.lineHeight,D=v.fontSize,M=v.disabled,O=g;(s||N)&&(O=h);var R=function(){function W(z){return z+(V?" "+V:"")}return W}(),j=f&&!s&&!N&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:O,format:L,children:R})||R(L?L(O):O),_=(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:!l||M?"none":void 0,height:E,"line-height":P,"font-size":D},onBlur:function(){function W(z){if(l){var K=(0,a.clamp)(parseFloat(z.target.value),B,S);if(Number.isNaN(K)){u.setState({editing:!1});return}u.setState({editing:!1,value:K}),u.suppressFlicker(),w&&w(z,K),A&&A(z,K)}}return W}(),onKeyDown:function(){function W(z){if(z.keyCode===13){var K=(0,a.clamp)(parseFloat(z.target.value),B,S);if(Number.isNaN(K)){u.setState({editing:!1});return}u.setState({editing:!1,value:K}),u.suppressFlicker(),w&&w(z,K),A&&A(z,K);return}if(z.keyCode===27){u.setState({editing:!1});return}}return W}(),disabled:M},null,this.inputRef);return T({dragging:s,editing:l,value:g,displayValue:O,displayElement:j,inputElement:_,handleDragStart:this.handleDragStart})}return m}(),i}(e.Component);k.defaultHooks=t.pureComponentHooks,k.defaultProps={minValue:-1/0,maxValue:1/0,step:1,suppressFlicker:50,dragMatrix:[1,0]}},87099:function(x,r,n){"use strict";r.__esModule=!0,r.Dropdown=void 0;var e=n(89005),a=n(95996),t=n(35840),o=n(55937),p=n(96184),b=n(1331),y=n(96690),I=["icon","iconRotation","iconSpin","clipSelectedText","color","dropdownStyle","over","nochevron","width","onClick","onSelected","selected","disabled","displayText","buttons"],k=["className"],C;function i(N,v){if(N==null)return{};var f={};for(var g in N)if({}.hasOwnProperty.call(N,g)){if(v.includes(g))continue;f[g]=N[g]}return f}function c(N,v){N.prototype=Object.create(v.prototype),N.prototype.constructor=N,m(N,v)}function m(N,v){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,g){return f.__proto__=g,f},m(N,v)}var u={placement:"left-start",modifiers:[{name:"eventListeners",enabled:!1}]},d={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function N(){return null}return N}()},s="Layout Dropdown__menu",l="Layout Dropdown__menu-scroll",h=r.Dropdown=function(N){function v(g){var V;return V=N.call(this,g)||this,V.menuContents=void 0,V.handleClick=function(){V.state.open&&V.setOpen(!1)},V.state={open:!1,selected:V.props.selected},V.menuContents=null,V}c(v,N);var f=v.prototype;return f.getDOMNode=function(){function g(){return(0,e.findDOMFromVNode)(this.$LI,!0)}return g}(),f.componentDidMount=function(){function g(){var V=this.getDOMNode()}return g}(),f.openMenu=function(){function g(){var V=v.renderedMenu;V===void 0&&(V=document.createElement("div"),V.className=s,document.body.appendChild(V),v.renderedMenu=V);var B=this.getDOMNode();v.currentOpenMenu=B,V.scrollTop=0,V.style.width=this.props.menuWidth||B.offsetWidth+"px",V.style.opacity="1",V.style.pointerEvents="auto",setTimeout(function(){var S;(S=v.renderedMenu)==null||S.focus()},400),this.renderMenuContent()}return g}(),f.closeMenu=function(){function g(){v.currentOpenMenu===this.getDOMNode()&&(v.currentOpenMenu=void 0,v.renderedMenu.style.opacity="0",v.renderedMenu.style.pointerEvents="none")}return g}(),f.componentWillUnmount=function(){function g(){this.closeMenu(),this.setOpen(!1)}return g}(),f.renderMenuContent=function(){function g(){var V=this,B=v.renderedMenu;if(B){B.offsetHeight>200?B.className=l:B.className=s;var S=this.props.options,L=S===void 0?[]:S,w=L.map(function(T){var E,P;return typeof T=="string"?(P=T,E=T):T!==null&&(P=T.displayText,E=T.value),(0,e.createVNode)(1,"div",(0,t.classes)(["Dropdown__menuentry",V.state.selected===E&&"selected"]),P,0,{onClick:function(){function D(){V.setSelected(E)}return D}()},E)}),A=w.length?w:"No Options Found";(0,e.render)((0,e.createVNode)(1,"div",null,A,0),B,function(){var T=v.singletonPopper;T===void 0?(T=(0,a.createPopper)(v.virtualElement,B,Object.assign({},u,{placement:"bottom-start"})),v.singletonPopper=T):(T.setOptions(Object.assign({},u,{placement:"bottom-start"})),T.update())},this.context)}}return g}(),f.setOpen=function(){function g(V){var B=this;this.setState(function(S){return Object.assign({},S,{open:V})}),V?setTimeout(function(){B.openMenu(),window.addEventListener("click",B.handleClick)}):(this.closeMenu(),window.removeEventListener("click",this.handleClick))}return g}(),f.setSelected=function(){function g(V){this.setState(function(B){return Object.assign({},B,{selected:V})}),this.setOpen(!1),this.props.onSelected&&this.props.onSelected(V)}return g}(),f.getOptionValue=function(){function g(V){return typeof V=="string"?V:V.value}return g}(),f.getSelectedIndex=function(){function g(){var V=this,B=this.state.selected||this.props.selected,S=this.props.options,L=S===void 0?[]:S;return L.findIndex(function(w){return V.getOptionValue(w)===B})}return g}(),f.toPrevious=function(){function g(){if(!(this.props.options.length<1)){var V=this.getSelectedIndex(),B=0,S=this.props.options.length-1,L=V>=0;L||(V=B);var w=V===B?S:V-1;this.setSelected(this.getOptionValue(this.props.options[w]))}}return g}(),f.toNext=function(){function g(){if(!(this.props.options.length<1)){var V=this.getSelectedIndex(),B=0,S=this.props.options.length-1,L=V>=0;L||(V=S);var w=V===S?B:V+1;this.setSelected(this.getOptionValue(this.props.options[w]))}}return g}(),f.render=function(){function g(){var V=this,B=this.props,S=B.icon,L=B.iconRotation,w=B.iconSpin,A=B.clipSelectedText,T=A===void 0?!0:A,E=B.color,P=E===void 0?"default":E,D=B.dropdownStyle,M=B.over,O=B.nochevron,R=B.width,j=B.onClick,_=B.onSelected,W=B.selected,z=B.disabled,K=B.displayText,G=B.buttons,Q=i(B,I),J=Q.className,ue=i(Q,k),ie=M?!this.state.open:this.state.open;return(0,e.createComponentVNode)(2,y.Stack,{inline:!0,fill:!0,width:R,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({width:"100%",className:(0,t.classes)(["Dropdown__control","Button","Button--color--"+P,z&&"Button--disabled",J]),onClick:function(){function pe(te){z&&!V.state.open||(V.setOpen(!V.state.open),j&&j(te))}return pe}()},ue,{children:[S&&(0,e.createComponentVNode)(2,b.Icon,{name:S,rotation:L,spin:w,mr:1}),(0,e.createVNode)(1,"span","Dropdown__selected-text",K||this.state.selected,0,{style:{overflow:T?"hidden":"visible"}}),O||(0,e.createVNode)(1,"span","Dropdown__arrow-button",(0,e.createComponentVNode)(2,b.Icon,{name:ie?"chevron-up":"chevron-down"}),2)]})))}),G&&(0,e.createFragment)([(0,e.createComponentVNode)(2,y.Stack.Item,{height:"100%",children:(0,e.createComponentVNode)(2,p.Button,{height:"100%",icon:"chevron-left",disabled:z,onClick:function(){function pe(){z||V.toPrevious()}return pe}()})}),(0,e.createComponentVNode)(2,y.Stack.Item,{height:"100%",children:(0,e.createComponentVNode)(2,p.Button,{height:"100%",icon:"chevron-right",disabled:z,onClick:function(){function pe(){z||V.toNext()}return pe}()})})],4)]})}return g}(),v}(e.Component);C=h,h.renderedMenu=void 0,h.singletonPopper=void 0,h.currentOpenMenu=void 0,h.virtualElement={getBoundingClientRect:function(){function N(){var v,f;return(v=(f=C.currentOpenMenu)==null?void 0:f.getBoundingClientRect())!=null?v:d}return N}()}},39473:function(x,r,n){"use strict";r.__esModule=!0,r.computeFlexProps=r.computeFlexItemProps=r.computeFlexItemClassName=r.computeFlexClassName=r.Flex=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["className","direction","wrap","align","justify","inline","style"],p=["className"],b=["className","style","grow","order","shrink","basis","align"],y=["className"];/** + */var t=r.Divider=function(){function o(p){var b=p.vertical,y=p.hidden;return(0,e.createVNode)(1,"div",(0,a.classes)(["Divider",y&&"Divider--hidden",b?"Divider--vertical":"Divider--horizontal"]))}return o}()},60218:function(T,r,n){"use strict";r.__esModule=!0,r.DmIcon=void 0;var e=n(89005),a=n(79140),t=n(46085),o=n(91225),p=["className","direction","fallback","frame","icon_state","movement"];function b(d,s){if(d==null)return{};var u={};for(var h in d)if({}.hasOwnProperty.call(d,h)){if(s.includes(h))continue;u[h]=d[h]}return u}function y(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */y=function(){return s};var d,s={},u=Object.prototype,h=u.hasOwnProperty,g=Object.defineProperty||function(te,q,ne){te[q]=ne.value},v=typeof Symbol=="function"?Symbol:{},f=v.iterator||"@@iterator",N=v.asyncIterator||"@@asyncIterator",V=v.toStringTag||"@@toStringTag";function B(te,q,ne){return Object.defineProperty(te,q,{value:ne,enumerable:!0,configurable:!0,writable:!0}),te[q]}try{B({},"")}catch(te){B=function(ne,le,ee){return ne[le]=ee}}function S(te,q,ne,le){var ee=q&&q.prototype instanceof D?q:D,re=Object.create(ee.prototype),oe=new ie(le||[]);return g(re,"_invoke",{value:G(te,ne,oe)}),re}function L(te,q,ne){try{return{type:"normal",arg:te.call(q,ne)}}catch(le){return{type:"throw",arg:le}}}s.wrap=S;var w="suspendedStart",A="suspendedYield",x="executing",E="completed",P={};function D(){}function M(){}function O(){}var R={};B(R,f,function(){return this});var j=Object.getPrototypeOf,_=j&&j(j(pe([])));_&&_!==u&&h.call(_,f)&&(R=_);var W=O.prototype=D.prototype=Object.create(R);function z(te){["next","throw","return"].forEach(function(q){B(te,q,function(ne){return this._invoke(q,ne)})})}function K(te,q){function ne(ee,re,oe,fe){var me=L(te[ee],te,re);if(me.type!=="throw"){var Y=me.arg,ve=Y.value;return ve&&typeof ve=="object"&&h.call(ve,"__await")?q.resolve(ve.__await).then(function(he){ne("next",he,oe,fe)},function(he){ne("throw",he,oe,fe)}):q.resolve(ve).then(function(he){Y.value=he,oe(Y)},function(he){return ne("throw",he,oe,fe)})}fe(me.arg)}var le;g(this,"_invoke",{value:function(){function ee(re,oe){function fe(){return new q(function(me,Y){ne(re,oe,me,Y)})}return le=le?le.then(fe,fe):fe()}return ee}()})}function G(te,q,ne){var le=w;return function(ee,re){if(le===x)throw Error("Generator is already running");if(le===E){if(ee==="throw")throw re;return{value:d,done:!0}}for(ne.method=ee,ne.arg=re;;){var oe=ne.delegate;if(oe){var fe=Q(oe,ne);if(fe){if(fe===P)continue;return fe}}if(ne.method==="next")ne.sent=ne._sent=ne.arg;else if(ne.method==="throw"){if(le===w)throw le=E,ne.arg;ne.dispatchException(ne.arg)}else ne.method==="return"&&ne.abrupt("return",ne.arg);le=x;var me=L(te,q,ne);if(me.type==="normal"){if(le=ne.done?E:A,me.arg===P)continue;return{value:me.arg,done:ne.done}}me.type==="throw"&&(le=E,ne.method="throw",ne.arg=me.arg)}}}function Q(te,q){var ne=q.method,le=te.iterator[ne];if(le===d)return q.delegate=null,ne==="throw"&&te.iterator.return&&(q.method="return",q.arg=d,Q(te,q),q.method==="throw")||ne!=="return"&&(q.method="throw",q.arg=new TypeError("The iterator does not provide a '"+ne+"' method")),P;var ee=L(le,te.iterator,q.arg);if(ee.type==="throw")return q.method="throw",q.arg=ee.arg,q.delegate=null,P;var re=ee.arg;return re?re.done?(q[te.resultName]=re.value,q.next=te.nextLoc,q.method!=="return"&&(q.method="next",q.arg=d),q.delegate=null,P):re:(q.method="throw",q.arg=new TypeError("iterator result is not an object"),q.delegate=null,P)}function J(te){var q={tryLoc:te[0]};1 in te&&(q.catchLoc=te[1]),2 in te&&(q.finallyLoc=te[2],q.afterLoc=te[3]),this.tryEntries.push(q)}function ue(te){var q=te.completion||{};q.type="normal",delete q.arg,te.completion=q}function ie(te){this.tryEntries=[{tryLoc:"root"}],te.forEach(J,this),this.reset(!0)}function pe(te){if(te||te===""){var q=te[f];if(q)return q.call(te);if(typeof te.next=="function")return te;if(!isNaN(te.length)){var ne=-1,le=function(){function ee(){for(;++ne=0;--ee){var re=this.tryEntries[ee],oe=re.completion;if(re.tryLoc==="root")return le("end");if(re.tryLoc<=this.prev){var fe=h.call(re,"catchLoc"),me=h.call(re,"finallyLoc");if(fe&&me){if(this.prev=0;--le){var ee=this.tryEntries[le];if(ee.tryLoc<=this.prev&&h.call(ee,"finallyLoc")&&this.prev=0;--ne){var le=this.tryEntries[ne];if(le.finallyLoc===q)return this.complete(le.completion,le.afterLoc),ue(le),P}}return te}(),catch:function(){function te(q){for(var ne=this.tryEntries.length-1;ne>=0;--ne){var le=this.tryEntries[ne];if(le.tryLoc===q){var ee=le.completion;if(ee.type==="throw"){var re=ee.arg;ue(le)}return re}}throw Error("illegal catch attempt")}return te}(),delegateYield:function(){function te(q,ne,le){return this.delegate={iterator:pe(q),resultName:ne,nextLoc:le},this.method==="next"&&(this.arg=d),P}return te}()},s}function I(d,s,u,h,g,v,f){try{var N=d[v](f),V=N.value}catch(B){return void u(B)}N.done?s(V):Promise.resolve(V).then(h,g)}function k(d){return function(){var s=this,u=arguments;return new Promise(function(h,g){var v=d.apply(s,u);function f(V){I(v,h,g,f,N,"next",V)}function N(V){I(v,h,g,f,N,"throw",V)}f(void 0)})}}function C(d,s){d.prototype=Object.create(s.prototype),d.prototype.constructor=d,i(d,s)}function i(d,s){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,h){return u.__proto__=h,u},i(d,s)}var c=function(d){return d[d.NORTH=1]="NORTH",d[d.SOUTH=2]="SOUTH",d[d.EAST=4]="EAST",d[d.WEST=8]="WEST",d[d.NORTHEAST=5]="NORTHEAST",d[d.NORTHWEST=9]="NORTHWEST",d[d.SOUTHEAST=6]="SOUTHEAST",d[d.SOUTHWEST=10]="SOUTHWEST",d}(c||{}),m,l=r.DmIcon=function(d){function s(h){var g;return g=d.call(this,h)||this,g.state={iconRef:""},g}C(s,d);var u=s.prototype;return u.fetchRefMap=function(){var h=k(y().mark(function(){function v(){var f,N;return y().wrap(function(){function V(B){for(;;)switch(B.prev=B.next){case 0:return B.prev=0,B.next=3,(0,t.fetchRetry)((0,a.resolveAsset)("icon_ref_map.json"));case 3:return f=B.sent,B.next=6,f.json();case 6:N=B.sent,m=N,this.setState({iconRef:N[this.props.icon]||""}),B.next=14;break;case 11:return B.prev=11,B.t0=B.catch(0),B.abrupt("return");case 14:case"end":return B.stop()}}return V}(),v,this,[[0,11]])}return v}()));function g(){return h.apply(this,arguments)}return g}(),u.componentDidMount=function(){function h(){m?this.setState({iconRef:m[this.props.icon]}):this.fetchRefMap()}return h}(),u.componentDidUpdate=function(){function h(g){g.icon!==this.props.icon&&(m?this.setState({iconRef:m[this.props.icon]}):this.fetchRefMap())}return h}(),u.render=function(){function h(){var g=this.props,v=g.className,f=g.direction,N=f===void 0?c.SOUTH:f,V=g.fallback,B=g.frame,S=B===void 0?1:B,L=g.icon_state,w=g.movement,A=w===void 0?!1:w,x=b(g,p),E=this.state.iconRef,P=E+"?state="+L+"&dir="+N+"&movement="+!!A+"&frame="+S;return E?(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Image,Object.assign({fixErrors:!0,src:P},x))):V||null}return h}(),s}(e.Component)},20342:function(T,r,n){"use strict";r.__esModule=!0,r.DraggableControl=void 0;var e=n(89005),a=n(44879),t=n(35840),o=n(9474);function p(C,i){C.prototype=Object.create(i.prototype),C.prototype.constructor=C,b(C,i)}function b(C,i){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,m){return c.__proto__=m,c},b(C,i)}var y=400,I=function(i,c){return i.screenX*c[0]+i.screenY*c[1]},k=r.DraggableControl=function(C){function i(m){var l;return l=C.call(this,m)||this,l.inputRef=(0,e.createRef)(),l.state={originalValue:m.value,value:m.value,dragging:!1,editing:!1,origin:null,suppressingFlicker:!1},l.flickerTimer=null,l.suppressFlicker=function(){var d=l.props.suppressFlicker;d>0&&(l.setState({suppressingFlicker:!0}),clearTimeout(l.flickerTimer),l.flickerTimer=setTimeout(function(){return l.setState({suppressingFlicker:!1})},d))},l.handleDragStart=function(d){var s=l.props,u=s.value,h=s.dragMatrix,g=s.disabled,v=l.state.editing;v||g||(document.body.style["pointer-events"]="none",l.ref=d.currentTarget,l.setState({originalValue:u,dragging:!1,value:u,origin:I(d,h)}),l.timer=setTimeout(function(){l.setState({dragging:!0})},250),l.dragInterval=setInterval(function(){var f=l.state,N=f.dragging,V=f.value,B=l.props.onDrag;N&&B&&B(d,V)},l.props.updateRate||y),document.addEventListener("mousemove",l.handleDragMove),document.addEventListener("mouseup",l.handleDragEnd))},l.handleDragMove=function(d){var s,u=l.props,h=u.minValue,g=u.maxValue,v=u.step,f=u.dragMatrix,N=u.disabled;if(!N){var V=l.ref.offsetWidth/((g-h)/v),B=(s=l.props.stepPixelSize)!=null?s:V;typeof B=="function"&&(B=B(V)),l.setState(function(S){var L=Object.assign({},S),w=S.origin,A=I(d,f)-w;if(S.dragging){var x=Math.trunc(A/B);L.value=(0,a.clamp)(Math.floor(L.originalValue/v)*v+x*v,h,g)}else Math.abs(A)>4&&(L.dragging=!0);return L})}},l.handleDragEnd=function(d){var s=l.props,u=s.onChange,h=s.onDrag,g=l.state,v=g.dragging,f=g.value;if(document.body.style["pointer-events"]="auto",clearTimeout(l.timer),clearInterval(l.dragInterval),l.setState({originalValue:null,dragging:!1,editing:!v,origin:null}),document.removeEventListener("mousemove",l.handleDragMove),document.removeEventListener("mouseup",l.handleDragEnd),v)l.suppressFlicker(),u&&u(d,f),h&&h(d,f);else if(l.inputRef){var N=l.inputRef.current;N.value=f;try{N.focus(),N.select()}catch(V){}}},l}p(i,C);var c=i.prototype;return c.render=function(){function m(){var l=this,d=this.state,s=d.dragging,u=d.editing,h=d.value,g=d.suppressingFlicker,v=this.props,f=v.animated,N=v.value,V=v.unit,B=v.minValue,S=v.maxValue,L=v.format,w=v.onChange,A=v.onDrag,x=v.children,E=v.height,P=v.lineHeight,D=v.fontSize,M=v.disabled,O=N;(s||g)&&(O=h);var R=function(){function W(z){return z+(V?" "+V:"")}return W}(),j=f&&!s&&!g&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:O,format:L,children:R})||R(L?L(O):O),_=(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:!u||M?"none":void 0,height:E,"line-height":P,"font-size":D},onBlur:function(){function W(z){if(u){var K=(0,a.clamp)(parseFloat(z.target.value),B,S);if(Number.isNaN(K)){l.setState({editing:!1});return}l.setState({editing:!1,value:K}),l.suppressFlicker(),w&&w(z,K),A&&A(z,K)}}return W}(),onKeyDown:function(){function W(z){if(z.keyCode===13){var K=(0,a.clamp)(parseFloat(z.target.value),B,S);if(Number.isNaN(K)){l.setState({editing:!1});return}l.setState({editing:!1,value:K}),l.suppressFlicker(),w&&w(z,K),A&&A(z,K);return}if(z.keyCode===27){l.setState({editing:!1});return}}return W}(),disabled:M},null,this.inputRef);return x({dragging:s,editing:u,value:N,displayValue:O,displayElement:j,inputElement:_,handleDragStart:this.handleDragStart})}return m}(),i}(e.Component);k.defaultHooks=t.pureComponentHooks,k.defaultProps={minValue:-1/0,maxValue:1/0,step:1,suppressFlicker:50,dragMatrix:[1,0]}},87099:function(T,r,n){"use strict";r.__esModule=!0,r.Dropdown=void 0;var e=n(89005),a=n(95996),t=n(35840),o=n(55937),p=n(96184),b=n(1331),y=n(96690),I=["icon","iconRotation","iconSpin","clipSelectedText","color","dropdownStyle","over","nochevron","width","onClick","onSelected","selected","disabled","displayText","buttons"],k=["className"],C;function i(g,v){if(g==null)return{};var f={};for(var N in g)if({}.hasOwnProperty.call(g,N)){if(v.includes(N))continue;f[N]=g[N]}return f}function c(g,v){g.prototype=Object.create(v.prototype),g.prototype.constructor=g,m(g,v)}function m(g,v){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,N){return f.__proto__=N,f},m(g,v)}var l={placement:"left-start",modifiers:[{name:"eventListeners",enabled:!1}]},d={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function g(){return null}return g}()},s="Layout Dropdown__menu",u="Layout Dropdown__menu-scroll",h=r.Dropdown=function(g){function v(N){var V;return V=g.call(this,N)||this,V.menuContents=void 0,V.handleClick=function(){V.state.open&&V.setOpen(!1)},V.state={open:!1,selected:V.props.selected},V.menuContents=null,V}c(v,g);var f=v.prototype;return f.getDOMNode=function(){function N(){return(0,e.findDOMFromVNode)(this.$LI,!0)}return N}(),f.componentDidMount=function(){function N(){var V=this.getDOMNode()}return N}(),f.openMenu=function(){function N(){var V=v.renderedMenu;V===void 0&&(V=document.createElement("div"),V.className=s,document.body.appendChild(V),v.renderedMenu=V);var B=this.getDOMNode();v.currentOpenMenu=B,V.scrollTop=0,V.style.width=this.props.menuWidth||B.offsetWidth+"px",V.style.opacity="1",V.style.pointerEvents="auto",setTimeout(function(){var S;(S=v.renderedMenu)==null||S.focus()},400),this.renderMenuContent()}return N}(),f.closeMenu=function(){function N(){v.currentOpenMenu===this.getDOMNode()&&(v.currentOpenMenu=void 0,v.renderedMenu.style.opacity="0",v.renderedMenu.style.pointerEvents="none")}return N}(),f.componentWillUnmount=function(){function N(){this.closeMenu(),this.setOpen(!1)}return N}(),f.renderMenuContent=function(){function N(){var V=this,B=v.renderedMenu;if(B){B.offsetHeight>200?B.className=u:B.className=s;var S=this.props.options,L=S===void 0?[]:S,w=L.map(function(x){var E,P;return typeof x=="string"?(P=x,E=x):x!==null&&(P=x.displayText,E=x.value),(0,e.createVNode)(1,"div",(0,t.classes)(["Dropdown__menuentry",V.state.selected===E&&"selected"]),P,0,{onClick:function(){function D(){V.setSelected(E)}return D}()},E)}),A=w.length?w:"No Options Found";(0,e.render)((0,e.createVNode)(1,"div",null,A,0),B,function(){var x=v.singletonPopper;x===void 0?(x=(0,a.createPopper)(v.virtualElement,B,Object.assign({},l,{placement:"bottom-start"})),v.singletonPopper=x):(x.setOptions(Object.assign({},l,{placement:"bottom-start"})),x.update())},this.context)}}return N}(),f.setOpen=function(){function N(V){var B=this;this.setState(function(S){return Object.assign({},S,{open:V})}),V?setTimeout(function(){B.openMenu(),window.addEventListener("click",B.handleClick)}):(this.closeMenu(),window.removeEventListener("click",this.handleClick))}return N}(),f.setSelected=function(){function N(V){this.setState(function(B){return Object.assign({},B,{selected:V})}),this.setOpen(!1),this.props.onSelected&&this.props.onSelected(V)}return N}(),f.getOptionValue=function(){function N(V){return typeof V=="string"?V:V.value}return N}(),f.getSelectedIndex=function(){function N(){var V=this,B=this.state.selected||this.props.selected,S=this.props.options,L=S===void 0?[]:S;return L.findIndex(function(w){return V.getOptionValue(w)===B})}return N}(),f.toPrevious=function(){function N(){if(!(this.props.options.length<1)){var V=this.getSelectedIndex(),B=0,S=this.props.options.length-1,L=V>=0;L||(V=B);var w=V===B?S:V-1;this.setSelected(this.getOptionValue(this.props.options[w]))}}return N}(),f.toNext=function(){function N(){if(!(this.props.options.length<1)){var V=this.getSelectedIndex(),B=0,S=this.props.options.length-1,L=V>=0;L||(V=S);var w=V===S?B:V+1;this.setSelected(this.getOptionValue(this.props.options[w]))}}return N}(),f.render=function(){function N(){var V=this,B=this.props,S=B.icon,L=B.iconRotation,w=B.iconSpin,A=B.clipSelectedText,x=A===void 0?!0:A,E=B.color,P=E===void 0?"default":E,D=B.dropdownStyle,M=B.over,O=B.nochevron,R=B.width,j=B.onClick,_=B.onSelected,W=B.selected,z=B.disabled,K=B.displayText,G=B.buttons,Q=i(B,I),J=Q.className,ue=i(Q,k),ie=M?!this.state.open:this.state.open;return(0,e.createComponentVNode)(2,y.Stack,{inline:!0,fill:!0,width:R,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({width:"100%",className:(0,t.classes)(["Dropdown__control","Button","Button--color--"+P,z&&"Button--disabled",J]),onClick:function(){function pe(te){z&&!V.state.open||(V.setOpen(!V.state.open),j&&j(te))}return pe}()},ue,{children:[S&&(0,e.createComponentVNode)(2,b.Icon,{name:S,rotation:L,spin:w,mr:1}),(0,e.createVNode)(1,"span","Dropdown__selected-text",K||this.state.selected,0,{style:{overflow:x?"hidden":"visible"}}),O||(0,e.createVNode)(1,"span","Dropdown__arrow-button",(0,e.createComponentVNode)(2,b.Icon,{name:ie?"chevron-up":"chevron-down"}),2)]})))}),G&&(0,e.createFragment)([(0,e.createComponentVNode)(2,y.Stack.Item,{height:"100%",children:(0,e.createComponentVNode)(2,p.Button,{height:"100%",icon:"chevron-left",disabled:z,onClick:function(){function pe(){z||V.toPrevious()}return pe}()})}),(0,e.createComponentVNode)(2,y.Stack.Item,{height:"100%",children:(0,e.createComponentVNode)(2,p.Button,{height:"100%",icon:"chevron-right",disabled:z,onClick:function(){function pe(){z||V.toNext()}return pe}()})})],4)]})}return N}(),v}(e.Component);C=h,h.renderedMenu=void 0,h.singletonPopper=void 0,h.currentOpenMenu=void 0,h.virtualElement={getBoundingClientRect:function(){function g(){var v,f;return(v=(f=C.currentOpenMenu)==null?void 0:f.getBoundingClientRect())!=null?v:d}return g}()}},39473:function(T,r,n){"use strict";r.__esModule=!0,r.computeFlexProps=r.computeFlexItemProps=r.computeFlexItemClassName=r.computeFlexClassName=r.Flex=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["className","direction","wrap","align","justify","inline","style"],p=["className"],b=["className","style","grow","order","shrink","basis","align"],y=["className"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function I(d,s){if(d==null)return{};var l={};for(var h in d)if({}.hasOwnProperty.call(d,h)){if(s.includes(h))continue;l[h]=d[h]}return l}var k=r.computeFlexClassName=function(){function d(s){return(0,a.classes)(["Flex",s.inline&&"Flex--inline",(0,t.computeBoxClassName)(s)])}return d}(),C=r.computeFlexProps=function(){function d(s){var l=s.className,h=s.direction,N=s.wrap,v=s.align,f=s.justify,g=s.inline,V=s.style,B=I(s,o);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},V,{"flex-direction":h,"flex-wrap":N===!0?"wrap":N,"align-items":v,"justify-content":f})},B))}return d}(),i=r.Flex=function(){function d(s){var l=s.className,h=I(s,p);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([l,k(h)]),null,1,Object.assign({},C(h))))}return d}();i.defaultHooks=a.pureComponentHooks;var c=r.computeFlexItemClassName=function(){function d(s){return(0,a.classes)(["Flex__item",(0,t.computeBoxClassName)(s)])}return d}(),m=r.computeFlexItemProps=function(){function d(s){var l=s.className,h=s.style,N=s.grow,v=s.order,f=s.shrink,g=s.basis,V=g===void 0?s.width:g,B=s.align,S=I(s,b);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},h,{"flex-grow":N!==void 0&&Number(N),"flex-shrink":f!==void 0&&Number(f),"flex-basis":(0,t.unit)(V),order:v,"align-self":B})},S))}return d}(),u=function(s){var l=s.className,h=I(s,y);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([l,c(s)]),null,1,Object.assign({},m(h))))};u.defaultHooks=a.pureComponentHooks,i.Item=u},79646:function(x,r,n){"use strict";r.__esModule=!0,r.GridColumn=r.Grid=void 0;var e=n(89005),a=n(36352),t=n(35840),o=["children"],p=["size","style"];/** + */function I(d,s){if(d==null)return{};var u={};for(var h in d)if({}.hasOwnProperty.call(d,h)){if(s.includes(h))continue;u[h]=d[h]}return u}var k=r.computeFlexClassName=function(){function d(s){return(0,a.classes)(["Flex",s.inline&&"Flex--inline",(0,t.computeBoxClassName)(s)])}return d}(),C=r.computeFlexProps=function(){function d(s){var u=s.className,h=s.direction,g=s.wrap,v=s.align,f=s.justify,N=s.inline,V=s.style,B=I(s,o);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},V,{"flex-direction":h,"flex-wrap":g===!0?"wrap":g,"align-items":v,"justify-content":f})},B))}return d}(),i=r.Flex=function(){function d(s){var u=s.className,h=I(s,p);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([u,k(h)]),null,1,Object.assign({},C(h))))}return d}();i.defaultHooks=a.pureComponentHooks;var c=r.computeFlexItemClassName=function(){function d(s){return(0,a.classes)(["Flex__item",(0,t.computeBoxClassName)(s)])}return d}(),m=r.computeFlexItemProps=function(){function d(s){var u=s.className,h=s.style,g=s.grow,v=s.order,f=s.shrink,N=s.basis,V=N===void 0?s.width:N,B=s.align,S=I(s,b);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},h,{"flex-grow":g!==void 0&&Number(g),"flex-shrink":f!==void 0&&Number(f),"flex-basis":(0,t.unit)(V),order:v,"align-self":B})},S))}return d}(),l=function(s){var u=s.className,h=I(s,y);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([u,c(s)]),null,1,Object.assign({},m(h))))};l.defaultHooks=a.pureComponentHooks,i.Item=l},79646:function(T,r,n){"use strict";r.__esModule=!0,r.GridColumn=r.Grid=void 0;var e=n(89005),a=n(36352),t=n(35840),o=["children"],p=["size","style"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function b(k,C){if(k==null)return{};var i={};for(var c in k)if({}.hasOwnProperty.call(k,c)){if(C.includes(c))continue;i[c]=k[c]}return i}var y=r.Grid=function(){function k(C){var i=C.children,c=b(C,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table,Object.assign({},c,{children:(0,e.createComponentVNode)(2,a.Table.Row,{children:i})})))}return k}();y.defaultHooks=t.pureComponentHooks;var I=r.GridColumn=function(){function k(C){var i=C.size,c=i===void 0?1:i,m=C.style,u=b(C,p);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table.Cell,Object.assign({style:Object.assign({width:c+"%"},m)},u)))}return k}();y.defaultHooks=t.pureComponentHooks,y.Column=I},1331:function(x,r,n){"use strict";r.__esModule=!0,r.IconStack=r.Icon=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["name","size","spin","className","style","rotation","inverse"],p=["className","style","children"];/** + */function b(k,C){if(k==null)return{};var i={};for(var c in k)if({}.hasOwnProperty.call(k,c)){if(C.includes(c))continue;i[c]=k[c]}return i}var y=r.Grid=function(){function k(C){var i=C.children,c=b(C,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table,Object.assign({},c,{children:(0,e.createComponentVNode)(2,a.Table.Row,{children:i})})))}return k}();y.defaultHooks=t.pureComponentHooks;var I=r.GridColumn=function(){function k(C){var i=C.size,c=i===void 0?1:i,m=C.style,l=b(C,p);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table.Cell,Object.assign({style:Object.assign({width:c+"%"},m)},l)))}return k}();y.defaultHooks=t.pureComponentHooks,y.Column=I},1331:function(T,r,n){"use strict";r.__esModule=!0,r.IconStack=r.Icon=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["name","size","spin","className","style","rotation","inverse"],p=["className","style","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function b(C,i){if(C==null)return{};var c={};for(var m in C)if({}.hasOwnProperty.call(C,m)){if(i.includes(m))continue;c[m]=C[m]}return c}var y=/-o$/,I=r.Icon=function(){function C(i){var c=i.name,m=i.size,u=i.spin,d=i.className,s=i.style,l=s===void 0?{}:s,h=i.rotation,N=i.inverse,v=b(i,o);m&&(l["font-size"]=m*100+"%"),typeof h=="number"&&(l.transform="rotate("+h+"deg)");var f=y.test(c),g=c.replace(y,"");return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"i",className:(0,a.classes)(["Icon",d,f?"far":"fas","fa-"+g,u&&"fa-spin"]),style:l},v)))}return C}();I.defaultHooks=a.pureComponentHooks;var k=r.IconStack=function(){function C(i){var c=i.className,m=i.style,u=m===void 0?{}:m,d=i.children,s=b(i,p);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"span",class:(0,a.classes)(["IconStack",c]),style:u},s,{children:d})))}return C}();I.Stack=k},91225:function(x,r,n){"use strict";r.__esModule=!0,r.Image=void 0;var e=n(89005),a=n(55937),t=["fixBlur","fixErrors","objectFit","src"];function o(k,C){if(k==null)return{};var i={};for(var c in k)if({}.hasOwnProperty.call(k,c)){if(C.includes(c))continue;i[c]=k[c]}return i}function p(k,C){k.prototype=Object.create(C.prototype),k.prototype.constructor=k,b(k,C)}function b(k,C){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,c){return i.__proto__=c,i},b(k,C)}var y=5,I=r.Image=function(k){function C(){for(var c,m=arguments.length,u=new Array(m),d=0;d0;d&&(u=c.containerRef)!=null&&u.current?c.props.onMove(b(c.containerRef.current,m)):c.toggleDocumentEvents(!1)},c.handleMoveEnd=function(){c.toggleDocumentEvents(!1)},c.handleKeyDown=function(m){var u=m.which||m.keyCode;u<37||u>40||(m.preventDefault(),c.props.onKey({left:u===39?.05:u===37?-.05:0,top:u===40?.05:u===38?-.05:0}))},c.props=i,c.containerRef=(0,e.createRef)(),c}t(k,I);var C=k.prototype;return C.toggleDocumentEvents=function(){function i(c){var m,u=(m=this.containerRef)==null?void 0:m.current,d=p(u),s=c?d.addEventListener:d.removeEventListener;s("mousemove",this.handleMove),s("mouseup",this.handleMoveEnd)}return i}(),C.componentDidMount=function(){function i(){this.toggleDocumentEvents(!0)}return i}(),C.componentWillUnmount=function(){function i(){this.toggleDocumentEvents(!1)}return i}(),C.render=function(){function i(){return(0,e.normalizeProps)((0,e.createVNode)(1,"div","react-colorful__interactive",this.props.children,0,Object.assign({},this.props,{style:this.props.style,onMouseDown:this.handleMoveStart,onKeyDown:this.handleKeyDown,tabIndex:0,role:"slider"}),null,this.containerRef))}return i}(),k}(e.Component)},76334:function(x,r,n){"use strict";r.__esModule=!0,r.Knob=void 0;var e=n(89005),a=n(44879),t=n(35840),o=n(55937),p=n(20342),b=n(59263),y=["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children","popUpPosition"];/** +*/var C=r.toInputValue=function(){function c(m){return typeof m!="number"&&typeof m!="string"?"":String(m)}return c}(),i=r.Input=function(c){function m(){var d;return d=c.call(this)||this,d.inputRef=(0,e.createRef)(),d.state={editing:!1},d.handleInput=function(s){var u=d.state.editing,h=d.props.onInput;u||d.setEditing(!0),h&&h(s,s.target.value)},d.handleFocus=function(s){var u=d.state.editing;u||d.setEditing(!0)},d.handleBlur=function(s){var u=d.state.editing,h=d.props.onChange;u&&(d.setEditing(!1),h&&h(s,s.target.value))},d.handleKeyDown=function(s){var u=d.props,h=u.onInput,g=u.onChange,v=u.onEnter;if(s.keyCode===o.KEY_ENTER){d.setEditing(!1),g&&g(s,s.target.value),h&&h(s,s.target.value),v&&v(s,s.target.value),d.props.selfClear?s.target.value="":s.target.blur();return}if(s.keyCode===o.KEY_ESCAPE){d.setEditing(!1),s.target.value=C(d.props.value),s.target.blur();return}},d}I(m,c);var l=m.prototype;return l.componentDidMount=function(){function d(){var s=this,u=this.props.value,h=this.inputRef.current;h&&(h.value=C(u),h.selectionStart=0,h.selectionEnd=h.value.length),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){h.focus(),s.props.autoSelect&&h.select()},1)}return d}(),l.componentDidUpdate=function(){function d(s,u){var h=this.state.editing,g=s.value,v=this.props.value,f=this.inputRef.current;f&&!h&&g!==v&&(f.value=C(v))}return d}(),l.setEditing=function(){function d(s){this.setState({editing:s})}return d}(),l.render=function(){function d(){var s=this.props,u=s.selfClear,h=s.onInput,g=s.onChange,v=s.onEnter,f=s.value,N=s.maxLength,V=s.placeholder,B=s.autofocus,S=s.disabled,L=s.multiline,w=s.cols,A=w===void 0?32:w,x=s.rows,E=x===void 0?4:x,P=y(s,p),D=P.className,M=P.fluid,O=P.monospace,R=y(P,b);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Input",M&&"Input--fluid",O&&"Input--monospace",S&&"Input--disabled",D])},R,{children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),L?(0,e.createVNode)(128,"textarea","Input__textarea",null,1,{placeholder:V,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:N,cols:A,rows:E,disabled:S},null,this.inputRef):(0,e.createVNode)(64,"input","Input__input",null,1,{placeholder:V,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,maxLength:N,disabled:S},null,this.inputRef)]})))}return d}(),m}(e.Component)},4454:function(T,r,n){"use strict";r.__esModule=!0,r.Interactive=void 0;var e=n(89005),a=n(44879);function t(I,k){I.prototype=Object.create(k.prototype),I.prototype.constructor=I,o(I,k)}function o(I,k){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(C,i){return C.__proto__=i,C},o(I,k)}var p=function(k){return k&&k.ownerDocument.defaultView||self},b=function(k,C){var i=k.getBoundingClientRect(),c=C;return{left:(0,a.clamp)((c.pageX-(i.left+p(k).pageXOffset))/i.width,0,1),top:(0,a.clamp)((c.pageY-(i.top+p(k).pageYOffset))/i.height,0,1)}},y=r.Interactive=function(I){function k(i){var c;return c=I.call(this)||this,c.containerRef=void 0,c.props=void 0,c.handleMoveStart=function(m){var l,d=(l=c.containerRef)==null?void 0:l.current;d&&(m.preventDefault(),d.focus(),c.props.onMove(b(d,m)),c.toggleDocumentEvents(!0))},c.handleMove=function(m){var l;m.preventDefault();var d=m.buttons>0;d&&(l=c.containerRef)!=null&&l.current?c.props.onMove(b(c.containerRef.current,m)):c.toggleDocumentEvents(!1)},c.handleMoveEnd=function(){c.toggleDocumentEvents(!1)},c.handleKeyDown=function(m){var l=m.which||m.keyCode;l<37||l>40||(m.preventDefault(),c.props.onKey({left:l===39?.05:l===37?-.05:0,top:l===40?.05:l===38?-.05:0}))},c.props=i,c.containerRef=(0,e.createRef)(),c}t(k,I);var C=k.prototype;return C.toggleDocumentEvents=function(){function i(c){var m,l=(m=this.containerRef)==null?void 0:m.current,d=p(l),s=c?d.addEventListener:d.removeEventListener;s("mousemove",this.handleMove),s("mouseup",this.handleMoveEnd)}return i}(),C.componentDidMount=function(){function i(){this.toggleDocumentEvents(!0)}return i}(),C.componentWillUnmount=function(){function i(){this.toggleDocumentEvents(!1)}return i}(),C.render=function(){function i(){return(0,e.normalizeProps)((0,e.createVNode)(1,"div","react-colorful__interactive",this.props.children,0,Object.assign({},this.props,{style:this.props.style,onMouseDown:this.handleMoveStart,onKeyDown:this.handleKeyDown,tabIndex:0,role:"slider"}),null,this.containerRef))}return i}(),k}(e.Component)},76334:function(T,r,n){"use strict";r.__esModule=!0,r.Knob=void 0;var e=n(89005),a=n(44879),t=n(35840),o=n(55937),p=n(20342),b=n(59263),y=["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children","popUpPosition"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function I(C,i){if(C==null)return{};var c={};for(var m in C)if({}.hasOwnProperty.call(C,m)){if(i.includes(m))continue;c[m]=C[m]}return c}var k=r.Knob=function(){function C(i){var c=i.animated,m=i.format,u=i.maxValue,d=i.minValue,s=i.onChange,l=i.onDrag,h=i.step,N=i.stepPixelSize,v=i.suppressFlicker,f=i.unit,g=i.value,V=i.className,B=i.style,S=i.fillValue,L=i.color,w=i.ranges,A=w===void 0?{}:w,T=i.size,E=T===void 0?1:T,P=i.bipolar,D=i.children,M=i.popUpPosition,O=I(i,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,p.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:c,format:m,maxValue:u,minValue:d,onChange:s,onDrag:l,step:h,stepPixelSize:N,suppressFlicker:v,unit:f,value:g},{children:function(){function R(j){var _=j.dragging,W=j.editing,z=j.value,K=j.displayValue,G=j.displayElement,Q=j.inputElement,J=j.handleDragStart,ue=(0,a.scale)(S!=null?S:K,d,u),ie=(0,a.scale)(K,d,u),pe=L||(0,a.keyOfMatchingRange)(S!=null?S:z,A)||"default",te=(ie-.5)*270;return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Knob","Knob--color--"+pe,P&&"Knob--bipolar",V,(0,o.computeBoxClassName)(O)]),[(0,e.createVNode)(1,"div","Knob__circle",(0,e.createVNode)(1,"div","Knob__cursorBox",(0,e.createVNode)(1,"div","Knob__cursor"),2,{style:{transform:"rotate("+te+"deg)"}}),2),_&&(0,e.createVNode)(1,"div",(0,t.classes)(["Knob__popupValue",M&&"Knob__popupValue--"+M]),G,0),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringTrackPivot",(0,e.createVNode)(32,"circle","Knob__ringTrack",null,1,{cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringFillPivot",(0,e.createVNode)(32,"circle","Knob__ringFill",null,1,{style:{"stroke-dashoffset":((P?2.75:2)-ue*1.5)*Math.PI*50},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),Q],0,Object.assign({},(0,o.computeBoxProps)(Object.assign({style:Object.assign({"font-size":E+"em"},B)},O)),{onMouseDown:J})))}return R}()})))}return C}()},78621:function(x,r,n){"use strict";r.__esModule=!0,r.LabeledControls=void 0;var e=n(89005),a=n(39473),t=["children"],o=["label","children"];/** + */function I(C,i){if(C==null)return{};var c={};for(var m in C)if({}.hasOwnProperty.call(C,m)){if(i.includes(m))continue;c[m]=C[m]}return c}var k=r.Knob=function(){function C(i){var c=i.animated,m=i.format,l=i.maxValue,d=i.minValue,s=i.onChange,u=i.onDrag,h=i.step,g=i.stepPixelSize,v=i.suppressFlicker,f=i.unit,N=i.value,V=i.className,B=i.style,S=i.fillValue,L=i.color,w=i.ranges,A=w===void 0?{}:w,x=i.size,E=x===void 0?1:x,P=i.bipolar,D=i.children,M=i.popUpPosition,O=I(i,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,p.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:c,format:m,maxValue:l,minValue:d,onChange:s,onDrag:u,step:h,stepPixelSize:g,suppressFlicker:v,unit:f,value:N},{children:function(){function R(j){var _=j.dragging,W=j.editing,z=j.value,K=j.displayValue,G=j.displayElement,Q=j.inputElement,J=j.handleDragStart,ue=(0,a.scale)(S!=null?S:K,d,l),ie=(0,a.scale)(K,d,l),pe=L||(0,a.keyOfMatchingRange)(S!=null?S:z,A)||"default",te=(ie-.5)*270;return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Knob","Knob--color--"+pe,P&&"Knob--bipolar",V,(0,o.computeBoxClassName)(O)]),[(0,e.createVNode)(1,"div","Knob__circle",(0,e.createVNode)(1,"div","Knob__cursorBox",(0,e.createVNode)(1,"div","Knob__cursor"),2,{style:{transform:"rotate("+te+"deg)"}}),2),_&&(0,e.createVNode)(1,"div",(0,t.classes)(["Knob__popupValue",M&&"Knob__popupValue--"+M]),G,0),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringTrackPivot",(0,e.createVNode)(32,"circle","Knob__ringTrack",null,1,{cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringFillPivot",(0,e.createVNode)(32,"circle","Knob__ringFill",null,1,{style:{"stroke-dashoffset":((P?2.75:2)-ue*1.5)*Math.PI*50},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),Q],0,Object.assign({},(0,o.computeBoxProps)(Object.assign({style:Object.assign({"font-size":E+"em"},B)},O)),{onMouseDown:J})))}return R}()})))}return C}()},78621:function(T,r,n){"use strict";r.__esModule=!0,r.LabeledControls=void 0;var e=n(89005),a=n(39473),t=["children"],o=["label","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function p(I,k){if(I==null)return{};var C={};for(var i in I)if({}.hasOwnProperty.call(I,i)){if(k.includes(i))continue;C[i]=I[i]}return C}var b=r.LabeledControls=function(){function I(k){var C=k.children,i=p(k,t);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({mx:-.5,align:"stretch",justify:"space-between"},i,{children:C})))}return I}(),y=function(k){var C=k.label,i=k.children,c=p(k,o);return(0,e.createComponentVNode)(2,a.Flex.Item,{mx:1,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({minWidth:"52px",height:"100%",direction:"column",align:"center",textAlign:"center",justify:"space-between"},c,{children:[(0,e.createComponentVNode)(2,a.Flex.Item),(0,e.createComponentVNode)(2,a.Flex.Item,{children:i}),(0,e.createComponentVNode)(2,a.Flex.Item,{color:"label",children:C})]})))})};b.Item=y},29319:function(x,r,n){"use strict";r.__esModule=!0,r.LabeledList=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(13605),p=n(62147);/** + */function p(I,k){if(I==null)return{};var C={};for(var i in I)if({}.hasOwnProperty.call(I,i)){if(k.includes(i))continue;C[i]=I[i]}return C}var b=r.LabeledControls=function(){function I(k){var C=k.children,i=p(k,t);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({mx:-.5,align:"stretch",justify:"space-between"},i,{children:C})))}return I}(),y=function(k){var C=k.label,i=k.children,c=p(k,o);return(0,e.createComponentVNode)(2,a.Flex.Item,{mx:1,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({minWidth:"52px",height:"100%",direction:"column",align:"center",textAlign:"center",justify:"space-between"},c,{children:[(0,e.createComponentVNode)(2,a.Flex.Item),(0,e.createComponentVNode)(2,a.Flex.Item,{children:i}),(0,e.createComponentVNode)(2,a.Flex.Item,{color:"label",children:C})]})))})};b.Item=y},29319:function(T,r,n){"use strict";r.__esModule=!0,r.LabeledList=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(13605),p=n(62147);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var b=r.LabeledList=function(){function k(C){var i=C.children;return(0,e.createVNode)(1,"table","LabeledList",i,0)}return k}();b.defaultHooks=a.pureComponentHooks;var y=function(C){var i=C.className,c=C.label,m=C.labelColor,u=m===void 0?"label":m,d=C.color,s=C.textAlign,l=C.buttons,h=C.tooltip,N=C.content,v=C.children,f=C.preserveWhitespace,g=C.labelStyle,V=(0,e.createVNode)(1,"tr",(0,a.classes)(["LabeledList__row",i]),[(0,e.createComponentVNode)(2,t.Box,{as:"td",color:u,className:(0,a.classes)(["LabeledList__cell","LabeledList__label"]),style:g,children:c?c+":":null}),(0,e.createComponentVNode)(2,t.Box,{as:"td",color:d,textAlign:s,className:(0,a.classes)(["LabeledList__cell","LabeledList__content"]),colSpan:l?void 0:2,preserveWhitespace:f,children:[N,v]}),l&&(0,e.createVNode)(1,"td","LabeledList__cell LabeledList__buttons",l,0)],0);return h&&(V=(0,e.createComponentVNode)(2,p.Tooltip,{content:h,children:V})),V};y.defaultHooks=a.pureComponentHooks;var I=function(C){var i=C.size?(0,t.unit)(Math.max(0,C.size-1)):0;return(0,e.createVNode)(1,"tr","LabeledList__row",(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,o.Divider),2,{colSpan:3,style:{"padding-top":i,"padding-bottom":i}}),2)};I.defaultHooks=a.pureComponentHooks,b.Item=y,b.Divider=I},36077:function(x,r,n){"use strict";r.__esModule=!0,r.Modal=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(61940),p=["className","children","onEnter"];/** + */var b=r.LabeledList=function(){function k(C){var i=C.children;return(0,e.createVNode)(1,"table","LabeledList",i,0)}return k}();b.defaultHooks=a.pureComponentHooks;var y=function(C){var i=C.className,c=C.label,m=C.labelColor,l=m===void 0?"label":m,d=C.color,s=C.textAlign,u=C.buttons,h=C.tooltip,g=C.content,v=C.children,f=C.preserveWhitespace,N=C.labelStyle,V=(0,e.createVNode)(1,"tr",(0,a.classes)(["LabeledList__row",i]),[(0,e.createComponentVNode)(2,t.Box,{as:"td",color:l,className:(0,a.classes)(["LabeledList__cell","LabeledList__label"]),style:N,children:c?c+":":null}),(0,e.createComponentVNode)(2,t.Box,{as:"td",color:d,textAlign:s,className:(0,a.classes)(["LabeledList__cell","LabeledList__content"]),colSpan:u?void 0:2,preserveWhitespace:f,children:[g,v]}),u&&(0,e.createVNode)(1,"td","LabeledList__cell LabeledList__buttons",u,0)],0);return h&&(V=(0,e.createComponentVNode)(2,p.Tooltip,{content:h,children:V})),V};y.defaultHooks=a.pureComponentHooks;var I=function(C){var i=C.size?(0,t.unit)(Math.max(0,C.size-1)):0;return(0,e.createVNode)(1,"tr","LabeledList__row",(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,o.Divider),2,{colSpan:3,style:{"padding-top":i,"padding-bottom":i}}),2)};I.defaultHooks=a.pureComponentHooks,b.Item=y,b.Divider=I},36077:function(T,r,n){"use strict";r.__esModule=!0,r.Modal=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(61940),p=["className","children","onEnter"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function b(I,k){if(I==null)return{};var C={};for(var i in I)if({}.hasOwnProperty.call(I,i)){if(k.includes(i))continue;C[i]=I[i]}return C}var y=r.Modal=function(){function I(k){var C=k.className,i=k.children,c=k.onEnter,m=b(k,p),u;return c&&(u=function(){function d(s){s.keyCode===13&&c(s)}return d}()),(0,e.createComponentVNode)(2,o.Dimmer,{onKeyDown:u,children:(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Modal",C,(0,t.computeBoxClassName)(m)]),i,0,Object.assign({},(0,t.computeBoxProps)(m))))})}return I}()},73280:function(x,r,n){"use strict";r.__esModule=!0,r.NanoMap=void 0;var e=n(89005),a=n(36036),t=n(72253),o=n(29319),p=n(79911),b=n(79140),y=["x","y","icon","tooltip","color","children"],I=["icon","color"];function k(g,V){if(g==null)return{};var B={};for(var S in g)if({}.hasOwnProperty.call(g,S)){if(V.includes(S))continue;B[S]=g[S]}return B}function C(g,V){g.prototype=Object.create(V.prototype),g.prototype.constructor=g,i(g,V)}function i(g,V){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,S){return B.__proto__=S,B},i(g,V)}var c=510,m=2,u=function(V){return V.stopPropagation&&V.stopPropagation(),V.preventDefault&&V.preventDefault(),V.cancelBubble=!0,V.returnValue=!1,!1},d=r.NanoMap=function(g){function V(S){var L,w,A,T;T=g.call(this,S)||this;var E=window.innerWidth/2-256,P=window.innerHeight/2-256;return T.state={offsetX:(L=S.offsetX)!=null?L:0,offsetY:(w=S.offsetY)!=null?w:0,dragging:!1,originX:null,originY:null,zoom:(A=S.zoom)!=null?A:1},T.handleDragStart=function(D){T.ref=D.target,T.setState({dragging:!1,originX:D.screenX,originY:D.screenY}),document.addEventListener("mousemove",T.handleDragMove),document.addEventListener("mouseup",T.handleDragEnd),u(D)},T.handleDragMove=function(D){T.setState(function(M){var O=Object.assign({},M),R=D.screenX-O.originX,j=D.screenY-O.originY;return M.dragging?(O.offsetX+=R/O.zoom,O.offsetY+=j/O.zoom,O.originX=D.screenX,O.originY=D.screenY):O.dragging=!0,O}),u(D)},T.handleDragEnd=function(D){T.setState({dragging:!1,originX:null,originY:null}),document.removeEventListener("mousemove",T.handleDragMove),document.removeEventListener("mouseup",T.handleDragEnd),S.onOffsetChange==null||S.onOffsetChange(D,T.state),u(D)},T.handleZoom=function(D,M){T.setState(function(O){var R=Math.min(Math.max(M,1),8);return O.zoom=R,S.onZoom&&S.onZoom(O.zoom),O})},T.handleReset=function(D){T.setState(function(M){M.offsetX=0,M.offsetY=0,M.zoom=1,T.handleZoom(D,1),S.onOffsetChange==null||S.onOffsetChange(D,M)})},T}C(V,g);var B=V.prototype;return B.getChildContext=function(){function S(){return{map:{zoom:this.state.zoom}}}return S}(),B.render=function(){function S(){var L=(0,t.useBackend)(this.context),w=L.config,A=this.state,T=A.dragging,E=A.offsetX,P=A.offsetY,D=A.zoom,M=D===void 0?1:D,O=this.props.children,R=this.props.mapUrl||w.map+"_nanomap_z1.png",j=c*M+"px",_={width:j,height:j,"margin-top":P*M+"px","margin-left":E*M+"px",overflow:"hidden",position:"relative",top:"50%",left:"50%",transform:"translate(-50%, -50%)","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:T?"move":"auto"},W={width:"100%",height:"100%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"};return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__container",children:[(0,e.createComponentVNode)(2,a.Box,{style:_,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,b.resolveAsset)(R),style:W}),(0,e.createComponentVNode)(2,a.Box,{children:O})]}),(0,e.createComponentVNode)(2,h,{zoom:M,onZoom:this.handleZoom,onReset:this.handleReset}),(0,e.createComponentVNode)(2,f)]})}return S}(),V}(e.Component),s=function(V,B){var S=B.map.zoom,L=V.x,w=V.y,A=V.icon,T=V.tooltip,E=V.color,P=V.children,D=k(V,y),M=m*S,O=(L-1)*M,R=(w-1)*M;return(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,a.Tooltip,{content:T,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:R+"px",left:O+"px",width:M+"px",height:M+"px"},D,{children:P})))}),2)};d.Marker=s;var l=function(V,B){var S=B.map.zoom,L=V.icon,w=V.color,A=k(V,I),T=m*S+4/Math.ceil(S/4);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({},A,{children:(0,e.createComponentVNode)(2,a.Icon,{name:L,color:w,fontSize:T+"px",style:{position:"relative",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})})))};d.MarkerIcon=l;var h=function(V,B){return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__zoomer",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Zoom",labelStyle:{"vertical-align":"middle"},children:(0,e.createComponentVNode)(2,a.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,p.Slider,{minValue:1,maxValue:8,stepPixelSize:10,format:function(){function S(L){return L+"x"}return S}(),value:V.zoom,onDrag:function(){function S(L,w){return V.onZoom(L,w)}return S}()}),(0,e.createComponentVNode)(2,a.Button,{ml:"0.5em",float:"right",icon:"sync",tooltip:"Reset View",onClick:function(){function S(L){return V.onReset==null?void 0:V.onReset(L)}return S}()})]})})})})};d.Zoomer=h;var N,v=function(g){function V(S){var L;L=g.call(this,S)||this;var w=(0,t.useBackend)(L.props.context),A=w.act;return L.state={color:L.props.color},L.handleClick=function(T){N!==void 0&&N.setState({color:"blue"}),A("switch_camera",{name:L.props.name}),N=L,L.setState({color:"green"})},L}C(V,g);var B=V.prototype;return B.render=function(){function S(){var L=this.props.x*2*this.props.zoom-this.props.zoom-3,w=this.props.y*2*this.props.zoom-this.props.zoom-3;return(0,e.createComponentVNode)(2,a.Button,{onClick:this.handleClick,position:"absolute",className:"NanoMap__button",lineHeight:"0",color:this.props.status?this.state.color:"red",bottom:w+"px",left:L+"px",children:(0,e.createComponentVNode)(2,a.Tooltip,{content:this.props.tooltip})},this.props.key)}return S}(),V}(e.Component);d.NanoButton=v;var f=function(V,B){var S=(0,t.useBackend)(B),L=S.act,w=S.data;return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__zchooser",children:[(0,e.createComponentVNode)(2,a.Box,{children:(0,e.createComponentVNode)(2,a.Button,{icon:"chevron-up",tooltip:"\u0423\u0440\u043E\u0432\u043D\u0435\u043C \u0432\u044B\u0448\u0435",onClick:function(){function A(){return L("switch_z_level",{z_dir:1})}return A}()})}),(0,e.createComponentVNode)(2,a.Box,{children:(0,e.createComponentVNode)(2,a.Button,{icon:"chevron-down",tooltip:"\u0423\u0440\u043E\u0432\u043D\u0435\u043C \u043D\u0438\u0436\u0435",onClick:function(){function A(){return L("switch_z_level",{z_dir:-1})}return A}()})})]})}},74733:function(x,r,n){"use strict";r.__esModule=!0,r.NoticeBox=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["className","color","info","warning","success","danger"];/** + */function b(I,k){if(I==null)return{};var C={};for(var i in I)if({}.hasOwnProperty.call(I,i)){if(k.includes(i))continue;C[i]=I[i]}return C}var y=r.Modal=function(){function I(k){var C=k.className,i=k.children,c=k.onEnter,m=b(k,p),l;return c&&(l=function(){function d(s){s.keyCode===13&&c(s)}return d}()),(0,e.createComponentVNode)(2,o.Dimmer,{onKeyDown:l,children:(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Modal",C,(0,t.computeBoxClassName)(m)]),i,0,Object.assign({},(0,t.computeBoxProps)(m))))})}return I}()},73280:function(T,r,n){"use strict";r.__esModule=!0,r.NanoMap=void 0;var e=n(89005),a=n(36036),t=n(72253),o=n(29319),p=n(79911),b=n(79140),y=["x","y","icon","tooltip","color","children"],I=["icon","color"];function k(N,V){if(N==null)return{};var B={};for(var S in N)if({}.hasOwnProperty.call(N,S)){if(V.includes(S))continue;B[S]=N[S]}return B}function C(N,V){N.prototype=Object.create(V.prototype),N.prototype.constructor=N,i(N,V)}function i(N,V){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,S){return B.__proto__=S,B},i(N,V)}var c=510,m=2,l=function(V){return V.stopPropagation&&V.stopPropagation(),V.preventDefault&&V.preventDefault(),V.cancelBubble=!0,V.returnValue=!1,!1},d=r.NanoMap=function(N){function V(S){var L,w,A,x;x=N.call(this,S)||this;var E=window.innerWidth/2-256,P=window.innerHeight/2-256;return x.state={offsetX:(L=S.offsetX)!=null?L:0,offsetY:(w=S.offsetY)!=null?w:0,dragging:!1,originX:null,originY:null,zoom:(A=S.zoom)!=null?A:1},x.handleDragStart=function(D){x.ref=D.target,x.setState({dragging:!1,originX:D.screenX,originY:D.screenY}),document.addEventListener("mousemove",x.handleDragMove),document.addEventListener("mouseup",x.handleDragEnd),l(D)},x.handleDragMove=function(D){x.setState(function(M){var O=Object.assign({},M),R=D.screenX-O.originX,j=D.screenY-O.originY;return M.dragging?(O.offsetX+=R/O.zoom,O.offsetY+=j/O.zoom,O.originX=D.screenX,O.originY=D.screenY):O.dragging=!0,O}),l(D)},x.handleDragEnd=function(D){x.setState({dragging:!1,originX:null,originY:null}),document.removeEventListener("mousemove",x.handleDragMove),document.removeEventListener("mouseup",x.handleDragEnd),S.onOffsetChange==null||S.onOffsetChange(D,x.state),l(D)},x.handleZoom=function(D,M){x.setState(function(O){var R=Math.min(Math.max(M,1),8);return O.zoom=R,S.onZoom&&S.onZoom(O.zoom),O})},x.handleReset=function(D){x.setState(function(M){M.offsetX=0,M.offsetY=0,M.zoom=1,x.handleZoom(D,1),S.onOffsetChange==null||S.onOffsetChange(D,M)})},x}C(V,N);var B=V.prototype;return B.getChildContext=function(){function S(){return{map:{zoom:this.state.zoom}}}return S}(),B.render=function(){function S(){var L=(0,t.useBackend)(this.context),w=L.config,A=this.state,x=A.dragging,E=A.offsetX,P=A.offsetY,D=A.zoom,M=D===void 0?1:D,O=this.props.children,R=this.props.mapUrl||w.map+"_nanomap_z1.png",j=c*M+"px",_={width:j,height:j,"margin-top":P*M+"px","margin-left":E*M+"px",overflow:"hidden",position:"relative",top:"50%",left:"50%",transform:"translate(-50%, -50%)","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:x?"move":"auto"},W={width:"100%",height:"100%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"};return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__container",children:[(0,e.createComponentVNode)(2,a.Box,{style:_,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,b.resolveAsset)(R),style:W}),(0,e.createComponentVNode)(2,a.Box,{children:O})]}),(0,e.createComponentVNode)(2,h,{zoom:M,onZoom:this.handleZoom,onReset:this.handleReset}),(0,e.createComponentVNode)(2,f)]})}return S}(),V}(e.Component),s=function(V,B){var S=B.map.zoom,L=V.x,w=V.y,A=V.icon,x=V.tooltip,E=V.color,P=V.children,D=k(V,y),M=m*S,O=(L-1)*M,R=(w-1)*M;return(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,a.Tooltip,{content:x,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:R+"px",left:O+"px",width:M+"px",height:M+"px"},D,{children:P})))}),2)};d.Marker=s;var u=function(V,B){var S=B.map.zoom,L=V.icon,w=V.color,A=k(V,I),x=m*S+4/Math.ceil(S/4);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({},A,{children:(0,e.createComponentVNode)(2,a.Icon,{name:L,color:w,fontSize:x+"px",style:{position:"relative",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})})))};d.MarkerIcon=u;var h=function(V,B){return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__zoomer",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Zoom",labelStyle:{"vertical-align":"middle"},children:(0,e.createComponentVNode)(2,a.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,p.Slider,{minValue:1,maxValue:8,stepPixelSize:10,format:function(){function S(L){return L+"x"}return S}(),value:V.zoom,onDrag:function(){function S(L,w){return V.onZoom(L,w)}return S}()}),(0,e.createComponentVNode)(2,a.Button,{ml:"0.5em",float:"right",icon:"sync",tooltip:"Reset View",onClick:function(){function S(L){return V.onReset==null?void 0:V.onReset(L)}return S}()})]})})})})};d.Zoomer=h;var g,v=function(N){function V(S){var L;L=N.call(this,S)||this;var w=(0,t.useBackend)(L.props.context),A=w.act;return L.state={color:L.props.color},L.handleClick=function(x){g!==void 0&&g.setState({color:"blue"}),A("switch_camera",{name:L.props.name}),g=L,L.setState({color:"green"})},L}C(V,N);var B=V.prototype;return B.render=function(){function S(){var L=this.props.x*2*this.props.zoom-this.props.zoom-3,w=this.props.y*2*this.props.zoom-this.props.zoom-3;return(0,e.createComponentVNode)(2,a.Button,{onClick:this.handleClick,position:"absolute",className:"NanoMap__button",lineHeight:"0",color:this.props.status?this.state.color:"red",bottom:w+"px",left:L+"px",children:(0,e.createComponentVNode)(2,a.Tooltip,{content:this.props.tooltip})},this.props.key)}return S}(),V}(e.Component);d.NanoButton=v;var f=function(V,B){var S=(0,t.useBackend)(B),L=S.act,w=S.data;return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__zchooser",children:[(0,e.createComponentVNode)(2,a.Box,{children:(0,e.createComponentVNode)(2,a.Button,{icon:"chevron-up",tooltip:"\u0423\u0440\u043E\u0432\u043D\u0435\u043C \u0432\u044B\u0448\u0435",onClick:function(){function A(){return L("switch_z_level",{z_dir:1})}return A}()})}),(0,e.createComponentVNode)(2,a.Box,{children:(0,e.createComponentVNode)(2,a.Button,{icon:"chevron-down",tooltip:"\u0423\u0440\u043E\u0432\u043D\u0435\u043C \u043D\u0438\u0436\u0435",onClick:function(){function A(){return L("switch_z_level",{z_dir:-1})}return A}()})})]})}},74733:function(T,r,n){"use strict";r.__esModule=!0,r.NoticeBox=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["className","color","info","warning","success","danger"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function p(y,I){if(y==null)return{};var k={};for(var C in y)if({}.hasOwnProperty.call(y,C)){if(I.includes(C))continue;k[C]=y[C]}return k}var b=r.NoticeBox=function(){function y(I){var k=I.className,C=I.color,i=I.info,c=I.warning,m=I.success,u=I.danger,d=p(I,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["NoticeBox",C&&"NoticeBox--color--"+C,i&&"NoticeBox--type--info",m&&"NoticeBox--type--success",u&&"NoticeBox--type--danger",k])},d)))}return y}();b.defaultHooks=a.pureComponentHooks},59263:function(x,r,n){"use strict";r.__esModule=!0,r.NumberInput=void 0;var e=n(89005),a=n(44879),t=n(35840),o=n(9474),p=n(55937);function b(C,i){C.prototype=Object.create(i.prototype),C.prototype.constructor=C,y(C,i)}function y(C,i){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,m){return c.__proto__=m,c},y(C,i)}/** + */function p(y,I){if(y==null)return{};var k={};for(var C in y)if({}.hasOwnProperty.call(y,C)){if(I.includes(C))continue;k[C]=y[C]}return k}var b=r.NoticeBox=function(){function y(I){var k=I.className,C=I.color,i=I.info,c=I.warning,m=I.success,l=I.danger,d=p(I,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["NoticeBox",C&&"NoticeBox--color--"+C,i&&"NoticeBox--type--info",m&&"NoticeBox--type--success",l&&"NoticeBox--type--danger",k])},d)))}return y}();b.defaultHooks=a.pureComponentHooks},59263:function(T,r,n){"use strict";r.__esModule=!0,r.NumberInput=void 0;var e=n(89005),a=n(44879),t=n(35840),o=n(9474),p=n(55937);function b(C,i){C.prototype=Object.create(i.prototype),C.prototype.constructor=C,y(C,i)}function y(C,i){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,m){return c.__proto__=m,c},y(C,i)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var I=400,k=r.NumberInput=function(C){function i(m){var u;u=C.call(this,m)||this;var d=m.value;return u.inputRef=(0,e.createRef)(),u.state={value:d,dragging:!1,editing:!1,internalValue:null,origin:null,suppressingFlicker:!1},u.flickerTimer=null,u.suppressFlicker=function(){var s=u.props.suppressFlicker;s>0&&(u.setState({suppressingFlicker:!0}),clearTimeout(u.flickerTimer),u.flickerTimer=setTimeout(function(){return u.setState({suppressingFlicker:!1})},s))},u.handleDragStart=function(s){var l=u.props.value,h=u.state.editing;h||(document.body.style["pointer-events"]="none",u.ref=s.target,u.setState({dragging:!1,origin:s.screenY,value:l,internalValue:l}),u.timer=setTimeout(function(){u.setState({dragging:!0})},250),u.dragInterval=setInterval(function(){var N=u.state,v=N.dragging,f=N.value,g=u.props.onDrag;v&&g&&g(s,f)},u.props.updateRate||I),document.addEventListener("mousemove",u.handleDragMove),document.addEventListener("mouseup",u.handleDragEnd))},u.handleDragMove=function(s){var l=u.props,h=l.minValue,N=l.maxValue,v=l.step,f=l.stepPixelSize;u.setState(function(g){var V=Object.assign({},g),B=V.origin-s.screenY;if(g.dragging){var S=Number.isFinite(h)?h%v:0;V.internalValue=(0,a.clamp)(V.internalValue+B*v/f,h-v,N+v),V.value=(0,a.clamp)(V.internalValue-V.internalValue%v+S,h,N),V.origin=s.screenY}else Math.abs(B)>4&&(V.dragging=!0);return V})},u.handleDragEnd=function(s){var l=u.props,h=l.onChange,N=l.onDrag,v=u.state,f=v.dragging,g=v.value,V=v.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(u.timer),clearInterval(u.dragInterval),u.setState({dragging:!1,editing:!f,origin:null}),document.removeEventListener("mousemove",u.handleDragMove),document.removeEventListener("mouseup",u.handleDragEnd),f)u.suppressFlicker(),h&&h(s,g),N&&N(s,g);else if(u.inputRef){var B=u.inputRef.current;B.value=V;try{B.focus(),B.select()}catch(S){}}},u}b(i,C);var c=i.prototype;return c.render=function(){function m(){var u=this,d=this.state,s=d.dragging,l=d.editing,h=d.value,N=d.suppressingFlicker,v=this.props,f=v.className,g=v.fluid,V=v.animated,B=v.value,S=v.unit,L=v.minValue,w=v.maxValue,A=v.height,T=v.width,E=v.lineHeight,P=v.fontSize,D=v.format,M=v.onChange,O=v.onDrag,R=B;(s||N)&&(R=h);var j=(0,e.createVNode)(1,"div","NumberInput__content",[V&&!s&&!N?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:R,format:D}):D?D(R):R,S?" "+S:""],0);return(0,e.createComponentVNode)(2,p.Box,{className:(0,t.classes)(["NumberInput",g&&"NumberInput--fluid",f]),minWidth:T,minHeight:A,lineHeight:E,fontSize:P,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"div","NumberInput__barContainer",(0,e.createVNode)(1,"div","NumberInput__bar",null,1,{style:{height:(0,a.clamp)((R-L)/(w-L)*100,0,100)+"%"}}),2),j,(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:l?void 0:"none",height:A,"line-height":E,"font-size":P},onBlur:function(){function _(W){if(l){var z=(0,a.clamp)(parseFloat(W.target.value),L,w);if(Number.isNaN(z)){u.setState({editing:!1});return}u.setState({editing:!1,value:z}),u.suppressFlicker(),M&&M(W,z),O&&O(W,z)}}return _}(),onKeyDown:function(){function _(W){if(W.keyCode===13){var z=(0,a.clamp)(parseFloat(W.target.value),L,w);if(Number.isNaN(z)){u.setState({editing:!1});return}u.setState({editing:!1,value:z}),u.suppressFlicker(),M&&M(W,z),O&&O(W,z);return}if(W.keyCode===27){u.setState({editing:!1});return}}return _}()},null,this.inputRef)]})}return m}(),i}(e.Component);k.defaultHooks=t.pureComponentHooks,k.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50}},33337:function(x,r,n){"use strict";r.__esModule=!0,r.Pointer=void 0;var e=n(89005),a=n(35840),t=r.Pointer=function(){function o(p){var b=p.className,y=p.color,I=p.left,k=p.top,C=k===void 0?.5:k,i=(0,a.classes)(["react-colorful__pointer",b]),c={top:C*100+"%",left:I*100+"%"};return(0,e.createVNode)(1,"div",i,(0,e.createVNode)(1,"div","react-colorful__pointer-fill",null,1,{style:{"background-color":y}}),2,{style:c})}return o}()},50186:function(x,r,n){"use strict";r.__esModule=!0,r.Popper=void 0;var e=n(95996),a=n(89005);function t(b,y){b.prototype=Object.create(y.prototype),b.prototype.constructor=b,o(b,y)}function o(b,y){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(I,k){return I.__proto__=k,I},o(b,y)}var p=r.Popper=function(b){function y(){var k;return k=b.call(this)||this,k.renderedContent=void 0,k.popperInstance=void 0,y.id+=1,k}t(y,b);var I=y.prototype;return I.componentDidMount=function(){function k(){var C=this,i=this.props,c=i.additionalStyles,m=i.options;if(this.renderedContent=document.createElement("div"),c)for(var u=0,d=Object.entries(c);u0&&(l.setState({suppressingFlicker:!0}),clearTimeout(l.flickerTimer),l.flickerTimer=setTimeout(function(){return l.setState({suppressingFlicker:!1})},s))},l.handleDragStart=function(s){var u=l.props.value,h=l.state.editing;h||(document.body.style["pointer-events"]="none",l.ref=s.target,l.setState({dragging:!1,origin:s.screenY,value:u,internalValue:u}),l.timer=setTimeout(function(){l.setState({dragging:!0})},250),l.dragInterval=setInterval(function(){var g=l.state,v=g.dragging,f=g.value,N=l.props.onDrag;v&&N&&N(s,f)},l.props.updateRate||I),document.addEventListener("mousemove",l.handleDragMove),document.addEventListener("mouseup",l.handleDragEnd))},l.handleDragMove=function(s){var u=l.props,h=u.minValue,g=u.maxValue,v=u.step,f=u.stepPixelSize;l.setState(function(N){var V=Object.assign({},N),B=V.origin-s.screenY;if(N.dragging){var S=Number.isFinite(h)?h%v:0;V.internalValue=(0,a.clamp)(V.internalValue+B*v/f,h-v,g+v),V.value=(0,a.clamp)(V.internalValue-V.internalValue%v+S,h,g),V.origin=s.screenY}else Math.abs(B)>4&&(V.dragging=!0);return V})},l.handleDragEnd=function(s){var u=l.props,h=u.onChange,g=u.onDrag,v=l.state,f=v.dragging,N=v.value,V=v.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(l.timer),clearInterval(l.dragInterval),l.setState({dragging:!1,editing:!f,origin:null}),document.removeEventListener("mousemove",l.handleDragMove),document.removeEventListener("mouseup",l.handleDragEnd),f)l.suppressFlicker(),h&&h(s,N),g&&g(s,N);else if(l.inputRef){var B=l.inputRef.current;B.value=V;try{B.focus(),B.select()}catch(S){}}},l}b(i,C);var c=i.prototype;return c.render=function(){function m(){var l=this,d=this.state,s=d.dragging,u=d.editing,h=d.value,g=d.suppressingFlicker,v=this.props,f=v.className,N=v.fluid,V=v.animated,B=v.value,S=v.unit,L=v.minValue,w=v.maxValue,A=v.height,x=v.width,E=v.lineHeight,P=v.fontSize,D=v.format,M=v.onChange,O=v.onDrag,R=B;(s||g)&&(R=h);var j=(0,e.createVNode)(1,"div","NumberInput__content",[V&&!s&&!g?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:R,format:D}):D?D(R):R,S?" "+S:""],0);return(0,e.createComponentVNode)(2,p.Box,{className:(0,t.classes)(["NumberInput",N&&"NumberInput--fluid",f]),minWidth:x,minHeight:A,lineHeight:E,fontSize:P,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"div","NumberInput__barContainer",(0,e.createVNode)(1,"div","NumberInput__bar",null,1,{style:{height:(0,a.clamp)((R-L)/(w-L)*100,0,100)+"%"}}),2),j,(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:u?void 0:"none",height:A,"line-height":E,"font-size":P},onBlur:function(){function _(W){if(u){var z=(0,a.clamp)(parseFloat(W.target.value),L,w);if(Number.isNaN(z)){l.setState({editing:!1});return}l.setState({editing:!1,value:z}),l.suppressFlicker(),M&&M(W,z),O&&O(W,z)}}return _}(),onKeyDown:function(){function _(W){if(W.keyCode===13){var z=(0,a.clamp)(parseFloat(W.target.value),L,w);if(Number.isNaN(z)){l.setState({editing:!1});return}l.setState({editing:!1,value:z}),l.suppressFlicker(),M&&M(W,z),O&&O(W,z);return}if(W.keyCode===27){l.setState({editing:!1});return}}return _}()},null,this.inputRef)]})}return m}(),i}(e.Component);k.defaultHooks=t.pureComponentHooks,k.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50}},33337:function(T,r,n){"use strict";r.__esModule=!0,r.Pointer=void 0;var e=n(89005),a=n(35840),t=r.Pointer=function(){function o(p){var b=p.className,y=p.color,I=p.left,k=p.top,C=k===void 0?.5:k,i=(0,a.classes)(["react-colorful__pointer",b]),c={top:C*100+"%",left:I*100+"%"};return(0,e.createVNode)(1,"div",i,(0,e.createVNode)(1,"div","react-colorful__pointer-fill",null,1,{style:{"background-color":y}}),2,{style:c})}return o}()},50186:function(T,r,n){"use strict";r.__esModule=!0,r.Popper=void 0;var e=n(95996),a=n(89005);function t(b,y){b.prototype=Object.create(y.prototype),b.prototype.constructor=b,o(b,y)}function o(b,y){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(I,k){return I.__proto__=k,I},o(b,y)}var p=r.Popper=function(b){function y(){var k;return k=b.call(this)||this,k.renderedContent=void 0,k.popperInstance=void 0,y.id+=1,k}t(y,b);var I=y.prototype;return I.componentDidMount=function(){function k(){var C=this,i=this.props,c=i.additionalStyles,m=i.options;if(this.renderedContent=document.createElement("div"),c)for(var l=0,d=Object.entries(c);l=C.length)){var m=document.body.offsetHeight-c.getBoundingClientRect().bottom,u=Math.ceil(c.offsetHeight/i);if(m>0){var d=Math.min(C.length,i+Math.max(1,Math.ceil(m/u)));k.setState({visibleElements:d,padding:(C.length-d)*u})}}},k.containerRef=(0,e.createRef)(),k.state={visibleElements:1,padding:0},k}a(b,p);var y=b.prototype;return y.componentDidMount=function(){function I(){this.adjustExtents(),this.intervalId=setInterval(this.adjustExtents,100)}return I}(),y.componentWillUnmount=function(){function I(){clearInterval(this.intervalId)}return I}(),y.render=function(){function I(){var k=this.props.children,C=this.state,i=C.visibleElements,c=C.padding;return(0,e.createVNode)(1,"div","VirtualList",[(0,e.createVNode)(1,"div","VirtualList__Container",Array.isArray(k)?k.slice(0,i):null,0,null,null,this.containerRef),(0,e.createVNode)(1,"div","VirtualList__Padding",null,1,{style:{"padding-bottom":c+"px"}})],4)}return I}(),b}(e.Component)},36036:function(x,r,n){"use strict";r.__esModule=!0,r.Tooltip=r.TimeDisplay=r.TextArea=r.Tabs=r.Table=r.Stack=r.Slider=r.Section=r.RoundGauge=r.RestrictedInput=r.ProgressBar=r.Popper=r.Pointer=r.NumberInput=r.NoticeBox=r.NanoMap=r.Modal=r.LabeledList=r.LabeledControls=r.Knob=r.Interactive=r.Input=r.ImageButton=r.Image=r.Icon=r.Grid=r.Flex=r.Dropdown=r.DraggableControl=r.DmIcon=r.Divider=r.Dimmer=r.Countdown=r.ColorBox=r.Collapsible=r.Chart=r.ByondUi=r.Button=r.Box=r.BlockQuote=r.Blink=r.Autofocus=r.AnimatedNumber=void 0;var e=n(9474);r.AnimatedNumber=e.AnimatedNumber;var a=n(27185);r.Autofocus=a.Autofocus;var t=n(5814);r.Blink=t.Blink;var o=n(61773);r.BlockQuote=o.BlockQuote;var p=n(55937);r.Box=p.Box;var b=n(96184);r.Button=b.Button;var y=n(18982);r.ByondUi=y.ByondUi;var I=n(66820);r.Chart=I.Chart;var k=n(4796);r.Collapsible=k.Collapsible;var C=n(88894);r.ColorBox=C.ColorBox;var i=n(73379);r.Countdown=i.Countdown;var c=n(61940);r.Dimmer=c.Dimmer;var m=n(13605);r.Divider=m.Divider;var u=n(20342);r.DraggableControl=u.DraggableControl;var d=n(87099);r.Dropdown=d.Dropdown;var s=n(39473);r.Flex=s.Flex;var l=n(79646);r.Grid=l.Grid;var h=n(4454);r.Interactive=h.Interactive;var N=n(91225);r.Image=N.Image;var v=n(60218);r.DmIcon=v.DmIcon;var f=n(1331);r.Icon=f.Icon;var g=n(79825);r.ImageButton=g.ImageButton;var V=n(79652);r.Input=V.Input;var B=n(76334);r.Knob=B.Knob;var S=n(78621);r.LabeledControls=S.LabeledControls;var L=n(29319);r.LabeledList=L.LabeledList;var w=n(36077);r.Modal=w.Modal;var A=n(73280);r.NanoMap=A.NanoMap;var T=n(74733);r.NoticeBox=T.NoticeBox;var E=n(59263);r.NumberInput=E.NumberInput;var P=n(33337);r.Pointer=P.Pointer;var D=n(50186);r.Popper=D.Popper;var M=n(92704);r.ProgressBar=M.ProgressBar;var O=n(9075);r.RestrictedInput=O.RestrictedInput;var R=n(11441);r.RoundGauge=R.RoundGauge;var j=n(97079);r.Section=j.Section;var _=n(79911);r.Slider=_.Slider;var W=n(96690);r.Stack=W.Stack;var z=n(36352);r.Table=z.Table;var K=n(85138);r.Tabs=K.Tabs;var G=n(44868);r.TextArea=G.TextArea;var Q=n(5169);r.TimeDisplay=Q.TimeDisplay;var J=n(62147);r.Tooltip=J.Tooltip},76910:function(x,r){"use strict";r.__esModule=!0,r.timeAgo=r.getGasLabel=r.getGasColor=r.UI_UPDATE=r.UI_INTERACTIVE=r.UI_DISABLED=r.UI_CLOSE=r.RADIO_CHANNELS=r.CSS_COLORS=r.COLORS=void 0;var n=r.UI_INTERACTIVE=2,e=r.UI_UPDATE=1,a=r.UI_DISABLED=0,t=r.UI_CLOSE=-1,o=r.COLORS={department:{command:"#526aff",security:"#CF0000",medical:"#009190",science:"#993399",engineering:"#A66300",supply:"#9F8545",service:"#80A000",centcom:"#78789B",other:"#C38312"},damageType:{oxy:"#3498db",toxin:"#2ecc71",burn:"#e67e22",brute:"#e74c3c"}},p=r.CSS_COLORS=["black","white","red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","good","average","bad","label"],b=r.RADIO_CHANNELS=[{name:"Syndicate",freq:1213,color:"#a52a2a"},{name:"SyndTeam",freq:1244,color:"#a52a2a"},{name:"Red Team",freq:1215,color:"#ff4444"},{name:"Blue Team",freq:1217,color:"#3434fd"},{name:"Response Team",freq:1345,color:"#2681a5"},{name:"Special Ops",freq:1341,color:"#2681a5"},{name:"Supply",freq:1347,color:"#b88646"},{name:"Service",freq:1349,color:"#6ca729"},{name:"Science",freq:1351,color:"#c68cfa"},{name:"Command",freq:1353,color:"#5177ff"},{name:"Procedure",freq:1339,color:"#F70285"},{name:"Medical",freq:1355,color:"#57b8f0"},{name:"Medical(I)",freq:1485,color:"#57b8f0"},{name:"Engineering",freq:1357,color:"#f37746"},{name:"Security",freq:1359,color:"#dd3535"},{name:"Security(I)",freq:1475,color:"#dd3535"},{name:"AI Private",freq:1343,color:"#d65d95"},{name:"Common",freq:1459,color:"#1ecc43"},{name:"VoxCom",freq:1220,color:"#952aa5"}],y=[{id:"o2",name:"Oxygen",label:"O\u2082",color:"blue"},{id:"n2",name:"Nitrogen",label:"N\u2082",color:"red"},{id:"co2",name:"Carbon Dioxide",label:"CO\u2082",color:"grey"},{id:"plasma",name:"Plasma",label:"Plasma",color:"pink"},{id:"water_vapor",name:"Water Vapor",label:"H\u2082O",color:"grey"},{id:"nob",name:"Hyper-noblium",label:"Hyper-nob",color:"teal"},{id:"n2o",name:"Nitrous Oxide",label:"N\u2082O",color:"red"},{id:"no2",name:"Nitryl",label:"NO\u2082",color:"brown"},{id:"tritium",name:"Tritium",label:"Tritium",color:"green"},{id:"bz",name:"BZ",label:"BZ",color:"purple"},{id:"stim",name:"Stimulum",label:"Stimulum",color:"purple"},{id:"pluox",name:"Pluoxium",label:"Pluoxium",color:"blue"},{id:"miasma",name:"Miasma",label:"Miasma",color:"olive"},{id:"hydrogen",name:"Hydrogen",label:"H\u2082",color:"white"},{id:"ab",name:"Agent B",label:"Agent B",color:"purple"}],I=r.getGasLabel=function(){function i(c,m){var u=String(c).toLowerCase(),d=y.find(function(s){return s.id===u||s.name.toLowerCase()===u});return d&&d.label||m||c}return i}(),k=r.getGasColor=function(){function i(c){var m=String(c).toLowerCase(),u=y.find(function(d){return d.id===m||d.name.toLowerCase()===m});return u&&u.color}return i}(),C=r.timeAgo=function(){function i(c,m){if(c>m)return"in the future";c=c/10,m=m/10;var u=m-c;if(u>3600){var d=Math.round(u/3600);return d+" hour"+(d===1?"":"s")+" ago"}else if(u>60){var s=Math.round(u/60);return s+" minute"+(s===1?"":"s")+" ago"}else{var l=Math.round(u);return l+" second"+(l===1?"":"s")+" ago"}return"just now"}return i}()},40944:function(x,r,n){"use strict";r.__esModule=!0,r.KitchenSink=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595);/** +*/var i=r.TextArea=function(c){function m(d,s){var u;u=c.call(this,d,s)||this,u.textareaRef=d.innerRef||(0,e.createRef)(),u.fillerRef=(0,e.createRef)(),u.state={editing:!1};var h=d.dontUseTabForIndent,g=h===void 0?!1:h;return u.handleOnInput=function(v){var f=u.state.editing,N=u.props.onInput;f||u.setEditing(!0),N&&N(v,v.target.value)},u.handleOnChange=function(v){var f=u.state.editing,N=u.props.onChange;f&&u.setEditing(!1),N&&N(v,v.target.value)},u.handleKeyPress=function(v){var f=u.state.editing,N=u.props.onKeyPress;f||u.setEditing(!0),N&&N(v,v.target.value)},u.handleKeyDown=function(v){var f=u.state.editing,N=u.props,V=N.onChange,B=N.onInput,S=N.onEnter,L=N.onKeyDown;if(v.keyCode===p.KEY_ENTER){u.setEditing(!1),V&&V(v,v.target.value),B&&B(v,v.target.value),S&&S(v,v.target.value),u.props.selfClear&&(v.target.value="",v.target.blur());return}if(v.keyCode===p.KEY_ESCAPE){u.props.onEscape&&u.props.onEscape(v),u.setEditing(!1),u.props.selfClear?v.target.value="":(v.target.value=(0,o.toInputValue)(u.props.value),v.target.blur());return}if(f||u.setEditing(!0),L&&L(v,v.target.value),!g){var w=v.keyCode||v.which;if(w===p.KEY_TAB){v.preventDefault();var A=v.target,x=A.value,E=A.selectionStart,P=A.selectionEnd;v.target.value=x.substring(0,E)+" "+x.substring(P),v.target.selectionEnd=E+1}}},u.handleFocus=function(v){var f=u.state.editing;f||u.setEditing(!0)},u.handleBlur=function(v){var f=u.state.editing,N=u.props.onChange;f&&(u.setEditing(!1),N&&N(v,v.target.value))},u}k(m,c);var l=m.prototype;return l.componentDidMount=function(){function d(){var s=this,u=this.props.value,h=this.textareaRef.current;h&&(h.value=(0,o.toInputValue)(u)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){h.focus(),s.props.autoSelect&&h.select()},1)}return d}(),l.componentDidUpdate=function(){function d(s,u){var h=s.value,g=this.props.value,v=this.textareaRef.current;v&&typeof g=="string"&&h!==g&&(v.value=(0,o.toInputValue)(g))}return d}(),l.setEditing=function(){function d(s){this.setState({editing:s})}return d}(),l.getValue=function(){function d(){return this.textareaRef.current&&this.textareaRef.current.value}return d}(),l.render=function(){function d(){var s=this.props,u=s.onChange,h=s.onKeyDown,g=s.onKeyPress,v=s.onInput,f=s.onFocus,N=s.onBlur,V=s.onEnter,B=s.value,S=s.maxLength,L=s.placeholder,w=I(s,b),A=w.className,x=w.fluid,E=I(w,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["TextArea",x&&"TextArea--fluid",A])},E,{children:(0,e.createVNode)(128,"textarea","TextArea__textarea",null,1,{placeholder:L,onChange:this.handleOnChange,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,onInput:this.handleOnInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:S},null,this.textareaRef)})))}return d}(),m}(e.Component)},5169:function(T,r){"use strict";r.__esModule=!0,r.TimeDisplay=void 0;var n=function(t){(!t||t<0)&&(t=0);var o=Math.floor(t/60).toString(10),p=(Math.floor(t)%60).toString(10);return[o,p].map(function(b){return b.length<2?"0"+b:b}).join(":")},e=r.TimeDisplay=function(){function a(t){var o=t.totalSeconds,p=o===void 0?0:o;return n(p)}return a}()},62147:function(T,r,n){"use strict";r.__esModule=!0,r.Tooltip=void 0;var e=n(89005),a=n(95996),t;function o(k,C){k.prototype=Object.create(C.prototype),k.prototype.constructor=k,p(k,C)}function p(k,C){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,c){return i.__proto__=c,i},p(k,C)}var b={modifiers:[{name:"eventListeners",enabled:!1}]},y={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function k(){return null}return k}()},I=r.Tooltip=function(k){function C(){return k.apply(this,arguments)||this}o(C,k);var i=C.prototype;return i.getDOMNode=function(){function c(){return(0,e.findDOMFromVNode)(this.$LI,!0)}return c}(),i.componentDidMount=function(){function c(){var m=this,l=this.getDOMNode();l&&(l.addEventListener("mouseenter",function(){var d=C.renderedTooltip;d===void 0&&(d=document.createElement("div"),d.className="Tooltip",document.body.appendChild(d),C.renderedTooltip=d),C.currentHoveredElement=l,d.style.opacity="1",m.renderPopperContent()}),l.addEventListener("mouseleave",function(){m.fadeOut()}))}return c}(),i.fadeOut=function(){function c(){C.currentHoveredElement===this.getDOMNode()&&(C.currentHoveredElement=void 0,C.renderedTooltip.style.opacity="0")}return c}(),i.renderPopperContent=function(){function c(){var m=this,l=C.renderedTooltip;l&&(0,e.render)((0,e.createVNode)(1,"span",null,this.props.content,0),l,function(){var d=C.singletonPopper;d===void 0?(d=(0,a.createPopper)(C.virtualElement,l,Object.assign({},b,{placement:m.props.position||"auto"})),C.singletonPopper=d):(d.setOptions(Object.assign({},b,{placement:m.props.position||"auto"})),d.update())},this.context)}return c}(),i.componentDidUpdate=function(){function c(){C.currentHoveredElement===this.getDOMNode()&&this.renderPopperContent()}return c}(),i.componentWillUnmount=function(){function c(){this.fadeOut()}return c}(),i.render=function(){function c(){return this.props.children}return c}(),C}(e.Component);t=I,I.renderedTooltip=void 0,I.singletonPopper=void 0,I.currentHoveredElement=void 0,I.virtualElement={getBoundingClientRect:function(){function k(){var C,i;return(C=(i=t.currentHoveredElement)==null?void 0:i.getBoundingClientRect())!=null?C:y}return k}()}},46095:function(T,r,n){"use strict";r.__esModule=!0,r.VirtualList=void 0;var e=n(89005);function a(p,b){p.prototype=Object.create(b.prototype),p.prototype.constructor=p,t(p,b)}function t(p,b){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(y,I){return y.__proto__=I,y},t(p,b)}var o=r.VirtualList=function(p){function b(I){var k;return k=p.call(this,I)||this,k.containerRef=void 0,k.intervalId=void 0,k.adjustExtents=function(){var C=k.props.children,i=k.state.visibleElements,c=k.containerRef.current;if(!(!C||!Array.isArray(C)||!c||i>=C.length)){var m=document.body.offsetHeight-c.getBoundingClientRect().bottom,l=Math.ceil(c.offsetHeight/i);if(m>0){var d=Math.min(C.length,i+Math.max(1,Math.ceil(m/l)));k.setState({visibleElements:d,padding:(C.length-d)*l})}}},k.containerRef=(0,e.createRef)(),k.state={visibleElements:1,padding:0},k}a(b,p);var y=b.prototype;return y.componentDidMount=function(){function I(){this.adjustExtents(),this.intervalId=setInterval(this.adjustExtents,100)}return I}(),y.componentWillUnmount=function(){function I(){clearInterval(this.intervalId)}return I}(),y.render=function(){function I(){var k=this.props.children,C=this.state,i=C.visibleElements,c=C.padding;return(0,e.createVNode)(1,"div","VirtualList",[(0,e.createVNode)(1,"div","VirtualList__Container",Array.isArray(k)?k.slice(0,i):null,0,null,null,this.containerRef),(0,e.createVNode)(1,"div","VirtualList__Padding",null,1,{style:{"padding-bottom":c+"px"}})],4)}return I}(),b}(e.Component)},36036:function(T,r,n){"use strict";r.__esModule=!0,r.Tooltip=r.TimeDisplay=r.TextArea=r.Tabs=r.Table=r.Stack=r.Slider=r.Section=r.RoundGauge=r.RestrictedInput=r.ProgressBar=r.Popper=r.Pointer=r.NumberInput=r.NoticeBox=r.NanoMap=r.Modal=r.LabeledList=r.LabeledControls=r.Knob=r.Interactive=r.Input=r.ImageButton=r.Image=r.Icon=r.Grid=r.Flex=r.Dropdown=r.DraggableControl=r.DmIcon=r.Divider=r.Dimmer=r.Countdown=r.ColorBox=r.Collapsible=r.Chart=r.ByondUi=r.Button=r.Box=r.BlockQuote=r.Blink=r.Autofocus=r.AnimatedNumber=void 0;var e=n(9474);r.AnimatedNumber=e.AnimatedNumber;var a=n(27185);r.Autofocus=a.Autofocus;var t=n(5814);r.Blink=t.Blink;var o=n(61773);r.BlockQuote=o.BlockQuote;var p=n(55937);r.Box=p.Box;var b=n(96184);r.Button=b.Button;var y=n(18982);r.ByondUi=y.ByondUi;var I=n(66820);r.Chart=I.Chart;var k=n(4796);r.Collapsible=k.Collapsible;var C=n(88894);r.ColorBox=C.ColorBox;var i=n(73379);r.Countdown=i.Countdown;var c=n(61940);r.Dimmer=c.Dimmer;var m=n(13605);r.Divider=m.Divider;var l=n(20342);r.DraggableControl=l.DraggableControl;var d=n(87099);r.Dropdown=d.Dropdown;var s=n(39473);r.Flex=s.Flex;var u=n(79646);r.Grid=u.Grid;var h=n(4454);r.Interactive=h.Interactive;var g=n(91225);r.Image=g.Image;var v=n(60218);r.DmIcon=v.DmIcon;var f=n(1331);r.Icon=f.Icon;var N=n(79825);r.ImageButton=N.ImageButton;var V=n(79652);r.Input=V.Input;var B=n(76334);r.Knob=B.Knob;var S=n(78621);r.LabeledControls=S.LabeledControls;var L=n(29319);r.LabeledList=L.LabeledList;var w=n(36077);r.Modal=w.Modal;var A=n(73280);r.NanoMap=A.NanoMap;var x=n(74733);r.NoticeBox=x.NoticeBox;var E=n(59263);r.NumberInput=E.NumberInput;var P=n(33337);r.Pointer=P.Pointer;var D=n(50186);r.Popper=D.Popper;var M=n(92704);r.ProgressBar=M.ProgressBar;var O=n(9075);r.RestrictedInput=O.RestrictedInput;var R=n(11441);r.RoundGauge=R.RoundGauge;var j=n(97079);r.Section=j.Section;var _=n(79911);r.Slider=_.Slider;var W=n(96690);r.Stack=W.Stack;var z=n(36352);r.Table=z.Table;var K=n(85138);r.Tabs=K.Tabs;var G=n(44868);r.TextArea=G.TextArea;var Q=n(5169);r.TimeDisplay=Q.TimeDisplay;var J=n(62147);r.Tooltip=J.Tooltip},76910:function(T,r){"use strict";r.__esModule=!0,r.timeAgo=r.getGasLabel=r.getGasColor=r.UI_UPDATE=r.UI_INTERACTIVE=r.UI_DISABLED=r.UI_CLOSE=r.RADIO_CHANNELS=r.CSS_COLORS=r.COLORS=void 0;var n=r.UI_INTERACTIVE=2,e=r.UI_UPDATE=1,a=r.UI_DISABLED=0,t=r.UI_CLOSE=-1,o=r.COLORS={department:{command:"#526aff",security:"#CF0000",medical:"#009190",science:"#993399",engineering:"#A66300",supply:"#9F8545",service:"#80A000",centcom:"#78789B",other:"#C38312"},damageType:{oxy:"#3498db",toxin:"#2ecc71",burn:"#e67e22",brute:"#e74c3c"}},p=r.CSS_COLORS=["black","white","red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","good","average","bad","label"],b=r.RADIO_CHANNELS=[{name:"Syndicate",freq:1213,color:"#a52a2a"},{name:"SyndTeam",freq:1244,color:"#a52a2a"},{name:"Red Team",freq:1215,color:"#ff4444"},{name:"Blue Team",freq:1217,color:"#3434fd"},{name:"Response Team",freq:1345,color:"#2681a5"},{name:"Special Ops",freq:1341,color:"#2681a5"},{name:"Supply",freq:1347,color:"#b88646"},{name:"Service",freq:1349,color:"#6ca729"},{name:"Science",freq:1351,color:"#c68cfa"},{name:"Command",freq:1353,color:"#5177ff"},{name:"Procedure",freq:1339,color:"#F70285"},{name:"Medical",freq:1355,color:"#57b8f0"},{name:"Medical(I)",freq:1485,color:"#57b8f0"},{name:"Engineering",freq:1357,color:"#f37746"},{name:"Security",freq:1359,color:"#dd3535"},{name:"Security(I)",freq:1475,color:"#dd3535"},{name:"AI Private",freq:1343,color:"#d65d95"},{name:"Common",freq:1459,color:"#1ecc43"},{name:"VoxCom",freq:1220,color:"#952aa5"}],y=[{id:"o2",name:"Oxygen",label:"O\u2082",color:"blue"},{id:"n2",name:"Nitrogen",label:"N\u2082",color:"red"},{id:"co2",name:"Carbon Dioxide",label:"CO\u2082",color:"grey"},{id:"plasma",name:"Plasma",label:"Plasma",color:"pink"},{id:"water_vapor",name:"Water Vapor",label:"H\u2082O",color:"grey"},{id:"nob",name:"Hyper-noblium",label:"Hyper-nob",color:"teal"},{id:"n2o",name:"Nitrous Oxide",label:"N\u2082O",color:"red"},{id:"no2",name:"Nitryl",label:"NO\u2082",color:"brown"},{id:"tritium",name:"Tritium",label:"Tritium",color:"green"},{id:"bz",name:"BZ",label:"BZ",color:"purple"},{id:"stim",name:"Stimulum",label:"Stimulum",color:"purple"},{id:"pluox",name:"Pluoxium",label:"Pluoxium",color:"blue"},{id:"miasma",name:"Miasma",label:"Miasma",color:"olive"},{id:"hydrogen",name:"Hydrogen",label:"H\u2082",color:"white"},{id:"ab",name:"Agent B",label:"Agent B",color:"purple"}],I=r.getGasLabel=function(){function i(c,m){var l=String(c).toLowerCase(),d=y.find(function(s){return s.id===l||s.name.toLowerCase()===l});return d&&d.label||m||c}return i}(),k=r.getGasColor=function(){function i(c){var m=String(c).toLowerCase(),l=y.find(function(d){return d.id===m||d.name.toLowerCase()===m});return l&&l.color}return i}(),C=r.timeAgo=function(){function i(c,m){if(c>m)return"in the future";c=c/10,m=m/10;var l=m-c;if(l>3600){var d=Math.round(l/3600);return d+" hour"+(d===1?"":"s")+" ago"}else if(l>60){var s=Math.round(l/60);return s+" minute"+(s===1?"":"s")+" ago"}else{var u=Math.round(l);return u+" second"+(u===1?"":"s")+" ago"}return"just now"}return i}()},40944:function(T,r,n){"use strict";r.__esModule=!0,r.KitchenSink=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var p=n(4085),b=function(){return p.keys().map(function(k){return p(k)})},y=r.KitchenSink=function(){function I(k,C){var i=k.panel,c=(0,a.useLocalState)(C,"kitchenSinkTheme"),m=c[0],u=(0,a.useLocalState)(C,"pageIndex",0),d=u[0],s=u[1],l=b(),h=l[d],N=i?o.Pane:o.Window;return(0,e.createComponentVNode)(2,N,{title:"Kitchen Sink",width:600,height:500,theme:m,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{m:1,mr:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,fitted:!0,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:l.map(function(v,f){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{color:"transparent",selected:f===d,onClick:function(){function g(){return s(f)}return g}(),children:v.meta.title},f)})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{position:"relative",grow:1,children:(0,e.createComponentVNode)(2,N.Content,{scrollable:!0,children:h.meta.render()})})]})})}return I}()},77384:function(x,r,n){"use strict";r.__esModule=!0,r.toggleKitchenSink=r.toggleDebugLayout=r.openExternalBrowser=void 0;var e=n(85307);/** + */var p=n(4085),b=function(){return p.keys().map(function(k){return p(k)})},y=r.KitchenSink=function(){function I(k,C){var i=k.panel,c=(0,a.useLocalState)(C,"kitchenSinkTheme"),m=c[0],l=(0,a.useLocalState)(C,"pageIndex",0),d=l[0],s=l[1],u=b(),h=u[d],g=i?o.Pane:o.Window;return(0,e.createComponentVNode)(2,g,{title:"Kitchen Sink",width:600,height:500,theme:m,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{m:1,mr:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,fitted:!0,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:u.map(function(v,f){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{color:"transparent",selected:f===d,onClick:function(){function N(){return s(f)}return N}(),children:v.meta.title},f)})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{position:"relative",grow:1,children:(0,e.createComponentVNode)(2,g.Content,{scrollable:!0,children:h.meta.render()})})]})})}return I}()},77384:function(T,r,n){"use strict";r.__esModule=!0,r.toggleKitchenSink=r.toggleDebugLayout=r.openExternalBrowser=void 0;var e=n(85307);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var a=r.toggleKitchenSink=(0,e.createAction)("debug/toggleKitchenSink"),t=r.toggleDebugLayout=(0,e.createAction)("debug/toggleDebugLayout"),o=r.openExternalBrowser=(0,e.createAction)("debug/openExternalBrowser")},92731:function(x,r,n){"use strict";r.__esModule=!0,r.useDebug=void 0;var e=n(85307),a=n(27709);/** + */var a=r.toggleKitchenSink=(0,e.createAction)("debug/toggleKitchenSink"),t=r.toggleDebugLayout=(0,e.createAction)("debug/toggleDebugLayout"),o=r.openExternalBrowser=(0,e.createAction)("debug/openExternalBrowser")},92731:function(T,r,n){"use strict";r.__esModule=!0,r.useDebug=void 0;var e=n(85307),a=n(27709);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.useDebug=function(){function o(p){return(0,e.useSelector)(p,a.selectDebug)}return o}()},99851:function(x,r,n){"use strict";r.__esModule=!0,r.useDebug=r.relayMiddleware=r.debugReducer=r.debugMiddleware=r.KitchenSink=void 0;var e=n(92731);r.useDebug=e.useDebug;var a=n(40944);r.KitchenSink=a.KitchenSink;var t=n(3583);r.debugMiddleware=t.debugMiddleware,r.relayMiddleware=t.relayMiddleware;var o=n(19147);r.debugReducer=o.debugReducer},3583:function(x,r,n){"use strict";r.__esModule=!0,r.relayMiddleware=r.debugMiddleware=void 0;var e=n(92986),a=n(24826),t=n(56518),o=n(77384);/** + */var t=r.useDebug=function(){function o(p){return(0,e.useSelector)(p,a.selectDebug)}return o}()},99851:function(T,r,n){"use strict";r.__esModule=!0,r.useDebug=r.relayMiddleware=r.debugReducer=r.debugMiddleware=r.KitchenSink=void 0;var e=n(92731);r.useDebug=e.useDebug;var a=n(40944);r.KitchenSink=a.KitchenSink;var t=n(3583);r.debugMiddleware=t.debugMiddleware,r.relayMiddleware=t.relayMiddleware;var o=n(19147);r.debugReducer=o.debugReducer},3583:function(T,r,n){"use strict";r.__esModule=!0,r.relayMiddleware=r.debugMiddleware=void 0;var e=n(92986),a=n(24826),t=n(56518),o=n(77384);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var p=["backend/update","chat/message"],b=r.debugMiddleware=function(){function I(k){return(0,t.acquireHotKey)(e.KEY_F11),(0,t.acquireHotKey)(e.KEY_F12),a.globalEvents.on("keydown",function(C){C.code===e.KEY_F11&&k.dispatch((0,o.toggleDebugLayout)()),C.code===e.KEY_F12&&k.dispatch((0,o.toggleKitchenSink)()),C.ctrl&&C.alt&&C.code===e.KEY_BACKSPACE&&setTimeout(function(){throw new Error("OOPSIE WOOPSIE!! UwU We made a fucky wucky!! A wittle fucko boingo! The code monkeys at our headquarters are working VEWY HAWD to fix this!")})}),function(C){return function(i){return C(i)}}}return I}(),y=r.relayMiddleware=function(){function I(k){var C=n(7435),i=location.search==="?external";return i?C.subscribe(function(c){var m=c.type,u=c.payload;m==="relay"&&u.windowId===Byond.windowId&&k.dispatch(Object.assign({},u.action,{relayed:!0}))}):((0,t.acquireHotKey)(e.KEY_F10),a.globalEvents.on("keydown",function(c){c===e.KEY_F10&&k.dispatch((0,o.openExternalBrowser)())})),function(c){return function(m){var u=m.type,d=m.payload,s=m.relayed;if(u===o.openExternalBrowser.type){window.open(location.href+"?external","_blank");return}return p.includes(u)&&!s&&!i&&C.sendMessage({type:"relay",payload:{windowId:Byond.windowId,action:m}}),c(m)}}}return I}()},19147:function(x,r){"use strict";r.__esModule=!0,r.debugReducer=void 0;/** + */var p=["backend/update","chat/message"],b=r.debugMiddleware=function(){function I(k){return(0,t.acquireHotKey)(e.KEY_F11),(0,t.acquireHotKey)(e.KEY_F12),a.globalEvents.on("keydown",function(C){C.code===e.KEY_F11&&k.dispatch((0,o.toggleDebugLayout)()),C.code===e.KEY_F12&&k.dispatch((0,o.toggleKitchenSink)()),C.ctrl&&C.alt&&C.code===e.KEY_BACKSPACE&&setTimeout(function(){throw new Error("OOPSIE WOOPSIE!! UwU We made a fucky wucky!! A wittle fucko boingo! The code monkeys at our headquarters are working VEWY HAWD to fix this!")})}),function(C){return function(i){return C(i)}}}return I}(),y=r.relayMiddleware=function(){function I(k){var C=n(7435),i=location.search==="?external";return i?C.subscribe(function(c){var m=c.type,l=c.payload;m==="relay"&&l.windowId===Byond.windowId&&k.dispatch(Object.assign({},l.action,{relayed:!0}))}):((0,t.acquireHotKey)(e.KEY_F10),a.globalEvents.on("keydown",function(c){c===e.KEY_F10&&k.dispatch((0,o.openExternalBrowser)())})),function(c){return function(m){var l=m.type,d=m.payload,s=m.relayed;if(l===o.openExternalBrowser.type){window.open(location.href+"?external","_blank");return}return p.includes(l)&&!s&&!i&&C.sendMessage({type:"relay",payload:{windowId:Byond.windowId,action:m}}),c(m)}}}return I}()},19147:function(T,r){"use strict";r.__esModule=!0,r.debugReducer=void 0;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var n=r.debugReducer=function(){function e(a,t){a===void 0&&(a={});var o=t.type,p=t.payload;return o==="debug/toggleKitchenSink"?Object.assign({},a,{kitchenSink:!a.kitchenSink}):o==="debug/toggleDebugLayout"?Object.assign({},a,{debugLayout:!a.debugLayout}):a}return e}()},27709:function(x,r){"use strict";r.__esModule=!0,r.selectDebug=void 0;/** + */var n=r.debugReducer=function(){function e(a,t){a===void 0&&(a={});var o=t.type,p=t.payload;return o==="debug/toggleKitchenSink"?Object.assign({},a,{kitchenSink:!a.kitchenSink}):o==="debug/toggleDebugLayout"?Object.assign({},a,{debugLayout:!a.debugLayout}):a}return e}()},27709:function(T,r){"use strict";r.__esModule=!0,r.selectDebug=void 0;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var n=r.selectDebug=function(){function e(a){return a.debug}return e}()},35421:function(x,r,n){"use strict";r.__esModule=!0,r.storeWindowGeometry=r.setupDrag=r.setWindowSize=r.setWindowPosition=r.setWindowKey=r.resizeStartHandler=r.recallWindowGeometry=r.getWindowSize=r.getWindowPosition=r.getScreenSize=r.getScreenPosition=r.dragStartHandler=void 0;var e=n(27108),a=n(97450),t=n(9394);function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */o=function(){return j};var R,j={},_=Object.prototype,W=_.hasOwnProperty,z=Object.defineProperty||function(ye,de,Ce){ye[de]=Ce.value},K=typeof Symbol=="function"?Symbol:{},G=K.iterator||"@@iterator",Q=K.asyncIterator||"@@asyncIterator",J=K.toStringTag||"@@toStringTag";function ue(ye,de,Ce){return Object.defineProperty(ye,de,{value:Ce,enumerable:!0,configurable:!0,writable:!0}),ye[de]}try{ue({},"")}catch(ye){ue=function(Ce,ke,ge){return Ce[ke]=ge}}function ie(ye,de,Ce,ke){var ge=de&&de.prototype instanceof re?de:re,Se=Object.create(ge.prototype),Pe=new Re(ke||[]);return z(Se,"_invoke",{value:be(ye,Ce,Pe)}),Se}function pe(ye,de,Ce){try{return{type:"normal",arg:ye.call(de,Ce)}}catch(ke){return{type:"throw",arg:ke}}}j.wrap=ie;var te="suspendedStart",q="suspendedYield",ne="executing",le="completed",ee={};function re(){}function oe(){}function fe(){}var me={};ue(me,G,function(){return this});var Y=Object.getPrototypeOf,ve=Y&&Y(Y(He([])));ve&&ve!==_&&W.call(ve,G)&&(me=ve);var he=fe.prototype=re.prototype=Object.create(me);function Ve(ye){["next","throw","return"].forEach(function(de){ue(ye,de,function(Ce){return this._invoke(de,Ce)})})}function Be(ye,de){function Ce(ge,Se,Pe,je){var Fe=pe(ye[ge],ye,Se);if(Fe.type!=="throw"){var ze=Fe.arg,We=ze.value;return We&&typeof We=="object"&&W.call(We,"__await")?de.resolve(We.__await).then(function(Ue){Ce("next",Ue,Pe,je)},function(Ue){Ce("throw",Ue,Pe,je)}):de.resolve(We).then(function(Ue){ze.value=Ue,Pe(ze)},function(Ue){return Ce("throw",Ue,Pe,je)})}je(Fe.arg)}var ke;z(this,"_invoke",{value:function(){function ge(Se,Pe){function je(){return new de(function(Fe,ze){Ce(Se,Pe,Fe,ze)})}return ke=ke?ke.then(je,je):je()}return ge}()})}function be(ye,de,Ce){var ke=te;return function(ge,Se){if(ke===ne)throw Error("Generator is already running");if(ke===le){if(ge==="throw")throw Se;return{value:R,done:!0}}for(Ce.method=ge,Ce.arg=Se;;){var Pe=Ce.delegate;if(Pe){var je=Le(Pe,Ce);if(je){if(je===ee)continue;return je}}if(Ce.method==="next")Ce.sent=Ce._sent=Ce.arg;else if(Ce.method==="throw"){if(ke===te)throw ke=le,Ce.arg;Ce.dispatchException(Ce.arg)}else Ce.method==="return"&&Ce.abrupt("return",Ce.arg);ke=ne;var Fe=pe(ye,de,Ce);if(Fe.type==="normal"){if(ke=Ce.done?le:q,Fe.arg===ee)continue;return{value:Fe.arg,done:Ce.done}}Fe.type==="throw"&&(ke=le,Ce.method="throw",Ce.arg=Fe.arg)}}}function Le(ye,de){var Ce=de.method,ke=ye.iterator[Ce];if(ke===R)return de.delegate=null,Ce==="throw"&&ye.iterator.return&&(de.method="return",de.arg=R,Le(ye,de),de.method==="throw")||Ce!=="return"&&(de.method="throw",de.arg=new TypeError("The iterator does not provide a '"+Ce+"' method")),ee;var ge=pe(ke,ye.iterator,de.arg);if(ge.type==="throw")return de.method="throw",de.arg=ge.arg,de.delegate=null,ee;var Se=ge.arg;return Se?Se.done?(de[ye.resultName]=Se.value,de.next=ye.nextLoc,de.method!=="return"&&(de.method="next",de.arg=R),de.delegate=null,ee):Se:(de.method="throw",de.arg=new TypeError("iterator result is not an object"),de.delegate=null,ee)}function we(ye){var de={tryLoc:ye[0]};1 in ye&&(de.catchLoc=ye[1]),2 in ye&&(de.finallyLoc=ye[2],de.afterLoc=ye[3]),this.tryEntries.push(de)}function xe(ye){var de=ye.completion||{};de.type="normal",delete de.arg,ye.completion=de}function Re(ye){this.tryEntries=[{tryLoc:"root"}],ye.forEach(we,this),this.reset(!0)}function He(ye){if(ye||ye===""){var de=ye[G];if(de)return de.call(ye);if(typeof ye.next=="function")return ye;if(!isNaN(ye.length)){var Ce=-1,ke=function(){function ge(){for(;++Ce=0;--ge){var Se=this.tryEntries[ge],Pe=Se.completion;if(Se.tryLoc==="root")return ke("end");if(Se.tryLoc<=this.prev){var je=W.call(Se,"catchLoc"),Fe=W.call(Se,"finallyLoc");if(je&&Fe){if(this.prev=0;--ke){var ge=this.tryEntries[ke];if(ge.tryLoc<=this.prev&&W.call(ge,"finallyLoc")&&this.prev=0;--Ce){var ke=this.tryEntries[Ce];if(ke.finallyLoc===de)return this.complete(ke.completion,ke.afterLoc),xe(ke),ee}}return ye}(),catch:function(){function ye(de){for(var Ce=this.tryEntries.length-1;Ce>=0;--Ce){var ke=this.tryEntries[Ce];if(ke.tryLoc===de){var ge=ke.completion;if(ge.type==="throw"){var Se=ge.arg;xe(ke)}return Se}}throw Error("illegal catch attempt")}return ye}(),delegateYield:function(){function ye(de,Ce,ke){return this.delegate={iterator:He(de),resultName:Ce,nextLoc:ke},this.method==="next"&&(this.arg=R),ee}return ye}()},j}function p(R,j,_,W,z,K,G){try{var Q=R[K](G),J=Q.value}catch(ue){return void _(ue)}Q.done?j(J):Promise.resolve(J).then(W,z)}function b(R){return function(){var j=this,_=arguments;return new Promise(function(W,z){var K=R.apply(j,_);function G(J){p(K,W,z,G,Q,"next",J)}function Q(J){p(K,W,z,G,Q,"throw",J)}G(void 0)})}}/** + */var n=r.selectDebug=function(){function e(a){return a.debug}return e}()},35421:function(T,r,n){"use strict";r.__esModule=!0,r.storeWindowGeometry=r.setupDrag=r.setWindowSize=r.setWindowPosition=r.setWindowKey=r.resizeStartHandler=r.recallWindowGeometry=r.getWindowSize=r.getWindowPosition=r.getScreenSize=r.getScreenPosition=r.dragStartHandler=void 0;var e=n(27108),a=n(97450),t=n(9394);function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */o=function(){return j};var R,j={},_=Object.prototype,W=_.hasOwnProperty,z=Object.defineProperty||function(ye,de,Ce){ye[de]=Ce.value},K=typeof Symbol=="function"?Symbol:{},G=K.iterator||"@@iterator",Q=K.asyncIterator||"@@asyncIterator",J=K.toStringTag||"@@toStringTag";function ue(ye,de,Ce){return Object.defineProperty(ye,de,{value:Ce,enumerable:!0,configurable:!0,writable:!0}),ye[de]}try{ue({},"")}catch(ye){ue=function(Ce,ke,ge){return Ce[ke]=ge}}function ie(ye,de,Ce,ke){var ge=de&&de.prototype instanceof re?de:re,Se=Object.create(ge.prototype),Pe=new Re(ke||[]);return z(Se,"_invoke",{value:be(ye,Ce,Pe)}),Se}function pe(ye,de,Ce){try{return{type:"normal",arg:ye.call(de,Ce)}}catch(ke){return{type:"throw",arg:ke}}}j.wrap=ie;var te="suspendedStart",q="suspendedYield",ne="executing",le="completed",ee={};function re(){}function oe(){}function fe(){}var me={};ue(me,G,function(){return this});var Y=Object.getPrototypeOf,ve=Y&&Y(Y(He([])));ve&&ve!==_&&W.call(ve,G)&&(me=ve);var he=fe.prototype=re.prototype=Object.create(me);function Ve(ye){["next","throw","return"].forEach(function(de){ue(ye,de,function(Ce){return this._invoke(de,Ce)})})}function Be(ye,de){function Ce(ge,Se,Pe,je){var Fe=pe(ye[ge],ye,Se);if(Fe.type!=="throw"){var ze=Fe.arg,We=ze.value;return We&&typeof We=="object"&&W.call(We,"__await")?de.resolve(We.__await).then(function(Ue){Ce("next",Ue,Pe,je)},function(Ue){Ce("throw",Ue,Pe,je)}):de.resolve(We).then(function(Ue){ze.value=Ue,Pe(ze)},function(Ue){return Ce("throw",Ue,Pe,je)})}je(Fe.arg)}var ke;z(this,"_invoke",{value:function(){function ge(Se,Pe){function je(){return new de(function(Fe,ze){Ce(Se,Pe,Fe,ze)})}return ke=ke?ke.then(je,je):je()}return ge}()})}function be(ye,de,Ce){var ke=te;return function(ge,Se){if(ke===ne)throw Error("Generator is already running");if(ke===le){if(ge==="throw")throw Se;return{value:R,done:!0}}for(Ce.method=ge,Ce.arg=Se;;){var Pe=Ce.delegate;if(Pe){var je=Le(Pe,Ce);if(je){if(je===ee)continue;return je}}if(Ce.method==="next")Ce.sent=Ce._sent=Ce.arg;else if(Ce.method==="throw"){if(ke===te)throw ke=le,Ce.arg;Ce.dispatchException(Ce.arg)}else Ce.method==="return"&&Ce.abrupt("return",Ce.arg);ke=ne;var Fe=pe(ye,de,Ce);if(Fe.type==="normal"){if(ke=Ce.done?le:q,Fe.arg===ee)continue;return{value:Fe.arg,done:Ce.done}}Fe.type==="throw"&&(ke=le,Ce.method="throw",Ce.arg=Fe.arg)}}}function Le(ye,de){var Ce=de.method,ke=ye.iterator[Ce];if(ke===R)return de.delegate=null,Ce==="throw"&&ye.iterator.return&&(de.method="return",de.arg=R,Le(ye,de),de.method==="throw")||Ce!=="return"&&(de.method="throw",de.arg=new TypeError("The iterator does not provide a '"+Ce+"' method")),ee;var ge=pe(ke,ye.iterator,de.arg);if(ge.type==="throw")return de.method="throw",de.arg=ge.arg,de.delegate=null,ee;var Se=ge.arg;return Se?Se.done?(de[ye.resultName]=Se.value,de.next=ye.nextLoc,de.method!=="return"&&(de.method="next",de.arg=R),de.delegate=null,ee):Se:(de.method="throw",de.arg=new TypeError("iterator result is not an object"),de.delegate=null,ee)}function we(ye){var de={tryLoc:ye[0]};1 in ye&&(de.catchLoc=ye[1]),2 in ye&&(de.finallyLoc=ye[2],de.afterLoc=ye[3]),this.tryEntries.push(de)}function xe(ye){var de=ye.completion||{};de.type="normal",delete de.arg,ye.completion=de}function Re(ye){this.tryEntries=[{tryLoc:"root"}],ye.forEach(we,this),this.reset(!0)}function He(ye){if(ye||ye===""){var de=ye[G];if(de)return de.call(ye);if(typeof ye.next=="function")return ye;if(!isNaN(ye.length)){var Ce=-1,ke=function(){function ge(){for(;++Ce=0;--ge){var Se=this.tryEntries[ge],Pe=Se.completion;if(Se.tryLoc==="root")return ke("end");if(Se.tryLoc<=this.prev){var je=W.call(Se,"catchLoc"),Fe=W.call(Se,"finallyLoc");if(je&&Fe){if(this.prev=0;--ke){var ge=this.tryEntries[ke];if(ge.tryLoc<=this.prev&&W.call(ge,"finallyLoc")&&this.prev=0;--Ce){var ke=this.tryEntries[Ce];if(ke.finallyLoc===de)return this.complete(ke.completion,ke.afterLoc),xe(ke),ee}}return ye}(),catch:function(){function ye(de){for(var Ce=this.tryEntries.length-1;Ce>=0;--Ce){var ke=this.tryEntries[Ce];if(ke.tryLoc===de){var ge=ke.completion;if(ge.type==="throw"){var Se=ge.arg;xe(ke)}return Se}}throw Error("illegal catch attempt")}return ye}(),delegateYield:function(){function ye(de,Ce,ke){return this.delegate={iterator:He(de),resultName:Ce,nextLoc:ke},this.method==="next"&&(this.arg=R),ee}return ye}()},j}function p(R,j,_,W,z,K,G){try{var Q=R[K](G),J=Q.value}catch(ue){return void _(ue)}Q.done?j(J):Promise.resolve(J).then(W,z)}function b(R){return function(){var j=this,_=arguments;return new Promise(function(W,z){var K=R.apply(j,_);function G(J){p(K,W,z,G,Q,"next",J)}function Q(J){p(K,W,z,G,Q,"throw",J)}G(void 0)})}}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var y=(0,t.createLogger)("drag"),I=Byond.windowId,k=!1,C=!1,i=[0,0],c,m,u,d,s,l=r.setWindowKey=function(){function R(j){I=j}return R}(),h=r.getWindowPosition=function(){function R(){return[window.screenLeft,window.screenTop]}return R}(),N=r.getWindowSize=function(){function R(){return[window.innerWidth,window.innerHeight]}return R}(),v=r.setWindowPosition=function(){function R(j){var _=(0,a.vecAdd)(j,i);return Byond.winset(Byond.windowId,{pos:_[0]+","+_[1]})}return R}(),f=r.setWindowSize=function(){function R(j){return Byond.winset(Byond.windowId,{size:j[0]+"x"+j[1]})}return R}(),g=r.getScreenPosition=function(){function R(){return[0-i[0],0-i[1]]}return R}(),V=r.getScreenSize=function(){function R(){return[window.screen.availWidth,window.screen.availHeight]}return R}(),B=function(j,_,W){W===void 0&&(W=50);for(var z=[_],K,G=0;Gue&&(K[Q]=ue-_[Q],G=!0)}return[G,K]},T=r.dragStartHandler=function(){function R(j){y.log("drag start"),k=!0,m=[window.screenLeft-j.screenX,window.screenTop-j.screenY],document.addEventListener("mousemove",P),document.addEventListener("mouseup",E),P(j)}return R}(),E=function R(j){y.log("drag end"),P(j),document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",R),k=!1,S()},P=function(j){k&&(j.preventDefault(),v((0,a.vecAdd)([j.screenX,j.screenY],m)))},D=r.resizeStartHandler=function(){function R(j,_){return function(W){u=[j,_],y.log("resize start",u),C=!0,m=[window.screenLeft-W.screenX,window.screenTop-W.screenY],d=[window.innerWidth,window.innerHeight],document.addEventListener("mousemove",O),document.addEventListener("mouseup",M),O(W)}}return R}(),M=function R(j){y.log("resize end",s),O(j),document.removeEventListener("mousemove",O),document.removeEventListener("mouseup",R),C=!1,S()},O=function(j){C&&(j.preventDefault(),s=(0,a.vecAdd)(d,(0,a.vecMultiply)(u,(0,a.vecAdd)([j.screenX,j.screenY],(0,a.vecInverse)([window.screenLeft,window.screenTop]),m,[1,1]))),s[0]=Math.max(s[0],150),s[1]=Math.max(s[1],50),f(s))}},24826:function(x,r,n){"use strict";r.__esModule=!0,r.setupGlobalEvents=r.removeScrollableNode=r.globalEvents=r.canStealFocus=r.addScrollableNode=r.KeyEvent=void 0;var e=n(92868),a=n(92986);/** +*/var y=(0,t.createLogger)("drag"),I=Byond.windowId,k=!1,C=!1,i=[0,0],c,m,l,d,s,u=r.setWindowKey=function(){function R(j){I=j}return R}(),h=r.getWindowPosition=function(){function R(){return[window.screenLeft,window.screenTop]}return R}(),g=r.getWindowSize=function(){function R(){return[window.innerWidth,window.innerHeight]}return R}(),v=r.setWindowPosition=function(){function R(j){var _=(0,a.vecAdd)(j,i);return Byond.winset(Byond.windowId,{pos:_[0]+","+_[1]})}return R}(),f=r.setWindowSize=function(){function R(j){return Byond.winset(Byond.windowId,{size:j[0]+"x"+j[1]})}return R}(),N=r.getScreenPosition=function(){function R(){return[0-i[0],0-i[1]]}return R}(),V=r.getScreenSize=function(){function R(){return[window.screen.availWidth,window.screen.availHeight]}return R}(),B=function(j,_,W){W===void 0&&(W=50);for(var z=[_],K,G=0;Gue&&(K[Q]=ue-_[Q],G=!0)}return[G,K]},x=r.dragStartHandler=function(){function R(j){y.log("drag start"),k=!0,m=[window.screenLeft-j.screenX,window.screenTop-j.screenY],document.addEventListener("mousemove",P),document.addEventListener("mouseup",E),P(j)}return R}(),E=function R(j){y.log("drag end"),P(j),document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",R),k=!1,S()},P=function(j){k&&(j.preventDefault(),v((0,a.vecAdd)([j.screenX,j.screenY],m)))},D=r.resizeStartHandler=function(){function R(j,_){return function(W){l=[j,_],y.log("resize start",l),C=!0,m=[window.screenLeft-W.screenX,window.screenTop-W.screenY],d=[window.innerWidth,window.innerHeight],document.addEventListener("mousemove",O),document.addEventListener("mouseup",M),O(W)}}return R}(),M=function R(j){y.log("resize end",s),O(j),document.removeEventListener("mousemove",O),document.removeEventListener("mouseup",R),C=!1,S()},O=function(j){C&&(j.preventDefault(),s=(0,a.vecAdd)(d,(0,a.vecMultiply)(l,(0,a.vecAdd)([j.screenX,j.screenY],(0,a.vecInverse)([window.screenLeft,window.screenTop]),m,[1,1]))),s[0]=Math.max(s[0],150),s[1]=Math.max(s[1],50),f(s))}},24826:function(T,r,n){"use strict";r.__esModule=!0,r.setupGlobalEvents=r.removeScrollableNode=r.globalEvents=r.canStealFocus=r.addScrollableNode=r.KeyEvent=void 0;var e=n(92868),a=n(92986);/** * Normalized browser focus events and BYOND-specific focus helpers. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.globalEvents=new e.EventEmitter,o=!1,p=r.setupGlobalEvents=function(){function f(g){g===void 0&&(g={}),o=!!g.ignoreWindowFocus}return f}(),b,y=!0,I=function f(g,V){if(o){y=!0;return}if(b&&(clearTimeout(b),b=null),V){b=setTimeout(function(){return f(g)});return}y!==g&&(y=g,t.emit(g?"window-focus":"window-blur"),t.emit("window-focus-change",g))},k=null,C=r.canStealFocus=function(){function f(g){var V=String(g.tagName).toLowerCase();return V==="input"||V==="textarea"}return f}(),i=function(g){c(),k=g,k.addEventListener("blur",c)},c=function f(){k&&(k.removeEventListener("blur",f),k=null)},m=null,u=null,d=[],s=r.addScrollableNode=function(){function f(g){d.push(g)}return f}(),l=r.removeScrollableNode=function(){function f(g){var V=d.indexOf(g);V>=0&&d.splice(V,1)}return f}(),h=function(g){if(!(k||!y))for(var V=document.body;g&&g!==V;){if(d.includes(g)){if(g.contains(m))return;m=g,g.focus();return}g=g.parentNode}};window.addEventListener("mousemove",function(f){var g=f.target;g!==u&&(u=g,h(g))}),window.addEventListener("focusin",function(f){if(u=null,m=f.target,I(!0),C(f.target)){i(f.target);return}}),window.addEventListener("focusout",function(f){u=null,I(!1,!0)}),window.addEventListener("blur",function(f){u=null,I(!1,!0)}),window.addEventListener("beforeunload",function(f){I(!1)});var N={},v=r.KeyEvent=function(){function f(V,B,S){this.event=V,this.type=B,this.code=window.event?V.which:V.keyCode,this.ctrl=V.ctrlKey,this.shift=V.shiftKey,this.alt=V.altKey,this.repeat=!!S}var g=f.prototype;return g.hasModifierKeys=function(){function V(){return this.ctrl||this.alt||this.shift}return V}(),g.isModifierKey=function(){function V(){return this.code===a.KEY_CTRL||this.code===a.KEY_SHIFT||this.code===a.KEY_ALT}return V}(),g.isDown=function(){function V(){return this.type==="keydown"}return V}(),g.isUp=function(){function V(){return this.type==="keyup"}return V}(),g.toString=function(){function V(){return this._str?this._str:(this._str="",this.ctrl&&(this._str+="Ctrl+"),this.alt&&(this._str+="Alt+"),this.shift&&(this._str+="Shift+"),this.code>=48&&this.code<=90?this._str+=String.fromCharCode(this.code):this.code>=a.KEY_F1&&this.code<=a.KEY_F12?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)}return V}(),f}();document.addEventListener("keydown",function(f){if(!C(f.target)){var g=f.keyCode,V=new v(f,"keydown",N[g]);t.emit("keydown",V),t.emit("key",V),N[g]=!0}}),document.addEventListener("keyup",function(f){if(!C(f.target)){var g=f.keyCode,V=new v(f,"keyup");t.emit("keyup",V),t.emit("key",V),N[g]=!1}})},87695:function(x,r){"use strict";r.__esModule=!0,r.focusWindow=r.focusMap=void 0;/** + */var t=r.globalEvents=new e.EventEmitter,o=!1,p=r.setupGlobalEvents=function(){function f(N){N===void 0&&(N={}),o=!!N.ignoreWindowFocus}return f}(),b,y=!0,I=function f(N,V){if(o){y=!0;return}if(b&&(clearTimeout(b),b=null),V){b=setTimeout(function(){return f(N)});return}y!==N&&(y=N,t.emit(N?"window-focus":"window-blur"),t.emit("window-focus-change",N))},k=null,C=r.canStealFocus=function(){function f(N){var V=String(N.tagName).toLowerCase();return V==="input"||V==="textarea"}return f}(),i=function(N){c(),k=N,k.addEventListener("blur",c)},c=function f(){k&&(k.removeEventListener("blur",f),k=null)},m=null,l=null,d=[],s=r.addScrollableNode=function(){function f(N){d.push(N)}return f}(),u=r.removeScrollableNode=function(){function f(N){var V=d.indexOf(N);V>=0&&d.splice(V,1)}return f}(),h=function(N){if(!(k||!y))for(var V=document.body;N&&N!==V;){if(d.includes(N)){if(N.contains(m))return;m=N,N.focus();return}N=N.parentNode}};window.addEventListener("mousemove",function(f){var N=f.target;N!==l&&(l=N,h(N))}),window.addEventListener("focusin",function(f){if(l=null,m=f.target,I(!0),C(f.target)){i(f.target);return}}),window.addEventListener("focusout",function(f){l=null,I(!1,!0)}),window.addEventListener("blur",function(f){l=null,I(!1,!0)}),window.addEventListener("beforeunload",function(f){I(!1)});var g={},v=r.KeyEvent=function(){function f(V,B,S){this.event=V,this.type=B,this.code=window.event?V.which:V.keyCode,this.ctrl=V.ctrlKey,this.shift=V.shiftKey,this.alt=V.altKey,this.repeat=!!S}var N=f.prototype;return N.hasModifierKeys=function(){function V(){return this.ctrl||this.alt||this.shift}return V}(),N.isModifierKey=function(){function V(){return this.code===a.KEY_CTRL||this.code===a.KEY_SHIFT||this.code===a.KEY_ALT}return V}(),N.isDown=function(){function V(){return this.type==="keydown"}return V}(),N.isUp=function(){function V(){return this.type==="keyup"}return V}(),N.toString=function(){function V(){return this._str?this._str:(this._str="",this.ctrl&&(this._str+="Ctrl+"),this.alt&&(this._str+="Alt+"),this.shift&&(this._str+="Shift+"),this.code>=48&&this.code<=90?this._str+=String.fromCharCode(this.code):this.code>=a.KEY_F1&&this.code<=a.KEY_F12?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)}return V}(),f}();document.addEventListener("keydown",function(f){if(!C(f.target)){var N=f.keyCode,V=new v(f,"keydown",g[N]);t.emit("keydown",V),t.emit("key",V),g[N]=!0}}),document.addEventListener("keyup",function(f){if(!C(f.target)){var N=f.keyCode,V=new v(f,"keyup");t.emit("keyup",V),t.emit("key",V),g[N]=!1}})},87695:function(T,r){"use strict";r.__esModule=!0,r.focusWindow=r.focusMap=void 0;/** * Various focus helpers. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var n=r.focusMap=function(){function a(){Byond.winset("paramapwindow.map",{focus:!0})}return a}(),e=r.focusWindow=function(){function a(){Byond.winset(Byond.windowId,{focus:!0})}return a}()},49968:function(x,r,n){"use strict";r.__esModule=!0,r.formatSiUnit=r.formatPower=r.formatMoney=r.formatDb=void 0;var e=n(44879);/** + */var n=r.focusMap=function(){function a(){Byond.winset("paramapwindow.map",{focus:!0})}return a}(),e=r.focusWindow=function(){function a(){Byond.winset(Byond.windowId,{focus:!0})}return a}()},49968:function(T,r,n){"use strict";r.__esModule=!0,r.formatSiUnit=r.formatPower=r.formatMoney=r.formatDb=void 0;var e=n(44879);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var a=["f","p","n","\u03BC","m"," ","k","M","G","T","P","E","Z","Y"],t=a.indexOf(" "),o=r.formatSiUnit=function(){function I(k,C,i){if(C===void 0&&(C=-t),i===void 0&&(i=""),typeof k!="number"||!Number.isFinite(k))return k;var c=Math.floor(Math.log10(k)),m=Math.floor(Math.max(C*3,c)),u=Math.floor(c/3),d=Math.floor(m/3),s=(0,e.clamp)(t+d,0,a.length),l=a[s],h=k/Math.pow(1e3,d),N=u>C?2+d*3-m:0,v=(0,e.toFixed)(h,N)+" "+l+i;return v.trim()}return I}(),p=r.formatPower=function(){function I(k,C){return C===void 0&&(C=0),o(k,C,"W")}return I}(),b=r.formatMoney=function(){function I(k,C){if(C===void 0&&(C=0),!Number.isFinite(k))return k;var i=(0,e.round)(k,C);C>0&&(i=(0,e.toFixed)(k,C)),i=String(i);var c=i.length,m=i.indexOf(".");m===-1&&(m=c);for(var u="",d=0;d0&&d=0?"+":C<0?"\u2013":"",c=Math.abs(C);return c===1/0?c="Inf":c=(0,e.toFixed)(c,2),i+c+" dB"}return I}()},56518:function(x,r,n){"use strict";r.__esModule=!0,r.setupHotKeys=r.releaseHotKey=r.releaseHeldKeys=r.acquireHotKey=void 0;var e=p(n(92986)),a=n(24826),t=n(9394);function o(s){if(typeof WeakMap!="function")return null;var l=new WeakMap,h=new WeakMap;return(o=function(v){return v?h:l})(s)}function p(s,l){if(!l&&s&&s.__esModule)return s;if(s===null||typeof s!="object"&&typeof s!="function")return{default:s};var h=o(l);if(h&&h.has(s))return h.get(s);var N={__proto__:null},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in s)if(f!=="default"&&{}.hasOwnProperty.call(s,f)){var g=v?Object.getOwnPropertyDescriptor(s,f):null;g&&(g.get||g.set)?Object.defineProperty(N,f,g):N[f]=s[f]}return N.default=s,h&&h.set(s,N),N}/** + */var a=["f","p","n","\u03BC","m"," ","k","M","G","T","P","E","Z","Y"],t=a.indexOf(" "),o=r.formatSiUnit=function(){function I(k,C,i){if(C===void 0&&(C=-t),i===void 0&&(i=""),typeof k!="number"||!Number.isFinite(k))return k;var c=Math.floor(Math.log10(k)),m=Math.floor(Math.max(C*3,c)),l=Math.floor(c/3),d=Math.floor(m/3),s=(0,e.clamp)(t+d,0,a.length),u=a[s],h=k/Math.pow(1e3,d),g=l>C?2+d*3-m:0,v=(0,e.toFixed)(h,g)+" "+u+i;return v.trim()}return I}(),p=r.formatPower=function(){function I(k,C){return C===void 0&&(C=0),o(k,C,"W")}return I}(),b=r.formatMoney=function(){function I(k,C){if(C===void 0&&(C=0),!Number.isFinite(k))return k;var i=(0,e.round)(k,C);C>0&&(i=(0,e.toFixed)(k,C)),i=String(i);var c=i.length,m=i.indexOf(".");m===-1&&(m=c);for(var l="",d=0;d0&&d=0?"+":C<0?"\u2013":"",c=Math.abs(C);return c===1/0?c="Inf":c=(0,e.toFixed)(c,2),i+c+" dB"}return I}()},56518:function(T,r,n){"use strict";r.__esModule=!0,r.setupHotKeys=r.releaseHotKey=r.releaseHeldKeys=r.acquireHotKey=void 0;var e=p(n(92986)),a=n(24826),t=n(9394);function o(s){if(typeof WeakMap!="function")return null;var u=new WeakMap,h=new WeakMap;return(o=function(v){return v?h:u})(s)}function p(s,u){if(!u&&s&&s.__esModule)return s;if(s===null||typeof s!="object"&&typeof s!="function")return{default:s};var h=o(u);if(h&&h.has(s))return h.get(s);var g={__proto__:null},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in s)if(f!=="default"&&{}.hasOwnProperty.call(s,f)){var N=v?Object.getOwnPropertyDescriptor(s,f):null;N&&(N.get||N.set)?Object.defineProperty(g,f,N):g[f]=s[f]}return g.default=s,h&&h.set(s,g),g}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var b=(0,t.createLogger)("hotkeys"),y={},I=[e.KEY_ESCAPE,e.KEY_ENTER,e.KEY_SPACE,e.KEY_TAB,e.KEY_CTRL,e.KEY_SHIFT,e.KEY_UP,e.KEY_DOWN,e.KEY_LEFT,e.KEY_RIGHT],k={},C=function(l){if(l===16)return"Shift";if(l===17)return"Ctrl";if(l===18)return"Alt";if(l===33)return"Northeast";if(l===34)return"Southeast";if(l===35)return"Southwest";if(l===36)return"Northwest";if(l===37)return"West";if(l===38)return"North";if(l===39)return"East";if(l===40)return"South";if(l===45)return"Insert";if(l===46)return"Delete";if(l>=48&&l<=57||l>=65&&l<=90)return String.fromCharCode(l);if(l>=96&&l<=105)return"Numpad"+(l-96);if(l>=112&&l<=123)return"F"+(l-111);if(l===188)return",";if(l===189)return"-";if(l===190)return"."},i=function(l){var h=String(l);if(h==="Ctrl+F5"||h==="Ctrl+R"){location.reload();return}if(h!=="Ctrl+F"&&!(l.event.defaultPrevented||l.isModifierKey()||I.includes(l.code))){h==="F5"&&(l.event.preventDefault(),l.event.returnValue=!1);var N=C(l.code);if(N){var v=y[N];if(v)return b.debug("macro",v),Byond.command(v);if(l.isDown()&&!k[N]){k[N]=!0;var f='Key_Down "'+N+'"';return b.debug(f),Byond.command(f)}if(l.isUp()&&k[N]){k[N]=!1;var g='Key_Up "'+N+'"';return b.debug(g),Byond.command(g)}}}},c=r.acquireHotKey=function(){function s(l){I.push(l)}return s}(),m=r.releaseHotKey=function(){function s(l){var h=I.indexOf(l);h>=0&&I.splice(h,1)}return s}(),u=r.releaseHeldKeys=function(){function s(){for(var l=0,h=Object.keys(k);l0||(0,a.fetchRetry)((0,e.resolveAsset)("icon_ref_map.json")).then(function(b){return b.json()}).then(function(b){return Byond.iconRefMap=b}).catch(function(b){return t.logger.log(b)})}return p}()},1090:function(x,r,n){"use strict";r.__esModule=!0,r.AICard=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AICard=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data;if(i.has_ai===0)return(0,e.createComponentVNode)(2,o.Window,{width:250,height:120,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Stored AI",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createVNode)(1,"h3",null,"No AI detected.",16)})})})});var c=null;return i.integrity>=75?c="green":i.integrity>=25?c="yellow":c="red",(0,e.createComponentVNode)(2,o.Window,{width:600,height:420,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:i.name,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:c,value:i.integrity/100})})}),(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h2",null,i.flushing===1?"Wipe of AI in progress...":"",0)})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!i.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:i.laws.map(function(m,u){return(0,e.createComponentVNode)(2,t.Box,{children:m},u)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:i.wireless?"check":"times",content:i.wireless?"Enabled":"Disabled",color:i.wireless?"green":"red",onClick:function(){function m(){return C("wireless")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:i.radio?"check":"times",content:i.radio?"Enabled":"Disabled",color:i.radio?"green":"red",onClick:function(){function m(){return C("radio")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wipe",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{width:10,icon:"trash-alt",confirmIcon:"trash-alt",disabled:i.flushing||i.integrity===0,confirmColor:"red",content:"Wipe AI",onClick:function(){function m(){return C("wipe")}return m}()})})]})})})]})})})}return b}()},39454:function(x,r,n){"use strict";r.__esModule=!0,r.AIFixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AIFixer=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data;if(i.occupant===null)return(0,e.createComponentVNode)(2,o.Window,{width:550,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stored AI",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"robot",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No Artificial Intelligence detected.",16)]})})})})});var c=!0;(i.stat===2||i.stat===null)&&(c=!1);var m=null;i.integrity>=75?m="green":i.integrity>=25?m="yellow":m="red";var u=!0;return i.integrity>=100&&i.stat!==2&&(u=!1),(0,e.createComponentVNode)(2,o.Window,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:i.occupant,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:m,value:i.integrity/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:c?"green":"red",children:c?"Functional":"Non-Functional"})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!i.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:i.laws.map(function(d,s){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:d},s)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.wireless?"times":"check",content:i.wireless?"Disabled":"Enabled",color:i.wireless?"red":"green",onClick:function(){function d(){return C("wireless")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.radio?"times":"check",content:i.radio?"Disabled":"Enabled",color:i.radio?"red":"green",onClick:function(){function d(){return C("radio")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Start Repairs",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:!u||i.active,content:!u||i.active?"Already Repaired":"Repair",onClick:function(){function d(){return C("fix")}return d}()})})]}),(0,e.createComponentVNode)(2,t.Box,{color:"green",lineHeight:2,children:i.active?"Reconstruction in progress.":""})]})})]})})})}return b}()},88422:function(x,r,n){"use strict";r.__esModule=!0,r.APC=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(195),b=r.APC=function(){function C(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:510,height:435,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,k)})})}return C}(),y={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},I={1:{icon:"terminal",content:"Override Programming",action:"hack"},2:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"},3:{icon:"caret-square-left",content:"Return to Main Core",action:"deoccupy"},4:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"}},k=function(i,c){var m=(0,a.useBackend)(c),u=m.act,d=m.data,s=d.locked&&!d.siliconUser,l=d.normallyLocked,h=y[d.externalPower]||y[0],N=y[d.chargingStatus]||y[0],v=d.powerChannels||[],f=I[d.malfStatus]||I[0],g=d.powerCellStatus/100;return(0,e.createFragment)([(0,e.createComponentVNode)(2,p.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main Breaker",color:h.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.isOperating?"power-off":"times",content:d.isOperating?"On":"Off",selected:d.isOperating&&!s,color:d.isOperating?"":"bad",disabled:s,onClick:function(){function V(){return u("breaker")}return V}()}),children:["[ ",h.externalPowerText," ]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Cell",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",value:g})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",color:N.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.chargeMode?"sync":"times",content:d.chargeMode?"Auto":"Off",selected:d.chargeMode,disabled:s,onClick:function(){function V(){return u("charge")}return V}()}),children:["[ ",N.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[v.map(function(V){var B=V.topicParams;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:V.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:2,color:V.status>=2?"good":"bad",children:V.status>=2?"On":"Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:!s&&(V.status===1||V.status===3),disabled:s,onClick:function(){function S(){return u("channel",B.auto)}return S}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!s&&V.status===2,disabled:s,onClick:function(){function S(){return u("channel",B.on)}return S}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!s&&V.status===0,disabled:s,onClick:function(){function S(){return u("channel",B.off)}return S}()})],4),children:[V.powerLoad," W"]},V.title)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Load",children:(0,e.createVNode)(1,"b",null,[d.totalLoad,(0,e.createTextVNode)(" W")],0)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc",buttons:!!d.siliconUser&&(0,e.createFragment)([!!d.malfStatus&&(0,e.createComponentVNode)(2,t.Button,{icon:f.icon,content:f.content,color:"bad",onClick:function(){function V(){return u(f.action)}return V}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){function V(){return u("overload")}return V}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.4,icon:d.coverLocked?"lock":"unlock",content:d.coverLocked?"Engaged":"Disengaged",disabled:s,onClick:function(){function V(){return u("cover")}return V}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:d.emergencyLights?"Enabled":"Disabled",disabled:s,onClick:function(){function V(){return u("emergency_lighting")}return V}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{mt:.4,icon:"lightbulb-o",content:d.nightshiftLights?"Enabled":"Disabled",onClick:function(){function V(){return u("toggle_nightshift")}return V}()})})]})})],4)}},99660:function(x,r,n){"use strict";r.__esModule=!0,r.ATM=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.ATM=function(){function m(u,d){var s=(0,a.useBackend)(d),l=s.act,h=s.data,N=h.view_screen,v=h.authenticated_account,f=h.ticks_left_locked_down,g=h.linked_db,V;if(f>0)V=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Maximum number of pin attempts exceeded! Access to this ATM has been temporarily disabled."]});else if(!g)V=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Unable to connect to accounts database, please retry and if the issue persists contact Nanotrasen IT support."]});else if(v)switch(N){case 1:V=(0,e.createComponentVNode)(2,y);break;case 2:V=(0,e.createComponentVNode)(2,I);break;case 3:V=(0,e.createComponentVNode)(2,i);break;default:V=(0,e.createComponentVNode)(2,k)}else V=(0,e.createComponentVNode)(2,C);return(0,e.createComponentVNode)(2,o.Window,{width:550,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,t.Section,{children:V})]})})}return m}(),b=function(u,d){var s=(0,a.useBackend)(d),l=s.act,h=s.data,N=h.machine_id,v=h.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Nanotrasen Automatic Teller Machine",children:[(0,e.createComponentVNode)(2,t.Box,{children:"For all your monetary needs!"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Card",children:(0,e.createComponentVNode)(2,t.Button,{content:v,icon:"eject",onClick:function(){function f(){return l("insert_card")}return f}()})})})]})},y=function(u,d){var s=(0,a.useBackend)(d),l=s.act,h=s.data,N=h.security_level;return(0,e.createComponentVNode)(2,t.Section,{title:"Select a new security level for this account",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Number",icon:"unlock",selected:N===0,onClick:function(){function v(){return l("change_security_level",{new_security_level:1})}return v}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"Either the account number or card is required to access this account. EFTPOS transactions will require a card."}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Pin",icon:"unlock",selected:N===2,onClick:function(){function v(){return l("change_security_level",{new_security_level:2})}return v}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"An account number and pin must be manually entered to access this account and process transactions."})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},I=function(u,d){var s=(0,a.useBackend)(d),l=s.act,h=s.data,N=(0,a.useLocalState)(d,"targetAccNumber",0),v=N[0],f=N[1],g=(0,a.useLocalState)(d,"fundsAmount",0),V=g[0],B=g[1],S=(0,a.useLocalState)(d,"purpose",0),L=S[0],w=S[1],A=h.money;return(0,e.createComponentVNode)(2,t.Section,{title:"Transfer Fund",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",A]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Account Number",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"7 Digit Number",onInput:function(){function T(E,P){return f(P)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Funds to Transfer",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function T(E,P){return B(P)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transaction Purpose",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,onInput:function(){function T(E,P){return w(P)}return T}()})})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sign-out-alt",onClick:function(){function T(){return l("transfer",{target_acc_number:v,funds_amount:V,purpose:L})}return T}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},k=function(u,d){var s=(0,a.useBackend)(d),l=s.act,h=s.data,N=(0,a.useLocalState)(d,"fundsAmount",0),v=N[0],f=N[1],g=h.owner_name,V=h.money;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Welcome, "+g,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Logout",icon:"sign-out-alt",onClick:function(){function B(){return l("logout")}return B}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",V]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Withdrawal Amount",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function B(S,L){return f(L)}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Withdraw Funds",icon:"sign-out-alt",onClick:function(){function B(){return l("withdrawal",{funds_amount:v})}return B}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Menu",children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Change account security level",icon:"lock",onClick:function(){function B(){return l("view_screen",{view_screen:1})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Make transfer",icon:"exchange-alt",onClick:function(){function B(){return l("view_screen",{view_screen:2})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View transaction log",icon:"list",onClick:function(){function B(){return l("view_screen",{view_screen:3})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print balance statement",icon:"print",onClick:function(){function B(){return l("balance_statement")}return B}()})})]})],4)},C=function(u,d){var s=(0,a.useBackend)(d),l=s.act,h=s.data,N=(0,a.useLocalState)(d,"accountID",null),v=N[0],f=N[1],g=(0,a.useLocalState)(d,"accountPin",null),V=g[0],B=g[1],S=h.machine_id,L=h.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Insert card or enter ID and pin to login",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account ID",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function w(A,T){return f(T)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pin",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function w(A,T){return B(T)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Login",icon:"sign-in-alt",onClick:function(){function w(){return l("attempt_auth",{account_num:v,account_pin:V})}return w}()})})]})})},i=function(u,d){var s=(0,a.useBackend)(d),l=s.act,h=s.data,N=h.transaction_log;return(0,e.createComponentVNode)(2,t.Section,{title:"Transactions",children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Terminal"})]}),N.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.purpose}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:v.is_deposit?"green":"red",children:["$",v.amount]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.target_name})]},v)})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},c=function(u,d){var s=(0,a.useBackend)(d),l=s.act,h=s.data;return(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){function N(){return l("view_screen",{view_screen:0})}return N}()})}},86423:function(x,r,n){"use strict";r.__esModule=!0,r.AccountsUplinkTerminal=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(36352),b=n(98595),y=n(321),I=n(5485),k=r.AccountsUplinkTerminal=function(){function h(N,v){var f=(0,t.useBackend)(v),g=f.act,V=f.data,B=V.loginState,S=V.currentPage,L;if(B.logged_in)S===1?L=(0,e.createComponentVNode)(2,i):S===2?L=(0,e.createComponentVNode)(2,s):S===3&&(L=(0,e.createComponentVNode)(2,l));else return(0,e.createComponentVNode)(2,b.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,I.LoginScreen)})})});return(0,e.createComponentVNode)(2,b.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:L})]})})})}return h}(),C=function(N,v){var f=(0,t.useBackend)(v),g=f.data,V=(0,t.useLocalState)(v,"tabIndex",0),B=V[0],S=V[1],L=g.login_state;return(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,mb:1,children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:B===0,onClick:function(){function w(){return S(0)}return w}(),children:"User Accounts"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:B===1,onClick:function(){function w(){return S(1)}return w}(),children:"Department Accounts"})]})})})},i=function(N,v){var f=(0,t.useLocalState)(v,"tabIndex",0),g=f[0];switch(g){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,m);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},c=function(N,v){var f=(0,t.useBackend)(v),g=f.act,V=f.data,B=V.accounts,S=(0,t.useLocalState)(v,"searchText",""),L=S[0],w=S[1],A=(0,t.useLocalState)(v,"sortId","owner_name"),T=A[0],E=A[1],P=(0,t.useLocalState)(v,"sortOrder",!0),D=P[0],M=P[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,u,{id:"owner_name",children:"Account Holder"}),(0,e.createComponentVNode)(2,u,{id:"account_number",children:"Account Number"}),(0,e.createComponentVNode)(2,u,{id:"suspended",children:"Account Status"}),(0,e.createComponentVNode)(2,u,{id:"money",children:"Account Balance"})]}),B.filter((0,a.createSearch)(L,function(O){return O.owner_name+"|"+O.account_number+"|"+O.suspended+"|"+O.money})).sort(function(O,R){var j=D?1:-1;return O[T].localeCompare(R[T])*j}).map(function(O){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+O.suspended,onClick:function(){function R(){return g("view_account_detail",{account_num:O.account_number})}return R}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",O.owner_name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",O.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.money})]},O.account_number)})]})})})]})},m=function(N,v){var f=(0,t.useBackend)(v),g=f.act,V=f.data,B=V.department_accounts;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,p.TableCell,{children:"Department Name"}),(0,e.createComponentVNode)(2,p.TableCell,{children:"Account Number"}),(0,e.createComponentVNode)(2,p.TableCell,{children:"Account Status"}),(0,e.createComponentVNode)(2,p.TableCell,{children:"Account Balance"})]}),B.map(function(S){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+S.suspended,onClick:function(){function L(){return g("view_account_detail",{account_num:S.account_number})}return L}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"wallet"})," ",S.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",S.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:S.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:S.money})]},S.account_number)})]})})})})},u=function(N,v){var f=(0,t.useLocalState)(v,"sortId","name"),g=f[0],V=f[1],B=(0,t.useLocalState)(v,"sortOrder",!0),S=B[0],L=B[1],w=N.id,A=N.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:g!==w&&"transparent",width:"100%",onClick:function(){function T(){g===w?L(!S):(V(w),L(!0))}return T}(),children:[A,g===w&&(0,e.createComponentVNode)(2,o.Icon,{name:S?"sort-up":"sort-down",ml:"0.25rem;"})]})})},d=function(N,v){var f=(0,t.useBackend)(v),g=f.act,V=f.data,B=V.is_printing,S=(0,t.useLocalState)(v,"searchText",""),L=S[0],w=S[1];return(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"New Account",icon:"plus",onClick:function(){function A(){return g("create_new_account")}return A}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account holder, number, status",width:"100%",onInput:function(){function A(T,E){return w(E)}return A}()})})]})},s=function(N,v){var f=(0,t.useBackend)(v),g=f.act,V=f.data,B=V.account_number,S=V.owner_name,L=V.money,w=V.suspended,A=V.transactions,T=V.account_pin,E=V.is_department_account;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"#"+B+" / "+S,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function P(){return g("back")}return P}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Number",children:["#",B]}),!!E&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Pin",children:T}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Pin Actions",children:(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"user-cog",content:"Set New Pin",disabled:!!E,onClick:function(){function P(){return g("set_account_pin",{account_number:B})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:S}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:L}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Status",color:w?"red":"green",children:[w?"Suspended":"Active",(0,e.createComponentVNode)(2,o.Button,{ml:1,content:w?"Unsuspend":"Suspend",icon:w?"unlock":"lock",onClick:function(){function P(){return g("toggle_suspension")}return P}()})]})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Transactions",children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Terminal"})]}),A.map(function(P){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.time}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.purpose}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:P.is_deposit?"green":"red",children:["$",P.amount]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.target_name})]},P)})]})})})]})},l=function(N,v){var f=(0,t.useBackend)(v),g=f.act,V=f.data,B=(0,t.useLocalState)(v,"accName",""),S=B[0],L=B[1],w=(0,t.useLocalState)(v,"accDeposit",""),A=w[0],T=w[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Create Account",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function E(){return g("back")}return E}()}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Name Here",onChange:function(){function E(P,D){return L(D)}return E}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Initial Deposit",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"0",onChange:function(){function E(P,D){return T(D)}return E}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,content:"Create Account",onClick:function(){function E(){return g("finalise_create_account",{holder_name:S,starting_funds:A})}return E}()})]})}},79571:function(x,r,n){"use strict";r.__esModule=!0,r.AgentCardInfo=r.AgentCardAppearances=r.AgentCard=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=[{name:"Male",icon:"mars"},{name:"Female",icon:"venus"},{name:"Genderless",icon:"genderless"}],b=["A+","A-","B+","B-","AB+","AB-","O+","O-"],y=r.AgentCard=function(){function c(m,u){var d=(0,a.useLocalState)(u,"tabIndex",0),s=d[0],l=d[1],h=function(){function N(v){switch(v){case 0:return(0,e.createComponentVNode)(2,C);case 1:return(0,e.createComponentVNode)(2,i);default:return(0,e.createComponentVNode)(2,C)}}return N}();return(0,e.createComponentVNode)(2,o.Window,{width:405,height:505,theme:"syndicate",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"table",selected:s===0,onClick:function(){function N(){return l(0)}return N}(),children:"\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F"},"Card Info"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"id-card",selected:s===1,onClick:function(){function N(){return l(1)}return N}(),children:"\u0412\u043D\u0435\u0448\u043D\u0438\u0439 \u0432\u0438\u0434"},"Appearance")]})}),h(s)]})})})}return c}(),I="\u041F\u0443\u0441\u0442\u043E",k=function(m){var u=m.label,d=m.value,s=m.onCommit,l=m.onClick,h=m.onRClick,N=m.tooltip;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,mb:-.5,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Input,{fluid:!0,textAlign:"center",content:d||I,onCommit:s})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"file-signature",tooltip:N,tooltipPosition:"bottom-end",onClick:l,onContextMenu:h})})]})})},C=r.AgentCardInfo=function(){function c(m,u){var d=(0,a.useBackend)(u),s=d.act,l=d.data,h=l.registered_name,N=l.sex,v=l.age,f=l.assignment,g=l.associated_account_number,V=l.blood_type,B=l.dna_hash,S=l.fingerprint_hash,L=l.photo,w=l.ai_tracking,A=(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("\u0410\u0432\u0442\u043E\u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("\u041B\u041A\u041C - \u0412\u0432\u0435\u0441\u0442\u0438 \u0441\u0432\u043E\u0439 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("\u041F\u041A\u041C - \u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0447\u0443\u0436\u043E\u0439 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440.")],4);return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.NoticeBox,{m:0,children:"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438 \u043D\u0435 \u0432\u043B\u0438\u044F\u044E\u0442 \u043D\u0430 \u0434\u043E\u0441\u0442\u0443\u043F\u044B."})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,k,{label:"\u0418\u043C\u044F",value:h,tooltip:A,onCommit:function(){function T(E,P){return s("change_name",{name:P})}return T}(),onClick:function(){function T(){return s("change_name",{option:"Primary"})}return T}(),onRClick:function(){function T(E){E.preventDefault(),s("change_name",{option:"Secondary"})}return T}()}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u043B",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,mb:-.5,children:p.map(function(T){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:T.icon,content:T.name,selected:N===T.name,onClick:function(){function E(){return s("change_sex",{sex:T.name})}return E}()})},T.name)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0412\u043E\u0437\u0440\u0430\u0441\u0442",children:(0,e.createComponentVNode)(2,t.Slider,{fluid:!0,minValue:17,value:v||0,maxValue:300,onChange:function(){function T(E,P){return s("change_age",{age:P})}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0414\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",content:f||I,onClick:function(){function T(){return s("change_occupation")}return T}()})}),(0,e.createComponentVNode)(2,k,{label:"\u041E\u0442\u043F\u0435\u0447\u0430\u0442\u043A\u0438",value:S,tooltip:"\u0412\u0432\u0435\u0441\u0442\u0438 \u0441\u0432\u043E\u0438 \u043E\u0442\u043F\u0435\u0447\u0430\u0442\u043A\u0438.",onCommit:function(){function T(E,P){return s("change_fingerprints",{new_fingerprints:P})}return T}(),onClick:function(){function T(){return s("change_fingerprints",{option:"Primary"})}return T}()}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0422\u0438\u043F \u043A\u0440\u043E\u0432\u0438",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,mb:-.5,children:b.map(function(T){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:T,selected:V===T,onClick:function(){function E(){return s("change_blood_type",{new_type:T})}return E}()})},T)})})}),(0,e.createComponentVNode)(2,k,{label:"\u0414\u041D\u041A",value:B,onCommit:function(){function T(E,P){return s("change_dna_hash",{new_dna:P})}return T}(),onClick:function(){function T(){return s("change_dna_hash",{option:"Primary"})}return T}(),tooltip:"\u0412\u0432\u0435\u0441\u0442\u0438 \u0441\u0432\u043E\u0451 \u0414\u041D\u041A."}),(0,e.createComponentVNode)(2,k,{label:"\u0410\u043A\u043A\u0430\u0443\u043D\u0442",value:g||0,onCommit:function(){function T(E,P){return s("change_money_account",{new_account:P})}return T}(),onClick:function(){function T(){return s("change_money_account",{option:"Primary"})}return T}(),tooltip:"\u0412\u0432\u0435\u0441\u0442\u0438 \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u044B\u0439 \u043D\u0430\u0431\u043E\u0440 \u0446\u0438\u0444\u0440."}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0424\u043E\u0442\u043E",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",content:L?"Update":I,onClick:function(){function T(){return s("change_photo")}return T}()})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u043A\u0430\u0440\u0442\u044B",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{fluid:!0,textAlign:"center",content:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u044E \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E",confirmContent:"\u0412\u044B \u0443\u0432\u0435\u0440\u0435\u043D\u044B?",onClick:function(){function T(){return s("delete_info")}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0414\u043E\u0441\u0442\u0443\u043F\u044B",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{fluid:!0,textAlign:"center",content:"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F\u044B",confirmContent:"\u0412\u044B \u0443\u0432\u0435\u0440\u0435\u043D\u044B?",onClick:function(){function T(){return s("clear_access")}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u0442\u0441\u043B\u0435\u0436\u0438\u0432\u0430\u043D\u0438\u0435 \u0418\u0418",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",content:w?"\u041D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E":"\u0412\u043E\u0437\u043C\u043E\u0436\u043D\u043E",onClick:function(){function T(){return s("change_ai_tracking")}return T}()})})]})})})],4)}return c}(),i=r.AgentCardAppearances=function(){function c(m,u){var d=(0,a.useBackend)(u),s=d.act,l=d.data,h=(0,a.useSharedState)(u,"selectedAppearance",""),N=h[0],v=h[1],f=l.icon,g=l.appearances;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u0412\u043D\u0435\u0448\u043D\u0438\u0439 \u0432\u0438\u0434",children:g.map(function(V){return(0,e.createComponentVNode)(2,t.ImageButton,{m:.5,dmIcon:f,dmIconState:V,imageSize:58,selected:N===V,onClick:function(){function B(){v(V),s("change_appearance",{new_appearance:V})}return B}()},V)})})})}return c}()},56793:function(x,r,n){"use strict";r.__esModule=!0,r.AiAirlock=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},b=r.AiAirlock=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=p[c.power.main]||p[0],u=p[c.power.backup]||p[0],d=p[c.shock]||p[0];return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main",color:m.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.main,content:"Disrupt",onClick:function(){function s(){return i("disrupt-main")}return s}()}),children:[c.power.main?"Online":"Offline"," ",!c.wires.main_power&&"[Wires have been cut!]"||c.power.main_timeleft>0&&"["+c.power.main_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Backup",color:u.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.backup,content:"Disrupt",onClick:function(){function s(){return i("disrupt-backup")}return s}()}),children:[c.power.backup?"Online":"Offline"," ",!c.wires.backup_power&&"[Wires have been cut!]"||c.power.backup_timeleft>0&&"["+c.power.backup_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Electrify",color:d.color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"wrench",disabled:!(c.wires.shock&&c.shock!==2),content:"Restore",onClick:function(){function s(){return i("shock-restore")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"bolt",disabled:!c.wires.shock,content:"Temporary",onClick:function(){function s(){return i("shock-temp")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",disabled:!c.wires.shock||c.shock===0,content:"Permanent",onClick:function(){function s(){return i("shock-perm")}return s}()})],4),children:[c.shock===2?"Safe":"Electrified"," ",!c.wires.shock&&"[Wires have been cut!]"||c.shock_timeleft>0&&"["+c.shock_timeleft+"s]"||c.shock_timeleft===-1&&"[Permanent]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Access and Door Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Scan",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.id_scanner?"power-off":"times",content:c.id_scanner?"Enabled":"Disabled",selected:c.id_scanner,disabled:!c.wires.id_scanner,onClick:function(){function s(){return i("idscan-toggle")}return s}()}),children:!c.wires.id_scanner&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Access",buttons:(0,e.createComponentVNode)(2,t.Button,{width:6.5,icon:c.emergency?"power-off":"times",content:c.emergency?"Enabled":"Disabled",selected:c.emergency,onClick:function(){function s(){return i("emergency-toggle")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:c.locked?"lock":"unlock",content:c.locked?"Lowered":"Raised",selected:c.locked,disabled:!c.wires.bolts,onClick:function(){function s(){return i("bolt-toggle")}return s}()}),children:!c.wires.bolts&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.lights?"power-off":"times",content:c.lights?"Enabled":"Disabled",selected:c.lights,disabled:!c.wires.lights,onClick:function(){function s(){return i("light-toggle")}return s}()}),children:!c.wires.lights&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.safe?"power-off":"times",content:c.safe?"Enabled":"Disabled",selected:c.safe,disabled:!c.wires.safe,onClick:function(){function s(){return i("safe-toggle")}return s}()}),children:!c.wires.safe&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.speed?"power-off":"times",content:c.speed?"Enabled":"Disabled",selected:c.speed,disabled:!c.wires.timing,onClick:function(){function s(){return i("speed-toggle")}return s}()}),children:!c.wires.timing&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Control",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:c.opened?"sign-out-alt":"sign-in-alt",content:c.opened?"Open":"Closed",selected:c.opened,disabled:c.locked||c.welded,onClick:function(){function s(){return i("open-close")}return s}()}),children:!!(c.locked||c.welded)&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("[Door is "),c.locked?"bolted":"",c.locked&&c.welded?" and ":"",c.welded?"welded":"",(0,e.createTextVNode)("!]")],0)})]})})]})})}return y}()},72475:function(x,r,n){"use strict";r.__esModule=!0,r.AirAlarm=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(195),b=r.AirAlarm=function(){function d(s,l){var h=(0,a.useBackend)(l),N=h.act,v=h.data,f=v.locked;return(0,e.createComponentVNode)(2,o.Window,{width:570,height:f?310:755,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,p.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,I),!f&&(0,e.createFragment)([(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,C)],4)]})})}return d}(),y=function(s){return s===0?"green":s===1?"orange":"red"},I=function(s,l){var h=(0,a.useBackend)(l),N=h.act,v=h.data,f=v.air,g=v.mode,V=v.atmos_alarm,B=v.locked,S=v.alarmActivated,L=v.rcon,w=v.target_temp,A;return f.danger.overall===0?V===0?A="Optimal":A="Caution: Atmos alert in area":f.danger.overall===1?A="Caution":A="DANGER: Internals Required",(0,e.createComponentVNode)(2,t.Section,{title:"Air Status",children:f?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:y(f.danger.pressure),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:f.pressure})," kPa",!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:g===3?"Deactivate Panic Siphon":"Activate Panic Siphon",selected:g===3,icon:"exclamation-triangle",onClick:function(){function T(){return N("mode",{mode:g===3?1:3})}return T}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:f.contents.oxygen/100,fractionDigits:"1",color:y(f.danger.oxygen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:f.contents.nitrogen/100,fractionDigits:"1",color:y(f.danger.nitrogen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:f.contents.co2/100,fractionDigits:"1",color:y(f.danger.co2)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxins",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:f.contents.plasma/100,fractionDigits:"1",color:y(f.danger.plasma)})}),f.contents.n2o>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:f.contents.n2o/100,fractionDigits:"1",color:y(f.danger.n2o)})}),f.contents.other>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:f.contents.other/100,fractionDigits:"1",color:y(f.danger.other)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:y(f.danger.temperature),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:f.temperature})," K / ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:f.temperature_c})," C\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"thermometer-full",content:w+" C",onClick:function(){function T(){return N("temperature")}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:f.thermostat_state?"On":"Off",selected:f.thermostat_state,icon:"power-off",onClick:function(){function T(){return N("thermostat_state")}return T}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Local Status",children:(0,e.createComponentVNode)(2,t.Box,{color:y(f.danger.overall),children:[A,!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:S?"Reset Alarm":"Activate Alarm",selected:S,onClick:function(){function T(){return N(S?"atmos_reset":"atmos_alarm")}return T}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Control Settings",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Off",selected:L===1,onClick:function(){function T(){return N("set_rcon",{rcon:1})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Auto",selected:L===2,onClick:function(){function T(){return N("set_rcon",{rcon:2})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"On",selected:L===3,onClick:function(){function T(){return N("set_rcon",{rcon:3})}return T}()})]})]}):(0,e.createComponentVNode)(2,t.Box,{children:"Unable to acquire air sample!"})})},k=function(s,l){var h=(0,a.useLocalState)(l,"tabIndex",0),N=h[0],v=h[1];return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:N===0,onClick:function(){function f(){return v(0)}return f}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-out-alt"})," Vent Control"]},"Vents"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:N===1,onClick:function(){function f(){return v(1)}return f}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-in-alt"})," Scrubber Control"]},"Scrubbers"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:N===2,onClick:function(){function f(){return v(2)}return f}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog"})," Mode"]},"Mode"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:N===3,onClick:function(){function f(){return v(3)}return f}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},C=function(s,l){var h=(0,a.useLocalState)(l,"tabIndex",0),N=h[0],v=h[1];switch(N){case 0:return(0,e.createComponentVNode)(2,i);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,m);case 3:return(0,e.createComponentVNode)(2,u);default:return"WE SHOULDN'T BE HERE!"}},i=function(s,l){var h=(0,a.useBackend)(l),N=h.act,v=h.data,f=v.vents;return f.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:g.power?"On":"Off",selected:g.power,icon:"power-off",onClick:function(){function V(){return N("command",{cmd:"power",val:!g.power,id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:g.direction?"Blowing":"Siphoning",icon:g.direction?"sign-out-alt":"sign-in-alt",onClick:function(){function V(){return N("command",{cmd:"direction",val:!g.direction,id_tag:g.id_tag})}return V}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Checks",children:[(0,e.createComponentVNode)(2,t.Button,{content:"External",selected:g.checks===1,onClick:function(){function V(){return N("command",{cmd:"checks",val:1,id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Internal",selected:g.checks===2,onClick:function(){function V(){return N("command",{cmd:"checks",val:2,id_tag:g.id_tag})}return V}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Pressure Target",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:g.external})," kPa\xA0",(0,e.createComponentVNode)(2,t.Button,{content:"Set",icon:"cog",onClick:function(){function V(){return N("command",{cmd:"set_external_pressure",id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset",icon:"redo-alt",onClick:function(){function V(){return N("command",{cmd:"set_external_pressure",val:101.325,id_tag:g.id_tag})}return V}()})]})]})},g.name)})},c=function(s,l){var h=(0,a.useBackend)(l),N=h.act,v=h.data,f=v.scrubbers;return f.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:g.power?"On":"Off",selected:g.power,icon:"power-off",onClick:function(){function V(){return N("command",{cmd:"power",val:!g.power,id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:g.scrubbing?"Scrubbing":"Siphoning",icon:g.scrubbing?"filter":"sign-in-alt",onClick:function(){function V(){return N("command",{cmd:"scrubbing",val:!g.scrubbing,id_tag:g.id_tag})}return V}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,t.Button,{content:g.widenet?"Extended":"Normal",selected:g.widenet,icon:"expand-arrows-alt",onClick:function(){function V(){return N("command",{cmd:"widenet",val:!g.widenet,id_tag:g.id_tag})}return V}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filtering",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Carbon Dioxide",selected:g.filter_co2,onClick:function(){function V(){return N("command",{cmd:"co2_scrub",val:!g.filter_co2,id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Plasma",selected:g.filter_toxins,onClick:function(){function V(){return N("command",{cmd:"tox_scrub",val:!g.filter_toxins,id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrous Oxide",selected:g.filter_n2o,onClick:function(){function V(){return N("command",{cmd:"n2o_scrub",val:!g.filter_n2o,id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Oxygen",selected:g.filter_o2,onClick:function(){function V(){return N("command",{cmd:"o2_scrub",val:!g.filter_o2,id_tag:g.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrogen",selected:g.filter_n2,onClick:function(){function V(){return N("command",{cmd:"n2_scrub",val:!g.filter_n2,id_tag:g.id_tag})}return V}()})]})]})},g.name)})},m=function(s,l){var h=(0,a.useBackend)(l),N=h.act,v=h.data,f=v.modes,g=v.presets,V=v.emagged,B=v.mode,S=v.preset;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"System Mode",children:(0,e.createComponentVNode)(2,t.Table,{children:f.map(function(L){return(!L.emagonly||L.emagonly&&!!V)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:L.name,icon:"cog",selected:L.id===B,onClick:function(){function w(){return N("mode",{mode:L.id})}return w}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.desc})]},L.name)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"System Presets",children:[(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"After making a selection, the system will automatically cycle in order to remove contaminants."}),(0,e.createComponentVNode)(2,t.Table,{mt:1,children:g.map(function(L){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:L.name,icon:"cog",selected:L.id===S,onClick:function(){function w(){return N("preset",{preset:L.id})}return w}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.desc})]},L.name)})})]})],4)},u=function(s,l){var h=(0,a.useBackend)(l),N=h.act,v=h.data,f=v.thresholds;return(0,e.createComponentVNode)(2,t.Section,{title:"Alarm Thresholds",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Max"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Max"})]}),f.map(function(g){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:g.name}),g.settings.map(function(V){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:V.selected===-1?"Off":V.selected,onClick:function(){function B(){return N("command",{cmd:"set_threshold",env:V.env,var:V.val})}return B}()})},V.val)})]},g.name)})]})})}},12333:function(x,r,n){"use strict";r.__esModule=!0,r.AirlockAccessController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AirlockAccessController=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.exterior_status,m=i.interior_status,u=i.processing,d,s;return c==="open"?d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:u,onClick:function(){function l(){return C("force_ext")}return l}()}):d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:u,onClick:function(){function l(){return C("cycle_ext_door")}return l}()}),m==="open"?s=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Lock Interior Door",icon:"exclamation-triangle",disabled:u,color:m==="open"?"red":u?"yellow":null,onClick:function(){function l(){return C("force_int")}return l}()}):s=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:u,onClick:function(){function l(){return C("cycle_int_door")}return l}()}),(0,e.createComponentVNode)(2,o.Window,{width:330,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Door Status",children:c==="closed"?"Locked":"Open"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Door Status",children:m==="closed"?"Locked":"Open"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.Box,{children:[d,s]})})]})})}return b}()},28736:function(x,r,n){"use strict";r.__esModule=!0,r.AirlockElectronics=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(49148),b=1,y=2,I=4,k=8,C=r.AirlockElectronics=function(){function m(u,d){return(0,e.createComponentVNode)(2,o.Window,{width:450,height:565,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})})})}return m}(),i=function(u,d){var s=(0,a.useBackend)(d),l=s.act,h=s.data,N=h.unrestricted_dir;return(0,e.createComponentVNode)(2,t.Section,{title:"Access Control",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,mb:1,children:"Unrestricted Access From:"}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-left",content:"East",selected:N&I,onClick:function(){function v(){return l("unrestricted_access",{unres_dir:I})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-up",content:"South",selected:N&y,onClick:function(){function v(){return l("unrestricted_access",{unres_dir:y})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-right",content:"West",selected:N&k,onClick:function(){function v(){return l("unrestricted_access",{unres_dir:k})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-down",content:"North",selected:N&b,onClick:function(){function v(){return l("unrestricted_access",{unres_dir:b})}return v}()})})]})]})})},c=function(u,d){var s=(0,a.useBackend)(d),l=s.act,h=s.data,N=h.selected_accesses,v=h.one_access,f=h.regions;return(0,e.createComponentVNode)(2,p.AccessList,{usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:v,content:"One",onClick:function(){function g(){return l("set_one_access",{access:"one"})}return g}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!v,content:"All",onClick:function(){function g(){return l("set_one_access",{access:"all"})}return g}()})],4),accesses:f,selectedList:N,accessMod:function(){function g(V){return l("set",{access:V})}return g}(),grantAll:function(){function g(){return l("grant_all")}return g}(),denyAll:function(){function g(){return l("clear_all")}return g}(),grantDep:function(){function g(V){return l("grant_region",{region:V})}return g}(),denyDep:function(){function g(V){return l("deny_region",{region:V})}return g}()})}},47365:function(x,r,n){"use strict";r.__esModule=!0,r.AlertModal=void 0;var e=n(89005),a=n(51057),t=n(72253),o=n(92986),p=n(36036),b=n(98595),y=-1,I=1,k=r.AlertModal=function(){function c(m,u){var d=(0,t.useBackend)(u),s=d.act,l=d.data,h=l.autofocus,N=l.buttons,v=N===void 0?[]:N,f=l.large_buttons,g=l.message,V=g===void 0?"":g,B=l.timeout,S=l.title,L=(0,t.useLocalState)(u,"selected",0),w=L[0],A=L[1],T=110+(V.length>30?Math.ceil(V.length/4):0)+(V.length&&f?5:0),E=325+(v.length>2?100:0),P=function(){function D(M){w===0&&M===y?A(v.length-1):w===v.length-1&&M===I?A(0):A(w+M)}return D}();return(0,e.createComponentVNode)(2,b.Window,{title:S,height:T,width:E,children:[!!B&&(0,e.createComponentVNode)(2,a.Loader,{value:B}),(0,e.createComponentVNode)(2,b.Window.Content,{onKeyDown:function(){function D(M){var O=window.event?M.which:M.keyCode;O===o.KEY_SPACE||O===o.KEY_ENTER?s("choose",{choice:v[w]}):O===o.KEY_ESCAPE?s("cancel"):O===o.KEY_LEFT?(M.preventDefault(),P(y)):(O===o.KEY_TAB||O===o.KEY_RIGHT)&&(M.preventDefault(),P(I))}return D}(),children:(0,e.createComponentVNode)(2,p.Section,{fill:!0,children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,m:1,children:(0,e.createComponentVNode)(2,p.Box,{color:"label",overflow:"hidden",children:V})}),(0,e.createComponentVNode)(2,p.Stack.Item,{children:[!!h&&(0,e.createComponentVNode)(2,p.Autofocus),(0,e.createComponentVNode)(2,C,{selected:w})]})]})})})]})}return c}(),C=function(m,u){var d=(0,t.useBackend)(u),s=d.data,l=s.buttons,h=l===void 0?[]:l,N=s.large_buttons,v=s.swapped_buttons,f=m.selected;return(0,e.createComponentVNode)(2,p.Flex,{fill:!0,align:"center",direction:v?"row":"row-reverse",justify:"space-around",wrap:!0,children:h==null?void 0:h.map(function(g,V){return N&&h.length<3?(0,e.createComponentVNode)(2,p.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i,{button:g,id:V.toString(),selected:f===V})},V):(0,e.createComponentVNode)(2,p.Flex.Item,{grow:N?1:0,children:(0,e.createComponentVNode)(2,i,{button:g,id:V.toString(),selected:f===V})},V)})})},i=function(m,u){var d=(0,t.useBackend)(u),s=d.act,l=d.data,h=l.large_buttons,N=m.button,v=m.selected,f=N.length>7?"100%":7;return(0,e.createComponentVNode)(2,p.Button,{mx:h?1:0,pt:h?.33:0,content:N,fluid:!!h,onClick:function(){function g(){return s("choose",{choice:N})}return g}(),selected:v,textAlign:"center",height:!!h&&2,width:!h&&f})}},71824:function(x,r,n){"use strict";r.__esModule=!0,r.AppearanceChanger=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AppearanceChanger=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=c.change_race,u=c.species,d=c.specimen,s=c.change_gender,l=c.gender,h=c.change_eye_color,N=c.change_skin_tone,v=c.change_skin_color,f=c.change_runechat_color,g=c.change_head_accessory_color,V=c.change_hair_color,B=c.change_secondary_hair_color,S=c.change_facial_hair_color,L=c.change_secondary_facial_hair_color,w=c.change_head_marking_color,A=c.change_body_marking_color,T=c.change_tail_marking_color,E=c.change_head_accessory,P=c.head_accessory_styles,D=c.head_accessory_style,M=c.change_hair,O=c.hair_styles,R=c.hair_style,j=c.change_hair_gradient,_=c.change_facial_hair,W=c.facial_hair_styles,z=c.facial_hair_style,K=c.change_head_markings,G=c.head_marking_styles,Q=c.head_marking_style,J=c.change_body_markings,ue=c.body_marking_styles,ie=c.body_marking_style,pe=c.change_tail_markings,te=c.tail_marking_styles,q=c.tail_marking_style,ne=c.change_body_accessory,le=c.body_accessory_styles,ee=c.body_accessory_style,re=c.change_alt_head,oe=c.alt_head_styles,fe=c.alt_head_style,me=!1;return(h||N||v||g||f||V||B||S||L||w||A||T)&&(me=!0),(0,e.createComponentVNode)(2,o.Window,{width:800,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:u.map(function(Y){return(0,e.createComponentVNode)(2,t.Button,{content:Y.specimen,selected:Y.specimen===d,onClick:function(){function ve(){return i("race",{race:Y.specimen})}return ve}()},Y.specimen)})}),!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Male",selected:l==="male",onClick:function(){function Y(){return i("gender",{gender:"male"})}return Y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Female",selected:l==="female",onClick:function(){function Y(){return i("gender",{gender:"female"})}return Y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Genderless",selected:l==="plural",onClick:function(){function Y(){return i("gender",{gender:"plural"})}return Y}()})]}),!!me&&(0,e.createComponentVNode)(2,b),!!E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head accessory",children:P.map(function(Y){return(0,e.createComponentVNode)(2,t.Button,{content:Y.headaccessorystyle,selected:Y.headaccessorystyle===D,onClick:function(){function ve(){return i("head_accessory",{head_accessory:Y.headaccessorystyle})}return ve}()},Y.headaccessorystyle)})}),!!M&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair",children:O.map(function(Y){return(0,e.createComponentVNode)(2,t.Button,{content:Y.hairstyle,selected:Y.hairstyle===R,onClick:function(){function ve(){return i("hair",{hair:Y.hairstyle})}return ve}()},Y.hairstyle)})}),!!j&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair Gradient",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Change Style",onClick:function(){function Y(){return i("hair_gradient")}return Y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Offset",onClick:function(){function Y(){return i("hair_gradient_offset")}return Y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Color",onClick:function(){function Y(){return i("hair_gradient_colour")}return Y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Alpha",onClick:function(){function Y(){return i("hair_gradient_alpha")}return Y}()})]}),!!_&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Facial hair",children:W.map(function(Y){return(0,e.createComponentVNode)(2,t.Button,{content:Y.facialhairstyle,selected:Y.facialhairstyle===z,onClick:function(){function ve(){return i("facial_hair",{facial_hair:Y.facialhairstyle})}return ve}()},Y.facialhairstyle)})}),!!K&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head markings",children:G.map(function(Y){return(0,e.createComponentVNode)(2,t.Button,{content:Y.headmarkingstyle,selected:Y.headmarkingstyle===Q,onClick:function(){function ve(){return i("head_marking",{head_marking:Y.headmarkingstyle})}return ve}()},Y.headmarkingstyle)})}),!!J&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body markings",children:ue.map(function(Y){return(0,e.createComponentVNode)(2,t.Button,{content:Y.bodymarkingstyle,selected:Y.bodymarkingstyle===ie,onClick:function(){function ve(){return i("body_marking",{body_marking:Y.bodymarkingstyle})}return ve}()},Y.bodymarkingstyle)})}),!!pe&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tail markings",children:te.map(function(Y){return(0,e.createComponentVNode)(2,t.Button,{content:Y.tailmarkingstyle,selected:Y.tailmarkingstyle===q,onClick:function(){function ve(){return i("tail_marking",{tail_marking:Y.tailmarkingstyle})}return ve}()},Y.tailmarkingstyle)})}),!!ne&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body accessory",children:le.map(function(Y){return(0,e.createComponentVNode)(2,t.Button,{content:Y.bodyaccessorystyle,selected:Y.bodyaccessorystyle===ee,onClick:function(){function ve(){return i("body_accessory",{body_accessory:Y.bodyaccessorystyle})}return ve}()},Y.bodyaccessorystyle)})}),!!re&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alternate head",children:oe.map(function(Y){return(0,e.createComponentVNode)(2,t.Button,{content:Y.altheadstyle,selected:Y.altheadstyle===fe,onClick:function(){function ve(){return i("alt_head",{alt_head:Y.altheadstyle})}return ve}()},Y.altheadstyle)})})]})})})}return y}(),b=function(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=[{key:"change_eye_color",text:"Change eye color",action:"eye_color"},{key:"change_skin_tone",text:"Change skin tone",action:"skin_tone"},{key:"change_skin_color",text:"Change skin color",action:"skin_color"},{key:"change_runechat_color",text:"Change runechat color",action:"runechat_color"},{key:"change_head_accessory_color",text:"Change head accessory color",action:"head_accessory_color"},{key:"change_hair_color",text:"Change hair color",action:"hair_color"},{key:"change_secondary_hair_color",text:"Change secondary hair color",action:"secondary_hair_color"},{key:"change_facial_hair_color",text:"Change facial hair color",action:"facial_hair_color"},{key:"change_secondary_facial_hair_color",text:"Change secondary facial hair color",action:"secondary_facial_hair_color"},{key:"change_head_marking_color",text:"Change head marking color",action:"head_marking_color"},{key:"change_body_marking_color",text:"Change body marking color",action:"body_marking_color"},{key:"change_tail_marking_color",text:"Change tail marking color",action:"tail_marking_color"}];return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Colors",children:m.map(function(u){return!!c[u.key]&&(0,e.createComponentVNode)(2,t.Button,{content:u.text,onClick:function(){function d(){return i(u.action)}return d}()},u.key)})})}},72285:function(x,r,n){"use strict";r.__esModule=!0,r.AtmosAlertConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AtmosAlertConsole=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.priority||[],m=i.minor||[];return(0,e.createComponentVNode)(2,o.Window,{width:350,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Alarms",children:(0,e.createVNode)(1,"ul",null,[c.length===0&&(0,e.createVNode)(1,"li","color-good","No Priority Alerts",16),c.map(function(u){return(0,e.createVNode)(1,"li","color-bad",u,0,null,u)}),m.length===0&&(0,e.createVNode)(1,"li","color-good","No Minor Alerts",16),m.map(function(u){return(0,e.createVNode)(1,"li","color-average",u,0,null,u)})],0)})})})}return b}()},65805:function(x,r,n){"use strict";r.__esModule=!0,r.AtmosControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(36352),p=n(98595),b=function(c){if(c===0)return(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Good"});if(c===1)return(0,e.createComponentVNode)(2,t.Box,{color:"orange",bold:!0,children:"Warning"});if(c===2)return(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"DANGER"})},y=function(c){if(c===0)return"green";if(c===1)return"orange";if(c===2)return"red"},I=r.AtmosControl=function(){function i(c,m){var u=(0,a.useBackend)(m),d=u.act,s=u.data,l=(0,a.useLocalState)(m,"tabIndex",0),h=l[0],N=l[1],v=function(){function f(g){switch(g){case 0:return(0,e.createComponentVNode)(2,k);case 1:return(0,e.createComponentVNode)(2,C);default:return"WE SHOULDN'T BE HERE!"}}return f}();return(0,e.createComponentVNode)(2,p.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:h===0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===0,onClick:function(){function f(){return N(0)}return f}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===1,onClick:function(){function f(){return N(1)}return f}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),v(h)]})})})}return i}(),k=function(c,m){var u=(0,a.useBackend)(m),d=u.act,s=u.data,l=s.alarms;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Access"})]}),l.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,o.TableCell,{children:h.name}),(0,e.createComponentVNode)(2,o.TableCell,{children:b(h.danger)}),(0,e.createComponentVNode)(2,o.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Access",onClick:function(){function N(){return d("open_alarm",{aref:h.ref})}return N}()})})]},h.name)})]})})},C=function(c,m){var u=(0,a.useBackend)(m),d=u.act,s=u.data,l=s.alarms;return(0,e.createComponentVNode)(2,t.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,t.NanoMap,{children:l.filter(function(h){return h.z===3}).map(function(h){return(0,e.createComponentVNode)(2,t.NanoMap.MarkerIcon,{x:h.x,y:h.y,icon:"circle",tooltip:h.name,color:y(h.danger),onClick:function(){function N(){return d("open_alarm",{aref:h.ref})}return N}()},h.ref)})})})}},87816:function(x,r,n){"use strict";r.__esModule=!0,r.AtmosFilter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AtmosFilter=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.on,m=i.pressure,u=i.max_pressure,d=i.filter_type,s=i.filter_type_list;return(0,e.createComponentVNode)(2,o.Window,{width:380,height:140,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){function l(){return C("power")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:m===0,width:2.2,onClick:function(){function l(){return C("min_pressure")}return l}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:u,value:m,onDrag:function(){function l(h,N){return C("custom_pressure",{pressure:N})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===u,width:2.2,onClick:function(){function l(){return C("max_pressure")}return l}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:s.map(function(l){return(0,e.createComponentVNode)(2,t.Button,{selected:l.gas_type===d,content:l.label,onClick:function(){function h(){return C("set_filter",{filter:l.gas_type})}return h}()},l.label)})})]})})})})}return b}()},57258:function(x,r,n){"use strict";r.__esModule=!0,r.AtmosGraphMonitor=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(44879),b=n(88510),y=n(35840),I=["data","rangeX","rangeY","fillColor","strokeColor","strokeWidth","horizontalLinesCount","verticalLinesCount","gridColor","gridWidth","pointTextColor","pointTextSize","labelViewBoxSize"];function k(l,h){if(l==null)return{};var N={};for(var v in l)if({}.hasOwnProperty.call(l,v)){if(h.includes(v))continue;N[v]=l[v]}return N}function C(l,h){l.prototype=Object.create(h.prototype),l.prototype.constructor=l,i(l,h)}function i(l,h){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(N,v){return N.__proto__=v,N},i(l,h)}var c=r.AtmosGraphMonitor=function(){function l(h,N){var v=(0,a.useBackend)(N),f=v.data,g=(0,a.useLocalState)(N,"tabIndex",0),V=g[0],B=g[1],S=function(){function w(A){switch(A){case 0:return(0,e.createComponentVNode)(2,m,{data:f,info:"\u0418\u043D\u0442\u0435\u0440\u0432\u0430\u043B \u0437\u0430\u043F\u0438\u0441\u0438 T = 60 \u0441. | \u0418\u043D\u0442\u0435\u0440\u0432\u0430\u043B \u043C\u0435\u0436\u0434\u0443 \u0437\u0430\u043F\u0438\u0441\u044F\u043C\u0438 t = 3 \u0441.",pressureListName:"pressure_history",temperatureListName:"temperature_history"});case 1:return(0,e.createComponentVNode)(2,m,{data:f,info:"\u0418\u043D\u0442\u0435\u0440\u0432\u0430\u043B \u0437\u0430\u043F\u0438\u0441\u0438 T = 10 \u043C\u0438\u043D. | \u0418\u043D\u0442\u0435\u0440\u0432\u0430\u043B \u043C\u0435\u0436\u0434\u0443 \u0437\u0430\u043F\u0438\u0441\u044F\u043C\u0438 t = 30 \u0441.",pressureListName:"long_pressure_history",temperatureListName:"long_temperature_history"});default:return"WE SHOULDN'T BE HERE!"}}return w}(),L=function(){function w(A){switch(A){case 0:return 180;case 1:return 350;case 2:return 590;case 3:return 830;default:return 870}}return w}();return(0,e.createComponentVNode)(2,o.Window,{width:700,height:L(Object.keys(f.sensors).length),children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:V===0,onClick:function(){function w(){return B(0)}return w}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"area-chart"})," \u0422\u0435\u043A\u0443\u0449\u0438\u0435"]},"View"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:V===1,onClick:function(){function w(){return B(1)}return w}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"bar-chart"})," \u0418\u0441\u0442\u043E\u0440\u0438\u044F"]},"History")]}),S(V),Object.keys(f.sensors).length===0&&(0,e.createComponentVNode)(2,t.Box,{pt:2,textAlign:"center",textColor:"gray",bold:!0,fontSize:1.3,children:"\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u0435 gas sensor \u0438\u043B\u0438 meter \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E multitool"})]})})})}return l}(),m=function(h){var N=h.data,v=h.info,f=h.pressureListName,g=h.temperatureListName,V=N.sensors||{},B=function(T,E){return V[T][E].slice(-1)[0]},S=function(T,E){return Math.min.apply(Math,V[T][E])},L=function(T,E){return Math.max.apply(Math,V[T][E])},w=function(T,E){return V[T][E].map(function(P,D){return[D,P]})};return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{color:"gray",children:v}),Object.keys(V).map(function(A){return(0,e.createComponentVNode)(2,t.Section,{title:A,children:(0,e.createComponentVNode)(2,t.Section,{px:2,children:[g in V[A]&&(0,e.createComponentVNode)(2,t.Box,{mb:4,children:[(0,e.createComponentVNode)(2,t.Box,{children:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430: "+(0,p.toFixed)(B(A,g),0)+"\u041A (MIN: "+(0,p.toFixed)(S(A,g),0)+"\u041A; MAX: "+(0,p.toFixed)(L(A,g),0)+"\u041A)"}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,height:5,mt:1,children:(0,e.createComponentVNode)(2,s,{fillPositionedParent:!0,data:w(A,g),rangeX:[0,w(A,g).length-1],rangeY:[S(A,g)-10,L(A,g)+5],strokeColor:"rgba(219, 40, 40, 1)",fillColor:"rgba(219, 40, 40, 0.1)",horizontalLinesCount:2,verticalLinesCount:w(A,g).length-2,labelViewBoxSize:400})})]}),f in V[A]&&(0,e.createComponentVNode)(2,t.Box,{mb:-1,children:[(0,e.createComponentVNode)(2,t.Box,{children:"\u0414\u0430\u0432\u043B\u0435\u043D\u0438\u0435: "+(0,p.toFixed)(B(A,f),0)+"\u043A\u041F\u0430 (MIN: "+(0,p.toFixed)(S(A,f),0)+"\u043A\u041F\u0430; MAX: "+(0,p.toFixed)(L(A,f),0)+"\u043A\u041F\u0430)"}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,height:5,mt:1,children:(0,e.createComponentVNode)(2,s,{fillPositionedParent:!0,data:w(A,f),rangeX:[0,w(A,f).length-1],rangeY:[S(A,f)-10,L(A,f)+5],strokeColor:"rgba(40, 219, 40, 1)",fillColor:"rgba(40, 219, 40, 0.1)",horizontalLinesCount:2,verticalLinesCount:w(A,f).length-2,labelViewBoxSize:400})})]})]})},A)})]})},u=function(h,N,v,f){if(h.length===0)return[];var g=(0,b.zipWith)(Math.min).apply(void 0,h),V=(0,b.zipWith)(Math.max).apply(void 0,h);v!==void 0&&(g[0]=v[0],V[0]=v[1]),f!==void 0&&(g[1]=f[0],V[1]=f[1]);var B=function(A,T,E,P){return(A-T)/(E-T)*P},S=(0,b.zipWith)(B),L=(0,b.map)(function(w){return S(w,g,V,N)});return L(h)},d=function(h){for(var N="",v=0;v0){var le=ne[0],ee=ne[ne.length-1];ne.push([q[0]+D,ee[1]]),ne.push([q[0]+D,-D]),ne.push([-D,-D]),ne.push([-D,le[1]])}var re=d(ne);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({position:"relative"},te,{children:function(){function oe(fe){return(0,e.normalizeProps)((0,e.createVNode)(1,"div",null,(0,e.createVNode)(32,"svg",null,[Array.from({length:O}).map(function(me,Y){return(0,e.createVNode)(32,"line",null,null,1,{x1:0,y1:(Y+1)*(q[1]/(O+1)),x2:q[0],y2:(Y+1)*(q[1]/(O+1)),stroke:W,"stroke-width":K},"horizontal-line-"+Y)}),Array.from({length:j}).map(function(me,Y){return(0,e.createVNode)(32,"line",null,null,1,{x1:(Y+1)*(q[0]/(j+1)),y1:0,x2:(Y+1)*(q[0]/(j+1)),y2:q[1],stroke:W,"stroke-width":K},"vertical-line-"+Y)}),(0,e.createVNode)(32,"polyline",null,null,1,{transform:"scale(1, -1) translate(0, -"+q[1]+")",fill:A,points:re}),B.map(function(me,Y){return Y===0?null:(0,e.createVNode)(32,"line",null,null,1,{x1:ne[Y-1][0],y1:q[1]-ne[Y-1][1],x2:ne[Y][0],y2:q[1]-ne[Y][1],stroke:E,"stroke-width":D},"line-"+Y)}),B.map(function(me,Y){return(0,e.createVNode)(32,"circle",null,null,1,{cx:ne[Y][0],cy:q[1]-ne[Y][1],r:2,fill:"#ffffff",stroke:E,"stroke-width":1},"point-"+Y)}),B.map(function(me,Y){return q[0]>pe&&Y%2===1&&(0,e.createVNode)(32,"text",null,me[1]!==null?me[1].toFixed(0):"N/A",0,{x:ne[Y][0],y:q[1]-ne[Y][1],fill:Q,"font-size":ue,dy:"1em",style:{"text-anchor":"end"}},"point-text-"+Y)})],0,{viewBox:"0 0 "+q[0]+" "+q[1]}),2,Object.assign({},fe),null,f.ref))}return oe}()})))}return v}(),h}(e.Component);s.defaultHooks=void 0,s.defaultHooks=y.pureComponentHooks},52977:function(x,r,n){"use strict";r.__esModule=!0,r.AtmosMixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AtmosMixer=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=c.on,u=c.pressure,d=c.max_pressure,s=c.node1_concentration,l=c.node2_concentration;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:165,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:m?"On":"Off",color:m?null:"red",selected:m,onClick:function(){function h(){return i("power")}return h}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:u===0,width:2.2,onClick:function(){function h(){return i("min_pressure")}return h}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:d,value:u,onDrag:function(){function h(N,v){return i("custom_pressure",{pressure:v})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:u===d,width:2.2,onClick:function(){function h(){return i("max_pressure")}return h}()})]}),(0,e.createComponentVNode)(2,b,{node_name:"Node 1",node_ref:s}),(0,e.createComponentVNode)(2,b,{node_name:"Node 2",node_ref:l})]})})})})}return y}(),b=function(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=I.node_name,u=I.node_ref;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:m,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",width:2.2,disabled:u===0,onClick:function(){function d(){return i("set_node",{node_name:m,concentration:(u-10)/100})}return d}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"%",width:6.1,lineHeight:1.5,stepPixelSize:10,minValue:0,maxValue:100,value:u,onChange:function(){function d(s,l){return i("set_node",{node_name:m,concentration:l/100})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:u===100,onClick:function(){function d(){return i("set_node",{node_name:m,concentration:(u+10)/100})}return d}()})]})}},11748:function(x,r,n){"use strict";r.__esModule=!0,r.AtmosPump=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AtmosPump=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.on,m=i.rate,u=i.max_rate,d=i.gas_unit,s=i.step;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:110,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){function l(){return C("power")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:m===0,width:2.2,onClick:function(){function l(){return C("min_rate")}return l}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:d,width:6.1,lineHeight:1.5,step:s,minValue:0,maxValue:u,value:m,onDrag:function(){function l(h,N){return C("custom_rate",{rate:N})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===u,width:2.2,onClick:function(){function l(){return C("max_rate")}return l}()})]})]})})})})}return b}()},69321:function(x,r,n){"use strict";r.__esModule=!0,r.AtmosTankControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(44879),p=n(76910),b=n(98595),y=r.AtmosTankControl=function(){function I(k,C){var i=(0,a.useBackend)(C),c=i.act,m=i.data,u=m.sensors||{};return(0,e.createComponentVNode)(2,b.Window,{width:400,height:400,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:[Object.keys(u).map(function(d){return(0,e.createComponentVNode)(2,t.Section,{title:d,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[Object.keys(u[d]).indexOf("pressure")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:[u[d].pressure," kpa"]}):"",Object.keys(u[d]).indexOf("temperature")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[u[d].temperature," K"]}):"",["o2","n2","plasma","co2","n2o"].map(function(s){return Object.keys(u[d]).indexOf(s)>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(0,p.getGasLabel)(s),children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:(0,p.getGasColor)(s),value:u[d][s],minValue:0,maxValue:100,children:(0,o.toFixed)(u[d][s],2)+"%"})},(0,p.getGasLabel)(s)):""})]})},d)}),m.inlet&&Object.keys(m.inlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Inlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(m.inlet.on,"power-off"),content:m.inlet.on?"On":"Off",color:m.inlet.on?null:"red",selected:m.inlet.on,onClick:function(){function d(){return c("toggle_active",{dev:"inlet"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"L/s",width:6.1,lineHeight:1.5,step:1,minValue:0,maxValue:50,value:m.inlet.rate,onDrag:function(){function d(s,l){return c("set_pressure",{dev:"inlet",val:l})}return d}()})})]})}):"",m.outlet&&Object.keys(m.outlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Outlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(m.outlet.on,"power-off"),content:m.outlet.on?"On":"Off",color:m.outlet.on?null:"red",selected:m.outlet.on,onClick:function(){function d(){return c("toggle_active",{dev:"outlet"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:5066,value:m.outlet.rate,onDrag:function(){function d(s,l){return c("set_pressure",{dev:"outlet",val:l})}return d}()})})]})}):""]})})}return I}()},92444:function(x,r,n){"use strict";r.__esModule=!0,r.AugmentMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(25328),b=r.AugmentMenu=function(){function k(C,i){return(0,e.createComponentVNode)(2,o.Window,{width:700,height:660,theme:"malfunction",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,y,{context:i})})})})}return k}(),y=function(C){var i=C.context,c=(0,a.useBackend)(i),m=c.act,u=c.data,d=u.usable_swarms,s=u.ability_tabs,l=u.known_abilities,h=(0,a.useLocalState)(i,"selectedTab",s[0]),N=h[0],v=h[1],f=(0,a.useLocalState)(i,"searchText",""),g=f[0],V=f[1],B=function(){var E=s.find(function(D){return D.category_name===N.category_name});if(!E)return[];var P=Math.min(E.category_stage,4);return E.abilities.filter(function(D){return D.stage<=P&&(!g||D.name.toLowerCase().includes(g.toLowerCase()))}).sort(function(D,M){return["intruder","destroyer"].includes(N.category_name.toLowerCase())?D.stage-M.stage:0})},S=B(),L=s.find(function(T){return T.category_name===N.category_name}),w=["intruder","destroyer"].includes(N.category_name.toLowerCase()),A=function(E){var P=l.find(function(O){return O.ability_path===E.ability_path}),D=P?P.cost:E.cost,M=P&&P.current_level>0?P.current_level+" / "+P.max_level:"0 / "+E.max_level;return(0,e.createComponentVNode)(2,t.Stack.Item,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{height:"20px",width:"35px",mb:1,textAlign:"center",content:D,disabled:D>d||P&&P.current_level===P.max_level,tooltip:"Purchase this ability?",onClick:function(){function O(){m("purchase",{ability_path:E.ability_path}),v(N)}return O}()}),(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"16px",children:E.name})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"13px",children:E.desc||"Description not available"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:["Level: ",(0,e.createVNode)(1,"span",null,M,0,{style:{color:"green"}}),w&&E.stage>0&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)(" (Stage: "),E.stage,(0,e.createTextVNode)(")")],0)]}),(0,e.createComponentVNode)(2,t.Stack.Divider)]})})]},E.name)};return(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,style:{marginRight:"10px"},children:[(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("Swarms: "),(0,e.createVNode)(1,"span",null,d,0,{style:{color:"green"}})],4),w&&L&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("Category Stage: "),(0,e.createVNode)(1,"span",null,Math.min(L.category_stage,4),0,{style:{color:"green"}})],4)]}),(0,e.createVNode)(1,"div","Section__buttons",(0,e.createComponentVNode)(2,t.Input,{width:"200px",placeholder:"Search Abilities",onInput:function(){function T(E,P){return V(P)}return T}(),value:g}),2)],4,{style:{display:"flex",alignItems:"center"}}),children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[s.map(function(T){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:N.category_name===T.category_name,onClick:function(){function E(){v(T),V("")}return E}(),children:(0,p.capitalize)(T.category_name)},T.category_name)}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:N.category_name==="upgrades",onClick:function(){function T(){return v({category_name:"upgrades"})}return T}(),children:"Upgrades"},"upgrades")]}),N.category_name==="upgrades"?(0,e.createComponentVNode)(2,I,{act:m,abilityTabs:s,knownAbilities:l,usableSwarms:d}):(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:S.map(A)})]})},I=function(C){var i=C.act,c=C.abilityTabs,m=C.knownAbilities,u=C.usableSwarms,d=m.filter(function(l){return l.current_levelu,tooltip:"Upgrade this ability?",onClick:function(){function v(){return i("purchase",{ability_path:h.ability_path})}return v}()}),(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"16px",children:h.name})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"13px",children:h.upgrade_text}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:["Level:"," ",(0,e.createVNode)(1,"span",null,h.current_level+" / "+h.max_level,0,{style:{color:"green"}}),N&&N.stage>0&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)(" (Stage: "),N.stage,(0,e.createTextVNode)(")")],0)]}),(0,e.createComponentVNode)(2,t.Stack.Divider)]})})]},h.name)};return(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:d.map(s)})}},59179:function(x,r,n){"use strict";r.__esModule=!0,r.Autolathe=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),p=n(36036),b=n(98595),y=n(25328),I=function(i,c,m,u){return i.requirements===null?!0:!(i.requirements.metal*u>c||i.requirements.glass*u>m)},k=r.Autolathe=function(){function C(i,c){var m=(0,o.useBackend)(c),u=m.act,d=m.data,s=d.total_amount,l=d.max_amount,h=d.metal_amount,N=d.glass_amount,v=d.busyname,f=d.busyamt,g=d.showhacked,V=d.buildQueue,B=d.buildQueueLen,S=d.recipes,L=d.categories,w=(0,o.useSharedState)(c,"category",0),A=w[0],T=w[1];A===0&&(A="Tools");var E=h.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),P=N.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),D=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),M=(0,o.useSharedState)(c,"search_text",""),O=M[0],R=M[1],j=(0,y.createSearch)(O,function(K){return K.name}),_="";B>0&&(_=V.map(function(K,G){return(0,e.createComponentVNode)(2,p.Box,{children:(0,e.createComponentVNode)(2,p.Button,{fluid:!0,icon:"times",color:"transparent",content:V[G][0],onClick:function(){function Q(){return u("remove_from_queue",{remove_from_queue:V.indexOf(K)+1})}return Q}()},K)},G)}));var W=(0,a.flow)([(0,t.filter)(function(K){return(K.category.indexOf(A)>-1||O)&&(d.showhacked||!K.hacked)}),O&&(0,t.filter)(j),(0,t.sortBy)(function(K){return K.name.toLowerCase()})])(S),z="Build";return O?z="Results for: '"+O+"':":A&&(z="Build ("+A+")"),(0,e.createComponentVNode)(2,b.Window,{width:750,height:525,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{width:"70%",children:(0,e.createComponentVNode)(2,p.Section,{fill:!0,scrollable:!0,title:z,buttons:(0,e.createComponentVNode)(2,p.Dropdown,{width:"150px",options:L,selected:A,onSelected:function(){function K(G){return T(G)}return K}()}),children:[(0,e.createComponentVNode)(2,p.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function K(G,Q){return R(Q)}return K}(),mb:1}),W.map(function(K){return(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+K.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,p.Button,{mr:1,icon:"hammer",selected:d.busyname===K.name&&d.busyamt===1,disabled:!I(K,d.metal_amount,d.glass_amount,1),onClick:function(){function G(){return u("make",{make:K.uid,multiplier:1})}return G}(),children:(0,y.toTitleCase)(K.name)}),K.max_multiplier>=10&&(0,e.createComponentVNode)(2,p.Button,{mr:1,icon:"hammer",selected:d.busyname===K.name&&d.busyamt===10,disabled:!I(K,d.metal_amount,d.glass_amount,10),onClick:function(){function G(){return u("make",{make:K.uid,multiplier:10})}return G}(),children:"10x"}),K.max_multiplier>=25&&(0,e.createComponentVNode)(2,p.Button,{mr:1,icon:"hammer",selected:d.busyname===K.name&&d.busyamt===25,disabled:!I(K,d.metal_amount,d.glass_amount,25),onClick:function(){function G(){return u("make",{make:K.uid,multiplier:25})}return G}(),children:"25x"}),K.max_multiplier>25&&(0,e.createComponentVNode)(2,p.Button,{mr:1,icon:"hammer",selected:d.busyname===K.name&&d.busyamt===K.max_multiplier,disabled:!I(K,d.metal_amount,d.glass_amount,K.max_multiplier),onClick:function(){function G(){return u("make",{make:K.uid,multiplier:K.max_multiplier})}return G}(),children:[K.max_multiplier,"x"]}),K.requirements&&Object.keys(K.requirements).map(function(G){return(0,y.toTitleCase)(G)+": "+K.requirements[G]}).join(", ")||(0,e.createComponentVNode)(2,p.Box,{children:"No resources required."})]},K.ref)})]})}),(0,e.createComponentVNode)(2,p.Stack.Item,{width:"30%",children:[(0,e.createComponentVNode)(2,p.Section,{title:"Materials",children:(0,e.createComponentVNode)(2,p.LabeledList,{children:[(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Metal",children:E}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Glass",children:P}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Total",children:D}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Storage",children:[d.fill_percent,"% Full"]})]})}),(0,e.createComponentVNode)(2,p.Section,{title:"Building",children:(0,e.createComponentVNode)(2,p.Box,{color:v?"green":"",children:v||"Nothing"})}),(0,e.createComponentVNode)(2,p.Section,{title:"Build Queue",height:23.7,children:[_,(0,e.createComponentVNode)(2,p.Button,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!d.buildQueueLen,onClick:function(){function K(){return u("clear_queue")}return K}()})]})]})]})})})}return C}()},29943:function(x,r,n){"use strict";r.__esModule=!0,r.Autolathe220=void 0;var e=n(89005),a=n(25328),t=n(88510),o=n(64795),p=n(72253),b=n(36036),y=n(98595),I="icons/obj/stacks/minerals.dmi",k=["metal","glass"],C=function(N,v,f,g){return N.requirements===null?!0:!(N.requirements.metal*g>v||N.requirements.glass*g>f)},i=function(N,v){var f=N*v/2e3;return f===0?0:f<.01&&f>0?(0,e.createComponentVNode)(2,b.Box,{fontSize:.75,children:"< 0.01"}):Math.floor(f*100)/100},c=r.Autolathe220=function(){function h(N,v){var f=(0,p.useSharedState)(v,"category","Tools"),g=f[0],V=f[1];return(0,e.createComponentVNode)(2,y.Window,{width:800,height:550,children:(0,e.createComponentVNode)(2,y.Window.Content,{children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{basis:"20%",children:(0,e.createComponentVNode)(2,m,{category:g,setCategory:V})}),(0,e.createComponentVNode)(2,b.Stack.Item,{basis:"55%",children:(0,e.createComponentVNode)(2,u,{category:g})}),(0,e.createComponentVNode)(2,b.Stack.Item,{basis:"25%",children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,l)]})})]})})})}return h}(),m=function(N,v){var f=(0,p.useBackend)(v),g=f.data,V=N.category,B=N.setCategory,S=g.categories,L=["All"].concat(S);return(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Categories",children:(0,e.createComponentVNode)(2,b.Tabs,{vertical:!0,children:L.map(function(w){return(0,e.createComponentVNode)(2,b.Tabs.Tab,{mb:.5,height:"2.5em",color:"blue",selected:w===V,onClick:function(){function A(){return B(w)}return A}(),children:w},w)})})})},u=function(N,v){var f=(0,p.useBackend)(v),g=f.act,V=f.data,B=V.metal_amount,S=V.glass_amount,L=V.recipes,w=N.category,A=(0,p.useSharedState)(v,"searchText",""),T=A[0],E=A[1],P=(0,o.flow)([(0,t.filter)(function(O){return w==="All"||O.category.includes(w)||T&&(V.showhacked||!O.hacked)}),T&&(0,t.filter)((0,a.createSearch)(T,function(O){return O.name})),(0,t.sortBy)(function(O){return O.name.toLowerCase()})])(L),D=function(R,j){return(0,e.createComponentVNode)(2,b.Button,{translucent:!0,tooltip:M(R,j),tooltipPosition:"top",disabled:!C(R,B,S,j),onClick:function(){function _(){return g("make",{make:R.uid,multiplier:j})}return _}(),children:[j,"x"]})},M=function(R,j){return(0,e.createFragment)(k.map(function(_){return R.requirements[_]&&(0,e.createComponentVNode)(2,b.ImageButton,{dmIcon:I,dmIconState:"sheet-"+_,imageSize:32,children:i(R.requirements[_],j)},_)}),0)};return(0,e.createComponentVNode)(2,b.Section,{fill:!0,title:"Build ("+w+")",children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function O(R,j){return E(j)}return O}()})}),(0,e.createComponentVNode)(2,b.Stack.Item,{mt:.5,mb:-2.33,grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,children:P.map(function(O){return(0,e.createComponentVNode)(2,b.ImageButton,{fluid:!0,base64:O.image,imageSize:32,textAlign:"left",color:O.category.includes("hacked")&&"brown",tooltip:M(O,1),tooltipPosition:"top",disabled:!C(O,B,S,1),buttons:O.max_multiplier>1&&(0,e.createFragment)([O.max_multiplier>=10&&D(O,10),O.max_multiplier>=25&&D(O,25),O.max_multiplier>25&&D(O,O.max_multiplier)],0),onClick:function(){function R(){return g("make",{make:O.uid,multiplier:1})}return R}(),children:O.name},O.name)})})})]})})},d=function(N,v){var f=(0,p.useBackend)(v),g=f.data,V=g.metal_amount,B=g.glass_amount,S=g.fill_percent,L=function(A,T){return(0,e.createComponentVNode)(2,b.ImageButton,{fluid:!0,imageSize:32,dmIcon:I,dmIconState:"sheet-"+A,color:"nope",buttons:(0,e.createComponentVNode)(2,b.Box,{backgroundColor:"rgba(255, 255, 255, 0.05)",width:"45px",children:i(T,1)}),children:(0,a.toTitleCase)(A)})};return(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Section,{title:"Materials",children:[L("metal",V),L("glass",B),(0,e.createComponentVNode)(2,b.ProgressBar,{minValue:0,value:S,maxValue:100,children:["Storage ",S,"% full"]})]})})},s=function(N,v){var f=(0,p.useBackend)(v),g=f.data,V=g.recipes,B=g.busyname,S=g.busyamt,L=V.find(function(w){return w.name===B});return(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Section,{title:"Building",children:(0,e.createComponentVNode)(2,b.ImageButton,{fluid:!0,color:B&&"green",base64:L==null?void 0:L.image,imageSize:32,children:B?S>1?B+" x"+S:B:"Nothing"})})})},l=function(N,v){var f=(0,p.useBackend)(v),g=f.act,V=f.data,B=V.recipes,S=V.buildQueue,L=V.buildQueueLen,w;return L>0&&(w=S.map(function(A,T){var E=B.find(function(P){return P.name===S[T][0]});return(0,e.createComponentVNode)(2,b.ImageButton,{fluid:!0,base64:E.image,imageSize:32,buttons:(0,e.createComponentVNode)(2,b.Button,{translucent:!0,width:"32px",icon:"times",iconColor:"red",onClick:function(){function P(){return g("remove_from_queue",{remove_from_queue:S.indexOf(A)+1})}return P}()},A),children:[E.name," ",Number(S[T][1])>1&&"x"+S[T][1]]},T)})),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Queue "+(L>0?L:""),children:w})}),(0,e.createComponentVNode)(2,b.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,b.Section,{fitted:!0,p:.75,children:(0,e.createComponentVNode)(2,b.Button,{fluid:!0,translucent:!L,color:"red",icon:"trash-can",disabled:!L,onClick:function(){function A(){return g("clear_queue")}return A}(),children:"Clear Queue"})})})]})})}},5147:function(x,r,n){"use strict";r.__esModule=!0,r.BioChipPad=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.BioChipPad=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.implant,m=i.contains_case,u=i.gps,d=i.tag,s=(0,a.useLocalState)(I,"newTag",d),l=s[0],h=s[1];return(0,e.createComponentVNode)(2,o.Window,{width:410,height:325,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Bio-chip Mini-Computer",buttons:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject Case",icon:"eject",disabled:!m,onClick:function(){function N(){return C("eject_case")}return N}()})}),children:c&&m?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{bold:!0,mb:2,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+c.image,ml:0,mr:2,style:{"vertical-align":"middle",width:"32px"}}),c.name]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Life",children:c.life}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Notes",children:c.notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Function",children:c.function}),!!u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,t.Input,{width:"5.5rem",value:d,onEnter:function(){function N(){return C("tag",{newtag:l})}return N}(),onInput:function(){function N(v,f){return h(f)}return N}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:d===l,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function N(){return C("tag",{newtag:l})}return N}(),children:(0,e.createComponentVNode)(2,t.Icon,{name:"pen"})})]})]})],4):m?(0,e.createComponentVNode)(2,t.Box,{children:"This bio-chip case has no implant!"}):(0,e.createComponentVNode)(2,t.Box,{children:"Please insert a bio-chip casing!"})})})})}return b}()},64273:function(x,r,n){"use strict";r.__esModule=!0,r.Biogenerator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(62411),b=r.Biogenerator=function(){function i(c,m){var u=(0,a.useBackend)(m),d=u.data,s=u.config,l=d.container,h=d.processing,N=s.title;return(0,e.createComponentVNode)(2,o.Window,{width:390,height:595,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.Operating,{operating:h,name:N}),(0,e.createComponentVNode)(2,I),(0,e.createComponentVNode)(2,k),l?(0,e.createComponentVNode)(2,C):(0,e.createComponentVNode)(2,y)]})})})}return i}(),y=function(c,m){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The biogenerator is missing a container."]})})})},I=function(c,m){var u=(0,a.useBackend)(m),d=u.act,s=u.data,l=s.biomass,h=s.container,N=s.container_curr_reagents,v=s.container_max_reagents;return(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"20px",color:"silver",children:"Biomass:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"5px",children:l}),(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"21px",mt:"8px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"10px",color:"silver",children:"Container:"}),h?(0,e.createComponentVNode)(2,t.ProgressBar,{value:N,maxValue:v,children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:N+" / "+v+" units"})}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"None"})]})]})},k=function(c,m){var u=(0,a.useBackend)(m),d=u.act,s=u.data,l=s.has_plants,h=s.container;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:!l,tooltip:l?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",content:"Activate",onClick:function(){function N(){return d("activate")}return N}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"flask",disabled:!h,tooltip:h?"":"The biogenerator does not have a container.",tooltipPosition:"top",content:"Detach Container",onClick:function(){function N(){return d("detach_container")}return N}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!l,tooltip:l?"":"There are no stored plants to eject.",tooltipPosition:"top-end",content:"Eject Plants",onClick:function(){function N(){return d("eject_plants")}return N}()})})]})})},C=function(c,m){var u=(0,a.useBackend)(m),d=u.act,s=u.data,l=s.biomass,h=s.product_list,N=(0,a.useSharedState)(m,"vendAmount",1),v=N[0],f=N[1],g=Object.entries(h).map(function(V,B){var S=Object.entries(V[1]).map(function(L){return L[1]});return(0,e.createComponentVNode)(2,t.Collapsible,{title:V[0],open:!0,children:S.map(function(L){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",ml:"2px",children:L.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"20%",children:[L.cost*v,(0,e.createComponentVNode)(2,t.Icon,{ml:"5px",name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{content:"Vend",disabled:l.25?750+400*Math.random():290+150*Math.random(),time:60+150*Math.random(),children:(0,e.createComponentVNode)(2,t.Stack,{mb:"30px",fontsize:"256px",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,color:"red",fontsize:"256px",textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"skull",size:14,mb:"64px"}),(0,e.createVNode)(1,"br"),"E$#OR:& U#KN!WN IN%ERF#R_NCE"]})})})})}return k}(),y=r.BluespaceTap=function(){function k(C,i){var c=(0,a.useBackend)(i),m=c.act,u=c.data,d=u.product||[],s=u.desiredMiningPower,l=u.miningPower,h=u.points,N=u.totalPoints,v=u.powerUse,f=u.availablePower,g=u.emagged,V=u.autoShutown,B=u.stabilizers,S=u.stabilizerPower,L=u.stabilizerPriority,w=s>l&&"bad"||"good";return(0,e.createComponentVNode)(2,o.Window,{width:650,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,I),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Input Management",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Input",children:[(0,e.createComponentVNode)(2,t.Button,{icon:V&&!g?"toggle-on":"toggle-off",content:"Auto shutdown",color:V&&!g?"green":"red",disabled:!!g,tooltip:"Turn auto shutdown on or off",tooltipPosition:"top",onClick:function(){function A(){return m("auto_shutdown")}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:B&&!g?"toggle-on":"toggle-off",content:"Stabilizers",color:B&&!g?"green":"red",disabled:!!g,tooltip:"Turn stabilizers on or off",tooltipPosition:"top",onClick:function(){function A(){return m("stabilizers")}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:L&&!g?"toggle-on":"toggle-off",content:"Stabilizer priority",color:L&&!g?"green":"red",disabled:!!g,tooltip:"On: Mining power will not exceed what can be stabilized",tooltipPosition:"top",onClick:function(){function A(){return m("stabilizer_priority")}return A}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Desired Mining Power",children:(0,p.formatPower)(s)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{labelStyle:{"vertical-align":"top"},label:"Set Desired Mining Power",children:(0,e.createComponentVNode)(2,t.Stack,{width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"step-backward",disabled:s===0||g,tooltip:"Set to 0",tooltipPosition:"bottom",onClick:function(){function A(){return m("set",{set_power:0})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",tooltip:"Decrease by 10 MW",tooltipPosition:"bottom",disabled:s===0||g,onClick:function(){function A(){return m("set",{set_power:s-1e7})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:s===0||g,tooltip:"Decrease by 1 MW",tooltipPosition:"bottom",onClick:function(){function A(){return m("set",{set_power:s-1e6})}return A}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mx:1,children:(0,e.createComponentVNode)(2,t.NumberInput,{disabled:g,minvalue:0,value:s,maxvalue:1/0,step:1,onChange:function(){function A(T,E){return m("set",{set_power:E})}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:g,tooltip:"Increase by one MW",tooltipPosition:"bottom",onClick:function(){function A(){return m("set",{set_power:s+1e6})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:g,tooltip:"Increase by 10MW",tooltipPosition:"bottom",onClick:function(){function A(){return m("set",{set_power:s+1e7})}return A}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Power Use",children:(0,p.formatPower)(v)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mining Power Use",children:(0,p.formatPower)(l)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stabilizer Power Use",children:(0,p.formatPower)(S)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Surplus Power",children:(0,p.formatPower)(f)})]})]})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Points",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Points",children:N})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{align:"end",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(A){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:A.name,children:(0,e.createComponentVNode)(2,t.Button,{disabled:A.price>=h,onClick:function(){function T(){return m("vend",{target:A.key})}return T}(),content:A.price})},A.key)})})})})]})})]})})})}return k}(),I=r.Alerts=function(){function k(C,i){var c=(0,a.useBackend)(i),m=c.act,u=c.data,d=u.product||[],s=u.miningPower,l=u.stabilizerPower,h=u.emagged,N=u.safeLevels,v=u.autoShutown,f=u.stabilizers,g=u.overhead;return(0,e.createFragment)([!v&&!h&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Auto shutdown disabled"}),h?(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"All safeties disabled"}):s<=15e6?"":f?s>l+15e6?(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Stabilizers overwhelmed, Instability likely"}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"High Power, engaging stabilizers"}):(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Stabilizers disabled, Instability likely"})],0)}return k}()},33758:function(x,r,n){"use strict";r.__esModule=!0,r.BodyScanner=void 0;var e=n(89005),a=n(44879),t=n(25328),o=n(72253),p=n(36036),b=n(98595),y=[["good","Alive"],["average","Critical"],["bad","DEAD"]],I=[["hasVirus","bad","Viral pathogen detected in blood stream."],["blind","average","Cataracts detected."],["colourblind","average","Photoreceptor abnormalities detected."],["nearsighted","average","Retinal misalignment detected."]],k=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Cellular","cloneLoss"],["Burn","fireLoss"],["Inebriation","drunkenness"]],C={average:[.25,.5],bad:[.5,1/0]},i=function(B,S){for(var L=[],w=0;w0?B.filter(function(S){return!!S}).reduce(function(S,L){return(0,e.createFragment)([S,(0,e.createComponentVNode)(2,p.Box,{children:L},L)],0)},null):null},m=function(B){if(B>100){if(B<300)return"mild infection";if(B<400)return"mild infection+";if(B<500)return"mild infection++";if(B<700)return"acute infection";if(B<800)return"acute infection+";if(B<900)return"acute infection++";if(B>=900)return"septic"}return""},u=r.BodyScanner=function(){function V(B,S){var L=(0,o.useBackend)(S),w=L.data,A=w.occupied,T=w.occupant,E=T===void 0?{}:T,P=A?(0,e.createComponentVNode)(2,d,{occupant:E}):(0,e.createComponentVNode)(2,g);return(0,e.createComponentVNode)(2,b.Window,{width:700,height:600,title:"Body Scanner",children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:P})})}return V}(),d=function(B){var S=B.occupant;return(0,e.createComponentVNode)(2,p.Box,{children:[(0,e.createComponentVNode)(2,s,{occupant:S}),(0,e.createComponentVNode)(2,l,{occupant:S}),(0,e.createComponentVNode)(2,h,{occupant:S}),(0,e.createComponentVNode)(2,v,{organs:S.extOrgan}),(0,e.createComponentVNode)(2,f,{organs:S.intOrgan})]})},s=function(B,S){var L=(0,o.useBackend)(S),w=L.act,A=L.data,T=A.occupant;return(0,e.createComponentVNode)(2,p.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,p.Button,{icon:"print",onClick:function(){function E(){return w("print_p")}return E}(),children:"Print Report"}),(0,e.createComponentVNode)(2,p.Button,{icon:"user-slash",onClick:function(){function E(){return w("ejectify")}return E}(),children:"Eject"})],4),children:(0,e.createComponentVNode)(2,p.LabeledList,{children:[(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Name",children:T.name}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,p.ProgressBar,{min:"0",max:T.maxHealth,value:T.health/T.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Status",color:y[T.stat][0],children:y[T.stat][1]}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,p.AnimatedNumber,{value:(0,a.round)(T.bodyTempC)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,p.AnimatedNumber,{value:(0,a.round)(T.bodyTempF)}),"\xB0F"]}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Implants",children:T.implant_len?(0,e.createComponentVNode)(2,p.Box,{children:T.implant.map(function(E){return E.name}).join(", ")}):(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"None"})})]})})},l=function(B){var S=B.occupant;return S.hasBorer||S.blind||S.colourblind||S.nearsighted||S.hasVirus?(0,e.createComponentVNode)(2,p.Section,{title:"Abnormalities",children:I.map(function(L,w){if(S[L[0]])return(0,e.createComponentVNode)(2,p.Box,{color:L[1],bold:L[1]==="bad",children:L[2]},L[2])})}):(0,e.createComponentVNode)(2,p.Section,{title:"Abnormalities",children:(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"No abnormalities found."})})},h=function(B){var S=B.occupant;return(0,e.createComponentVNode)(2,p.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,p.Table,{children:i(k,function(L,w,A){return(0,e.createFragment)([(0,e.createComponentVNode)(2,p.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,p.Table.Cell,{children:[L[0],":"]}),(0,e.createComponentVNode)(2,p.Table.Cell,{children:!!w&&w[0]+":"})]}),(0,e.createComponentVNode)(2,p.Table.Row,{children:[(0,e.createComponentVNode)(2,p.Table.Cell,{children:(0,e.createComponentVNode)(2,N,{value:S[L[1]],marginBottom:A100)&&"average"||!!S.status.robotic&&"label",width:"33%",children:(0,t.capitalize)(S.name)}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,p.ProgressBar,{m:-.5,min:"0",max:S.maxHealth,mt:L>0&&"0.5rem",value:S.totalLoss/S.maxHealth,ranges:C,children:(0,e.createComponentVNode)(2,p.Stack,{children:[(0,e.createComponentVNode)(2,p.Tooltip,{content:"Total damage",children:(0,e.createComponentVNode)(2,p.Stack.Item,{children:[(0,e.createComponentVNode)(2,p.Icon,{name:"heartbeat",mr:.5}),(0,a.round)(S.totalLoss)]})}),!!S.bruteLoss&&(0,e.createComponentVNode)(2,p.Tooltip,{content:"Brute damage",children:(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,p.Icon,{name:"bone",mr:.5}),(0,a.round)(S.bruteLoss)]})}),!!S.fireLoss&&(0,e.createComponentVNode)(2,p.Tooltip,{content:"Burn damage",children:(0,e.createComponentVNode)(2,p.Stack.Item,{children:[(0,e.createComponentVNode)(2,p.Icon,{name:"fire",mr:.5}),(0,a.round)(S.fireLoss)]})})]})})}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,p.Box,{color:"average",inline:!0,children:c([!!S.internalBleeding&&"Internal bleeding",!!S.burnWound&&"Critical tissue burns",!!S.lungRuptured&&"Ruptured lung",!!S.status.broken&&S.status.broken,m(S.germ_level),!!S.open&&"Open incision"])}),(0,e.createComponentVNode)(2,p.Box,{inline:!0,children:[c([!!S.status.splinted&&(0,e.createComponentVNode)(2,p.Box,{color:"good",children:"Splinted"}),!!S.status.robotic&&(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"Robotic"}),!!S.status.dead&&(0,e.createComponentVNode)(2,p.Box,{color:"bad",bold:!0,children:"DEAD"})]),c(S.shrapnel.map(function(w){return w.known?w.name:"Unknown object"}))]})]})]},L)})]})})},f=function(B){return B.organs.length===0?(0,e.createComponentVNode)(2,p.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"N/A"})}):(0,e.createComponentVNode)(2,p.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,p.Table,{children:[(0,e.createComponentVNode)(2,p.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,p.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"center",children:"Damage"}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"right",children:"Injuries"})]}),B.organs.map(function(S,L){return(0,e.createComponentVNode)(2,p.Table.Row,{children:[(0,e.createComponentVNode)(2,p.Table.Cell,{color:!!S.dead&&"bad"||S.germ_level>100&&"average"||S.robotic>0&&"label",width:"33%",children:(0,t.capitalize)(S.name)}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,p.ProgressBar,{min:"0",max:S.maxHealth,value:S.damage/S.maxHealth,mt:L>0&&"0.5rem",ranges:C,children:(0,a.round)(S.damage)})}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,p.Box,{color:"average",inline:!0,children:c([m(S.germ_level)])}),(0,e.createComponentVNode)(2,p.Box,{inline:!0,children:c([S.robotic===1&&(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"Robotic"}),S.robotic===2&&(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"Assisted"}),!!S.dead&&(0,e.createComponentVNode)(2,p.Box,{color:"bad",bold:!0,children:"DEAD"})])})]})]},L)})]})})},g=function(){return(0,e.createComponentVNode)(2,p.Section,{fill:!0,children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,p.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},67963:function(x,r,n){"use strict";r.__esModule=!0,r.BookBinder=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(3939),b=n(39473),y=r.BookBinder=function(){function I(k,C){var i=(0,a.useBackend)(C),c=i.act,m=i.data,u=m.selectedbook,d=m.book_categories,s=[];return d.map(function(l){return s[l.description]=l.category_id}),(0,e.createComponentVNode)(2,o.Window,{width:600,height:400,children:[(0,e.createComponentVNode)(2,p.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Book Binder",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",width:"auto",content:"Print Book",onClick:function(){function l(){return c("print_book")}return l}()}),children:[(0,e.createComponentVNode)(2,t.Box,{ml:10,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:"1rem"}),"Book Binder"]}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:u.title,onClick:function(){function l(){return(0,p.modalOpen)(C,"edit_selected_title")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:u.author,onClick:function(){function l(){return(0,p.modalOpen)(C,"edit_selected_author")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"190px",options:d.map(function(l){return l.description}),onSelected:function(){function l(h){return c("toggle_binder_category",{category_id:s[h]})}return l}()})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",width:"auto",content:"Edit Summary",onClick:function(){function l(){return(0,p.modalOpen)(C,"edit_selected_summary")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:u.summary})]}),(0,e.createVNode)(1,"br"),d.filter(function(l){return u.categories.includes(l.category_id)}).map(function(l){return(0,e.createComponentVNode)(2,t.Button,{content:l.description,selected:!0,icon:"unlink",onClick:function(){function h(){return c("toggle_binder_category",{category_id:l.category_id})}return h}()},l.category_id)})]})})]})})})]})}return I}()},61925:function(x,r,n){"use strict";r.__esModule=!0,r.BotCall=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=function(i){var c=[{modes:[0],label:"Idle",color:"green"},{modes:[1,2,3],label:"Arresting",color:"yellow"},{modes:[4,5],label:"Patrolling",color:"average"},{modes:[9],label:"Moving",color:"average"},{modes:[6,11],label:"Responding",color:"green"},{modes:[12],label:"Delivering Cargo",color:"blue"},{modes:[13],label:"Returning Home",color:"blue"},{modes:[7,8,10,14,15,16,17,18,19],label:"Working",color:"blue"}],m=c.find(function(u){return u.modes.includes(i)});return(0,e.createComponentVNode)(2,t.Box,{color:m.color,children:[" ",m.label," "]})},b=r.BotCall=function(){function C(i,c){var m=(0,a.useBackend)(c),u=m.act,d=m.data,s=(0,a.useLocalState)(c,"tabIndex",0),l=s[0],h=s[1],N={0:"Security",1:"Medibot",2:"Cleanbot",3:"Floorbot",4:"Mule",5:"Honkbot"},v=function(){function f(g){return N[g]?(0,e.createComponentVNode)(2,y,{model:N[g]}):"This should not happen. Report on Paradise Github"}return f}();return(0,e.createComponentVNode)(2,o.Window,{width:700,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:l===0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,textAlign:"center",children:Array.from({length:6}).map(function(f,g){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:l===g,onClick:function(){function V(){return h(g)}return V}(),children:N[g]},g)})})}),v(l)]})})})}return C}(),y=function(i,c){var m=(0,a.useBackend)(c),u=m.act,d=m.data,s=d.bots;return s[i.model]!==void 0?(0,e.createComponentVNode)(2,k,{model:[i.model]}):(0,e.createComponentVNode)(2,I,{model:[i.model]})},I=function(i,c){var m=(0,a.useBackend)(c),u=m.act,d=m.data;return(0,e.createComponentVNode)(2,t.Stack,{justify:"center",align:"center",fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Box,{bold:1,color:"bad",children:["No ",[i.model]," detected"]})})},k=function(i,c){var m=(0,a.useBackend)(c),u=m.act,d=m.data,s=d.bots;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Model"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Location"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Interface"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Call"})]}),s[i.model].map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.model}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.on?p(l.status):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Off"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.location}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Interface",onClick:function(){function h(){return u("interface",{botref:l.UID})}return h}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Call",onClick:function(){function h(){return u("call",{botref:l.UID})}return h}()})})]},l.UID)})]})})})}},20464:function(x,r,n){"use strict";r.__esModule=!0,r.BotClean=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(92963),b=r.BotClean=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=c.locked,u=c.noaccess,d=c.maintpanel,s=c.on,l=c.autopatrol,h=c.canhack,N=c.emagged,v=c.remote_disabled,f=c.painame,g=c.cleanblood,V=c.area;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,p.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Cleaning Settings",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Clean Blood",disabled:u,onClick:function(){function B(){return i("blood")}return B}()})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc Settings",children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:V?"Reset Area Selection":"Restrict to Current Area",onClick:function(){function B(){return i("area")}return B}()}),V!==null&&(0,e.createComponentVNode)(2,t.LabeledList,{mb:1,children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Locked Area",children:V})})]}),f&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:f,disabled:u,onClick:function(){function B(){return i("ejectpai")}return B}()})})]})})}return y}()},69479:function(x,r,n){"use strict";r.__esModule=!0,r.BotFloor=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(92963),b=r.BotFloor=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=c.noaccess,u=c.painame,d=c.hullplating,s=c.replace,l=c.eat,h=c.make,N=c.fixfloor,v=c.nag_empty,f=c.magnet,g=c.tiles_amount;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:510,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,p.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Floor Settings",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"5px",children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tiles Left",children:g})}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,content:"Add tiles to new hull plating",tooltip:"Fixing a plating requires the removal of floor tile. This will place it back after repairing. Same goes for hull breaches",disabled:m,onClick:function(){function V(){return i("autotile")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Add floor tiles on exposed hull plating",tooltip:"Example: It will add tiles to maintenance",disabled:m,onClick:function(){function V(){return i("replacetiles")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:N,content:"Repair damaged tiles and platings",disabled:m,onClick:function(){function V(){return i("fixfloors")}return V}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Miscellaneous",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:l,content:"Finds tiles",disabled:m,onClick:function(){function V(){return i("eattiles")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"Make pieces of metal into tiles when empty",disabled:m,onClick:function(){function V(){return i("maketiles")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Transmit notice when empty",disabled:m,onClick:function(){function V(){return i("nagonempty")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:f,content:"Traction Magnets",disabled:m,onClick:function(){function V(){return i("anchored")}return V}()})]}),u&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,icon:"eject",content:u,disabled:m,onClick:function(){function V(){return i("ejectpai")}return V}()})})]})})}return y}()},59887:function(x,r,n){"use strict";r.__esModule=!0,r.BotHonk=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(92963),b=r.BotHonk=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:220,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,p.BotStatus)})})}return y}()},80063:function(x,r,n){"use strict";r.__esModule=!0,r.BotMed=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(92963),b=r.BotMed=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=c.locked,u=c.noaccess,d=c.maintpanel,s=c.on,l=c.autopatrol,h=c.canhack,N=c.emagged,v=c.remote_disabled,f=c.painame,g=c.shut_up,V=c.declare_crit,B=c.stationary_mode,S=c.heal_threshold,L=c.injection_amount,w=c.use_beaker,A=c.treat_virus,T=c.reagent_glass;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Communication Settings",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Speaker",checked:!g,disabled:u,onClick:function(){function E(){return i("toggle_speaker")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Critical Patient Alerts",checked:V,disabled:u,onClick:function(){function E(){return i("toggle_critical_alerts")}return E}()})]}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Treatment Settings",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Healing Threshold",children:(0,e.createComponentVNode)(2,t.Slider,{value:S.value,minValue:S.min,maxValue:S.max,step:5,disabled:u,onChange:function(){function E(P,D){return i("set_heal_threshold",{target:D})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Injection Level",children:(0,e.createComponentVNode)(2,t.Slider,{value:L.value,minValue:L.min,maxValue:L.max,step:5,format:function(){function E(P){return P+"u"}return E}(),disabled:u,onChange:function(){function E(P,D){return i("set_injection_amount",{target:D})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reagent Source",children:(0,e.createComponentVNode)(2,t.Button,{content:w?"Beaker":"Internal Synthesizer",icon:w?"flask":"cogs",disabled:u,onClick:function(){function E(){return i("toggle_use_beaker")}return E}()})}),T&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T.amount,minValue:0,maxValue:T.max_amount,children:[T.amount," / ",T.max_amount]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{ml:1,children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject",disabled:u,onClick:function(){function E(){return i("eject_reagent_glass")}return E}()})})]})})]}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{mt:1,fluid:!0,content:"Treat Viral Infections",checked:A,disabled:u,onClick:function(){function E(){return i("toggle_treat_viral")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Stationary Mode",checked:B,disabled:u,onClick:function(){function E(){return i("toggle_stationary_mode")}return E}()})]}),f&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:f,disabled:u,onClick:function(){function E(){return i("ejectpai")}return E}()})})]})})})}return y}()},74439:function(x,r,n){"use strict";r.__esModule=!0,r.BotSecurity=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(92963),b=r.BotSecurity=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=c.noaccess,u=c.painame,d=c.check_id,s=c.check_weapons,l=c.check_warrant,h=c.arrest_mode,N=c.arrest_declare;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:445,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,p.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Who To Arrest",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,content:"Unidentifiable Persons",disabled:m,onClick:function(){function v(){return i("authid")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Unauthorized Weapons",disabled:m,onClick:function(){function v(){return i("authweapon")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:l,content:"Wanted Criminals",disabled:m,onClick:function(){function v(){return i("authwarrant")}return v}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Arrest Procedure",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"Detain Targets Indefinitely",disabled:m,onClick:function(){function v(){return i("arrtype")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:N,content:"Announce Arrests On Radio",disabled:m,onClick:function(){function v(){return i("arrdeclare")}return v}()})]}),u&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:u,disabled:m,onClick:function(){function v(){return i("ejectpai")}return v}()})})]})})}return y}()},10833:function(x,r,n){"use strict";r.__esModule=!0,r.BrigCells=void 0;var e=n(89005),a=n(98595),t=n(36036),o=n(72253),p=function(k,C){var i=k.cell,c=(0,o.useBackend)(C),m=c.act,u=i.cell_id,d=i.occupant,s=i.crimes,l=i.brigged_by,h=i.time_left_seconds,N=i.time_set_seconds,v=i.ref,f="";h>0&&(f+=" BrigCells__listRow--active");var g=function(){m("release",{ref:v})};return(0,e.createComponentVNode)(2,t.Table.Row,{className:f,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:N})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:h})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{type:"button",onClick:g,children:"Release"})})]})},b=function(k){var C=k.cells;return(0,e.createComponentVNode)(2,t.Table,{className:"BrigCells__list",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Cell"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Occupant"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Crimes"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Brigged By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Brigged For"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Release"})]}),C.map(function(i){return(0,e.createComponentVNode)(2,p,{cell:i},i.ref)})]})},y=r.BrigCells=function(){function I(k,C){var i=(0,o.useBackend)(C),c=i.act,m=i.data,u=m.cells;return(0,e.createComponentVNode)(2,a.Window,{theme:"security",width:800,height:400,children:(0,e.createComponentVNode)(2,a.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,b,{cells:u})})})})})}return I}()},45761:function(x,r,n){"use strict";r.__esModule=!0,r.BrigTimer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.BrigTimer=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data;i.nameText=i.occupant,i.timing&&(i.prisoner_hasrec?i.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:i.occupant}):i.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:i.occupant}));var c="pencil-alt";i.prisoner_name&&(i.prisoner_hasrec||(c="exclamation-triangle"));var m=[],u=0;for(u=0;um?this.substring(0,m)+"...":this};var k=function(u,d){var s,l;if(!d)return[];var h=u.findIndex(function(N){return N.name===d.name});return[(s=u[h-1])==null?void 0:s.name,(l=u[h+1])==null?void 0:l.name]},C=function(u,d){d===void 0&&(d="");var s=(0,p.createSearch)(d,function(l){return l.name});return(0,t.flow)([(0,a.filter)(function(l){return l==null?void 0:l.name}),d&&(0,a.filter)(s),(0,a.sortBy)(function(l){return l.name})])(u)},i=r.CameraConsole=function(){function m(u,d){var s=(0,b.useBackend)(d),l=s.act,h=s.data,N=s.config,v=h.mapRef,f=h.activeCamera,g=C(h.cameras),V=k(g,f),B=V[0],S=V[1];return(0,e.createComponentVNode)(2,I.Window,{width:870,height:708,children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,I.Window.Content,{children:(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,c)})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),f&&f.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-left",disabled:!B,onClick:function(){function L(){return l("switch_camera",{name:B})}return L}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-right",disabled:!S,onClick:function(){function L(){return l("switch_camera",{name:S})}return L}()})],4),(0,e.createComponentVNode)(2,y.ByondUi,{className:"CameraConsole__map",params:{id:v,type:"map"}})],4)]})}return m}(),c=r.CameraConsoleContent=function(){function m(u,d){var s=(0,b.useBackend)(d),l=s.act,h=s.data,N=(0,b.useLocalState)(d,"searchText",""),v=N[0],f=N[1],g=h.activeCamera,V=C(h.cameras,v);return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Input,{fluid:!0,placeholder:"Search for a camera",onInput:function(){function B(S,L){return f(L)}return B}()})}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:V.map(function(B){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid","Button--color--transparent",g&&B.name===g.name&&"Button--selected"]),B.name.trimLongStr(23),0,{title:B.name,onClick:function(){function S(){return l("switch_camera",{name:B.name})}return S}()},B.name)})})})]})}return m}()},39222:function(x,r,n){"use strict";r.__esModule=!0,r.CameraConsoleOldContent=r.CameraConsoleMapContent=r.CameraConsole220=void 0;var e=n(89005),a=n(88510),t=n(64795),o=n(35840),p=n(25328),b=n(72253),y=n(36036),I=n(98595),k=function(d,s){var l,h;if(!s)return[];var N=d.findIndex(function(v){return v.name===s.name});return[(l=d[N-1])==null?void 0:l.name,(h=d[N+1])==null?void 0:h.name]},C=function(d,s){s===void 0&&(s="");var l=(0,p.createSearch)(s,function(h){return h.name});return(0,t.flow)([(0,a.filter)(function(h){return h==null?void 0:h.name}),s&&(0,a.filter)(l),(0,a.sortBy)(function(h){return h.name})])(d)},i=r.CameraConsole220=function(){function u(d,s){var l=(0,b.useLocalState)(s,"tabIndex",0),h=l[0],N=l[1],v=function(){function f(g){switch(g){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,m);default:return"WE SHOULDN'T BE HERE!"}}return f}();return(0,e.createComponentVNode)(2,I.Window,{width:1170,height:755,children:(0,e.createComponentVNode)(2,I.Window.Content,{children:(0,e.createComponentVNode)(2,y.Stack,{children:(0,e.createComponentVNode)(2,y.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{width:h===1?"222px":"475px",textAlign:"center",children:(0,e.createComponentVNode)(2,y.Tabs,{fluid:!0,ml:h===1?1:0,mt:h===1?1:0,children:[(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:h===0,onClick:function(){function f(){return N(0)}return f}(),children:[(0,e.createComponentVNode)(2,y.Icon,{name:"map-marked-alt"})," \u041A\u0430\u0440\u0442\u0430"]},"Map"),(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:h===1,onClick:function(){function f(){return N(1)}return f}(),children:[(0,e.createComponentVNode)(2,y.Icon,{name:"table"})," \u0421\u043F\u0438\u0441\u043E\u043A"]},"List")]})}),v(h)]})})})})}return u}(),c=r.CameraConsoleMapContent=function(){function u(d,s){var l=(0,b.useBackend)(s),h=l.act,N=l.data,v=C(N.cameras),f=(0,b.useLocalState)(s,"zoom",1),g=f[0],V=f[1],B=N.mapRef,S=N.activeCamera,L=N.stationLevel,w=N.mapUrl,A=N.selected_z_level,T=k(v,S),E=T[0],P=T[1];return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{height:"100%",style:{flex:"0 0 474px"},children:(0,e.createComponentVNode)(2,y.NanoMap,{onZoom:function(){function D(M){return V(M)}return D}(),mapUrl:w,children:v.filter(function(D){return D.z===(Number(A)||L)}).map(function(D){return(0,e.createComponentVNode)(2,y.NanoMap.NanoButton,{activeCamera:S,x:D.x,y:D.y,context:s,zoom:g,icon:"circle",tooltip:D.name,name:D.name,color:"blue",status:D.status},D.ref)})})}),(0,e.createComponentVNode)(2,y.Stack.Item,{height:"100%",m:.1,className:"CameraConsole__right_map",children:[(0,e.createVNode)(1,"div","CameraConsole__header",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"\u041A\u0430\u043C\u0435\u0440\u0430: ",16),S&&S.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-left",disabled:!E,onClick:function(){function D(){return h("switch_camera",{name:E})}return D}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-right",disabled:!P,onClick:function(){function D(){return h("switch_camera",{name:P})}return D}()})],4)],4),(0,e.createComponentVNode)(2,y.ByondUi,{className:"CameraConsole__map",overflow:"hidden",params:{id:B,type:"map"}})]})]})}return u}(),m=r.CameraConsoleOldContent=function(){function u(d,s){var l=(0,b.useBackend)(s),h=l.act,N=l.data,v=l.config,f=N.mapRef,g=N.activeCamera,V=(0,b.useLocalState)(s,"searchText",""),B=V[0],S=V[1],L=C(N.cameras,B),w=k(L,g),A=w[0],T=w[1];return(0,e.createComponentVNode)(2,y.Stack.Item,{children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,I.Window.Content,{children:(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Input,{width:"215px",placeholder:"\u041D\u0430\u0439\u0442\u0438 \u043A\u0430\u043C\u0435\u0440\u0443",onInput:function(){function E(P,D){return S(D)}return E}()})}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:L.map(function(E){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid",E.status?"Button--color--transparent":"Button--color--danger","Button--ellipsis",g&&E.name===g.name&&"Button--selected"]),E.name,0,{title:E.name,onClick:function(){function P(){return h("switch_camera",{name:E.name})}return P}()},E.name)})})})]})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"\u041A\u0430\u043C\u0435\u0440\u0430: ",16),g&&g.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-left",disabled:!A,onClick:function(){function E(){return h("switch_camera",{name:A})}return E}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-right",disabled:!T,onClick:function(){function E(){return h("switch_camera",{name:T})}return E}()})],4),(0,e.createComponentVNode)(2,y.ByondUi,{className:"CameraConsole__map",params:{id:f,type:"map"}})],4)]})}return u}()},52927:function(x,r,n){"use strict";r.__esModule=!0,r.Canister=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(49968),b=n(98595),y=r.Canister=function(){function I(k,C){var i=(0,t.useBackend)(C),c=i.act,m=i.data,u=m.portConnected,d=m.tankPressure,s=m.releasePressure,l=m.defaultReleasePressure,h=m.minReleasePressure,N=m.maxReleasePressure,v=m.valveOpen,f=m.name,g=m.canLabel,V=m.colorContainer,B=m.color_index,S=m.hasHoldingTank,L=m.holdingTank,w="";B.prim&&(w=V.prim.options[B.prim].name);var A="";B.sec&&(A=V.sec.options[B.sec].name);var T="";B.ter&&(T=V.ter.options[B.ter].name);var E="";B.quart&&(E=V.quart.options[B.quart].name);var P=[],D=[],M=[],O=[],R=0;for(R=0;Rf.current_positions&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:f.total_positions-f.current_positions})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"0"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"-",disabled:l.cooldown_time||!f.can_close,onClick:function(){function g(){return s("make_job_unavailable",{job:f.title})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"+",disabled:l.cooldown_time||!f.can_open,onClick:function(){function g(){return s("make_job_available",{job:f.title})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:l.target_dept&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:l.priority_jobs.indexOf(f.title)>-1?"Yes":""})||(0,e.createComponentVNode)(2,t.Button,{content:f.is_priority?"Yes":"No",selected:f.is_priority,disabled:l.cooldown_time||!f.can_prioritize,onClick:function(){function g(){return s("prioritize_job",{job:f.title})}return g}()})})]},f.title)})]})})]}):v=(0,e.createComponentVNode)(2,I);break;case 2:!l.authenticated||!l.scan_name?v=(0,e.createComponentVNode)(2,I):l.modify_name?v=(0,e.createComponentVNode)(2,p.AccessList,{accesses:l.regions,selectedList:l.selectedAccess,accessMod:function(){function f(g){return s("set",{access:g})}return f}(),grantAll:function(){function f(){return s("grant_all")}return f}(),denyAll:function(){function f(){return s("clear_all")}return f}(),grantDep:function(){function f(g){return s("grant_region",{region:g})}return f}(),denyDep:function(){function f(g){return s("deny_region",{region:g})}return f}()}):v=(0,e.createComponentVNode)(2,k);break;case 3:l.authenticated?l.records.length?v=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Records",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Delete All Records",disabled:!l.authenticated||l.records.length===0||l.target_dept,onClick:function(){function f(){return s("wipe_all_logs")}return f}()}),children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Crewman"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Old Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"New Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Authorized By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Reason"}),!!l.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Deleted By"})]}),l.records.map(function(f){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:f.transferee}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:f.oldvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:f.newvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:f.whodidit}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:f.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:f.reason}),!!l.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{children:f.deletedby})]},f.timestamp)})]}),!!l.iscentcom&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Delete MY Records",color:"purple",disabled:!l.authenticated||l.records.length===0,onClick:function(){function f(){return s("wipe_my_logs")}return f}()})})]}):v=(0,e.createComponentVNode)(2,C):v=(0,e.createComponentVNode)(2,I);break;case 4:!l.authenticated||!l.scan_name?v=(0,e.createComponentVNode)(2,I):v=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Your Team",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Sec Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Actions"})]}),l.people_dept.map(function(f){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:f.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:f.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:f.crimstat}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:f.buttontext,disabled:!f.demotable,onClick:function(){function g(){return s("remote_demote",{remote_demote:f.name})}return g}()})})]},f.title)})]})});break;default:v=(0,e.createComponentVNode)(2,t.Section,{title:"Warning",color:"red",children:"ERROR: Unknown Mode."})}return(0,e.createComponentVNode)(2,o.Window,{width:800,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:N}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:h}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:v})]})})})}return c}()},64083:function(x,r,n){"use strict";r.__esModule=!0,r.CargoConsole=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),p=n(36036),b=n(98595),y=n(25328),I=r.CargoConsole=function(){function d(s,l){return(0,e.createComponentVNode)(2,b.Window,{width:900,height:800,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,u)]})})})}return d}(),k=function(s,l){var h=(0,o.useLocalState)(l,"contentsModal",null),N=h[0],v=h[1],f=(0,o.useLocalState)(l,"contentsModalTitle",null),g=f[0],V=f[1];if(N!==null&&g!==null)return(0,e.createComponentVNode)(2,p.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,p.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[g,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,p.Box,{children:N.map(function(B){return(0,e.createComponentVNode)(2,p.Box,{children:["- ",B]},B)})}),(0,e.createComponentVNode)(2,p.Box,{m:2,children:(0,e.createComponentVNode)(2,p.Button,{content:"Close",onClick:function(){function B(){v(null),V(null)}return B}()})})]})},C=function(s,l){var h=(0,o.useBackend)(l),N=h.act,v=h.data,f=v.is_public,g=v.timeleft,V=v.moving,B=v.at_station,S,L;return!V&&!B?(S="Docked off-station",L="Call Shuttle"):!V&&B?(S="Docked at the station",L="Return Shuttle"):V&&(L="In Transit...",g!==1?S="Shuttle is en route (ETA: "+g+" minutes)":S="Shuttle is en route (ETA: "+g+" minute)"),(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Section,{title:"Status",children:(0,e.createComponentVNode)(2,p.LabeledList,{children:[(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Shuttle Status",children:S}),f===0&&(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,p.Button,{content:L,disabled:V,onClick:function(){function w(){return N("moveShuttle")}return w}()}),(0,e.createComponentVNode)(2,p.Button,{content:"View Central Command Messages",onClick:function(){function w(){return N("showMessages")}return w}()})]})]})})})},i=function(s,l){var h,N=(0,o.useBackend)(l),v=N.act,f=N.data,g=f.accounts,V=(0,o.useLocalState)(l,"selectedAccount"),B=V[0],S=V[1],L=[];return g.map(function(w){return L[w.name]=w.account_UID}),(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Section,{title:"Payment",children:[(0,e.createComponentVNode)(2,p.Dropdown,{width:"190px",options:g.map(function(w){return w.name}),selected:(h=g.filter(function(w){return w.account_UID===B})[0])==null?void 0:h.name,onSelected:function(){function w(A){return S(L[A])}return w}()}),g.filter(function(w){return w.account_UID===B}).map(function(w){return(0,e.createComponentVNode)(2,p.LabeledList,{children:[(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Account Name",children:(0,e.createComponentVNode)(2,p.Stack.Item,{mt:1,children:w.name})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Balance",children:(0,e.createComponentVNode)(2,p.Stack.Item,{children:w.balance})})]},w.account_UID)})]})})},c=function(s,l){var h=(0,o.useBackend)(l),N=h.act,v=h.data,f=v.requests,g=v.categories,V=v.supply_packs,B=(0,o.useSharedState)(l,"category","Emergency"),S=B[0],L=B[1],w=(0,o.useSharedState)(l,"search_text",""),A=w[0],T=w[1],E=(0,o.useLocalState)(l,"contentsModal",null),P=E[0],D=E[1],M=(0,o.useLocalState)(l,"contentsModalTitle",null),O=M[0],R=M[1],j=(0,y.createSearch)(A,function(Q){return Q.name}),_=(0,o.useLocalState)(l,"selectedAccount"),W=_[0],z=_[1],K=(0,a.flow)([(0,t.filter)(function(Q){return Q.cat===g.filter(function(J){return J.name===S})[0].category||A}),A&&(0,t.filter)(j),(0,t.sortBy)(function(Q){return Q.name.toLowerCase()})])(V),G="Crate Catalogue";return A?G="Results for '"+A+"':":S&&(G="Browsing "+S),(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Section,{title:G,buttons:(0,e.createComponentVNode)(2,p.Dropdown,{width:"190px",options:g.map(function(Q){return Q.name}),selected:S,onSelected:function(){function Q(J){return L(J)}return Q}()}),children:[(0,e.createComponentVNode)(2,p.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function Q(J,ue){return T(ue)}return Q}(),mb:1}),(0,e.createComponentVNode)(2,p.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,p.Table,{m:"0.5rem",children:K.map(function(Q){return(0,e.createComponentVNode)(2,p.Table.Row,{children:[(0,e.createComponentVNode)(2,p.Table.Cell,{bold:!0,children:[Q.name," (",Q.cost," Credits)"]}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,p.Button,{content:"Order 1",icon:"shopping-cart",disabled:!W,onClick:function(){function J(){return N("order",{crate:Q.ref,multiple:!1,account:W})}return J}()}),(0,e.createComponentVNode)(2,p.Button,{content:"Order Multiple",icon:"cart-plus",disabled:!W||Q.singleton,onClick:function(){function J(){return N("order",{crate:Q.ref,multiple:!0,account:W})}return J}()}),(0,e.createComponentVNode)(2,p.Button,{content:"View Contents",icon:"search",onClick:function(){function J(){D(Q.contents),R(Q.name)}return J}()})]})]},Q.name)})})})]})})},m=function(s,l){var h=s.request,N,v;switch(h.department){case"Engineering":v="CE",N="orange";break;case"Medical":v="CMO",N="teal";break;case"Science":v="RD",N="purple";break;case"Supply":v="CT",N="brown";break;case"Service":v="HOP",N="olive";break;case"Security":v="HOS",N="red";break;case"Command":v="CAP",N="blue";break;case"Assistant":v="Any Head",N="grey";break}return(0,e.createComponentVNode)(2,p.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{mt:.5,children:"Approval Required:"}),!!h.req_cargo_approval&&(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Button,{color:"brown",content:"QM",icon:"user-tie",tooltip:"This Order requires approval from the QM still"})}),!!h.req_head_approval&&(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Button,{color:N,content:v,disabled:h.req_cargo_approval,icon:"user-tie",tooltip:h.req_cargo_approval?"This Order first requires approval from the QM before the "+v+" can approve it":"This Order requires approval from the "+v+" still"})})]})},u=function(s,l){var h=(0,o.useBackend)(l),N=h.act,v=h.data,f=v.requests,g=v.orders,V=v.shipments;return(0,e.createComponentVNode)(2,p.Section,{fill:!0,scrollable:!0,title:"Orders",children:[(0,e.createComponentVNode)(2,p.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,p.Table,{children:f.map(function(B){return(0,e.createComponentVNode)(2,p.Table.Row,{className:"Cargo_RequestList",children:[(0,e.createComponentVNode)(2,p.Table.Cell,{mb:1,children:[(0,e.createComponentVNode)(2,p.Box,{children:["Order #",B.ordernum,": ",B.supply_type," (",B.cost," credits) for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)," with"," ",B.department?"The "+B.department+" Department":"Their Personal"," Account"]}),(0,e.createComponentVNode)(2,p.Box,{italic:!0,children:["Reason: ",B.comment]}),(0,e.createComponentVNode)(2,m,{request:B})]}),(0,e.createComponentVNode)(2,p.Stack.Item,{textAlign:"right",children:[(0,e.createComponentVNode)(2,p.Button,{content:"Approve",color:"green",disabled:!B.can_approve,onClick:function(){function S(){return N("approve",{ordernum:B.ordernum})}return S}()}),(0,e.createComponentVNode)(2,p.Button,{content:"Deny",color:"red",disabled:!B.can_deny,onClick:function(){function S(){return N("deny",{ordernum:B.ordernum})}return S}()})]})]},B.ordernum)})}),(0,e.createComponentVNode)(2,p.Box,{bold:!0,children:"Orders Awaiting Delivery"}),(0,e.createComponentVNode)(2,p.Table,{m:"0.5rem",children:g.map(function(B){return(0,e.createComponentVNode)(2,p.Table.Row,{children:(0,e.createComponentVNode)(2,p.Table.Cell,{children:[(0,e.createComponentVNode)(2,p.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,p.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})}),(0,e.createComponentVNode)(2,p.Box,{bold:!0,children:"Order in Transit"}),(0,e.createComponentVNode)(2,p.Table,{m:"0.5rem",children:V.map(function(B){return(0,e.createComponentVNode)(2,p.Table.Row,{children:(0,e.createComponentVNode)(2,p.Table.Cell,{children:[(0,e.createComponentVNode)(2,p.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,p.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})})]})}},36232:function(x,r,n){"use strict";r.__esModule=!0,r.ChameleonAppearances=r.Chameleon=void 0;var e=n(89005),a=n(25328),t=n(64795),o=n(88510),p=n(72253),b=n(36036),y=n(98595),I=r.Chameleon=function(){function i(c,m){return(0,e.createComponentVNode)(2,y.Window,{width:431,height:500,theme:"syndicate",children:(0,e.createComponentVNode)(2,y.Window.Content,{children:(0,e.createComponentVNode)(2,C)})})}return i}(),k=function(c,m){m===void 0&&(m="");var u=(0,a.createSearch)(m,function(d){return d.name});return(0,t.flow)([(0,o.filter)(function(d){return d==null?void 0:d.name}),m&&(0,o.filter)(u)])(c)},C=r.ChameleonAppearances=function(){function i(c,m){var u=(0,p.useBackend)(m),d=u.act,s=u.data,l=(0,p.useLocalState)(m,"searchText",""),h=l[0],N=l[1],v=k(s.chameleon_skins,h),f=s.selected_appearance;return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Input,{fluid:!0,placeholder:"Search for an appearance",onInput:function(){function g(V,B){return N(B)}return g}()})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Item Appearance",children:v.map(function(g){var V=g.name+"_"+g.icon_state;return(0,e.createComponentVNode)(2,b.ImageButton,{dmIcon:g.icon,dmIconState:g.icon_state,imageSize:64,m:.5,compact:!0,selected:V===f,tooltip:g.name,style:{opacity:V===f&&"1"||"0.5"},onClick:function(){function B(){d("change_appearance",{new_appearance:V})}return B}()},V)})})})]})}return i}()},87331:function(x,r,n){"use strict";r.__esModule=!0,r.ChangelogView=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.ChangelogView=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=(0,a.useLocalState)(I,"onlyRecent",0),m=c[0],u=c[1],d=i.cl_data,s=i.last_cl,l={FIX:(0,e.createComponentVNode)(2,t.Icon,{name:"tools",title:"Fix"}),WIP:(0,e.createComponentVNode)(2,t.Icon,{name:"hard-hat",title:"WIP",color:"orange"}),TWEAK:(0,e.createComponentVNode)(2,t.Icon,{name:"sliders-h",title:"Tweak"}),SOUNDADD:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",title:"Sound Added",color:"green"}),SOUNDDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-mute",title:"Sound Removed",color:"red"}),CODEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",title:"Code Addition",color:"green"}),CODEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"minus",title:"Code Removal",color:"red"}),IMAGEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-plus",title:"Sprite Addition",color:"green"}),IMAGEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-minus",title:"Sprite Removal",color:"red"}),SPELLCHECK:(0,e.createComponentVNode)(2,t.Icon,{name:"font",title:"Spelling/Grammar Fix"}),EXPERIMENT:(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle",title:"Experimental",color:"orange"})},h=function(){function N(v){return v in l?l[v]:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",color:"green"})}return N}();return(0,e.createComponentVNode)(2,o.Window,{width:750,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"ParadiseSS13 Changelog",mt:2,buttons:(0,e.createComponentVNode)(2,t.Button,{content:m?"Showing all changes":"Showing changes since last connection",onClick:function(){function N(){return u(!m)}return N}()}),children:d.map(function(N){return!m&&N.merge_ts<=s||(0,e.createComponentVNode)(2,t.Section,{mb:2,title:N.author+" - Merged on "+N.merge_date,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"#"+N.num,onClick:function(){function v(){return C("open_pr",{pr_number:N.num})}return v}()}),children:N.entries.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{m:1,children:[h(v.etype)," ",v.etext]},v)})},N)})})})})}return b}()},91360:function(x,r,n){"use strict";r.__esModule=!0,r.CheckboxListInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(36036),p=n(72253),b=n(98595),y=r.CheckboxListInputModal=function(){function k(C,i){var c=(0,p.useBackend)(i),m=c.act,u=c.data,d=u.items,s=d===void 0?[]:d,l=u.message,h=l===void 0?"":l,N=u.init_value,v=u.timeout,f=u.title,g=(0,p.useLocalState)(i,"edittedItems",s),V=g[0],B=g[1],S=330+Math.ceil(h.length/3),L=function(){function w(A){A===void 0&&(A=null);var T=[].concat(V);T=T.map(function(E){return E.key===A.key?Object.assign({},E,{checked:!A.checked}):E}),B(T)}return w}();return(0,e.createComponentVNode)(2,b.Window,{title:f,width:325,height:S,children:[v&&(0,e.createComponentVNode)(2,a.Loader,{value:v}),(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{className:"ListInput__Section",fill:!0,title:h,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,I,{filteredItems:V,onClick:L})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:V})})]})})})]})}return k}(),I=function(C,i){var c=C.filteredItems,m=C.onClick;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:c.map(function(u,d){return(0,e.createComponentVNode)(2,o.Button.Checkbox,{fluid:!0,id:d,onClick:function(){function s(){return m(u)}return s}(),checked:u.checked,style:{animation:"none",transition:"none"},children:u.key.replace(/^\w/,function(s){return s.toUpperCase()})},d)})})}},36108:function(x,r,n){"use strict";r.__esModule=!0,r.ChemDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(85870),p=n(98595),b=[1,5,10,20,30,50],y=[1,5,10],I=r.ChemDispenser=function(){function c(m,u){var d=(0,a.useBackend)(u),s=d.act,l=d.data,h=l.chemicals;return(0,e.createComponentVNode)(2,p.Window,{width:400,height:400+h.length*8,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,i)]})})})}return c}(),k=function(m,u){var d=(0,a.useBackend)(u),s=d.act,l=d.data,h=l.amount,N=l.energy,v=l.maxEnergy;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:N,minValue:0,maxValue:v,ranges:{good:[v*.5,1/0],average:[v*.25,v*.5],bad:[-1/0,v*.25]},children:[N," / ",v," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:b.map(function(f,g){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:h===f,content:f,onClick:function(){function V(){return s("amount",{amount:f})}return V}()})},g)})})})]})})})},C=function(m,u){for(var d=(0,a.useBackend)(u),s=d.act,l=d.data,h=l.chemicals,N=h===void 0?[]:h,v=[],f=0;f<(N.length+1)%3;f++)v.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:l.glass?"Drink Dispenser":"Chemical Dispenser",children:[N.map(function(g,V){return(0,e.createComponentVNode)(2,t.Button,{m:.1,width:"32.5%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",content:g.title,style:{"margin-left":"2px"},onClick:function(){function B(){return s("dispense",{reagent:g.id})}return B}()},V)}),v.map(function(g,V){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%"},V)})]})})},i=function(m,u){var d=(0,a.useBackend)(u),s=d.act,l=d.data,h=l.isBeakerLoaded,N=l.beakerCurrentVolume,v=l.beakerMaxVolume,f=l.beakerContents,g=f===void 0?[]:f;return(0,e.createComponentVNode)(2,t.Stack.Item,{height:16,children:(0,e.createComponentVNode)(2,t.Section,{title:l.glass?"Glass":"Beaker",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Box,{children:[!!h&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[N," / ",v," units"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!h,onClick:function(){function V(){return s("ejectBeaker")}return V}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:h,beakerContents:g,buttons:function(){function V(B){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){function S(){return s("remove",{reagent:B.id,amount:-1})}return S}()}),y.map(function(S,L){return(0,e.createComponentVNode)(2,t.Button,{content:S,onClick:function(){function w(){return s("remove",{reagent:B.id,amount:S})}return w}()},L)}),(0,e.createComponentVNode)(2,t.Button,{content:"ALL",onClick:function(){function S(){return s("remove",{reagent:B.id,amount:B.volume})}return S}()})],0)}return V}()})})})}},13146:function(x,r,n){"use strict";r.__esModule=!0,r.ChemHeater=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(85870),b=n(98595),y=r.ChemHeater=function(){function C(i,c){return(0,e.createComponentVNode)(2,b.Window,{width:350,height:275,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,I),(0,e.createComponentVNode)(2,k)]})})})}return C}(),I=function(i,c){var m=(0,t.useBackend)(c),u=m.act,d=m.data,s=d.targetTemp,l=d.targetTempReached,h=d.autoEject,N=d.isActive,v=d.currentTemp,f=d.isBeakerLoaded;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Settings",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Auto-eject",icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){function g(){return u("toggle_autoeject")}return g}()}),(0,e.createComponentVNode)(2,o.Button,{content:N?"On":"Off",icon:"power-off",selected:N,disabled:!f,onClick:function(){function g(){return u("toggle_on")}return g}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"65px",unit:"K",step:10,stepPixelSize:3,value:(0,a.round)(s,0),minValue:0,maxValue:1e3,onDrag:function(){function g(V,B){return u("adjust_temperature",{target:B})}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reading",color:l?"good":"average",children:f&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:v,format:function(){function g(V){return(0,a.toFixed)(V)+" K"}return g}()})||"\u2014"})]})})})},k=function(i,c){var m=(0,t.useBackend)(c),u=m.act,d=m.data,s=d.isBeakerLoaded,l=d.beakerCurrentVolume,h=d.beakerMaxVolume,N=d.beakerContents;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:!!s&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",mr:2,children:[l," / ",h," units"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",onClick:function(){function v(){return u("eject_beaker")}return v}()})]}),children:(0,e.createComponentVNode)(2,p.BeakerContents,{beakerLoaded:s,beakerContents:N})})})}},56541:function(x,r,n){"use strict";r.__esModule=!0,r.ChemMaster=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(85870),b=n(3939),y=n(35840),I=["icon"];function k(S,L){if(S==null)return{};var w={};for(var A in S)if({}.hasOwnProperty.call(S,A)){if(L.includes(A))continue;w[A]=S[A]}return w}function C(S,L){S.prototype=Object.create(L.prototype),S.prototype.constructor=S,i(S,L)}function i(S,L){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(w,A){return w.__proto__=A,w},i(S,L)}var c=[1,5,10],m=function(L,w){var A=(0,a.useBackend)(w),T=A.act,E=A.data,P=L.args.analysis;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:E.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.createComponentVNode)(2,t.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:P.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:(P.desc||"").length>0?P.desc:"N/A"}),P.blood_type&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood type",children:P.blood_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:P.blood_dna})],4),!E.condi&&(0,e.createComponentVNode)(2,t.Button,{icon:E.printing?"spinner":"print",disabled:E.printing,iconSpin:!!E.printing,ml:"0.5rem",content:"Print",onClick:function(){function D(){return T("print",{idx:P.idx,beaker:L.args.beaker})}return D}()})]})})})})},u=function(S){return S[S.ToDisposals=0]="ToDisposals",S[S.ToBeaker=1]="ToBeaker",S}(u||{}),d=r.ChemMaster=function(){function S(L,w){return(0,e.createComponentVNode)(2,o.Window,{width:575,height:650,children:[(0,e.createComponentVNode)(2,b.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,B)]})})]})}return S}(),s=function(L,w){var A=(0,a.useBackend)(w),T=A.act,E=A.data,P=E.beaker,D=E.beaker_reagents,M=E.buffer_reagents,O=M.length>0;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:O?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!P,content:"Eject and Clear Buffer",onClick:function(){function R(){return T("eject")}return R}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!P,content:"Eject and Clear Buffer",onClick:function(){function R(){return T("eject")}return R}()}),children:P?(0,e.createComponentVNode)(2,p.BeakerContents,{beakerLoaded:!0,beakerContents:D,buttons:function(){function R(j,_){return(0,e.createComponentVNode)(2,t.Box,{mb:_0?(0,e.createComponentVNode)(2,p.BeakerContents,{beakerLoaded:!0,beakerContents:D,buttons:function(){function M(O,R){return(0,e.createComponentVNode)(2,t.Box,{mb:R0&&(O=M.map(function(R){var j=R.id,_=R.sprite;return(0,e.createComponentVNode)(2,g,{icon:_,translucent:!0,onClick:function(){function W(){return T("set_sprite_style",{production_mode:P,style:j})}return W}(),selected:D===j},j)})),(0,e.createComponentVNode)(2,f,{productionData:L.productionData,children:O&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:O})})},B=function(L,w){var A=(0,a.useBackend)(w),T=A.act,E=A.data,P=E.loaded_pill_bottle_style,D=E.containerstyles,M=E.loaded_pill_bottle,O={width:"20px",height:"20px"},R=D.map(function(j){var _=j.color,W=j.name,z=P===_;return(0,e.createComponentVNode)(2,t.Button,{style:{position:"relative",width:O.width,height:O.height},onClick:function(){function K(){return T("set_container_style",{style:_})}return K}(),icon:z&&"check",iconStyle:{position:"relative","z-index":1},tooltip:W,tooltipPosition:"top",children:[!z&&(0,e.createVNode)(1,"div",null,null,1,{style:{display:"inline-block"}}),(0,e.createVNode)(1,"span","Button",null,1,{style:{display:"inline-block",position:"absolute",top:0,left:0,margin:0,padding:0,width:O.width,height:O.height,"background-color":_,opacity:.6,filter:"alpha(opacity=60)"}})]},_)});return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Container Customization",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!M,content:"Eject Container",onClick:function(){function j(){return T("ejectp")}return j}()}),children:M?(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:[(0,e.createComponentVNode)(2,t.Button,{style:{width:O.width,height:O.height},icon:"tint-slash",onClick:function(){function j(){return T("clear_container_style")}return j}(),selected:!P,tooltip:"Default",tooltipPosition:"top"}),R]})}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No pill bottle or patch pack loaded."})})})};(0,b.modalRegisterBodyOverride)("analyze",m)},37173:function(x,r,n){"use strict";r.__esModule=!0,r.CloningConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(79140),b=1,y=32,I=128,k=r.CloningConsole=function(){function d(s,l){var h=(0,a.useBackend)(l),N=h.act,v=h.data,f=v.tab,g=v.has_scanner,V=v.pod_amount;return(0,e.createComponentVNode)(2,o.Window,{width:640,height:520,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Cloning Console",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connected scanner",children:g?"Online":"Missing"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connected pods",children:V})]})}),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:f===1,icon:"home",onClick:function(){function B(){return N("menu",{tab:1})}return B}(),children:"Main Menu"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:f===2,icon:"user",onClick:function(){function B(){return N("menu",{tab:2})}return B}(),children:"Damage Configuration"})]}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,C)})]})})}return d}(),C=function(s,l){var h=(0,a.useBackend)(l),N=h.data,v=N.tab,f;return v===1?f=(0,e.createComponentVNode)(2,i):v===2&&(f=(0,e.createComponentVNode)(2,c)),f},i=function(s,l){var h=(0,a.useBackend)(l),N=h.act,v=h.data,f=v.pods,g=v.pod_amount,V=v.selected_pod_UID;return(0,e.createComponentVNode)(2,t.Box,{children:[!g&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No pods connected."}),!!g&&f.map(function(B,S){return(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Pod "+(S+1),children:(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"96px",shrink:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,p.resolveAsset)("pod_"+(B.cloning?"cloning":"idle")+".gif"),style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Button,{selected:V===B.uid,onClick:function(){function L(){return N("select_pod",{uid:B.uid})}return L}(),children:"Select"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Progress",children:[!B.cloning&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Pod is inactive."}),!!B.cloning&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:B.clone_progress,maxValue:100,color:"good"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Biomass",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:B.biomass,ranges:{good:[2*B.biomass_storage_capacity/3,B.biomass_storage_capacity],average:[B.biomass_storage_capacity/3,2*B.biomass_storage_capacity/3],bad:[0,B.biomass_storage_capacity/3]},minValue:0,maxValue:B.biomass_storage_capacity,children:[B.biomass,"/",B.biomass_storage_capacity+" ("+100*B.biomass/B.biomass_storage_capacity+"%)"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sanguine Reagent",children:B.sanguine_reagent}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Osseous Reagent",children:B.osseous_reagent})]})})]})},B)})]})},c=function(s,l){var h=(0,a.useBackend)(l),N=h.act,v=h.data,f=v.selected_pod_data,g=v.has_scanned,V=v.scanner_has_patient,B=v.feedback,S=v.scan_successful,L=v.cloning_cost,w=v.has_scanner,A=v.currently_scanning;return(0,e.createComponentVNode)(2,t.Box,{children:[!w&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No scanner connected."}),!!w&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Scanner Info",buttons:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hourglass-half",onClick:function(){function T(){return N("scan")}return T}(),disabled:!V||A,children:"Scan"}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function T(){return N("eject")}return T}(),disabled:!V||A,children:"Eject Patient"})]}),children:[!g&&!A&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:V?"No scan detected for current patient.":"No patient is in the scanner."}),(!!g||!!A)&&(0,e.createComponentVNode)(2,t.Box,{color:B.color,children:B.text})]}),(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Damages Breakdown",children:(0,e.createComponentVNode)(2,t.Box,{children:[(!S||!g)&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No valid scan detected."}),!!S&&!!g&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function T(){return N("fix_all")}return T}(),children:"Repair All Damages"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function T(){return N("fix_none")}return T}(),children:"Repair No Damages"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function T(){return N("clone")}return T}(),children:"Clone"})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:L[0],maxValue:f.biomass_storage_capacity,ranges:{bad:[2*f.biomass_storage_capacity/3,f.biomass_storage_capacity],average:[f.biomass_storage_capacity/3,2*f.biomass_storage_capacity/3],good:[0,f.biomass_storage_capacity/3]},color:L[0]>f.biomass?"bad":null,children:["Biomass: ",L[0],"/",f.biomass,"/",f.biomass_storage_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:L[1],maxValue:f.max_reagent_capacity,ranges:{bad:[2*f.max_reagent_capacity/3,f.max_reagent_capacity],average:[f.max_reagent_capacity/3,2*f.max_reagent_capacity/3],good:[0,f.max_reagent_capacity/3]},color:L[1]>f.sanguine_reagent?"bad":"good",children:["Sanguine: ",L[1],"/",f.sanguine_reagent,"/",f.max_reagent_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:L[2],maxValue:f.max_reagent_capacity,ranges:{bad:[2*f.max_reagent_capacity/3,f.max_reagent_capacity],average:[f.max_reagent_capacity/3,2*f.max_reagent_capacity/3],good:[0,f.max_reagent_capacity/3]},color:L[2]>f.osseous_reagent?"bad":"good",children:["Osseous: ",L[2],"/",f.osseous_reagent,"/",f.max_reagent_capacity]})})]}),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,u)]})]})})]})]})},m=function(s,l){var h=(0,a.useBackend)(l),N=h.act,v=h.data,f=v.patient_limb_data,g=v.limb_list,V=v.desired_limb_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Limbs",children:g.map(function(B,S){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"15%",height:"20px",children:[f[B][4],":"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),f[B][3]===0&&(0,e.createComponentVNode)(2,t.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:V[B][0]+V[B][1],maxValue:f[B][5],ranges:{good:[0,f[B][5]/3],average:[f[B][5]/3,2*f[B][5]/3],bad:[2*f[B][5]/3,f[B][5]]},children:["Post-Cloning Damage: ",(0,e.createComponentVNode)(2,t.Icon,{name:"bone"})," "+V[B][0]+" / ",(0,e.createComponentVNode)(2,t.Icon,{name:"fire"})," "+V[B][1]]})}),f[B][3]!==0&&(0,e.createComponentVNode)(2,t.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",f[B][4]," is missing!"]})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[!!f[B][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!V[B][3],onClick:function(){function L(){return N("toggle_limb_repair",{limb:B,type:"replace"})}return L}(),children:"Replace Limb"})}),!f[B][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(f[B][0]||f[B][1]),checked:!(V[B][0]||V[B][1]),onClick:function(){function L(){return N("toggle_limb_repair",{limb:B,type:"damage"})}return L}(),children:"Repair Damages"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(f[B][2]&b),checked:!(V[B][2]&b),onClick:function(){function L(){return N("toggle_limb_repair",{limb:B,type:"bone"})}return L}(),children:"Mend Bone"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(f[B][2]&y),checked:!(V[B][2]&y),onClick:function(){function L(){return N("toggle_limb_repair",{limb:B,type:"ib"})}return L}(),children:"Mend IB"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(f[B][2]&I),checked:!(V[B][2]&I),onClick:function(){function L(){return N("toggle_limb_repair",{limb:B,type:"critburn"})}return L}(),children:"Mend Critical Burn"})]})]})]},B)})})},u=function(s,l){var h=(0,a.useBackend)(l),N=h.act,v=h.data,f=v.patient_organ_data,g=v.organ_list,V=v.desired_organ_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Organs",children:g.map(function(B,S){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"20%",height:"20px",children:[f[B][3],":"," "]}),f[B][5]!=="heart"&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!!f[B][2]&&(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!V[B][2]&&!V[B][1],onClick:function(){function L(){return N("toggle_organ_repair",{organ:B,type:"replace"})}return L}(),children:"Replace Organ"}),!f[B][2]&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!f[B][0],checked:!V[B][0],onClick:function(){function L(){return N("toggle_organ_repair",{organ:B,type:"damage"})}return L}(),children:"Repair Damages"})})]})}),f[B][5]==="heart"&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Heart replacement is required for cloning."}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"35%",children:[!!f[B][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",f[B][3]," is missing!"]}),!f[B][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:V[B][0],maxValue:f[B][4],ranges:{good:[0,f[B][4]/3],average:[f[B][4]/3,2*f[B][4]/3],bad:[2*f[B][4]/3,f[B][4]]},children:"Post-Cloning Damage: "+V[B][0]})]})]})},B)})})}},98723:function(x,r,n){"use strict";r.__esModule=!0,r.CloningPod=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.CloningPod=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.biomass,m=i.biomass_storage_capacity,u=i.sanguine_reagent,d=i.osseous_reagent,s=i.organs,l=i.currently_cloning;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Liquid Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Biomass:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:c,ranges:{good:[2*m/3,m],average:[m/3,2*m/3],bad:[0,m/3]},minValue:0,maxValue:m})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Sanguine Reagent:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:u+" units"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:0,minValue:0,maxValue:u,step:1,unit:"units",onChange:function(){function h(N,v){return C("remove_reagent",{reagent:"sanguine_reagent",amount:v})}return h}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function h(){return C("purge_reagent",{reagent:"sanguine_reagent"})}return h}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Osseous Reagent:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:d+" units"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:0,minValue:0,maxValue:d,step:1,unit:"units",onChange:function(){function h(N,v){return C("remove_reagent",{reagent:"osseous_reagent",amount:v})}return h}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function h(){return C("purge_reagent",{reagent:"osseous_reagent"})}return h}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Organ Storage",children:[!l&&(0,e.createComponentVNode)(2,t.Box,{children:[!s&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No organs loaded."}),!!s&&s.map(function(h){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:h.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject",onClick:function(){function N(){return C("eject_organ",{organ_ref:h.ref})}return N}()})})]},h)})]}),!!l&&(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"lock",size:"5",mb:3}),(0,e.createVNode)(1,"br"),"Unable to access organ storage while cloning."]})})]})]})})}return b}()},18259:function(x,r,n){"use strict";r.__esModule=!0,r.CoinMint=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),p=n(98595),b=r.CoinMint=function(){function y(I,k){var C=(0,t.useBackend)(k),i=C.act,c=C.data,m=c.materials,u=c.moneyBag,d=c.moneyBagContent,s=c.moneyBagMaxContent,l=(u?210:138)+Math.ceil(m.length/4)*64;return(0,e.createComponentVNode)(2,p.Window,{width:210,height:l,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.NoticeBox,{m:0,info:!0,children:["Total coins produced: ",c.totalCoins]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Coin Type",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",color:c.active&&"bad",tooltip:!u&&"Need a money bag",disabled:!u,onClick:function(){function h(){return i("activate")}return h}()}),children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,maxValue:c.maxMaterials,value:c.totalMaterials})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",tooltip:"Eject selected material",onClick:function(){function h(){return i("ejectMat")}return h}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:m.map(function(h){return(0,e.createComponentVNode)(2,o.Button,{bold:!0,inline:!0,translucent:!0,m:.2,textAlign:"center",selected:h.id===c.chosenMaterial,tooltip:h.name,content:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",h.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:h.amount})]}),onClick:function(){function N(){return i("selectMaterial",{material:h.id})}return N}()},h.id)})})]})})}),!!u&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Money Bag",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",disabled:c.active,onClick:function(){function h(){return i("ejectBag")}return h}()}),children:(0,e.createComponentVNode)(2,o.ProgressBar,{width:"100%",minValue:0,maxValue:s,value:d,children:[d," / ",s]})})})]})})})}return y}()},93858:function(x,r,n){"use strict";r.__esModule=!0,r.HexColorInput=r.ColorSelector=r.ColorPickerModal=r.ColorInput=void 0;var e=n(89005),a=n(51057),t=n(72253),o=n(36036),p=n(98595),b=n(44879),y=n(14448),I=n(4454),k=n(35840),C=n(9394),i=n(19203),c=["prefixed","alpha","color","fluid","onChange"];/** + */var b=(0,t.createLogger)("hotkeys"),y={},I=[e.KEY_ESCAPE,e.KEY_ENTER,e.KEY_SPACE,e.KEY_TAB,e.KEY_CTRL,e.KEY_SHIFT,e.KEY_UP,e.KEY_DOWN,e.KEY_LEFT,e.KEY_RIGHT],k={},C=function(u){if(u===16)return"Shift";if(u===17)return"Ctrl";if(u===18)return"Alt";if(u===33)return"Northeast";if(u===34)return"Southeast";if(u===35)return"Southwest";if(u===36)return"Northwest";if(u===37)return"West";if(u===38)return"North";if(u===39)return"East";if(u===40)return"South";if(u===45)return"Insert";if(u===46)return"Delete";if(u>=48&&u<=57||u>=65&&u<=90)return String.fromCharCode(u);if(u>=96&&u<=105)return"Numpad"+(u-96);if(u>=112&&u<=123)return"F"+(u-111);if(u===188)return",";if(u===189)return"-";if(u===190)return"."},i=function(u){var h=String(u);if(h==="Ctrl+F5"||h==="Ctrl+R"){location.reload();return}if(h!=="Ctrl+F"&&!(u.event.defaultPrevented||u.isModifierKey()||I.includes(u.code))){h==="F5"&&(u.event.preventDefault(),u.event.returnValue=!1);var g=C(u.code);if(g){var v=y[g];if(v)return b.debug("macro",v),Byond.command(v);if(u.isDown()&&!k[g]){k[g]=!0;var f='Key_Down "'+g+'"';return b.debug(f),Byond.command(f)}if(u.isUp()&&k[g]){k[g]=!1;var N='Key_Up "'+g+'"';return b.debug(N),Byond.command(N)}}}},c=r.acquireHotKey=function(){function s(u){I.push(u)}return s}(),m=r.releaseHotKey=function(){function s(u){var h=I.indexOf(u);h>=0&&I.splice(h,1)}return s}(),l=r.releaseHeldKeys=function(){function s(){for(var u=0,h=Object.keys(k);u0||(0,a.fetchRetry)((0,e.resolveAsset)("icon_ref_map.json")).then(function(b){return b.json()}).then(function(b){return Byond.iconRefMap=b}).catch(function(b){return t.logger.log(b)})}return p}()},1090:function(T,r,n){"use strict";r.__esModule=!0,r.AICard=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AICard=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data;if(i.has_ai===0)return(0,e.createComponentVNode)(2,o.Window,{width:250,height:120,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Stored AI",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createVNode)(1,"h3",null,"No AI detected.",16)})})})});var c=null;return i.integrity>=75?c="green":i.integrity>=25?c="yellow":c="red",(0,e.createComponentVNode)(2,o.Window,{width:600,height:420,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:i.name,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:c,value:i.integrity/100})})}),(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h2",null,i.flushing===1?"Wipe of AI in progress...":"",0)})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!i.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:i.laws.map(function(m,l){return(0,e.createComponentVNode)(2,t.Box,{children:m},l)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:i.wireless?"check":"times",content:i.wireless?"Enabled":"Disabled",color:i.wireless?"green":"red",onClick:function(){function m(){return C("wireless")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:i.radio?"check":"times",content:i.radio?"Enabled":"Disabled",color:i.radio?"green":"red",onClick:function(){function m(){return C("radio")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wipe",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{width:10,icon:"trash-alt",confirmIcon:"trash-alt",disabled:i.flushing||i.integrity===0,confirmColor:"red",content:"Wipe AI",onClick:function(){function m(){return C("wipe")}return m}()})})]})})})]})})})}return b}()},39454:function(T,r,n){"use strict";r.__esModule=!0,r.AIFixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AIFixer=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data;if(i.occupant===null)return(0,e.createComponentVNode)(2,o.Window,{width:550,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stored AI",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"robot",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No Artificial Intelligence detected.",16)]})})})})});var c=!0;(i.stat===2||i.stat===null)&&(c=!1);var m=null;i.integrity>=75?m="green":i.integrity>=25?m="yellow":m="red";var l=!0;return i.integrity>=100&&i.stat!==2&&(l=!1),(0,e.createComponentVNode)(2,o.Window,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:i.occupant,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:m,value:i.integrity/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:c?"green":"red",children:c?"Functional":"Non-Functional"})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!i.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:i.laws.map(function(d,s){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:d},s)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.wireless?"times":"check",content:i.wireless?"Disabled":"Enabled",color:i.wireless?"red":"green",onClick:function(){function d(){return C("wireless")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.radio?"times":"check",content:i.radio?"Disabled":"Enabled",color:i.radio?"red":"green",onClick:function(){function d(){return C("radio")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Start Repairs",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:!l||i.active,content:!l||i.active?"Already Repaired":"Repair",onClick:function(){function d(){return C("fix")}return d}()})})]}),(0,e.createComponentVNode)(2,t.Box,{color:"green",lineHeight:2,children:i.active?"Reconstruction in progress.":""})]})})]})})})}return b}()},88422:function(T,r,n){"use strict";r.__esModule=!0,r.APC=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(195),b=r.APC=function(){function C(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:510,height:435,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,k)})})}return C}(),y={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},I={1:{icon:"terminal",content:"Override Programming",action:"hack"},2:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"},3:{icon:"caret-square-left",content:"Return to Main Core",action:"deoccupy"},4:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"}},k=function(i,c){var m=(0,a.useBackend)(c),l=m.act,d=m.data,s=d.locked&&!d.siliconUser,u=d.normallyLocked,h=y[d.externalPower]||y[0],g=y[d.chargingStatus]||y[0],v=d.powerChannels||[],f=I[d.malfStatus]||I[0],N=d.powerCellStatus/100;return(0,e.createFragment)([(0,e.createComponentVNode)(2,p.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main Breaker",color:h.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.isOperating?"power-off":"times",content:d.isOperating?"On":"Off",selected:d.isOperating&&!s,color:d.isOperating?"":"bad",disabled:s,onClick:function(){function V(){return l("breaker")}return V}()}),children:["[ ",h.externalPowerText," ]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Cell",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",value:N})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",color:g.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.chargeMode?"sync":"times",content:d.chargeMode?"Auto":"Off",selected:d.chargeMode,disabled:s,onClick:function(){function V(){return l("charge")}return V}()}),children:["[ ",g.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[v.map(function(V){var B=V.topicParams;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:V.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:2,color:V.status>=2?"good":"bad",children:V.status>=2?"On":"Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:!s&&(V.status===1||V.status===3),disabled:s,onClick:function(){function S(){return l("channel",B.auto)}return S}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!s&&V.status===2,disabled:s,onClick:function(){function S(){return l("channel",B.on)}return S}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!s&&V.status===0,disabled:s,onClick:function(){function S(){return l("channel",B.off)}return S}()})],4),children:[V.powerLoad," W"]},V.title)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Load",children:(0,e.createVNode)(1,"b",null,[d.totalLoad,(0,e.createTextVNode)(" W")],0)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc",buttons:!!d.siliconUser&&(0,e.createFragment)([!!d.malfStatus&&(0,e.createComponentVNode)(2,t.Button,{icon:f.icon,content:f.content,color:"bad",onClick:function(){function V(){return l(f.action)}return V}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){function V(){return l("overload")}return V}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.4,icon:d.coverLocked?"lock":"unlock",content:d.coverLocked?"Engaged":"Disengaged",disabled:s,onClick:function(){function V(){return l("cover")}return V}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:d.emergencyLights?"Enabled":"Disabled",disabled:s,onClick:function(){function V(){return l("emergency_lighting")}return V}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{mt:.4,icon:"lightbulb-o",content:d.nightshiftLights?"Enabled":"Disabled",onClick:function(){function V(){return l("toggle_nightshift")}return V}()})})]})})],4)}},99660:function(T,r,n){"use strict";r.__esModule=!0,r.ATM=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.ATM=function(){function m(l,d){var s=(0,a.useBackend)(d),u=s.act,h=s.data,g=h.view_screen,v=h.authenticated_account,f=h.ticks_left_locked_down,N=h.linked_db,V;if(f>0)V=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Maximum number of pin attempts exceeded! Access to this ATM has been temporarily disabled."]});else if(!N)V=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Unable to connect to accounts database, please retry and if the issue persists contact Nanotrasen IT support."]});else if(v)switch(g){case 1:V=(0,e.createComponentVNode)(2,y);break;case 2:V=(0,e.createComponentVNode)(2,I);break;case 3:V=(0,e.createComponentVNode)(2,i);break;default:V=(0,e.createComponentVNode)(2,k)}else V=(0,e.createComponentVNode)(2,C);return(0,e.createComponentVNode)(2,o.Window,{width:550,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,t.Section,{children:V})]})})}return m}(),b=function(l,d){var s=(0,a.useBackend)(d),u=s.act,h=s.data,g=h.machine_id,v=h.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Nanotrasen Automatic Teller Machine",children:[(0,e.createComponentVNode)(2,t.Box,{children:"For all your monetary needs!"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Card",children:(0,e.createComponentVNode)(2,t.Button,{content:v,icon:"eject",onClick:function(){function f(){return u("insert_card")}return f}()})})})]})},y=function(l,d){var s=(0,a.useBackend)(d),u=s.act,h=s.data,g=h.security_level;return(0,e.createComponentVNode)(2,t.Section,{title:"Select a new security level for this account",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Number",icon:"unlock",selected:g===0,onClick:function(){function v(){return u("change_security_level",{new_security_level:1})}return v}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"Either the account number or card is required to access this account. EFTPOS transactions will require a card."}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Pin",icon:"unlock",selected:g===2,onClick:function(){function v(){return u("change_security_level",{new_security_level:2})}return v}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"An account number and pin must be manually entered to access this account and process transactions."})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},I=function(l,d){var s=(0,a.useBackend)(d),u=s.act,h=s.data,g=(0,a.useLocalState)(d,"targetAccNumber",0),v=g[0],f=g[1],N=(0,a.useLocalState)(d,"fundsAmount",0),V=N[0],B=N[1],S=(0,a.useLocalState)(d,"purpose",0),L=S[0],w=S[1],A=h.money;return(0,e.createComponentVNode)(2,t.Section,{title:"Transfer Fund",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",A]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Account Number",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"7 Digit Number",onInput:function(){function x(E,P){return f(P)}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Funds to Transfer",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function x(E,P){return B(P)}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transaction Purpose",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,onInput:function(){function x(E,P){return w(P)}return x}()})})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sign-out-alt",onClick:function(){function x(){return u("transfer",{target_acc_number:v,funds_amount:V,purpose:L})}return x}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},k=function(l,d){var s=(0,a.useBackend)(d),u=s.act,h=s.data,g=(0,a.useLocalState)(d,"fundsAmount",0),v=g[0],f=g[1],N=h.owner_name,V=h.money;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Welcome, "+N,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Logout",icon:"sign-out-alt",onClick:function(){function B(){return u("logout")}return B}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",V]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Withdrawal Amount",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function B(S,L){return f(L)}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Withdraw Funds",icon:"sign-out-alt",onClick:function(){function B(){return u("withdrawal",{funds_amount:v})}return B}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Menu",children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Change account security level",icon:"lock",onClick:function(){function B(){return u("view_screen",{view_screen:1})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Make transfer",icon:"exchange-alt",onClick:function(){function B(){return u("view_screen",{view_screen:2})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View transaction log",icon:"list",onClick:function(){function B(){return u("view_screen",{view_screen:3})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print balance statement",icon:"print",onClick:function(){function B(){return u("balance_statement")}return B}()})})]})],4)},C=function(l,d){var s=(0,a.useBackend)(d),u=s.act,h=s.data,g=(0,a.useLocalState)(d,"accountID",null),v=g[0],f=g[1],N=(0,a.useLocalState)(d,"accountPin",null),V=N[0],B=N[1],S=h.machine_id,L=h.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Insert card or enter ID and pin to login",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account ID",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function w(A,x){return f(x)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pin",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function w(A,x){return B(x)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Login",icon:"sign-in-alt",onClick:function(){function w(){return u("attempt_auth",{account_num:v,account_pin:V})}return w}()})})]})})},i=function(l,d){var s=(0,a.useBackend)(d),u=s.act,h=s.data,g=h.transaction_log;return(0,e.createComponentVNode)(2,t.Section,{title:"Transactions",children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Terminal"})]}),g.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.purpose}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:v.is_deposit?"green":"red",children:["$",v.amount]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.target_name})]},v)})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},c=function(l,d){var s=(0,a.useBackend)(d),u=s.act,h=s.data;return(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){function g(){return u("view_screen",{view_screen:0})}return g}()})}},86423:function(T,r,n){"use strict";r.__esModule=!0,r.AccountsUplinkTerminal=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(36352),b=n(98595),y=n(321),I=n(5485),k=r.AccountsUplinkTerminal=function(){function h(g,v){var f=(0,t.useBackend)(v),N=f.act,V=f.data,B=V.loginState,S=V.currentPage,L;if(B.logged_in)S===1?L=(0,e.createComponentVNode)(2,i):S===2?L=(0,e.createComponentVNode)(2,s):S===3&&(L=(0,e.createComponentVNode)(2,u));else return(0,e.createComponentVNode)(2,b.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,I.LoginScreen)})})});return(0,e.createComponentVNode)(2,b.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:L})]})})})}return h}(),C=function(g,v){var f=(0,t.useBackend)(v),N=f.data,V=(0,t.useLocalState)(v,"tabIndex",0),B=V[0],S=V[1],L=N.login_state;return(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,mb:1,children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:B===0,onClick:function(){function w(){return S(0)}return w}(),children:"User Accounts"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:B===1,onClick:function(){function w(){return S(1)}return w}(),children:"Department Accounts"})]})})})},i=function(g,v){var f=(0,t.useLocalState)(v,"tabIndex",0),N=f[0];switch(N){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,m);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},c=function(g,v){var f=(0,t.useBackend)(v),N=f.act,V=f.data,B=V.accounts,S=(0,t.useLocalState)(v,"searchText",""),L=S[0],w=S[1],A=(0,t.useLocalState)(v,"sortId","owner_name"),x=A[0],E=A[1],P=(0,t.useLocalState)(v,"sortOrder",!0),D=P[0],M=P[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,l,{id:"owner_name",children:"Account Holder"}),(0,e.createComponentVNode)(2,l,{id:"account_number",children:"Account Number"}),(0,e.createComponentVNode)(2,l,{id:"suspended",children:"Account Status"}),(0,e.createComponentVNode)(2,l,{id:"money",children:"Account Balance"})]}),B.filter((0,a.createSearch)(L,function(O){return O.owner_name+"|"+O.account_number+"|"+O.suspended+"|"+O.money})).sort(function(O,R){var j=D?1:-1;return O[x].localeCompare(R[x])*j}).map(function(O){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+O.suspended,onClick:function(){function R(){return N("view_account_detail",{account_num:O.account_number})}return R}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",O.owner_name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",O.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.money})]},O.account_number)})]})})})]})},m=function(g,v){var f=(0,t.useBackend)(v),N=f.act,V=f.data,B=V.department_accounts;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,p.TableCell,{children:"Department Name"}),(0,e.createComponentVNode)(2,p.TableCell,{children:"Account Number"}),(0,e.createComponentVNode)(2,p.TableCell,{children:"Account Status"}),(0,e.createComponentVNode)(2,p.TableCell,{children:"Account Balance"})]}),B.map(function(S){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+S.suspended,onClick:function(){function L(){return N("view_account_detail",{account_num:S.account_number})}return L}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"wallet"})," ",S.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",S.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:S.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:S.money})]},S.account_number)})]})})})})},l=function(g,v){var f=(0,t.useLocalState)(v,"sortId","name"),N=f[0],V=f[1],B=(0,t.useLocalState)(v,"sortOrder",!0),S=B[0],L=B[1],w=g.id,A=g.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:N!==w&&"transparent",width:"100%",onClick:function(){function x(){N===w?L(!S):(V(w),L(!0))}return x}(),children:[A,N===w&&(0,e.createComponentVNode)(2,o.Icon,{name:S?"sort-up":"sort-down",ml:"0.25rem;"})]})})},d=function(g,v){var f=(0,t.useBackend)(v),N=f.act,V=f.data,B=V.is_printing,S=(0,t.useLocalState)(v,"searchText",""),L=S[0],w=S[1];return(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"New Account",icon:"plus",onClick:function(){function A(){return N("create_new_account")}return A}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account holder, number, status",width:"100%",onInput:function(){function A(x,E){return w(E)}return A}()})})]})},s=function(g,v){var f=(0,t.useBackend)(v),N=f.act,V=f.data,B=V.account_number,S=V.owner_name,L=V.money,w=V.suspended,A=V.transactions,x=V.account_pin,E=V.is_department_account;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"#"+B+" / "+S,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function P(){return N("back")}return P}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Number",children:["#",B]}),!!E&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Pin",children:x}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Pin Actions",children:(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"user-cog",content:"Set New Pin",disabled:!!E,onClick:function(){function P(){return N("set_account_pin",{account_number:B})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:S}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:L}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Status",color:w?"red":"green",children:[w?"Suspended":"Active",(0,e.createComponentVNode)(2,o.Button,{ml:1,content:w?"Unsuspend":"Suspend",icon:w?"unlock":"lock",onClick:function(){function P(){return N("toggle_suspension")}return P}()})]})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Transactions",children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Terminal"})]}),A.map(function(P){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.time}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.purpose}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:P.is_deposit?"green":"red",children:["$",P.amount]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.target_name})]},P)})]})})})]})},u=function(g,v){var f=(0,t.useBackend)(v),N=f.act,V=f.data,B=(0,t.useLocalState)(v,"accName",""),S=B[0],L=B[1],w=(0,t.useLocalState)(v,"accDeposit",""),A=w[0],x=w[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Create Account",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function E(){return N("back")}return E}()}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Name Here",onChange:function(){function E(P,D){return L(D)}return E}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Initial Deposit",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"0",onChange:function(){function E(P,D){return x(D)}return E}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,content:"Create Account",onClick:function(){function E(){return N("finalise_create_account",{holder_name:S,starting_funds:A})}return E}()})]})}},39683:function(T,r,n){"use strict";r.__esModule=!0,r.AgentCardInfo=r.AgentCardAppearances=r.AgentCard=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=[{name:"Male",icon:"mars"},{name:"Female",icon:"venus"},{name:"Genderless",icon:"genderless"}],b=["A+","A-","B+","B-","AB+","AB-","O+","O-"],y="Empty",I=function(m){var l=m.label,d=m.value,s=m.onCommit,u=m.onClick,h=m.onRClick,g=m.tooltip;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,mb:-.5,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Input,{fluid:!0,textAlign:"center",content:d||y,onCommit:s})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"file-signature",tooltip:g,tooltipPosition:"bottom-end",onClick:u,onContextMenu:h})})]})})},k=r.AgentCard=function(){function c(m,l){var d=(0,a.useLocalState)(l,"tabIndex",0),s=d[0],u=d[1],h=function(){function g(v){switch(v){case 0:return(0,e.createComponentVNode)(2,C);case 1:return(0,e.createComponentVNode)(2,i);default:return(0,e.createComponentVNode)(2,C)}}return g}();return(0,e.createComponentVNode)(2,o.Window,{width:435,height:500,theme:"syndicate",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:s===0,onClick:function(){function g(){return u(0)}return g}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Card Info"]},"Card Info"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:s===1,onClick:function(){function g(){return u(1)}return g}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"id-card"})," Appearance"]},"Appearance")]})}),h(s)]})})})}return c}(),C=r.AgentCardInfo=function(){function c(m,l){var d=(0,a.useBackend)(l),s=d.act,u=d.data,h=u.registered_name,g=u.sex,v=u.age,f=u.assignment,N=u.job_assets,V=u.job_icon,B=u.associated_account_number,S=u.blood_type,L=u.dna_hash,w=u.fingerprint_hash,A=u.photo,x=u.ai_tracking,E=u.photo_cooldown,P=(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("Autofill options."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("LMB - Autofill your own data."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("RMB - Autofill someone else data.")],4),D=(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("Autofill options."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("LMB - Autofill your own data."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("RMB - Autofill with random data.")],4);return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Card Info",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,I,{label:"Name",value:h,tooltip:P,onCommit:function(){function M(O,R){return s("change_name",{name:R})}return M}(),onClick:function(){function M(){return s("change_name",{option:"Primary"})}return M}(),onRClick:function(){function M(O){O.preventDefault(),s("change_name",{option:"Secondary"})}return M}()}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sex",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,mb:-.5,children:p.map(function(M){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:M.icon,content:M.name,selected:g===M.name,onClick:function(){function O(){return s("change_sex",{sex:M.name})}return O}()})},M.name)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Age",children:(0,e.createComponentVNode)(2,t.Slider,{fluid:!0,minValue:17,value:v||0,maxValue:300,onChange:function(){function M(O,R){return s("change_age",{age:R})}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rank",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,mb:-.5,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function M(){return s("change_occupation")}return M}(),textAlign:"middle",children:f||"[UNSET]"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{tooltip:"Change HUD icon",tooltipPosition:"bottom-end",onClick:function(){function M(){return s("change_occupation",{option:"Primary"})}return M}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{fill:!0,icon:N,icon_state:V,verticalAlign:"bottom",my:"2px",width:"16px"})," "]})})]})}),(0,e.createComponentVNode)(2,I,{label:"Fingerprint",value:w,onCommit:function(){function M(O,R){return s("change_fingerprints",{new_fingerprints:R})}return M}(),onClick:function(){function M(){return s("change_fingerprints",{option:"Primary"})}return M}(),onRClick:function(){function M(O){O.preventDefault(),s("change_fingerprints",{option:"Secondary"})}return M}(),tooltip:D}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood Type",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,mb:-.5,children:b.map(function(M){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:M,selected:S===M,onClick:function(){function O(){return s("change_blood_type",{new_type:M})}return O}()})},M)})})}),(0,e.createComponentVNode)(2,I,{label:"DNA",value:L,onCommit:function(){function M(O,R){return s("change_dna_hash",{new_dna:R})}return M}(),onClick:function(){function M(){return s("change_dna_hash",{option:"Primary"})}return M}(),onRClick:function(){function M(O){O.preventDefault(),s("change_dna_hash",{option:"Secondary"})}return M}(),tooltip:D}),(0,e.createComponentVNode)(2,I,{label:"Account",value:B||0,onCommit:function(){function M(O,R){return s("change_money_account",{new_account:R})}return M}(),onClick:function(){function M(){return s("change_money_account",{option:"Primary"})}return M}(),onRClick:function(){function M(O){O.preventDefault(),s("change_money_account",{option:"Secondary"})}return M}(),tooltip:D}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Photo",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!E,tooltip:E?"":"You can't generate a new photo yet.",onClick:function(){function M(){return s("change_photo")}return M}(),children:A?"Update":y})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Card Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Card Info",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{fluid:!0,textAlign:"center",content:"Delete Card Info",confirmContent:"Are you sure?",onClick:function(){function M(){return s("delete_info")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Access",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{fluid:!0,textAlign:"center",content:"Reset Access",confirmContent:"Are you sure?",onClick:function(){function M(){return s("clear_access")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"AI Tracking",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",onClick:function(){function M(){return s("change_ai_tracking")}return M}(),children:x?"Untrackable":"Trackable"})})]})})})],4)}return c}(),i=r.AgentCardAppearances=function(){function c(m,l){var d=(0,a.useBackend)(l),s=d.act,u=d.data,h=(0,a.useSharedState)(l,"selectedAppearance",null),g=h[0],v=h[1],f=u.appearances,N=u.id_icon;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Card Appearance",children:f.map(function(V){return(0,e.createComponentVNode)(2,t.ImageButton,{dmIcon:N,dmIconState:V,imageSize:64,compact:!0,selected:V===g,tooltip:V,style:{opacity:V===g&&"1"||"0.5"},onClick:function(){function B(){v(V),s("change_appearance",{new_appearance:V})}return B}()},V)})})})}return c}()},56793:function(T,r,n){"use strict";r.__esModule=!0,r.AiAirlock=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},b=r.AiAirlock=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=p[c.power.main]||p[0],l=p[c.power.backup]||p[0],d=p[c.shock]||p[0];return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main",color:m.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.main,content:"Disrupt",onClick:function(){function s(){return i("disrupt-main")}return s}()}),children:[c.power.main?"Online":"Offline"," ",!c.wires.main_power&&"[Wires have been cut!]"||c.power.main_timeleft>0&&"["+c.power.main_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Backup",color:l.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.backup,content:"Disrupt",onClick:function(){function s(){return i("disrupt-backup")}return s}()}),children:[c.power.backup?"Online":"Offline"," ",!c.wires.backup_power&&"[Wires have been cut!]"||c.power.backup_timeleft>0&&"["+c.power.backup_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Electrify",color:d.color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"wrench",disabled:!(c.wires.shock&&c.shock!==2),content:"Restore",onClick:function(){function s(){return i("shock-restore")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"bolt",disabled:!c.wires.shock,content:"Temporary",onClick:function(){function s(){return i("shock-temp")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",disabled:!c.wires.shock||c.shock===0,content:"Permanent",onClick:function(){function s(){return i("shock-perm")}return s}()})],4),children:[c.shock===2?"Safe":"Electrified"," ",!c.wires.shock&&"[Wires have been cut!]"||c.shock_timeleft>0&&"["+c.shock_timeleft+"s]"||c.shock_timeleft===-1&&"[Permanent]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Access and Door Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Scan",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.id_scanner?"power-off":"times",content:c.id_scanner?"Enabled":"Disabled",selected:c.id_scanner,disabled:!c.wires.id_scanner,onClick:function(){function s(){return i("idscan-toggle")}return s}()}),children:!c.wires.id_scanner&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Access",buttons:(0,e.createComponentVNode)(2,t.Button,{width:6.5,icon:c.emergency?"power-off":"times",content:c.emergency?"Enabled":"Disabled",selected:c.emergency,onClick:function(){function s(){return i("emergency-toggle")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:c.locked?"lock":"unlock",content:c.locked?"Lowered":"Raised",selected:c.locked,disabled:!c.wires.bolts,onClick:function(){function s(){return i("bolt-toggle")}return s}()}),children:!c.wires.bolts&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.lights?"power-off":"times",content:c.lights?"Enabled":"Disabled",selected:c.lights,disabled:!c.wires.lights,onClick:function(){function s(){return i("light-toggle")}return s}()}),children:!c.wires.lights&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.safe?"power-off":"times",content:c.safe?"Enabled":"Disabled",selected:c.safe,disabled:!c.wires.safe,onClick:function(){function s(){return i("safe-toggle")}return s}()}),children:!c.wires.safe&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.speed?"power-off":"times",content:c.speed?"Enabled":"Disabled",selected:c.speed,disabled:!c.wires.timing,onClick:function(){function s(){return i("speed-toggle")}return s}()}),children:!c.wires.timing&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Control",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:c.opened?"sign-out-alt":"sign-in-alt",content:c.opened?"Open":"Closed",selected:c.opened,disabled:c.locked||c.welded,onClick:function(){function s(){return i("open-close")}return s}()}),children:!!(c.locked||c.welded)&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("[Door is "),c.locked?"bolted":"",c.locked&&c.welded?" and ":"",c.welded?"welded":"",(0,e.createTextVNode)("!]")],0)})]})})]})})}return y}()},72475:function(T,r,n){"use strict";r.__esModule=!0,r.AirAlarm=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(195),b=r.AirAlarm=function(){function d(s,u){var h=(0,a.useBackend)(u),g=h.act,v=h.data,f=v.locked;return(0,e.createComponentVNode)(2,o.Window,{width:570,height:f?310:755,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,p.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,I),!f&&(0,e.createFragment)([(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,C)],4)]})})}return d}(),y=function(s){return s===0?"green":s===1?"orange":"red"},I=function(s,u){var h=(0,a.useBackend)(u),g=h.act,v=h.data,f=v.air,N=v.mode,V=v.atmos_alarm,B=v.locked,S=v.alarmActivated,L=v.rcon,w=v.target_temp,A;return f.danger.overall===0?V===0?A="Optimal":A="Caution: Atmos alert in area":f.danger.overall===1?A="Caution":A="DANGER: Internals Required",(0,e.createComponentVNode)(2,t.Section,{title:"Air Status",children:f?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:y(f.danger.pressure),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:f.pressure})," kPa",!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:N===3?"Deactivate Panic Siphon":"Activate Panic Siphon",selected:N===3,icon:"exclamation-triangle",onClick:function(){function x(){return g("mode",{mode:N===3?1:3})}return x}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:f.contents.oxygen/100,fractionDigits:"1",color:y(f.danger.oxygen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:f.contents.nitrogen/100,fractionDigits:"1",color:y(f.danger.nitrogen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:f.contents.co2/100,fractionDigits:"1",color:y(f.danger.co2)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxins",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:f.contents.plasma/100,fractionDigits:"1",color:y(f.danger.plasma)})}),f.contents.n2o>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:f.contents.n2o/100,fractionDigits:"1",color:y(f.danger.n2o)})}),f.contents.other>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:f.contents.other/100,fractionDigits:"1",color:y(f.danger.other)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:y(f.danger.temperature),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:f.temperature})," K / ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:f.temperature_c})," C\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"thermometer-full",content:w+" C",onClick:function(){function x(){return g("temperature")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:f.thermostat_state?"On":"Off",selected:f.thermostat_state,icon:"power-off",onClick:function(){function x(){return g("thermostat_state")}return x}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Local Status",children:(0,e.createComponentVNode)(2,t.Box,{color:y(f.danger.overall),children:[A,!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:S?"Reset Alarm":"Activate Alarm",selected:S,onClick:function(){function x(){return g(S?"atmos_reset":"atmos_alarm")}return x}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Control Settings",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Off",selected:L===1,onClick:function(){function x(){return g("set_rcon",{rcon:1})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Auto",selected:L===2,onClick:function(){function x(){return g("set_rcon",{rcon:2})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"On",selected:L===3,onClick:function(){function x(){return g("set_rcon",{rcon:3})}return x}()})]})]}):(0,e.createComponentVNode)(2,t.Box,{children:"Unable to acquire air sample!"})})},k=function(s,u){var h=(0,a.useLocalState)(u,"tabIndex",0),g=h[0],v=h[1];return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===0,onClick:function(){function f(){return v(0)}return f}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-out-alt"})," Vent Control"]},"Vents"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===1,onClick:function(){function f(){return v(1)}return f}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-in-alt"})," Scrubber Control"]},"Scrubbers"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===2,onClick:function(){function f(){return v(2)}return f}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog"})," Mode"]},"Mode"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===3,onClick:function(){function f(){return v(3)}return f}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},C=function(s,u){var h=(0,a.useLocalState)(u,"tabIndex",0),g=h[0],v=h[1];switch(g){case 0:return(0,e.createComponentVNode)(2,i);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,m);case 3:return(0,e.createComponentVNode)(2,l);default:return"WE SHOULDN'T BE HERE!"}},i=function(s,u){var h=(0,a.useBackend)(u),g=h.act,v=h.data,f=v.vents;return f.map(function(N){return(0,e.createComponentVNode)(2,t.Section,{title:N.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:N.power?"On":"Off",selected:N.power,icon:"power-off",onClick:function(){function V(){return g("command",{cmd:"power",val:!N.power,id_tag:N.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:N.direction?"Blowing":"Siphoning",icon:N.direction?"sign-out-alt":"sign-in-alt",onClick:function(){function V(){return g("command",{cmd:"direction",val:!N.direction,id_tag:N.id_tag})}return V}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Checks",children:[(0,e.createComponentVNode)(2,t.Button,{content:"External",selected:N.checks===1,onClick:function(){function V(){return g("command",{cmd:"checks",val:1,id_tag:N.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Internal",selected:N.checks===2,onClick:function(){function V(){return g("command",{cmd:"checks",val:2,id_tag:N.id_tag})}return V}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Pressure Target",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:N.external})," kPa\xA0",(0,e.createComponentVNode)(2,t.Button,{content:"Set",icon:"cog",onClick:function(){function V(){return g("command",{cmd:"set_external_pressure",id_tag:N.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset",icon:"redo-alt",onClick:function(){function V(){return g("command",{cmd:"set_external_pressure",val:101.325,id_tag:N.id_tag})}return V}()})]})]})},N.name)})},c=function(s,u){var h=(0,a.useBackend)(u),g=h.act,v=h.data,f=v.scrubbers;return f.map(function(N){return(0,e.createComponentVNode)(2,t.Section,{title:N.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:N.power?"On":"Off",selected:N.power,icon:"power-off",onClick:function(){function V(){return g("command",{cmd:"power",val:!N.power,id_tag:N.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:N.scrubbing?"Scrubbing":"Siphoning",icon:N.scrubbing?"filter":"sign-in-alt",onClick:function(){function V(){return g("command",{cmd:"scrubbing",val:!N.scrubbing,id_tag:N.id_tag})}return V}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,t.Button,{content:N.widenet?"Extended":"Normal",selected:N.widenet,icon:"expand-arrows-alt",onClick:function(){function V(){return g("command",{cmd:"widenet",val:!N.widenet,id_tag:N.id_tag})}return V}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filtering",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Carbon Dioxide",selected:N.filter_co2,onClick:function(){function V(){return g("command",{cmd:"co2_scrub",val:!N.filter_co2,id_tag:N.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Plasma",selected:N.filter_toxins,onClick:function(){function V(){return g("command",{cmd:"tox_scrub",val:!N.filter_toxins,id_tag:N.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrous Oxide",selected:N.filter_n2o,onClick:function(){function V(){return g("command",{cmd:"n2o_scrub",val:!N.filter_n2o,id_tag:N.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Oxygen",selected:N.filter_o2,onClick:function(){function V(){return g("command",{cmd:"o2_scrub",val:!N.filter_o2,id_tag:N.id_tag})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrogen",selected:N.filter_n2,onClick:function(){function V(){return g("command",{cmd:"n2_scrub",val:!N.filter_n2,id_tag:N.id_tag})}return V}()})]})]})},N.name)})},m=function(s,u){var h=(0,a.useBackend)(u),g=h.act,v=h.data,f=v.modes,N=v.presets,V=v.emagged,B=v.mode,S=v.preset;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"System Mode",children:(0,e.createComponentVNode)(2,t.Table,{children:f.map(function(L){return(!L.emagonly||L.emagonly&&!!V)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:L.name,icon:"cog",selected:L.id===B,onClick:function(){function w(){return g("mode",{mode:L.id})}return w}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.desc})]},L.name)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"System Presets",children:[(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"After making a selection, the system will automatically cycle in order to remove contaminants."}),(0,e.createComponentVNode)(2,t.Table,{mt:1,children:N.map(function(L){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:L.name,icon:"cog",selected:L.id===S,onClick:function(){function w(){return g("preset",{preset:L.id})}return w}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.desc})]},L.name)})})]})],4)},l=function(s,u){var h=(0,a.useBackend)(u),g=h.act,v=h.data,f=v.thresholds;return(0,e.createComponentVNode)(2,t.Section,{title:"Alarm Thresholds",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Max"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Max"})]}),f.map(function(N){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:N.name}),N.settings.map(function(V){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:V.selected===-1?"Off":V.selected,onClick:function(){function B(){return g("command",{cmd:"set_threshold",env:V.env,var:V.val})}return B}()})},V.val)})]},N.name)})]})})}},12333:function(T,r,n){"use strict";r.__esModule=!0,r.AirlockAccessController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AirlockAccessController=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.exterior_status,m=i.interior_status,l=i.processing,d,s;return c==="open"?d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:l,onClick:function(){function u(){return C("force_ext")}return u}()}):d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:l,onClick:function(){function u(){return C("cycle_ext_door")}return u}()}),m==="open"?s=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Lock Interior Door",icon:"exclamation-triangle",disabled:l,color:m==="open"?"red":l?"yellow":null,onClick:function(){function u(){return C("force_int")}return u}()}):s=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:l,onClick:function(){function u(){return C("cycle_int_door")}return u}()}),(0,e.createComponentVNode)(2,o.Window,{width:330,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Door Status",children:c==="closed"?"Locked":"Open"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Door Status",children:m==="closed"?"Locked":"Open"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.Box,{children:[d,s]})})]})})}return b}()},28736:function(T,r,n){"use strict";r.__esModule=!0,r.AirlockElectronics=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(49148),b=1,y=2,I=4,k=8,C=r.AirlockElectronics=function(){function m(l,d){return(0,e.createComponentVNode)(2,o.Window,{width:450,height:565,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})})})}return m}(),i=function(l,d){var s=(0,a.useBackend)(d),u=s.act,h=s.data,g=h.unrestricted_dir;return(0,e.createComponentVNode)(2,t.Section,{title:"Access Control",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,mb:1,children:"Unrestricted Access From:"}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-left",content:"East",selected:g&I,onClick:function(){function v(){return u("unrestricted_access",{unres_dir:I})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-up",content:"South",selected:g&y,onClick:function(){function v(){return u("unrestricted_access",{unres_dir:y})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-right",content:"West",selected:g&k,onClick:function(){function v(){return u("unrestricted_access",{unres_dir:k})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-down",content:"North",selected:g&b,onClick:function(){function v(){return u("unrestricted_access",{unres_dir:b})}return v}()})})]})]})})},c=function(l,d){var s=(0,a.useBackend)(d),u=s.act,h=s.data,g=h.selected_accesses,v=h.one_access,f=h.regions;return(0,e.createComponentVNode)(2,p.AccessList,{usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:v,content:"One",onClick:function(){function N(){return u("set_one_access",{access:"one"})}return N}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!v,content:"All",onClick:function(){function N(){return u("set_one_access",{access:"all"})}return N}()})],4),accesses:f,selectedList:g,accessMod:function(){function N(V){return u("set",{access:V})}return N}(),grantAll:function(){function N(){return u("grant_all")}return N}(),denyAll:function(){function N(){return u("clear_all")}return N}(),grantDep:function(){function N(V){return u("grant_region",{region:V})}return N}(),denyDep:function(){function N(V){return u("deny_region",{region:V})}return N}()})}},47365:function(T,r,n){"use strict";r.__esModule=!0,r.AlertModal=void 0;var e=n(89005),a=n(51057),t=n(72253),o=n(92986),p=n(36036),b=n(98595),y=-1,I=1,k=r.AlertModal=function(){function c(m,l){var d=(0,t.useBackend)(l),s=d.act,u=d.data,h=u.autofocus,g=u.buttons,v=g===void 0?[]:g,f=u.large_buttons,N=u.message,V=N===void 0?"":N,B=u.timeout,S=u.title,L=(0,t.useLocalState)(l,"selected",0),w=L[0],A=L[1],x=110+(V.length>30?Math.ceil(V.length/4):0)+(V.length&&f?5:0),E=325+(v.length>2?100:0),P=function(){function D(M){w===0&&M===y?A(v.length-1):w===v.length-1&&M===I?A(0):A(w+M)}return D}();return(0,e.createComponentVNode)(2,b.Window,{title:S,height:x,width:E,children:[!!B&&(0,e.createComponentVNode)(2,a.Loader,{value:B}),(0,e.createComponentVNode)(2,b.Window.Content,{onKeyDown:function(){function D(M){var O=window.event?M.which:M.keyCode;O===o.KEY_SPACE||O===o.KEY_ENTER?s("choose",{choice:v[w]}):O===o.KEY_ESCAPE?s("cancel"):O===o.KEY_LEFT?(M.preventDefault(),P(y)):(O===o.KEY_TAB||O===o.KEY_RIGHT)&&(M.preventDefault(),P(I))}return D}(),children:(0,e.createComponentVNode)(2,p.Section,{fill:!0,children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,m:1,children:(0,e.createComponentVNode)(2,p.Box,{color:"label",overflow:"hidden",children:V})}),(0,e.createComponentVNode)(2,p.Stack.Item,{children:[!!h&&(0,e.createComponentVNode)(2,p.Autofocus),(0,e.createComponentVNode)(2,C,{selected:w})]})]})})})]})}return c}(),C=function(m,l){var d=(0,t.useBackend)(l),s=d.data,u=s.buttons,h=u===void 0?[]:u,g=s.large_buttons,v=s.swapped_buttons,f=m.selected;return(0,e.createComponentVNode)(2,p.Flex,{fill:!0,align:"center",direction:v?"row":"row-reverse",justify:"space-around",wrap:!0,children:h==null?void 0:h.map(function(N,V){return g&&h.length<3?(0,e.createComponentVNode)(2,p.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i,{button:N,id:V.toString(),selected:f===V})},V):(0,e.createComponentVNode)(2,p.Flex.Item,{grow:g?1:0,children:(0,e.createComponentVNode)(2,i,{button:N,id:V.toString(),selected:f===V})},V)})})},i=function(m,l){var d=(0,t.useBackend)(l),s=d.act,u=d.data,h=u.large_buttons,g=m.button,v=m.selected,f=g.length>7?"100%":7;return(0,e.createComponentVNode)(2,p.Button,{mx:h?1:0,pt:h?.33:0,content:g,fluid:!!h,onClick:function(){function N(){return s("choose",{choice:g})}return N}(),selected:v,textAlign:"center",height:!!h&&2,width:!h&&f})}},71824:function(T,r,n){"use strict";r.__esModule=!0,r.AppearanceChanger=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AppearanceChanger=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=c.change_race,l=c.species,d=c.specimen,s=c.change_gender,u=c.gender,h=c.change_eye_color,g=c.change_skin_tone,v=c.change_skin_color,f=c.change_runechat_color,N=c.change_head_accessory_color,V=c.change_hair_color,B=c.change_secondary_hair_color,S=c.change_facial_hair_color,L=c.change_secondary_facial_hair_color,w=c.change_head_marking_color,A=c.change_body_marking_color,x=c.change_tail_marking_color,E=c.change_head_accessory,P=c.head_accessory_styles,D=c.head_accessory_style,M=c.change_hair,O=c.hair_styles,R=c.hair_style,j=c.change_hair_gradient,_=c.change_facial_hair,W=c.facial_hair_styles,z=c.facial_hair_style,K=c.change_head_markings,G=c.head_marking_styles,Q=c.head_marking_style,J=c.change_body_markings,ue=c.body_marking_styles,ie=c.body_marking_style,pe=c.change_tail_markings,te=c.tail_marking_styles,q=c.tail_marking_style,ne=c.change_body_accessory,le=c.body_accessory_styles,ee=c.body_accessory_style,re=c.change_alt_head,oe=c.alt_head_styles,fe=c.alt_head_style,me=!1;return(h||g||v||N||f||V||B||S||L||w||A||x)&&(me=!0),(0,e.createComponentVNode)(2,o.Window,{width:800,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:l.map(function(Y){return(0,e.createComponentVNode)(2,t.Button,{content:Y.specimen,selected:Y.specimen===d,onClick:function(){function ve(){return i("race",{race:Y.specimen})}return ve}()},Y.specimen)})}),!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Male",selected:u==="male",onClick:function(){function Y(){return i("gender",{gender:"male"})}return Y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Female",selected:u==="female",onClick:function(){function Y(){return i("gender",{gender:"female"})}return Y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Genderless",selected:u==="plural",onClick:function(){function Y(){return i("gender",{gender:"plural"})}return Y}()})]}),!!me&&(0,e.createComponentVNode)(2,b),!!E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head accessory",children:P.map(function(Y){return(0,e.createComponentVNode)(2,t.Button,{content:Y.headaccessorystyle,selected:Y.headaccessorystyle===D,onClick:function(){function ve(){return i("head_accessory",{head_accessory:Y.headaccessorystyle})}return ve}()},Y.headaccessorystyle)})}),!!M&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair",children:O.map(function(Y){return(0,e.createComponentVNode)(2,t.Button,{content:Y.hairstyle,selected:Y.hairstyle===R,onClick:function(){function ve(){return i("hair",{hair:Y.hairstyle})}return ve}()},Y.hairstyle)})}),!!j&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair Gradient",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Change Style",onClick:function(){function Y(){return i("hair_gradient")}return Y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Offset",onClick:function(){function Y(){return i("hair_gradient_offset")}return Y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Color",onClick:function(){function Y(){return i("hair_gradient_colour")}return Y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Alpha",onClick:function(){function Y(){return i("hair_gradient_alpha")}return Y}()})]}),!!_&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Facial hair",children:W.map(function(Y){return(0,e.createComponentVNode)(2,t.Button,{content:Y.facialhairstyle,selected:Y.facialhairstyle===z,onClick:function(){function ve(){return i("facial_hair",{facial_hair:Y.facialhairstyle})}return ve}()},Y.facialhairstyle)})}),!!K&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head markings",children:G.map(function(Y){return(0,e.createComponentVNode)(2,t.Button,{content:Y.headmarkingstyle,selected:Y.headmarkingstyle===Q,onClick:function(){function ve(){return i("head_marking",{head_marking:Y.headmarkingstyle})}return ve}()},Y.headmarkingstyle)})}),!!J&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body markings",children:ue.map(function(Y){return(0,e.createComponentVNode)(2,t.Button,{content:Y.bodymarkingstyle,selected:Y.bodymarkingstyle===ie,onClick:function(){function ve(){return i("body_marking",{body_marking:Y.bodymarkingstyle})}return ve}()},Y.bodymarkingstyle)})}),!!pe&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tail markings",children:te.map(function(Y){return(0,e.createComponentVNode)(2,t.Button,{content:Y.tailmarkingstyle,selected:Y.tailmarkingstyle===q,onClick:function(){function ve(){return i("tail_marking",{tail_marking:Y.tailmarkingstyle})}return ve}()},Y.tailmarkingstyle)})}),!!ne&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body accessory",children:le.map(function(Y){return(0,e.createComponentVNode)(2,t.Button,{content:Y.bodyaccessorystyle,selected:Y.bodyaccessorystyle===ee,onClick:function(){function ve(){return i("body_accessory",{body_accessory:Y.bodyaccessorystyle})}return ve}()},Y.bodyaccessorystyle)})}),!!re&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alternate head",children:oe.map(function(Y){return(0,e.createComponentVNode)(2,t.Button,{content:Y.altheadstyle,selected:Y.altheadstyle===fe,onClick:function(){function ve(){return i("alt_head",{alt_head:Y.altheadstyle})}return ve}()},Y.altheadstyle)})})]})})})}return y}(),b=function(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=[{key:"change_eye_color",text:"Change eye color",action:"eye_color"},{key:"change_skin_tone",text:"Change skin tone",action:"skin_tone"},{key:"change_skin_color",text:"Change skin color",action:"skin_color"},{key:"change_runechat_color",text:"Change runechat color",action:"runechat_color"},{key:"change_head_accessory_color",text:"Change head accessory color",action:"head_accessory_color"},{key:"change_hair_color",text:"Change hair color",action:"hair_color"},{key:"change_secondary_hair_color",text:"Change secondary hair color",action:"secondary_hair_color"},{key:"change_facial_hair_color",text:"Change facial hair color",action:"facial_hair_color"},{key:"change_secondary_facial_hair_color",text:"Change secondary facial hair color",action:"secondary_facial_hair_color"},{key:"change_head_marking_color",text:"Change head marking color",action:"head_marking_color"},{key:"change_body_marking_color",text:"Change body marking color",action:"body_marking_color"},{key:"change_tail_marking_color",text:"Change tail marking color",action:"tail_marking_color"}];return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Colors",children:m.map(function(l){return!!c[l.key]&&(0,e.createComponentVNode)(2,t.Button,{content:l.text,onClick:function(){function d(){return i(l.action)}return d}()},l.key)})})}},72285:function(T,r,n){"use strict";r.__esModule=!0,r.AtmosAlertConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AtmosAlertConsole=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.priority||[],m=i.minor||[];return(0,e.createComponentVNode)(2,o.Window,{width:350,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Alarms",children:(0,e.createVNode)(1,"ul",null,[c.length===0&&(0,e.createVNode)(1,"li","color-good","No Priority Alerts",16),c.map(function(l){return(0,e.createVNode)(1,"li","color-bad",l,0,null,l)}),m.length===0&&(0,e.createVNode)(1,"li","color-good","No Minor Alerts",16),m.map(function(l){return(0,e.createVNode)(1,"li","color-average",l,0,null,l)})],0)})})})}return b}()},65805:function(T,r,n){"use strict";r.__esModule=!0,r.AtmosControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(36352),p=n(98595),b=function(c){if(c===0)return(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Good"});if(c===1)return(0,e.createComponentVNode)(2,t.Box,{color:"orange",bold:!0,children:"Warning"});if(c===2)return(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"DANGER"})},y=function(c){if(c===0)return"green";if(c===1)return"orange";if(c===2)return"red"},I=r.AtmosControl=function(){function i(c,m){var l=(0,a.useBackend)(m),d=l.act,s=l.data,u=(0,a.useLocalState)(m,"tabIndex",0),h=u[0],g=u[1],v=function(){function f(N){switch(N){case 0:return(0,e.createComponentVNode)(2,k);case 1:return(0,e.createComponentVNode)(2,C);default:return"WE SHOULDN'T BE HERE!"}}return f}();return(0,e.createComponentVNode)(2,p.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:h===0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===0,onClick:function(){function f(){return g(0)}return f}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===1,onClick:function(){function f(){return g(1)}return f}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),v(h)]})})})}return i}(),k=function(c,m){var l=(0,a.useBackend)(m),d=l.act,s=l.data,u=s.alarms;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Access"})]}),u.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,o.TableCell,{children:h.name}),(0,e.createComponentVNode)(2,o.TableCell,{children:b(h.danger)}),(0,e.createComponentVNode)(2,o.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Access",onClick:function(){function g(){return d("open_alarm",{aref:h.ref})}return g}()})})]},h.name)})]})})},C=function(c,m){var l=(0,a.useBackend)(m),d=l.act,s=l.data,u=s.alarms;return(0,e.createComponentVNode)(2,t.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,t.NanoMap,{children:u.filter(function(h){return h.z===3}).map(function(h){return(0,e.createComponentVNode)(2,t.NanoMap.MarkerIcon,{x:h.x,y:h.y,icon:"circle",tooltip:h.name,color:y(h.danger),onClick:function(){function g(){return d("open_alarm",{aref:h.ref})}return g}()},h.ref)})})})}},87816:function(T,r,n){"use strict";r.__esModule=!0,r.AtmosFilter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AtmosFilter=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.on,m=i.pressure,l=i.max_pressure,d=i.filter_type,s=i.filter_type_list;return(0,e.createComponentVNode)(2,o.Window,{width:380,height:140,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){function u(){return C("power")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:m===0,width:2.2,onClick:function(){function u(){return C("min_pressure")}return u}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:l,value:m,onDrag:function(){function u(h,g){return C("custom_pressure",{pressure:g})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===l,width:2.2,onClick:function(){function u(){return C("max_pressure")}return u}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:s.map(function(u){return(0,e.createComponentVNode)(2,t.Button,{selected:u.gas_type===d,content:u.label,onClick:function(){function h(){return C("set_filter",{filter:u.gas_type})}return h}()},u.label)})})]})})})})}return b}()},57258:function(T,r,n){"use strict";r.__esModule=!0,r.AtmosGraphMonitor=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(44879),b=n(88510),y=n(35840),I=["data","rangeX","rangeY","fillColor","strokeColor","strokeWidth","horizontalLinesCount","verticalLinesCount","gridColor","gridWidth","pointTextColor","pointTextSize","labelViewBoxSize"];function k(u,h){if(u==null)return{};var g={};for(var v in u)if({}.hasOwnProperty.call(u,v)){if(h.includes(v))continue;g[v]=u[v]}return g}function C(u,h){u.prototype=Object.create(h.prototype),u.prototype.constructor=u,i(u,h)}function i(u,h){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(g,v){return g.__proto__=v,g},i(u,h)}var c=r.AtmosGraphMonitor=function(){function u(h,g){var v=(0,a.useBackend)(g),f=v.data,N=(0,a.useLocalState)(g,"tabIndex",0),V=N[0],B=N[1],S=function(){function w(A){switch(A){case 0:return(0,e.createComponentVNode)(2,m,{data:f,info:"\u0418\u043D\u0442\u0435\u0440\u0432\u0430\u043B \u0437\u0430\u043F\u0438\u0441\u0438 T = 60 \u0441. | \u0418\u043D\u0442\u0435\u0440\u0432\u0430\u043B \u043C\u0435\u0436\u0434\u0443 \u0437\u0430\u043F\u0438\u0441\u044F\u043C\u0438 t = 3 \u0441.",pressureListName:"pressure_history",temperatureListName:"temperature_history"});case 1:return(0,e.createComponentVNode)(2,m,{data:f,info:"\u0418\u043D\u0442\u0435\u0440\u0432\u0430\u043B \u0437\u0430\u043F\u0438\u0441\u0438 T = 10 \u043C\u0438\u043D. | \u0418\u043D\u0442\u0435\u0440\u0432\u0430\u043B \u043C\u0435\u0436\u0434\u0443 \u0437\u0430\u043F\u0438\u0441\u044F\u043C\u0438 t = 30 \u0441.",pressureListName:"long_pressure_history",temperatureListName:"long_temperature_history"});default:return"WE SHOULDN'T BE HERE!"}}return w}(),L=function(){function w(A){switch(A){case 0:return 180;case 1:return 350;case 2:return 590;case 3:return 830;default:return 870}}return w}();return(0,e.createComponentVNode)(2,o.Window,{width:700,height:L(Object.keys(f.sensors).length),children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:V===0,onClick:function(){function w(){return B(0)}return w}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"area-chart"})," \u0422\u0435\u043A\u0443\u0449\u0438\u0435"]},"View"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:V===1,onClick:function(){function w(){return B(1)}return w}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"bar-chart"})," \u0418\u0441\u0442\u043E\u0440\u0438\u044F"]},"History")]}),S(V),Object.keys(f.sensors).length===0&&(0,e.createComponentVNode)(2,t.Box,{pt:2,textAlign:"center",textColor:"gray",bold:!0,fontSize:1.3,children:"\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u0435 gas sensor \u0438\u043B\u0438 meter \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E multitool"})]})})})}return u}(),m=function(h){var g=h.data,v=h.info,f=h.pressureListName,N=h.temperatureListName,V=g.sensors||{},B=function(x,E){return V[x][E].slice(-1)[0]},S=function(x,E){return Math.min.apply(Math,V[x][E])},L=function(x,E){return Math.max.apply(Math,V[x][E])},w=function(x,E){return V[x][E].map(function(P,D){return[D,P]})};return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{color:"gray",children:v}),Object.keys(V).map(function(A){return(0,e.createComponentVNode)(2,t.Section,{title:A,children:(0,e.createComponentVNode)(2,t.Section,{px:2,children:[N in V[A]&&(0,e.createComponentVNode)(2,t.Box,{mb:4,children:[(0,e.createComponentVNode)(2,t.Box,{children:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430: "+(0,p.toFixed)(B(A,N),0)+"\u041A (MIN: "+(0,p.toFixed)(S(A,N),0)+"\u041A; MAX: "+(0,p.toFixed)(L(A,N),0)+"\u041A)"}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,height:5,mt:1,children:(0,e.createComponentVNode)(2,s,{fillPositionedParent:!0,data:w(A,N),rangeX:[0,w(A,N).length-1],rangeY:[S(A,N)-10,L(A,N)+5],strokeColor:"rgba(219, 40, 40, 1)",fillColor:"rgba(219, 40, 40, 0.1)",horizontalLinesCount:2,verticalLinesCount:w(A,N).length-2,labelViewBoxSize:400})})]}),f in V[A]&&(0,e.createComponentVNode)(2,t.Box,{mb:-1,children:[(0,e.createComponentVNode)(2,t.Box,{children:"\u0414\u0430\u0432\u043B\u0435\u043D\u0438\u0435: "+(0,p.toFixed)(B(A,f),0)+"\u043A\u041F\u0430 (MIN: "+(0,p.toFixed)(S(A,f),0)+"\u043A\u041F\u0430; MAX: "+(0,p.toFixed)(L(A,f),0)+"\u043A\u041F\u0430)"}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,height:5,mt:1,children:(0,e.createComponentVNode)(2,s,{fillPositionedParent:!0,data:w(A,f),rangeX:[0,w(A,f).length-1],rangeY:[S(A,f)-10,L(A,f)+5],strokeColor:"rgba(40, 219, 40, 1)",fillColor:"rgba(40, 219, 40, 0.1)",horizontalLinesCount:2,verticalLinesCount:w(A,f).length-2,labelViewBoxSize:400})})]})]})},A)})]})},l=function(h,g,v,f){if(h.length===0)return[];var N=(0,b.zipWith)(Math.min).apply(void 0,h),V=(0,b.zipWith)(Math.max).apply(void 0,h);v!==void 0&&(N[0]=v[0],V[0]=v[1]),f!==void 0&&(N[1]=f[0],V[1]=f[1]);var B=function(A,x,E,P){return(A-x)/(E-x)*P},S=(0,b.zipWith)(B),L=(0,b.map)(function(w){return S(w,N,V,g)});return L(h)},d=function(h){for(var g="",v=0;v0){var le=ne[0],ee=ne[ne.length-1];ne.push([q[0]+D,ee[1]]),ne.push([q[0]+D,-D]),ne.push([-D,-D]),ne.push([-D,le[1]])}var re=d(ne);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({position:"relative"},te,{children:function(){function oe(fe){return(0,e.normalizeProps)((0,e.createVNode)(1,"div",null,(0,e.createVNode)(32,"svg",null,[Array.from({length:O}).map(function(me,Y){return(0,e.createVNode)(32,"line",null,null,1,{x1:0,y1:(Y+1)*(q[1]/(O+1)),x2:q[0],y2:(Y+1)*(q[1]/(O+1)),stroke:W,"stroke-width":K},"horizontal-line-"+Y)}),Array.from({length:j}).map(function(me,Y){return(0,e.createVNode)(32,"line",null,null,1,{x1:(Y+1)*(q[0]/(j+1)),y1:0,x2:(Y+1)*(q[0]/(j+1)),y2:q[1],stroke:W,"stroke-width":K},"vertical-line-"+Y)}),(0,e.createVNode)(32,"polyline",null,null,1,{transform:"scale(1, -1) translate(0, -"+q[1]+")",fill:A,points:re}),B.map(function(me,Y){return Y===0?null:(0,e.createVNode)(32,"line",null,null,1,{x1:ne[Y-1][0],y1:q[1]-ne[Y-1][1],x2:ne[Y][0],y2:q[1]-ne[Y][1],stroke:E,"stroke-width":D},"line-"+Y)}),B.map(function(me,Y){return(0,e.createVNode)(32,"circle",null,null,1,{cx:ne[Y][0],cy:q[1]-ne[Y][1],r:2,fill:"#ffffff",stroke:E,"stroke-width":1},"point-"+Y)}),B.map(function(me,Y){return q[0]>pe&&Y%2===1&&(0,e.createVNode)(32,"text",null,me[1]!==null?me[1].toFixed(0):"N/A",0,{x:ne[Y][0],y:q[1]-ne[Y][1],fill:Q,"font-size":ue,dy:"1em",style:{"text-anchor":"end"}},"point-text-"+Y)})],0,{viewBox:"0 0 "+q[0]+" "+q[1]}),2,Object.assign({},fe),null,f.ref))}return oe}()})))}return v}(),h}(e.Component);s.defaultHooks=void 0,s.defaultHooks=y.pureComponentHooks},52977:function(T,r,n){"use strict";r.__esModule=!0,r.AtmosMixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AtmosMixer=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=c.on,l=c.pressure,d=c.max_pressure,s=c.node1_concentration,u=c.node2_concentration;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:165,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:m?"On":"Off",color:m?null:"red",selected:m,onClick:function(){function h(){return i("power")}return h}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:l===0,width:2.2,onClick:function(){function h(){return i("min_pressure")}return h}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:d,value:l,onDrag:function(){function h(g,v){return i("custom_pressure",{pressure:v})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:l===d,width:2.2,onClick:function(){function h(){return i("max_pressure")}return h}()})]}),(0,e.createComponentVNode)(2,b,{node_name:"Node 1",node_ref:s}),(0,e.createComponentVNode)(2,b,{node_name:"Node 2",node_ref:u})]})})})})}return y}(),b=function(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=I.node_name,l=I.node_ref;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:m,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",width:2.2,disabled:l===0,onClick:function(){function d(){return i("set_node",{node_name:m,concentration:(l-10)/100})}return d}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"%",width:6.1,lineHeight:1.5,stepPixelSize:10,minValue:0,maxValue:100,value:l,onChange:function(){function d(s,u){return i("set_node",{node_name:m,concentration:u/100})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:l===100,onClick:function(){function d(){return i("set_node",{node_name:m,concentration:(l+10)/100})}return d}()})]})}},11748:function(T,r,n){"use strict";r.__esModule=!0,r.AtmosPump=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AtmosPump=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.on,m=i.rate,l=i.max_rate,d=i.gas_unit,s=i.step;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:110,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){function u(){return C("power")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:m===0,width:2.2,onClick:function(){function u(){return C("min_rate")}return u}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:d,width:6.1,lineHeight:1.5,step:s,minValue:0,maxValue:l,value:m,onDrag:function(){function u(h,g){return C("custom_rate",{rate:g})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===l,width:2.2,onClick:function(){function u(){return C("max_rate")}return u}()})]})]})})})})}return b}()},69321:function(T,r,n){"use strict";r.__esModule=!0,r.AtmosTankControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(44879),p=n(76910),b=n(98595),y=r.AtmosTankControl=function(){function I(k,C){var i=(0,a.useBackend)(C),c=i.act,m=i.data,l=m.sensors||{};return(0,e.createComponentVNode)(2,b.Window,{width:400,height:400,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:[Object.keys(l).map(function(d){return(0,e.createComponentVNode)(2,t.Section,{title:d,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[Object.keys(l[d]).indexOf("pressure")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:[l[d].pressure," kpa"]}):"",Object.keys(l[d]).indexOf("temperature")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[l[d].temperature," K"]}):"",["o2","n2","plasma","co2","n2o"].map(function(s){return Object.keys(l[d]).indexOf(s)>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(0,p.getGasLabel)(s),children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:(0,p.getGasColor)(s),value:l[d][s],minValue:0,maxValue:100,children:(0,o.toFixed)(l[d][s],2)+"%"})},(0,p.getGasLabel)(s)):""})]})},d)}),m.inlet&&Object.keys(m.inlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Inlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(m.inlet.on,"power-off"),content:m.inlet.on?"On":"Off",color:m.inlet.on?null:"red",selected:m.inlet.on,onClick:function(){function d(){return c("toggle_active",{dev:"inlet"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"L/s",width:6.1,lineHeight:1.5,step:1,minValue:0,maxValue:50,value:m.inlet.rate,onDrag:function(){function d(s,u){return c("set_pressure",{dev:"inlet",val:u})}return d}()})})]})}):"",m.outlet&&Object.keys(m.outlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Outlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(m.outlet.on,"power-off"),content:m.outlet.on?"On":"Off",color:m.outlet.on?null:"red",selected:m.outlet.on,onClick:function(){function d(){return c("toggle_active",{dev:"outlet"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:5066,value:m.outlet.rate,onDrag:function(){function d(s,u){return c("set_pressure",{dev:"outlet",val:u})}return d}()})})]})}):""]})})}return I}()},92444:function(T,r,n){"use strict";r.__esModule=!0,r.AugmentMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(25328),b=r.AugmentMenu=function(){function k(C,i){return(0,e.createComponentVNode)(2,o.Window,{width:700,height:660,theme:"malfunction",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,y,{context:i})})})})}return k}(),y=function(C){var i=C.context,c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.usable_swarms,s=l.ability_tabs,u=l.known_abilities,h=(0,a.useLocalState)(i,"selectedTab",s[0]),g=h[0],v=h[1],f=(0,a.useLocalState)(i,"searchText",""),N=f[0],V=f[1],B=function(){var E=s.find(function(D){return D.category_name===g.category_name});if(!E)return[];var P=Math.min(E.category_stage,4);return E.abilities.filter(function(D){return D.stage<=P&&(!N||D.name.toLowerCase().includes(N.toLowerCase()))}).sort(function(D,M){return["intruder","destroyer"].includes(g.category_name.toLowerCase())?D.stage-M.stage:0})},S=B(),L=s.find(function(x){return x.category_name===g.category_name}),w=["intruder","destroyer"].includes(g.category_name.toLowerCase()),A=function(E){var P=u.find(function(O){return O.ability_path===E.ability_path}),D=P?P.cost:E.cost,M=P&&P.current_level>0?P.current_level+" / "+P.max_level:"0 / "+E.max_level;return(0,e.createComponentVNode)(2,t.Stack.Item,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{height:"20px",width:"35px",mb:1,textAlign:"center",content:D,disabled:D>d||P&&P.current_level===P.max_level,tooltip:"Purchase this ability?",onClick:function(){function O(){m("purchase",{ability_path:E.ability_path}),v(g)}return O}()}),(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"16px",children:E.name})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"13px",children:E.desc||"Description not available"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:["Level: ",(0,e.createVNode)(1,"span",null,M,0,{style:{color:"green"}}),w&&E.stage>0&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)(" (Stage: "),E.stage,(0,e.createTextVNode)(")")],0)]}),(0,e.createComponentVNode)(2,t.Stack.Divider)]})})]},E.name)};return(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,style:{marginRight:"10px"},children:[(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("Swarms: "),(0,e.createVNode)(1,"span",null,d,0,{style:{color:"green"}})],4),w&&L&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("Category Stage: "),(0,e.createVNode)(1,"span",null,Math.min(L.category_stage,4),0,{style:{color:"green"}})],4)]}),(0,e.createVNode)(1,"div","Section__buttons",(0,e.createComponentVNode)(2,t.Input,{width:"200px",placeholder:"Search Abilities",onInput:function(){function x(E,P){return V(P)}return x}(),value:N}),2)],4,{style:{display:"flex",alignItems:"center"}}),children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[s.map(function(x){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g.category_name===x.category_name,onClick:function(){function E(){v(x),V("")}return E}(),children:(0,p.capitalize)(x.category_name)},x.category_name)}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g.category_name==="upgrades",onClick:function(){function x(){return v({category_name:"upgrades"})}return x}(),children:"Upgrades"},"upgrades")]}),g.category_name==="upgrades"?(0,e.createComponentVNode)(2,I,{act:m,abilityTabs:s,knownAbilities:u,usableSwarms:d}):(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:S.map(A)})]})},I=function(C){var i=C.act,c=C.abilityTabs,m=C.knownAbilities,l=C.usableSwarms,d=m.filter(function(u){return u.current_levell,tooltip:"Upgrade this ability?",onClick:function(){function v(){return i("purchase",{ability_path:h.ability_path})}return v}()}),(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"16px",children:h.name})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"13px",children:h.upgrade_text}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:["Level:"," ",(0,e.createVNode)(1,"span",null,h.current_level+" / "+h.max_level,0,{style:{color:"green"}}),g&&g.stage>0&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)(" (Stage: "),g.stage,(0,e.createTextVNode)(")")],0)]}),(0,e.createComponentVNode)(2,t.Stack.Divider)]})})]},h.name)};return(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:d.map(s)})}},59179:function(T,r,n){"use strict";r.__esModule=!0,r.Autolathe=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),p=n(36036),b=n(98595),y=n(25328),I=function(i,c,m,l){return i.requirements===null?!0:!(i.requirements.metal*l>c||i.requirements.glass*l>m)},k=r.Autolathe=function(){function C(i,c){var m=(0,o.useBackend)(c),l=m.act,d=m.data,s=d.total_amount,u=d.max_amount,h=d.metal_amount,g=d.glass_amount,v=d.busyname,f=d.busyamt,N=d.showhacked,V=d.buildQueue,B=d.buildQueueLen,S=d.recipes,L=d.categories,w=(0,o.useSharedState)(c,"category",0),A=w[0],x=w[1];A===0&&(A="Tools");var E=h.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),P=g.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),D=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),M=(0,o.useSharedState)(c,"search_text",""),O=M[0],R=M[1],j=(0,y.createSearch)(O,function(K){return K.name}),_="";B>0&&(_=V.map(function(K,G){return(0,e.createComponentVNode)(2,p.Box,{children:(0,e.createComponentVNode)(2,p.Button,{fluid:!0,icon:"times",color:"transparent",content:V[G][0],onClick:function(){function Q(){return l("remove_from_queue",{remove_from_queue:V.indexOf(K)+1})}return Q}()},K)},G)}));var W=(0,a.flow)([(0,t.filter)(function(K){return(K.category.indexOf(A)>-1||O)&&(d.showhacked||!K.hacked)}),O&&(0,t.filter)(j),(0,t.sortBy)(function(K){return K.name.toLowerCase()})])(S),z="Build";return O?z="Results for: '"+O+"':":A&&(z="Build ("+A+")"),(0,e.createComponentVNode)(2,b.Window,{width:750,height:525,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{width:"70%",children:(0,e.createComponentVNode)(2,p.Section,{fill:!0,scrollable:!0,title:z,buttons:(0,e.createComponentVNode)(2,p.Dropdown,{width:"150px",options:L,selected:A,onSelected:function(){function K(G){return x(G)}return K}()}),children:[(0,e.createComponentVNode)(2,p.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function K(G,Q){return R(Q)}return K}(),mb:1}),W.map(function(K){return(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+K.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,p.Button,{mr:1,icon:"hammer",selected:d.busyname===K.name&&d.busyamt===1,disabled:!I(K,d.metal_amount,d.glass_amount,1),onClick:function(){function G(){return l("make",{make:K.uid,multiplier:1})}return G}(),children:(0,y.toTitleCase)(K.name)}),K.max_multiplier>=10&&(0,e.createComponentVNode)(2,p.Button,{mr:1,icon:"hammer",selected:d.busyname===K.name&&d.busyamt===10,disabled:!I(K,d.metal_amount,d.glass_amount,10),onClick:function(){function G(){return l("make",{make:K.uid,multiplier:10})}return G}(),children:"10x"}),K.max_multiplier>=25&&(0,e.createComponentVNode)(2,p.Button,{mr:1,icon:"hammer",selected:d.busyname===K.name&&d.busyamt===25,disabled:!I(K,d.metal_amount,d.glass_amount,25),onClick:function(){function G(){return l("make",{make:K.uid,multiplier:25})}return G}(),children:"25x"}),K.max_multiplier>25&&(0,e.createComponentVNode)(2,p.Button,{mr:1,icon:"hammer",selected:d.busyname===K.name&&d.busyamt===K.max_multiplier,disabled:!I(K,d.metal_amount,d.glass_amount,K.max_multiplier),onClick:function(){function G(){return l("make",{make:K.uid,multiplier:K.max_multiplier})}return G}(),children:[K.max_multiplier,"x"]}),K.requirements&&Object.keys(K.requirements).map(function(G){return(0,y.toTitleCase)(G)+": "+K.requirements[G]}).join(", ")||(0,e.createComponentVNode)(2,p.Box,{children:"No resources required."})]},K.ref)})]})}),(0,e.createComponentVNode)(2,p.Stack.Item,{width:"30%",children:[(0,e.createComponentVNode)(2,p.Section,{title:"Materials",children:(0,e.createComponentVNode)(2,p.LabeledList,{children:[(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Metal",children:E}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Glass",children:P}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Total",children:D}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Storage",children:[d.fill_percent,"% Full"]})]})}),(0,e.createComponentVNode)(2,p.Section,{title:"Building",children:(0,e.createComponentVNode)(2,p.Box,{color:v?"green":"",children:v||"Nothing"})}),(0,e.createComponentVNode)(2,p.Section,{title:"Build Queue",height:23.7,children:[_,(0,e.createComponentVNode)(2,p.Button,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!d.buildQueueLen,onClick:function(){function K(){return l("clear_queue")}return K}()})]})]})]})})})}return C}()},29943:function(T,r,n){"use strict";r.__esModule=!0,r.Autolathe220=void 0;var e=n(89005),a=n(25328),t=n(88510),o=n(64795),p=n(72253),b=n(36036),y=n(98595),I="icons/obj/stacks/minerals.dmi",k=["metal","glass"],C=function(g,v,f,N){return g.requirements===null?!0:!(g.requirements.metal*N>v||g.requirements.glass*N>f)},i=function(g,v){var f=g*v/2e3;return f===0?0:f<.01&&f>0?(0,e.createComponentVNode)(2,b.Box,{fontSize:.75,children:"< 0.01"}):Math.floor(f*100)/100},c=r.Autolathe220=function(){function h(g,v){var f=(0,p.useSharedState)(v,"category","Tools"),N=f[0],V=f[1];return(0,e.createComponentVNode)(2,y.Window,{width:800,height:550,children:(0,e.createComponentVNode)(2,y.Window.Content,{children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{basis:"20%",children:(0,e.createComponentVNode)(2,m,{category:N,setCategory:V})}),(0,e.createComponentVNode)(2,b.Stack.Item,{basis:"55%",children:(0,e.createComponentVNode)(2,l,{category:N})}),(0,e.createComponentVNode)(2,b.Stack.Item,{basis:"25%",children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,u)]})})]})})})}return h}(),m=function(g,v){var f=(0,p.useBackend)(v),N=f.data,V=g.category,B=g.setCategory,S=N.categories,L=["All"].concat(S);return(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Categories",children:(0,e.createComponentVNode)(2,b.Tabs,{vertical:!0,children:L.map(function(w){return(0,e.createComponentVNode)(2,b.Tabs.Tab,{mb:.5,height:"2.5em",color:"blue",selected:w===V,onClick:function(){function A(){return B(w)}return A}(),children:w},w)})})})},l=function(g,v){var f=(0,p.useBackend)(v),N=f.act,V=f.data,B=V.metal_amount,S=V.glass_amount,L=V.recipes,w=g.category,A=(0,p.useSharedState)(v,"searchText",""),x=A[0],E=A[1],P=(0,o.flow)([(0,t.filter)(function(O){return w==="All"||O.category.includes(w)||x&&(V.showhacked||!O.hacked)}),x&&(0,t.filter)((0,a.createSearch)(x,function(O){return O.name})),(0,t.sortBy)(function(O){return O.name.toLowerCase()})])(L),D=function(R,j){return(0,e.createComponentVNode)(2,b.Button,{translucent:!0,tooltip:M(R,j),tooltipPosition:"top",disabled:!C(R,B,S,j),onClick:function(){function _(){return N("make",{make:R.uid,multiplier:j})}return _}(),children:[j,"x"]})},M=function(R,j){return(0,e.createFragment)(k.map(function(_){return R.requirements[_]&&(0,e.createComponentVNode)(2,b.ImageButton,{dmIcon:I,dmIconState:"sheet-"+_,imageSize:32,children:i(R.requirements[_],j)},_)}),0)};return(0,e.createComponentVNode)(2,b.Section,{fill:!0,title:"Build ("+w+")",children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function O(R,j){return E(j)}return O}()})}),(0,e.createComponentVNode)(2,b.Stack.Item,{mt:.5,mb:-2.33,grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,children:P.map(function(O){return(0,e.createComponentVNode)(2,b.ImageButton,{fluid:!0,base64:O.image,imageSize:32,textAlign:"left",color:O.category.includes("hacked")&&"brown",tooltip:M(O,1),tooltipPosition:"top",disabled:!C(O,B,S,1),buttons:O.max_multiplier>1&&(0,e.createFragment)([O.max_multiplier>=10&&D(O,10),O.max_multiplier>=25&&D(O,25),O.max_multiplier>25&&D(O,O.max_multiplier)],0),onClick:function(){function R(){return N("make",{make:O.uid,multiplier:1})}return R}(),children:O.name},O.name)})})})]})})},d=function(g,v){var f=(0,p.useBackend)(v),N=f.data,V=N.metal_amount,B=N.glass_amount,S=N.fill_percent,L=function(A,x){return(0,e.createComponentVNode)(2,b.ImageButton,{fluid:!0,imageSize:32,dmIcon:I,dmIconState:"sheet-"+A,color:"nope",buttons:(0,e.createComponentVNode)(2,b.Box,{backgroundColor:"rgba(255, 255, 255, 0.05)",width:"45px",children:i(x,1)}),children:(0,a.toTitleCase)(A)})};return(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Section,{title:"Materials",children:[L("metal",V),L("glass",B),(0,e.createComponentVNode)(2,b.ProgressBar,{minValue:0,value:S,maxValue:100,children:["Storage ",S,"% full"]})]})})},s=function(g,v){var f=(0,p.useBackend)(v),N=f.data,V=N.recipes,B=N.busyname,S=N.busyamt,L=V.find(function(w){return w.name===B});return(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Section,{title:"Building",children:(0,e.createComponentVNode)(2,b.ImageButton,{fluid:!0,color:B&&"green",base64:L==null?void 0:L.image,imageSize:32,children:B?S>1?B+" x"+S:B:"Nothing"})})})},u=function(g,v){var f=(0,p.useBackend)(v),N=f.act,V=f.data,B=V.recipes,S=V.buildQueue,L=V.buildQueueLen,w;return L>0&&(w=S.map(function(A,x){var E=B.find(function(P){return P.name===S[x][0]});return(0,e.createComponentVNode)(2,b.ImageButton,{fluid:!0,base64:E.image,imageSize:32,buttons:(0,e.createComponentVNode)(2,b.Button,{translucent:!0,width:"32px",icon:"times",iconColor:"red",onClick:function(){function P(){return N("remove_from_queue",{remove_from_queue:S.indexOf(A)+1})}return P}()},A),children:[E.name," ",Number(S[x][1])>1&&"x"+S[x][1]]},x)})),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Queue "+(L>0?L:""),children:w})}),(0,e.createComponentVNode)(2,b.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,b.Section,{fitted:!0,p:.75,children:(0,e.createComponentVNode)(2,b.Button,{fluid:!0,translucent:!L,color:"red",icon:"trash-can",disabled:!L,onClick:function(){function A(){return N("clear_queue")}return A}(),children:"Clear Queue"})})})]})})}},5147:function(T,r,n){"use strict";r.__esModule=!0,r.BioChipPad=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.BioChipPad=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.implant,m=i.contains_case,l=i.gps,d=i.tag,s=(0,a.useLocalState)(I,"newTag",d),u=s[0],h=s[1];return(0,e.createComponentVNode)(2,o.Window,{width:410,height:325,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Bio-chip Mini-Computer",buttons:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject Case",icon:"eject",disabled:!m,onClick:function(){function g(){return C("eject_case")}return g}()})}),children:c&&m?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{bold:!0,mb:2,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+c.image,ml:0,mr:2,style:{"vertical-align":"middle",width:"32px"}}),c.name]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Life",children:c.life}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Notes",children:c.notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Function",children:c.function}),!!l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,t.Input,{width:"5.5rem",value:d,onEnter:function(){function g(){return C("tag",{newtag:u})}return g}(),onInput:function(){function g(v,f){return h(f)}return g}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:d===u,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function g(){return C("tag",{newtag:u})}return g}(),children:(0,e.createComponentVNode)(2,t.Icon,{name:"pen"})})]})]})],4):m?(0,e.createComponentVNode)(2,t.Box,{children:"This bio-chip case has no implant!"}):(0,e.createComponentVNode)(2,t.Box,{children:"Please insert a bio-chip casing!"})})})})}return b}()},64273:function(T,r,n){"use strict";r.__esModule=!0,r.Biogenerator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(62411),b=r.Biogenerator=function(){function i(c,m){var l=(0,a.useBackend)(m),d=l.data,s=l.config,u=d.container,h=d.processing,g=s.title;return(0,e.createComponentVNode)(2,o.Window,{width:390,height:595,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.Operating,{operating:h,name:g}),(0,e.createComponentVNode)(2,I),(0,e.createComponentVNode)(2,k),u?(0,e.createComponentVNode)(2,C):(0,e.createComponentVNode)(2,y)]})})})}return i}(),y=function(c,m){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The biogenerator is missing a container."]})})})},I=function(c,m){var l=(0,a.useBackend)(m),d=l.act,s=l.data,u=s.biomass,h=s.container,g=s.container_curr_reagents,v=s.container_max_reagents;return(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"20px",color:"silver",children:"Biomass:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"5px",children:u}),(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"21px",mt:"8px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"10px",color:"silver",children:"Container:"}),h?(0,e.createComponentVNode)(2,t.ProgressBar,{value:g,maxValue:v,children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:g+" / "+v+" units"})}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"None"})]})]})},k=function(c,m){var l=(0,a.useBackend)(m),d=l.act,s=l.data,u=s.has_plants,h=s.container;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:!u,tooltip:u?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",content:"Activate",onClick:function(){function g(){return d("activate")}return g}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"flask",disabled:!h,tooltip:h?"":"The biogenerator does not have a container.",tooltipPosition:"top",content:"Detach Container",onClick:function(){function g(){return d("detach_container")}return g}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!u,tooltip:u?"":"There are no stored plants to eject.",tooltipPosition:"top-end",content:"Eject Plants",onClick:function(){function g(){return d("eject_plants")}return g}()})})]})})},C=function(c,m){var l=(0,a.useBackend)(m),d=l.act,s=l.data,u=s.biomass,h=s.product_list,g=(0,a.useSharedState)(m,"vendAmount",1),v=g[0],f=g[1],N=Object.entries(h).map(function(V,B){var S=Object.entries(V[1]).map(function(L){return L[1]});return(0,e.createComponentVNode)(2,t.Collapsible,{title:V[0],open:!0,children:S.map(function(L){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",ml:"2px",children:L.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"20%",children:[L.cost*v,(0,e.createComponentVNode)(2,t.Icon,{ml:"5px",name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{content:"Vend",disabled:u.25?750+400*Math.random():290+150*Math.random(),time:60+150*Math.random(),children:(0,e.createComponentVNode)(2,t.Stack,{mb:"30px",fontsize:"256px",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,color:"red",fontsize:"256px",textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"skull",size:14,mb:"64px"}),(0,e.createVNode)(1,"br"),"E$#OR:& U#KN!WN IN%ERF#R_NCE"]})})})})}return k}(),y=r.BluespaceTap=function(){function k(C,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.product||[],s=l.desiredMiningPower,u=l.miningPower,h=l.points,g=l.totalPoints,v=l.powerUse,f=l.availablePower,N=l.emagged,V=l.autoShutown,B=l.stabilizers,S=l.stabilizerPower,L=l.stabilizerPriority,w=s>u&&"bad"||"good";return(0,e.createComponentVNode)(2,o.Window,{width:650,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,I),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Input Management",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Input",children:[(0,e.createComponentVNode)(2,t.Button,{icon:V&&!N?"toggle-on":"toggle-off",content:"Auto shutdown",color:V&&!N?"green":"red",disabled:!!N,tooltip:"Turn auto shutdown on or off",tooltipPosition:"top",onClick:function(){function A(){return m("auto_shutdown")}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:B&&!N?"toggle-on":"toggle-off",content:"Stabilizers",color:B&&!N?"green":"red",disabled:!!N,tooltip:"Turn stabilizers on or off",tooltipPosition:"top",onClick:function(){function A(){return m("stabilizers")}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:L&&!N?"toggle-on":"toggle-off",content:"Stabilizer priority",color:L&&!N?"green":"red",disabled:!!N,tooltip:"On: Mining power will not exceed what can be stabilized",tooltipPosition:"top",onClick:function(){function A(){return m("stabilizer_priority")}return A}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Desired Mining Power",children:(0,p.formatPower)(s)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{labelStyle:{"vertical-align":"top"},label:"Set Desired Mining Power",children:(0,e.createComponentVNode)(2,t.Stack,{width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"step-backward",disabled:s===0||N,tooltip:"Set to 0",tooltipPosition:"bottom",onClick:function(){function A(){return m("set",{set_power:0})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",tooltip:"Decrease by 10 MW",tooltipPosition:"bottom",disabled:s===0||N,onClick:function(){function A(){return m("set",{set_power:s-1e7})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:s===0||N,tooltip:"Decrease by 1 MW",tooltipPosition:"bottom",onClick:function(){function A(){return m("set",{set_power:s-1e6})}return A}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mx:1,children:(0,e.createComponentVNode)(2,t.NumberInput,{disabled:N,minvalue:0,value:s,maxvalue:1/0,step:1,onChange:function(){function A(x,E){return m("set",{set_power:E})}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:N,tooltip:"Increase by one MW",tooltipPosition:"bottom",onClick:function(){function A(){return m("set",{set_power:s+1e6})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:N,tooltip:"Increase by 10MW",tooltipPosition:"bottom",onClick:function(){function A(){return m("set",{set_power:s+1e7})}return A}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Power Use",children:(0,p.formatPower)(v)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mining Power Use",children:(0,p.formatPower)(u)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stabilizer Power Use",children:(0,p.formatPower)(S)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Surplus Power",children:(0,p.formatPower)(f)})]})]})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Points",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Points",children:g})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{align:"end",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(A){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:A.name,children:(0,e.createComponentVNode)(2,t.Button,{disabled:A.price>=h,onClick:function(){function x(){return m("vend",{target:A.key})}return x}(),content:A.price})},A.key)})})})})]})})]})})})}return k}(),I=r.Alerts=function(){function k(C,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.product||[],s=l.miningPower,u=l.stabilizerPower,h=l.emagged,g=l.safeLevels,v=l.autoShutown,f=l.stabilizers,N=l.overhead;return(0,e.createFragment)([!v&&!h&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Auto shutdown disabled"}),h?(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"All safeties disabled"}):s<=15e6?"":f?s>u+15e6?(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Stabilizers overwhelmed, Instability likely"}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"High Power, engaging stabilizers"}):(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Stabilizers disabled, Instability likely"})],0)}return k}()},33758:function(T,r,n){"use strict";r.__esModule=!0,r.BodyScanner=void 0;var e=n(89005),a=n(44879),t=n(25328),o=n(72253),p=n(36036),b=n(98595),y=[["good","Alive"],["average","Critical"],["bad","DEAD"]],I=[["hasVirus","bad","Viral pathogen detected in blood stream."],["blind","average","Cataracts detected."],["colourblind","average","Photoreceptor abnormalities detected."],["nearsighted","average","Retinal misalignment detected."]],k=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Cellular","cloneLoss"],["Burn","fireLoss"],["Inebriation","drunkenness"]],C={average:[.25,.5],bad:[.5,1/0]},i=function(B,S){for(var L=[],w=0;w0?B.filter(function(S){return!!S}).reduce(function(S,L){return(0,e.createFragment)([S,(0,e.createComponentVNode)(2,p.Box,{children:L},L)],0)},null):null},m=function(B){if(B>100){if(B<300)return"mild infection";if(B<400)return"mild infection+";if(B<500)return"mild infection++";if(B<700)return"acute infection";if(B<800)return"acute infection+";if(B<900)return"acute infection++";if(B>=900)return"septic"}return""},l=r.BodyScanner=function(){function V(B,S){var L=(0,o.useBackend)(S),w=L.data,A=w.occupied,x=w.occupant,E=x===void 0?{}:x,P=A?(0,e.createComponentVNode)(2,d,{occupant:E}):(0,e.createComponentVNode)(2,N);return(0,e.createComponentVNode)(2,b.Window,{width:700,height:600,title:"Body Scanner",children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:P})})}return V}(),d=function(B){var S=B.occupant;return(0,e.createComponentVNode)(2,p.Box,{children:[(0,e.createComponentVNode)(2,s,{occupant:S}),(0,e.createComponentVNode)(2,u,{occupant:S}),(0,e.createComponentVNode)(2,h,{occupant:S}),(0,e.createComponentVNode)(2,v,{organs:S.extOrgan}),(0,e.createComponentVNode)(2,f,{organs:S.intOrgan})]})},s=function(B,S){var L=(0,o.useBackend)(S),w=L.act,A=L.data,x=A.occupant;return(0,e.createComponentVNode)(2,p.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,p.Button,{icon:"print",onClick:function(){function E(){return w("print_p")}return E}(),children:"Print Report"}),(0,e.createComponentVNode)(2,p.Button,{icon:"user-slash",onClick:function(){function E(){return w("ejectify")}return E}(),children:"Eject"})],4),children:(0,e.createComponentVNode)(2,p.LabeledList,{children:[(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Name",children:x.name}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,p.ProgressBar,{min:"0",max:x.maxHealth,value:x.health/x.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Status",color:y[x.stat][0],children:y[x.stat][1]}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,p.AnimatedNumber,{value:(0,a.round)(x.bodyTempC)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,p.AnimatedNumber,{value:(0,a.round)(x.bodyTempF)}),"\xB0F"]}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Implants",children:x.implant_len?(0,e.createComponentVNode)(2,p.Box,{children:x.implant.map(function(E){return E.name}).join(", ")}):(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"None"})})]})})},u=function(B){var S=B.occupant;return S.hasBorer||S.blind||S.colourblind||S.nearsighted||S.hasVirus?(0,e.createComponentVNode)(2,p.Section,{title:"Abnormalities",children:I.map(function(L,w){if(S[L[0]])return(0,e.createComponentVNode)(2,p.Box,{color:L[1],bold:L[1]==="bad",children:L[2]},L[2])})}):(0,e.createComponentVNode)(2,p.Section,{title:"Abnormalities",children:(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"No abnormalities found."})})},h=function(B){var S=B.occupant;return(0,e.createComponentVNode)(2,p.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,p.Table,{children:i(k,function(L,w,A){return(0,e.createFragment)([(0,e.createComponentVNode)(2,p.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,p.Table.Cell,{children:[L[0],":"]}),(0,e.createComponentVNode)(2,p.Table.Cell,{children:!!w&&w[0]+":"})]}),(0,e.createComponentVNode)(2,p.Table.Row,{children:[(0,e.createComponentVNode)(2,p.Table.Cell,{children:(0,e.createComponentVNode)(2,g,{value:S[L[1]],marginBottom:A100)&&"average"||!!S.status.robotic&&"label",width:"33%",children:(0,t.capitalize)(S.name)}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,p.ProgressBar,{m:-.5,min:"0",max:S.maxHealth,mt:L>0&&"0.5rem",value:S.totalLoss/S.maxHealth,ranges:C,children:(0,e.createComponentVNode)(2,p.Stack,{children:[(0,e.createComponentVNode)(2,p.Tooltip,{content:"Total damage",children:(0,e.createComponentVNode)(2,p.Stack.Item,{children:[(0,e.createComponentVNode)(2,p.Icon,{name:"heartbeat",mr:.5}),(0,a.round)(S.totalLoss)]})}),!!S.bruteLoss&&(0,e.createComponentVNode)(2,p.Tooltip,{content:"Brute damage",children:(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,p.Icon,{name:"bone",mr:.5}),(0,a.round)(S.bruteLoss)]})}),!!S.fireLoss&&(0,e.createComponentVNode)(2,p.Tooltip,{content:"Burn damage",children:(0,e.createComponentVNode)(2,p.Stack.Item,{children:[(0,e.createComponentVNode)(2,p.Icon,{name:"fire",mr:.5}),(0,a.round)(S.fireLoss)]})})]})})}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,p.Box,{color:"average",inline:!0,children:c([!!S.internalBleeding&&"Internal bleeding",!!S.burnWound&&"Critical tissue burns",!!S.lungRuptured&&"Ruptured lung",!!S.status.broken&&S.status.broken,m(S.germ_level),!!S.open&&"Open incision"])}),(0,e.createComponentVNode)(2,p.Box,{inline:!0,children:[c([!!S.status.splinted&&(0,e.createComponentVNode)(2,p.Box,{color:"good",children:"Splinted"}),!!S.status.robotic&&(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"Robotic"}),!!S.status.dead&&(0,e.createComponentVNode)(2,p.Box,{color:"bad",bold:!0,children:"DEAD"})]),c(S.shrapnel.map(function(w){return w.known?w.name:"Unknown object"}))]})]})]},L)})]})})},f=function(B){return B.organs.length===0?(0,e.createComponentVNode)(2,p.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"N/A"})}):(0,e.createComponentVNode)(2,p.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,p.Table,{children:[(0,e.createComponentVNode)(2,p.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,p.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"center",children:"Damage"}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"right",children:"Injuries"})]}),B.organs.map(function(S,L){return(0,e.createComponentVNode)(2,p.Table.Row,{children:[(0,e.createComponentVNode)(2,p.Table.Cell,{color:!!S.dead&&"bad"||S.germ_level>100&&"average"||S.robotic>0&&"label",width:"33%",children:(0,t.capitalize)(S.name)}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,p.ProgressBar,{min:"0",max:S.maxHealth,value:S.damage/S.maxHealth,mt:L>0&&"0.5rem",ranges:C,children:(0,a.round)(S.damage)})}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,p.Box,{color:"average",inline:!0,children:c([m(S.germ_level)])}),(0,e.createComponentVNode)(2,p.Box,{inline:!0,children:c([S.robotic===1&&(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"Robotic"}),S.robotic===2&&(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"Assisted"}),!!S.dead&&(0,e.createComponentVNode)(2,p.Box,{color:"bad",bold:!0,children:"DEAD"})])})]})]},L)})]})})},N=function(){return(0,e.createComponentVNode)(2,p.Section,{fill:!0,children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,p.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},67963:function(T,r,n){"use strict";r.__esModule=!0,r.BookBinder=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(3939),b=n(39473),y=r.BookBinder=function(){function I(k,C){var i=(0,a.useBackend)(C),c=i.act,m=i.data,l=m.selectedbook,d=m.book_categories,s=[];return d.map(function(u){return s[u.description]=u.category_id}),(0,e.createComponentVNode)(2,o.Window,{width:600,height:400,children:[(0,e.createComponentVNode)(2,p.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Book Binder",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",width:"auto",content:"Print Book",onClick:function(){function u(){return c("print_book")}return u}()}),children:[(0,e.createComponentVNode)(2,t.Box,{ml:10,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:"1rem"}),"Book Binder"]}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:l.title,onClick:function(){function u(){return(0,p.modalOpen)(C,"edit_selected_title")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:l.author,onClick:function(){function u(){return(0,p.modalOpen)(C,"edit_selected_author")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"190px",options:d.map(function(u){return u.description}),onSelected:function(){function u(h){return c("toggle_binder_category",{category_id:s[h]})}return u}()})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",width:"auto",content:"Edit Summary",onClick:function(){function u(){return(0,p.modalOpen)(C,"edit_selected_summary")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:l.summary})]}),(0,e.createVNode)(1,"br"),d.filter(function(u){return l.categories.includes(u.category_id)}).map(function(u){return(0,e.createComponentVNode)(2,t.Button,{content:u.description,selected:!0,icon:"unlink",onClick:function(){function h(){return c("toggle_binder_category",{category_id:u.category_id})}return h}()},u.category_id)})]})})]})})})]})}return I}()},61925:function(T,r,n){"use strict";r.__esModule=!0,r.BotCall=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=function(i){var c=[{modes:[0],label:"Idle",color:"green"},{modes:[1,2,3],label:"Arresting",color:"yellow"},{modes:[4,5],label:"Patrolling",color:"average"},{modes:[9],label:"Moving",color:"average"},{modes:[6,11],label:"Responding",color:"green"},{modes:[12],label:"Delivering Cargo",color:"blue"},{modes:[13],label:"Returning Home",color:"blue"},{modes:[7,8,10,14,15,16,17,18,19],label:"Working",color:"blue"}],m=c.find(function(l){return l.modes.includes(i)});return(0,e.createComponentVNode)(2,t.Box,{color:m.color,children:[" ",m.label," "]})},b=r.BotCall=function(){function C(i,c){var m=(0,a.useBackend)(c),l=m.act,d=m.data,s=(0,a.useLocalState)(c,"tabIndex",0),u=s[0],h=s[1],g={0:"Security",1:"Medibot",2:"Cleanbot",3:"Floorbot",4:"Mule",5:"Honkbot"},v=function(){function f(N){return g[N]?(0,e.createComponentVNode)(2,y,{model:g[N]}):"This should not happen. Report on Paradise Github"}return f}();return(0,e.createComponentVNode)(2,o.Window,{width:700,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:u===0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,textAlign:"center",children:Array.from({length:6}).map(function(f,N){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:u===N,onClick:function(){function V(){return h(N)}return V}(),children:g[N]},N)})})}),v(u)]})})})}return C}(),y=function(i,c){var m=(0,a.useBackend)(c),l=m.act,d=m.data,s=d.bots;return s[i.model]!==void 0?(0,e.createComponentVNode)(2,k,{model:[i.model]}):(0,e.createComponentVNode)(2,I,{model:[i.model]})},I=function(i,c){var m=(0,a.useBackend)(c),l=m.act,d=m.data;return(0,e.createComponentVNode)(2,t.Stack,{justify:"center",align:"center",fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Box,{bold:1,color:"bad",children:["No ",[i.model]," detected"]})})},k=function(i,c){var m=(0,a.useBackend)(c),l=m.act,d=m.data,s=d.bots;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Model"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Location"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Interface"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Call"})]}),s[i.model].map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.model}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.on?p(u.status):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Off"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.location}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Interface",onClick:function(){function h(){return l("interface",{botref:u.UID})}return h}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Call",onClick:function(){function h(){return l("call",{botref:u.UID})}return h}()})})]},u.UID)})]})})})}},20464:function(T,r,n){"use strict";r.__esModule=!0,r.BotClean=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(92963),b=r.BotClean=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=c.locked,l=c.noaccess,d=c.maintpanel,s=c.on,u=c.autopatrol,h=c.canhack,g=c.emagged,v=c.remote_disabled,f=c.painame,N=c.cleanblood,V=c.area;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,p.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Cleaning Settings",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:N,content:"Clean Blood",disabled:l,onClick:function(){function B(){return i("blood")}return B}()})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc Settings",children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:V?"Reset Area Selection":"Restrict to Current Area",onClick:function(){function B(){return i("area")}return B}()}),V!==null&&(0,e.createComponentVNode)(2,t.LabeledList,{mb:1,children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Locked Area",children:V})})]}),f&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:f,disabled:l,onClick:function(){function B(){return i("ejectpai")}return B}()})})]})})}return y}()},69479:function(T,r,n){"use strict";r.__esModule=!0,r.BotFloor=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(92963),b=r.BotFloor=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=c.noaccess,l=c.painame,d=c.hullplating,s=c.replace,u=c.eat,h=c.make,g=c.fixfloor,v=c.nag_empty,f=c.magnet,N=c.tiles_amount;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:510,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,p.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Floor Settings",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"5px",children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tiles Left",children:N})}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,content:"Add tiles to new hull plating",tooltip:"Fixing a plating requires the removal of floor tile. This will place it back after repairing. Same goes for hull breaches",disabled:m,onClick:function(){function V(){return i("autotile")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Add floor tiles on exposed hull plating",tooltip:"Example: It will add tiles to maintenance",disabled:m,onClick:function(){function V(){return i("replacetiles")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Repair damaged tiles and platings",disabled:m,onClick:function(){function V(){return i("fixfloors")}return V}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Miscellaneous",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Finds tiles",disabled:m,onClick:function(){function V(){return i("eattiles")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"Make pieces of metal into tiles when empty",disabled:m,onClick:function(){function V(){return i("maketiles")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Transmit notice when empty",disabled:m,onClick:function(){function V(){return i("nagonempty")}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:f,content:"Traction Magnets",disabled:m,onClick:function(){function V(){return i("anchored")}return V}()})]}),l&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,icon:"eject",content:l,disabled:m,onClick:function(){function V(){return i("ejectpai")}return V}()})})]})})}return y}()},59887:function(T,r,n){"use strict";r.__esModule=!0,r.BotHonk=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(92963),b=r.BotHonk=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:220,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,p.BotStatus)})})}return y}()},80063:function(T,r,n){"use strict";r.__esModule=!0,r.BotMed=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(92963),b=r.BotMed=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=c.locked,l=c.noaccess,d=c.maintpanel,s=c.on,u=c.autopatrol,h=c.canhack,g=c.emagged,v=c.remote_disabled,f=c.painame,N=c.shut_up,V=c.declare_crit,B=c.stationary_mode,S=c.heal_threshold,L=c.injection_amount,w=c.use_beaker,A=c.treat_virus,x=c.reagent_glass;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Communication Settings",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Speaker",checked:!N,disabled:l,onClick:function(){function E(){return i("toggle_speaker")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Critical Patient Alerts",checked:V,disabled:l,onClick:function(){function E(){return i("toggle_critical_alerts")}return E}()})]}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Treatment Settings",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Healing Threshold",children:(0,e.createComponentVNode)(2,t.Slider,{value:S.value,minValue:S.min,maxValue:S.max,step:5,disabled:l,onChange:function(){function E(P,D){return i("set_heal_threshold",{target:D})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Injection Level",children:(0,e.createComponentVNode)(2,t.Slider,{value:L.value,minValue:L.min,maxValue:L.max,step:5,format:function(){function E(P){return P+"u"}return E}(),disabled:l,onChange:function(){function E(P,D){return i("set_injection_amount",{target:D})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reagent Source",children:(0,e.createComponentVNode)(2,t.Button,{content:w?"Beaker":"Internal Synthesizer",icon:w?"flask":"cogs",disabled:l,onClick:function(){function E(){return i("toggle_use_beaker")}return E}()})}),x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:x.amount,minValue:0,maxValue:x.max_amount,children:[x.amount," / ",x.max_amount]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{ml:1,children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject",disabled:l,onClick:function(){function E(){return i("eject_reagent_glass")}return E}()})})]})})]}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{mt:1,fluid:!0,content:"Treat Viral Infections",checked:A,disabled:l,onClick:function(){function E(){return i("toggle_treat_viral")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Stationary Mode",checked:B,disabled:l,onClick:function(){function E(){return i("toggle_stationary_mode")}return E}()})]}),f&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:f,disabled:l,onClick:function(){function E(){return i("ejectpai")}return E}()})})]})})})}return y}()},74439:function(T,r,n){"use strict";r.__esModule=!0,r.BotSecurity=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(92963),b=r.BotSecurity=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=c.noaccess,l=c.painame,d=c.check_id,s=c.check_weapons,u=c.check_warrant,h=c.arrest_mode,g=c.arrest_declare;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:445,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,p.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Who To Arrest",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,content:"Unidentifiable Persons",disabled:m,onClick:function(){function v(){return i("authid")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Unauthorized Weapons",disabled:m,onClick:function(){function v(){return i("authweapon")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Wanted Criminals",disabled:m,onClick:function(){function v(){return i("authwarrant")}return v}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Arrest Procedure",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"Detain Targets Indefinitely",disabled:m,onClick:function(){function v(){return i("arrtype")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Announce Arrests On Radio",disabled:m,onClick:function(){function v(){return i("arrdeclare")}return v}()})]}),l&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:l,disabled:m,onClick:function(){function v(){return i("ejectpai")}return v}()})})]})})}return y}()},10833:function(T,r,n){"use strict";r.__esModule=!0,r.BrigCells=void 0;var e=n(89005),a=n(98595),t=n(36036),o=n(72253),p=function(k,C){var i=k.cell,c=(0,o.useBackend)(C),m=c.act,l=i.cell_id,d=i.occupant,s=i.crimes,u=i.brigged_by,h=i.time_left_seconds,g=i.time_set_seconds,v=i.ref,f="";h>0&&(f+=" BrigCells__listRow--active");var N=function(){m("release",{ref:v})};return(0,e.createComponentVNode)(2,t.Table.Row,{className:f,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:g})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:h})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{type:"button",onClick:N,children:"Release"})})]})},b=function(k){var C=k.cells;return(0,e.createComponentVNode)(2,t.Table,{className:"BrigCells__list",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Cell"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Occupant"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Crimes"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Brigged By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Brigged For"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Release"})]}),C.map(function(i){return(0,e.createComponentVNode)(2,p,{cell:i},i.ref)})]})},y=r.BrigCells=function(){function I(k,C){var i=(0,o.useBackend)(C),c=i.act,m=i.data,l=m.cells;return(0,e.createComponentVNode)(2,a.Window,{theme:"security",width:800,height:400,children:(0,e.createComponentVNode)(2,a.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,b,{cells:l})})})})})}return I}()},45761:function(T,r,n){"use strict";r.__esModule=!0,r.BrigTimer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.BrigTimer=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data;i.nameText=i.occupant,i.timing&&(i.prisoner_hasrec?i.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:i.occupant}):i.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:i.occupant}));var c="pencil-alt";i.prisoner_name&&(i.prisoner_hasrec||(c="exclamation-triangle"));var m=[],l=0;for(l=0;lm?this.substring(0,m)+"...":this};var k=function(l,d){var s,u;if(!d)return[];var h=l.findIndex(function(g){return g.name===d.name});return[(s=l[h-1])==null?void 0:s.name,(u=l[h+1])==null?void 0:u.name]},C=function(l,d){d===void 0&&(d="");var s=(0,p.createSearch)(d,function(u){return u.name});return(0,t.flow)([(0,a.filter)(function(u){return u==null?void 0:u.name}),d&&(0,a.filter)(s),(0,a.sortBy)(function(u){return u.name})])(l)},i=r.CameraConsole=function(){function m(l,d){var s=(0,b.useBackend)(d),u=s.act,h=s.data,g=s.config,v=h.mapRef,f=h.activeCamera,N=C(h.cameras),V=k(N,f),B=V[0],S=V[1];return(0,e.createComponentVNode)(2,I.Window,{width:870,height:708,children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,I.Window.Content,{children:(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,c)})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),f&&f.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-left",disabled:!B,onClick:function(){function L(){return u("switch_camera",{name:B})}return L}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-right",disabled:!S,onClick:function(){function L(){return u("switch_camera",{name:S})}return L}()})],4),(0,e.createComponentVNode)(2,y.ByondUi,{className:"CameraConsole__map",params:{id:v,type:"map"}})],4)]})}return m}(),c=r.CameraConsoleContent=function(){function m(l,d){var s=(0,b.useBackend)(d),u=s.act,h=s.data,g=(0,b.useLocalState)(d,"searchText",""),v=g[0],f=g[1],N=h.activeCamera,V=C(h.cameras,v);return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Input,{fluid:!0,placeholder:"Search for a camera",onInput:function(){function B(S,L){return f(L)}return B}()})}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:V.map(function(B){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid","Button--color--transparent",N&&B.name===N.name&&"Button--selected"]),B.name.trimLongStr(23),0,{title:B.name,onClick:function(){function S(){return u("switch_camera",{name:B.name})}return S}()},B.name)})})})]})}return m}()},39222:function(T,r,n){"use strict";r.__esModule=!0,r.CameraConsoleOldContent=r.CameraConsoleMapContent=r.CameraConsole220=void 0;var e=n(89005),a=n(88510),t=n(64795),o=n(35840),p=n(25328),b=n(72253),y=n(36036),I=n(98595),k=function(d,s){var u,h;if(!s)return[];var g=d.findIndex(function(v){return v.name===s.name});return[(u=d[g-1])==null?void 0:u.name,(h=d[g+1])==null?void 0:h.name]},C=function(d,s){s===void 0&&(s="");var u=(0,p.createSearch)(s,function(h){return h.name});return(0,t.flow)([(0,a.filter)(function(h){return h==null?void 0:h.name}),s&&(0,a.filter)(u),(0,a.sortBy)(function(h){return h.name})])(d)},i=r.CameraConsole220=function(){function l(d,s){var u=(0,b.useLocalState)(s,"tabIndex",0),h=u[0],g=u[1],v=function(){function f(N){switch(N){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,m);default:return"WE SHOULDN'T BE HERE!"}}return f}();return(0,e.createComponentVNode)(2,I.Window,{width:1170,height:755,children:(0,e.createComponentVNode)(2,I.Window.Content,{children:(0,e.createComponentVNode)(2,y.Stack,{children:(0,e.createComponentVNode)(2,y.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{width:h===1?"222px":"475px",textAlign:"center",children:(0,e.createComponentVNode)(2,y.Tabs,{fluid:!0,ml:h===1?1:0,mt:h===1?1:0,children:[(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:h===0,onClick:function(){function f(){return g(0)}return f}(),children:[(0,e.createComponentVNode)(2,y.Icon,{name:"map-marked-alt"})," \u041A\u0430\u0440\u0442\u0430"]},"Map"),(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:h===1,onClick:function(){function f(){return g(1)}return f}(),children:[(0,e.createComponentVNode)(2,y.Icon,{name:"table"})," \u0421\u043F\u0438\u0441\u043E\u043A"]},"List")]})}),v(h)]})})})})}return l}(),c=r.CameraConsoleMapContent=function(){function l(d,s){var u=(0,b.useBackend)(s),h=u.act,g=u.data,v=C(g.cameras),f=(0,b.useLocalState)(s,"zoom",1),N=f[0],V=f[1],B=g.mapRef,S=g.activeCamera,L=g.stationLevel,w=g.mapUrl,A=g.selected_z_level,x=k(v,S),E=x[0],P=x[1];return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{height:"100%",style:{flex:"0 0 474px"},children:(0,e.createComponentVNode)(2,y.NanoMap,{onZoom:function(){function D(M){return V(M)}return D}(),mapUrl:w,children:v.filter(function(D){return D.z===(Number(A)||L)}).map(function(D){return(0,e.createComponentVNode)(2,y.NanoMap.NanoButton,{activeCamera:S,x:D.x,y:D.y,context:s,zoom:N,icon:"circle",tooltip:D.name,name:D.name,color:"blue",status:D.status},D.ref)})})}),(0,e.createComponentVNode)(2,y.Stack.Item,{height:"100%",m:.1,className:"CameraConsole__right_map",children:[(0,e.createVNode)(1,"div","CameraConsole__header",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"\u041A\u0430\u043C\u0435\u0440\u0430: ",16),S&&S.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-left",disabled:!E,onClick:function(){function D(){return h("switch_camera",{name:E})}return D}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-right",disabled:!P,onClick:function(){function D(){return h("switch_camera",{name:P})}return D}()})],4)],4),(0,e.createComponentVNode)(2,y.ByondUi,{className:"CameraConsole__map",overflow:"hidden",params:{id:B,type:"map"}})]})]})}return l}(),m=r.CameraConsoleOldContent=function(){function l(d,s){var u=(0,b.useBackend)(s),h=u.act,g=u.data,v=u.config,f=g.mapRef,N=g.activeCamera,V=(0,b.useLocalState)(s,"searchText",""),B=V[0],S=V[1],L=C(g.cameras,B),w=k(L,N),A=w[0],x=w[1];return(0,e.createComponentVNode)(2,y.Stack.Item,{children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,I.Window.Content,{children:(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Input,{width:"215px",placeholder:"\u041D\u0430\u0439\u0442\u0438 \u043A\u0430\u043C\u0435\u0440\u0443",onInput:function(){function E(P,D){return S(D)}return E}()})}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:L.map(function(E){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid",E.status?"Button--color--transparent":"Button--color--danger","Button--ellipsis",N&&E.name===N.name&&"Button--selected"]),E.name,0,{title:E.name,onClick:function(){function P(){return h("switch_camera",{name:E.name})}return P}()},E.name)})})})]})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"\u041A\u0430\u043C\u0435\u0440\u0430: ",16),N&&N.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-left",disabled:!A,onClick:function(){function E(){return h("switch_camera",{name:A})}return E}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-right",disabled:!x,onClick:function(){function E(){return h("switch_camera",{name:x})}return E}()})],4),(0,e.createComponentVNode)(2,y.ByondUi,{className:"CameraConsole__map",params:{id:f,type:"map"}})],4)]})}return l}()},52927:function(T,r,n){"use strict";r.__esModule=!0,r.Canister=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(49968),b=n(98595),y=r.Canister=function(){function I(k,C){var i=(0,t.useBackend)(C),c=i.act,m=i.data,l=m.portConnected,d=m.tankPressure,s=m.releasePressure,u=m.defaultReleasePressure,h=m.minReleasePressure,g=m.maxReleasePressure,v=m.valveOpen,f=m.name,N=m.canLabel,V=m.colorContainer,B=m.color_index,S=m.hasHoldingTank,L=m.holdingTank,w="";B.prim&&(w=V.prim.options[B.prim].name);var A="";B.sec&&(A=V.sec.options[B.sec].name);var x="";B.ter&&(x=V.ter.options[B.ter].name);var E="";B.quart&&(E=V.quart.options[B.quart].name);var P=[],D=[],M=[],O=[],R=0;for(R=0;Rf.current_positions&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:f.total_positions-f.current_positions})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"0"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"-",disabled:u.cooldown_time||!f.can_close,onClick:function(){function N(){return s("make_job_unavailable",{job:f.title})}return N}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"+",disabled:u.cooldown_time||!f.can_open,onClick:function(){function N(){return s("make_job_available",{job:f.title})}return N}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:u.target_dept&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:u.priority_jobs.indexOf(f.title)>-1?"Yes":""})||(0,e.createComponentVNode)(2,t.Button,{content:f.is_priority?"Yes":"No",selected:f.is_priority,disabled:u.cooldown_time||!f.can_prioritize,onClick:function(){function N(){return s("prioritize_job",{job:f.title})}return N}()})})]},f.title)})]})})]}):v=(0,e.createComponentVNode)(2,I);break;case 2:!u.authenticated||!u.scan_name?v=(0,e.createComponentVNode)(2,I):u.modify_name?v=(0,e.createComponentVNode)(2,p.AccessList,{accesses:u.regions,selectedList:u.selectedAccess,accessMod:function(){function f(N){return s("set",{access:N})}return f}(),grantAll:function(){function f(){return s("grant_all")}return f}(),denyAll:function(){function f(){return s("clear_all")}return f}(),grantDep:function(){function f(N){return s("grant_region",{region:N})}return f}(),denyDep:function(){function f(N){return s("deny_region",{region:N})}return f}()}):v=(0,e.createComponentVNode)(2,k);break;case 3:u.authenticated?u.records.length?v=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Records",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Delete All Records",disabled:!u.authenticated||u.records.length===0||u.target_dept,onClick:function(){function f(){return s("wipe_all_logs")}return f}()}),children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Crewman"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Old Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"New Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Authorized By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Reason"}),!!u.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Deleted By"})]}),u.records.map(function(f){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:f.transferee}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:f.oldvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:f.newvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:f.whodidit}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:f.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:f.reason}),!!u.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{children:f.deletedby})]},f.timestamp)})]}),!!u.iscentcom&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Delete MY Records",color:"purple",disabled:!u.authenticated||u.records.length===0,onClick:function(){function f(){return s("wipe_my_logs")}return f}()})})]}):v=(0,e.createComponentVNode)(2,C):v=(0,e.createComponentVNode)(2,I);break;case 4:!u.authenticated||!u.scan_name?v=(0,e.createComponentVNode)(2,I):v=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Your Team",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Sec Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Actions"})]}),u.people_dept.map(function(f){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:f.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:f.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:f.crimstat}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:f.buttontext,disabled:!f.demotable,onClick:function(){function N(){return s("remote_demote",{remote_demote:f.name})}return N}()})})]},f.title)})]})});break;default:v=(0,e.createComponentVNode)(2,t.Section,{title:"Warning",color:"red",children:"ERROR: Unknown Mode."})}return(0,e.createComponentVNode)(2,o.Window,{width:800,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:g}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:h}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:v})]})})})}return c}()},64083:function(T,r,n){"use strict";r.__esModule=!0,r.CargoConsole=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),p=n(36036),b=n(98595),y=n(25328),I=r.CargoConsole=function(){function d(s,u){return(0,e.createComponentVNode)(2,b.Window,{width:900,height:800,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,l)]})})})}return d}(),k=function(s,u){var h=(0,o.useLocalState)(u,"contentsModal",null),g=h[0],v=h[1],f=(0,o.useLocalState)(u,"contentsModalTitle",null),N=f[0],V=f[1];if(g!==null&&N!==null)return(0,e.createComponentVNode)(2,p.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,p.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[N,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,p.Box,{children:g.map(function(B){return(0,e.createComponentVNode)(2,p.Box,{children:["- ",B]},B)})}),(0,e.createComponentVNode)(2,p.Box,{m:2,children:(0,e.createComponentVNode)(2,p.Button,{content:"Close",onClick:function(){function B(){v(null),V(null)}return B}()})})]})},C=function(s,u){var h=(0,o.useBackend)(u),g=h.act,v=h.data,f=v.is_public,N=v.timeleft,V=v.moving,B=v.at_station,S,L;return!V&&!B?(S="Docked off-station",L="Call Shuttle"):!V&&B?(S="Docked at the station",L="Return Shuttle"):V&&(L="In Transit...",N!==1?S="Shuttle is en route (ETA: "+N+" minutes)":S="Shuttle is en route (ETA: "+N+" minute)"),(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Section,{title:"Status",children:(0,e.createComponentVNode)(2,p.LabeledList,{children:[(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Shuttle Status",children:S}),f===0&&(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,p.Button,{content:L,disabled:V,onClick:function(){function w(){return g("moveShuttle")}return w}()}),(0,e.createComponentVNode)(2,p.Button,{content:"View Central Command Messages",onClick:function(){function w(){return g("showMessages")}return w}()})]})]})})})},i=function(s,u){var h,g=(0,o.useBackend)(u),v=g.act,f=g.data,N=f.accounts,V=(0,o.useLocalState)(u,"selectedAccount"),B=V[0],S=V[1],L=[];return N.map(function(w){return L[w.name]=w.account_UID}),(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Section,{title:"Payment",children:[(0,e.createComponentVNode)(2,p.Dropdown,{width:"190px",options:N.map(function(w){return w.name}),selected:(h=N.filter(function(w){return w.account_UID===B})[0])==null?void 0:h.name,onSelected:function(){function w(A){return S(L[A])}return w}()}),N.filter(function(w){return w.account_UID===B}).map(function(w){return(0,e.createComponentVNode)(2,p.LabeledList,{children:[(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Account Name",children:(0,e.createComponentVNode)(2,p.Stack.Item,{mt:1,children:w.name})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Balance",children:(0,e.createComponentVNode)(2,p.Stack.Item,{children:w.balance})})]},w.account_UID)})]})})},c=function(s,u){var h=(0,o.useBackend)(u),g=h.act,v=h.data,f=v.requests,N=v.categories,V=v.supply_packs,B=(0,o.useSharedState)(u,"category","Emergency"),S=B[0],L=B[1],w=(0,o.useSharedState)(u,"search_text",""),A=w[0],x=w[1],E=(0,o.useLocalState)(u,"contentsModal",null),P=E[0],D=E[1],M=(0,o.useLocalState)(u,"contentsModalTitle",null),O=M[0],R=M[1],j=(0,y.createSearch)(A,function(Q){return Q.name}),_=(0,o.useLocalState)(u,"selectedAccount"),W=_[0],z=_[1],K=(0,a.flow)([(0,t.filter)(function(Q){return Q.cat===N.filter(function(J){return J.name===S})[0].category||A}),A&&(0,t.filter)(j),(0,t.sortBy)(function(Q){return Q.name.toLowerCase()})])(V),G="Crate Catalogue";return A?G="Results for '"+A+"':":S&&(G="Browsing "+S),(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Section,{title:G,buttons:(0,e.createComponentVNode)(2,p.Dropdown,{width:"190px",options:N.map(function(Q){return Q.name}),selected:S,onSelected:function(){function Q(J){return L(J)}return Q}()}),children:[(0,e.createComponentVNode)(2,p.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function Q(J,ue){return x(ue)}return Q}(),mb:1}),(0,e.createComponentVNode)(2,p.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,p.Table,{m:"0.5rem",children:K.map(function(Q){return(0,e.createComponentVNode)(2,p.Table.Row,{children:[(0,e.createComponentVNode)(2,p.Table.Cell,{bold:!0,children:[Q.name," (",Q.cost," Credits)"]}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,p.Button,{content:"Order 1",icon:"shopping-cart",disabled:!W,onClick:function(){function J(){return g("order",{crate:Q.ref,multiple:!1,account:W})}return J}()}),(0,e.createComponentVNode)(2,p.Button,{content:"Order Multiple",icon:"cart-plus",disabled:!W||Q.singleton,onClick:function(){function J(){return g("order",{crate:Q.ref,multiple:!0,account:W})}return J}()}),(0,e.createComponentVNode)(2,p.Button,{content:"View Contents",icon:"search",onClick:function(){function J(){D(Q.contents),R(Q.name)}return J}()})]})]},Q.name)})})})]})})},m=function(s,u){var h=s.request,g,v;switch(h.department){case"Engineering":v="CE",g="orange";break;case"Medical":v="CMO",g="teal";break;case"Science":v="RD",g="purple";break;case"Supply":v="CT",g="brown";break;case"Service":v="HOP",g="olive";break;case"Security":v="HOS",g="red";break;case"Command":v="CAP",g="blue";break;case"Assistant":v="Any Head",g="grey";break}return(0,e.createComponentVNode)(2,p.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{mt:.5,children:"Approval Required:"}),!!h.req_cargo_approval&&(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Button,{color:"brown",content:"QM",icon:"user-tie",tooltip:"This Order requires approval from the QM still"})}),!!h.req_head_approval&&(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Button,{color:g,content:v,disabled:h.req_cargo_approval,icon:"user-tie",tooltip:h.req_cargo_approval?"This Order first requires approval from the QM before the "+v+" can approve it":"This Order requires approval from the "+v+" still"})})]})},l=function(s,u){var h=(0,o.useBackend)(u),g=h.act,v=h.data,f=v.requests,N=v.orders,V=v.shipments;return(0,e.createComponentVNode)(2,p.Section,{fill:!0,scrollable:!0,title:"Orders",children:[(0,e.createComponentVNode)(2,p.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,p.Table,{children:f.map(function(B){return(0,e.createComponentVNode)(2,p.Table.Row,{className:"Cargo_RequestList",children:[(0,e.createComponentVNode)(2,p.Table.Cell,{mb:1,children:[(0,e.createComponentVNode)(2,p.Box,{children:["Order #",B.ordernum,": ",B.supply_type," (",B.cost," credits) for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)," with"," ",B.department?"The "+B.department+" Department":"Their Personal"," Account"]}),(0,e.createComponentVNode)(2,p.Box,{italic:!0,children:["Reason: ",B.comment]}),(0,e.createComponentVNode)(2,m,{request:B})]}),(0,e.createComponentVNode)(2,p.Stack.Item,{textAlign:"right",children:[(0,e.createComponentVNode)(2,p.Button,{content:"Approve",color:"green",disabled:!B.can_approve,onClick:function(){function S(){return g("approve",{ordernum:B.ordernum})}return S}()}),(0,e.createComponentVNode)(2,p.Button,{content:"Deny",color:"red",disabled:!B.can_deny,onClick:function(){function S(){return g("deny",{ordernum:B.ordernum})}return S}()})]})]},B.ordernum)})}),(0,e.createComponentVNode)(2,p.Box,{bold:!0,children:"Orders Awaiting Delivery"}),(0,e.createComponentVNode)(2,p.Table,{m:"0.5rem",children:N.map(function(B){return(0,e.createComponentVNode)(2,p.Table.Row,{children:(0,e.createComponentVNode)(2,p.Table.Cell,{children:[(0,e.createComponentVNode)(2,p.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,p.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})}),(0,e.createComponentVNode)(2,p.Box,{bold:!0,children:"Order in Transit"}),(0,e.createComponentVNode)(2,p.Table,{m:"0.5rem",children:V.map(function(B){return(0,e.createComponentVNode)(2,p.Table.Row,{children:(0,e.createComponentVNode)(2,p.Table.Cell,{children:[(0,e.createComponentVNode)(2,p.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,p.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})})]})}},36232:function(T,r,n){"use strict";r.__esModule=!0,r.ChameleonAppearances=r.Chameleon=void 0;var e=n(89005),a=n(25328),t=n(64795),o=n(88510),p=n(72253),b=n(36036),y=n(98595),I=r.Chameleon=function(){function i(c,m){return(0,e.createComponentVNode)(2,y.Window,{width:431,height:500,theme:"syndicate",children:(0,e.createComponentVNode)(2,y.Window.Content,{children:(0,e.createComponentVNode)(2,C)})})}return i}(),k=function(c,m){m===void 0&&(m="");var l=(0,a.createSearch)(m,function(d){return d.name});return(0,t.flow)([(0,o.filter)(function(d){return d==null?void 0:d.name}),m&&(0,o.filter)(l)])(c)},C=r.ChameleonAppearances=function(){function i(c,m){var l=(0,p.useBackend)(m),d=l.act,s=l.data,u=(0,p.useLocalState)(m,"searchText",""),h=u[0],g=u[1],v=k(s.chameleon_skins,h),f=s.selected_appearance;return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Input,{fluid:!0,placeholder:"Search for an appearance",onInput:function(){function N(V,B){return g(B)}return N}()})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Item Appearance",children:v.map(function(N){var V=N.name+"_"+N.icon_state;return(0,e.createComponentVNode)(2,b.ImageButton,{dmIcon:N.icon,dmIconState:N.icon_state,imageSize:64,m:.5,compact:!0,selected:V===f,tooltip:N.name,style:{opacity:V===f&&"1"||"0.5"},onClick:function(){function B(){d("change_appearance",{new_appearance:V})}return B}()},V)})})})]})}return i}()},87331:function(T,r,n){"use strict";r.__esModule=!0,r.ChangelogView=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.ChangelogView=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=(0,a.useLocalState)(I,"onlyRecent",0),m=c[0],l=c[1],d=i.cl_data,s=i.last_cl,u={FIX:(0,e.createComponentVNode)(2,t.Icon,{name:"tools",title:"Fix"}),WIP:(0,e.createComponentVNode)(2,t.Icon,{name:"hard-hat",title:"WIP",color:"orange"}),TWEAK:(0,e.createComponentVNode)(2,t.Icon,{name:"sliders-h",title:"Tweak"}),SOUNDADD:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",title:"Sound Added",color:"green"}),SOUNDDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-mute",title:"Sound Removed",color:"red"}),CODEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",title:"Code Addition",color:"green"}),CODEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"minus",title:"Code Removal",color:"red"}),IMAGEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-plus",title:"Sprite Addition",color:"green"}),IMAGEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-minus",title:"Sprite Removal",color:"red"}),SPELLCHECK:(0,e.createComponentVNode)(2,t.Icon,{name:"font",title:"Spelling/Grammar Fix"}),EXPERIMENT:(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle",title:"Experimental",color:"orange"})},h=function(){function g(v){return v in u?u[v]:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",color:"green"})}return g}();return(0,e.createComponentVNode)(2,o.Window,{width:750,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"ParadiseSS13 Changelog",mt:2,buttons:(0,e.createComponentVNode)(2,t.Button,{content:m?"Showing all changes":"Showing changes since last connection",onClick:function(){function g(){return l(!m)}return g}()}),children:d.map(function(g){return!m&&g.merge_ts<=s||(0,e.createComponentVNode)(2,t.Section,{mb:2,title:g.author+" - Merged on "+g.merge_date,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"#"+g.num,onClick:function(){function v(){return C("open_pr",{pr_number:g.num})}return v}()}),children:g.entries.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{m:1,children:[h(v.etype)," ",v.etext]},v)})},g)})})})})}return b}()},91360:function(T,r,n){"use strict";r.__esModule=!0,r.CheckboxListInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(36036),p=n(72253),b=n(98595),y=r.CheckboxListInputModal=function(){function k(C,i){var c=(0,p.useBackend)(i),m=c.act,l=c.data,d=l.items,s=d===void 0?[]:d,u=l.message,h=u===void 0?"":u,g=l.init_value,v=l.timeout,f=l.title,N=(0,p.useLocalState)(i,"edittedItems",s),V=N[0],B=N[1],S=330+Math.ceil(h.length/3),L=function(){function w(A){A===void 0&&(A=null);var x=[].concat(V);x=x.map(function(E){return E.key===A.key?Object.assign({},E,{checked:!A.checked}):E}),B(x)}return w}();return(0,e.createComponentVNode)(2,b.Window,{title:f,width:325,height:S,children:[v&&(0,e.createComponentVNode)(2,a.Loader,{value:v}),(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{className:"ListInput__Section",fill:!0,title:h,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,I,{filteredItems:V,onClick:L})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:V})})]})})})]})}return k}(),I=function(C,i){var c=C.filteredItems,m=C.onClick;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:c.map(function(l,d){return(0,e.createComponentVNode)(2,o.Button.Checkbox,{fluid:!0,id:d,onClick:function(){function s(){return m(l)}return s}(),checked:l.checked,style:{animation:"none",transition:"none"},children:l.key.replace(/^\w/,function(s){return s.toUpperCase()})},d)})})}},36108:function(T,r,n){"use strict";r.__esModule=!0,r.ChemDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(85870),p=n(98595),b=[1,5,10,20,30,50],y=[1,5,10],I=r.ChemDispenser=function(){function c(m,l){var d=(0,a.useBackend)(l),s=d.act,u=d.data,h=u.chemicals;return(0,e.createComponentVNode)(2,p.Window,{width:400,height:400+h.length*8,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,i)]})})})}return c}(),k=function(m,l){var d=(0,a.useBackend)(l),s=d.act,u=d.data,h=u.amount,g=u.energy,v=u.maxEnergy;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:g,minValue:0,maxValue:v,ranges:{good:[v*.5,1/0],average:[v*.25,v*.5],bad:[-1/0,v*.25]},children:[g," / ",v," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:b.map(function(f,N){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:h===f,content:f,onClick:function(){function V(){return s("amount",{amount:f})}return V}()})},N)})})})]})})})},C=function(m,l){for(var d=(0,a.useBackend)(l),s=d.act,u=d.data,h=u.chemicals,g=h===void 0?[]:h,v=[],f=0;f<(g.length+1)%3;f++)v.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:u.glass?"Drink Dispenser":"Chemical Dispenser",children:[g.map(function(N,V){return(0,e.createComponentVNode)(2,t.Button,{m:.1,width:"32.5%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",content:N.title,style:{"margin-left":"2px"},onClick:function(){function B(){return s("dispense",{reagent:N.id})}return B}()},V)}),v.map(function(N,V){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%"},V)})]})})},i=function(m,l){var d=(0,a.useBackend)(l),s=d.act,u=d.data,h=u.isBeakerLoaded,g=u.beakerCurrentVolume,v=u.beakerMaxVolume,f=u.beakerContents,N=f===void 0?[]:f;return(0,e.createComponentVNode)(2,t.Stack.Item,{height:16,children:(0,e.createComponentVNode)(2,t.Section,{title:u.glass?"Glass":"Beaker",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Box,{children:[!!h&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[g," / ",v," units"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!h,onClick:function(){function V(){return s("ejectBeaker")}return V}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:h,beakerContents:N,buttons:function(){function V(B){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){function S(){return s("remove",{reagent:B.id,amount:-1})}return S}()}),y.map(function(S,L){return(0,e.createComponentVNode)(2,t.Button,{content:S,onClick:function(){function w(){return s("remove",{reagent:B.id,amount:S})}return w}()},L)}),(0,e.createComponentVNode)(2,t.Button,{content:"ALL",onClick:function(){function S(){return s("remove",{reagent:B.id,amount:B.volume})}return S}()})],0)}return V}()})})})}},13146:function(T,r,n){"use strict";r.__esModule=!0,r.ChemHeater=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(85870),b=n(98595),y=r.ChemHeater=function(){function C(i,c){return(0,e.createComponentVNode)(2,b.Window,{width:350,height:275,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,I),(0,e.createComponentVNode)(2,k)]})})})}return C}(),I=function(i,c){var m=(0,t.useBackend)(c),l=m.act,d=m.data,s=d.targetTemp,u=d.targetTempReached,h=d.autoEject,g=d.isActive,v=d.currentTemp,f=d.isBeakerLoaded;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Settings",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Auto-eject",icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){function N(){return l("toggle_autoeject")}return N}()}),(0,e.createComponentVNode)(2,o.Button,{content:g?"On":"Off",icon:"power-off",selected:g,disabled:!f,onClick:function(){function N(){return l("toggle_on")}return N}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"65px",unit:"K",step:10,stepPixelSize:3,value:(0,a.round)(s,0),minValue:0,maxValue:1e3,onDrag:function(){function N(V,B){return l("adjust_temperature",{target:B})}return N}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reading",color:u?"good":"average",children:f&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:v,format:function(){function N(V){return(0,a.toFixed)(V)+" K"}return N}()})||"\u2014"})]})})})},k=function(i,c){var m=(0,t.useBackend)(c),l=m.act,d=m.data,s=d.isBeakerLoaded,u=d.beakerCurrentVolume,h=d.beakerMaxVolume,g=d.beakerContents;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:!!s&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",mr:2,children:[u," / ",h," units"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",onClick:function(){function v(){return l("eject_beaker")}return v}()})]}),children:(0,e.createComponentVNode)(2,p.BeakerContents,{beakerLoaded:s,beakerContents:g})})})}},56541:function(T,r,n){"use strict";r.__esModule=!0,r.ChemMaster=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(85870),b=n(3939),y=n(35840),I=["icon"];function k(S,L){if(S==null)return{};var w={};for(var A in S)if({}.hasOwnProperty.call(S,A)){if(L.includes(A))continue;w[A]=S[A]}return w}function C(S,L){S.prototype=Object.create(L.prototype),S.prototype.constructor=S,i(S,L)}function i(S,L){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(w,A){return w.__proto__=A,w},i(S,L)}var c=[1,5,10],m=function(L,w){var A=(0,a.useBackend)(w),x=A.act,E=A.data,P=L.args.analysis;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:E.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.createComponentVNode)(2,t.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:P.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:(P.desc||"").length>0?P.desc:"N/A"}),P.blood_type&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood type",children:P.blood_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:P.blood_dna})],4),!E.condi&&(0,e.createComponentVNode)(2,t.Button,{icon:E.printing?"spinner":"print",disabled:E.printing,iconSpin:!!E.printing,ml:"0.5rem",content:"Print",onClick:function(){function D(){return x("print",{idx:P.idx,beaker:L.args.beaker})}return D}()})]})})})})},l=function(S){return S[S.ToDisposals=0]="ToDisposals",S[S.ToBeaker=1]="ToBeaker",S}(l||{}),d=r.ChemMaster=function(){function S(L,w){return(0,e.createComponentVNode)(2,o.Window,{width:575,height:650,children:[(0,e.createComponentVNode)(2,b.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,B)]})})]})}return S}(),s=function(L,w){var A=(0,a.useBackend)(w),x=A.act,E=A.data,P=E.beaker,D=E.beaker_reagents,M=E.buffer_reagents,O=M.length>0;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:O?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!P,content:"Eject and Clear Buffer",onClick:function(){function R(){return x("eject")}return R}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!P,content:"Eject and Clear Buffer",onClick:function(){function R(){return x("eject")}return R}()}),children:P?(0,e.createComponentVNode)(2,p.BeakerContents,{beakerLoaded:!0,beakerContents:D,buttons:function(){function R(j,_){return(0,e.createComponentVNode)(2,t.Box,{mb:_0?(0,e.createComponentVNode)(2,p.BeakerContents,{beakerLoaded:!0,beakerContents:D,buttons:function(){function M(O,R){return(0,e.createComponentVNode)(2,t.Box,{mb:R0&&(O=M.map(function(R){var j=R.id,_=R.sprite;return(0,e.createComponentVNode)(2,N,{icon:_,translucent:!0,onClick:function(){function W(){return x("set_sprite_style",{production_mode:P,style:j})}return W}(),selected:D===j},j)})),(0,e.createComponentVNode)(2,f,{productionData:L.productionData,children:O&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:O})})},B=function(L,w){var A=(0,a.useBackend)(w),x=A.act,E=A.data,P=E.loaded_pill_bottle_style,D=E.containerstyles,M=E.loaded_pill_bottle,O={width:"20px",height:"20px"},R=D.map(function(j){var _=j.color,W=j.name,z=P===_;return(0,e.createComponentVNode)(2,t.Button,{style:{position:"relative",width:O.width,height:O.height},onClick:function(){function K(){return x("set_container_style",{style:_})}return K}(),icon:z&&"check",iconStyle:{position:"relative","z-index":1},tooltip:W,tooltipPosition:"top",children:[!z&&(0,e.createVNode)(1,"div",null,null,1,{style:{display:"inline-block"}}),(0,e.createVNode)(1,"span","Button",null,1,{style:{display:"inline-block",position:"absolute",top:0,left:0,margin:0,padding:0,width:O.width,height:O.height,"background-color":_,opacity:.6,filter:"alpha(opacity=60)"}})]},_)});return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Container Customization",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!M,content:"Eject Container",onClick:function(){function j(){return x("ejectp")}return j}()}),children:M?(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:[(0,e.createComponentVNode)(2,t.Button,{style:{width:O.width,height:O.height},icon:"tint-slash",onClick:function(){function j(){return x("clear_container_style")}return j}(),selected:!P,tooltip:"Default",tooltipPosition:"top"}),R]})}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No pill bottle or patch pack loaded."})})})};(0,b.modalRegisterBodyOverride)("analyze",m)},37173:function(T,r,n){"use strict";r.__esModule=!0,r.CloningConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(79140),b=1,y=32,I=128,k=r.CloningConsole=function(){function d(s,u){var h=(0,a.useBackend)(u),g=h.act,v=h.data,f=v.tab,N=v.has_scanner,V=v.pod_amount;return(0,e.createComponentVNode)(2,o.Window,{width:640,height:520,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Cloning Console",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connected scanner",children:N?"Online":"Missing"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connected pods",children:V})]})}),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:f===1,icon:"home",onClick:function(){function B(){return g("menu",{tab:1})}return B}(),children:"Main Menu"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:f===2,icon:"user",onClick:function(){function B(){return g("menu",{tab:2})}return B}(),children:"Damage Configuration"})]}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,C)})]})})}return d}(),C=function(s,u){var h=(0,a.useBackend)(u),g=h.data,v=g.tab,f;return v===1?f=(0,e.createComponentVNode)(2,i):v===2&&(f=(0,e.createComponentVNode)(2,c)),f},i=function(s,u){var h=(0,a.useBackend)(u),g=h.act,v=h.data,f=v.pods,N=v.pod_amount,V=v.selected_pod_UID;return(0,e.createComponentVNode)(2,t.Box,{children:[!N&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No pods connected."}),!!N&&f.map(function(B,S){return(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Pod "+(S+1),children:(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"96px",shrink:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,p.resolveAsset)("pod_"+(B.cloning?"cloning":"idle")+".gif"),style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Button,{selected:V===B.uid,onClick:function(){function L(){return g("select_pod",{uid:B.uid})}return L}(),children:"Select"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Progress",children:[!B.cloning&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Pod is inactive."}),!!B.cloning&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:B.clone_progress,maxValue:100,color:"good"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Biomass",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:B.biomass,ranges:{good:[2*B.biomass_storage_capacity/3,B.biomass_storage_capacity],average:[B.biomass_storage_capacity/3,2*B.biomass_storage_capacity/3],bad:[0,B.biomass_storage_capacity/3]},minValue:0,maxValue:B.biomass_storage_capacity,children:[B.biomass,"/",B.biomass_storage_capacity+" ("+100*B.biomass/B.biomass_storage_capacity+"%)"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sanguine Reagent",children:B.sanguine_reagent}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Osseous Reagent",children:B.osseous_reagent})]})})]})},B)})]})},c=function(s,u){var h=(0,a.useBackend)(u),g=h.act,v=h.data,f=v.selected_pod_data,N=v.has_scanned,V=v.scanner_has_patient,B=v.feedback,S=v.scan_successful,L=v.cloning_cost,w=v.has_scanner,A=v.currently_scanning;return(0,e.createComponentVNode)(2,t.Box,{children:[!w&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No scanner connected."}),!!w&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Scanner Info",buttons:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hourglass-half",onClick:function(){function x(){return g("scan")}return x}(),disabled:!V||A,children:"Scan"}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function x(){return g("eject")}return x}(),disabled:!V||A,children:"Eject Patient"})]}),children:[!N&&!A&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:V?"No scan detected for current patient.":"No patient is in the scanner."}),(!!N||!!A)&&(0,e.createComponentVNode)(2,t.Box,{color:B.color,children:B.text})]}),(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Damages Breakdown",children:(0,e.createComponentVNode)(2,t.Box,{children:[(!S||!N)&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No valid scan detected."}),!!S&&!!N&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function x(){return g("fix_all")}return x}(),children:"Repair All Damages"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function x(){return g("fix_none")}return x}(),children:"Repair No Damages"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function x(){return g("clone")}return x}(),children:"Clone"})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:L[0],maxValue:f.biomass_storage_capacity,ranges:{bad:[2*f.biomass_storage_capacity/3,f.biomass_storage_capacity],average:[f.biomass_storage_capacity/3,2*f.biomass_storage_capacity/3],good:[0,f.biomass_storage_capacity/3]},color:L[0]>f.biomass?"bad":null,children:["Biomass: ",L[0],"/",f.biomass,"/",f.biomass_storage_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:L[1],maxValue:f.max_reagent_capacity,ranges:{bad:[2*f.max_reagent_capacity/3,f.max_reagent_capacity],average:[f.max_reagent_capacity/3,2*f.max_reagent_capacity/3],good:[0,f.max_reagent_capacity/3]},color:L[1]>f.sanguine_reagent?"bad":"good",children:["Sanguine: ",L[1],"/",f.sanguine_reagent,"/",f.max_reagent_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:L[2],maxValue:f.max_reagent_capacity,ranges:{bad:[2*f.max_reagent_capacity/3,f.max_reagent_capacity],average:[f.max_reagent_capacity/3,2*f.max_reagent_capacity/3],good:[0,f.max_reagent_capacity/3]},color:L[2]>f.osseous_reagent?"bad":"good",children:["Osseous: ",L[2],"/",f.osseous_reagent,"/",f.max_reagent_capacity]})})]}),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,l)]})]})})]})]})},m=function(s,u){var h=(0,a.useBackend)(u),g=h.act,v=h.data,f=v.patient_limb_data,N=v.limb_list,V=v.desired_limb_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Limbs",children:N.map(function(B,S){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"15%",height:"20px",children:[f[B][4],":"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),f[B][3]===0&&(0,e.createComponentVNode)(2,t.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:V[B][0]+V[B][1],maxValue:f[B][5],ranges:{good:[0,f[B][5]/3],average:[f[B][5]/3,2*f[B][5]/3],bad:[2*f[B][5]/3,f[B][5]]},children:["Post-Cloning Damage: ",(0,e.createComponentVNode)(2,t.Icon,{name:"bone"})," "+V[B][0]+" / ",(0,e.createComponentVNode)(2,t.Icon,{name:"fire"})," "+V[B][1]]})}),f[B][3]!==0&&(0,e.createComponentVNode)(2,t.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",f[B][4]," is missing!"]})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[!!f[B][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!V[B][3],onClick:function(){function L(){return g("toggle_limb_repair",{limb:B,type:"replace"})}return L}(),children:"Replace Limb"})}),!f[B][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(f[B][0]||f[B][1]),checked:!(V[B][0]||V[B][1]),onClick:function(){function L(){return g("toggle_limb_repair",{limb:B,type:"damage"})}return L}(),children:"Repair Damages"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(f[B][2]&b),checked:!(V[B][2]&b),onClick:function(){function L(){return g("toggle_limb_repair",{limb:B,type:"bone"})}return L}(),children:"Mend Bone"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(f[B][2]&y),checked:!(V[B][2]&y),onClick:function(){function L(){return g("toggle_limb_repair",{limb:B,type:"ib"})}return L}(),children:"Mend IB"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(f[B][2]&I),checked:!(V[B][2]&I),onClick:function(){function L(){return g("toggle_limb_repair",{limb:B,type:"critburn"})}return L}(),children:"Mend Critical Burn"})]})]})]},B)})})},l=function(s,u){var h=(0,a.useBackend)(u),g=h.act,v=h.data,f=v.patient_organ_data,N=v.organ_list,V=v.desired_organ_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Organs",children:N.map(function(B,S){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"20%",height:"20px",children:[f[B][3],":"," "]}),f[B][5]!=="heart"&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!!f[B][2]&&(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!V[B][2]&&!V[B][1],onClick:function(){function L(){return g("toggle_organ_repair",{organ:B,type:"replace"})}return L}(),children:"Replace Organ"}),!f[B][2]&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!f[B][0],checked:!V[B][0],onClick:function(){function L(){return g("toggle_organ_repair",{organ:B,type:"damage"})}return L}(),children:"Repair Damages"})})]})}),f[B][5]==="heart"&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Heart replacement is required for cloning."}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"35%",children:[!!f[B][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",f[B][3]," is missing!"]}),!f[B][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:V[B][0],maxValue:f[B][4],ranges:{good:[0,f[B][4]/3],average:[f[B][4]/3,2*f[B][4]/3],bad:[2*f[B][4]/3,f[B][4]]},children:"Post-Cloning Damage: "+V[B][0]})]})]})},B)})})}},98723:function(T,r,n){"use strict";r.__esModule=!0,r.CloningPod=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.CloningPod=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.biomass,m=i.biomass_storage_capacity,l=i.sanguine_reagent,d=i.osseous_reagent,s=i.organs,u=i.currently_cloning;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Liquid Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Biomass:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:c,ranges:{good:[2*m/3,m],average:[m/3,2*m/3],bad:[0,m/3]},minValue:0,maxValue:m})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Sanguine Reagent:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:l+" units"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:0,minValue:0,maxValue:l,step:1,unit:"units",onChange:function(){function h(g,v){return C("remove_reagent",{reagent:"sanguine_reagent",amount:v})}return h}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function h(){return C("purge_reagent",{reagent:"sanguine_reagent"})}return h}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Osseous Reagent:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:d+" units"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:0,minValue:0,maxValue:d,step:1,unit:"units",onChange:function(){function h(g,v){return C("remove_reagent",{reagent:"osseous_reagent",amount:v})}return h}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function h(){return C("purge_reagent",{reagent:"osseous_reagent"})}return h}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Organ Storage",children:[!u&&(0,e.createComponentVNode)(2,t.Box,{children:[!s&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No organs loaded."}),!!s&&s.map(function(h){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:h.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject",onClick:function(){function g(){return C("eject_organ",{organ_ref:h.ref})}return g}()})})]},h)})]}),!!u&&(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"lock",size:"5",mb:3}),(0,e.createVNode)(1,"br"),"Unable to access organ storage while cloning."]})})]})]})})}return b}()},18259:function(T,r,n){"use strict";r.__esModule=!0,r.CoinMint=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),p=n(98595),b=r.CoinMint=function(){function y(I,k){var C=(0,t.useBackend)(k),i=C.act,c=C.data,m=c.materials,l=c.moneyBag,d=c.moneyBagContent,s=c.moneyBagMaxContent,u=(l?210:138)+Math.ceil(m.length/4)*64;return(0,e.createComponentVNode)(2,p.Window,{width:210,height:u,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.NoticeBox,{m:0,info:!0,children:["Total coins produced: ",c.totalCoins]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Coin Type",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",color:c.active&&"bad",tooltip:!l&&"Need a money bag",disabled:!l,onClick:function(){function h(){return i("activate")}return h}()}),children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,maxValue:c.maxMaterials,value:c.totalMaterials})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",tooltip:"Eject selected material",onClick:function(){function h(){return i("ejectMat")}return h}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:m.map(function(h){return(0,e.createComponentVNode)(2,o.Button,{bold:!0,inline:!0,translucent:!0,m:.2,textAlign:"center",selected:h.id===c.chosenMaterial,tooltip:h.name,content:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",h.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:h.amount})]}),onClick:function(){function g(){return i("selectMaterial",{material:h.id})}return g}()},h.id)})})]})})}),!!l&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Money Bag",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",disabled:c.active,onClick:function(){function h(){return i("ejectBag")}return h}()}),children:(0,e.createComponentVNode)(2,o.ProgressBar,{width:"100%",minValue:0,maxValue:s,value:d,children:[d," / ",s]})})})]})})})}return y}()},93858:function(T,r,n){"use strict";r.__esModule=!0,r.HexColorInput=r.ColorSelector=r.ColorPickerModal=r.ColorInput=void 0;var e=n(89005),a=n(51057),t=n(72253),o=n(36036),p=n(98595),b=n(44879),y=n(14448),I=n(4454),k=n(35840),C=n(9394),i=n(19203),c=["prefixed","alpha","color","fluid","onChange"];/** * @file * @copyright 2023 itsmeow * @license MIT - */function m(w,A){w.prototype=Object.create(A.prototype),w.prototype.constructor=w,u(w,A)}function u(w,A){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(T,E){return T.__proto__=E,T},u(w,A)}function d(w,A){if(w==null)return{};var T={};for(var E in w)if({}.hasOwnProperty.call(w,E)){if(A.includes(E))continue;T[E]=w[E]}return T}var s=r.ColorPickerModal=function(){function w(A,T){var E=(0,t.useBackend)(T),P=E.data,D=P.timeout,M=P.message,O=P.title,R=P.autofocus,j=P.default_color,_=j===void 0?"#000000":j,W=(0,t.useLocalState)(T,"color_picker_choice",(0,y.hexToHsva)(_)),z=W[0],K=W[1];return(0,e.createComponentVNode)(2,p.Window,{height:400,title:O,width:600,theme:"generic",children:[!!D&&(0,e.createComponentVNode)(2,a.Loader,{value:D}),(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[M&&(0,e.createComponentVNode)(2,o.Stack.Item,{m:1,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Box,{color:"label",overflow:"hidden",children:M})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[!!R&&(0,e.createComponentVNode)(2,o.Autofocus),(0,e.createComponentVNode)(2,l,{color:z,setColor:K,defaultColor:_})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i.InputButtons,{input:(0,y.hsvaToHex)(z)})})]})})]})}return w}(),l=r.ColorSelector=function(){function w(A,T){var E=A.color,P=A.setColor,D=A.defaultColor,M=function(){function j(_){P(function(W){return Object.assign({},W,_)})}return j}(),O=(0,y.hsvaToRgba)(E),R=(0,y.hsvaToHex)(E);return(0,e.createComponentVNode)(2,o.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{mr:2,children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createVNode)(1,"div","react-colorful",[(0,e.createComponentVNode)(2,g,{hsva:E,onChange:M}),(0,e.createComponentVNode)(2,V,{hue:E.h,onChange:M,className:"react-colorful__last-control"})],4)}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"20px",textAlign:"center",children:"Current"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"20px",textAlign:"center",children:"Previous"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Tooltip,{content:R,position:"bottom",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"30px",backgroundColor:R})}),(0,e.createComponentVNode)(2,o.Tooltip,{content:D,position:"bottom",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"30px",backgroundColor:D})})]})]})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:!0,fontSize:"15px",lineHeight:"24px",children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"Hex:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"24px",children:(0,e.createComponentVNode)(2,v,{fluid:!0,color:(0,y.hsvaToHex)(E).substring(1),onChange:function(){function j(_){C.logger.info(_),P((0,y.hexToHsva)(_))}return j}(),prefixed:!0})})]})}),(0,e.createComponentVNode)(2,o.Stack.Divider),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"H:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V,{hue:E.h,onChange:M})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:E.h,callback:function(){function j(_,W){return M({h:W})}return j}(),max:360,unit:"\xB0"})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"S:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,B,{color:E,onChange:M})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:E.s,callback:function(){function j(_,W){return M({s:W})}return j}(),unit:"%"})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"V:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,S,{color:E,onChange:M})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:E.v,callback:function(){function j(_,W){return M({v:W})}return j}(),unit:"%"})})]})}),(0,e.createComponentVNode)(2,o.Stack.Divider),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"R:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,L,{color:E,onChange:M,target:"r"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:O.r,callback:function(){function j(_,W){O.r=W,M((0,y.rgbaToHsva)(O))}return j}(),max:255})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"G:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,L,{color:E,onChange:M,target:"g"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:O.g,callback:function(){function j(_,W){O.g=W,M((0,y.rgbaToHsva)(O))}return j}(),max:255})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"B:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,L,{color:E,onChange:M,target:"b"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:O.b,callback:function(){function j(_,W){O.b=W,M((0,y.rgbaToHsva)(O))}return j}(),max:255})})]})})]})})]})}return w}(),h=function(A){var T=A.value,E=A.callback,P=A.min,D=P===void 0?0:P,M=A.max,O=M===void 0?100:M,R=A.unit;return(0,e.createComponentVNode)(2,o.NumberInput,{width:"70px",value:Math.round(T),step:1,minValue:D,maxValue:O,onChange:E,unit:R})},N=function(A){return"#"+A},v=r.HexColorInput=function(){function w(A){var T=A.prefixed,E=A.alpha,P=A.color,D=A.fluid,M=A.onChange,O=d(A,c),R=function(){function _(W){return W.replace(/([^0-9A-F]+)/gi,"").substring(0,E?8:6)}return _}(),j=function(){function _(W){return(0,y.validHex)(W,E)}return _}();return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f,Object.assign({},O,{fluid:D,color:P,onChange:M,escape:R,format:T?N:void 0,validate:j})))}return w}(),f=r.ColorInput=function(w){function A(E){var P;return P=w.call(this)||this,P.props=void 0,P.state=void 0,P.handleInput=function(D){var M=P.props.escape(D.currentTarget.value);P.setState({localValue:M})},P.handleBlur=function(D){D.currentTarget&&(P.props.validate(D.currentTarget.value)?P.props.onChange(P.props.escape?P.props.escape(D.currentTarget.value):D.currentTarget.value):P.setState({localValue:P.props.escape(P.props.color)}))},P.props=E,P.state={localValue:P.props.escape(P.props.color)},P}m(A,w);var T=A.prototype;return T.componentDidUpdate=function(){function E(P,D){P.color!==this.props.color&&this.setState({localValue:this.props.escape(this.props.color)})}return E}(),T.render=function(){function E(){return(0,e.createComponentVNode)(2,o.Box,{className:(0,k.classes)(["Input",this.props.fluid&&"Input--fluid"]),children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),(0,e.createVNode)(64,"input","Input__input",null,1,{value:this.props.format?this.props.format(this.state.localValue):this.state.localValue,spellCheck:"false",onInput:this.handleInput,onBlur:this.handleBlur})]})}return E}(),A}(e.Component),g=function(A){var T=A.hsva,E=A.onChange,P=function(R){E({s:R.left*100,v:100-R.top*100})},D=function(R){E({s:(0,b.clamp)(T.s+R.left*100,0,100),v:(0,b.clamp)(T.v-R.top*100,0,100)})},M={"background-color":(0,y.hsvaToHslString)({h:T.h,s:100,v:100,a:1})+" !important"};return(0,e.createVNode)(1,"div","react-colorful__saturation_value",(0,e.createComponentVNode)(2,I.Interactive,{onMove:P,onKey:D,"aria-label":"Color","aria-valuetext":"Saturation "+Math.round(T.s)+"%, Brightness "+Math.round(T.v)+"%",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__saturation_value-pointer",top:1-T.v/100,left:T.s/100,color:(0,y.hsvaToHslString)(T)})}),2,{style:M})},V=function(A){var T=A.className,E=A.hue,P=A.onChange,D=function(j){P({h:360*j.left})},M=function(j){P({h:(0,b.clamp)(E+j.left*360,0,360)})},O=(0,k.classes)(["react-colorful__hue",T]);return(0,e.createVNode)(1,"div",O,(0,e.createComponentVNode)(2,I.Interactive,{onMove:D,onKey:M,"aria-label":"Hue","aria-valuenow":Math.round(E),"aria-valuemax":"360","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__hue-pointer",left:E/360,color:(0,y.hsvaToHslString)({h:E,s:100,v:100,a:1})})}),2)},B=function(A){var T=A.className,E=A.color,P=A.onChange,D=function(j){P({s:100*j.left})},M=function(j){P({s:(0,b.clamp)(E.s+j.left*100,0,100)})},O=(0,k.classes)(["react-colorful__saturation",T]);return(0,e.createVNode)(1,"div",O,(0,e.createComponentVNode)(2,I.Interactive,{style:{background:"linear-gradient(to right, "+(0,y.hsvaToHslString)({h:E.h,s:0,v:E.v,a:1})+", "+(0,y.hsvaToHslString)({h:E.h,s:100,v:E.v,a:1})+")"},onMove:D,onKey:M,"aria-label":"Saturation","aria-valuenow":Math.round(E.s),"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__saturation-pointer",left:E.s/100,color:(0,y.hsvaToHslString)({h:E.h,s:E.s,v:E.v,a:1})})}),2)},S=function(A){var T=A.className,E=A.color,P=A.onChange,D=function(j){P({v:100*j.left})},M=function(j){P({v:(0,b.clamp)(E.v+j.left*100,0,100)})},O=(0,k.classes)(["react-colorful__value",T]);return(0,e.createVNode)(1,"div",O,(0,e.createComponentVNode)(2,I.Interactive,{style:{background:"linear-gradient(to right, "+(0,y.hsvaToHslString)({h:E.h,s:E.s,v:0,a:1})+", "+(0,y.hsvaToHslString)({h:E.h,s:E.s,v:100,a:1})+")"},onMove:D,onKey:M,"aria-label":"Value","aria-valuenow":Math.round(E.s),"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__value-pointer",left:E.v/100,color:(0,y.hsvaToHslString)({h:E.h,s:E.s,v:E.v,a:1})})}),2)},L=function(A){var T=A.className,E=A.color,P=A.onChange,D=A.target,M=(0,y.hsvaToRgba)(E),O=function(K){M[D]=K,P((0,y.rgbaToHsva)(M))},R=function(K){O(255*K.left)},j=function(K){O((0,b.clamp)(M[D]+K.left*255,0,255))},_=(0,k.classes)(["react-colorful__"+D,T]),W=D==="r"?"rgb("+Math.round(M.r)+",0,0)":D==="g"?"rgb(0,"+Math.round(M.g)+",0)":"rgb(0,0,"+Math.round(M.b)+")";return(0,e.createVNode)(1,"div",_,(0,e.createComponentVNode)(2,I.Interactive,{onMove:R,onKey:j,"aria-valuenow":M[D],"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__"+D+"-pointer",left:M[D]/255,color:W})}),2)}},8444:function(x,r,n){"use strict";r.__esModule=!0,r.ColourMatrixTester=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.ColourMatrixTester=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.colour_data,m=[[{name:"RR",idx:0},{name:"RG",idx:1},{name:"RB",idx:2},{name:"RA",idx:3}],[{name:"GR",idx:4},{name:"GG",idx:5},{name:"GB",idx:6},{name:"GA",idx:7}],[{name:"BR",idx:8},{name:"BG",idx:9},{name:"BB",idx:10},{name:"BA",idx:11}],[{name:"AR",idx:12},{name:"AG",idx:13},{name:"AB",idx:14},{name:"AA",idx:15}]];return(0,e.createComponentVNode)(2,o.Window,{width:360,height:190,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Modify Matrix",children:m.map(function(u){return(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",textColor:"label",children:u.map(function(d){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:1,children:[d.name,":\xA0",(0,e.createComponentVNode)(2,t.NumberInput,{width:4,value:c[d.idx],step:.05,minValue:-5,maxValue:5,stepPixelSize:5,onChange:function(){function s(l,h){return C("setvalue",{idx:d.idx+1,value:h})}return s}()})]},d.name)})},u)})})})})})}return b}()},63818:function(x,r,n){"use strict";r.__esModule=!0,r.CommunicationsComputer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=function(s){switch(s){case 1:return(0,e.createComponentVNode)(2,I);case 2:return(0,e.createComponentVNode)(2,i);case 3:return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,c)})});case 4:return(0,e.createComponentVNode)(2,u);default:return"ERROR. Unknown menu_state. Please contact NT Technical Support."}},b=r.CommunicationsComputer=function(){function d(s,l){var h=(0,a.useBackend)(l),N=h.act,v=h.data,f=v.menu_state;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),p(f)]})})})}return d}(),y=function(s,l){var h=(0,a.useBackend)(l),N=h.act,v=h.data,f=v.authenticated,g=v.noauthbutton,V=v.esc_section,B=v.esc_callable,S=v.esc_recallable,L=v.esc_status,w=v.authhead,A=v.is_ai,T=v.lastCallLoc,E=!1,P;return f?f===1?P="Command":f===2?P="Captain":f===3?P="CentComm Officer":f===4?(P="CentComm Secure Connection",E=!0):P="ERROR: Report This Bug!":P="Not Logged In",(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Authentication",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Access",children:P})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{icon:f?"sign-out-alt":"id-card",selected:f,disabled:g,content:f?"Log Out ("+P+")":"Log In",onClick:function(){function D(){return N("auth")}return D}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!V&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Escape Shuttle",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!L&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:L}),!!B&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",content:"Call Shuttle",disabled:!w,onClick:function(){function D(){return N("callshuttle")}return D}()})}),!!S&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Recall Shuttle",disabled:!w||A,onClick:function(){function D(){return N("cancelshuttle")}return D}()})}),!!T&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Last Call/Recall From",children:T})]})})})],4)},I=function(s,l){var h=(0,a.useBackend)(l),N=h.act,v=h.data,f=v.is_admin;return f?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,C)},k=function(s,l){var h=(0,a.useBackend)(l),N=h.act,v=h.data,f=v.is_admin,g=v.gamma_armory_location,V=v.admin_levels,B=v.authenticated,S=v.ert_allowed;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"CentComm Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,m,{levels:V,required_access:f,use_confirm:1})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:"Make Central Announcement",disabled:!f,onClick:function(){function L(){return N("send_to_cc_announcement_page")}return L}()}),B===4&&(0,e.createComponentVNode)(2,t.Button,{icon:"plus",content:"Make Other Announcement",disabled:!f,onClick:function(){function L(){return N("make_other_announcement")}return L}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Response Team",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"ambulance",content:"Dispatch ERT",disabled:!f,onClick:function(){function L(){return N("dispatch_ert")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:S,content:S?"ERT calling enabled":"ERT calling disabled",tooltip:S?"Command can request an ERT":"ERTs cannot be requested",disabled:!f,onClick:function(){function L(){return N("toggle_ert_allowed")}return L}(),selected:null})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:"Get Authentication Codes",disabled:!f,onClick:function(){function L(){return N("send_nuke_codes")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gamma Armory",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"biohazard",content:g?"Send Gamma Armory":"Recall Gamma Armory",disabled:!f,onClick:function(){function L(){return N("move_gamma_armory")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"coins",content:"View Economy",disabled:!f,onClick:function(){function L(){return N("view_econ")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fax",content:"Fax Manager",disabled:!f,onClick:function(){function L(){return N("view_fax")}return L}()})]})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"View Command accessible controls",children:(0,e.createComponentVNode)(2,C)})]})},C=function(s,l){var h=(0,a.useBackend)(l),N=h.act,v=h.data,f=v.msg_cooldown,g=v.emagged,V=v.cc_cooldown,B=v.security_level_color,S=v.str_security_level,L=v.levels,w=v.authcapt,A=v.authhead,T=v.messages,E="Make Priority Announcement";f>0&&(E+=" ("+f+"s)");var P=g?"Message [UNKNOWN]":"Message CentComm",D="Request Authentication Codes";return V>0&&(P+=" ("+V+"s)",D+=" ("+V+"s)"),(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Captain-Only Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Alert",color:B,children:S}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,m,{levels:L,required_access:w})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:E,disabled:!w||f>0,onClick:function(){function M(){return N("announce")}return M}()})}),!!g&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",color:"red",content:P,disabled:!w||V>0,onClick:function(){function M(){return N("MessageSyndicate")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!w,onClick:function(){function M(){return N("RestoreBackup")}return M}()})]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",content:P,disabled:!w||V>0,onClick:function(){function M(){return N("MessageCentcomm")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",content:D,disabled:!w||V>0,onClick:function(){function M(){return N("nukerequest")}return M}()})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Command Staff Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Displays",children:(0,e.createComponentVNode)(2,t.Button,{icon:"tv",content:"Change Status Displays",disabled:!A,onClick:function(){function M(){return N("status")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Incoming Messages",children:(0,e.createComponentVNode)(2,t.Button,{icon:"folder-open",content:"View ("+T.length+")",disabled:!A,onClick:function(){function M(){return N("messagelist")}return M}()})})]})})})],4)},i=function(s,l){var h=(0,a.useBackend)(l),N=h.act,v=h.data,f=v.stat_display,g=v.authhead,V=v.current_message_title,B=f.presets.map(function(L){return(0,e.createComponentVNode)(2,t.Button,{content:L.label,selected:L.name===f.type,disabled:!g,onClick:function(){function w(){return N("setstat",{statdisp:L.name})}return w}()},L.name)}),S=f.alerts.map(function(L){return(0,e.createComponentVNode)(2,t.Button,{content:L.label,selected:L.alert===f.icon,disabled:!g,onClick:function(){function w(){return N("setstat",{statdisp:3,alert:L.alert})}return w}()},L.alert)});return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Modify Status Screens",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function L(){return N("main")}return L}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Presets",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alerts",children:S}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:f.line_1,disabled:!g,onClick:function(){function L(){return N("setmsg1")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 2",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:f.line_2,disabled:!g,onClick:function(){function L(){return N("setmsg2")}return L}()})})]})})})},c=function(s,l){var h=(0,a.useBackend)(l),N=h.act,v=h.data,f=v.authhead,g=v.current_message_title,V=v.current_message,B=v.messages,S=v.security_level,L;if(g)L=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:g,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Return To Message List",disabled:!f,onClick:function(){function A(){return N("messagelist")}return A}()}),children:(0,e.createComponentVNode)(2,t.Box,{children:V})})});else{var w=B.map(function(A){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:A.title,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eye",content:"View",disabled:!f||g===A.title,onClick:function(){function T(){return N("messagelist",{msgid:A.id})}return T}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"times",content:"Delete",disabled:!f,onClick:function(){function T(){return N("delmessage",{msgid:A.id})}return T}()})]},A.id)});L=(0,e.createComponentVNode)(2,t.Section,{title:"Messages Received",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function A(){return N("main")}return A}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:w})})}return(0,e.createComponentVNode)(2,t.Box,{children:L})},m=function(s,l){var h=(0,a.useBackend)(l),N=h.act,v=h.data,f=s.levels,g=s.required_access,V=s.use_confirm,B=v.security_level;return V?f.map(function(S){return(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:S.icon,content:S.name,disabled:!g||S.id===B,tooltip:S.tooltip,onClick:function(){function L(){return N("newalertlevel",{level:S.id})}return L}()},S.name)}):f.map(function(S){return(0,e.createComponentVNode)(2,t.Button,{icon:S.icon,content:S.name,disabled:!g||S.id===B,tooltip:S.tooltip,onClick:function(){function L(){return N("newalertlevel",{level:S.id})}return L}()},S.name)})},u=function(s,l){var h=(0,a.useBackend)(l),N=h.act,v=h.data,f=v.is_admin,g=v.possible_cc_sounds;if(!f)return N("main");var V=(0,a.useLocalState)(l,"subtitle",""),B=V[0],S=V[1],L=(0,a.useLocalState)(l,"text",""),w=L[0],A=L[1],T=(0,a.useLocalState)(l,"classified",0),E=T[0],P=T[1],D=(0,a.useLocalState)(l,"beepsound","Beep"),M=D[0],O=D[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Central Command Report",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function R(){return N("main")}return R}()}),children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Subtitle here.",fluid:!0,value:B,onChange:function(){function R(j,_){return S(_)}return R}(),mb:"5px"}),(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Announcement here,\nMultiline input is accepted.",rows:10,fluid:!0,multiline:1,value:w,onChange:function(){function R(j,_){return A(_)}return R}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Send Announcement",fluid:!0,icon:"paper-plane",center:!0,mt:"5px",textAlign:"center",onClick:function(){function R(){return N("make_cc_announcement",{subtitle:B,text:w,classified:E,beepsound:M})}return R}()}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"260px",height:"20px",options:g,selected:M,onSelected:function(){function R(j){return O(j)}return R}(),disabled:E})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"volume-up",mx:"5px",disabled:E,tooltip:"Test sound",onClick:function(){function R(){return N("test_sound",{sound:M})}return R}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:E,content:"Classified",fluid:!0,tooltip:E?"Sent to station communications consoles":"Publically announced",onClick:function(){function R(){return P(!E)}return R}()})})]})]})})}},20562:function(x,r,n){"use strict";r.__esModule=!0,r.CompostBin=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.CompostBin=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.biomass,m=i.compost,u=i.biomass_capacity,d=i.compost_capacity,s=i.potassium,l=i.potassium_capacity,h=i.potash,N=i.potash_capacity,v=(0,a.useSharedState)(I,"vendAmount",1),f=v[0],g=v[1];return(0,e.createComponentVNode)(2,o.Window,{width:360,height:250,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{label:"Resources",children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Biomass",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:c,minValue:0,maxValue:u,ranges:{good:[u*.5,1/0],average:[u*.25,u*.5],bad:[-1/0,u*.25]},children:[c," / ",u," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compost",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:m,minValue:0,maxValue:d,ranges:{good:[d*.5,1/0],average:[d*.25,d*.5],bad:[-1/0,d*.25]},children:[m," / ",d," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Potassium",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:s,minValue:0,maxValue:l,ranges:{good:[l*.5,1/0],average:[l*.25,l*.5],bad:[-1/0,l*.25]},children:[s," / ",l," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Potash",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:h,minValue:0,maxValue:N,ranges:{good:[N*.5,1/0],average:[N*.25,N*.5],bad:[-1/0,N*.25]},children:[h," / ",N," Units"]})})]})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mr:"5px",color:"silver",children:"Soil clumps to make:"}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:f,width:"32px",minValue:1,maxValue:10,stepPixelSize:7,onChange:function(){function V(B,S){return g(S)}return V}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,align:"center",content:"Make Soil",disabled:m<25*f,icon:"arrow-circle-down",onClick:function(){function V(){return C("create",{amount:f})}return V}()})})})]})})})}return b}()},21813:function(x,r,n){"use strict";r.__esModule=!0,r.Contractor=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(73379),b=n(98595);function y(N,v){N.prototype=Object.create(v.prototype),N.prototype.constructor=N,I(N,v)}function I(N,v){return I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,g){return f.__proto__=g,f},I(N,v)}var k={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},C=["Recording biometric data...","Analyzing embedded syndicate info...","STATUS CONFIRMED","Contacting Syndicate database...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Response received, ack 4851234...","CONFIRM ACC "+Math.round(Math.random()*2e4),"Setting up private accounts...","CONTRACTOR ACCOUNT CREATED","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","CONTRACTS FOUND","WELCOME, AGENT"],i=r.Contractor=function(){function N(v,f){var g=(0,t.useBackend)(f),V=g.act,B=g.data,S;B.unauthorized?S=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,l,{height:"100%",allMessages:["ERROR: UNAUTHORIZED USER"],finishedTimeout:100,onFinished:function(){function T(){}return T}()})}):B.load_animation_completed?S=(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:(0,e.createComponentVNode)(2,c)}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",mt:"0.5rem",children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",overflow:"hidden",children:B.page===1?(0,e.createComponentVNode)(2,u,{height:"100%"}):(0,e.createComponentVNode)(2,s,{height:"100%"})})],4):S=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,l,{height:"100%",allMessages:C,finishedTimeout:3e3,onFinished:function(){function T(){return V("complete_load_animation")}return T}()})});var L=(0,t.useLocalState)(f,"viewingPhoto",""),w=L[0],A=L[1];return(0,e.createComponentVNode)(2,b.Window,{theme:"syndicate",width:500,height:600,children:[w&&(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,b.Window.Content,{className:"Contractor",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:S})})]})}return N}(),c=function(v,f){var g=(0,t.useBackend)(f),V=g.act,B=g.data,S=B.tc_available,L=B.tc_paid_out,w=B.completed_contracts,A=B.rep;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Summary",buttons:(0,e.createComponentVNode)(2,o.Box,{verticalAlign:"middle",mt:"0.25rem",children:[A," Rep"]})},v,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Available",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",children:[S," TC"]}),(0,e.createComponentVNode)(2,o.Button,{disabled:S<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){function T(){return V("claim")}return T}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Earned",children:[L," TC"]})]})}),(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contracts Completed",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Box,{height:"20px",lineHeight:"20px",inline:!0,children:w})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},m=function(v,f){var g=(0,t.useBackend)(f),V=g.act,B=g.data,S=B.page;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Tabs,Object.assign({},v,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:S===1,onClick:function(){function L(){return V("page",{page:1})}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"suitcase"}),"Contracts"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:S===2,onClick:function(){function L(){return V("page",{page:2})}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"shopping-cart"}),"Hub"]})]})))},u=function(v,f){var g=(0,t.useBackend)(f),V=g.act,B=g.data,S=B.contracts,L=B.contract_active,w=B.can_extract,A=!!L&&S.filter(function(M){return M.status===1})[0],T=A&&A.time_left>0,E=(0,t.useLocalState)(f,"viewingPhoto",""),P=E[0],D=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Contracts",overflow:"auto",buttons:(0,e.createComponentVNode)(2,o.Button,{disabled:!w||T,icon:"parachute-box",content:["Call Extraction",T&&(0,e.createComponentVNode)(2,p.Countdown,{timeLeft:A.time_left,format:function(){function M(O,R){return" ("+R.substr(3)+")"}return M}()})],onClick:function(){function M(){return V("extract")}return M}()})},v,{children:S.slice().sort(function(M,O){return M.status===1?-1:O.status===1?1:M.status-O.status}).map(function(M){var O;return(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",color:M.status===1&&"good",children:M.target_name}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:M.has_photo&&(0,e.createComponentVNode)(2,o.Button,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){function R(){return D("target_photo_"+M.uid+".png")}return R}()})})]}),className:"Contractor__Contract",buttons:(0,e.createComponentVNode)(2,o.Box,{width:"100%",children:[!!k[M.status]&&(0,e.createComponentVNode)(2,o.Box,{color:k[M.status][1],inline:!0,mt:M.status!==1&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:k[M.status][0]}),M.status===1&&(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"ban",color:"bad",content:"Abort",ml:"0.5rem",onClick:function(){function R(){return V("abort")}return R}()})]}),children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"2",mr:"0.5rem",children:[M.fluff_message,!!M.completed_time&&(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"check",mr:"0.5rem"}),"Contract completed at ",M.completed_time]}),!!M.dead_extraction&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",mt:"0.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"Telecrystals reward reduced drastically as the target was dead during extraction."]}),!!M.fail_reason&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"times",mr:"0.5rem"}),"Contract failed: ",M.fail_reason]})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{flexBasis:"100%",children:[(0,e.createComponentVNode)(2,o.Flex,{mb:"0.5rem",color:"label",children:["Extraction Zone:\xA0",d(M)]}),(O=M.difficulties)==null?void 0:O.map(function(R,j){return(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!!L,content:R.name+" ("+R.reward+" TC)",onClick:function(){function _(){return V("activate",{uid:M.uid,difficulty:j+1})}return _}()},j)}),!!M.objective&&(0,e.createComponentVNode)(2,o.Box,{color:"white",bold:!0,children:[M.objective.extraction_name,(0,e.createVNode)(1,"br"),"(",(M.objective.rewards.tc||0)+" TC",",\xA0",(M.objective.rewards.credits||0)+" Credits",")"]})]})]})},M.uid)})})))},d=function(v){if(!(!v.objective||v.status>1)){var f=v.objective.locs.user_area_id,g=v.objective.locs.user_coords,V=v.objective.locs.target_area_id,B=v.objective.locs.target_coords,S=f===V;return(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:S?"dot-circle-o":"arrow-alt-circle-right-o",color:S?"green":"yellow",rotation:S?null:-(0,a.rad2deg)(Math.atan2(B[1]-g[1],B[0]-g[0])),lineHeight:S?null:"0.85",size:"1.5"})})}},s=function(v,f){var g=(0,t.useBackend)(f),V=g.act,B=g.data,S=B.rep,L=B.buyables;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Purchases",overflow:"auto"},v,{children:L.map(function(w){return(0,e.createComponentVNode)(2,o.Section,{title:w.name,children:[w.description,(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:S-1&&(0,e.createComponentVNode)(2,o.Box,{as:"span",color:w.stock===0?"bad":"good",ml:"0.5rem",children:[w.stock," in stock"]})]},w.uid)})})))},l=function(N){function v(g){var V;return V=N.call(this,g)||this,V.timer=null,V.state={currentIndex:0,currentDisplay:[]},V}y(v,N);var f=v.prototype;return f.tick=function(){function g(){var V=this.props,B=this.state;if(B.currentIndex<=V.allMessages.length){this.setState(function(L){return{currentIndex:L.currentIndex+1}});var S=B.currentDisplay;S.push(V.allMessages[B.currentIndex])}else clearTimeout(this.timer),setTimeout(V.onFinished,V.finishedTimeout)}return g}(),f.componentDidMount=function(){function g(){var V=this,B=this.props.linesPerSecond,S=B===void 0?2.5:B;this.timer=setInterval(function(){return V.tick()},1e3/S)}return g}(),f.componentWillUnmount=function(){function g(){clearTimeout(this.timer)}return g}(),f.render=function(){function g(){return(0,e.createComponentVNode)(2,o.Box,{m:1,children:this.state.currentDisplay.map(function(V){return(0,e.createFragment)([V,(0,e.createVNode)(1,"br")],0,V)})})}return g}(),v}(e.Component),h=function(v,f){var g=(0,t.useLocalState)(f,"viewingPhoto",""),V=g[0],B=g[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Contractor__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:V}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function S(){return B("")}return S}()})]})}},54151:function(x,r,n){"use strict";r.__esModule=!0,r.ConveyorSwitch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.ConveyorSwitch=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.slowFactor,m=i.oneWay,u=i.position;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:135,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lever position",children:u>0?"forward":u<0?"reverse":"neutral"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Allow reverse",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!m,onClick:function(){function d(){return C("toggleOneWay")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slowdown factor",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",onClick:function(){function d(){return C("slowFactor",{value:c-5})}return d}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-left",onClick:function(){function d(){return C("slowFactor",{value:c-1})}return d}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Slider,{width:"100px",mx:"1px",value:c,fillValue:c,minValue:1,maxValue:50,step:1,format:function(){function d(s){return s+"x"}return d}(),onChange:function(){function d(s,l){return C("slowFactor",{value:l})}return d}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-right",onClick:function(){function d(){return C("slowFactor",{value:c+1})}return d}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",onClick:function(){function d(){return C("slowFactor",{value:c+5})}return d}()})," "]})]})})]})})})})}return b}()},73169:function(x,r,n){"use strict";r.__esModule=!0,r.CrewMonitor=void 0;var e=n(89005),a=n(88510),t=n(25328),o=n(72253),p=n(36036),b=n(36352),y=n(76910),I=n(98595),k=n(96184),C=["color"];function i(h,N){if(h==null)return{};var v={};for(var f in h)if({}.hasOwnProperty.call(h,f)){if(N.includes(f))continue;v[f]=h[f]}return v}var c=function(N,v){return N.dead?"Deceased":parseInt(N.health,10)<=v?"Critical":parseInt(N.stat,10)===1?"Unconscious":"Living"},m=function(N,v){return N.dead?"red":parseInt(N.health,10)<=v?"orange":parseInt(N.stat,10)===1?"blue":"green"},u=r.CrewMonitor=function(){function h(N,v){var f=(0,o.useBackend)(v),g=f.act,V=f.data,B=(0,o.useLocalState)(v,"tabIndex",V.tabIndex),S=B[0],L=B[1],w=function(){function T(E){L(E),g("set_tab_index",{tab_index:E})}return T}(),A=function(){function T(E){switch(E){case 0:return(0,e.createComponentVNode)(2,d);case 1:return(0,e.createComponentVNode)(2,l);default:return"WE SHOULDN'T BE HERE!"}}return T}();return(0,e.createComponentVNode)(2,I.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,I.Window.Content,{children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Tabs,{children:[(0,e.createComponentVNode)(2,p.Tabs.Tab,{icon:"table",selected:S===0,onClick:function(){function T(){return w(0)}return T}(),children:"Data View"},"DataView"),(0,e.createComponentVNode)(2,p.Tabs.Tab,{icon:"map-marked-alt",selected:S===1,onClick:function(){function T(){return w(1)}return T}(),children:"Map View"},"MapView")]})}),A(S)]})})})}return h}(),d=function(N,v){var f=(0,o.useBackend)(v),g=f.act,V=f.data,B=V.possible_levels,S=V.viewing_current_z_level,L=V.is_advanced,w=V.highlightedNames,A=(0,a.sortBy)(function(M){return!w.includes(M.name)},function(M){return M.name})(V.crewmembers||[]),T=(0,o.useLocalState)(v,"search",""),E=T[0],P=T[1],D=(0,t.createSearch)(E,function(M){return M.name+"|"+M.assignment+"|"+M.area});return(0,e.createComponentVNode)(2,p.Section,{fill:!0,scrollable:!0,backgroundColor:"transparent",children:[(0,e.createComponentVNode)(2,p.Stack,{children:[(0,e.createComponentVNode)(2,p.Stack.Item,{width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,p.Input,{placeholder:"Search by name, assignment or location..",width:"100%",onInput:function(){function M(O,R){return P(R)}return M}()})}),(0,e.createComponentVNode)(2,p.Stack.Item,{children:L?(0,e.createComponentVNode)(2,p.Dropdown,{mr:"5px",width:"50px",options:B,selected:S,onSelected:function(){function M(O){return g("switch_level",{new_level:O})}return M}()}):null})]}),(0,e.createComponentVNode)(2,p.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,p.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,p.Table.Cell,{children:(0,e.createComponentVNode)(2,p.Button,{tooltip:"Clear highlights",icon:"square-xmark",onClick:function(){function M(){return g("clear_highlighted_names")}return M}()})}),(0,e.createComponentVNode)(2,p.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,p.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,p.Table.Cell,{children:"Location"})]}),A.filter(D).map(function(M){var O=w.includes(M.name);return(0,e.createComponentVNode)(2,p.Table.Row,{bold:!!M.is_command,children:[(0,e.createComponentVNode)(2,b.TableCell,{children:(0,e.createComponentVNode)(2,k.ButtonCheckbox,{checked:O,tooltip:"Mark on map",onClick:function(){function R(){return g(O?"remove_highlighted_name":"add_highlighted_name",{name:M.name})}return R}()})}),(0,e.createComponentVNode)(2,b.TableCell,{children:[M.name," (",M.assignment,")"]}),(0,e.createComponentVNode)(2,b.TableCell,{children:[(0,e.createComponentVNode)(2,p.Box,{inline:!0,color:m(M,V.critThreshold),children:c(M,V.critThreshold)}),M.sensor_type>=2||V.ignoreSensors?(0,e.createComponentVNode)(2,p.Box,{inline:!0,ml:1,children:["(",(0,e.createComponentVNode)(2,p.Box,{inline:!0,color:y.COLORS.damageType.oxy,children:M.oxy}),"|",(0,e.createComponentVNode)(2,p.Box,{inline:!0,color:y.COLORS.damageType.toxin,children:M.tox}),"|",(0,e.createComponentVNode)(2,p.Box,{inline:!0,color:y.COLORS.damageType.burn,children:M.fire}),"|",(0,e.createComponentVNode)(2,p.Box,{inline:!0,color:y.COLORS.damageType.brute,children:M.brute}),")"]}):null]}),(0,e.createComponentVNode)(2,b.TableCell,{children:M.sensor_type===3||V.ignoreSensors?V.isAI||V.isObserver?(0,e.createComponentVNode)(2,p.Button,{fluid:!0,icon:"location-arrow",content:M.area+" ("+M.x+", "+M.y+")",onClick:function(){function R(){return g("track",{track:M.ref})}return R}()}):M.area+" ("+M.x+", "+M.y+")":(0,e.createComponentVNode)(2,p.Box,{inline:!0,color:"grey",children:"Not Available"})})]},M.name)})]})]})},s=function(N,v){var f=N.color,g=i(N,C);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,p.NanoMap.Marker,Object.assign({},g,{children:(0,e.createVNode)(1,"span","highlighted-marker color-border-"+f)})))},l=function(N,v){var f=(0,o.useBackend)(v),g=f.act,V=f.data,B=V.highlightedNames;return(0,e.createComponentVNode)(2,p.Box,{height:"100vh",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,p.NanoMap,{zoom:V.zoom,offsetX:V.offsetX,offsetY:V.offsetY,onZoom:function(){function S(L){return g("set_zoom",{zoom:L})}return S}(),onOffsetChange:function(){function S(L,w){return g("set_offset",{offset_x:w.offsetX,offset_y:w.offsetY})}return S}(),children:V.crewmembers.filter(function(S){return S.sensor_type===3||V.ignoreSensors}).map(function(S){var L=m(S,V.critThreshold),w=B.includes(S.name),A=function(){return V.isObserver?g("track",{track:S.ref}):null},T=function(){return g(w?"remove_highlighted_name":"add_highlighted_name",{name:S.name})},E=S.name+" ("+S.assignment+")";return w?(0,e.createComponentVNode)(2,s,{x:S.x,y:S.y,tooltip:E,color:L,onClick:A,onDblClick:T},S.ref):(0,e.createComponentVNode)(2,p.NanoMap.MarkerIcon,{x:S.x,y:S.y,icon:"circle",tooltip:E,color:L,onClick:A,onDblClick:T},S.ref)})})})}},63987:function(x,r,n){"use strict";r.__esModule=!0,r.Cryo=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],b=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],y=r.Cryo=function(){function C(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:520,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,I)})})})}return C}(),I=function(i,c){var m=(0,a.useBackend)(c),u=m.act,d=m.data,s=d.isOperating,l=d.hasOccupant,h=d.occupant,N=h===void 0?[]:h,v=d.cellTemperature,f=d.cellTemperatureStatus,g=d.isBeakerLoaded,V=d.cooldownProgress,B=d.auto_eject_healthy,S=d.auto_eject_dead;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",onClick:function(){function L(){return u("ejectOccupant")}return L}(),disabled:!l,children:"Eject"}),children:l?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:N.name||"Unknown"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:N.health,max:N.maxHealth,value:N.health/N.maxHealth,color:N.health>0?"good":"average",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(N.health)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:b[N.stat][0],children:b[N.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(N.bodyTemperature)})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),p.map(function(L){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:L.label,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:N[L.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(N[L.type])})})},L.id)})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Cell",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function L(){return u("ejectBeaker")}return L}(),disabled:!g,children:"Eject Beaker"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function L(){return u(s?"switchOff":"switchOn")}return L}(),selected:s,children:s?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",color:f,children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:v})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,k)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dosage interval",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{average:[-1/0,99],good:[99,1/0]},color:!g&&"average",value:V,minValue:0,maxValue:100})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject healthy occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:B?"toggle-on":"toggle-off",selected:B,onClick:function(){function L(){return u(B?"auto_eject_healthy_off":"auto_eject_healthy_on")}return L}(),children:B?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject dead occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:S?"toggle-on":"toggle-off",selected:S,onClick:function(){function L(){return u(S?"auto_eject_dead_off":"auto_eject_dead_on")}return L}(),children:S?"On":"Off"})})]})})})],4)},k=function(i,c){var m=(0,a.useBackend)(c),u=m.act,d=m.data,s=d.isBeakerLoaded,l=d.beakerLabel,h=d.beakerVolume;return s?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!l&&"average",children:[l||"No label",":"]}),(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!h&&"bad",ml:1,children:h?(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h,format:function(){function N(v){return Math.round(v)+" units remaining"}return N}()}):"Beaker is empty"})],4):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"bad",children:"No beaker loaded"})}},86099:function(x,r,n){"use strict";r.__esModule=!0,r.CryopodConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(25328),b=r.CryopodConsole=function(){function k(C,i){var c=(0,a.useBackend)(i),m=c.data,u=m.account_name,d=m.allow_items;return(0,e.createComponentVNode)(2,o.Window,{title:"Cryopod Console",width:400,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Hello, "+(u||"[REDACTED]")+"!",children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,e.createComponentVNode)(2,y),!!d&&(0,e.createComponentVNode)(2,I)]})})}return k}(),y=function(C,i){var c=(0,a.useBackend)(i),m=c.data,u=m.frozen_crew;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Crew",children:u.length?(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(d,s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.name,children:d.rank},s)})})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored crew!"})})},I=function(C,i){var c=(0,a.useBackend)(i),m=c.act,u=c.data,d=u.frozen_items,s=function(h){var N=h.toString();return N.startsWith("the ")&&(N=N.slice(4,N.length)),(0,p.toTitleCase)(N)};return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Items",children:d.length?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s(l.name),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){function h(){return m("one_item",{item:l.uid})}return h}()})},l)})})}),(0,e.createComponentVNode)(2,t.Button,{content:"Drop All Items",color:"red",onClick:function(){function l(){return m("all_items")}return l}()})],4):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored items!"})})}},12692:function(x,r,n){"use strict";r.__esModule=!0,r.DNAModifier=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(3939),b=[["good","Alive"],["average","Critical"],["bad","DEAD"]],y=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],I=[5,10,20,30,50],k=r.DNAModifier=function(){function f(g,V){var B=(0,a.useBackend)(V),S=B.act,L=B.data,w=L.irradiating,A=L.dnaBlockSize,T=L.occupant;V.dnaBlockSize=A,V.isDNAInvalid=!T.isViableSubject||!T.uniqueIdentity||!T.structuralEnzymes;var E;return w&&(E=(0,e.createComponentVNode)(2,N,{duration:w})),(0,e.createComponentVNode)(2,o.Window,{width:660,height:775,children:[(0,e.createComponentVNode)(2,p.ComplexModal),E,(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,C)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i)})]})})]})}return f}(),C=function(g,V){var B=(0,a.useBackend)(V),S=B.act,L=B.data,w=L.locked,A=L.hasOccupant,T=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A,selected:w,icon:w?"toggle-on":"toggle-off",content:w?"Engaged":"Disengaged",onClick:function(){function E(){return S("toggleLock")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A||w,icon:"user-slash",content:"Eject",onClick:function(){function E(){return S("ejectOccupant")}return E}()})],4),children:A?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:T.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:T.minHealth,max:T.maxHealth,value:T.health/T.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:b[T.stat][0],children:b[T.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})}),V.isDNAInvalid?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radiation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:"0",max:"100",value:T.radiationLevel/100,color:"average"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:L.occupant.uniqueEnzymes?L.occupant.uniqueEnzymes:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})],0):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Cell unoccupied."})})},i=function(g,V){var B=(0,a.useBackend)(V),S=B.act,L=B.data,w=L.selectedMenuKey,A=L.hasOccupant,T=L.occupant;if(A){if(V.isDNAInvalid)return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No operation possible on this subject."]})})})}else return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant in DNA modifier."]})})});var E;return w==="ui"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,u)],4):w==="se"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,u)],4):w==="buffer"?E=(0,e.createComponentVNode)(2,d):w==="rejuvenators"&&(E=(0,e.createComponentVNode)(2,h)),(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:y.map(function(P,D){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:P[2],selected:w===P[0],onClick:function(){function M(){return S("selectMenuKey",{key:P[0]})}return M}(),children:P[1]},D)})}),E]})},c=function(g,V){var B=(0,a.useBackend)(V),S=B.act,L=B.data,w=L.selectedUIBlock,A=L.selectedUISubBlock,T=L.selectedUITarget,E=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Unique Identifier",children:[(0,e.createComponentVNode)(2,v,{dnaString:E.uniqueIdentity,selectedBlock:w,selectedSubblock:A,blockSize:V.dnaBlockSize,action:"selectUIBlock"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:15,stepPixelSize:"20",value:T,format:function(){function P(D){return D.toString(16).toUpperCase()}return P}(),ml:"0",onChange:function(){function P(D,M){return S("changeUITarget",{value:M})}return P}()})})}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){function P(){return S("pulseUIRadiation")}return P}()})]})},m=function(g,V){var B=(0,a.useBackend)(V),S=B.act,L=B.data,w=L.selectedSEBlock,A=L.selectedSESubBlock,T=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Structural Enzymes",children:[(0,e.createComponentVNode)(2,v,{dnaString:T.structuralEnzymes,selectedBlock:w,selectedSubblock:A,blockSize:V.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){function E(){return S("pulseSERadiation")}return E}()})]})},u=function(g,V){var B=(0,a.useBackend)(V),S=B.act,L=B.data,w=L.radiationIntensity,A=L.radiationDuration;return(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Emitter",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Intensity",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:10,stepPixelSize:20,value:w,popUpPosition:"right",ml:"0",onChange:function(){function T(E,P){return S("radiationIntensity",{value:P})}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:20,stepPixelSize:10,unit:"s",value:A,popUpPosition:"right",ml:"0",onChange:function(){function T(E,P){return S("radiationDuration",{value:P})}return T}()})})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top-start",mt:"0.5rem",onClick:function(){function T(){return S("pulseRadiation")}return T}()})]})},d=function(g,V){var B=(0,a.useBackend)(V),S=B.act,L=B.data,w=L.buffers,A=w.map(function(T,E){return(0,e.createComponentVNode)(2,s,{id:E+1,name:"Buffer "+(E+1),buffer:T},E)});return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{height:"75%",mt:1,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Buffers",children:A})}),(0,e.createComponentVNode)(2,t.Stack.Item,{height:"25%",children:(0,e.createComponentVNode)(2,l)})]})},s=function(g,V){var B=(0,a.useBackend)(V),S=B.act,L=B.data,w=g.id,A=g.name,T=g.buffer,E=L.isInjectorReady,P=A+(T.data?" - "+T.label:"");return(0,e.createComponentVNode)(2,t.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,t.Section,{title:P,mx:"0",lineHeight:"18px",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!T.data,icon:"trash",content:"Clear",onClick:function(){function D(){return S("bufferOption",{option:"clear",id:w})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T.data,icon:"pen",content:"Rename",onClick:function(){function D(){return S("bufferOption",{option:"changeLabel",id:w})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T.data||!L.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-start",onClick:function(){function D(){return S("bufferOption",{option:"saveDisk",id:w})}return D}()})],4),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Write",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){function D(){return S("bufferOption",{option:"saveUI",id:w})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){function D(){return S("bufferOption",{option:"saveUIAndUE",id:w})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){function D(){return S("bufferOption",{option:"saveSE",id:w})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!L.hasDisk||!L.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){function D(){return S("bufferOption",{option:"loadDisk",id:w})}return D}()})]}),!!T.data&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:T.owner||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[T.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!T.ue&&" and Unique Enzymes"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transfer to",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Injector",mb:"0",onClick:function(){function D(){return S("bufferOption",{option:"createInjector",id:w})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Block Injector",mb:"0",onClick:function(){function D(){return S("bufferOption",{option:"createInjector",id:w,block:1})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){function D(){return S("bufferOption",{option:"transfer",id:w})}return D}()})]})],4)]}),!T.data&&(0,e.createComponentVNode)(2,t.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},l=function(g,V){var B=(0,a.useBackend)(V),S=B.act,L=B.data,w=L.hasDisk,A=L.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!w||!A.data,icon:"trash",content:"Wipe",onClick:function(){function T(){return S("wipeDisk")}return T}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w,icon:"eject",content:"Eject",onClick:function(){function T(){return S("ejectDisk")}return T}()})],4),children:w?A.data?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Label",children:A.label?A.label:"No label"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:A.owner?A.owner:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[A.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!A.ue&&" and Unique Enzymes"]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Disk is blank."}):(0,e.createComponentVNode)(2,t.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"save-o",size:"4"}),(0,e.createVNode)(1,"br"),"No disk inserted."]})})},h=function(g,V){var B=(0,a.useBackend)(V),S=B.act,L=B.data,w=L.isBeakerLoaded,A=L.beakerVolume,T=L.beakerLabel;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Rejuvenators and Beaker",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!w,icon:"eject",content:"Eject",onClick:function(){function E(){return S("ejectBeaker")}return E}()}),children:w?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Inject",children:[I.map(function(E,P){return(0,e.createComponentVNode)(2,t.Button,{disabled:E>A,icon:"syringe",content:E,onClick:function(){function D(){return S("injectRejuvenators",{amount:E})}return D}()},P)}),(0,e.createComponentVNode)(2,t.Button,{disabled:A<=0,icon:"syringe",content:"All",onClick:function(){function E(){return S("injectRejuvenators",{amount:A})}return E}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"0.5rem",children:T||"No label"}),A?(0,e.createComponentVNode)(2,t.Box,{color:"good",children:[A," unit",A===1?"":"s"," remaining"]}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Empty"})]})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No beaker loaded.",16)]})})})},N=function(g,V){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"average",children:(0,e.createVNode)(1,"h1",null,[(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"}),(0,e.createTextVNode)("\xA0Irradiating occupant\xA0"),(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"})],4)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,[(0,e.createTextVNode)("For "),g.duration,(0,e.createTextVNode)(" second"),g.duration===1?"":"s"],0)})]})},v=function(g,V){for(var B=(0,a.useBackend)(V),S=B.act,L=B.data,w=g.dnaString,A=g.selectedBlock,T=g.selectedSubblock,E=g.blockSize,P=g.action,D=w.split(""),M=0,O=[],R=function(){for(var W=j/E+1,z=[],K=function(){var J=G+1;z.push((0,e.createComponentVNode)(2,t.Button,{selected:A===W&&T===J,content:D[j+G],mb:"0",onClick:function(){function ue(){return S(P,{block:W,subblock:J})}return ue}()}))},G=0;Gl.spawnpoints?"red":"green",children:[l.total," total, versus ",l.spawnpoints," spawnpoints"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispatch",children:(0,e.createComponentVNode)(2,t.Button,{width:10.5,textAlign:"center",icon:"ambulance",content:"Send ERT",onClick:function(){function g(){return s("dispatch_ert",{silent:v})}return g}()})})]})})})},C=function(m,u){var d=(0,a.useBackend)(u),s=d.act,l=d.data,h=l.ert_request_messages;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:h&&h.length?h.map(function(N){return(0,e.createComponentVNode)(2,t.Section,{title:N.time,buttons:(0,e.createComponentVNode)(2,t.Button,{content:N.sender_real_name,onClick:function(){function v(){return s("view_player_panel",{uid:N.sender_uid})}return v}(),tooltip:"View player panel"}),children:N.message},(0,p.decodeHtmlEntities)(N.time))}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"broadcast-tower",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No ERT requests."]})})})})},i=function(m,u){var d=(0,a.useBackend)(u),s=d.act,l=d.data,h=(0,a.useLocalState)(u,"text",""),N=h[0],v=h[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter ERT denial reason here,\nMultiline input is accepted.",rows:19,fluid:!0,multiline:1,value:N,onChange:function(){function f(g,V){return v(V)}return f}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Deny ERT",fluid:!0,icon:"times",center:!0,mt:2,textAlign:"center",onClick:function(){function f(){return s("deny_ert",{reason:N})}return f}()})]})})}},90217:function(x,r,n){"use strict";r.__esModule=!0,r.EconomyManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(3939),b=r.EconomyManager=function(){function I(k,C){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:325,children:[(0,e.createComponentVNode)(2,p.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,y)})]})}return I}(),y=function(k,C){var i=(0,a.useBackend)(C),c=i.act,m=i.data,u=m.next_payroll_time;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.4rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"coins",verticalAlign:"middle",size:3,mr:"1rem"}),"Economy Manager"]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.LabeledList,{label:"Pay Bonuses and Deductions",children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Global",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Global Payroll Modification",onClick:function(){function d(){return c("payroll_modification",{mod_type:"global"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Account Payroll Modification",onClick:function(){function d(){return c("payroll_modification",{mod_type:"department"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Members",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Members Payroll Modification",onClick:function(){function d(){return c("payroll_modification",{mod_type:"department_members"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Single Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Crew Member Payroll Modification",onClick:function(){function d(){return c("payroll_modification",{mod_type:"crew_member"})}return d}()})})]}),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Box,{mb:.5,children:["Next Payroll in: ",u," Minutes"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",width:"auto",color:"bad",content:"Delay Payroll",onClick:function(){function d(){return c("delay_payroll")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{width:"auto",content:"Set Payroll Time",onClick:function(){function d(){return c("set_payroll")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",width:"auto",color:"good",content:"Accelerate Payroll",onClick:function(){function d(){return c("accelerate_payroll")}return d}()})]}),(0,e.createComponentVNode)(2,t.NoticeBox,{children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," You take full responsibility for unbalancing the economy with these buttons!"]})],4)}},82565:function(x,r,n){"use strict";r.__esModule=!0,r.Electropack=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(98595),b=r.Electropack=function(){function y(I,k){var C=(0,t.useBackend)(k),i=C.act,c=C.data,m=c.power,u=c.code,d=c.frequency,s=c.minFrequency,l=c.maxFrequency;return(0,e.createComponentVNode)(2,p.Window,{width:360,height:135,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,o.Button,{icon:m?"power-off":"times",content:m?"On":"Off",selected:m,onClick:function(){function h(){return i("power")}return h}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function h(){return i("reset",{reset:"freq"})}return h}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:s/10,maxValue:l/10,value:d/10,format:function(){function h(N){return(0,a.toFixed)(N,1)}return h}(),width:"80px",onChange:function(){function h(N,v){return i("freq",{freq:v})}return h}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function h(){return i("reset",{reset:"code"})}return h}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:u,width:"80px",onChange:function(){function h(N,v){return i("code",{code:v})}return h}()})})]})})})})}return y}()},11243:function(x,r,n){"use strict";r.__esModule=!0,r.Emojipedia=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),p=n(98595),b=r.Emojipedia=function(){function I(k,C){var i=(0,t.useBackend)(C),c=i.data,m=c.emoji_list,u=(0,t.useLocalState)(C,"searchText",""),d=u[0],s=u[1],l=m.filter(function(h){return h.name.toLowerCase().includes(d.toLowerCase())});return(0,e.createComponentVNode)(2,p.Window,{width:325,height:400,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Emojipedia v1.0.1",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by name",value:d,onInput:function(){function h(N,v){return s(v)}return h}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Click on an emoji to copy its tag!",tooltipPosition:"bottom",icon:"circle-question"})],4),children:l.map(function(h){return(0,e.createComponentVNode)(2,o.Button,{m:1,color:"transparent",className:(0,a.classes)(["emoji16x16","emoji-"+h.name]),style:{transform:"scale(1.5)"},tooltip:h.name,onClick:function(){function N(){y(h.name)}return N}()},h.name)})})})})}return I}(),y=function(k){var C=document.createElement("input"),i=":"+k+":";C.value=i,document.body.appendChild(C),C.select(),document.execCommand("copy"),document.body.removeChild(C)}},69784:function(x,r,n){"use strict";r.__esModule=!0,r.EmotePanelContent=r.EmotePanel=void 0;var e=n(89005),a=n(72253),t=n(98595),o=n(36036),p=n(25328),b=r.EmotePanel=function(){function I(k,C){return(0,e.createComponentVNode)(2,t.Window,{width:500,height:550,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,y)})})})}return I}(),y=r.EmotePanelContent=function(){function I(k,C){var i=(0,a.useBackend)(C),c=i.act,m=i.data,u=m.emotes,d=(0,a.useLocalState)(C,"searchText",""),s=d[0],l=d[1],h=(0,a.useLocalState)(C,"filterVisible",""),N=h[0],v=h[1],f=(0,a.useLocalState)(C,"filterAudible",""),g=f[0],V=f[1],B=(0,a.useLocalState)(C,"filterSound",""),S=B[0],L=B[1],w=(0,a.useLocalState)(C,"filterHands",""),A=w[0],T=w[1],E=(0,a.useLocalState)(C,"filterTargettable",""),P=E[0],D=E[1],M=(0,a.useLocalState)(C,"useTarget",""),O=M[0],R=M[1],j=(0,e.createComponentVNode)(2,o.Input,{placeholder:"\u0418\u0441\u043A\u0430\u0442\u044C \u044D\u043C\u043E\u0446\u0438\u044E...",fluid:!0,onInput:function(){function _(W,z){return l(z)}return _}()});return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"\u0424\u0438\u043B\u044C\u0442\u0440\u044B",buttons:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Button,{icon:"eye",align:"center",tooltip:"\u0412\u0438\u0434\u0438\u043C\u044B\u0439",selected:N,onClick:function(){function _(){return v(!N)}return _}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",align:"center",tooltip:"\u0421\u043B\u044B\u0448\u0438\u043C\u044B\u0439",selected:g,onClick:function(){function _(){return V(!g)}return _}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"volume-up",align:"center",tooltip:"\u0417\u0432\u0443\u043A",selected:S,onClick:function(){function _(){return L(!S)}return _}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"hand-paper",align:"center",tooltip:"\u0420\u0443\u043A\u0438",selected:A,onClick:function(){function _(){return T(!A)}return _}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"crosshairs",height:"100%",align:"center",tooltip:"\u0426\u0435\u043B\u044C",selected:P,onClick:function(){function _(){return D(!P)}return _}()})]}),children:j})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:s.length>0?'\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043F\u043E\u0438\u0441\u043A\u0430 "'+s+'"':"\u0412\u0441\u0435 \u044D\u043C\u043E\u0446\u0438\u0438",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"crosshairs",selected:O,onClick:function(){function _(){return R(!O)}return _}(),children:"\u0412\u044B\u0431\u0438\u0440\u0430\u0442\u044C \u0446\u0435\u043B\u044C"}),children:(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:u.filter(function(_){return _.key&&(s.length>0?_.key.toLowerCase().includes(s.toLowerCase())||_.name.toLowerCase().includes(s.toLowerCase()):!0)&&(N?_.visible:!0)&&(g?_.audible:!0)&&(S?_.sound:!0)&&(A?_.hands:!0)&&(P?_.targettable:!0)}).map(function(_){return(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function W(){return c("play_emote",{emote_key:_.key,useTarget:O})}return W}(),children:[_.visible?(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}):"",_.audible?(0,e.createComponentVNode)(2,o.Icon,{name:"comment"}):"",_.sound?(0,e.createComponentVNode)(2,o.Icon,{name:"volume-up"}):"",_.hands?(0,e.createComponentVNode)(2,o.Icon,{name:"hand-paper"}):"",_.targettable?(0,e.createComponentVNode)(2,o.Icon,{name:"crosshairs"}):"",_.name]},_.name)})})})})})],4)}return I}()},36730:function(x,r,n){"use strict";r.__esModule=!0,r.EvolutionMenu=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(98595),b=n(64795),y=n(88510),I=r.EvolutionMenu=function(){function i(c,m){return(0,e.createComponentVNode)(2,p.Window,{width:480,height:580,theme:"changeling",children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,C)]})})})}return i}(),k=function(c,m){var u=(0,t.useBackend)(m),d=u.act,s=u.data,l=s.evo_points,h=s.can_respec;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Evolution Points",height:5.5,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,color:"label",children:"Points remaining:"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,ml:2,bold:!0,color:"#1b945c",children:l}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Button,{ml:2.5,disabled:!h,content:"Readapt",icon:"sync",onClick:function(){function N(){return d("readapt")}return N}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"By transforming a humanoid into a husk, we gain the ability to readapt our chosen evolutions.",tooltipPosition:"bottom",icon:"question-circle"})]})]})})})},C=function(c,m){var u=(0,t.useBackend)(m),d=u.act,s=u.data,l=s.evo_points,h=s.ability_tabs,N=s.purchased_abilities,v=s.view_mode,f=(0,t.useLocalState)(m,"selectedTab",h[0]),g=f[0],V=f[1],B=(0,t.useLocalState)(m,"searchText",""),S=B[0],L=B[1],w=(0,t.useLocalState)(m,"ability_tabs",h[0].abilities),A=w[0],T=w[1],E=function(O,R){if(R===void 0&&(R=""),!O||O.length===0)return[];var j=(0,a.createSearch)(R,function(_){return _.name+"|"+_.description});return(0,b.flow)([(0,y.filter)(function(_){return _==null?void 0:_.name}),(0,y.filter)(j),(0,y.sortBy)(function(_){return _==null?void 0:_.name})])(O)},P=function(O){if(L(O),O==="")return T(g.abilities);T(E(h.map(function(R){return R.abilities}).flat(),O))},D=function(O){V(O),T(O.abilities),L("")};return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Abilities",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Input,{width:"200px",placeholder:"Search Abilities",onInput:function(){function M(O,R){P(R)}return M}(),value:S}),(0,e.createComponentVNode)(2,o.Button,{icon:v?"square-o":"check-square-o",selected:!v,content:"Compact",onClick:function(){function M(){return d("set_view_mode",{mode:0})}return M}()}),(0,e.createComponentVNode)(2,o.Button,{icon:v?"check-square-o":"square-o",selected:v,content:"Expanded",onClick:function(){function M(){return d("set_view_mode",{mode:1})}return M}()})],4),children:[(0,e.createComponentVNode)(2,o.Tabs,{children:h.map(function(M){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:S===""&&g===M,onClick:function(){function O(){D(M)}return O}(),children:M.category},M)})}),A.map(function(M,O){return(0,e.createComponentVNode)(2,o.Box,{p:.5,mx:-1,className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{ml:.5,color:"#dedede",children:M.name}),N.includes(M.power_path)&&(0,e.createComponentVNode)(2,o.Stack.Item,{ml:2,bold:!0,color:"#1b945c",children:"(Purchased)"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mr:3,textAlign:"right",grow:1,children:[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:["Cost:"," "]}),(0,e.createComponentVNode)(2,o.Box,{as:"span",bold:!0,color:"#1b945c",children:M.cost})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{textAlign:"right",children:(0,e.createComponentVNode)(2,o.Button,{mr:.5,disabled:M.cost>l||N.includes(M.power_path),content:"Evolve",onClick:function(){function R(){return d("purchase",{power_path:M.power_path})}return R}()})})]}),!!v&&(0,e.createComponentVNode)(2,o.Stack,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:M.description+" "+M.helptext})]},O)})]})})}},17370:function(x,r,n){"use strict";r.__esModule=!0,r.ExosuitFabricator=void 0;var e=n(89005),a=n(35840),t=n(25328),o=n(72253),p=n(36036),b=n(73379),y=n(98595),I=["id","amount","lineDisplay","onClick"];function k(f,g){if(f==null)return{};var V={};for(var B in f)if({}.hasOwnProperty.call(f,B)){if(g.includes(B))continue;V[B]=f[B]}return V}var C=2e3,i={bananium:"clown",tranquillite:"mime"},c=r.ExosuitFabricator=function(){function f(g,V){var B=(0,o.useBackend)(V),S=B.act,L=B.data,w=L.building,A=L.linked;return A?(0,e.createComponentVNode)(2,y.Window,{width:950,height:625,children:(0,e.createComponentVNode)(2,y.Window.Content,{className:"Exofab",children:[(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,p.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,u)}),w&&(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,d)})]})}),(0,e.createComponentVNode)(2,p.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,s)})]})})]})]})}):(0,e.createComponentVNode)(2,N)}return f}(),m=function(g,V){var B=(0,o.useBackend)(V),S=B.act,L=B.data,w=L.materials,A=L.capacity,T=Object.values(w).reduce(function(E,P){return E+P},0);return(0,e.createComponentVNode)(2,p.Section,{fill:!0,scrollable:!0,title:"Materials",className:"Exofab__materials",buttons:(0,e.createComponentVNode)(2,p.Box,{color:"label",mt:"0.25rem",children:[(T/A*100).toPrecision(3),"% full"]}),children:["metal","glass","silver","gold","uranium","titanium","plasma","diamond","bluespace","bananium","tranquillite","plastic"].map(function(E){return(0,e.createComponentVNode)(2,l,{mt:-2,id:E,bold:E==="metal"||E==="glass",onClick:function(){function P(){return S("withdraw",{id:E})}return P}()},E)})})},u=function(g,V){var B=(0,o.useBackend)(V),S=B.act,L=B.data,w=L.curCategory,A=L.categories,T=L.designs,E=L.syncing,P=(0,o.useLocalState)(V,"searchText",""),D=P[0],M=P[1],O=(0,t.createSearch)(D,function(z){return z.name}),R=T.filter(O),j=(0,o.useLocalState)(V,"levelsModal",!1),_=j[0],W=j[1];return(0,e.createComponentVNode)(2,p.Section,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,e.createComponentVNode)(2,p.Dropdown,{width:"19rem",className:"Exofab__dropdown",selected:w,options:A,onSelected:function(){function z(K){return S("category",{cat:K})}return z}()}),buttons:(0,e.createComponentVNode)(2,p.Box,{mt:"2px",children:[(0,e.createComponentVNode)(2,p.Button,{icon:"plus",content:"Queue all",onClick:function(){function z(){return S("queueall")}return z}()}),(0,e.createComponentVNode)(2,p.Button,{icon:"info",content:"Show current tech levels",onClick:function(){function z(){return W(!0)}return z}()}),(0,e.createComponentVNode)(2,p.Button,{icon:"unlink",color:"red",tooltip:"Disconnect from R&D network",onClick:function(){function z(){return S("unlink")}return z}()})]}),children:[(0,e.createComponentVNode)(2,p.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(){function z(K,G){return M(G)}return z}()}),R.map(function(z){return(0,e.createComponentVNode)(2,h,{design:z},z.id)}),R.length===0&&(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"No designs found."})]})},d=function(g,V){var B=(0,o.useBackend)(V),S=B.act,L=B.data,w=L.building,A=L.buildStart,T=L.buildEnd,E=L.worldTime;return(0,e.createComponentVNode)(2,p.Section,{className:"Exofab__building",stretchContents:!0,children:(0,e.createComponentVNode)(2,p.ProgressBar.Countdown,{start:A,current:E,end:T,children:(0,e.createComponentVNode)(2,p.Stack,{children:[(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Icon,{name:"cog",spin:!0})}),(0,e.createComponentVNode)(2,p.Stack.Item,{children:["Building ",w,"\xA0(",(0,e.createComponentVNode)(2,b.Countdown,{current:E,timeLeft:T-E,format:function(){function P(D,M){return M.substr(3)}return P}()}),")"]})]})})})},s=function(g,V){var B=(0,o.useBackend)(V),S=B.act,L=B.data,w=L.queue,A=L.processingQueue,T=Object.entries(L.queueDeficit).filter(function(P){return P[1]<0}),E=w.reduce(function(P,D){return P+D.time},0);return(0,e.createComponentVNode)(2,p.Section,{fill:!0,scrollable:!0,className:"Exofab__queue",title:"Queue",buttons:(0,e.createComponentVNode)(2,p.Box,{children:[(0,e.createComponentVNode)(2,p.Button,{selected:A,icon:A?"toggle-on":"toggle-off",content:"Process",onClick:function(){function P(){return S("process")}return P}()}),(0,e.createComponentVNode)(2,p.Button,{disabled:w.length===0,icon:"eraser",content:"Clear",onClick:function(){function P(){return S("unqueueall")}return P}()})]}),children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:w.length===0?(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"The queue is empty."}):(0,e.createFragment)([(0,e.createComponentVNode)(2,p.Stack.Item,{className:"Exofab__queue--queue",grow:!0,overflow:"auto",children:w.map(function(P,D){return(0,e.createComponentVNode)(2,p.Box,{color:P.notEnough&&"bad",children:[D+1,". ",P.name,D>0&&(0,e.createComponentVNode)(2,p.Button,{icon:"arrow-up",onClick:function(){function M(){return S("queueswap",{from:D+1,to:D})}return M}()}),D0&&(0,e.createComponentVNode)(2,p.Stack.Item,{className:"Exofab__queue--time",children:[(0,e.createComponentVNode)(2,p.Divider),"Processing time:",(0,e.createComponentVNode)(2,p.Icon,{name:"clock",mx:"0.5rem"}),(0,e.createComponentVNode)(2,p.Box,{inline:!0,bold:!0,children:new Date(E/10*1e3).toISOString().substr(14,5)})]}),Object.keys(T).length>0&&(0,e.createComponentVNode)(2,p.Stack.Item,{className:"Exofab__queue--deficit",shrink:"0",children:[(0,e.createComponentVNode)(2,p.Divider),"Lacking materials to complete:",T.map(function(P){return(0,e.createComponentVNode)(2,p.Box,{children:(0,e.createComponentVNode)(2,l,{id:P[0],amount:-P[1],lineDisplay:!0})},P[0])})]})],0)})})},l=function(g,V){var B=(0,o.useBackend)(V),S=B.act,L=B.data,w=g.id,A=g.amount,T=g.lineDisplay,E=g.onClick,P=k(g,I),D=L.materials[w]||0,M=A||D;if(!(M<=0&&!(w==="metal"||w==="glass"))){var O=A&&A>D;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,p.Stack,Object.assign({align:"center",className:(0,a.classes)(["Exofab__material",T&&"Exofab__material--line"])},P,{children:T?(0,e.createFragment)([(0,e.createComponentVNode)(2,p.Stack.Item,{className:(0,a.classes)(["materials32x32",w])}),(0,e.createComponentVNode)(2,p.Stack.Item,{className:"Exofab__material--amount",color:O&&"bad",ml:0,mr:1,children:M.toLocaleString("en-US")})],4):(0,e.createFragment)([(0,e.createComponentVNode)(2,p.Stack.Item,{basis:"content",children:(0,e.createComponentVNode)(2,p.Button,{width:"85%",color:"transparent",onClick:E,children:(0,e.createComponentVNode)(2,p.Box,{mt:1,className:(0,a.classes)(["materials32x32",w])})})}),(0,e.createComponentVNode)(2,p.Stack.Item,{grow:"1",children:[(0,e.createComponentVNode)(2,p.Box,{className:"Exofab__material--name",children:w}),(0,e.createComponentVNode)(2,p.Box,{className:"Exofab__material--amount",children:[M.toLocaleString("en-US")," cm\xB3 (",Math.round(M/C*10)/10," ","sheets)"]})]})],4)})))}},h=function(g,V){var B=(0,o.useBackend)(V),S=B.act,L=B.data,w=g.design;return(0,e.createComponentVNode)(2,p.Box,{className:"Exofab__design",children:[(0,e.createComponentVNode)(2,p.Button,{disabled:w.notEnough||L.building,icon:"cog",content:w.name,onClick:function(){function A(){return S("build",{id:w.id})}return A}()}),(0,e.createComponentVNode)(2,p.Button,{icon:"plus-circle",onClick:function(){function A(){return S("queue",{id:w.id})}return A}()}),(0,e.createComponentVNode)(2,p.Box,{className:"Exofab__design--cost",children:Object.entries(w.cost).map(function(A){return(0,e.createComponentVNode)(2,p.Box,{children:(0,e.createComponentVNode)(2,l,{id:A[0],amount:A[1],lineDisplay:!0})},A[0])})}),(0,e.createComponentVNode)(2,p.Stack,{className:"Exofab__design--time",children:(0,e.createComponentVNode)(2,p.Stack.Item,{children:[(0,e.createComponentVNode)(2,p.Icon,{name:"clock"}),w.time>0?(0,e.createFragment)([w.time/10,(0,e.createTextVNode)(" seconds")],0):"Instant"]})})]})},N=function(g,V){var B=(0,o.useBackend)(V),S=B.act,L=B.data,w=L.controllers;return(0,e.createComponentVNode)(2,y.Window,{children:(0,e.createComponentVNode)(2,y.Window.Content,{children:(0,e.createComponentVNode)(2,p.Section,{title:"Setup Linkage",children:(0,e.createComponentVNode)(2,p.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,p.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,p.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,p.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,p.Table.Cell,{children:"Link"})]}),w.map(function(A){return(0,e.createComponentVNode)(2,p.Table.Row,{children:[(0,e.createComponentVNode)(2,p.Table.Cell,{children:A.addr}),(0,e.createComponentVNode)(2,p.Table.Cell,{children:A.net_id}),(0,e.createComponentVNode)(2,p.Table.Cell,{children:(0,e.createComponentVNode)(2,p.Button,{content:"Link",icon:"link",onClick:function(){function T(){return S("linktonetworkcontroller",{target_controller:A.addr})}return T}()})})]},A.addr)})]})})})})},v=function(g,V){var B=(0,o.useBackend)(V),S=B.act,L=B.data,w=L.tech_levels,A=(0,o.useLocalState)(V,"levelsModal",!1),T=A[0],E=A[1];return T?(0,e.createComponentVNode)(2,p.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:(0,e.createComponentVNode)(2,p.Section,{title:"Current tech levels",buttons:(0,e.createComponentVNode)(2,p.Button,{content:"Close",onClick:function(){function P(){E(!1)}return P}()}),children:(0,e.createComponentVNode)(2,p.LabeledList,{children:w.map(function(P){var D=P.name,M=P.level;return(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:D,children:M},D)})})})}):null}},59128:function(x,r,n){"use strict";r.__esModule=!0,r.ExperimentConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=new Map([[0,{text:"Conscious",color:"good"}],[1,{text:"Unconscious",color:"average"}],[2,{text:"Deceased",color:"bad"}]]),b=new Map([[0,{label:"Probe",icon:"thermometer"}],[1,{label:"Dissect",icon:"brain"}],[2,{label:"Analyze",icon:"search"}]]),y=r.ExperimentConsole=function(){function I(k,C){var i=(0,a.useBackend)(C),c=i.act,m=i.data,u=m.open,d=m.feedback,s=m.occupant,l=m.occupant_name,h=m.occupant_status,N=function(){function f(){if(!s)return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No specimen detected."});var g=function(){function B(){return p.get(h)}return B}(),V=g();return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:V.color,children:V.text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Experiments",children:[0,1,2].map(function(B){return(0,e.createComponentVNode)(2,t.Button,{icon:b.get(B).icon,content:b.get(B).label,onClick:function(){function S(){return c("experiment",{experiment_type:B})}return S}()},B)})})]})}return f}(),v=N();return(0,e.createComponentVNode)(2,o.Window,{theme:"abductor",width:350,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:d})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Scanner",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!u,onClick:function(){function f(){return c("door")}return f}()}),children:v})]})})}return I}()},97086:function(x,r,n){"use strict";r.__esModule=!0,r.ExternalAirlockController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=0,b=1013,y=function(C){var i="good",c=80,m=95,u=110,d=120;return Cu?i="average":C>d&&(i="bad"),i},I=r.ExternalAirlockController=function(){function k(C,i){var c=(0,a.useBackend)(i),m=c.act,u=c.data,d=u.chamber_pressure,s=u.exterior_status,l=u.interior_status,h=u.processing;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:205,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chamber Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:y(d),value:d,minValue:p,maxValue:b,children:[d," kPa"]})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Abort",icon:"ban",color:"red",disabled:!h,onClick:function(){function N(){return m("abort")}return N}()}),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:h,onClick:function(){function N(){return m("cycle_ext")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:h,onClick:function(){function N(){return m("cycle_int")}return N}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Force Exterior Door",icon:"exclamation-triangle",color:l==="open"?"red":h?"yellow":null,onClick:function(){function N(){return m("force_ext")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Force Interior Door",icon:"exclamation-triangle",color:l==="open"?"red":h?"yellow":null,onClick:function(){function N(){return m("force_int")}return N}()})]})]})]})})}return k}()},96142:function(x,r,n){"use strict";r.__esModule=!0,r.FaxMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.FaxMachine=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data;return(0,e.createComponentVNode)(2,o.Window,{width:540,height:295,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.scan_name?"eject":"id-card",selected:i.scan_name,content:i.scan_name?i.scan_name:"-----",tooltip:i.scan_name?"Eject ID":"Insert ID",onClick:function(){function c(){return C("scan")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorize",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.authenticated?"sign-out-alt":"id-card",selected:i.authenticated,disabled:i.nologin,content:i.realauth?"Log Out":"Log In",onClick:function(){function c(){return C("auth")}return c}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fax Menu",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network",children:i.network}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Document",children:[(0,e.createComponentVNode)(2,t.Button,{icon:i.paper?"eject":"paperclip",disabled:!i.authenticated&&!i.paper,content:i.paper?i.paper:"-----",onClick:function(){function c(){return C("paper")}return c}()}),!!i.paper&&(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function c(){return C("rename")}return c}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sending To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:i.destination?i.destination:"-----",disabled:!i.authenticated,onClick:function(){function c(){return C("dept")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Action",children:(0,e.createComponentVNode)(2,t.Button,{icon:"envelope",content:i.sendError?i.sendError:"Send",disabled:!i.paper||!i.destination||!i.authenticated||i.sendError,onClick:function(){function c(){return C("send")}return c}()})})]})})]})})}return b}()},74123:function(x,r,n){"use strict";r.__esModule=!0,r.FilingCabinet=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.FilingCabinet=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=k.config,m=i.contents,u=c.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Contents",children:[!m&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"folder-open",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"The ",u," is empty."]})}),!!m&&m.slice().map(function(d){return(0,e.createComponentVNode)(2,t.Stack,{mt:.5,className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"80%",children:d.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Retrieve",onClick:function(){function s(){return C("retrieve",{index:d.index})}return s}()})})]},d)})]})})})})}return b}()},83767:function(x,r,n){"use strict";r.__esModule=!0,r.FloorPainter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=function(k,C){var i=(0,a.useBackend)(C),c=i.act,m=i.data,u=k.icon_state,d=k.direction,s=k.isSelected,l=k.onSelect;return(0,e.createComponentVNode)(2,t.DmIcon,{icon:m.icon,icon_state:u,direction:d,onClick:l,style:{"border-style":s&&"solid"||"none","border-width":"2px","border-color":"orange",padding:s&&"0px"||"2px"}})},b={NORTH:1,SOUTH:2,EAST:4,WEST:8},y=r.FloorPainter=function(){function I(k,C){var i=(0,a.useBackend)(C),c=i.act,m=i.data,u=m.availableStyles,d=m.selectedStyle,s=m.selectedDir;return(0,e.createComponentVNode)(2,o.Window,{width:405,height:475,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Decal setup",children:[(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",onClick:function(){function l(){return c("cycle_style",{offset:-1})}return l}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{options:u,selected:d,width:"150px",nochevron:!0,onSelected:function(){function l(h){return c("select_style",{style:h})}return l}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function l(){return c("cycle_style",{offset:1})}return l}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",mb:"5px",children:(0,e.createComponentVNode)(2,t.Flex,{overflowY:"auto",maxHeight:"239px",wrap:"wrap",children:u.map(function(l){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,p,{icon_state:l,isSelected:d===l,onSelect:function(){function h(){return c("select_style",{style:l})}return h}()})},l)})})}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Direction",children:(0,e.createComponentVNode)(2,t.Table,{style:{display:"inline"},children:[b.NORTH,null,b.SOUTH].map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[l+b.WEST,l,l+b.EAST].map(function(h){return(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:h===null?(0,e.createComponentVNode)(2,t.Icon,{name:"arrows-alt",size:3}):(0,e.createComponentVNode)(2,p,{icon_state:d,direction:h,isSelected:h===s,onSelect:function(){function N(){return c("select_direction",{direction:h})}return N}()})},h)})},l)})})})})]})})})}return I}()},53424:function(x,r,n){"use strict";r.__esModule=!0,r.GPS=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(98595),b=function(u){return u?"("+u.join(", ")+")":"ERROR"},y=function(u,d){if(!(!u||!d)){if(u[2]!==d[2])return null;var s=Math.atan2(d[1]-u[1],d[0]-u[0]),l=Math.sqrt(Math.pow(d[1]-u[1],2)+Math.pow(d[0]-u[0],2));return{angle:(0,a.rad2deg)(s),distance:l}}},I=r.GPS=function(){function m(u,d){var s=(0,t.useBackend)(d),l=s.data,h=l.emped,N=l.active,v=l.area,f=l.position,g=l.saved;return(0,e.createComponentVNode)(2,p.Window,{width:400,height:600,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:h?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,k,{emp:!0})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,C)}),N?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i,{area:v,position:f})}),g&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i,{title:"Saved Position",position:g})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,c,{height:"100%"})})],0):(0,e.createComponentVNode)(2,k)],0)})})})}return m}(),k=function(u,d){var s=u.emp;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Box,{width:"100%",height:"100%",color:"label",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:s?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),s?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},C=function(u,d){var s=(0,t.useBackend)(d),l=s.act,h=s.data,N=h.active,v=h.tag,f=h.same_z,g=(0,t.useLocalState)(d,"newTag",v),V=g[0],B=g[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",buttons:(0,e.createComponentVNode)(2,o.Button,{selected:N,icon:N?"toggle-on":"toggle-off",content:N?"On":"Off",onClick:function(){function S(){return l("toggle")}return S}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,o.Input,{width:"5rem",value:v,onEnter:function(){function S(){return l("tag",{newtag:V})}return S}(),onInput:function(){function S(L,w){return B(w)}return S}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:v===V,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function S(){return l("tag",{newtag:V})}return S}(),children:(0,e.createComponentVNode)(2,o.Icon,{name:"pen"})})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,o.Button,{selected:!f,icon:f?"compress":"expand",content:f?"Local Sector":"Global",onClick:function(){function S(){return l("same_z")}return S}()})})]})})},i=function(u,d){var s=u.title,l=u.area,h=u.position;return(0,e.createComponentVNode)(2,o.Section,{title:s||"Position",children:(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",children:[l&&(0,e.createFragment)([l,(0,e.createVNode)(1,"br")],0),b(h)]})})},c=function(u,d){var s=(0,t.useBackend)(d),l=s.data,h=l.position,N=l.signals;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,title:"Signals"},u,{children:(0,e.createComponentVNode)(2,o.Table,{children:N.map(function(v){return Object.assign({},v,y(h,v.position))}).map(function(v,f){return(0,e.createComponentVNode)(2,o.Table.Row,{backgroundColor:f%2===0&&"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{width:"30%",verticalAlign:"middle",color:"label",p:"0.25rem",bold:!0,children:v.tag}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",color:"grey",children:v.area}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",collapsing:!0,children:v.distance!==void 0&&(0,e.createComponentVNode)(2,o.Box,{opacity:Math.max(1-Math.min(v.distance,100)/100,.5),children:[(0,e.createComponentVNode)(2,o.Icon,{name:v.distance>0?"arrow-right":"circle",rotation:-v.angle}),"\xA0",Math.floor(v.distance)+"m"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:b(v.position)})]},f)})})})))}},89124:function(x,r,n){"use strict";r.__esModule=!0,r.GeneModder=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(3939),p=n(98595),b=r.GeneModder=function(){function d(s,l){var h=(0,a.useBackend)(l),N=h.data,v=N.has_seed;return(0,e.createComponentVNode)(2,p.Window,{width:950,height:650,children:[(0,e.createVNode)(1,"div","GeneModder__left",(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,u,{scrollable:!0})}),2),(0,e.createVNode)(1,"div","GeneModder__right",(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,o.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),v===0?(0,e.createComponentVNode)(2,I):(0,e.createComponentVNode)(2,y)]})}),2)]})}return d}(),y=function(s,l){var h=(0,a.useBackend)(l),N=h.act,v=h.data,f=v.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Genes",fill:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})},I=function(s,l){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,height:"85%",children:(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"green",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The plant DNA manipulator is missing a seed."]})})})},k=function(s,l){var h=(0,a.useBackend)(l),N=h.act,v=h.data,f=v.has_seed,g=v.seed,V=v.has_disk,B=v.disk,S,L;return f?S=(0,e.createComponentVNode)(2,t.Stack.Item,{mb:"-6px",mt:"-4px",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+g.image,style:{"vertical-align":"middle",width:"32px",margin:"-1px","margin-left":"-11px"}}),(0,e.createComponentVNode)(2,t.Button,{content:g.name,onClick:function(){function w(){return N("eject_seed")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){function w(){return N("variant_name")}return w}()})]}):S=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:"None",onClick:function(){function w(){return N("eject_seed")}return w}()})}),V?L=B.name:L="None",(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plant Sample",children:S}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Disk",children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:L,tooltip:"Select Empty Disk",onClick:function(){function w(){return N("select_empty_disk")}return w}()})})})]})})},C=function(s,l){var h=(0,a.useBackend)(l),N=h.act,v=h.data,f=v.disk,g=v.core_genes;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core Genes",open:!0,children:[g.map(function(V){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:V.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(f!=null&&f.can_extract),icon:"save",onClick:function(){function B(){return N("extract",{id:V.id})}return B}()})})]},V)})," ",(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract All",disabled:!(f!=null&&f.can_extract),icon:"save",onClick:function(){function V(){return N("bulk_extract_core")}return V}()})})})]},"Core Genes")},i=function(s,l){var h=(0,a.useBackend)(l),N=h.data,v=N.reagent_genes,f=N.has_reagent;return(0,e.createComponentVNode)(2,m,{title:"Reagent Genes",gene_set:v,do_we_show:f})},c=function(s,l){var h=(0,a.useBackend)(l),N=h.data,v=N.trait_genes,f=N.has_trait;return(0,e.createComponentVNode)(2,m,{title:"Trait Genes",gene_set:v,do_we_show:f})},m=function(s,l){var h=s.title,N=s.gene_set,v=s.do_we_show,f=(0,a.useBackend)(l),g=f.act,V=f.data,B=V.disk;return(0,e.createComponentVNode)(2,t.Collapsible,{title:h,open:!0,children:v?N.map(function(S){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:S.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(B!=null&&B.can_extract),icon:"save",onClick:function(){function L(){return g("extract",{id:S.id})}return L}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"times",onClick:function(){function L(){return g("remove",{id:S.id})}return L}()})})]},S)}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"No Genes Detected"})},h)},u=function(s,l){var h=s.title,N=s.gene_set,v=s.do_we_show,f=(0,a.useBackend)(l),g=f.act,V=f.data,B=V.has_seed,S=V.empty_disks,L=V.stat_disks,w=V.trait_disks,A=V.reagent_disks;return(0,e.createComponentVNode)(2,t.Section,{title:"Disks",children:[(0,e.createVNode)(1,"br"),"Empty Disks: ",S,(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{width:12,icon:"arrow-down",tooltip:"Eject an Empty disk",content:"Eject Empty Disk",onClick:function(){function T(){return g("eject_empty_disk")}return T}()}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stats",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[L.slice().sort(function(T,E){return T.display_name.localeCompare(E.display_name)}).map(function(T){return(0,e.createComponentVNode)(2,t.Stack,{mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"49%",children:T.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:25,children:[T.stat==="All"?(0,e.createComponentVNode)(2,t.Button,{content:"Replace All",tooltip:"Write disk stats to seed",disabled:!(T!=null&&T.ready)||!B,icon:"arrow-circle-down",onClick:function(){function E(){return g("bulk_replace_core",{index:T.index})}return E}()}):(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-circle-down",tooltip:"Write disk stat to seed",disabled:!T||!B,content:"Replace",onClick:function(){function E(){return g("replace",{index:T.index,stat:T.stat})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-right",content:"Select",tooltip:"Choose as target for extracted genes",tooltipPosition:"bottom-start",onClick:function(){function E(){return g("select",{index:T.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:5,icon:"arrow-down",content:"Eject",tooltip:"Eject Disk",tooltipPosition:"bottom-start",onClick:function(){function E(){return g("eject_disk",{index:T.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:2,icon:T.read_only?"lock":"lock-open",content:"",tool_tip:"Set/unset Read Only",onClick:function(){function E(){return g("set_read_only",{index:T.index,read_only:T.read_only})}return E}()})]})]},T)}),(0,e.createComponentVNode)(2,t.Button)]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Traits",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[w.slice().sort(function(T,E){return T.display_name.localeCompare(E.display_name)}).map(function(T){return(0,e.createComponentVNode)(2,t.Stack,{mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"49%",children:T.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:25,children:[(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-circle-down",disabled:!T||!T.can_insert,tooltip:"Add disk trait to seed",content:"Insert",onClick:function(){function E(){return g("insert",{index:T.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-right",content:"Select",tooltip:"Choose as target for extracted genes",tooltipPosition:"bottom-start",onClick:function(){function E(){return g("select",{index:T.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:5,icon:"arrow-down",content:"Eject",tooltip:"Eject Disk",tooltipPosition:"bottom-start",onClick:function(){function E(){return g("eject_disk",{index:T.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:2,icon:T.read_only?"lock":"lock-open",content:"",tool_tip:"Set/unset Read Only",onClick:function(){function E(){return g("set_read_only",{index:T.index,read_only:T.read_only})}return E}()})]})]},T)}),(0,e.createComponentVNode)(2,t.Button)]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Reagents",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[A.slice().sort(function(T,E){return T.display_name.localeCompare(E.display_name)}).map(function(T){return(0,e.createComponentVNode)(2,t.Stack,{mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"49%",children:T.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:25,children:[(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-circle-down",disabled:!T||!T.can_insert,tooltip:"Add disk reagent to seed",content:"Insert",onClick:function(){function E(){return g("insert",{index:T.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-right",content:"Select",tooltip:"Choose as target for extracted genes",tooltipPosition:"bottom-start",onClick:function(){function E(){return g("select",{index:T.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:5,icon:"arrow-down",content:"Eject",tooltip:"Eject Disk",tooltipPosition:"bottom-start",onClick:function(){function E(){return g("eject_disk",{index:T.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:2,icon:T.read_only?"lock":"lock-open",content:"",tool_tip:"Set/unset Read Only",onClick:function(){function E(){return g("set_read_only",{index:T.index,read_only:T.read_only})}return E}()})]})]},T)}),(0,e.createComponentVNode)(2,t.Button)]})})]})]})}},73053:function(x,r,n){"use strict";r.__esModule=!0,r.GenericCrewManifest=void 0;var e=n(89005),a=n(36036),t=n(98595),o=n(41874),p=r.GenericCrewManifest=function(){function b(y,I){return(0,e.createComponentVNode)(2,t.Window,{theme:"nologo",width:588,height:510,children:(0,e.createComponentVNode)(2,t.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,a.Section,{noTopPadding:!0,children:(0,e.createComponentVNode)(2,o.CrewManifest)})})})}return b}()},42914:function(x,r,n){"use strict";r.__esModule=!0,r.GhostHudPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.GhostHudPanel=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.data,c=i.security,m=i.medical,u=i.diagnostic,d=i.radioactivity,s=i.ahud;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:207,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,b,{label:"Medical",type:"medical",is_active:m}),(0,e.createComponentVNode)(2,b,{label:"Security",type:"security",is_active:c}),(0,e.createComponentVNode)(2,b,{label:"Diagnostic",type:"diagnostic",is_active:u}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,b,{label:"Radioactivity",type:"radioactivity",is_active:d,act_on:"rads_on",act_off:"rads_off"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,b,{label:"Antag HUD",is_active:s,act_on:"ahud_on",act_off:"ahud_off"})]})})})}return y}(),b=function(I,k){var C=(0,a.useBackend)(k),i=C.act,c=I.label,m=I.type,u=m===void 0?null:m,d=I.is_active,s=I.act_on,l=s===void 0?"hud_on":s,h=I.act_off,N=h===void 0?"hud_off":h;return(0,e.createComponentVNode)(2,t.Flex,{pt:.3,color:"label",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{pl:.5,align:"center",width:"80%",children:c}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:.6,content:d?"On":"Off",icon:d?"toggle-on":"toggle-off",selected:d,onClick:function(){function v(){return i(d?N:l,{hud_type:u})}return v}()})})]})}},25825:function(x,r,n){"use strict";r.__esModule=!0,r.GlandDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.GlandDispenser=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.glands,m=c===void 0?[]:c;return(0,e.createComponentVNode)(2,o.Window,{width:300,height:338,theme:"abductor",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:m.map(function(u){return(0,e.createComponentVNode)(2,t.Button,{width:"60px",height:"60px",m:.75,textAlign:"center",fontSize:"17px",lineHeight:"55px",icon:"eject",backgroundColor:u.color,content:u.amount||"0",disabled:!u.amount,onClick:function(){function d(){return C("dispense",{gland_id:u.id})}return d}()},u.id)})})})})}return b}()},10270:function(x,r,n){"use strict";r.__esModule=!0,r.GravityGen=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.GravityGen=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.charging_state,m=i.charge_count,u=i.breaker,d=i.ext_power,s=function(){function h(N){return N>0?(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"average",children:["[ ",N===1?"Charging":"Discharging"," ]"]}):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:d?"good":"bad",children:["[ ",d?"Powered":"Unpowered"," ]"]})}return h}(),l=function(){function h(N){if(N>0)return(0,e.createComponentVNode)(2,t.NoticeBox,{danger:!0,p:1.5,children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," Radiation Detected!"]})}return h}();return(0,e.createComponentVNode)(2,o.Window,{width:350,height:170,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[l(c),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Generator Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u?"power-off":"times",content:u?"Online":"Offline",color:u?"green":"red",px:1.5,onClick:function(){function h(){return C("breaker")}return h}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Status",color:d?"good":"bad",children:s(c)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gravity Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:m/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})})]})})]})})})}return b}()},48657:function(x,r,n){"use strict";r.__esModule=!0,r.GuestPass=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(49148),b=r.GuestPass=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:690,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"id-card",selected:!c.showlogs,onClick:function(){function m(){return i("mode",{mode:0})}return m}(),children:"Issue Pass"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"scroll",selected:c.showlogs,onClick:function(){function m(){return i("mode",{mode:1})}return m}(),children:["Records (",c.issue_log.length,")"]})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.scan_name?"eject":"id-card",selected:c.scan_name,content:c.scan_name?c.scan_name:"-----",tooltip:c.scan_name?"Eject ID":"Insert ID",onClick:function(){function m(){return i("scan")}return m}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!c.showlogs&&(0,e.createComponentVNode)(2,t.Section,{title:"Issue Guest Pass",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Issue To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.giv_name?c.giv_name:"-----",disabled:!c.scan_name,onClick:function(){function m(){return i("giv_name")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reason",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.reason?c.reason:"-----",disabled:!c.scan_name,onClick:function(){function m(){return i("reason")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.duration?c.duration:"-----",disabled:!c.scan_name,onClick:function(){function m(){return i("duration")}return m}()})})]})})}),!c.showlogs&&(c.scan_name?(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,p.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:c.printmsg,disabled:!c.canprint,onClick:function(){function m(){return i("issue")}return m}()}),grantableList:c.grantableList,accesses:c.regions,selectedList:c.selectedAccess,accessMod:function(){function m(u){return i("access",{access:u})}return m}(),grantAll:function(){function m(){return i("grant_all")}return m}(),denyAll:function(){function m(){return i("clear_all")}return m}(),grantDep:function(){function m(u){return i("grant_region",{region:u})}return m}(),denyDep:function(){function m(u){return i("deny_region",{region:u})}return m}()})}):(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"id-card",size:5,color:"gray",mb:5}),(0,e.createVNode)(1,"br"),"Please, insert ID Card"]})})})})),!!c.showlogs&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Issuance Log",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:!c.scan_name,onClick:function(){function m(){return i("print")}return m}()}),children:!!c.issue_log.length&&(0,e.createComponentVNode)(2,t.LabeledList,{children:c.issue_log.map(function(m,u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:m},u)})})||(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No logs"]})})})})]})})})}return y}()},67834:function(x,r,n){"use strict";r.__esModule=!0,r.HandheldChemDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=[1,5,10,20,30,50],b=null,y=r.HandheldChemDispenser=function(){function C(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:390,height:430,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,I),(0,e.createComponentVNode)(2,k)]})})})}return C}(),I=function(i,c){var m=(0,a.useBackend)(c),u=m.act,d=m.data,s=d.amount,l=d.energy,h=d.maxEnergy,N=d.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:l,minValue:0,maxValue:h,ranges:{good:[h*.5,1/0],average:[h*.25,h*.5],bad:[-1/0,h*.25]},children:[l," / ",h," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Amount",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:p.map(function(v,f){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:s===v,content:v,onClick:function(){function g(){return u("amount",{amount:v})}return g}()})},f)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mode",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:N==="dispense",content:"Dispense",m:"0",width:"32%",onClick:function(){function v(){return u("mode",{mode:"dispense"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:N==="remove",content:"Remove",m:"0",width:"32%",onClick:function(){function v(){return u("mode",{mode:"remove"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:N==="isolate",content:"Isolate",m:"0",width:"32%",onClick:function(){function v(){return u("mode",{mode:"isolate"})}return v}()})]})})]})})})},k=function(i,c){for(var m=(0,a.useBackend)(c),u=m.act,d=m.data,s=d.chemicals,l=s===void 0?[]:s,h=d.current_reagent,N=[],v=0;v<(l.length+1)%3;v++)N.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,height:"18%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:d.glass?"Drink Selector":"Chemical Selector",children:[l.map(function(f,g){return(0,e.createComponentVNode)(2,t.Button,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:h===f.id,content:f.title,style:{"margin-left":"2px"},onClick:function(){function V(){return u("dispense",{reagent:f.id})}return V}()},g)}),N.map(function(f,g){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:"1",basis:"25%"},g)})]})})}},46098:function(x,r,n){"use strict";r.__esModule=!0,r.HealthSensor=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(98595),b=r.HealthSensor=function(){function I(k,C){var i=(0,t.useBackend)(C),c=i.act,m=i.data,u=m.on,d=m.user_health,s=m.minHealth,l=m.maxHealth,h=m.alarm_health;return(0,e.createComponentVNode)(2,p.Window,{width:300,height:125,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scanning",children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:u?"On":"Off",color:u?null:"red",selected:u,onClick:function(){function N(){return c("scan_toggle")}return N}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health activation",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:2,stepPixelSize:6,minValue:s,maxValue:l,value:h,format:function(){function N(v){return(0,a.toFixed)(v,1)}return N}(),width:"80px",onDrag:function(){function N(v,f){return c("alarm_health",{alarm_health:f})}return N}()})}),d!==null&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"User health",children:(0,e.createComponentVNode)(2,o.Box,{color:y(d),bold:d>=100,children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:d})})})]})})})})}return I}(),y=function(k){return k>50?"green":k>0?"orange":"red"}},36771:function(x,r,n){"use strict";r.__esModule=!0,r.Holodeck=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.Holodeck=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=(0,a.useLocalState)(k,"currentDeck",""),u=m[0],d=m[1],s=(0,a.useLocalState)(k,"showReload",!1),l=s[0],h=s[1],N=c.decks,v=c.ai_override,f=c.emagged,g=function(){function V(B){i("select_deck",{deck:B}),d(B),h(!0),setTimeout(function(){h(!1)},3e3)}return V}();return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:[l&&(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Holodeck Control System",children:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"b",null,"Currently Loaded Program:",16)," ",u]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Available Programs",children:[N.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{width:15.5,color:"transparent",content:V,selected:V===u,onClick:function(){function B(){return g(V)}return B}()},V)}),(0,e.createVNode)(1,"hr",null,null,1,{color:"gray"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!v&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Override Protocols",children:(0,e.createComponentVNode)(2,t.Button,{content:f?"Turn On":"Turn Off",color:f?"good":"bad",onClick:function(){function V(){return i("ai_override")}return V}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety Protocols",children:(0,e.createComponentVNode)(2,t.Box,{color:f?"bad":"good",children:[f?"Off":"On",!!f&&(0,e.createComponentVNode)(2,t.Button,{ml:9.5,width:15.5,color:"red",content:"Wildlife Simulation",onClick:function(){function V(){return i("wildlifecarp")}return V}()})]})})]})]})})]})})]})}return y}(),b=function(I,k){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"white",children:(0,e.createVNode)(1,"h1",null,"\xA0Recalibrating projection apparatus.\xA0",16)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,"Please, wait for 3 seconds.",16)})]})}},25471:function(x,r,n){"use strict";r.__esModule=!0,r.Instrument=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(98595),b=r.Instrument=function(){function i(c,m){var u=(0,t.useBackend)(m),d=u.act,s=u.data;return(0,e.createComponentVNode)(2,p.Window,{width:600,height:505,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,I),(0,e.createComponentVNode)(2,C)]})})]})}return i}(),y=function(c,m){var u=(0,t.useBackend)(m),d=u.act,s=u.data,l=s.help;if(l)return(0,e.createComponentVNode)(2,o.Modal,{maxWidth:"75%",height:window.innerHeight*.75+"px",mx:"auto",py:"0",px:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{height:"100%",title:"Help",level:"2",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{px:"0.5rem",mt:"-0.5rem",children:[(0,e.createVNode)(1,"h1",null,"Making a Song",16),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen: "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen: "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"h1",null,"Instrument Advanced Settings",16),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Type:"}),(0,e.createTextVNode)("\xA0Whether the instrument is legacy or synthesized."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Legacy instruments have a collection of sounds that are selectively used depending on the note to play."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Synthesized instruments use a base sound and change its pitch to match the note to play.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Current:"}),(0,e.createTextVNode)("\xA0Which instrument sample to play. Some instruments can be tuned to play different samples. Experiment!")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Note Shift/Note Transpose:"}),(0,e.createTextVNode)("\xA0The pitch to apply to all notes of the song.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain Mode:"}),(0,e.createTextVNode)("\xA0How a played note fades out."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Linear sustain means a note will fade out at a constant rate."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Exponential sustain means a note will fade out at an exponential rate, sounding smoother.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Volume Dropoff Threshold:"}),(0,e.createTextVNode)("\xA0The volume threshold at which a note is fully stopped.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain indefinitely last held note:"}),(0,e.createTextVNode)("\xA0Whether the last note should be sustained indefinitely.")],4)],4),(0,e.createComponentVNode)(2,o.Button,{color:"grey",content:"Close",onClick:function(){function h(){return d("help")}return h}()})]})})})},I=function(c,m){var u=(0,t.useBackend)(m),d=u.act,s=u.data,l=s.lines,h=s.playing,N=s.repeat,v=s.maxRepeats,f=s.tempo,g=s.minTempo,V=s.maxTempo,B=s.tickLag,S=s.volume,L=s.minVolume,w=s.maxVolume,A=s.ready;return(0,e.createComponentVNode)(2,o.Section,{title:"Instrument",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"info",content:"Help",onClick:function(){function T(){return d("help")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file",content:"New",onClick:function(){function T(){return d("newsong")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"upload",content:"Import",onClick:function(){function T(){return d("import")}return T}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Playback",children:[(0,e.createComponentVNode)(2,o.Button,{selected:h,disabled:l.length===0||N<0,icon:"play",content:"Play",onClick:function(){function T(){return d("play")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!h,icon:"stop",content:"Stop",onClick:function(){function T(){return d("stop")}return T}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Repeat",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:0,maxValue:v,value:N,stepPixelSize:59,onChange:function(){function T(E,P){return d("repeat",{new:P})}return T}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tempo",children:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{disabled:f>=V,content:"-",as:"span",mr:"0.5rem",onClick:function(){function T(){return d("tempo",{new:f+B})}return T}()}),(0,a.round)(600/f)," BPM",(0,e.createComponentVNode)(2,o.Button,{disabled:f<=g,content:"+",as:"span",ml:"0.5rem",onClick:function(){function T(){return d("tempo",{new:f-B})}return T}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:L,maxValue:w,value:S,stepPixelSize:6,onDrag:function(){function T(E,P){return d("setvolume",{new:P})}return T}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:A?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Ready"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Instrument Definition Error!"})})]}),(0,e.createComponentVNode)(2,k)]})},k=function(c,m){var u=(0,t.useBackend)(m),d=u.act,s=u.data,l=s.allowedInstrumentNames,h=s.instrumentLoaded,N=s.instrument,v=s.canNoteShift,f=s.noteShift,g=s.noteShiftMin,V=s.noteShiftMax,B=s.sustainMode,S=s.sustainLinearDuration,L=s.sustainExponentialDropoff,w=s.legacy,A=s.sustainDropoffVolume,T=s.sustainHeldNote,E,P;return B===1?(E="Linear",P=(0,e.createComponentVNode)(2,o.Slider,{minValue:.1,maxValue:5,value:S,step:.5,stepPixelSize:85,format:function(){function D(M){return(0,a.round)(M*100)/100+" seconds"}return D}(),onChange:function(){function D(M,O){return d("setlinearfalloff",{new:O/10})}return D}()})):B===2&&(E="Exponential",P=(0,e.createComponentVNode)(2,o.Slider,{minValue:1.025,maxValue:10,value:L,step:.01,format:function(){function D(M){return(0,a.round)(M*1e3)/1e3+"% per decisecond"}return D}(),onChange:function(){function D(M,O){return d("setexpfalloff",{new:O})}return D}()})),l.sort(),(0,e.createComponentVNode)(2,o.Box,{my:-1,children:(0,e.createComponentVNode)(2,o.Collapsible,{mt:"1rem",mb:"0",title:"Advanced",children:(0,e.createComponentVNode)(2,o.Section,{mt:-1,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Type",children:w?"Legacy":"Synthesized"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current",children:h?(0,e.createComponentVNode)(2,o.Dropdown,{options:l,selected:N,width:"50%",onSelected:function(){function D(M){return d("switchinstrument",{name:M})}return D}()}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None!"})}),!!(!w&&v)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Note Shift/Note Transpose",children:(0,e.createComponentVNode)(2,o.Slider,{minValue:g,maxValue:V,value:f,stepPixelSize:2,format:function(){function D(M){return M+" keys / "+(0,a.round)(M/12*100)/100+" octaves"}return D}(),onChange:function(){function D(M,O){return d("setnoteshift",{new:O})}return D}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain Mode",children:[(0,e.createComponentVNode)(2,o.Dropdown,{options:["Linear","Exponential"],selected:E,mb:"0.4rem",onSelected:function(){function D(M){return d("setsustainmode",{new:M})}return D}()}),P]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume Dropoff Threshold",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:.01,maxValue:100,value:A,stepPixelSize:6,onChange:function(){function D(M,O){return d("setdropoffvolume",{new:O})}return D}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain indefinitely last held note",children:(0,e.createComponentVNode)(2,o.Button,{selected:T,icon:T?"toggle-on":"toggle-off",content:T?"Yes":"No",onClick:function(){function D(){return d("togglesustainhold")}return D}()})})],4)]}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){function D(){return d("reset")}return D}()})]})})})},C=function(c,m){var u=(0,t.useBackend)(m),d=u.act,s=u.data,l=s.playing,h=s.lines,N=s.editing;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Editor",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!N||l,icon:"plus",content:"Add Line",onClick:function(){function v(){return d("newline",{line:h.length+1})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{selected:!N,icon:N?"chevron-up":"chevron-down",onClick:function(){function v(){return d("edit")}return v}()})],4),children:!!N&&(h.length>0?(0,e.createComponentVNode)(2,o.LabeledList,{children:h.map(function(v,f){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:f+1,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:l,icon:"pen",onClick:function(){function g(){return d("modifyline",{line:f+1})}return g}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:l,icon:"trash",onClick:function(){function g(){return d("deleteline",{line:f+1})}return g}()})],4),children:v},f)})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Song is empty."}))})}},52736:function(x,r,n){"use strict";r.__esModule=!0,r.Jukebox=void 0;var e=n(89005),a=n(88510),t=n(64795),o=n(72253),p=n(36036),b=n(98595),y=r.Jukebox=function(){function C(i,c){var m=(0,o.useBackend)(c),u=m.act,d=m.data,s=d.active,l=d.looping,h=d.track_selected,N=d.volume,v=d.max_volume,f=d.songs,g=d.startTime,V=d.endTime,B=d.worldTime,S=d.need_coin,L=d.payment,w=d.advanced_admin,A=35,T=!L&&S&&!w,E=(0,t.flow)([(0,a.sortBy)(function(j){return j.name})])(f),P=f.find(function(j){return j.name===h}),D=E.length,M=P?E.findIndex(function(j){return j.name===P.name})+1:0,O=function(){function j(_){var W=Math.floor(_/60),z=_%60,K=String(W).padStart(2,"0")+":"+String(z).padStart(2,"0");return K}return j}(),R=(0,e.createComponentVNode)(2,p.Box,{textAlign:"center",children:[s?l?"\u221E":O(Math.round((B-g)/10)):l?"\u221E":O(P.length)," ","/ ",l?"\u221E":O(P.length)]});return(0,e.createComponentVNode)(2,b.Window,{width:350,height:435,title:"\u041C\u0443\u0437\u044B\u043A\u0430\u043B\u044C\u043D\u044B\u0439 \u0430\u0432\u0442\u043E\u043C\u0430\u0442",children:[T?(0,e.createComponentVNode)(2,k):null,(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.Stack,{children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,p.Section,{fill:!0,title:"\u041F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{bold:!0,maxWidth:"240px",children:P.name.length>A?(0,e.createVNode)(1,"marquee",null,P.name,0):P.name}),(0,e.createComponentVNode)(2,p.Stack,{fill:!0,mt:1.5,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,p.Button,{fluid:!0,icon:s?"pause":"play",color:"transparent",content:s?"\u0421\u0442\u043E\u043F":"\u0421\u0442\u0430\u0440\u0442",selected:s,onClick:function(){function j(){return u("toggle")}return j}()})}),(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,p.Button.Checkbox,{fluid:!0,icon:"undo",content:"\u041F\u043E\u0432\u0442\u043E\u0440",disabled:s||S&&!w,tooltip:S&&!w?"\u0412\u044B \u043D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u0432\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440 \u0437\u0430 \u043C\u043E\u043D\u0435\u0442\u043A\u0443":null,checked:l,onClick:function(){function j(){return u("loop",{looping:!l})}return j}()})})]}),(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.ProgressBar.Countdown,{start:g,current:l?V:B,end:V,children:R})})]})})}),(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Section,{children:[s?(0,e.createComponentVNode)(2,I):null,(0,e.createComponentVNode)(2,p.Stack,{fill:!0,mb:1.5,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,p.Button,{color:"transparent",icon:"fast-backward",onClick:function(){function j(){return u("set_volume",{volume:"min"})}return j}()})}),(0,e.createComponentVNode)(2,p.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,p.Button,{color:"transparent",icon:"undo",onClick:function(){function j(){return u("set_volume",{volume:"reset"})}return j}()})}),(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,m:0,textAlign:"right",children:(0,e.createComponentVNode)(2,p.Button,{color:"transparent",icon:"fast-forward",onClick:function(){function j(){return u("set_volume",{volume:"max"})}return j}()})})]}),(0,e.createComponentVNode)(2,p.Stack.Item,{textAlign:"center",textColor:"label",children:[(0,e.createComponentVNode)(2,p.Knob,{size:2,color:N<=25?"green":N<=50?"":N<=75?"orange":"red",value:N,unit:"%",minValue:0,maxValue:v,step:1,stepPixelSize:5,onDrag:function(){function j(_,W){return u("set_volume",{volume:W})}return j}()}),"Volume"]})]})})]}),(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,p.Section,{fill:!0,scrollable:!0,title:"\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0442\u0440\u0435\u043A\u0438",buttons:(0,e.createComponentVNode)(2,p.Button,{bold:!0,icon:"random",color:"transparent",content:M+"/"+D,tooltip:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u044B\u0439 \u0442\u0440\u0435\u043A",tooltipPosition:"top-end",onClick:function(){function j(){var _=Math.floor(Math.random()*D),W=E[_];u("select_track",{track:W.name})}return j}()}),children:E.map(function(j){return(0,e.createComponentVNode)(2,p.Stack.Item,{mb:.5,textAlign:"left",children:(0,e.createComponentVNode)(2,p.Button,{fluid:!0,selected:P.name===j.name,color:"translucent",content:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:j.name}),(0,e.createComponentVNode)(2,p.Stack.Item,{children:O(j.length)})]}),onClick:function(){function _(){u("select_track",{track:j.name})}return _}()})},j.name)})})})]})})]})}return C}(),I=function(){return(0,e.createComponentVNode)(2,p.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,p.Icon,{name:"music",size:"3",color:"gray",mb:1}),(0,e.createComponentVNode)(2,p.Box,{color:"label",bold:!0,children:"\u0418\u0433\u0440\u0430\u0435\u0442 \u043C\u0443\u0437\u044B\u043A\u0430"})]})},k=function(){return(0,e.createComponentVNode)(2,p.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,p.Icon,{name:"coins",size:"6",color:"gold",mr:1}),(0,e.createComponentVNode)(2,p.Box,{color:"label",bold:!0,mt:5,fontSize:2,children:"\u0412\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u043C\u043E\u043D\u0435\u0442\u043A\u0443"})]})}},13618:function(x,r,n){"use strict";r.__esModule=!0,r.KeyComboModal=void 0;var e=n(89005),a=n(70611),t=n(72253),o=n(36036),p=n(98595),b=n(19203),y=n(51057),I=function(u){return u.key!==a.KEY.Alt&&u.key!==a.KEY.Control&&u.key!==a.KEY.Shift&&u.key!==a.KEY.Escape},k={DEL:"Delete",DOWN:"South",END:"Southwest",HOME:"Northwest",INSERT:"Insert",LEFT:"West",PAGEDOWN:"Southeast",PAGEUP:"Northeast",RIGHT:"East",SPACEBAR:"Space",UP:"North"},C=3,i=function(u){var d="";if(u.altKey&&(d+="Alt"),u.ctrlKey&&(d+="Ctrl"),u.shiftKey&&!(u.keyCode>=48&&u.keyCode<=57)&&(d+="Shift"),u.location===C&&(d+="Numpad"),I(u))if(u.shiftKey&&u.keyCode>=48&&u.keyCode<=57){var s=u.keyCode-48;d+="Shift"+s}else{var l=u.key.toUpperCase();d+=k[l]||l}return d},c=r.KeyComboModal=function(){function m(u,d){var s=(0,t.useBackend)(d),l=s.act,h=s.data,N=h.init_value,v=h.large_buttons,f=h.message,g=f===void 0?"":f,V=h.title,B=h.timeout,S=(0,t.useLocalState)(d,"input",N),L=S[0],w=S[1],A=(0,t.useLocalState)(d,"binding",!0),T=A[0],E=A[1],P=function(){function O(R){if(!T){R.key===a.KEY.Enter&&l("submit",{entry:L}),(0,a.isEscape)(R.key)&&l("cancel");return}if(R.preventDefault(),I(R)){D(i(R)),E(!1);return}else if(R.key===a.KEY.Escape){D(N),E(!1);return}}return O}(),D=function(){function O(R){R!==L&&w(R)}return O}(),M=130+(g.length>30?Math.ceil(g.length/3):0)+(g.length&&v?5:0);return(0,e.createComponentVNode)(2,p.Window,{title:V,width:240,height:M,children:[B&&(0,e.createComponentVNode)(2,y.Loader,{value:B}),(0,e.createComponentVNode)(2,p.Window.Content,{onKeyDown:function(){function O(R){P(R)}return O}(),children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Autofocus),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:g})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:T,content:T&&T!==null?"Awaiting input...":""+L,width:"100%",textAlign:"center",onClick:function(){function O(){D(N),E(!0)}return O}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,b.InputButtons,{input:L})})]})]})})]})}return m}()},35655:function(x,r,n){"use strict";r.__esModule=!0,r.KeycardAuth=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.KeycardAuth=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=(0,e.createComponentVNode)(2,t.Section,{title:"Keycard Authentication Device",children:(0,e.createComponentVNode)(2,t.Box,{children:"This device is used to trigger certain high security events. It requires the simultaneous swipe of two high-level ID cards."})});if(!i.swiping&&!i.busy)return(0,e.createComponentVNode)(2,o.Window,{width:540,height:280,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[c,(0,e.createComponentVNode)(2,t.Section,{title:"Choose Action",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Red Alert",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",disabled:!i.redAvailable,onClick:function(){function u(){return C("triggerevent",{triggerevent:"Red Alert"})}return u}(),content:"Red Alert"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ERT",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",onClick:function(){function u(){return C("triggerevent",{triggerevent:"Emergency Response Team"})}return u}(),content:"Call ERT"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Maint Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function u(){return C("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})}return u}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function u(){return C("triggerevent",{triggerevent:"Revoke Emergency Maintenance Access"})}return u}(),content:"Revoke"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Station-Wide Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function u(){return C("triggerevent",{triggerevent:"Activate Station-Wide Emergency Access"})}return u}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function u(){return C("triggerevent",{triggerevent:"Deactivate Station-Wide Emergency Access"})}return u}(),content:"Revoke"})]})]})})]})});var m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Waiting for YOU to swipe your ID..."});return!i.hasSwiped&&!i.ertreason&&i.event==="Emergency Response Team"?m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Fill out the reason for your ERT request."}):i.hasConfirm?m=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Request Confirmed!"}):i.isRemote?m=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):i.hasSwiped&&(m=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Waiting for second person to confirm..."})),(0,e.createComponentVNode)(2,o.Window,{width:540,height:265,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[c,i.event==="Emergency Response Team"&&(0,e.createComponentVNode)(2,t.Section,{title:"Reason for ERT Call",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{color:i.ertreason?"":"red",icon:i.ertreason?"check":"pencil-alt",content:i.ertreason?i.ertreason:"-----",disabled:i.busy,onClick:function(){function u(){return C("ert")}return u}()})})}),(0,e.createComponentVNode)(2,t.Section,{title:i.event,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back",disabled:i.busy||i.hasConfirm,onClick:function(){function u(){return C("reset")}return u}()}),children:m})]})})}return b}()},62955:function(x,r,n){"use strict";r.__esModule=!0,r.KitchenMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(62411),b=r.KitchenMachine=function(){function I(k,C){var i=(0,a.useBackend)(C),c=i.data,m=i.config,u=c.ingredients,d=c.operating,s=m.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.Operating,{operating:d,name:s}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,y)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Ingredients",children:(0,e.createComponentVNode)(2,t.Table,{className:"Ingredient__Table",children:u.map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{tr:5,children:[(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:l.name}),2),(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:[l.amount," ",l.units]}),2)]},l.name)})})})})]})})})}return I}(),y=function(k,C){var i=(0,a.useBackend)(C),c=i.act,m=i.data,u=m.inactive,d=m.tooltip;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:u,tooltip:u?d:"",tooltipPosition:"bottom",content:"Activate",onClick:function(){function s(){return c("cook")}return s}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:u,tooltip:u?d:"",tooltipPosition:"bottom",content:"Eject Contents",onClick:function(){function s(){return c("eject")}return s}()})})]})})}},9525:function(x,r,n){"use strict";r.__esModule=!0,r.LawManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.LawManager=function(){function k(C,i){var c=(0,a.useBackend)(i),m=c.act,u=c.data,d=u.isAdmin,s=u.isSlaved,l=u.isMalf,h=u.isAIMalf,N=u.view;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:l?620:365,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!(d&&s)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["This unit is slaved to ",s,"."]}),!!(l||h)&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Law Management",selected:N===0,onClick:function(){function v(){return m("set_view",{set_view:0})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Lawsets",selected:N===1,onClick:function(){function v(){return m("set_view",{set_view:1})}return v}()})]}),N===0&&(0,e.createComponentVNode)(2,b),N===1&&(0,e.createComponentVNode)(2,y)]})})}return k}(),b=function(C,i){var c=(0,a.useBackend)(i),m=c.act,u=c.data,d=u.has_zeroth_laws,s=u.zeroth_laws,l=u.has_ion_laws,h=u.ion_laws,N=u.ion_law_nr,v=u.has_inherent_laws,f=u.inherent_laws,g=u.has_supplied_laws,V=u.supplied_laws,B=u.channels,S=u.channel,L=u.isMalf,w=u.isAdmin,A=u.zeroth_law,T=u.ion_law,E=u.inherent_law,P=u.supplied_law,D=u.supplied_law_position;return(0,e.createFragment)([!!d&&(0,e.createComponentVNode)(2,I,{title:"ERR_NULL_VALUE",laws:s,ctx:i}),!!l&&(0,e.createComponentVNode)(2,I,{title:N,laws:h,ctx:i}),!!v&&(0,e.createComponentVNode)(2,I,{title:"Inherent",laws:f,ctx:i}),!!g&&(0,e.createComponentVNode)(2,I,{title:"Supplied",laws:V,ctx:i}),(0,e.createComponentVNode)(2,t.Section,{title:"Statement Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Statement Channel",children:B.map(function(M){return(0,e.createComponentVNode)(2,t.Button,{content:M.channel,selected:M.channel===S,onClick:function(){function O(){return m("law_channel",{law_channel:M.channel})}return O}()},M.channel)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State Laws",children:(0,e.createComponentVNode)(2,t.Button,{content:"State Laws",onClick:function(){function M(){return m("state_laws")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Law Notification",children:(0,e.createComponentVNode)(2,t.Button,{content:"Notify",onClick:function(){function M(){return m("notify_laws")}return M}()})})]})}),!!L&&(0,e.createComponentVNode)(2,t.Section,{title:"Add Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"60%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Actions"})]}),!!(w&&!d)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Zero"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:A}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_zeroth_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_zeroth_law")}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ion"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:T}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_ion_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_ion_law")}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Inherent"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:E}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_inherent_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_inherent_law")}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Supplied"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:P}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:D,onClick:function(){function M(){return m("change_supplied_law_position")}return M}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_supplied_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_supplied_law")}return M}()})]})]})]})})],0)},y=function(C,i){var c=(0,a.useBackend)(i),m=c.act,u=c.data,d=u.law_sets;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name+" - "+s.header,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Load Laws",icon:"download",onClick:function(){function l(){return m("transfer_laws",{transfer_laws:s.ref})}return l}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.laws.has_ion_laws>0&&s.laws.ion_laws.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.index,children:l.law},l.index)}),s.laws.has_zeroth_laws>0&&s.laws.zeroth_laws.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.index,children:l.law},l.index)}),s.laws.has_inherent_laws>0&&s.laws.inherent_laws.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.index,children:l.law},l.index)}),s.laws.has_supplied_laws>0&&s.laws.inherent_laws.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.index,children:l.law},l.index)})]})},s.name)})})},I=function(C,i){var c=(0,a.useBackend)(C.ctx),m=c.act,u=c.data,d=u.isMalf;return(0,e.createComponentVNode)(2,t.Section,{title:C.title+" Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"69%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"21%",children:"State?"})]}),C.laws.map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.index}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.law}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:s.state?"Yes":"No",selected:s.state,onClick:function(){function l(){return m("state_law",{ref:s.ref,state_law:s.state?0:1})}return l}()}),!!d&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function l(){return m("edit_law",{edit_law:s.ref})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){function l(){return m("delete_law",{delete_law:s.ref})}return l}()})],4)]})]},s.law)})]})})}},85066:function(x,r,n){"use strict";r.__esModule=!0,r.LibraryComputer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(3939),b=r.LibraryComputer=function(){function N(v,f){return(0,e.createComponentVNode)(2,o.Window,{width:1050,height:600,children:[(0,e.createComponentVNode)(2,p.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})})]})}return N}(),y=function(v,f){var g=(0,a.useBackend)(f),V=g.act,B=g.data,S=v.args,L=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:S.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:S.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:S.summary}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[S.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",verticalAlign:"top"})]}),!S.isProgrammatic&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Categories",children:S.categories.join(", ")})]}),(0,e.createVNode)(1,"br"),L===S.ckey&&(0,e.createComponentVNode)(2,t.Button,{content:"Delete Book",icon:"trash",color:"red",disabled:S.isProgrammatic,onClick:function(){function w(){return V("delete_book",{bookid:S.id,user_ckey:L})}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Report Book",icon:"flag",color:"red",disabled:S.isProgrammatic,onClick:function(){function w(){return(0,p.modalOpen)(f,"report_book",{bookid:S.id})}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rate Book",icon:"star",color:"caution",disabled:S.isProgrammatic,onClick:function(){function w(){return(0,p.modalOpen)(f,"rate_info",{bookid:S.id})}return w}()})]})},I=function(v,f){var g=(0,a.useBackend)(f),V=g.act,B=g.data,S=v.args,L=B.selected_report,w=B.report_categories,A=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",title:"Report this book for Rule Violations",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:S.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reasons",children:(0,e.createComponentVNode)(2,t.Box,{children:w.map(function(T,E){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:T.description,selected:T.category_id===L,onClick:function(){function P(){return V("set_report",{report_type:T.category_id})}return P}()}),(0,e.createVNode)(1,"br")],4,E)})})})]}),(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,icon:"paper-plane",content:"Submit Report",onClick:function(){function T(){return V("submit_report",{bookid:S.id,user_ckey:A})}return T}()})]})},k=function(v,f){var g=(0,a.useBackend)(f),V=g.act,B=g.data,S=B.selected_rating,L=Array(10).fill().map(function(w,A){return 1+A});return(0,e.createComponentVNode)(2,t.Stack,{children:[L.map(function(w,A){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{bold:!0,icon:"star",color:S>=w?"caution":"default",onClick:function(){function T(){return V("set_rating",{rating_value:w})}return T}()})},A)}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,ml:2,fontSize:"150%",children:[S+"/10",(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"top"})]})]})},C=function(v,f){var g=(0,a.useBackend)(f),V=g.act,B=g.data,S=v.args,L=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:S.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:S.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[S.current_rating?S.current_rating:0,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Ratings",children:S.total_ratings?S.total_ratings:0})]}),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,t.Button.Confirm,{mt:2,content:"Submit",icon:"paper-plane",onClick:function(){function w(){return V("rate_book",{bookid:S.id,user_ckey:L})}return w}()})]})},i=function(v,f){var g=(0,a.useBackend)(f),V=g.data,B=(0,a.useLocalState)(f,"tabIndex",0),S=B[0],L=B[1],w=V.login_state;return(0,e.createComponentVNode)(2,t.Stack.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:S===0,onClick:function(){function A(){return L(0)}return A}(),children:"Book Archives"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:S===1,onClick:function(){function A(){return L(1)}return A}(),children:"Corporate Literature"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:S===2,onClick:function(){function A(){return L(2)}return A}(),children:"Upload Book"}),w===1&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:S===3,onClick:function(){function A(){return L(3)}return A}(),children:"Patron Manager"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:S===4,onClick:function(){function A(){return L(4)}return A}(),children:"Inventory"})]})})},c=function(v,f){var g=(0,a.useLocalState)(f,"tabIndex",0),V=g[0];switch(V){case 0:return(0,e.createComponentVNode)(2,u);case 1:return(0,e.createComponentVNode)(2,d);case 2:return(0,e.createComponentVNode)(2,s);case 3:return(0,e.createComponentVNode)(2,l);case 4:return(0,e.createComponentVNode)(2,h);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},m=function(v,f){var g=(0,a.useBackend)(f),V=g.act,B=g.data,S=B.searchcontent,L=B.book_categories,w=B.user_ckey,A=[];return L.map(function(T){return A[T.description]=T.category_id}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"35%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"edit",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Inputs"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:S.title||"Input Title",onClick:function(){function T(){return(0,p.modalOpen)(f,"edit_search_title")}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:S.author||"Input Author",onClick:function(){function T(){return(0,p.modalOpen)(f,"edit_search_author")}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Ratings",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:1,width:"min-content",content:S.ratingmin,onClick:function(){function T(){return(0,p.modalOpen)(f,"edit_search_ratingmin")}return T}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:"To"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:1,width:"min-content",content:S.ratingmax,onClick:function(){function T(){return(0,p.modalOpen)(f,"edit_search_ratingmax")}return T}()})})]})})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"clipboard-list",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Book Categories"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Dropdown,{mt:.6,width:"190px",options:L.map(function(T){return T.description}),onSelected:function(){function T(E){return V("toggle_search_category",{category_id:A[E]})}return T}()})})})}),(0,e.createVNode)(1,"br"),L.filter(function(T){return S.categories.includes(T.category_id)}).map(function(T){return(0,e.createComponentVNode)(2,t.Button,{content:T.description,selected:!0,icon:"unlink",onClick:function(){function E(){return V("toggle_search_category",{category_id:T.category_id})}return E}()},T.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Actions"]}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Search",icon:"eraser",onClick:function(){function T(){return V("clear_search")}return T}()}),S.ckey?(0,e.createComponentVNode)(2,t.Button,{mb:.5,content:"Stop Showing My Books",color:"bad",icon:"search",onClick:function(){function T(){return V("clear_ckey_search")}return T}()}):(0,e.createComponentVNode)(2,t.Button,{content:"Find My Books",icon:"search",onClick:function(){function T(){return V("find_users_books",{user_ckey:w})}return T}()})]})]})},u=function(v,f){var g=(0,a.useBackend)(f),V=g.act,B=g.data,S=B.external_booklist,L=B.archive_pagenumber,w=B.num_pages,A=B.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Access",buttons:(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",disabled:L===1,onClick:function(){function T(){return V("deincrementpagemax")}return T}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",disabled:L===1,onClick:function(){function T(){return V("deincrementpage")}return T}()}),(0,e.createComponentVNode)(2,t.Button,{bold:!0,content:L,onClick:function(){function T(){return(0,p.modalOpen)(f,"setpagenumber")}return T}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",disabled:L===w,onClick:function(){function T(){return V("incrementpage")}return T}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",disabled:L===w,onClick:function(){function T(){return V("incrementpagemax")}return T}()})],4),children:[(0,e.createComponentVNode)(2,m),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ratings"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Category"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),S.map(function(T){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:T.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:.5}),T.title.length>45?T.title.substr(0,45)+"...":T.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:T.author.length>30?T.author.substr(0,30)+"...":T.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[T.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",ml:.5,color:"yellow",verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:T.categories.join(", ").substr(0,45)}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[A===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function E(){return V("order_external_book",{bookid:T.id})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function E(){return(0,p.modalOpen)(f,"expand_info",{bookid:T.id})}return E}()})]})]},T.id)})]})]})},d=function(v,f){var g=(0,a.useBackend)(f),V=g.act,B=g.data,S=B.programmatic_booklist,L=B.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Corporate Book Catalog",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),S.map(function(w,A){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:2}),w.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[L===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function T(){return V("order_programmatic_book",{bookid:w.id})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function T(){return(0,p.modalOpen)(f,"expand_info",{bookid:w.id})}return T}()})]})]},A)})]})})},s=function(v,f){var g=(0,a.useBackend)(f),V=g.act,B=g.data,S=B.selectedbook,L=B.book_categories,w=B.user_ckey,A=[];return L.map(function(T){return A[T.description]=T.category_id}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Upload",buttons:(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,width:9.5,icon:"upload",disabled:S.copyright,content:"Upload Book",onClick:function(){function T(){return V("uploadbook",{user_ckey:w})}return T}()}),children:[S.copyright?(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"WARNING: You cannot upload or modify the attributes of a copyrighted book"}):(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{ml:15,mb:3,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:2}),"Book Uploader"]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:S.copyright,content:S.title,onClick:function(){function T(){return(0,p.modalOpen)(f,"edit_selected_title")}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:S.copyright,content:S.author,onClick:function(){function T(){return(0,p.modalOpen)(f,"edit_selected_author")}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"240px",options:L.map(function(T){return T.description}),onSelected:function(){function T(E){return V("toggle_upload_category",{category_id:A[E]})}return T}()})})})]}),(0,e.createVNode)(1,"br"),L.filter(function(T){return S.categories.includes(T.category_id)}).map(function(T){return(0,e.createComponentVNode)(2,t.Button,{content:T.description,disabled:S.copyright,selected:!0,icon:"unlink",onClick:function(){function E(){return V("toggle_upload_category",{category_id:T.category_id})}return E}()},T.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:75,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",width:"auto",disabled:S.copyright,content:"Edit Summary",onClick:function(){function T(){return(0,p.modalOpen)(f,"edit_selected_summary")}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:S.summary})]})})]})]})},l=function(v,f){var g=(0,a.useBackend)(f),V=g.act,B=g.data,S=B.checkout_data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Checked Out Books",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Patron"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),S.map(function(L,w){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-tag"}),L.patron_name]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:L.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.timeleft>=0?L.timeleft:"LATE"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:(0,e.createComponentVNode)(2,t.Button,{content:"Mark Lost",icon:"flag",color:"bad",disabled:L.timeleft>=0,onClick:function(){function A(){return V("reportlost",{libraryid:L.libraryid})}return A}()})})]},w)})]})})},h=function(v,f){var g=(0,a.useBackend)(f),V=g.act,B=g.data,S=B.inventory_list;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Library Inventory",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"LIB ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"})]}),S.map(function(L,w){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.libraryid}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"})," ",L.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:L.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:L.checked_out?"Checked Out":"Available"})]},w)})]})})};(0,p.modalRegisterBodyOverride)("expand_info",y),(0,p.modalRegisterBodyOverride)("report_book",I),(0,p.modalRegisterBodyOverride)("rate_info",C)},9516:function(x,r,n){"use strict";r.__esModule=!0,r.LibraryManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(3939),b=r.LibraryManager=function(){function i(c,m){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:600,children:[(0,e.createComponentVNode)(2,p.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,y)})]})}return i}(),y=function(c,m){var u=(0,a.useBackend)(m),d=u.act,s=u.data,l=s.pagestate;switch(l){case 1:return(0,e.createComponentVNode)(2,I);case 2:return(0,e.createComponentVNode)(2,C);case 3:return(0,e.createComponentVNode)(2,k);default:return"WE SHOULDN'T BE HERE!"}},I=function(c,m){var u=(0,a.useBackend)(m),d=u.act,s=u.data;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.4rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-shield",verticalAlign:"middle",size:3,mr:"1rem"}),"Library Manager"]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"trash",width:"auto",color:"danger",content:"Delete Book by SSID",onClick:function(){function l(){return(0,p.modalOpen)(m,"specify_ssid_delete")}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",width:"auto",color:"danger",content:"Delete All Books By CKEY",onClick:function(){function l(){return(0,p.modalOpen)(m,"specify_ckey_delete")}return l}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Books By CKEY",onClick:function(){function l(){return(0,p.modalOpen)(m,"specify_ckey_search")}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Reported Books",onClick:function(){function l(){return d("view_reported_books")}return l}()})]})},k=function(c,m){var u=(0,a.useBackend)(m),d=u.act,s=u.data,l=s.reports;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-secret",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"All Reported Books",(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function h(){return d("return")}return h}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Uploader CKEY"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Report Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reporter Ckey"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),l.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:h.uploader_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),h.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:h.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:h.report_description}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:h.reporter_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",onClick:function(){function N(){return d("delete_book",{bookid:h.id})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Unflag",icon:"flag",color:"caution",onClick:function(){function N(){return d("unflag_book",{bookid:h.id})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function N(){return d("view_book",{bookid:h.id})}return N}()})]})]},h.id)})]})})},C=function(c,m){var u=(0,a.useBackend)(m),d=u.act,s=u.data,l=s.ckey,h=s.booklist;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"Books uploaded by ",l,(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function N(){return d("return")}return N}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),h.map(function(N){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:N.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),N.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:N.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",color:"bad",onClick:function(){function v(){return d("delete_book",{bookid:N.id})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function v(){return d("view_book",{bookid:N.id})}return v}()})]})]},N.id)})]})})}},90447:function(x,r,n){"use strict";r.__esModule=!0,r.ListInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(36036),p=n(72253),b=n(92986),y=n(98595),I=r.ListInputModal=function(){function i(c,m){var u=(0,p.useBackend)(m),d=u.act,s=u.data,l=s.items,h=l===void 0?[]:l,N=s.message,v=N===void 0?"":N,f=s.init_value,g=s.timeout,V=s.title,B=(0,p.useLocalState)(m,"selected",h.indexOf(f)),S=B[0],L=B[1],w=(0,p.useLocalState)(m,"searchBarVisible",h.length>10),A=w[0],T=w[1],E=(0,p.useLocalState)(m,"searchQuery",""),P=E[0],D=E[1],M=function(){function G(Q){var J=z.length-1;if(Q===b.KEY_DOWN)if(S===null||S===J){var ue;L(0),(ue=document.getElementById("0"))==null||ue.scrollIntoView()}else{var ie;L(S+1),(ie=document.getElementById((S+1).toString()))==null||ie.scrollIntoView()}else if(Q===b.KEY_UP)if(S===null||S===0){var pe;L(J),(pe=document.getElementById(J.toString()))==null||pe.scrollIntoView()}else{var te;L(S-1),(te=document.getElementById((S-1).toString()))==null||te.scrollIntoView()}}return G}(),O=function(){function G(Q){Q!==S&&L(Q)}return G}(),R=function(){function G(){T(!1),T(!0)}return G}(),j=function(){function G(Q){var J=String.fromCharCode(Q),ue=h.find(function(te){return te==null?void 0:te.toLowerCase().startsWith(J==null?void 0:J.toLowerCase())});if(ue){var ie,pe=h.indexOf(ue);L(pe),(ie=document.getElementById(pe.toString()))==null||ie.scrollIntoView()}}return G}(),_=function(){function G(Q){var J;Q!==P&&(D(Q),L(0),(J=document.getElementById("0"))==null||J.scrollIntoView())}return G}(),W=function(){function G(){T(!A),D("")}return G}(),z=h.filter(function(G){return G==null?void 0:G.toLowerCase().includes(P.toLowerCase())}),K=330+Math.ceil(v.length/3);return A||setTimeout(function(){var G;return(G=document.getElementById(S.toString()))==null?void 0:G.focus()},1),(0,e.createComponentVNode)(2,y.Window,{title:V,width:325,height:K,children:[g&&(0,e.createComponentVNode)(2,a.Loader,{value:g}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function G(Q){var J=window.event?Q.which:Q.keyCode;(J===b.KEY_DOWN||J===b.KEY_UP)&&(Q.preventDefault(),M(J)),J===b.KEY_ENTER&&(Q.preventDefault(),d("submit",{entry:z[S]})),!A&&J>=b.KEY_A&&J<=b.KEY_Z&&(Q.preventDefault(),j(J)),J===b.KEY_ESCAPE&&(Q.preventDefault(),d("cancel"))}return G}(),children:(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{compact:!0,icon:A?"search":"font",selected:!0,tooltip:A?"Search Mode. Type to search or use arrow keys to select manually.":"Hotkey Mode. Type a letter to jump to the first match. Enter to select.",tooltipPosition:"left",onClick:function(){function G(){return W()}return G}()}),className:"ListInput__Section",fill:!0,title:v,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,k,{filteredItems:z,onClick:O,onFocusSearch:R,searchBarVisible:A,selected:S})}),(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:A&&(0,e.createComponentVNode)(2,C,{filteredItems:z,onSearch:_,searchQuery:P,selected:S})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:z[S]})})]})})})]})}return i}(),k=function(c,m){var u=(0,p.useBackend)(m),d=u.act,s=c.filteredItems,l=c.onClick,h=c.onFocusSearch,N=c.searchBarVisible,v=c.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:s.map(function(f,g){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"transparent",id:g,onClick:function(){function V(){return l(g)}return V}(),onDblClick:function(){function V(B){B.preventDefault(),d("submit",{entry:s[v]})}return V}(),onKeyDown:function(){function V(B){var S=window.event?B.which:B.keyCode;N&&S>=b.KEY_A&&S<=b.KEY_Z&&(B.preventDefault(),h())}return V}(),selected:g===v,style:{animation:"none",transition:"none"},children:f.replace(/^\w/,function(V){return V.toUpperCase()})},g)})})},C=function(c,m){var u=(0,p.useBackend)(m),d=u.act,s=c.filteredItems,l=c.onSearch,h=c.searchQuery,N=c.selected;return(0,e.createComponentVNode)(2,o.Input,{width:"100%",autoFocus:!0,autoSelect:!0,onEnter:function(){function v(f){f.preventDefault(),d("submit",{entry:s[N]})}return v}(),onInput:function(){function v(f,g){return l(g)}return v}(),placeholder:"Search...",value:h})}},26826:function(x,r,n){"use strict";r.__esModule=!0,r.Loadout=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(98595),b={Default:function(){function c(m,u){return m.gear.gear_tier-u.gear.gear_tier}return c}(),Alphabetical:function(){function c(m,u){return m.gear.name.toLowerCase().localeCompare(u.gear.name.toLowerCase())}return c}(),Cost:function(){function c(m,u){return m.gear.cost-u.gear.cost}return c}()},y=r.Loadout=function(){function c(m,u){var d=(0,t.useBackend)(u),s=d.act,l=d.data,h=(0,t.useLocalState)(u,"search",!1),N=h[0],v=h[1],f=(0,t.useLocalState)(u,"searchText",""),g=f[0],V=f[1],B=(0,t.useLocalState)(u,"category",Object.keys(l.gears)[0]),S=B[0],L=B[1],w=(0,t.useLocalState)(u,"tweakedGear",""),A=w[0],T=w[1];return(0,e.createComponentVNode)(2,p.Window,{width:975,height:650,children:[A&&(0,e.createComponentVNode)(2,i,{tweakedGear:A,setTweakedGear:T}),(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,I,{category:S,setCategory:L})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"25%",children:(0,e.createComponentVNode)(2,C,{setTweakedGear:T})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"75%",children:(0,e.createComponentVNode)(2,k,{category:S,search:N,setSearch:v,searchText:g,setSearchText:V})})]})})]})})]})}return c}(),I=function(m,u){var d=(0,t.useBackend)(u),s=d.act,l=d.data,h=m.category,N=m.setCategory;return(0,e.createComponentVNode)(2,o.Tabs,{fluid:!0,textAlign:"center",style:{"flex-wrap":"wrap-reverse"},children:Object.keys(l.gears).map(function(v){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:v===h,style:{"white-space":"nowrap"},onClick:function(){function f(){return N(v)}return f}(),children:v},v)})})},k=function(m,u){var d=(0,t.useBackend)(u),s=d.act,l=d.data,h=l.user_tier,N=l.gear_slots,v=l.max_gear_slots,f=m.category,g=m.search,V=m.setSearch,B=m.searchText,S=m.setSearchText,L=(0,t.useLocalState)(u,"sortType","Default"),w=L[0],A=L[1],T=(0,t.useLocalState)(u,"sortReverse",!1),E=T[0],P=T[1],D=(0,a.createSearch)(B,function(O){return O.name}),M;return B.length>2?M=Object.entries(l.gears).reduce(function(O,R){var j=R[0],_=R[1];return O.concat(Object.entries(_).map(function(W){var z=W[0],K=W[1];return{key:z,gear:K}}))},[]).filter(function(O){var R=O.gear;return D(R)}):M=Object.entries(l.gears[f]).map(function(O){var R=O[0],j=O[1];return{key:R,gear:j}}),M.sort(b[w]),E&&(M=M.reverse()),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:f,buttons:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Dropdown,{height:1.66,selected:w,options:Object.keys(b),onSelected:function(){function O(R){return A(R)}return O}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:E?"arrow-down-wide-short":"arrow-down-short-wide",tooltip:E?"Ascending order":"Descending order",tooltipPosition:"bottom-end",onClick:function(){function O(){return P(!E)}return O}()})}),g&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Input,{width:20,placeholder:"Search...",value:B,onInput:function(){function O(R){return S(R.target.value)}return O}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"magnifying-glass",selected:g,tooltip:"Toggle search field",tooltipPosition:"bottom-end",onClick:function(){function O(){V(!g),S("")}return O}()})})]}),children:M.map(function(O){var R=O.key,j=O.gear,_=12,W=Object.keys(l.selected_gears).includes(R),z=j.cost===1?j.cost+" Point":j.cost+" Points",K=(0,e.createComponentVNode)(2,o.Box,{children:[j.name.length>_&&(0,e.createComponentVNode)(2,o.Box,{children:j.name}),j.gear_tier>h&&(0,e.createComponentVNode)(2,o.Box,{mt:j.name.length>_&&1.5,textColor:"red",children:"That gear is only available at a higher donation tier than you are on."})]}),G=(0,e.createFragment)([j.allowed_roles&&(0,e.createComponentVNode)(2,o.Button,{width:"22px",color:"transparent",icon:"user",tooltip:(0,e.createComponentVNode)(2,o.Section,{m:-1,title:"Allowed Roles",children:j.allowed_roles.map(function(J){return(0,e.createComponentVNode)(2,o.Box,{children:J},J)})}),tooltipPosition:"left"}),Object.entries(j.tweaks).map(function(J){var ue=J[0],ie=J[1];return ie.map(function(pe){return(0,e.createComponentVNode)(2,o.Button,{width:"22px",color:"transparent",icon:pe.icon,tooltip:pe.tooltip,tooltipPosition:"top"},ue)})}),(0,e.createComponentVNode)(2,o.Button,{width:"22px",color:"transparent",icon:"info",tooltip:j.desc,tooltipPosition:"top"})],0),Q=(0,e.createComponentVNode)(2,o.Box,{class:"Loadout-InfoBox",children:[(0,e.createComponentVNode)(2,o.Box,{style:{"flex-grow":1},fontSize:1,color:"gold",opacity:.75,children:j.gear_tier>0&&"Tier "+j.gear_tier}),(0,e.createComponentVNode)(2,o.Box,{fontSize:.75,opacity:.66,children:z})]});return(0,e.createComponentVNode)(2,o.ImageButton,{m:.5,imageSize:84,dmIcon:j.icon,dmIconState:j.icon_state,tooltip:(j.name.length>_||j.gear_tier>0)&&K,tooltipPosition:"bottom",selected:W,disabled:j.gear_tier>h||N+j.cost>v&&!W,buttons:G,buttonsAlt:Q,onClick:function(){function J(){return s("toggle_gear",{gear:R})}return J}(),children:j.name},R)})})},C=function(m,u){var d=(0,t.useBackend)(u),s=d.act,l=d.data,h=m.setTweakedGear,N=Object.entries(l.gears).reduce(function(v,f){var g=f[0],V=f[1],B=Object.entries(V).filter(function(S){var L=S[0];return Object.keys(l.selected_gears).includes(L)}).map(function(S){var L=S[0],w=S[1];return Object.assign({key:L},w)});return v.concat(B)},[]);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Selected Equipment",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",tooltip:"Clear Loadout",tooltipPosition:"bottom-end",onClick:function(){function v(){return s("clear_loadout")}return v}()}),children:N.map(function(v){return(0,e.createComponentVNode)(2,o.ImageButton,{fluid:!0,imageSize:32,dmIcon:v.icon,dmIconState:v.icon_state,buttons:(0,e.createFragment)([Object.entries(v.tweaks).length>0&&(0,e.createComponentVNode)(2,o.Button,{translucent:!0,icon:"gears",iconColor:"gray",width:"33px",onClick:function(){function f(){return h(v)}return f}()}),(0,e.createComponentVNode)(2,o.Button,{translucent:!0,icon:"times",iconColor:"red",width:"32px",onClick:function(){function f(){return s("toggle_gear",{gear:v.key})}return f}()})],0),children:v.name},v.key)})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:l.gear_slots,maxValue:l.max_gear_slots,ranges:{bad:[l.max_gear_slots,1/0],average:[l.max_gear_slots*.66,l.max_gear_slots],good:[0,l.max_gear_slots*.66]},children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:["Used points ",l.gear_slots,"/",l.max_gear_slots]})})})})]})},i=function(m,u){var d=(0,t.useBackend)(u),s=d.act,l=d.data,h=m.tweakedGear,N=m.setTweakedGear;return(0,e.createComponentVNode)(2,o.Dimmer,{children:(0,e.createComponentVNode)(2,o.Box,{className:"Loadout-Modal__background",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,width:20,height:20,title:h.name,buttons:(0,e.createComponentVNode)(2,o.Button,{color:"red",icon:"times",tooltip:"Close",tooltipPosition:"top",onClick:function(){function v(){return N("")}return v}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:Object.entries(h.tweaks).map(function(v){var f=v[0],g=v[1];return g.map(function(V){var B=l.selected_gears[h.key][f];return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:V.name,color:B?"":"gray",buttons:(0,e.createComponentVNode)(2,o.Button,{color:"transparent",icon:"pen",onClick:function(){function S(){return s("set_tweak",{gear:h.key,tweak:f})}return S}()}),children:[B||"Default",(0,e.createComponentVNode)(2,o.Box,{inline:!0,ml:1,width:1,height:1,verticalAlign:"middle",style:{"background-color":""+B}})]},f)})})})})})})}},77613:function(x,r,n){"use strict";r.__esModule=!0,r.MODsuitContent=r.MODsuit=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=function(S,L){var w=S.name,A=S.value,T=S.module_ref,E=(0,a.useBackend)(L),P=E.act;return(0,e.createComponentVNode)(2,t.NumberInput,{value:A,minValue:-50,maxValue:50,stepPixelSize:5,width:"39px",onChange:function(){function D(M,O){return P("configure",{key:w,value:O,ref:T})}return D}()})},b=function(S,L){var w=S.name,A=S.value,T=S.module_ref,E=(0,a.useBackend)(L),P=E.act;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:A,onClick:function(){function D(){return P("configure",{key:w,value:!A,ref:T})}return D}()})},y=function(S,L){var w=S.name,A=S.value,T=S.module_ref,E=(0,a.useBackend)(L),P=E.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"paint-brush",onClick:function(){function D(){return P("configure",{key:w,ref:T})}return D}()}),(0,e.createComponentVNode)(2,t.ColorBox,{color:A,mr:.5})],4)},I=function(S,L){var w=S.name,A=S.value,T=S.values,E=S.module_ref,P=(0,a.useBackend)(L),D=P.act;return(0,e.createComponentVNode)(2,t.Dropdown,{displayText:A,options:T,onSelected:function(){function M(O){return D("configure",{key:w,value:O,ref:E})}return M}()})},k=function(S,L){var w=S.name,A=S.display_name,T=S.type,E=S.value,P=S.values,D=S.module_ref,M={number:(0,e.normalizeProps)((0,e.createComponentVNode)(2,p,Object.assign({},S))),bool:(0,e.normalizeProps)((0,e.createComponentVNode)(2,b,Object.assign({},S))),color:(0,e.normalizeProps)((0,e.createComponentVNode)(2,y,Object.assign({},S))),list:(0,e.normalizeProps)((0,e.createComponentVNode)(2,I,Object.assign({},S)))};return(0,e.createComponentVNode)(2,t.Box,{children:[A,": ",M[T]]})},C=function(S,L){var w=S.active,A=S.userradiated,T=S.usertoxins,E=S.usermaxtoxins,P=S.threatlevel;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Level",color:w&&A?"bad":"good",children:w&&A?"IRRADIATED!":"RADIATION-FREE"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxins Level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?T/E:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Hazard Level",color:w&&P?"bad":"good",bold:!0,children:w&&P?P:0})})]})},i=function(S,L){var w=S.active,A=S.userhealth,T=S.usermaxhealth,E=S.userbrute,P=S.userburn,D=S.usertoxin,M=S.useroxy;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?A/T:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?A:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?E/T:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?E:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?P/T:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?P:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?D/T:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?D:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?M/T:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?M:0})})})})]})],4)},c=function(S,L){var w=S.active,A=S.statustime,T=S.statusid,E=S.statushealth,P=S.statusmaxhealth,D=S.statusbrute,M=S.statusburn,O=S.statustoxin,R=S.statusoxy,j=S.statustemp,_=S.statusnutrition,W=S.statusfingerprints,z=S.statusdna,K=S.statusviruses;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Time",children:w?A:"00:00:00"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Number",children:w?T||"0":"???"})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?E/P:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?E:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?D/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?D:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?M/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?M:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?O/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:O})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?R/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:R})})})})]}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Body Temperature",children:w?j:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Nutrition Status",children:w?_:0})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"DNA",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fingerprints",children:w?W:"???"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:w?z:"???"})]})}),!!w&&!!K&&(0,e.createComponentVNode)(2,t.Section,{title:"Diseases",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"signature",tooltip:"Name",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"wind",tooltip:"Type",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"bolt",tooltip:"Stage",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"flask",tooltip:"Cure",tooltipPosition:"top"})})]}),K.map(function(G){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:G.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:G.type}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[G.stage,"/",G.maxstage]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:G.cure})]},G.name)})]})})],0)},m={rad_counter:C,health_analyzer:i,status_readout:c},u=function(){return(0,e.createComponentVNode)(2,t.Section,{align:"center",fill:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{color:"red",name:"exclamation-triangle",size:15}),(0,e.createComponentVNode)(2,t.Box,{fontSize:"30px",color:"red",children:"ERROR: INTERFACE UNRESPONSIVE"})]})},d=function(S,L){var w=(0,a.useBackend)(L),A=w.act,T=w.data;return(0,e.createComponentVNode)(2,t.Dimmer,{children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"16px",color:"blue",children:"SUIT UNPOWERED"})})})},s=function(S,L){var w=S.configuration_data,A=S.module_ref,T=Object.keys(w);return(0,e.createComponentVNode)(2,t.Dimmer,{backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[T.map(function(E){var P=w[E];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,k,{name:E,display_name:P.display_name,type:P.type,value:P.value,values:P.values,module_ref:A})},P.key)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:S.onExit,icon:"times",textAlign:"center",children:"Exit"})})})]})})},l=function(S){switch(S){case 1:return"Use";case 2:return"Toggle";case 3:return"Select"}},h=function(S,L){var w=(0,a.useBackend)(L),A=w.act,T=w.data,E=T.active,P=T.malfunctioning,D=T.locked,M=T.open,O=T.selected_module,R=T.complexity,j=T.complexity_max,_=T.wearer_name,W=T.wearer_job,z=P?"Malfunctioning":E?"Active":"Inactive";return(0,e.createComponentVNode)(2,t.Section,{title:"Parameters",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:E?"Deactivate":"Activate",onClick:function(){function K(){return A("activate")}return K}()}),children:z}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:D?"lock-open":"lock",content:D?"Unlock":"Lock",onClick:function(){function K(){return A("lock")}return K}()}),children:D?"Locked":"Unlocked"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover",children:M?"Open":"Closed"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected Module",children:O||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Complexity",children:[R," (",j,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:[_,", ",W]})]})})},N=function(S,L){var w=(0,a.useBackend)(L),A=w.act,T=w.data,E=T.active,P=T.control,D=T.helmet,M=T.chestplate,O=T.gauntlets,R=T.boots,j=T.core,_=T.charge;return(0,e.createComponentVNode)(2,t.Section,{title:"Hardware",children:[(0,e.createComponentVNode)(2,t.Collapsible,{title:"Parts",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Control Unit",children:P}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Helmet",children:D||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chestplate",children:M||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gauntlets",children:O||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Boots",children:R||"None"})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core",children:j&&(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Type",children:j}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:_/100,content:_+"%",ranges:{good:[.6,1/0],average:[.3,.6],bad:[-1/0,.3]}})})]})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",textAlign:"center",children:"No Core Detected"})})]})},v=function(S,L){var w=(0,a.useBackend)(L),A=w.act,T=w.data,E=T.active,P=T.modules,D=P.filter(function(M){return!!M.id});return(0,e.createComponentVNode)(2,t.Section,{title:"Info",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:D.length!==0&&D.map(function(M){var O=m[M.id];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!E&&(0,e.createComponentVNode)(2,d),(0,e.normalizeProps)((0,e.createComponentVNode)(2,O,Object.assign({},M,{active:E})))]},M.ref)})||(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Info Modules Detected"})})})},f=function(S,L){var w=(0,a.useBackend)(L),A=w.act,T=w.data,E=T.complexity_max,P=T.modules,D=(0,a.useLocalState)(L,"module_configuration",null),M=D[0],O=D[1];return(0,e.createComponentVNode)(2,t.Section,{title:"Modules",fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:P.length!==0&&P.map(function(R){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Collapsible,{title:R.module_name,children:(0,e.createComponentVNode)(2,t.Section,{children:[M===R.ref&&(0,e.createComponentVNode)(2,s,{configuration_data:R.configuration_data,module_ref:R.ref,onExit:function(){function j(){return O(null)}return j}()}),(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"save",tooltip:"Complexity",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"plug",tooltip:"Idle Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"lightbulb",tooltip:"Active Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"bolt",tooltip:"Use Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"hourglass-half",tooltip:"Cooldown",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"tasks",tooltip:"Actions",tooltipPosition:"top"})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[R.module_complexity,"/",E]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:R.idle_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:R.active_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:R.use_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[R.cooldown>0&&R.cooldown/10||"0","/",R.cooldown_time/10,"s"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function j(){return A("select",{ref:R.ref})}return j}(),icon:"bullseye",selected:R.module_active,tooltip:l(R.module_type),tooltipPosition:"left",disabled:!R.module_type}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function j(){return O(R.ref)}return j}(),icon:"cog",selected:M===R.ref,tooltip:"Configure",tooltipPosition:"left",disabled:R.configuration_data.length===0}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function j(){return A("pin",{ref:R.ref})}return j}(),icon:"thumbtack",selected:R.pinned,tooltip:"Pin",tooltipPosition:"left",disabled:!R.module_type})]})]})]}),(0,e.createComponentVNode)(2,t.Box,{children:R.description})]})})},R.ref)})||(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Modules Detected"})})})})},g=r.MODsuitContent=function(){function B(S,L){var w=(0,a.useBackend)(L),A=w.act,T=w.data,E=T.ui_theme,P=T.interface_break;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!P,children:!!P&&(0,e.createComponentVNode)(2,u)||(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,h)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,N)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,v)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f)})]})})}return B}(),V=r.MODsuit=function(){function B(S,L){var w=(0,a.useBackend)(L),A=w.act,T=w.data,E=T.ui_theme,P=T.interface_break;return(0,e.createComponentVNode)(2,o.Window,{theme:E,width:400,height:620,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,g)})})})}return B}()},78624:function(x,r,n){"use strict";r.__esModule=!0,r.MagnetController=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(98595),b=n(3939),y=new Map([["n",{icon:"arrow-up",tooltip:"Move North"}],["e",{icon:"arrow-right",tooltip:"Move East"}],["s",{icon:"arrow-down",tooltip:"Move South"}],["w",{icon:"arrow-left",tooltip:"Move West"}],["c",{icon:"crosshairs",tooltip:"Move to Magnet"}],["r",{icon:"dice",tooltip:"Move Randomly"}]]),I=r.MagnetController=function(){function k(C,i){var c=(0,t.useBackend)(i),m=c.act,u=c.data,d=u.autolink,s=u.code,l=u.frequency,h=u.linkedMagnets,N=u.magnetConfiguration,v=u.path,f=u.pathPosition,g=u.probing,V=u.powerState,B=u.speed;return(0,e.createComponentVNode)(2,p.Window,{width:400,height:600,children:[(0,e.createComponentVNode)(2,b.ComplexModal),(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:[!d&&(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{content:"Probe",icon:g?"spinner":"sync",iconSpin:!!g,disabled:g,onClick:function(){function S(){return m("probe_magnets")}return S}()}),title:"Magnet Linking",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,a.toFixed)(l/10,1)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:s})]})}),(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{icon:V?"power-off":"times",content:V?"On":"Off",selected:V,onClick:function(){function S(){return m("toggle_power")}return S}()}),title:"Controller Configuration",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:B.value,minValue:B.min,maxValue:B.max,onChange:function(){function S(L,w){return m("set_speed",{speed:w})}return S}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Path",children:[Array.from(y.entries()).map(function(S){var L=S[0],w=S[1],A=w.icon,T=w.tooltip;return(0,e.createComponentVNode)(2,o.Button,{icon:A,tooltip:T,onClick:function(){function E(){return m("path_add",{code:L})}return E}()},L)}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",confirmIcon:"trash",confirmContent:"",float:"right",tooltip:"Reset Path",tooltipPosition:"left",onClick:function(){function S(){return m("path_clear")}return S}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file-import",float:"right",tooltip:"Manually input path",tooltipPosition:"left",onClick:function(){function S(){return(0,b.modalOpen)(i,"path_custom_input")}return S}()}),(0,e.createComponentVNode)(2,o.BlockQuote,{children:v.map(function(S,L){var w=y.get(S)||{icon:"question"},A=w.icon,T=w.tooltip;return(0,e.createComponentVNode)(2,o.Button.Confirm,{selected:L+2===f,icon:A,confirmIcon:A,confirmContent:"",tooltip:T,onClick:function(){function E(){return m("path_remove",{index:L+1,code:S})}return E}()},L)})})]})]})}),h.map(function(S,L){var w=S.uid,A=S.powerState,T=S.electricityLevel,E=S.magneticField;return(0,e.createComponentVNode)(2,o.Section,{title:"Magnet #"+(L+1)+" Configuration",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:A?"power-off":"times",content:A?"On":"Off",selected:A,onClick:function(){function P(){return m("toggle_magnet_power",{id:w})}return P}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Move Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:T,minValue:N.electricityLevel.min,maxValue:N.electricityLevel.max,onChange:function(){function P(D,M){return m("set_electricity_level",{id:w,electricityLevel:M})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Field Size",children:(0,e.createComponentVNode)(2,o.Slider,{value:E,minValue:N.magneticField.min,maxValue:N.magneticField.max,onChange:function(){function P(D,M){return m("set_magnetic_field",{id:w,magneticField:M})}return P}()})})]})},w)})]})]})}return k}()},72106:function(x,r,n){"use strict";r.__esModule=!0,r.MechBayConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.MechBayConsole=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.recharge_port,m=c&&c.mech,u=m&&m.cell,d=m&&m.name;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:155,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:d?"Mech status: "+d:"Mech status",textAlign:"center",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Sync",onClick:function(){function s(){return C("reconnect")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!m&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:m.health/m.maxhealth,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!m&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||!u&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cell is installed."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:u.charge/u.maxcharge,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]},children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:u.charge})," / "+u.maxcharge]})})]})})})})}return b}()},7466:function(x,r,n){"use strict";r.__esModule=!0,r.MechaControlConsole=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(98595),b=n(25328),y=r.MechaControlConsole=function(){function I(k,C){var i=(0,t.useBackend)(C),c=i.act,m=i.data,u=m.beacons,d=m.stored_data;return d.length?(0,e.createComponentVNode)(2,p.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"window-close",onClick:function(){function s(){return c("clear_log")}return s}()}),children:d.map(function(s){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["(",s.time,")"]}),(0,e.createComponentVNode)(2,o.Box,{children:(0,b.decodeHtmlEntities)(s.message)})]},s.time)})})})}):(0,e.createComponentVNode)(2,p.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:u.length&&u.map(function(s){return(0,e.createComponentVNode)(2,o.Section,{title:s.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function l(){return c("send_message",{mt:s.uid})}return l}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function l(){return c("get_log",{mt:s.uid})}return l}(),children:"View Log"}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",content:"Sabotage",icon:"bomb",onClick:function(){function l(){return c("shock",{mt:s.uid})}return l}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[s.maxHealth*.75,1/0],average:[s.maxHealth*.5,s.maxHealth*.75],bad:[-1/0,s.maxHealth*.5]},value:s.health,maxValue:s.maxHealth})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cell Charge",children:s.cell&&(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[s.cellMaxCharge*.75,1/0],average:[s.cellMaxCharge*.5,s.cellMaxCharge*.75],bad:[-1/0,s.cellMaxCharge*.5]},value:s.cellCharge,maxValue:s.cellMaxCharge})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No Cell Installed"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Air Tank",children:[s.airtank,"kPa"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pilot",children:s.pilot||"Unoccupied"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:(0,b.toTitleCase)(s.location)||"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Active Equipment",children:s.active||"None"}),s.cargoMax&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cargo Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{bad:[s.cargoMax*.75,1/0],average:[s.cargoMax*.5,s.cargoMax*.75],good:[-1/0,s.cargoMax*.5]},value:s.cargoUsed,maxValue:s.cargoMax})})||null]})},s.name)})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No mecha beacons found."})})})}return I}()},79625:function(x,r,n){"use strict";r.__esModule=!0,r.MedicalRecords=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(3939),b=n(98595),y=n(321),I=n(5485),k=n(22091),C={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},i={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},c=function(A,T){(0,p.modalOpen)(A,"edit",{field:T.edit,value:T.value})},m=function(A,T){var E=A.args;return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:E.name||"Virus",children:(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Number of stages",children:E.max_stages}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Spread",children:[E.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Possible cure",children:E.cure}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Notes",children:E.desc}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Severity",color:C[E.severity],children:E.severity})]})})})},u=r.MedicalRecords=function(){function w(A,T){var E=(0,t.useBackend)(T),P=E.data,D=P.loginState,M=P.screen;if(!D.logged_in)return(0,e.createComponentVNode)(2,b.Window,{width:800,height:900,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,I.LoginScreen)})});var O;return M===2?O=(0,e.createComponentVNode)(2,d):M===3?O=(0,e.createComponentVNode)(2,s):M===4?O=(0,e.createComponentVNode)(2,l):M===5?O=(0,e.createComponentVNode)(2,f):M===6?O=(0,e.createComponentVNode)(2,g):M===7&&(O=(0,e.createComponentVNode)(2,V)),(0,e.createComponentVNode)(2,b.Window,{width:800,height:900,children:[(0,e.createComponentVNode)(2,p.ComplexModal),(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,k.TemporaryNotice),(0,e.createComponentVNode)(2,L),O]})})]})}return w}(),d=function(A,T){var E=(0,t.useBackend)(T),P=E.act,D=E.data,M=D.records,O=(0,t.useLocalState)(T,"searchText",""),R=O[0],j=O[1],_=(0,t.useLocalState)(T,"sortId","name"),W=_[0],z=_[1],K=(0,t.useLocalState)(T,"sortOrder",!0),G=K[0],Q=K[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Manage Records",icon:"wrench",ml:"0.25rem",onClick:function(){function J(){return P("screen",{screen:3})}return J}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search by Name, ID, Physical Status, or Mental Status",onInput:function(){function J(ue,ie){return j(ie)}return J}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,B,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,B,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,B,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,B,{id:"p_stat",children:"Patient Status"}),(0,e.createComponentVNode)(2,B,{id:"m_stat",children:"Mental Status"})]}),M.filter((0,a.createSearch)(R,function(J){return J.name+"|"+J.id+"|"+J.rank+"|"+J.p_stat+"|"+J.m_stat})).sort(function(J,ue){var ie=G?1:-1;return J[W].localeCompare(ue[W])*ie}).map(function(J){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listRow--"+i[J.p_stat],onClick:function(){function ue(){return P("view_record",{view_record:J.ref})}return ue}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",J.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.p_stat}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.m_stat})]},J.id)})]})})})],4)},s=function(A,T){var E=(0,t.useBackend)(T),P=E.act;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,translucent:!0,lineHeight:3,icon:"download",content:"Backup to Disk",disabled:!0})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,translucent:!0,lineHeight:3,icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," "]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,translucent:!0,lineHeight:3,icon:"trash",content:"Delete All Medical Records",onClick:function(){function D(){return P("del_all_med_records")}return D}()})})]})})},l=function(A,T){var E=(0,t.useBackend)(T),P=E.act,D=E.data,M=D.medical,O=D.printing;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{height:"235px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:O?"spinner":"print",disabled:O,iconSpin:!!O,content:"Print Record",ml:"0.5rem",onClick:function(){function R(){return P("print_record")}return R}()}),children:(0,e.createComponentVNode)(2,h)})}),!M||!M.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function R(){return P("new_med_record")}return R}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Medical records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:!!M.empty,content:"Delete Medical Record",onClick:function(){function R(){return P("del_med_record")}return R}()}),children:(0,e.createComponentVNode)(2,N)})}),(0,e.createComponentVNode)(2,v)],4)],0)},h=function(A,T){var E=(0,t.useBackend)(T),P=E.data,D=P.general;return!D||!D.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:D.fields.map(function(M,O){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:M.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:M.value}),!!M.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function R(){return c(T,M)}return R}()})]},O)})})}),!!D.has_photos&&D.photos.map(function(M,O){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:M,style:{width:"96px","margin-top":"2.5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",O+1]},O)})]})},N=function(A,T){var E=(0,t.useBackend)(T),P=E.act,D=E.data,M=D.medical;return!M||!M.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"Medical records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:M.fields.map(function(O,R){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:O.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(O.value),!!O.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:O.line_break?"1rem":"initial",onClick:function(){function j(){return c(T,O)}return j}()})]},R)})})})})},v=function(A,T){var E=(0,t.useBackend)(T),P=E.act,D=E.data,M=D.medical;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function O(){return(0,p.modalOpen)(T,"add_comment")}return O}()}),children:M.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):M.comments.map(function(O,R){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:O.header}),(0,e.createVNode)(1,"br"),O.text,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function j(){return P("del_comment",{del_comment:R+1})}return j}()})]},R)})})})},f=function(A,T){var E=(0,t.useBackend)(T),P=E.act,D=E.data,M=D.virus,O=(0,t.useLocalState)(T,"searchText",""),R=O[0],j=O[1],_=(0,t.useLocalState)(T,"sortId2","name"),W=_[0],z=_[1],K=(0,t.useLocalState)(T,"sortOrder2",!0),G=K[0],Q=K[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{ml:"0.25rem",fluid:!0,placeholder:"Search by Name, Max Stages, or Severity",onInput:function(){function J(ue,ie){return j(ie)}return J}()})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,S,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,S,{id:"max_stages",children:"Max Stages"}),(0,e.createComponentVNode)(2,S,{id:"severity",children:"Severity"})]}),M.filter((0,a.createSearch)(R,function(J){return J.name+"|"+J.max_stages+"|"+J.severity})).sort(function(J,ue){var ie=G?1:-1;return J[W].localeCompare(ue[W])*ie}).map(function(J){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listVirus--"+J.severity,onClick:function(){function ue(){return P("vir",{vir:J.D})}return ue}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"virus"})," ",J.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.max_stages}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:C[J.severity],children:J.severity})]},J.id)})]})})})})],4)},g=function(A,T){var E=(0,t.useBackend)(T),P=E.act,D=E.data,M=D.goals;return(0,e.createComponentVNode)(2,o.Section,{title:"Virology Goals",fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:M.length!==0&&M.map(function(O){return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:O.name,children:[(0,e.createComponentVNode)(2,o.Table,{children:(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:O.delivered,minValue:0,maxValue:O.deliverygoal,ranges:{good:[O.deliverygoal*.5,1/0],average:[O.deliverygoal*.25,O.deliverygoal*.5],bad:[-1/0,O.deliverygoal*.25]},children:[O.delivered," / ",O.deliverygoal," Units"]})})})}),(0,e.createComponentVNode)(2,o.Box,{children:O.report})]})},O.id)})||(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:"No Goals Detected"})})})})},V=function(A,T){var E=(0,t.useBackend)(T),P=E.act,D=E.data,M=D.medbots;return M.length===0?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"robot",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"There are no Medibots."]})})})}):(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Area"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Chemicals"})]}),M.map(function(O){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listMedbot--"+O.on,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"medical"})," ",O.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[O.area||"Unknown"," (",O.x,", ",O.y,")"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.on?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Online"}):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"Offline"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.use_beaker?"Reservoir: "+O.total_volume+"/"+O.maximum_volume:"Using internal synthesizer"})]},O.id)})]})})})},B=function(A,T){var E=(0,t.useLocalState)(T,"sortId","name"),P=E[0],D=E[1],M=(0,t.useLocalState)(T,"sortOrder",!0),O=M[0],R=M[1],j=A.id,_=A.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:P!==j&&"transparent",onClick:function(){function W(){P===j?R(!O):(D(j),R(!0))}return W}(),children:[_,P===j&&(0,e.createComponentVNode)(2,o.Icon,{name:O?"sort-up":"sort-down",ml:"0.25rem;"})]})})},S=function(A,T){var E=(0,t.useLocalState)(T,"sortId2","name"),P=E[0],D=E[1],M=(0,t.useLocalState)(T,"sortOrder2",!0),O=M[0],R=M[1],j=A.id,_=A.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:P!==j&&"transparent",onClick:function(){function W(){P===j?R(!O):(D(j),R(!0))}return W}(),children:[_,P===j&&(0,e.createComponentVNode)(2,o.Icon,{name:O?"sort-up":"sort-down",ml:"0.25rem;"})]})})},L=function(A,T){var E=(0,t.useBackend)(T),P=E.act,D=E.data,M=D.screen,O=D.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:M===2,onClick:function(){function R(){P("screen",{screen:2})}return R}(),children:"List Records"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"database",selected:M===5,onClick:function(){function R(){P("screen",{screen:5})}return R}(),children:"Virus Database"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"vial",selected:M===6,onClick:function(){function R(){P("screen",{screen:6})}return R}(),children:"Virology Goals"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"plus-square",selected:M===7,onClick:function(){function R(){return P("screen",{screen:7})}return R}(),children:"Medibot Tracking"}),M===3&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:M===3,children:"Record Maintenance"}),M===4&&O&&!O.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:M===4,children:["Record: ",O.fields[0].value]})]})})};(0,p.modalRegisterBodyOverride)("virus",m)},54989:function(x,r,n){"use strict";r.__esModule=!0,r.MerchVendor=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=function(C,i){var c=(0,a.useBackend)(i),m=c.act,u=c.data,d=C.product,s=C.productImage,l=C.productCategory,h=u.user_money;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+s,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:d.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{disabled:d.price>h,icon:"shopping-cart",content:d.price,textAlign:"left",onClick:function(){function N(){return m("purchase",{name:d.name,category:l})}return N}()})})]})},b=function(C,i){var c=(0,a.useBackend)(i),m=c.data,u=(0,a.useLocalState)(i,"tabIndex",1),d=u[0],s=m.products,l=m.imagelist,h=["apparel","toy","decoration"];return(0,e.createComponentVNode)(2,t.Table,{children:s[h[d]].map(function(N){return(0,e.createComponentVNode)(2,p,{product:N,productImage:l[N.path],productCategory:h[d]},N.name)})})},y=r.MerchVendor=function(){function k(C,i){var c=(0,a.useBackend)(i),m=c.act,u=c.data,d=u.user_cash,s=u.inserted_cash;return(0,e.createComponentVNode)(2,o.Window,{title:"Merch Computer",width:450,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"User",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"light-grey",inline:!0,mr:"0.5rem",children:["There is ",(0,e.createVNode)(1,"b",null,s,0)," credits inserted."]}),(0,e.createComponentVNode)(2,t.Button,{disabled:!s,icon:"money-bill-wave-alt",content:"Dispense Change",textAlign:"left",onClick:function(){function l(){return m("change")}return l}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:["Doing your job and not getting any recognition at work? Well, welcome to the merch shop! Here, you can buy cool things in exchange for money you earn when you have completed your Job Objectives.",d!==null&&(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:["Your balance is ",(0,e.createVNode)(1,"b",null,[d||0,(0,e.createTextVNode)(" credits")],0),"."]})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:[(0,e.createComponentVNode)(2,I),(0,e.createComponentVNode)(2,b)]})})]})})})}return k}(),I=function(C,i){var c=(0,a.useBackend)(i),m=c.data,u=(0,a.useLocalState)(i,"tabIndex",1),d=u[0],s=u[1],l=m.login_state;return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"dice",selected:d===1,onClick:function(){function h(){return s(1)}return h}(),children:"Toys"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"flag",selected:d===2,onClick:function(){function h(){return s(2)}return h}(),children:"Decorations"})]})}},87684:function(x,r,n){"use strict";r.__esModule=!0,r.MiningVendor=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(98595),b=["title","items","gridLayout"];function y(u,d){if(u==null)return{};var s={};for(var l in u)if({}.hasOwnProperty.call(u,l)){if(d.includes(l))continue;s[l]=u[l]}return s}var I={Alphabetical:function(){function u(d,s){return d-s}return u}(),Availability:function(){function u(d,s){return-(d.affordable-s.affordable)}return u}(),Price:function(){function u(d,s){return d.price-s.price}return u}()},k=r.MiningVendor=function(){function u(d,s){var l=(0,t.useLocalState)(s,"gridLayout",!1),h=l[0],N=l[1];return(0,e.createComponentVNode)(2,p.Window,{width:400,height:525,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,c,{gridLayout:h,setGridLayout:N}),(0,e.createComponentVNode)(2,i,{gridLayout:h})]})})})}return u}(),C=function(d,s){var l=(0,t.useBackend)(s),h=l.act,N=l.data,v=N.has_id,f=N.id;return(0,e.createComponentVNode)(2,o.NoticeBox,{success:v,children:v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",f.name,".",(0,e.createVNode)(1,"br"),"You have ",f.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function g(){return h("logoff")}return g}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},i=function(d,s){var l=(0,t.useBackend)(s),h=l.act,N=l.data,v=N.has_id,f=N.id,g=N.items,V=d.gridLayout,B=(0,t.useLocalState)(s,"search",""),S=B[0],L=B[1],w=(0,t.useLocalState)(s,"sort","Alphabetical"),A=w[0],T=w[1],E=(0,t.useLocalState)(s,"descending",!1),P=E[0],D=E[1],M=(0,a.createSearch)(S,function(j){return j[0]}),O=!1,R=Object.entries(g).map(function(j,_){var W=Object.entries(j[1]).filter(M).map(function(z){return z[1].affordable=v&&f.points>=z[1].price,z[1]}).sort(I[A]);if(W.length!==0)return P&&(W=W.reverse()),O=!0,(0,e.createComponentVNode)(2,m,{title:j[0],items:W,gridLayout:V},j[0])});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:O?R:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},c=function(d,s){var l=d.gridLayout,h=d.setGridLayout,N=(0,t.useLocalState)(s,"search",""),v=N[0],f=N[1],g=(0,t.useLocalState)(s,"sort",""),V=g[0],B=g[1],S=(0,t.useLocalState)(s,"descending",!1),L=S[0],w=S[1];return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{mt:.2,placeholder:"Search by item name..",width:"100%",onInput:function(){function A(T,E){return f(E)}return A}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:l?"list":"table-cells-large",height:1.75,tooltip:l?"Toggle List Layout":"Toggle Grid Layout",tooltipPosition:"bottom-start",onClick:function(){function A(){return h(!l)}return A}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(I),width:"100%",onSelected:function(){function A(T){return B(T)}return A}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:L?"arrow-down":"arrow-up",height:1.75,tooltip:L?"Descending order":"Ascending order",tooltipPosition:"bottom-start",onClick:function(){function A(){return w(!L)}return A}()})})]})})},m=function(d,s){var l=(0,t.useBackend)(s),h=l.act,N=l.data,v=d.title,f=d.items,g=d.gridLayout,V=y(d,b);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:v},V,{children:f.map(function(B){return g?(0,e.createComponentVNode)(2,o.ImageButton,{mb:.5,imageSize:57.5,dmIcon:B.icon,dmIconState:B.icon_state,disabled:!N.has_id||N.id.points0?'\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043F\u043E\u0438\u0441\u043A\u0430 "'+d+'"':"\u0412\u0441\u0435 \u043C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u0438 - "+m.length,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:m.filter(function(h){return h.name&&(d.length>0?h.name.toLowerCase().includes(d.toLowerCase())||h.desc.toLowerCase().includes(d.toLowerCase())||h.author.toLowerCase().includes(d.toLowerCase()):!0)}).map(function(h){return(0,e.createComponentVNode)(2,o.Collapsible,{title:h.name,children:[(0,e.createComponentVNode)(2,o.Section,{title:"\u0410\u0432\u0442\u043E\u0440\u044B",children:h.author}),(0,e.createComponentVNode)(2,o.Section,{title:"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435",children:h.desc})]},h.name)})})})})})],4)}return y}()},59783:function(x,r,n){"use strict";r.__esModule=!0,r.NTRecruiter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.NTRecruiter=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.gamestatus,m=i.cand_name,u=i.cand_birth,d=i.cand_age,s=i.cand_species,l=i.cand_planet,h=i.cand_job,N=i.cand_records,v=i.cand_curriculum,f=i.total_curriculums,g=i.reason;if(c===0)return(0,e.createComponentVNode)(2,o.Window,{width:400,height:550,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{pt:"45%",fontSize:"31px",color:"white",textAlign:"center",bold:!0,children:"Nanotrasen Recruiter Simulator"}),(0,e.createComponentVNode)(2,t.Stack.Item,{pt:"1%",fontSize:"16px",textAlign:"center",color:"label",children:"Work as the Nanotrasen recruiter and avoid hiring incompetent employees!"})]})}),(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",lineHeight:2,fluid:!0,icon:"play",color:"green",content:"Begin Shift",onClick:function(){function V(){return C("start_game")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",lineHeight:2,fluid:!0,icon:"info",color:"blue",content:"Guide",onClick:function(){function V(){return C("instructions")}return V}()})]})]})})});if(c===1)return(0,e.createComponentVNode)(2,o.Window,{width:400,height:550,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,color:"grey",title:"Guide",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Main Menu",onClick:function(){function V(){return C("back_to_menu")}return V}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"1#",color:"silver",children:["To win this game you must hire/dismiss ",(0,e.createVNode)(1,"b",null,f,0)," candidates, one wrongly made choice leads to a game over."]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"2#",color:"silver",children:"Make the right choice by truly putting yourself into the skin of a recruiter working for Nanotrasen!"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"3#",color:"silver",children:[(0,e.createVNode)(1,"b",null,"Unique",16)," characters may appear, pay attention to them!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"4#",color:"silver",children:"Make sure to pay attention to details like age, planet names, the requested job and even the species of the candidate!"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"5#",color:"silver",children:["Not every employment record is good, remember to make your choice based on the ",(0,e.createVNode)(1,"b",null,"company morals",16),"!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"6#",color:"silver",children:"The planet of origin has no restriction on the species of the candidate, don't think too much when you see humans that came from Boron!"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"7#",color:"silver",children:["Pay attention to ",(0,e.createVNode)(1,"b",null,"typos",16)," and ",(0,e.createVNode)(1,"b",null,"missing words",16),", these do make for bad applications!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"8#",color:"silver",children:["Remember, you are recruiting people to work at one of the many NT stations, so no hiring for"," ",(0,e.createVNode)(1,"b",null,"jobs",16)," that they ",(0,e.createVNode)(1,"b",null,"don't offer",16),"!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"9#",color:"silver",children:["Keep your eyes open for incompatible ",(0,e.createVNode)(1,"b",null,"naming schemes",16),", no company wants a Vox named Joe!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"10#",color:"silver",children:["For some unknown reason ",(0,e.createVNode)(1,"b",null,"clowns",16)," are never denied by the company, no matter what."]})]})})})})});if(c===2)return(0,e.createComponentVNode)(2,o.Window,{width:400,height:550,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,color:"label",fontSize:"14px",title:"Employment Applications",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"24px",textAlign:"center",color:"silver",bold:!0,children:["Candidate Number #",v]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",color:"silver",children:(0,e.createVNode)(1,"b",null,m,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",color:"silver",children:(0,e.createVNode)(1,"b",null,s,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Age",color:"silver",children:(0,e.createVNode)(1,"b",null,d,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Date of Birth",color:"silver",children:(0,e.createVNode)(1,"b",null,u,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Planet of Origin",color:"silver",children:(0,e.createVNode)(1,"b",null,l,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requested Job",color:"silver",children:(0,e.createVNode)(1,"b",null,h,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Employment Records",color:"silver",children:(0,e.createVNode)(1,"b",null,N,0)})]})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stamp the application!",color:"grey",textAlign:"center",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"red",content:"Dismiss",fontSize:"150%",icon:"ban",lineHeight:4.5,onClick:function(){function V(){return C("dismiss")}return V}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"green",content:"Hire",fontSize:"150%",icon:"arrow-circle-up",lineHeight:4.5,onClick:function(){function V(){return C("hire")}return V}()})})]})})})]})})});if(c===3)return(0,e.createComponentVNode)(2,o.Window,{width:400,height:550,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{pt:"40%",fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,color:"red",fontSize:"50px",textAlign:"center",children:"Game Over"}),(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"15px",color:"label",textAlign:"center",children:g}),(0,e.createComponentVNode)(2,t.Stack.Item,{color:"blue",fontSize:"20px",textAlign:"center",pt:"10px",children:["FINAL SCORE: ",v-1,"/",f]})]})}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{lineHeight:4,fluid:!0,icon:"arrow-left",content:"Main Menu",onClick:function(){function V(){return C("back_to_menu")}return V}()})})]})})})}return b}()},64713:function(x,r,n){"use strict";r.__esModule=!0,r.Newscaster=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),p=n(76910),b=n(98595),y=n(3939),I=n(22091),k=["icon","iconSpin","selected","security","onClick","title","children"],C=["name"];function i(S,L){if(S==null)return{};var w={};for(var A in S)if({}.hasOwnProperty.call(S,A)){if(L.includes(A))continue;w[A]=S[A]}return w}var c=128,m=["security","engineering","medical","science","service","supply"],u={security:{title:"Security",fluff_text:"Help keep the crew safe"},engineering:{title:"Engineering",fluff_text:"Ensure the station runs smoothly"},medical:{title:"Medical",fluff_text:"Practice medicine and save lives"},science:{title:"Science",fluff_text:"Develop new technologies"},service:{title:"Service",fluff_text:"Provide amenities to the crew"},supply:{title:"Supply",fluff_text:"Keep the station supplied"}},d=r.Newscaster=function(){function S(L,w){var A=(0,t.useBackend)(w),T=A.act,E=A.data,P=E.is_security,D=E.is_admin,M=E.is_silent,O=E.is_printing,R=E.screen,j=E.channels,_=E.channel_idx,W=_===void 0?-1:_,z=(0,t.useLocalState)(w,"menuOpen",!1),K=z[0],G=z[1],Q=(0,t.useLocalState)(w,"viewingPhoto",""),J=Q[0],ue=Q[1],ie=(0,t.useLocalState)(w,"censorMode",!1),pe=ie[0],te=ie[1],q;R===0||R===2?q=(0,e.createComponentVNode)(2,l):R===1&&(q=(0,e.createComponentVNode)(2,h));var ne=j.reduce(function(le,ee){return le+ee.unread},0);return(0,e.createComponentVNode)(2,b.Window,{theme:P&&"security",width:800,height:600,children:[J?(0,e.createComponentVNode)(2,f):(0,e.createComponentVNode)(2,y.ComplexModal,{maxWidth:window.innerWidth/1.5+"px",maxHeight:window.innerHeight/1.5+"px"}),(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Section,{fill:!0,className:(0,a.classes)(["Newscaster__menu",K&&"Newscaster__menu--open"]),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,s,{icon:"bars",title:"Toggle Menu",onClick:function(){function le(){return G(!K)}return le}()}),(0,e.createComponentVNode)(2,s,{icon:"newspaper",title:"Headlines",selected:R===0,onClick:function(){function le(){return T("headlines")}return le}(),children:ne>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:ne>=10?"9+":ne})}),(0,e.createComponentVNode)(2,s,{icon:"briefcase",title:"Job Openings",selected:R===1,onClick:function(){function le(){return T("jobs")}return le}()}),(0,e.createComponentVNode)(2,o.Divider)]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:j.map(function(le){return(0,e.createComponentVNode)(2,s,{icon:le.icon,title:le.name,selected:R===2&&j[W-1]===le,onClick:function(){function ee(){return T("channel",{uid:le.uid})}return ee}(),children:le.unread>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:le.unread>=10?"9+":le.unread})},le)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Divider),(!!P||!!D)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,s,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){function le(){return(0,y.modalOpen)(w,"wanted_notice")}return le}()}),(0,e.createComponentVNode)(2,s,{security:!0,icon:pe?"minus-square":"minus-square-o",title:"Censor Mode: "+(pe?"On":"Off"),mb:"0.5rem",onClick:function(){function le(){return te(!pe)}return le}()}),(0,e.createComponentVNode)(2,o.Divider)],4),(0,e.createComponentVNode)(2,s,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){function le(){return(0,y.modalOpen)(w,"create_story")}return le}()}),(0,e.createComponentVNode)(2,s,{icon:"plus-circle",title:"New Channel",onClick:function(){function le(){return(0,y.modalOpen)(w,"create_channel")}return le}()}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,s,{icon:O?"spinner":"print",iconSpin:O,title:O?"Printing...":"Print Newspaper",onClick:function(){function le(){return T("print_newspaper")}return le}()}),(0,e.createComponentVNode)(2,s,{icon:M?"volume-mute":"volume-up",title:"Mute: "+(M?"On":"Off"),onClick:function(){function le(){return T("toggle_mute")}return le}()})]})]})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,width:"100%",children:[(0,e.createComponentVNode)(2,I.TemporaryNotice),q]})]})})]})}return S}(),s=function(L,w){var A=(0,t.useBackend)(w),T=A.act,E=L.icon,P=E===void 0?"":E,D=L.iconSpin,M=L.selected,O=M===void 0?!1:M,R=L.security,j=R===void 0?!1:R,_=L.onClick,W=L.title,z=L.children,K=i(L,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Newscaster__menuButton",O&&"Newscaster__menuButton--selected",j&&"Newscaster__menuButton--security"]),onClick:_},K,{children:[O&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,e.createComponentVNode)(2,o.Icon,{name:P,spin:D,size:"2"}),(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--title",children:W}),z]})))},l=function(L,w){var A=(0,t.useBackend)(w),T=A.act,E=A.data,P=E.screen,D=E.is_admin,M=E.channel_idx,O=E.channel_can_manage,R=E.channels,j=E.stories,_=E.wanted,W=(0,t.useLocalState)(w,"fullStories",[]),z=W[0],K=W[1],G=(0,t.useLocalState)(w,"censorMode",!1),Q=G[0],J=G[1],ue=P===2&&M>-1?R[M-1]:null;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!_&&(0,e.createComponentVNode)(2,N,{story:_,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:ue?ue.icon:"newspaper",mr:"0.5rem"}),ue?ue.name:"Headlines"],0),children:j.length>0?j.slice().reverse().map(function(ie){return!z.includes(ie.uid)&&ie.body.length+3>c?Object.assign({},ie,{body_short:ie.body.substr(0,c-4)+"..."}):ie}).map(function(ie,pe){return(0,e.createComponentVNode)(2,N,{story:ie},pe)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no stories at this time."]})}),!!ue&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,height:"40%",title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"info-circle",mr:"0.5rem"}),(0,e.createTextVNode)("About")],4),buttons:(0,e.createFragment)([Q&&(0,e.createComponentVNode)(2,o.Button,{disabled:!!ue.admin&&!D,selected:ue.censored,icon:ue.censored?"comment-slash":"comment",content:ue.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){function ie(){return T("censor_channel",{uid:ue.uid})}return ie}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!O,icon:"cog",content:"Manage",onClick:function(){function ie(){return(0,y.modalOpen)(w,"manage_channel",{uid:ue.uid})}return ie}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:ue.description||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:ue.author||"N/A"}),!!D&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Ckey",children:ue.author_ckey}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Public",children:ue.public?"Yes":"No"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Views",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"eye",mr:"0.5rem"}),j.reduce(function(ie,pe){return ie+pe.view_count},0).toLocaleString()]})]})})]})},h=function(L,w){var A=(0,t.useBackend)(w),T=A.act,E=A.data,P=E.jobs,D=E.wanted,M=Object.entries(P).reduce(function(O,R){var j=R[0],_=R[1];return O+_.length},0);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!D&&(0,e.createComponentVNode)(2,N,{story:D,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"briefcase",mr:"0.5rem"}),(0,e.createTextVNode)("Job Openings")],4),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:"Work for a better future at Nanotrasen"}),children:M>0?m.map(function(O){return Object.assign({},u[O],{id:O,jobs:P[O]})}).filter(function(O){return!!O&&O.jobs.length>0}).map(function(O){return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__jobCategory","Newscaster__jobCategory--"+O.id]),title:O.title,buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:O.fluff_text}),children:O.jobs.map(function(R){return(0,e.createComponentVNode)(2,o.Box,{class:(0,a.classes)(["Newscaster__jobOpening",!!R.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",R.title]},R.title)})},O.id)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no openings at this time."]})}),(0,e.createComponentVNode)(2,o.Section,{height:"17%",children:["Interested in serving Nanotrasen?",(0,e.createVNode)(1,"br"),"Sign up for any of the above position now at the ",(0,e.createVNode)(1,"b",null,"Head of Personnel's Office!",16),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{as:"small",color:"label",children:"By signing up for a job at Nanotrasen, you agree to transfer your soul to the loyalty department of the omnipresent and helpful watcher of humanity."})]})]})},N=function(L,w){var A=(0,t.useBackend)(w),T=A.act,E=A.data,P=L.story,D=L.wanted,M=D===void 0?!1:D,O=E.is_admin,R=(0,t.useLocalState)(w,"fullStories",[]),j=R[0],_=R[1],W=(0,t.useLocalState)(w,"censorMode",!1),z=W[0],K=W[1];return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__story",M&&"Newscaster__story--wanted"]),title:(0,e.createFragment)([M&&(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle",mr:"0.5rem"}),P.censor_flags&2&&"[REDACTED]"||P.title||"News from "+P.author],0),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:[!M&&z&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,e.createComponentVNode)(2,o.Button,{enabled:P.censor_flags&2,icon:P.censor_flags&2?"comment-slash":"comment",content:P.censor_flags&2?"Uncensor":"Censor",mr:"0.5rem",mt:"-0.25rem",onClick:function(){function G(){return T("censor_story",{uid:P.uid})}return G}()})}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",P.author," |\xA0",!!O&&(0,e.createFragment)([(0,e.createTextVNode)("ckey: "),P.author_ckey,(0,e.createTextVNode)(" |\xA0")],0),!M&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),(0,e.createTextVNode)(" "),P.view_count.toLocaleString(),(0,e.createTextVNode)(" |\xA0")],0),(0,e.createComponentVNode)(2,o.Icon,{name:"clock"})," ",(0,p.timeAgo)(P.publish_time,E.world_time)]})]})}),children:(0,e.createComponentVNode)(2,o.Box,{children:P.censor_flags&2?"[REDACTED]":(0,e.createFragment)([!!P.has_photo&&(0,e.createComponentVNode)(2,v,{name:"story_photo_"+P.uid+".png",float:"right",ml:"0.5rem"}),(P.body_short||P.body).split("\n").map(function(G,Q){return(0,e.createComponentVNode)(2,o.Box,{children:G||(0,e.createVNode)(1,"br")},Q)}),P.body_short&&(0,e.createComponentVNode)(2,o.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){function G(){return _([].concat(j,[P.uid]))}return G}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})],0)})})},v=function(L,w){var A=L.name,T=i(L,C),E=(0,t.useLocalState)(w,"viewingPhoto",""),P=E[0],D=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"img",className:"Newscaster__photo",src:A,onClick:function(){function M(){return D(A)}return M}()},T)))},f=function(L,w){var A=(0,t.useLocalState)(w,"viewingPhoto",""),T=A[0],E=A[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Newscaster__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:T}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function P(){return E("")}return P}()})]})},g=function(L,w){var A=(0,t.useBackend)(w),T=A.act,E=A.data,P=!!L.args.uid&&E.channels.filter(function(oe){return oe.uid===L.args.uid}).pop();if(L.id==="manage_channel"&&!P){(0,y.modalClose)(w);return}var D=L.id==="manage_channel",M=!!L.args.is_admin,O=L.args.scanned_user,R=(0,t.useLocalState)(w,"author",(P==null?void 0:P.author)||O||"Unknown"),j=R[0],_=R[1],W=(0,t.useLocalState)(w,"name",(P==null?void 0:P.name)||""),z=W[0],K=W[1],G=(0,t.useLocalState)(w,"description",(P==null?void 0:P.description)||""),Q=G[0],J=G[1],ue=(0,t.useLocalState)(w,"icon",(P==null?void 0:P.icon)||"newspaper"),ie=ue[0],pe=ue[1],te=(0,t.useLocalState)(w,"isPublic",D?!!(P!=null&&P.public):!1),q=te[0],ne=te[1],le=(0,t.useLocalState)(w,"adminLocked",(P==null?void 0:P.admin)===1||!1),ee=le[0],re=le[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:D?"Manage "+P.name:"Create New Channel",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!M,width:"100%",value:j,onInput:function(){function oe(fe,me){return _(me)}return oe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"50 characters max.",maxLength:"50",value:z,onInput:function(){function oe(fe,me){return K(me)}return oe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",placeholder:"128 characters max.",maxLength:"128",value:Q,onInput:function(){function oe(fe,me){return J(me)}return oe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Icon",children:[(0,e.createComponentVNode)(2,o.Input,{disabled:!M,value:ie,width:"35%",mr:"0.5rem",onInput:function(){function oe(fe,me){return pe(me)}return oe}()}),(0,e.createComponentVNode)(2,o.Icon,{name:ie,size:"2",verticalAlign:"middle",mr:"0.5rem"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Accept Public Stories?",children:(0,e.createComponentVNode)(2,o.Button,{selected:q,icon:q?"toggle-on":"toggle-off",content:q?"Yes":"No",onClick:function(){function oe(){return ne(!q)}return oe}()})}),M&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ee,icon:ee?"lock":"lock-open",content:ee?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function oe(){return re(!ee)}return oe}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:j.trim().length===0||z.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function oe(){(0,y.modalAnswer)(w,L.id,"",{author:j,name:z.substr(0,49),description:Q.substr(0,128),icon:ie,public:q?1:0,admin_locked:ee?1:0})}return oe}()})]})},V=function(L,w){var A=(0,t.useBackend)(w),T=A.act,E=A.data,P=E.photo,D=E.channels,M=E.channel_idx,O=M===void 0?-1:M,R=!!L.args.is_admin,j=L.args.scanned_user,_=D.slice().sort(function(oe,fe){if(O<0)return 0;var me=D[O-1];if(me.uid===oe.uid)return-1;if(me.uid===fe.uid)return 1}).filter(function(oe){return R||!oe.frozen&&(oe.author===j||!!oe.public)}),W=(0,t.useLocalState)(w,"author",j||"Unknown"),z=W[0],K=W[1],G=(0,t.useLocalState)(w,"channel",_.length>0?_[0].name:""),Q=G[0],J=G[1],ue=(0,t.useLocalState)(w,"title",""),ie=ue[0],pe=ue[1],te=(0,t.useLocalState)(w,"body",""),q=te[0],ne=te[1],le=(0,t.useLocalState)(w,"adminLocked",!1),ee=le[0],re=le[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Create New Story",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!R,width:"100%",value:z,onInput:function(){function oe(fe,me){return K(me)}return oe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:Q,options:_.map(function(oe){return oe.name}),mb:"0",width:"100%",onSelected:function(){function oe(fe){return J(fe)}return oe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"128 characters max.",maxLength:"128",value:ie,onInput:function(){function oe(fe,me){return pe(me)}return oe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Story Text",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,multiline:!0,placeholder:"1024 characters max.",maxLength:"1024",rows:"8",width:"100%",value:q,onInput:function(){function oe(fe,me){return ne(me)}return oe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:P,content:P?"Eject: "+P.name:"Insert Photo",tooltip:!P&&"Attach a photo to this story by holding the photograph in your hand.",onClick:function(){function oe(){return T(P?"eject_photo":"attach_photo")}return oe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,title:ie,maxHeight:"13.5rem",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:[!!P&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+P.uid+".png",float:"right"}),q.split("\n").map(function(oe,fe){return(0,e.createComponentVNode)(2,o.Box,{children:oe||(0,e.createVNode)(1,"br")},fe)}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})]})})}),R&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ee,icon:ee?"lock":"lock-open",content:ee?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function oe(){return re(!ee)}return oe}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:z.trim().length===0||Q.trim().length===0||ie.trim().length===0||q.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function oe(){(0,y.modalAnswer)(w,"create_story","",{author:z,channel:Q,title:ie.substr(0,127),body:q.substr(0,1023),admin_locked:ee?1:0})}return oe}()})]})},B=function(L,w){var A=(0,t.useBackend)(w),T=A.act,E=A.data,P=E.photo,D=E.wanted,M=!!L.args.is_admin,O=L.args.scanned_user,R=(0,t.useLocalState)(w,"author",(D==null?void 0:D.author)||O||"Unknown"),j=R[0],_=R[1],W=(0,t.useLocalState)(w,"name",(D==null?void 0:D.title.substr(8))||""),z=W[0],K=W[1],G=(0,t.useLocalState)(w,"description",(D==null?void 0:D.body)||""),Q=G[0],J=G[1],ue=(0,t.useLocalState)(w,"adminLocked",(D==null?void 0:D.admin_locked)===1||!1),ie=ue[0],pe=ue[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Manage Wanted Notice",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Authority",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!M,width:"100%",value:j,onInput:function(){function te(q,ne){return _(ne)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",value:z,maxLength:"128",onInput:function(){function te(q,ne){return K(ne)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",value:Q,maxLength:"512",rows:"4",onInput:function(){function te(q,ne){return J(ne)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:P,content:P?"Eject: "+P.name:"Insert Photo",tooltip:!P&&"Attach a photo to this wanted notice by holding the photograph in your hand.",tooltipPosition:"top",onClick:function(){function te(){return T(P?"eject_photo":"attach_photo")}return te}()}),!!P&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+P.uid+".png",float:"right"})]}),M&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ie,icon:ie?"lock":"lock-open",content:ie?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function te(){return pe(!ie)}return te}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!D,icon:"eraser",color:"danger",content:"Clear",position:"absolute",right:"7.25rem",bottom:"-0.75rem",onClick:function(){function te(){T("clear_wanted_notice"),(0,y.modalClose)(w)}return te}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:j.trim().length===0||z.trim().length===0||Q.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function te(){(0,y.modalAnswer)(w,L.id,"",{author:j,name:z.substr(0,127),description:Q.substr(0,511),admin_locked:ie?1:0})}return te}()})]})};(0,y.modalRegisterBodyOverride)("create_channel",g),(0,y.modalRegisterBodyOverride)("manage_channel",g),(0,y.modalRegisterBodyOverride)("create_story",V),(0,y.modalRegisterBodyOverride)("wanted_notice",B)},48286:function(x,r,n){"use strict";r.__esModule=!0,r.Noticeboard=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(98595),b=r.Noticeboard=function(){function y(I,k){var C=(0,t.useBackend)(k),i=C.act,c=C.data,m=c.papers;return(0,e.createComponentVNode)(2,p.Window,{width:600,height:300,theme:"noticeboard",children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:m.map(function(u){return(0,e.createComponentVNode)(2,o.Stack.Item,{align:"center",width:"22.45%",height:"85%",onClick:function(){function d(){return i("interact",{paper:u.ref})}return d}(),onContextMenu:function(){function d(s){s.preventDefault(),i("showFull",{paper:u.ref})}return d}(),children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,fontSize:.75,title:u.name,children:(0,a.decodeHtmlEntities)(u.contents)})},u.ref)})})})})}return y}()},41166:function(x,r,n){"use strict";r.__esModule=!0,r.NuclearBomb=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.NuclearBomb=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data;return i.extended?(0,e.createComponentVNode)(2,o.Window,{width:350,height:290,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Disk",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.authdisk?"eject":"id-card",selected:i.authdisk,content:i.diskname?i.diskname:"-----",tooltip:i.authdisk?"Eject Disk":"Insert Disk",onClick:function(){function c(){return C("auth")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Code",children:(0,e.createComponentVNode)(2,t.Button,{icon:"key",disabled:!i.authdisk,selected:i.authcode,content:i.codemsg,onClick:function(){function c(){return C("code")}return c}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Arming & Disarming",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bolted to floor",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.anchored?"check":"times",selected:i.anchored,disabled:!i.authdisk,content:i.anchored?"YES":"NO",onClick:function(){function c(){return C("toggle_anchor")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"stopwatch",content:i.time,disabled:!i.authfull,tooltip:"Set Timer",onClick:function(){function c(){return C("set_time")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.safety?"check":"times",selected:i.safety,disabled:!i.authfull,content:i.safety?"ON":"OFF",tooltip:i.safety?"Disable Safety":"Enable Safety",onClick:function(){function c(){return C("toggle_safety")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Arm/Disarm",children:(0,e.createComponentVNode)(2,t.Button,{icon:(i.timer,"bomb"),disabled:i.safety||!i.authfull,color:"red",content:i.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){function c(){return C("toggle_armed")}return c}()})})]})})]})}):(0,e.createComponentVNode)(2,o.Window,{width:350,height:115,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Deployment",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"exclamation-triangle",content:"Deploy Nuclear Device (will bolt device to floor)",onClick:function(){function c(){return C("deploy")}return c}()})})})})}return b}()},52416:function(x,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(92986),p=n(72253),b=n(36036),y=n(98595),I=r.NumberInputModal=function(){function C(i,c){var m=(0,p.useBackend)(c),u=m.act,d=m.data,s=d.init_value,l=d.large_buttons,h=d.message,N=h===void 0?"":h,v=d.timeout,f=d.title,g=(0,p.useLocalState)(c,"input",s),V=g[0],B=g[1],S=function(){function A(T){T!==V&&B(T)}return A}(),L=function(){function A(T){T!==V&&B(T)}return A}(),w=140+Math.max(Math.ceil(N.length/3),N.length>0&&l?5:0);return(0,e.createComponentVNode)(2,y.Window,{title:f,width:270,height:w,children:[v&&(0,e.createComponentVNode)(2,a.Loader,{value:v}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function A(T){var E=window.event?T.which:T.keyCode;E===o.KEY_ENTER&&u("submit",{entry:V}),E===o.KEY_ESCAPE&&u("cancel")}return A}(),children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Box,{color:"label",children:N})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,k,{input:V,onClick:L,onChange:S})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:V})})]})})})]})}return C}(),k=function(i,c){var m=(0,p.useBackend)(c),u=m.act,d=m.data,s=d.min_value,l=d.max_value,h=d.init_value,N=d.round_value,v=i.input,f=i.onClick,g=i.onChange,V=Math.round(v!==s?Math.max(v/2,s):l/2),B=v===s&&s>0||v===1;return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Button,{disabled:v===s,icon:"angle-double-left",onClick:function(){function S(){return f(s)}return S}(),tooltip:v===s?"Min":"Min ("+s+")"})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.RestrictedInput,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!N,minValue:s,maxValue:l,onChange:function(){function S(L,w){return g(w)}return S}(),onEnter:function(){function S(L,w){return u("submit",{entry:w})}return S}(),value:v})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Button,{disabled:v===l,icon:"angle-double-right",onClick:function(){function S(){return f(l)}return S}(),tooltip:v===l?"Max":"Max ("+l+")"})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Button,{disabled:B,icon:"divide",onClick:function(){function S(){return f(V)}return S}(),tooltip:B?"Split":"Split ("+V+")"})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Button,{disabled:v===h,icon:"redo",onClick:function(){function S(){return f(h)}return S}(),tooltip:h?"Reset ("+h+")":"Reset"})})]})}},1218:function(x,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(98595),p=n(36036),b=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],y=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],I={average:[.25,.5],bad:[.5,1/0]},k=["bad","average","average","good","average","average","bad"],C=r.OperatingComputer=function(){function u(d,s){var l=(0,t.useBackend)(s),h=l.act,N=l.data,v=N.hasOccupant,f=N.choice,g;return f?g=(0,e.createComponentVNode)(2,m):g=v?(0,e.createComponentVNode)(2,i):(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,o.Window,{width:650,height:455,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Tabs,{children:[(0,e.createComponentVNode)(2,p.Tabs.Tab,{selected:!f,icon:"user",onClick:function(){function V(){return h("choiceOff")}return V}(),children:"Patient"}),(0,e.createComponentVNode)(2,p.Tabs.Tab,{selected:!!f,icon:"cog",onClick:function(){function V(){return h("choiceOn")}return V}(),children:"Options"})]})}),(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,p.Section,{fill:!0,scrollable:!0,children:g})})]})})})}return u}(),i=function(d,s){var l=(0,t.useBackend)(s),h=l.data,N=h.occupant;return(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,p.Section,{fill:!0,title:"Patient",children:(0,e.createComponentVNode)(2,p.LabeledList,{children:[(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Name",children:N.name}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Status",color:b[N.stat][0],children:b[N.stat][1]}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,p.ProgressBar,{min:"0",max:N.maxHealth,value:N.health/N.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),y.map(function(v,f){return(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:v[0]+" Damage",children:(0,e.createComponentVNode)(2,p.ProgressBar,{min:"0",max:"100",value:N[v[1]]/100,ranges:I,children:(0,a.round)(N[v[1]])},f)},f)}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,p.ProgressBar,{min:"0",max:N.maxTemp,value:N.bodyTemperature/N.maxTemp,color:k[N.temperatureSuitability+3],children:[(0,a.round)(N.btCelsius),"\xB0C, ",(0,a.round)(N.btFaren),"\xB0F"]})}),!!N.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,p.ProgressBar,{min:"0",max:N.bloodMax,value:N.bloodLevel/N.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[N.bloodPercent,"%, ",N.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Pulse",children:[N.pulse," BPM"]})],4)]})})}),(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Section,{title:"Current Procedure",level:"2",children:N.inSurgery?(0,e.createComponentVNode)(2,p.LabeledList,{children:[(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Procedure",children:N.surgeryName}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Next Step",children:N.stepName})]}):(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"No procedure ongoing."})})})]})},c=function(){return(0,e.createComponentVNode)(2,p.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,p.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No patient detected."]})})},m=function(d,s){var l=(0,t.useBackend)(s),h=l.act,N=l.data,v=N.verbose,f=N.health,g=N.healthAlarm,V=N.oxy,B=N.oxyAlarm,S=N.crit;return(0,e.createComponentVNode)(2,p.LabeledList,{children:[(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Loudspeaker",children:(0,e.createComponentVNode)(2,p.Button,{selected:v,icon:v?"toggle-on":"toggle-off",content:v?"On":"Off",onClick:function(){function L(){return h(v?"verboseOff":"verboseOn")}return L}()})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Health Announcer",children:(0,e.createComponentVNode)(2,p.Button,{selected:f,icon:f?"toggle-on":"toggle-off",content:f?"On":"Off",onClick:function(){function L(){return h(f?"healthOff":"healthOn")}return L}()})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,e.createComponentVNode)(2,p.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:g,stepPixelSize:5,ml:"0",onChange:function(){function L(w,A){return h("health_adj",{new:A})}return L}()})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,p.Button,{selected:V,icon:V?"toggle-on":"toggle-off",content:V?"On":"Off",onClick:function(){function L(){return h(V?"oxyOff":"oxyOn")}return L}()})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,e.createComponentVNode)(2,p.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:B,stepPixelSize:5,ml:"0",onChange:function(){function L(w,A){return h("oxy_adj",{new:A})}return L}()})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,p.Button,{selected:S,icon:S?"toggle-on":"toggle-off",content:S?"On":"Off",onClick:function(){function L(){return h(S?"critOff":"critOn")}return L}()})})]})}},46892:function(x,r,n){"use strict";r.__esModule=!0,r.Orbit=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(98595),b=n(35840);function y(l,h){var N=typeof Symbol!="undefined"&&l[Symbol.iterator]||l["@@iterator"];if(N)return(N=N.call(l)).next.bind(N);if(Array.isArray(l)||(N=I(l))||h&&l&&typeof l.length=="number"){N&&(l=N);var v=0;return function(){return v>=l.length?{done:!0}:{done:!1,value:l[v++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function I(l,h){if(l){if(typeof l=="string")return k(l,h);var N={}.toString.call(l).slice(8,-1);return N==="Object"&&l.constructor&&(N=l.constructor.name),N==="Map"||N==="Set"?Array.from(l):N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N)?k(l,h):void 0}}function k(l,h){(h==null||h>l.length)&&(h=l.length);for(var N=0,v=Array(h);NN},m=function(h,N){var v=h.name,f=N.name;if(!v||!f)return 0;var g=v.match(C),V=f.match(C);if(g&&V&&v.replace(C,"")===f.replace(C,"")){var B=parseInt(g[1],10),S=parseInt(V[1],10);return B-S}return c(v,f)},u=function(h,N){var v=h.searchText,f=h.source,g=h.title,V=h.color,B=h.sorted,S=f.filter(i(v));return B&&S.sort(m),f.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:g+" - ("+f.length+")",children:S.map(function(L){return(0,e.createComponentVNode)(2,d,{thing:L,color:V},L.name)})})},d=function(h,N){var v=(0,t.useBackend)(N),f=v.act,g=h.color,V=h.thing;return(0,e.createComponentVNode)(2,o.Button,{color:g,tooltip:V.assigned_role?(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",mr:"0.5em",className:(0,b.classes)(["orbit_job16x16",V.assigned_role_sprite])})," ",V.assigned_role]}):"",tooltipPosition:"bottom",onClick:function(){function B(){return f("orbit",{ref:V.ref})}return B}(),children:[V.name,V.orbiters&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,ml:1,children:["(",V.orbiters," ",(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),")"]})]})},s=r.Orbit=function(){function l(h,N){for(var v=(0,t.useBackend)(N),f=v.act,g=v.data,V=g.alive,B=g.antagonists,S=g.highlights,L=g.response_teams,w=g.tourist,A=g.auto_observe,T=g.dead,E=g.ssd,P=g.ghosts,D=g.misc,M=g.npcs,O=(0,t.useLocalState)(N,"searchText",""),R=O[0],j=O[1],_={},W=y(B),z;!(z=W()).done;){var K=z.value;_[K.antag]===void 0&&(_[K.antag]=[]),_[K.antag].push(K)}var G=Object.entries(_);G.sort(function(J,ue){return c(J[0],ue[0])});var Q=function(){function J(ue){for(var ie=0,pe=[G.map(function(ne){var le=ne[0],ee=ne[1];return ee}),w,S,V,P,E,T,M,D];ie0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:G.map(function(J){var ue=J[0],ie=J[1];return(0,e.createComponentVNode)(2,o.Section,{title:ue+" - ("+ie.length+")",level:2,children:ie.filter(i(R)).sort(m).map(function(pe){return(0,e.createComponentVNode)(2,d,{color:"bad",thing:pe},pe.name)})},ue)})}),S.length>0&&(0,e.createComponentVNode)(2,u,{title:"Highlights",source:S,searchText:R,color:"teal"}),(0,e.createComponentVNode)(2,u,{title:"Response Teams",source:L,searchText:R,color:"purple"}),(0,e.createComponentVNode)(2,u,{title:"Tourists",source:w,searchText:R,color:"violet"}),(0,e.createComponentVNode)(2,u,{title:"Alive",source:V,searchText:R,color:"good"}),(0,e.createComponentVNode)(2,u,{title:"Ghosts",source:P,searchText:R,color:"grey"}),(0,e.createComponentVNode)(2,u,{title:"SSD",source:E,searchText:R,color:"grey"}),(0,e.createComponentVNode)(2,u,{title:"Dead",source:T,searchText:R,sorted:!1}),(0,e.createComponentVNode)(2,u,{title:"NPCs",source:M,searchText:R,sorted:!1}),(0,e.createComponentVNode)(2,u,{title:"Misc",source:D,searchText:R,sorted:!1})]})})}return l}()},15421:function(x,r,n){"use strict";r.__esModule=!0,r.OreRedemption=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),p=n(98595),b=n(9394);function y(l){if(l==null)throw new TypeError("Cannot destructure "+l)}var I=(0,b.createLogger)("OreRedemption"),k=function(h){return h.toLocaleString("en-US")+" pts"},C=r.OreRedemption=function(){function l(h,N){return(0,e.createComponentVNode)(2,p.Window,{width:490,height:750,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i,{height:"100%"})}),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,m)]})})})}return l}(),i=function(h,N){var v=(0,t.useBackend)(N),f=v.act,g=v.data,V=g.id,B=g.points,S=g.disk,L=Object.assign({},(y(h),h));return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({},L,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"This machine only accepts ore. Gibtonite is not accepted."]}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed Points",color:B>0?"good":"grey",bold:B>0&&"good",children:k(B)})}),(0,e.createComponentVNode)(2,o.Divider),S?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Design disk",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,icon:"eject",content:S.name,tooltip:"Ejects the design disk.",onClick:function(){function w(){return f("eject_disk")}return w}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!S.design||!S.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){function w(){return f("download")}return w}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stored design",children:(0,e.createComponentVNode)(2,o.Box,{color:S.design&&(S.compatible?"good":"bad"),children:S.design||"N/A"})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No design disk inserted."})]})))},c=function(h,N){var v=(0,t.useBackend)(N),f=v.act,g=v.data,V=g.sheets,B=Object.assign({},(y(h),h));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"20%",children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},B,{children:[(0,e.createComponentVNode)(2,u,{title:"Sheets",columns:[["Available","25%"],["Ore Value","15%"],["Smelt","20%"]]}),V.map(function(S){return(0,e.createComponentVNode)(2,d,{ore:S},S.id)})]})))})},m=function(h,N){var v=(0,t.useBackend)(N),f=v.act,g=v.data,V=g.alloys,B=Object.assign({},(y(h),h));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},B,{children:[(0,e.createComponentVNode)(2,u,{title:"Alloys",columns:[["Recipe","50%"],["Available","11%"],["Smelt","20%"]]}),V.map(function(S){return(0,e.createComponentVNode)(2,s,{ore:S},S.id)})]})))})},u=function(h,N){var v;return(0,e.createComponentVNode)(2,o.Box,{className:"OreHeader",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:h.title}),(v=h.columns)==null?void 0:v.map(function(f){return(0,e.createComponentVNode)(2,o.Stack.Item,{basis:f[1],textAlign:"center",color:"label",bold:!0,children:f[0]},f)})]})})},d=function(h,N){var v=(0,t.useBackend)(N),f=v.act,g=h.ore;if(!(g.value&&g.amount<=0&&!(["metal","glass"].indexOf(g.id)>-1)))return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"45%",align:"middle",children:(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",g.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:g.name})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",color:g.amount>=1?"good":"gray",bold:g.amount>=1,align:"center",children:g.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",children:g.value}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(g.amount,50),stepPixelSize:6,onChange:function(){function V(B,S){return f(g.value?"sheet":"alloy",{id:g.id,amount:S})}return V}()})})]})})},s=function(h,N){var v=(0,t.useBackend)(N),f=v.act,g=h.ore;return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"7%",align:"middle",children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["alloys32x32",g.id])})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",textAlign:"middle",align:"center",children:g.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"35%",textAlign:"middle",color:g.amount>=1?"good":"gray",align:"center",children:g.description}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"10%",textAlign:"center",color:g.amount>=1?"good":"gray",bold:g.amount>=1,align:"center",children:g.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(g.amount,50),stepPixelSize:6,onChange:function(){function V(B,S){return f(g.value?"sheet":"alloy",{id:g.id,amount:S})}return V}()})})]})})}},52754:function(x,r,n){"use strict";r.__esModule=!0,r.PAI=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(71253),b=n(70752),y=function(C){var i;try{i=b("./"+C+".js")}catch(m){if(m.code==="MODULE_NOT_FOUND")return(0,p.routingError)("notFound",C);throw m}var c=i[C];return c||(0,p.routingError)("missingExport",C)},I=r.PAI=function(){function k(C,i){var c=(0,a.useBackend)(i),m=c.act,u=c.data,d=u.app_template,s=u.app_icon,l=u.app_title,h=y(d);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{p:1,fill:!0,scrollable:!0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:s,mr:1}),l,d!=="pai_main_menu"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{ml:2,mb:0,content:"Back",icon:"arrow-left",onClick:function(){function N(){return m("Back")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Home",icon:"arrow-up",onClick:function(){function N(){return m("MASTER_back")}return N}()})],4)]}),children:(0,e.createComponentVNode)(2,h)})})})})})}return k}()},85175:function(x,r,n){"use strict";r.__esModule=!0,r.PDA=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(71253),b=n(59395),y=function(c){var m;try{m=b("./"+c+".js")}catch(d){if(d.code==="MODULE_NOT_FOUND")return(0,p.routingError)("notFound",c);throw d}var u=m[c];return u||(0,p.routingError)("missingExport",c)},I=r.PDA=function(){function i(c,m){var u=(0,a.useBackend)(m),d=u.act,s=u.data,l=s.app,h=s.owner;if(!h)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:"No user data found. Please swipe an ID card."})})});var N=y(l.template);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,k)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,p:1,pb:0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:l.icon,mr:1}),l.name]}),children:(0,e.createComponentVNode)(2,N)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:7.5,children:(0,e.createComponentVNode)(2,C)})]})})})}return i}(),k=function(c,m){var u=(0,a.useBackend)(m),d=u.act,s=u.data,l=s.idInserted,h=s.idLink,N=s.stationTime,v=s.cartridge_name;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{ml:.5,children:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",color:"transparent",onClick:function(){function f(){return d("Authenticate")}return f}(),content:l?h:"No ID Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function f(){return d("Eject")}return f}(),content:v?["Eject "+v]:"No Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"right",bold:!0,mr:1,mt:.5,children:N})]})},C=function(c,m){var u=(0,a.useBackend)(m),d=u.act,s=u.data,l=s.app;return(0,e.createComponentVNode)(2,t.Box,{height:"45px",className:"PDA__footer",backgroundColor:"#1b1b1b",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[!!l.has_back&&(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"33%",mr:-.5,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:l.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){function h(){return d("Back")}return h}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:l.has_back?"33%":"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:l.is_home?"disabled":"white",icon:"home",onClick:function(){function h(){d("Home")}return h}()})})]})})}},68654:function(x,r,n){"use strict";r.__esModule=!0,r.Pacman=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(49968),b=r.Pacman=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=c.active,u=c.anchored,d=c.broken,s=c.emagged,l=c.fuel_type,h=c.fuel_usage,N=c.fuel_stored,v=c.fuel_cap,f=c.is_ai,g=c.tmp_current,V=c.tmp_max,B=c.tmp_overheat,S=c.output_max,L=c.power_gen,w=c.output_set,A=c.has_fuel,T=N/v,E=g/V,P=w*L,D=Math.round(N/h*2),M=Math.round(D/60),O=D>120?M+" minutes":D+" seconds";return(0,e.createComponentVNode)(2,o.Window,{width:500,height:225,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(d||!u)&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[!!d&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator is malfunctioning!"}),!d&&!u&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!d&&!!u&&(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:m?"power-off":"times",content:m?"On":"Off",tooltip:"Toggles the generator on/off. Requires fuel.",tooltipPosition:"left",disabled:!A,selected:m,onClick:function(){function R(){return i("toggle_power")}return R}()}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",className:"ml-1",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power setting",children:[(0,e.createComponentVNode)(2,t.NumberInput,{value:w,minValue:1,maxValue:S*(s?2.5:1),step:1,className:"mt-1",onDrag:function(){function R(j,_){return i("change_power",{change_power:_})}return R}()}),"(",(0,p.formatPower)(P),")"]})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:E,ranges:{green:[-1/0,.33],orange:[.33,.66],red:[.66,1/0]},children:[g," \u2103"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[B>50&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"CRITICAL OVERHEAT!"}),B>20&&B<=50&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"WARNING: Overheating!"}),B>1&&B<=20&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Temperature High"}),B===0&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Optimal"})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fuel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject Fuel",tooltip:"Ejects fuel. Generator needs to be offline.",tooltipPosition:"left",disabled:m||f||!A,onClick:function(){function R(){return i("eject_fuel")}return R}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Type",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T,ranges:{red:[-1/0,.33],orange:[.33,.66],green:[.66,1/0]},children:[Math.round(N/1e3)," dm\xB3"]})})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel usage",children:[h/1e3," dm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel depletion",children:[!!A&&(h?O:"N/A"),!A&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}return y}()},1701:function(x,r,n){"use strict";r.__esModule=!0,r.PanDEMIC=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.PanDEMIC=function(){function u(d,s){var l=(0,a.useBackend)(s),h=l.data,N=h.beakerLoaded,v=h.beakerContainsBlood,f=h.beakerContainsVirus,g=h.resistances,V=g===void 0?[]:g,B;return N?v?v&&!f&&(B=(0,e.createFragment)([(0,e.createTextVNode)("No disease detected in provided blood sample.")],4)):B=(0,e.createFragment)([(0,e.createTextVNode)("No blood sample found in the loaded container.")],4):B=(0,e.createFragment)([(0,e.createTextVNode)("No container loaded.")],4),(0,e.createComponentVNode)(2,o.Window,{width:575,height:510,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[B&&!f?(0,e.createComponentVNode)(2,t.Section,{title:"Container Information",buttons:(0,e.createComponentVNode)(2,b,{fill:!0,vertical:!0}),children:(0,e.createComponentVNode)(2,t.NoticeBox,{children:B})}):(0,e.createComponentVNode)(2,k),(V==null?void 0:V.length)>0&&(0,e.createComponentVNode)(2,m,{align:"bottom"})]})})})}return u}(),b=function(d,s){var l=(0,a.useBackend)(s),h=l.act,N=l.data,v=N.beakerLoaded;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!v,onClick:function(){function f(){return h("eject_beaker")}return f}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",confirmIcon:"eraser",content:"Destroy",confirmContent:"Destroy",disabled:!v,onClick:function(){function f(){return h("destroy_eject_beaker")}return f}()})],4)},y=function(d,s){var l=(0,a.useBackend)(s),h=l.act,N=l.data,v=N.beakerContainsVirus,f=d.strain,g=f.commonName,V=f.description,B=f.diseaseAgent,S=f.bloodDNA,L=f.bloodType,w=f.possibleTreatments,A=f.transmissionRoute,T=f.isAdvanced,E=(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",children:S?(0,e.createVNode)(1,"span",null,S,0,{style:{"font-family":"'Courier New', monospace"}}):"Undetectable"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood Type",children:(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:L!=null?L:"Undetectable"}})})],4);if(!v)return(0,e.createComponentVNode)(2,t.LabeledList,{children:E});var P;return T&&(g!=null&&g!=="Unknown"?P=(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print Release Forms",onClick:function(){function D(){return h("print_release_forms",{strain_index:d.strainIndex})}return D}(),style:{"margin-left":"auto"}}):P=(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Name Disease",onClick:function(){function D(){return h("name_strain",{strain_index:d.strainIndex})}return D}(),style:{"margin-left":"auto"}})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Common Name",className:"common-name-label",children:(0,e.createComponentVNode)(2,t.Stack,{horizontal:!0,align:"center",children:[g!=null?g:"Unknown",P]})}),V&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:V}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Disease Agent",children:B}),E,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Spread Vector",children:A!=null?A:"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Possible Cures",children:w!=null?w:"None"})]})},I=function(d,s){var l,h=(0,a.useBackend)(s),N=h.act,v=h.data,f=!!v.synthesisCooldown,g=(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:f?"spinner":"clone",iconSpin:f,content:"Clone",disabled:f,onClick:function(){function V(){return N("clone_strain",{strain_index:d.strainIndex})}return V}()}),d.sectionButtons],0);return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:(l=d.sectionTitle)!=null?l:"Strain Information",buttons:g,children:(0,e.createComponentVNode)(2,y,{strain:d.strain,strainIndex:d.strainIndex})})})},k=function(d,s){var l,h=(0,a.useBackend)(s),N=h.act,v=h.data,f=v.selectedStrainIndex,g=v.strains,V=g[f-1];if(g.length===0)return(0,e.createComponentVNode)(2,t.Section,{title:"Container Information",buttons:(0,e.createComponentVNode)(2,b),children:(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No disease detected in provided blood sample."})});if(g.length===1){var B;return(0,e.createFragment)([(0,e.createComponentVNode)(2,I,{strain:g[0],strainIndex:1,sectionButtons:(0,e.createComponentVNode)(2,b)}),((B=g[0].symptoms)==null?void 0:B.length)>0&&(0,e.createComponentVNode)(2,i,{strain:g[0]})],0)}var S=(0,e.createComponentVNode)(2,b);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Culture Information",fill:!0,buttons:S,children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",style:{height:"100%"},children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{children:g.map(function(L,w){var A;return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"virus",selected:f-1===w,onClick:function(){function T(){return N("switch_strain",{strain_index:w+1})}return T}(),children:(A=L.commonName)!=null?A:"Unknown"},w)})})}),(0,e.createComponentVNode)(2,I,{strain:V,strainIndex:f}),((l=V.symptoms)==null?void 0:l.length)>0&&(0,e.createComponentVNode)(2,i,{className:"remove-section-bottom-padding",strain:V})]})})})},C=function(d){return d.reduce(function(s,l){return s+l},0)},i=function(d){var s=d.strain.symptoms;return(0,e.createComponentVNode)(2,t.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Infection Symptoms",fill:!0,className:d.className,children:(0,e.createComponentVNode)(2,t.Table,{className:"symptoms-table",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Stealth"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Resistance"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Stage Speed"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Transmissibility"})]}),s.map(function(l,h){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.stealth}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.resistance}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.stageSpeed}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.transmissibility})]},h)}),(0,e.createComponentVNode)(2,t.Table.Row,{className:"table-spacer"}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"font-weight":"bold"},children:"Total"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C(s.map(function(l){return l.stealth}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C(s.map(function(l){return l.resistance}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C(s.map(function(l){return l.stageSpeed}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C(s.map(function(l){return l.transmissibility}))})]})]})})})},c=["flask","vial","eye-dropper"],m=function(d,s){var l=(0,a.useBackend)(s),h=l.act,N=l.data,v=N.synthesisCooldown,f=N.beakerContainsVirus,g=N.resistances;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Antibodies",fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{horizontal:!0,wrap:!0,children:g.map(function(V,B){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:c[B%c.length],disabled:!!v,onClick:function(){function S(){return h("clone_vaccine",{resistance_index:B+1})}return S}(),mr:"0.5em"}),V]},B)})})})})}},67921:function(x,r,n){"use strict";r.__esModule=!0,r.ParticleAccelerator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.ParticleAccelerator=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.assembled,m=i.power,u=i.strength,d=i.max_strength;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:160,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Control Panel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Connect",onClick:function(){function s(){return C("scan")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",mb:"5px",children:(0,e.createComponentVNode)(2,t.Box,{color:c?"good":"bad",children:c?"Operational":"Error: Verify Configuration"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:m?"power-off":"times",content:m?"On":"Off",selected:m,disabled:!c,onClick:function(){function s(){return C("power")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Strength",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:!c||u===0,onClick:function(){function s(){return C("remove_strength")}return s}(),mr:"4px"}),u,(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:!c||u===d,onClick:function(){function s(){return C("add_strength")}return s}(),ml:"4px"})]})]})})})})}return b}()},71432:function(x,r,n){"use strict";r.__esModule=!0,r.PdaPainter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.PdaPainter=function(){function k(C,i){var c=(0,a.useBackend)(i),m=c.data,u=m.has_pda;return(0,e.createComponentVNode)(2,o.Window,{width:510,height:505,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:u?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,b)})})}return k}(),b=function(C,i){var c=(0,a.useBackend)(i),m=c.act;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"download",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{width:"160px",textAlign:"center",content:"Insert PDA",onClick:function(){function u(){return m("insert_pda")}return u}()})]})})})},y=function(C,i){var c=(0,a.useBackend)(i),m=c.act,u=c.data,d=u.pda_colors;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,I)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Table,{className:"PdaPainter__list",children:Object.keys(d).map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{onClick:function(){function l(){return m("choose_pda",{selectedPda:s})}return l}(),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+d[s][0],style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s})]},s)})})})})]})},I=function(C,i){var c=(0,a.useBackend)(i),m=c.act,u=c.data,d=u.current_appearance,s=u.preview_appearance;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Current PDA",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+d,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",content:"Eject",color:"green",onClick:function(){function l(){return m("eject_pda")}return l}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"paint-roller",content:"Paint PDA",onClick:function(){function l(){return m("paint_pda")}return l}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Preview",children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+s,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})})]})}},33388:function(x,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.PersonalCrafting=function(){function I(k,C){var i=(0,a.useBackend)(C),c=i.act,m=i.data,u=m.busy,d=m.category,s=m.display_craftable_only,l=m.display_compact,h=m.prev_cat,N=m.next_cat,v=m.subcategory,f=m.prev_subcat,g=m.next_subcat;return(0,e.createComponentVNode)(2,o.Window,{width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!u&&(0,e.createComponentVNode)(2,t.Dimmer,{fontSize:"32px",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog",spin:1})," Crafting..."]}),(0,e.createComponentVNode)(2,t.Section,{title:d,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Show Craftable Only",icon:s?"check-square-o":"square-o",selected:s,onClick:function(){function V(){return c("toggle_recipes")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Compact Mode",icon:l?"check-square-o":"square-o",selected:l,onClick:function(){function V(){return c("toggle_compact")}return V}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:h,icon:"arrow-left",onClick:function(){function V(){return c("backwardCat")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:N,icon:"arrow-right",onClick:function(){function V(){return c("forwardCat")}return V}()})]}),v&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:f,icon:"arrow-left",onClick:function(){function V(){return c("backwardSubCat")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:g,icon:"arrow-right",onClick:function(){function V(){return c("forwardSubCat")}return V}()})]}),l?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,y)]})]})})}return I}(),b=function(k,C){var i=(0,a.useBackend)(C),c=i.act,m=i.data,u=m.display_craftable_only,d=m.can_craft,s=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[d.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function h(){return c("make",{make:l.ref})}return h}()}),l.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:l.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:l.req_text,content:"Requirements",color:"transparent"}),l.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:l.tool_text,content:"Tools",color:"transparent"})]},l.name)}),!u&&s.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),l.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:l.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:l.req_text,content:"Requirements",color:"transparent"}),l.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:l.tool_text,content:"Tools",color:"transparent"})]},l.name)})]})})},y=function(k,C){var i=(0,a.useBackend)(C),c=i.act,m=i.data,u=m.display_craftable_only,d=m.can_craft,s=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[d.map(function(l){return(0,e.createComponentVNode)(2,t.Section,{title:l.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function h(){return c("make",{make:l.ref})}return h}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[l.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:l.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:l.req_text}),l.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:l.tool_text})]})},l.name)}),!u&&s.map(function(l){return(0,e.createComponentVNode)(2,t.Section,{title:l.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[l.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:l.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:l.req_text}),l.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:l.tool_text})]})},l.name)})]})}},56150:function(x,r,n){"use strict";r.__esModule=!0,r.Photocopier=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.Photocopier=function(){function I(k,C){var i=(0,a.useBackend)(C),c=i.act,m=i.data;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:440,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Photocopier",color:"silver",children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Copies:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"2em",bold:!0,children:m.copynumber}),(0,e.createComponentVNode)(2,t.Stack.Item,{float:"right",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"minus",textAlign:"center",content:"",onClick:function(){function u(){return c("minus")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"plus",textAlign:"center",content:"",onClick:function(){function u(){return c("add")}return u}()})]})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Toner:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,children:m.toner})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Document:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!m.copyitem&&!m.mob,content:m.copyitem?m.copyitem:m.mob?m.mob+"'s ass!":"document",onClick:function(){function u(){return c("removedocument")}return u}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Folder:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!m.folder,content:m.folder?m.folder:"folder",onClick:function(){function u(){return c("removefolder")}return u}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,b)}),(0,e.createComponentVNode)(2,y)]})})})}return I}(),b=function(k,C){var i=(0,a.useBackend)(C),c=i.act,m=i.data,u=m.issilicon;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"copy",float:"center",textAlign:"center",content:"Copy",onClick:function(){function d(){return c("copy")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file-import",float:"center",textAlign:"center",content:"Scan",onClick:function(){function d(){return c("scandocument")}return d}()}),!!u&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file",color:"green",float:"center",textAlign:"center",content:"Print Text",onClick:function(){function d(){return c("ai_text")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"image",color:"green",float:"center",textAlign:"center",content:"Print Image",onClick:function(){function d(){return c("ai_pic")}return d}()})],4)],0)},y=function(k,C){var i=(0,a.useBackend)(C),c=i.act,m=i.data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Scanned Files",children:m.files.map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u.name,buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:m.toner<=0,onClick:function(){function d(){return c("filecopy",{uid:u.uid})}return d}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",content:"Delete",color:"bad",onClick:function(){function d(){return c("deletefile",{uid:u.uid})}return d}()})]})},u.name)})})}},8340:function(x,r,n){"use strict";r.__esModule=!0,r.Photocopier220=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(88510),b=n(64795),y=n(25328);function I(m,u){var d=typeof Symbol!="undefined"&&m[Symbol.iterator]||m["@@iterator"];if(d)return(d=d.call(m)).next.bind(d);if(Array.isArray(m)||(d=k(m))||u&&m&&typeof m.length=="number"){d&&(m=d);var s=0;return function(){return s>=m.length?{done:!0}:{done:!1,value:m[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function k(m,u){if(m){if(typeof m=="string")return C(m,u);var d={}.toString.call(m).slice(8,-1);return d==="Object"&&m.constructor&&(d=m.constructor.name),d==="Map"||d==="Set"?Array.from(m):d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)?C(m,u):void 0}}function C(m,u){(u==null||u>m.length)&&(u=m.length);for(var d=0,s=Array(u);dm?this.substring(0,m)+"...":this};var i=function(u,d){d===void 0&&(d="");var s=(0,y.createSearch)(d,function(l){return l.altername});return(0,b.flow)([(0,p.filter)(function(l){return l==null?void 0:l.altername}),d&&(0,p.filter)(s),(0,p.sortBy)(function(l){return l.id})])(u)},c=r.Photocopier220=function(){function m(u,d){for(var s=(0,a.useBackend)(d),l=s.act,h=s.data,N=h.copies,v=h.maxcopies,f=(0,a.useLocalState)(d,"searchText",""),g=f[0],V=f[1],B=i((0,p.sortBy)(function(M){return M.category})(h.forms||[]),g),S=[],L=I(B),w;!(w=L()).done;){var A=w.value;S.includes(A.category)||S.push(A.category)}var T=(0,a.useLocalState)(d,"number",0),E=T[0],P=T[1],D;return h.category===""?D=B:D=B.filter(function(M){return M.category===h.category}),(0,e.createComponentVNode)(2,o.Window,{width:550,height:575,theme:h.ui_theme,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"40%",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0442\u0430\u0442\u0443\u0441",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",mt:.3,color:"grey",children:"\u0417\u0430\u0440\u044F\u0434 \u0442\u043E\u043D\u0435\u0440\u0430:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{minValue:0,maxValue:30,value:h.toner})})]}),(0,e.createComponentVNode)(2,t.Stack,{mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",mb:.3,color:"grey",children:"\u0424\u043E\u0440\u043C\u0430:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",textAlign:"center",bold:!0,children:h.form_id===""?"\u041D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u0430":h.form_id})]}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!h.copyitem&&!h.mob,icon:h.copyitem||h.mob?"eject":"times",content:h.copyitem?h.copyitem:h.mob?"\u0416\u043E\u043F\u0430 "+h.mob+"!":"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430",onClick:function(){function M(){return l("removedocument")}return M}()})})}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!h.folder,icon:h.folder?"eject":"times",content:h.folder?h.folder:"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u043F\u0430\u043F\u043A\u0438",onClick:function(){function M(){return l("removefolder")}return M}()})})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"print",disabled:h.toner===0||h.form===null,content:"\u041F\u0435\u0447\u0430\u0442\u044C",onClick:function(){function M(){return l("print_form")}return M}()})}),!!h.isAI&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"image",disabled:h.toner<5,content:"\u0424\u043E\u0442\u043E",tooltip:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0444\u043E\u0442\u043E \u0441 \u0411\u0430\u0437\u044B \u0414\u0430\u043D\u043D\u044B\u0445",onClick:function(){function M(){return l("ai_pic")}return M}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"copy",content:"\u041A\u043E\u043F\u0438\u044F",disabled:h.toner===0||!h.copyitem&&!h.mob,onClick:function(){function M(){return l("copy")}return M}()})}),!!h.isAI&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",ml:"5px",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"i-cursor",content:"\u0422\u0435\u043A\u0441\u0442",tooltip:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0441\u0432\u043E\u0439 \u0442\u0435\u043A\u0441\u0442",disabled:h.toner===0,onClick:function(){function M(){return l("ai_text")}return M}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:1.5,mt:1.2,width:"50%",color:"grey",children:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E:"}),(0,e.createComponentVNode)(2,t.Slider,{mt:.75,width:"50%",animated:!0,minValue:1,maxValue:v,value:N,stepPixelSize:10,onChange:function(){function M(O,R){return l("copies",{new:R})}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u0411\u044E\u0440\u043E\u043A\u0440\u0430\u0442\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mb:-.5,icon:"chevron-right",color:"transparent",content:"\u0412\u0441\u0435 \u0444\u043E\u0440\u043C\u044B",selected:!h.category,onClick:function(){function M(){return l("choose_category",{category:""})}return M}()})}),S.map(function(M){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"chevron-right",mb:-.5,color:"transparent",content:M,selected:h.category===M,onClick:function(){function O(){return l("choose_category",{category:M})}return O}()},M)},M)})]})})})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"60%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:h.category||"\u0412\u0441\u0435 \u0444\u043E\u0440\u043C\u044B",buttons:(0,e.createComponentVNode)(2,t.Input,{mr:18.5,width:"100%",placeholder:"\u041F\u043E\u0438\u0441\u043A \u0444\u043E\u0440\u043C\u044B",onInput:function(){function M(O,R){return V(R)}return M}()}),children:D.map(function(M){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mb:.5,color:"transparent",content:M.altername.trimLongStr(37),tooltip:M.altername,selected:h.form_id===M.id,onClick:function(){function O(){return l("choose_form",{path:M.path,id:M.id})}return O}()})},M.path)})})})]})})})}return m}()},84676:function(x,r,n){"use strict";r.__esModule=!0,r.PoolController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=["tempKey"];function b(C,i){if(C==null)return{};var c={};for(var m in C)if({}.hasOwnProperty.call(C,m)){if(i.includes(m))continue;c[m]=C[m]}return c}var y={scalding:{label:"Scalding",color:"#FF0000",icon:"fa fa-arrow-circle-up",requireEmag:!0},warm:{label:"Warm",color:"#990000",icon:"fa fa-arrow-circle-up"},normal:{label:"Normal",color:null,icon:"fa fa-arrow-circle-right"},cool:{label:"Cool",color:"#009999",icon:"fa fa-arrow-circle-down"},frigid:{label:"Frigid",color:"#00CCCC",icon:"fa fa-arrow-circle-down",requireEmag:!0}},I=function(i,c){var m=i.tempKey,u=b(i,p),d=y[m];if(!d)return null;var s=(0,a.useBackend)(c),l=s.data,h=s.act,N=l.currentTemp,v=d.label,f=d.icon,g=m===N,V=function(){h("setTemp",{temp:m})};return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({color:"transparent",selected:g,onClick:V},u,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:f}),v]})))},k=r.PoolController=function(){function C(i,c){for(var m=(0,a.useBackend)(c),u=m.data,d=u.emagged,s=u.currentTemp,l=y[s]||y.normal,h=l.label,N=l.color,v=[],f=0,g=Object.entries(y);f50?"battery-half":"battery-quarter")||N==="C"&&"bolt"||N==="F"&&"battery-full"||N==="M"&&"slash",color:N==="N"&&(v>50?"yellow":"red")||N==="C"&&"yellow"||N==="F"&&"green"||N==="M"&&"orange"}),(0,e.createComponentVNode)(2,I.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,o.toFixed)(v)+"%"})],4)};d.defaultHooks=p.pureComponentHooks;var s=function(h){var N,v,f=h.status;switch(f){case"AOn":N=!0,v=!0;break;case"AOff":N=!0,v=!1;break;case"On":N=!1,v=!0;break;case"Off":N=!1,v=!1;break}var g=(v?"On":"Off")+(" ["+(N?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,I.ColorBox,{color:v?"good":"bad",content:N?void 0:"M",title:g})};s.defaultHooks=p.pureComponentHooks},50992:function(x,r,n){"use strict";r.__esModule=!0,r.PrisonerImplantManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(29319),p=n(3939),b=n(321),y=n(5485),I=n(98595),k=r.PrisonerImplantManager=function(){function C(i,c){var m=(0,a.useBackend)(c),u=m.act,d=m.data,s=d.loginState,l=d.prisonerInfo,h=d.chemicalInfo,N=d.trackingInfo,v;if(!s.logged_in)return(0,e.createComponentVNode)(2,I.Window,{theme:"security",width:500,height:850,children:(0,e.createComponentVNode)(2,I.Window.Content,{children:(0,e.createComponentVNode)(2,y.LoginScreen)})});var f=[1,5,10];return(0,e.createComponentVNode)(2,I.Window,{theme:"security",width:500,height:850,children:[(0,e.createComponentVNode)(2,p.ComplexModal),(0,e.createComponentVNode)(2,I.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.LoginInfo),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Prisoner Points Manager System",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.name?"eject":"id-card",selected:l.name,content:l.name?l.name:"-----",tooltip:l.name?"Eject ID":"Insert ID",onClick:function(){function g(){return u("id_card")}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Points",children:[l.points!==null?l.points:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"minus-square",disabled:l.points===null,content:"Reset",onClick:function(){function g(){return u("reset_points")}return g}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Point Goal",children:[l.goal!==null?l.goal:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"pen",disabled:l.goal===null,content:"Edit",onClick:function(){function g(){return(0,p.modalOpen)(c,"set_points")}return g}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createVNode)(1,"box",null,[(0,e.createTextVNode)("1 minute of prison time should roughly equate to 150 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Sentences should not exceed 5000 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Permanent prisoners should not be given a point goal."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Prisoners who meet their point goal will be able to automatically access their locker and return to the station using the shuttle.")],4,{hidden:l.goal===null})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Tracking Implants",children:N.map(function(g){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",g.subject]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:g.location}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:g.health}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Warn",tooltip:"Broadcast a message to this poor sod",onClick:function(){function V(){return(0,p.modalOpen)(c,"warn",{uid:g.uid})}return V}()})})]})]},g.subject)]}),(0,e.createVNode)(1,"br")],4)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Chemical Implants",children:h.map(function(g){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",g.name]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Reagents",children:g.volume})}),f.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{mt:2,disabled:g.volumec;return(0,e.createComponentVNode)(2,t.ImageButton,{fluid:!0,title:g.name,dmIcon:g.icon,dmIconState:g.icon_state,buttonsAlt:(0,e.createComponentVNode)(2,t.Button,{bold:!0,translucent:!0,fontSize:1.5,tooltip:V&&"Not enough tickets",disabled:V,onClick:function(){function B(){return C("purchase",{purchase:g.itemID})}return B}(),children:[g.cost,(0,e.createComponentVNode)(2,t.Icon,{m:0,mt:.25,name:"ticket",color:V?"bad":"good",size:1.6})]}),children:g.desc},g.name)})})})})})})}return b}()},94813:function(x,r,n){"use strict";r.__esModule=!0,r.RCD=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(3939),b=n(49148),y=r.RCD=function(){function u(d,s){return(0,e.createComponentVNode)(2,o.Window,{width:480,height:670,children:[(0,e.createComponentVNode)(2,p.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,I),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})})]})}return u}(),I=function(d,s){var l=(0,a.useBackend)(s),h=l.data,N=h.matter,v=h.max_matter,f=v*.7,g=v*.25;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Matter Storage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[f,1/0],average:[g,f],bad:[-1/0,g]},value:N,maxValue:v,children:(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:N+" / "+v+" units"})})})})},k=function(){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Construction Type",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,C,{mode_type:"Floors and Walls"}),(0,e.createComponentVNode)(2,C,{mode_type:"Airlocks"}),(0,e.createComponentVNode)(2,C,{mode_type:"Windows"}),(0,e.createComponentVNode)(2,C,{mode_type:"Deconstruction"})]})})})},C=function(d,s){var l=(0,a.useBackend)(s),h=l.act,N=l.data,v=d.mode_type,f=N.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",content:v,selected:f===v?1:0,onClick:function(){function g(){return h("mode",{mode:v})}return g}()})})},i=function(d,s){var l=(0,a.useBackend)(s),h=l.act,N=l.data,v=N.door_name,f=N.electrochromic,g=N.airlock_glass;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Airlock Settings",children:(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",icon:"pen-alt",content:(0,e.createFragment)([(0,e.createTextVNode)("Rename: "),(0,e.createVNode)(1,"b",null,v,0)],0),onClick:function(){function V(){return(0,p.modalOpen)(s,"renameAirlock")}return V}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:g===1&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:f?"toggle-on":"toggle-off",content:"Electrochromic",selected:f,onClick:function(){function V(){return h("electrochromic")}return V}()})})]})})})},c=function(d,s){var l=(0,a.useBackend)(s),h=l.act,N=l.data,v=N.tab,f=N.locked,g=N.one_access,V=N.selected_accesses,B=N.regions;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"cog",selected:v===1,onClick:function(){function S(){return h("set_tab",{tab:1})}return S}(),children:"Airlock Types"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===2,icon:"list",onClick:function(){function S(){return h("set_tab",{tab:2})}return S}(),children:"Airlock Access"})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:v===1?(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Types",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m,{check_number:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m,{check_number:1})})]})}):v===2&&f?(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Access",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock-open",content:"Unlock",onClick:function(){function S(){return h("set_lock",{new_lock:"unlock"})}return S}()}),children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"lock",size:"5",mb:3}),(0,e.createVNode)(1,"br"),"Airlock access selection is currently locked."]})})}):(0,e.createComponentVNode)(2,b.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock",content:"Lock",onClick:function(){function S(){return h("set_lock",{new_lock:"lock"})}return S}()}),usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:g,content:"One",onClick:function(){function S(){return h("set_one_access",{access:"one"})}return S}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!g,width:4,content:"All",onClick:function(){function S(){return h("set_one_access",{access:"all"})}return S}()})],4),accesses:B,selectedList:V,accessMod:function(){function S(L){return h("set",{access:L})}return S}(),grantAll:function(){function S(){return h("grant_all")}return S}(),denyAll:function(){function S(){return h("clear_all")}return S}(),grantDep:function(){function S(L){return h("grant_region",{region:L})}return S}(),denyDep:function(){function S(L){return h("deny_region",{region:L})}return S}()})})],4)},m=function(d,s){for(var l=(0,a.useBackend)(s),h=l.act,N=l.data,v=N.door_types_ui_list,f=N.door_type,g=d.check_number,V=[],B=0;Bp?w=(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,mb:1,children:"There are new messages"}):w=(0,e.createComponentVNode)(2,t.Box,{color:"label",mb:1,children:"There are no new messages"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Main Menu",buttons:(0,e.createComponentVNode)(2,t.Button,{width:9,content:L?"Speaker Off":"Speaker On",selected:!L,icon:L?"volume-mute":"volume-up",onClick:function(){function A(){return g("toggleSilent")}return A}()}),children:[w,(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"View Messages",icon:B>p?"envelope-open-text":"envelope",onClick:function(){function A(){return g("setScreen",{setScreen:6})}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Request Assistance",icon:"hand-paper",onClick:function(){function A(){return g("setScreen",{setScreen:1})}return A}()}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Request Supplies",icon:"box",onClick:function(){function A(){return g("setScreen",{setScreen:2})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Request Secondary Goal",icon:"clipboard-list",onClick:function(){function A(){return g("setScreen",{setScreen:11})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Relay Anonymous Information",icon:"comment",onClick:function(){function A(){return g("setScreen",{setScreen:3})}return A}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Print Shipping Label",icon:"tag",onClick:function(){function A(){return g("setScreen",{setScreen:9})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){function A(){return g("setScreen",{setScreen:10})}return A}()})]})}),!!S&&(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Send Station-Wide Announcement",icon:"bullhorn",onClick:function(){function A(){return g("setScreen",{setScreen:8})}return A}()})})]})})},i=function(N,v){var f=(0,a.useBackend)(v),g=f.act,V=f.data,B=V.department,S=[],L;switch(N.purpose){case"ASSISTANCE":S=V.assist_dept,L="Request assistance from another department";break;case"SUPPLIES":S=V.supply_dept,L="Request supplies from another department";break;case"INFO":S=V.info_dept,L="Relay information to another department";break}return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:L,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function w(){return g("setScreen",{setScreen:0})}return w}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:S.filter(function(w){return w!==B}).map(function(w){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w,textAlign:"right",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Message",icon:"envelope",onClick:function(){function A(){return g("writeInput",{write:w,priority:y})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){function A(){return g("writeInput",{write:w,priority:I})}return A}()})]},w)})})})})},c=function(N,v){var f=(0,a.useBackend)(v),g=f.act,V=f.data,B;switch(N.type){case"SUCCESS":B="Message sent successfully";break;case"FAIL":B="Unable to contact messaging server";break}return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:B,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function S(){return g("setScreen",{setScreen:0})}return S}()})})},m=function(N,v){var f=(0,a.useBackend)(v),g=f.act,V=f.data,B,S;switch(N.type){case"MESSAGES":B=V.message_log,S="Message Log";break;case"SHIPPING":B=V.shipping_log,S="Shipping label print log";break}return B.reverse(),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:S,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function L(){return g("setScreen",{setScreen:0})}return L}()}),children:B.map(function(L){return(0,e.createComponentVNode)(2,t.Box,{textAlign:"left",children:[L.map(function(w,A){return(0,e.createVNode)(1,"div",null,w,0,null,A)}),(0,e.createVNode)(1,"hr")]},L)})})})},u=function(N,v){var f=(0,a.useBackend)(v),g=f.act,V=f.data,B=V.recipient,S=V.message,L=V.msgVerified,w=V.msgStamped;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Message Authentication",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function A(){return g("setScreen",{setScreen:0})}return A}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recipient",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",children:S}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",color:"green",children:L}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stamped by",color:"blue",children:w})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",content:"Send Message",icon:"envelope",onClick:function(){function A(){return g("department",{department:B})}return A}()})})})],4)},d=function(N,v){var f=(0,a.useBackend)(v),g=f.act,V=f.data,B=V.message,S=V.announceAuth;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Station-Wide Announcement",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function L(){return g("setScreen",{setScreen:0})}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Edit Message",icon:"edit",onClick:function(){function L(){return g("writeAnnouncement")}return L}()})],4),children:B})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[S?(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Swipe your ID card to authenticate yourself"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:2,textAlign:"center",content:"Send Announcement",icon:"bullhorn",disabled:!(S&&B),onClick:function(){function L(){return g("sendAnnouncement")}return L}()})]})})],4)},s=function(N,v){var f=(0,a.useBackend)(v),g=f.act,V=f.data,B=V.shipDest,S=V.msgVerified,L=V.ship_dept;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{title:"Print Shipping Label",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function w(){return g("setScreen",{setScreen:0})}return w}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",children:S})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(B&&S),onClick:function(){function w(){return g("printLabel")}return w}()})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Destinations",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:L.map(function(w){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w,textAlign:"right",className:"candystripe",children:(0,e.createComponentVNode)(2,t.Button,{content:B===w?"Selected":"Select",selected:B===w,onClick:function(){function A(){return g("shipSelect",{shipSelect:w})}return A}()})},w)})})})})],4)},l=function(N,v){var f=(0,a.useBackend)(v),g=f.act,V=f.data,B=V.secondaryGoalAuth,S=V.secondaryGoalEnabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Request Secondary Goal",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function L(){return g("setScreen",{setScreen:0})}return L}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[S?B?(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Swipe your ID card to authenticate yourself"}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Complete your current goal first!"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:2,textAlign:"center",content:"Request Secondary Goal",icon:"clipboard-list",disabled:!(B&&S),onClick:function(){function L(){return g("requestSecondaryGoal")}return L}()})]})})],4)}},9861:function(x,r,n){"use strict";r.__esModule=!0,r.RndBackupConsole=r.LinkMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.RndBackupConsole=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=c.network_name,u=c.has_disk,d=c.disk_name,s=c.linked,l=c.techs,h=c.last_timestamp;return(0,e.createComponentVNode)(2,o.Window,{width:900,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Device Info",children:[(0,e.createComponentVNode)(2,t.Box,{mb:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Network",children:s?(0,e.createComponentVNode)(2,t.Button,{content:m,icon:"unlink",selected:1,onClick:function(){function N(){return i("unlink")}return N}()}):"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Loaded Disk",children:u?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:d+" (Last backup: "+h+")",icon:"save",selected:1,onClick:function(){function N(){return i("eject_disk")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Save all",onClick:function(){function N(){return i("saveall2disk")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Load all",onClick:function(){function N(){return i("saveall2network")}return N}()})],4):"None"})]})}),!!s||(0,e.createComponentVNode)(2,b)]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Section,{title:"Tech Info",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Tech Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Level"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Disk Level"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),Object.keys(l).map(function(N){return!(l[N].network_level>0||l[N].disk_level>0)||(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l[N].name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l[N].network_level||"None"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l[N].disk_level||"None"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Load to network",disabled:!u||!s,onClick:function(){function v(){return i("savetech2network",{tech:N})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Load to disk",disabled:!u||!s,onClick:function(){function v(){return i("savetech2disk",{tech:N})}return v}()})]})]},N)})]})})})]})})}return y}(),b=r.LinkMenu=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=c.controllers;return(0,e.createComponentVNode)(2,t.Section,{title:"Setup Linkage",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Link"})]}),m.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function d(){return i("linktonetworkcontroller",{target_controller:u.addr})}return d}()})})]},u.addr)})]})})}return y}()},37556:function(x,r,n){"use strict";r.__esModule=!0,r.DataDiskMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o="design",p="tech",b=function(c,m){var u=(0,a.useBackend)(m),d=u.data,s=u.act,l=d.disk_data;return l?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:l.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:l.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:l.desc})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function h(){return s("updt_tech")}return h}()})})]}):null},y=function(c,m){var u=(0,a.useBackend)(m),d=u.data,s=u.act,l=d.disk_data;if(!l)return null;var h=l.name,N=l.lathe_types,v=l.materials,f=N.join(", ");return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:h}),f?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lathe Types",children:f}):null,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Required Materials"})]}),v.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:["- ",(0,e.createVNode)(1,"span",null,g.name,0,{style:{"text-transform":"capitalize"}})," x ",g.amount]},g.name)}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function g(){return s("updt_design")}return g}()})})]})},I=function(c,m){var u=(0,a.useBackend)(m),d=u.act,s=u.data,l=s.disk_data;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Section,Object.assign({buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Erase",icon:"eraser",disabled:!l,onClick:function(){function h(){return d("erase_disk")}return h}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",icon:"eject",onClick:function(){function h(){d("eject_disk")}return h}()})],4)},c)))},k=function(c,m){var u=(0,a.useBackend)(m),d=u.data,s=u.act,l=d.disk_type,h=d.to_copy,N=c.title;return(0,e.createComponentVNode)(2,I,{title:N,children:(0,e.createComponentVNode)(2,t.Box,{overflowY:"auto",overflowX:"hidden",maxHeight:"450px",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:h.sort(function(v,f){return v.name.localeCompare(f.name)}).map(function(v){var f=v.name,g=v.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:f,children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Copy to Disk",onClick:function(){function V(){l===p?s("copy_tech",{id:g}):s("copy_design",{id:g})}return V}()})},g)})})})})},C=r.DataDiskMenu=function(){function i(c,m){var u=(0,a.useBackend)(m),d=u.data,s=d.disk_type,l=d.disk_data;if(!s)return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",children:"No disk loaded."});switch(s){case o:return l?(0,e.createComponentVNode)(2,I,{title:"Design Disk",children:(0,e.createComponentVNode)(2,y)}):(0,e.createComponentVNode)(2,k,{title:"Design Disk"});case p:return l?(0,e.createComponentVNode)(2,I,{title:"Technology Disk",children:(0,e.createComponentVNode)(2,b)}):(0,e.createComponentVNode)(2,k,{title:"Technology Disk"});default:return(0,e.createFragment)([(0,e.createTextVNode)("UNRECOGNIZED DISK TYPE")],4)}}return i}()},58147:function(x,r,n){"use strict";r.__esModule=!0,r.DeconstructionMenu=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),p=r.DeconstructionMenu=function(){function y(I,k){var C=(0,t.useBackend)(k),i=C.data,c=C.act,m=i.tech_levels,u=i.loaded_item,d=i.linked_destroy;return d?u?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Object Analysis",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Deconstruct",icon:"microscope",onClick:function(){function s(){c("deconstruct")}return s}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Eject",icon:"eject",onClick:function(){function s(){c("eject_item")}return s}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:u.name})})}),(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{id:"research-levels",children:[(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Research Field"}),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Current Level"}),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Object Level"}),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"New Level"})]}),m.map(function(s){return(0,e.createComponentVNode)(2,b,{techLevel:s},s.id)})]})})],4):(0,e.createComponentVNode)(2,o.Section,{title:"Deconstruction Menu",children:"No item loaded. Standing by..."}):(0,e.createComponentVNode)(2,o.Section,{title:"Deconstruction Menu",children:"NO DESTRUCTIVE ANALYZER LINKED TO CONSOLE"})}return y}(),b=function(I,k){var C=I.techLevel,i=C.name,c=C.desc,m=C.level,u=C.object_level,d=C.ui_icon,s=u!=null,l=s&&u>=m?Math.max(u,m+1):m;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"circle-info",tooltip:c})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:d})," ",i]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:m}),s?(0,e.createComponentVNode)(2,o.Table.Cell,{children:u}):(0,e.createComponentVNode)(2,o.Table.Cell,{className:"research-level-no-effect",children:"-"}),(0,e.createComponentVNode)(2,o.Table.Cell,{className:(0,a.classes)([l!==m&&"upgraded-level"]),children:l})]})}},16830:function(x,r,n){"use strict";r.__esModule=!0,r.LatheCategory=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(52662),p=r.LatheCategory=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.data,i=k.act,c=C.category,m=C.matching_designs,u=C.menu,d=u===4,s=d?"build":"imprint";return(0,e.createComponentVNode)(2,t.Section,{title:c,children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,t.Table,{className:"RndConsole__LatheCategory__MatchingDesigns",children:m.map(function(l){var h=l.id,N=l.name,v=l.can_build,f=l.materials;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:N,disabled:v<1,onClick:function(){function g(){return i(s,{id:h,amount:1})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=5?(0,e.createComponentVNode)(2,t.Button,{content:"x5",onClick:function(){function g(){return i(s,{id:h,amount:5})}return g}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=10?(0,e.createComponentVNode)(2,t.Button,{content:"x10",onClick:function(){function g(){return i(s,{id:h,amount:10})}return g}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:f.map(function(g){return(0,e.createFragment)([" | ",(0,e.createVNode)(1,"span",g.is_red?"color-red":null,[g.amount,(0,e.createTextVNode)(" "),g.name],0)],0)})})]},h)})})]})}return b}()},70497:function(x,r,n){"use strict";r.__esModule=!0,r.LatheChemicalStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheChemicalStorage=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.data,C=I.act,i=k.loaded_chemicals,c=k.menu===4;return(0,e.createComponentVNode)(2,t.Section,{title:"Chemical Storage",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Purge All",icon:"trash",onClick:function(){function m(){var u=c?"disposeallP":"disposeallI";C(u)}return m}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:i.map(function(m){var u=m.volume,d=m.name,s=m.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+u+" of "+d,children:(0,e.createComponentVNode)(2,t.Button,{content:"Purge",icon:"trash",onClick:function(){function l(){var h=c?"disposeP":"disposeI";C(h,{id:s})}return l}()})},s)})})]})}return p}()},70864:function(x,r,n){"use strict";r.__esModule=!0,r.LatheMainMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(52662),p=n(68198),b=r.LatheMainMenu=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.data,c=C.act,m=i.menu,u=i.categories,d=m===4?"Protolathe":"Circuit Imprinter";return(0,e.createComponentVNode)(2,t.Section,{title:d+" Menu",children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,p.LatheSearch),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:u.map(function(s){return(0,e.createComponentVNode)(2,t.Flex,{style:{"flex-basis":"50%","margin-bottom":"6px"},children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",content:s,onClick:function(){function l(){c("setCategory",{category:s})}return l}()})},s)})})]})}return y}()},42878:function(x,r,n){"use strict";r.__esModule=!0,r.LatheMaterialStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheMaterialStorage=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.data,C=I.act,i=k.loaded_materials;return(0,e.createComponentVNode)(2,t.Section,{className:"RndConsole__LatheMaterialStorage",title:"Material Storage",children:(0,e.createComponentVNode)(2,t.Table,{children:i.map(function(c){var m=c.id,u=c.amount,d=c.name,s=function(){function v(f){var g=k.menu===4?"lathe_ejectsheet":"imprinter_ejectsheet";C(g,{id:m,amount:f})}return v}(),l=Math.floor(u/2e3),h=u<1,N=l===1?"":"s";return(0,e.createComponentVNode)(2,t.Table.Row,{className:h?"color-grey":"color-yellow",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"210px",children:["* ",u," of ",d]}),(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"110px",children:["(",l," sheet",N,")"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u>=2e3?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"1x",icon:"eject",onClick:function(){function v(){return s(1)}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"C",icon:"eject",onClick:function(){function v(){return s("custom")}return v}()}),u>=2e3*5?(0,e.createComponentVNode)(2,t.Button,{content:"5x",icon:"eject",onClick:function(){function v(){return s(5)}return v}()}):null,(0,e.createComponentVNode)(2,t.Button,{content:"All",icon:"eject",onClick:function(){function v(){return s(50)}return v}()})],0):null})]},m)})})})}return p}()},52662:function(x,r,n){"use strict";r.__esModule=!0,r.LatheMaterials=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheMaterials=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.data,C=k.total_materials,i=k.max_materials,c=k.max_chemicals,m=k.total_chemicals;return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__LatheMaterials",mb:"10px",children:(0,e.createComponentVNode)(2,t.Table,{width:"auto",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Material Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C}),i?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+i}):null]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Chemical Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:m}),c?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+c}):null]})]})})}return p}()},9681:function(x,r,n){"use strict";r.__esModule=!0,r.LatheMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(12644),p=n(70864),b=n(16830),y=n(42878),I=n(70497),k=["menu"];function C(d,s){if(d==null)return{};var l={};for(var h in d)if({}.hasOwnProperty.call(d,h)){if(s.includes(h))continue;l[h]=d[h]}return l}var i=t.Tabs.Tab,c=function(s,l){var h=(0,a.useBackend)(l),N=h.act,v=h.data,f=v.menu===o.MENU.LATHE?["nav_protolathe",v.submenu_protolathe]:["nav_imprinter",v.submenu_imprinter],g=f[0],V=f[1],B=s.menu,S=C(s,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,i,Object.assign({selected:V===B,onClick:function(){function L(){return N(g,{menu:B})}return L}()},S)))},m=function(s){switch(s){case o.PRINTER_MENU.MAIN:return(0,e.createComponentVNode)(2,p.LatheMainMenu);case o.PRINTER_MENU.SEARCH:return(0,e.createComponentVNode)(2,b.LatheCategory);case o.PRINTER_MENU.MATERIALS:return(0,e.createComponentVNode)(2,y.LatheMaterialStorage);case o.PRINTER_MENU.CHEMICALS:return(0,e.createComponentVNode)(2,I.LatheChemicalStorage)}},u=r.LatheMenu=function(){function d(s,l){var h=(0,a.useBackend)(l),N=h.data,v=N.menu,f=N.linked_lathe,g=N.linked_imprinter;return v===o.MENU.LATHE&&!f?(0,e.createComponentVNode)(2,t.Box,{children:"NO PROTOLATHE LINKED TO CONSOLE"}):v===o.MENU.IMPRINTER&&!g?(0,e.createComponentVNode)(2,t.Box,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,c,{menu:o.PRINTER_MENU.MAIN,icon:"bars",children:"Main Menu"}),(0,e.createComponentVNode)(2,c,{menu:o.PRINTER_MENU.MATERIALS,icon:"layer-group",children:"Materials"}),(0,e.createComponentVNode)(2,c,{menu:o.PRINTER_MENU.CHEMICALS,icon:"flask-vial",children:"Chemicals"})]}),m(N.menu===o.MENU.LATHE?N.submenu_protolathe:N.submenu_imprinter)]})}return d}()},68198:function(x,r,n){"use strict";r.__esModule=!0,r.LatheSearch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheSearch=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.act;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"Search...",onEnter:function(){function C(i,c){return k("search",{to_search:c})}return C}()})})}return p}()},81421:function(x,r,n){"use strict";r.__esModule=!0,r.LinkMenu=void 0;var e=n(89005),a=n(72253),t=n(98595),o=n(36036),p=r.LinkMenu=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.controllers;return(0,e.createComponentVNode)(2,t.Window,{width:800,height:550,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Setup Linkage",children:(0,e.createComponentVNode)(2,o.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Link"})]}),c.map(function(m){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:m.addr}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:m.net_id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Link",icon:"link",onClick:function(){function u(){return C("linktonetworkcontroller",{target_controller:m.addr})}return u}()})})]},m.addr)})]})})})})}return b}()},6256:function(x,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.SettingsMenu=function(){function y(I,k){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,b)]})}return y}(),p=function(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=c.sync,u=c.admin;return(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",align:"flex-start",children:(0,e.createComponentVNode)(2,t.Button,{color:"red",icon:"unlink",content:"Disconnect from Research Network",onClick:function(){function d(){i("unlink")}return d}()})})})},b=function(I,k){var C=(0,a.useBackend)(k),i=C.data,c=C.act,m=i.linked_destroy,u=i.linked_lathe,d=i.linked_imprinter;return(0,e.createComponentVNode)(2,t.Section,{title:"Linked Devices",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"link",content:"Re-sync with Nearby Devices",onClick:function(){function s(){return c("find_device")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destructive Analyzer",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",disabled:!m,content:m?"Unlink":"Undetected",onClick:function(){function s(){return c("disconnect",{item:"destroy"})}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Protolathe",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",disabled:!u,content:u?"Unlink":"Undetected",onClick:function(){function s(){c("disconnect",{item:"lathe"})}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Circuit Imprinter",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",disabled:!d,content:d?"Unlink":"Undetected",onClick:function(){function s(){return c("disconnect",{item:"imprinter"})}return s}()})})]})})}},12644:function(x,r,n){"use strict";r.__esModule=!0,r.RndConsole=r.PRINTER_MENU=r.MENU=void 0;var e=n(89005),a=n(72253),t=n(98595),o=n(36036),p=n(35840),b=n(37556),y=n(9681),I=n(81421),k=n(6256),C=n(58147),i=["menu"];function c(f,g){if(f==null)return{};var V={};for(var B in f)if({}.hasOwnProperty.call(f,B)){if(g.includes(B))continue;V[B]=f[B]}return V}var m=o.Tabs.Tab,u=r.MENU={MAIN:0,DISK:2,DESTROY:3,LATHE:4,IMPRINTER:5,SETTINGS:6},d=r.PRINTER_MENU={MAIN:0,SEARCH:1,MATERIALS:2,CHEMICALS:3},s=function(g){switch(g){case u.MAIN:return(0,e.createComponentVNode)(2,v);case u.DISK:return(0,e.createComponentVNode)(2,b.DataDiskMenu);case u.DESTROY:return(0,e.createComponentVNode)(2,C.DeconstructionMenu);case u.LATHE:case u.IMPRINTER:return(0,e.createComponentVNode)(2,y.LatheMenu);case u.SETTINGS:return(0,e.createComponentVNode)(2,k.SettingsMenu);default:return"UNKNOWN MENU"}},l=function(g,V){var B=(0,a.useBackend)(V),S=B.act,L=B.data,w=L.menu,A=g.menu,T=c(g,i);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,m,Object.assign({selected:w===A,onClick:function(){function E(){return S("nav",{menu:A})}return E}()},T)))},h=r.RndConsole=function(){function f(g,V){var B=(0,a.useBackend)(V),S=B.act,L=B.data;if(!L.linked)return(0,e.createComponentVNode)(2,I.LinkMenu);var w=L.menu,A=L.linked_destroy,T=L.linked_lathe,E=L.linked_imprinter,P=L.wait_message;return(0,e.createComponentVNode)(2,t.Window,{width:800,height:550,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole",children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,l,{icon:"flask",menu:u.MAIN,children:"Research"}),!!A&&(0,e.createComponentVNode)(2,l,{icon:"microscope",menu:u.DESTROY,children:"Analyze"}),!!T&&(0,e.createComponentVNode)(2,l,{icon:"print",menu:u.LATHE,children:"Protolathe"}),!!E&&(0,e.createComponentVNode)(2,l,{icon:"memory",menu:u.IMPRINTER,children:"Imprinter"}),(0,e.createComponentVNode)(2,l,{icon:"floppy-disk",menu:u.DISK,children:"Disk"}),(0,e.createComponentVNode)(2,l,{icon:"cog",menu:u.SETTINGS,children:"Settings"})]}),s(w),(0,e.createComponentVNode)(2,N)]})})})}return f}(),N=function(g,V){var B=(0,a.useBackend)(V),S=B.data,L=S.wait_message;return L?(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay",children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay__Wrapper",children:(0,e.createComponentVNode)(2,o.NoticeBox,{color:"black",children:L})})}):null},v=function(g,V){var B=(0,a.useBackend)(V),S=B.data,L=S.tech_levels;return(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{id:"research-levels",children:[(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Research Field"}),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Level"})]}),L.map(function(w){var A=w.id,T=w.name,E=w.desc,P=w.level,D=w.ui_icon;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"circle-info",tooltip:E})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:D})," ",T]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P})]},A)})]})})}},29205:function(x,r,n){"use strict";r.__esModule=!0,r.RndNetController=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(98595),b=r.RndNetController=function(){function k(C,i){var c=(0,t.useBackend)(i),m=c.act,u=c.data,d=u.ion,s=(0,t.useLocalState)(i,"mainTabIndex",0),l=s[0],h=s[1],N=function(){function v(f){switch(f){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,I);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return v}();return(0,e.createComponentVNode)(2,p.Window,{width:900,height:600,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:l===0,onClick:function(){function v(){return h(0)}return v}(),children:"Network Management"},"ConfigPage"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"floppy-disk",selected:l===1,onClick:function(){function v(){return h(1)}return v}(),children:"Design Management"},"DesignPage")]}),N(l)]})})}return k}(),y=function(C,i){var c=(0,t.useBackend)(i),m=c.act,u=c.data,d=(0,t.useLocalState)(i,"filterType","ALL"),s=d[0],l=d[1],h=u.network_password,N=u.network_name,v=u.devices,f=[];f.push(s),s==="MSC"&&(f.push("BCK"),f.push("PGN"));var g=s==="ALL"?v:v.filter(function(V){return f.indexOf(V.dclass)>-1});return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Network Configuration",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Network Name",children:(0,e.createComponentVNode)(2,o.Button,{content:N||"Unset",selected:N,icon:"edit",onClick:function(){function V(){return m("network_name")}return V}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Network Password",children:(0,e.createComponentVNode)(2,o.Button,{content:h||"Unset",selected:h,icon:"lock",onClick:function(){function V(){return m("network_password")}return V}()})})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Connected Devices",children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="ALL",onClick:function(){function V(){return l("ALL")}return V}(),icon:"network-wired",children:"All Devices"},"AllDevices"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="SRV",onClick:function(){function V(){return l("SRV")}return V}(),icon:"server",children:"R&D Servers"},"RNDServers"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="RDC",onClick:function(){function V(){return l("RDC")}return V}(),icon:"desktop",children:"R&D Consoles"},"RDConsoles"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="MFB",onClick:function(){function V(){return l("MFB")}return V}(),icon:"industry",children:"Exosuit Fabricators"},"Mechfabs"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="MSC",onClick:function(){function V(){return l("MSC")}return V}(),icon:"microchip",children:"Miscellaneous Devices"},"Misc")]}),(0,e.createComponentVNode)(2,o.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Device Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Device ID"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Unlink"})]}),g.map(function(V){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:V.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:V.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function B(){return m("unlink_device",{dclass:V.dclass,uid:V.id})}return B}()})})]},V.id)})]})]})],4)},I=function(C,i){var c=(0,t.useBackend)(i),m=c.act,u=c.data,d=u.designs,s=(0,t.useLocalState)(i,"searchText",""),l=s[0],h=s[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Design Management",children:[(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search for designs",mb:2,onInput:function(){function N(v,f){return h(f)}return N}()}),d.filter((0,a.createSearch)(l,function(N){return N.name})).map(function(N){return(0,e.createComponentVNode)(2,o.Button.Checkbox,{fluid:!0,content:N.name,checked:!N.blacklisted,onClick:function(){function v(){return m(N.blacklisted?"unblacklist_design":"blacklist_design",{d_uid:N.uid})}return v}()},N.name)})]})}},63315:function(x,r,n){"use strict";r.__esModule=!0,r.RndServer=void 0;var e=n(89005),a=n(72253),t=n(44879),o=n(36036),p=n(98595),b=r.RndServer=function(){function k(C,i){var c=(0,a.useBackend)(i),m=c.act,u=c.data,d=u.active,s=u.network_name;return(0,e.createComponentVNode)(2,p.Window,{width:600,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Section,{title:"Server Configuration",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Machine power",children:(0,e.createComponentVNode)(2,o.Button,{content:d?"On":"Off",selected:d,icon:"power-off",onClick:function(){function l(){return m("toggle_active")}return l}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Link status",children:s===null?(0,e.createComponentVNode)(2,o.Box,{color:"red",children:"Unlinked"}):(0,e.createComponentVNode)(2,o.Box,{color:"green",children:"Linked"})})]})}),s===null?(0,e.createComponentVNode)(2,I):(0,e.createComponentVNode)(2,y)]})})}return k}(),y=function(C,i){var c=(0,a.useBackend)(i),m=c.act,u=c.data,d=u.network_name;return(0,e.createComponentVNode)(2,o.Section,{title:"Network Info",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Connected network ID",children:d}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unlink",children:(0,e.createComponentVNode)(2,o.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function s(){return m("unlink")}return s}()})})]})})},I=function(C,i){var c=(0,a.useBackend)(i),m=c.act,u=c.data,d=u.controllers;return(0,e.createComponentVNode)(2,o.Section,{title:"Detected Cores",children:(0,e.createComponentVNode)(2,o.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Link"})]}),d.map(function(s){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:s.netname}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Link",icon:"link",onClick:function(){function l(){return m("link",{addr:s.addr})}return l}()})})]},s.addr)})]})})}},26109:function(x,r,n){"use strict";r.__esModule=!0,r.RobotSelfDiagnosis=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(25328),b=function(k,C){var i=k/C;return i<=.2?"good":i<=.5?"average":"bad"},y=r.RobotSelfDiagnosis=function(){function I(k,C){var i=(0,a.useBackend)(C),c=i.data,m=c.component_data;return(0,e.createComponentVNode)(2,o.Window,{width:280,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:m.map(function(u,d){return(0,e.createComponentVNode)(2,t.Section,{title:(0,p.capitalize)(u.name),children:u.installed<=0?(0,e.createComponentVNode)(2,t.NoticeBox,{m:-.5,height:3.5,color:"red",style:{"font-style":"normal"},children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,textAlign:"center",align:"center",color:"#e8e8e8",children:u.installed===-1?"Destroyed":"Missing"})})}):(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"72%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",color:b(u.brute_damage,u.max_damage),children:u.brute_damage}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",color:b(u.electronic_damage,u.max_damage),children:u.electronic_damage})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Powered",color:u.powered?"good":"bad",children:u.powered?"Yes":"No"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Enabled",color:u.status?"good":"bad",children:u.status?"Yes":"No"})]})})]})},d)})})})}return I}()},97997:function(x,r,n){"use strict";r.__esModule=!0,r.RoboticsControlConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.RoboticsControlConsole=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=c.can_hack,u=c.safety,d=c.show_lock_all,s=c.cyborgs,l=s===void 0?[]:s;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:460,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!d&&(0,e.createComponentVNode)(2,t.Section,{title:"Emergency Lock Down",children:[(0,e.createComponentVNode)(2,t.Button,{icon:u?"lock":"unlock",content:u?"Disable Safety":"Enable Safety",selected:u,onClick:function(){function h(){return i("arm",{})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lock",disabled:u,content:"Lock ALL Cyborgs",color:"bad",onClick:function(){function h(){return i("masslock",{})}return h}()})]}),(0,e.createComponentVNode)(2,b,{cyborgs:l,can_hack:m})]})})}return y}(),b=function(I,k){var C=I.cyborgs,i=I.can_hack,c=(0,a.useBackend)(k),m=c.act,u=c.data,d="Detonate";return u.detonate_cooldown>0&&(d+=" ("+u.detonate_cooldown+"s)"),C.length?C.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,buttons:(0,e.createFragment)([!!s.hackable&&!s.emagged&&(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){function l(){return m("hackbot",{uid:s.uid})}return l}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:s.locked_down?"unlock":"lock",color:s.locked_down?"good":"default",content:s.locked_down?"Release":"Lockdown",disabled:!u.auth,onClick:function(){function l(){return m("stopbot",{uid:s.uid})}return l}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:d,disabled:!u.auth||u.detonate_cooldown>0,color:"bad",onClick:function(){function l(){return m("killbot",{uid:s.uid})}return l}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Box,{color:s.status?"bad":s.locked_down?"average":"good",children:s.status?"Not Responding":s.locked_down?"Locked Down":"Nominal"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:(0,e.createComponentVNode)(2,t.Box,{children:s.locstring})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s.health>50?"good":"bad",value:s.health/100})}),typeof s.charge=="number"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s.charge>30?"good":"bad",value:s.charge/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Capacity",children:(0,e.createComponentVNode)(2,t.Box,{color:s.cell_capacity<3e4?"average":"good",children:s.cell_capacity})})],4)||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No Power Cell"})}),!!s.is_hacked&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safeties",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"DISABLED"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Module",children:s.module}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:(0,e.createComponentVNode)(2,t.Box,{color:s.synchronization?"default":"average",children:s.synchronization||"None"})})]})},s.uid)}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cyborg units detected within access parameters."})}},54431:function(x,r,n){"use strict";r.__esModule=!0,r.Safe=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.Safe=function(){function k(C,i){var c=(0,a.useBackend)(i),m=c.act,u=c.data,d=u.dial,s=u.open,l=u.locked,h=u.contents;return(0,e.createComponentVNode)(2,o.Window,{theme:"safe",width:600,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving",children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"25%"}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"75%"})]}),(0,e.createComponentVNode)(2,t.Icon,{className:"Safe--engraving--arrow",name:"long-arrow-alt-down",size:"3"}),(0,e.createVNode)(1,"br"),s?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,t.Box,{as:"img",className:"Safe--dial",src:"safe_dial.png",style:{transform:"rotate(-"+3.6*d+"deg)","z-index":0}})]}),!s&&(0,e.createComponentVNode)(2,I)]})})}return k}(),b=function(C,i){var c=(0,a.useBackend)(i),m=c.act,u=c.data,d=u.dial,s=u.open,l=u.locked,h=function(v,f){return(0,e.createComponentVNode)(2,t.Button,{disabled:s||f&&!l,icon:"arrow-"+(f?"right":"left"),content:(f?"Right":"Left")+" "+v,iconRight:f,onClick:function(){function g(){return m(f?"turnleft":"turnright",{num:v})}return g}(),style:{"z-index":10}})};return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:l,icon:s?"lock":"lock-open",content:s?"Close":"Open",mb:"0.5rem",onClick:function(){function N(){return m("open")}return N}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{position:"absolute",children:[h(50),h(10),h(1)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[h(1,!0),h(10,!0),h(50,!0)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--number",children:d})]})},y=function(C,i){var c=(0,a.useBackend)(i),m=c.act,u=c.data,d=u.contents;return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--contents",overflow:"auto",children:d.map(function(s,l){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mb:"0.5rem",onClick:function(){function h(){return m("retrieve",{index:l+1})}return h}(),children:[(0,e.createComponentVNode)(2,t.Box,{as:"img",src:s.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),s.name]}),(0,e.createVNode)(1,"br")],4,s)})})},I=function(C,i){return(0,e.createComponentVNode)(2,t.Section,{className:"Safe--help",title:"Safe opening instructions (because you all keep forgetting)",children:[(0,e.createComponentVNode)(2,t.Box,{children:["1. Turn the dial left to the first number.",(0,e.createVNode)(1,"br"),"2. Turn the dial right to the second number.",(0,e.createVNode)(1,"br"),"3. Continue repeating this process for each number, switching between left and right each time.",(0,e.createVNode)(1,"br"),"4. Open the safe."]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:"To lock fully, turn the dial to the left after closing the safe."})]})}},29740:function(x,r,n){"use strict";r.__esModule=!0,r.SatelliteControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.SatelliteControl=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.satellites,m=i.notice,u=i.meteor_shield,d=i.meteor_shield_coverage,s=i.meteor_shield_coverage_max,l=i.meteor_shield_coverage_percentage;return(0,e.createComponentVNode)(2,o.Window,{width:475,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[u&&(0,e.createComponentVNode)(2,t.Section,{title:"Station Shield Coverage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:l>=100?"good":"average",value:d,maxValue:s,children:[l," %"]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Satellite Network Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alert",color:"red",children:i.notice}),c.map(function(h){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"#"+h.id,children:[h.mode," ",(0,e.createComponentVNode)(2,t.Button,{content:h.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){function N(){return C("toggle",{id:h.id})}return N}()})]},h.id)})]})})]})})}return b}()},44162:function(x,r,n){"use strict";r.__esModule=!0,r.SecureStorage=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),p=n(98595),b=n(36352),y=n(92986),I=r.SecureStorage=function(){function c(m,u){return(0,e.createComponentVNode)(2,p.Window,{theme:"securestorage",height:500,width:280,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,C)})})})})}return c}(),k=function(m,u){var d=(0,t.useBackend)(u),s=d.act,l=window.event?m.which:m.keyCode;if(l===y.KEY_ENTER){m.preventDefault(),s("keypad",{digit:"E"});return}if(l===y.KEY_ESCAPE){m.preventDefault(),s("keypad",{digit:"C"});return}if(l===y.KEY_BACKSPACE){m.preventDefault(),s("backspace");return}if(l>=y.KEY_0&&l<=y.KEY_9){m.preventDefault(),s("keypad",{digit:l-y.KEY_0});return}if(l>=y.KEY_NUMPAD_0&&l<=y.KEY_NUMPAD_9){m.preventDefault(),s("keypad",{digit:l-y.KEY_NUMPAD_0});return}},C=function(m,u){var d=(0,t.useBackend)(u),s=d.act,l=d.data,h=l.locked,N=l.no_passcode,v=l.emagged,f=l.user_entered_code,g=[["1","2","3"],["4","5","6"],["7","8","9"],["C","0","E"]],V=N?"":h?"bad":"good";return(0,e.createComponentVNode)(2,o.Section,{fill:!0,onKeyDown:function(){function B(S){return k(S,u)}return B}(),children:[(0,e.createComponentVNode)(2,o.Stack.Item,{height:7.3,children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["SecureStorage__displayBox","SecureStorage__displayBox--"+V]),height:"100%",children:v?"ERROR":f})}),(0,e.createComponentVNode)(2,o.Table,{children:g.map(function(B){return(0,e.createComponentVNode)(2,b.TableRow,{children:B.map(function(S){return(0,e.createComponentVNode)(2,b.TableCell,{children:(0,e.createComponentVNode)(2,i,{number:S})},S)})},B[0])})})]})},i=function(m,u){var d=(0,t.useBackend)(u),s=d.act,l=d.data,h=m.number;return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,bold:!0,mb:"6px",content:h,textAlign:"center",fontSize:"60px",lineHeight:1.25,width:"80px",className:(0,a.classes)(["SecureStorage__Button","SecureStorage__Button--keypad","SecureStorage__Button--"+h]),onClick:function(){function N(){return s("keypad",{digit:h})}return N}()})}},6272:function(x,r,n){"use strict";r.__esModule=!0,r.SecurityRecords=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(98595),b=n(3939),y=n(321),I=n(5485),k=n(22091),C={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},i=function(f,g){(0,b.modalOpen)(f,"edit",{field:g.edit,value:g.value})},c=r.SecurityRecords=function(){function v(f,g){var V=(0,t.useBackend)(g),B=V.act,S=V.data,L=S.loginState,w=S.currentPage,A;if(L.logged_in)w===1?A=(0,e.createComponentVNode)(2,u):w===2&&(A=(0,e.createComponentVNode)(2,l));else return(0,e.createComponentVNode)(2,p.Window,{theme:"security",width:800,height:900,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,I.LoginScreen)})});return(0,e.createComponentVNode)(2,p.Window,{theme:"security",width:800,height:900,children:[(0,e.createComponentVNode)(2,b.ComplexModal),(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,k.TemporaryNotice),(0,e.createComponentVNode)(2,m),A]})})]})}return v}(),m=function(f,g){var V=(0,t.useBackend)(g),B=V.act,S=V.data,L=S.currentPage,w=S.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:L===1,onClick:function(){function A(){return B("page",{page:1})}return A}(),children:"List Records"}),L===2&&w&&!w.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:L===2,children:["Record: ",w.fields[0].value]})]})})},u=function(f,g){var V=(0,t.useBackend)(g),B=V.act,S=V.data,L=S.records,w=(0,t.useLocalState)(g,"searchText",""),A=w[0],T=w[1],E=(0,t.useLocalState)(g,"sortId","name"),P=E[0],D=E[1],M=(0,t.useLocalState)(g,"sortOrder",!0),O=M[0],R=M[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,s)}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"SecurityRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,d,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,d,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,d,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,d,{id:"fingerprint",children:"Fingerprint"}),(0,e.createComponentVNode)(2,d,{id:"status",children:"Criminal Status"})]}),L.filter((0,a.createSearch)(A,function(j){return j.name+"|"+j.id+"|"+j.rank+"|"+j.fingerprint+"|"+j.status})).sort(function(j,_){var W=O?1:-1;return j[P].localeCompare(_[P])*W}).map(function(j){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"SecurityRecords__listRow--"+C[j.status],onClick:function(){function _(){return B("view",{uid_gen:j.uid_gen,uid_sec:j.uid_sec})}return _}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",j.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:j.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:j.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:j.fingerprint}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:j.status})]},j.id)})]})})})],4)},d=function(f,g){var V=(0,t.useLocalState)(g,"sortId","name"),B=V[0],S=V[1],L=(0,t.useLocalState)(g,"sortOrder",!0),w=L[0],A=L[1],T=f.id,E=f.children;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:B!==T&&"transparent",fluid:!0,onClick:function(){function P(){B===T?A(!w):(S(T),A(!0))}return P}(),children:[E,B===T&&(0,e.createComponentVNode)(2,o.Icon,{name:w?"sort-up":"sort-down",ml:"0.25rem;"})]})})})},s=function(f,g){var V=(0,t.useBackend)(g),B=V.act,S=V.data,L=S.isPrinting,w=(0,t.useLocalState)(g,"searchText",""),A=w[0],T=w[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:"0.25rem",content:"New Record",icon:"plus",onClick:function(){function E(){return B("new_general")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:L,icon:L?"spinner":"print",iconSpin:!!L,content:"Print Cell Log",onClick:function(){function E(){return(0,b.modalOpen)(g,"print_cell_log")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by Name, ID, Assignment, Fingerprint, Status",fluid:!0,onInput:function(){function E(P,D){return T(D)}return E}()})})]})},l=function(f,g){var V=(0,t.useBackend)(g),B=V.act,S=V.data,L=S.isPrinting,w=S.general,A=S.security;return!w||!w.fields?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"General records lost!"}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:L,icon:L?"spinner":"print",iconSpin:!!L,content:"Print Record",onClick:function(){function T(){return B("print_record")}return T}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",tooltip:"WARNING: This will also delete the Security and Medical records associated with this crew member!",tooltipPosition:"bottom-start",content:"Delete Record",onClick:function(){function T(){return B("delete_general")}return T}()})],4),children:(0,e.createComponentVNode)(2,h)})}),!A||!A.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function T(){return B("new_security")}return T}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Security records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:A.empty,content:"Delete Record",onClick:function(){function T(){return B("delete_security")}return T}()}),children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:A.fields.map(function(T,E){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:T.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(T.value),!!T.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:T.line_break?"1rem":"initial",onClick:function(){function P(){return i(g,T)}return P}()})]},E)})})})})}),(0,e.createComponentVNode)(2,N)],4)],0)},h=function(f,g){var V=(0,t.useBackend)(g),B=V.data,S=B.general;return!S||!S.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:S.fields.map(function(L,w){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:L.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(""+L.value),!!L.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:L.line_break?"1rem":"initial",onClick:function(){function A(){return i(g,L)}return A}()})]},w)})})}),!!S.has_photos&&S.photos.map(function(L,w){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:L,style:{width:"96px","margin-top":"5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",w+1]},w)})]})},N=function(f,g){var V=(0,t.useBackend)(g),B=V.act,S=V.data,L=S.security;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function w(){return(0,b.modalOpen)(g,"comment_add")}return w}()}),children:L.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):L.comments.map(function(w,A){return(0,e.createComponentVNode)(2,o.Box,{preserveWhitespace:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:w.header||"Auto-generated"}),(0,e.createVNode)(1,"br"),w.text||w,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function T(){return B("comment_delete",{id:A+1})}return T}()})]},A)})})})}},5099:function(x,r,n){"use strict";r.__esModule=!0,r.SeedExtractor=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(98595),b=n(3939);function y(d,s){var l=typeof Symbol!="undefined"&&d[Symbol.iterator]||d["@@iterator"];if(l)return(l=l.call(d)).next.bind(l);if(Array.isArray(d)||(l=I(d))||s&&d&&typeof d.length=="number"){l&&(d=l);var h=0;return function(){return h>=d.length?{done:!0}:{done:!1,value:d[h++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function I(d,s){if(d){if(typeof d=="string")return k(d,s);var l={}.toString.call(d).slice(8,-1);return l==="Object"&&d.constructor&&(l=d.constructor.name),l==="Map"||l==="Set"?Array.from(d):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?k(d,s):void 0}}function k(d,s){(s==null||s>d.length)&&(s=d.length);for(var l=0,h=Array(s);l=A},N=function(w,A){return w<=A},v=s.split(" "),f=[],g=function(){var w=S.value,A=w.split(":");if(A.length===0)return 0;if(A.length===1)return f.push(function(P){return(P.name+" ("+P.variant+")").toLocaleLowerCase().includes(A[0].toLocaleLowerCase())}),0;if(A.length>2)return{v:function(){function P(D){return!1}return P}()};var T,E=l;if(A[1][A[1].length-1]==="-"?(E=N,T=Number(A[1].substring(0,A[1].length-1))):A[1][A[1].length-1]==="+"?(E=h,T=Number(A[1].substring(0,A[1].length-1))):T=Number(A[1]),isNaN(T))return{v:function(){function P(D){return!1}return P}()};switch(A[0].toLocaleLowerCase()){case"l":case"life":case"lifespan":f.push(function(P){return E(P.lifespan,T)});break;case"e":case"end":case"endurance":f.push(function(P){return E(P.endurance,T)});break;case"m":case"mat":case"maturation":f.push(function(P){return E(P.maturation,T)});break;case"pr":case"prod":case"production":f.push(function(P){return E(P.production,T)});break;case"y":case"yield":f.push(function(P){return E(P.yield,T)});break;case"po":case"pot":case"potency":f.push(function(P){return E(P.potency,T)});break;case"s":case"stock":case"c":case"count":case"a":case"amount":f.push(function(P){return E(P.amount,T)});break;default:return{v:function(){function P(D){return!1}return P}()}}},V,B=y(v),S;!(S=B()).done;)if(V=g(),V!==0&&V)return V.v;return function(L){for(var w=0,A=f;w=1?Number(E):1)}return A}()})]})]})}},17474:function(x,r,n){"use strict";r.__esModule=!0,r.Shop=void 0;var e=n(89005),a=n(88510),t=n(64795),o=n(25328),p=n(72253),b=n(36036),y=n(98595),I=n(3939),k=function(h){switch(h){case 0:return(0,e.createComponentVNode)(2,i);case 1:return(0,e.createComponentVNode)(2,c);default:return"\u041E\u0428\u0418\u0411\u041A\u0410, \u0421\u041E\u041E\u0411\u0429\u0418\u0422\u0415 \u0420\u0410\u0417\u0420\u0410\u0411\u041E\u0422\u0427\u0418\u041A\u0423"}},C=r.Shop=function(){function l(h,N){var v=(0,p.useBackend)(N),f=v.act,g=v.data,V=g.cart,B=(0,p.useLocalState)(N,"tabIndex",0),S=B[0],L=B[1];return(0,e.createComponentVNode)(2,y.Window,{width:900,height:600,theme:"abductor",children:[(0,e.createComponentVNode)(2,I.ComplexModal),(0,e.createComponentVNode)(2,y.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Tabs,{children:[(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:S===0,onClick:function(){function w(){L(0)}return w}(),icon:"store",children:"\u0422\u043E\u0440\u0433\u043E\u0432\u043B\u044F"},"PurchasePage"),(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:S===1,onClick:function(){function w(){L(1)}return w}(),icon:"shopping-cart",children:["\u041A\u043E\u0440\u0437\u0438\u043D\u0430 ",V&&V.length?"("+V.length+")":""]},"Cart")]})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:k(S)})]})})]})}return l}(),i=function(h,N){var v=(0,p.useBackend)(N),f=v.act,g=v.data,V=g.cash,B=g.cats,S=(0,p.useLocalState)(N,"shopItems",B[0].items),L=S[0],w=S[1],A=(0,p.useLocalState)(N,"showDesc",1),T=A[0],E=A[1];return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Section,{title:"\u0421\u0440\u0435\u0434\u0441\u0442\u0432\u0430: "+V+"\u043A",buttons:(0,e.createComponentVNode)(2,b.Button.Checkbox,{content:"\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u043E\u0441\u0442\u0438",checked:T,onClick:function(){function P(){return E(!T)}return P}()})})})}),(0,e.createComponentVNode)(2,b.Stack,{fill:!0,mt:.3,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,b.Tabs,{vertical:!0,children:B.map(function(P){return(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:P.items===L,onClick:function(){function D(){w(P.items)}return D}(),children:P.cat},P)})})})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,b.Stack,{vertical:!0,children:L.map(function(P){return(0,e.createComponentVNode)(2,b.Stack.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,m,{i:P,showDecription:T},(0,o.decodeHtmlEntities)(P.name))},(0,o.decodeHtmlEntities)(P.name))})})})})]})]})},c=function(h,N){var v=(0,p.useBackend)(N),f=v.act,g=v.data,V=g.cart,B=g.cash,S=g.cart_price,L=(0,p.useLocalState)(N,"showDesc",0),w=L[0],A=L[1];return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"\u0421\u0440\u0435\u0434\u0441\u0442\u0432\u0430: "+B+"\u043A",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,b.Button.Checkbox,{content:"\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u043E\u0441\u0442\u0438",checked:w,onClick:function(){function T(){return A(!w)}return T}()}),(0,e.createComponentVNode)(2,b.Button,{content:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",icon:"trash",onClick:function(){function T(){return f("empty_cart")}return T}(),disabled:!V}),(0,e.createComponentVNode)(2,b.Button,{content:"\u041E\u043F\u043B\u0430\u0442\u0438\u0442\u044C ("+S+"\u043A)",icon:"shopping-cart",onClick:function(){function T(){return f("purchase_cart")}return T}(),disabled:!V||S>B})],4),children:(0,e.createComponentVNode)(2,b.Stack,{vertical:!0,children:V?V.map(function(T){return(0,e.createComponentVNode)(2,b.Stack.Item,{p:1,mr:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,m,{i:T,showDecription:w,buttons:(0,e.createComponentVNode)(2,d,{i:T})})},(0,o.decodeHtmlEntities)(T.name))}):(0,e.createComponentVNode)(2,b.Box,{italic:!0,children:"\u0412\u0430\u0448\u0430 \u043A\u043E\u0440\u0437\u0438\u043D\u0430 \u043F\u0443\u0441\u0442\u0430!"})})})})})},m=function(h,N){var v=h.i,f=h.showDecription,g=f===void 0?1:f,V=h.buttons,B=V===void 0?(0,e.createComponentVNode)(2,u,{i:v}):V;return(0,e.createComponentVNode)(2,b.Section,{title:(0,o.decodeHtmlEntities)(v.name),showBottom:g,buttons:B,children:[g?(0,e.createComponentVNode)(2,b.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(v.desc)}):null,g?(0,e.createComponentVNode)(2,b.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(v.content)}):null]})},u=function(h,N){var v=(0,p.useBackend)(N),f=v.act,g=v.data,V=h.i,B=g.cash;return(0,e.createComponentVNode)(2,b.Button,{icon:"shopping-cart",content:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0432 \u043A\u043E\u0440\u0437\u0438\u043D\u0443 ("+V.cost+" \u041A\u0438\u043A\u0438\u0440\u0438\u0434\u0438\u0442\u043E\u0432)",color:V.limit!==-1&&"red",tooltip:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0442\u043E\u0432\u0430\u0440 \u0432 \u043A\u043E\u0440\u0437\u0438\u043D\u0443, \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432 \u043E\u0431\u0449\u0435\u0435 \u0447\u0438\u0441\u043B\u043E \u0434\u0430\u043D\u043D\u043E\u0433\u043E \u0442\u043E\u0432\u0430\u0440\u0430. \u0426\u0435\u043D\u0430 \u0442\u043E\u0432\u0430\u0440\u0430 \u043C\u0435\u043D\u044F\u0435\u0442\u0441\u044F \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0438 \u043E\u0442 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043D\u044B\u0445 \u0446\u0435\u043D\u043D\u043E\u0441\u0442\u0435\u0439 \u0432 \u0420\u0430\u0441\u0447\u0438\u0447\u0435\u0442\u0447\u0438\u043A\u0438\u043A\u0435.",tooltipPosition:"left",onClick:function(){function S(){return f("add_to_cart",{item:V.obj_path})}return S}(),disabled:V.cost>B||V.limit!==-1&&V.purchased>=V.limit||V.is_time_available===!1})},d=function(h,N){var v=(0,p.useBackend)(N),f=v.act,g=v.data,V=h.i;return(0,e.createComponentVNode)(2,b.Stack,{children:[(0,e.createComponentVNode)(2,b.Button,{icon:"times",content:"("+V.cost*V.amount+"\u043A)",tooltip:"\u0423\u0431\u0440\u0430\u0442\u044C \u0438\u0437 \u043A\u043E\u0440\u0437\u0438\u043D\u044B.",tooltipPosition:"left",onClick:function(){function B(){return f("remove_from_cart",{item:V.obj_path})}return B}()}),(0,e.createComponentVNode)(2,b.Button,{icon:"minus",ml:"5px",onClick:function(){function B(){return f("set_cart_item_quantity",{item:V.obj_path,quantity:--V.amount})}return B}(),disabled:V.amount<=0}),(0,e.createComponentVNode)(2,b.Button.Input,{content:V.amount,width:"45px",tooltipPosition:"bottom-end",onCommit:function(){function B(S,L){return f("set_cart_item_quantity",{item:V.obj_path,quantity:L})}return B}(),disabled:V.limit!==-1&&V.amount>=V.limit&&V.amount<=0}),(0,e.createComponentVNode)(2,b.Button,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:V.limit===0&&"Discount already redeemed!",onClick:function(){function B(){return f("set_cart_item_quantity",{item:V.obj_path,quantity:++V.amount})}return B}(),disabled:V.limit!==-1&&V.amount>=V.limit})]})},s=function(h,N){var v=(0,p.useBackend)(N),f=v.act,g=v.data,V=h.pack;return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,horizontal:!0,children:(0,e.createComponentVNode)(2,b.Stack.Item,{width:"70%",children:V.content_images.map(function(B){return(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+B,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})},B.ref)})})})}},2916:function(x,r,n){"use strict";r.__esModule=!0,r.ShuttleConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.ShuttleConsole=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:i.status?i.status:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Missing"})}),!!i.shuttle&&(!!i.docking_ports_len&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Send to ",children:i.docking_ports.map(function(c){return(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",content:c.name,onClick:function(){function m(){return C("move",{move:c.id})}return m}()},c.name)})})||(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:"red",children:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Locked"})}),!!i.admin_controlled&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorization",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-circle",content:"Request Authorization",disabled:!i.status,onClick:function(){function c(){return C("request")}return c}()})})],0))]})})})})}return b}()},39401:function(x,r,n){"use strict";r.__esModule=!0,r.ShuttleManipulator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.ShuttleManipulator=function(){function k(C,i){var c=(0,a.useLocalState)(i,"tabIndex",0),m=c[0],u=c[1],d=function(){function s(l){switch(l){case 0:return(0,e.createComponentVNode)(2,b);case 1:return(0,e.createComponentVNode)(2,y);case 2:return(0,e.createComponentVNode)(2,I);default:return"WE SHOULDN'T BE HERE!"}}return s}();return(0,e.createComponentVNode)(2,o.Window,{width:650,height:700,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===0,onClick:function(){function s(){return u(0)}return s}(),icon:"info-circle",children:"Status"},"Status"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===1,onClick:function(){function s(){return u(1)}return s}(),icon:"file-import",children:"Templates"},"Templates"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===2,onClick:function(){function s(){return u(2)}return s}(),icon:"tools",children:"Modification"},"Modification")]}),d(m)]})})})}return k}(),b=function(C,i){var c=(0,a.useBackend)(i),m=c.act,u=c.data,d=u.shuttles;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID",children:s.id}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Timer",children:s.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Mode",children:s.mode}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:s.status}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function l(){return m("jump_to",{type:"mobile",id:s.id})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Fast Travel",icon:"fast-forward",onClick:function(){function l(){return m("fast_travel",{id:s.id})}return l}()})]})]})},s.name)})})},y=function(C,i){var c=(0,a.useBackend)(i),m=c.act,u=c.data,d=u.templates_tabs,s=u.existing_shuttle,l=u.templates;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:d.map(function(h){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===s.id,icon:"file",onClick:function(){function N(){return m("select_template_category",{cat:h})}return N}(),children:h},h)})}),!!s&&l[s.id].templates.map(function(h){return(0,e.createComponentVNode)(2,t.Section,{title:h.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[h.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:h.description}),h.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:h.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Load Template",icon:"download",onClick:function(){function N(){return m("select_template",{shuttle_id:h.shuttle_id})}return N}()})})]})},h.name)})]})},I=function(C,i){var c=(0,a.useBackend)(i),m=c.act,u=c.data,d=u.existing_shuttle,s=u.selected;return(0,e.createComponentVNode)(2,t.Box,{children:[d?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: "+d.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:d.status}),d.timer&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Timer",children:d.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function l(){return m("jump_to",{type:"mobile",id:d.id})}return l}()})})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: None"}),s?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: "+s.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:s.description}),s.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:s.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Preview",icon:"eye",onClick:function(){function l(){return m("preview",{shuttle_id:s.shuttle_id})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Load",icon:"download",onClick:function(){function l(){return m("load",{shuttle_id:s.shuttle_id})}return l}()})]})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: None"})]})}},88284:function(x,r,n){"use strict";r.__esModule=!0,r.Sleeper=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(98595),b=[["good","Alive"],["average","Critical"],["bad","DEAD"]],y=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],I={average:[.25,.5],bad:[.5,1/0]},k=["bad","average","average","good","average","average","bad"],C=r.Sleeper=function(){function l(h,N){var v=(0,t.useBackend)(N),f=v.act,g=v.data,V=g.hasOccupant,B=V?(0,e.createComponentVNode)(2,i):(0,e.createComponentVNode)(2,s);return(0,e.createComponentVNode)(2,p.Window,{width:550,height:760,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:B}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,u)})]})})})}return l}(),i=function(h,N){var v=(0,t.useBackend)(N),f=v.act,g=v.data,V=g.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,d)],4)},c=function(h,N){var v=(0,t.useBackend)(N),f=v.act,g=v.data,V=g.occupant,B=g.auto_eject_dead;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:"Auto-eject if dead:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{icon:B?"toggle-on":"toggle-off",selected:B,content:B?"On":"Off",onClick:function(){function S(){return f("auto_eject_dead_"+(B?"off":"on"))}return S}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"Eject",onClick:function(){function S(){return f("ejectify")}return S}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:V.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:V.maxHealth,value:V.health/V.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.round)(V.health,0)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:b[V.stat][0],children:b[V.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:V.maxTemp,value:V.bodyTemperature/V.maxTemp,color:k[V.temperatureSuitability+3],children:[(0,a.round)(V.btCelsius,0),"\xB0C,",(0,a.round)(V.btFaren,0),"\xB0F"]})}),!!V.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:V.bloodMax,value:V.bloodLevel/V.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[V.bloodPercent,"%, ",V.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[V.pulse," BPM"]})],4)]})})},m=function(h,N){var v=(0,t.useBackend)(N),f=v.data,g=f.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Damage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:y.map(function(V,B){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:V[0],children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:g[V[1]]/100,ranges:I,children:(0,a.round)(g[V[1]],0)},B)},B)})})})},u=function(h,N){var v=(0,t.useBackend)(N),f=v.act,g=v.data,V=g.hasOccupant,B=g.isBeakerLoaded,S=g.beakerMaxSpace,L=g.beakerFreeSpace,w=g.dialysis,A=w&&L>0;return(0,e.createComponentVNode)(2,o.Section,{title:"Dialysis",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!B||L<=0||!V,selected:A,icon:A?"toggle-on":"toggle-off",content:A?"Active":"Inactive",onClick:function(){function T(){return f("togglefilter")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B,icon:"eject",content:"Eject",onClick:function(){function T(){return f("removebeaker")}return T}()})],4),children:B?(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:S,value:L/S,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[L,"u"]})})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No beaker loaded."})})},d=function(h,N){var v=(0,t.useBackend)(N),f=v.act,g=v.data,V=g.occupant,B=g.chemicals,S=g.maxchem,L=g.amounts;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Chemicals",children:B.map(function(w,A){var T="",E;return w.overdosing?(T="bad",E=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):w.od_warning&&(T="average",E=(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle"}),"\xA0 Close to overdosing"]})),(0,e.createComponentVNode)(2,o.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{title:w.title,level:"3",mx:"0",lineHeight:"18px",buttons:E,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:S,value:w.occ_amount/S,color:T,title:"Amount of chemicals currently inside the occupant / Total amount injectable by this machine",mr:"0.5rem",children:[w.pretty_amount,"/",S,"u"]}),L.map(function(P,D){return(0,e.createComponentVNode)(2,o.Button,{disabled:!w.injectable||w.occ_amount+P>S||V.stat===2,icon:"syringe",content:"Inject "+P+"u",title:"Inject "+P+"u of "+w.title+" into the occupant",mb:"0",height:"19px",onClick:function(){function M(){return f("chemical",{chemid:w.id,amount:P})}return M}()},D)})]})})},A)})})},s=function(h,N){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},21597:function(x,r,n){"use strict";r.__esModule=!0,r.SlotMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.SlotMachine=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data;if(i.money===null)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:90,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"Could not scan your card or could not find account!"}),(0,e.createComponentVNode)(2,t.Box,{children:"Please wear or hold your ID and try again."})]})})});var c;return i.plays===1?c=i.plays+" player has tried their luck today!":c=i.plays+" players have tried their luck today!",(0,e.createComponentVNode)(2,o.Window,{width:300,height:151,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{lineHeight:2,children:c}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Credits Remaining",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:i.money})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"10 credits to spin",children:(0,e.createComponentVNode)(2,t.Button,{icon:"coins",disabled:i.working,content:i.working?"Spinning...":"Spin",onClick:function(){function m(){return C("spin")}return m}()})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,lineHeight:2,color:i.resultlvl,children:i.result})]})})})}return b}()},46348:function(x,r,n){"use strict";r.__esModule=!0,r.Smartfridge=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.Smartfridge=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.secure,m=i.can_dry,u=i.drying,d=i.contents;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Secure Access: Please have your identification ready."}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:m?"Drying rack":"Contents",buttons:!!m&&(0,e.createComponentVNode)(2,t.Button,{width:4,icon:u?"power-off":"times",content:u?"On":"Off",selected:u,onClick:function(){function s(){return C("drying")}return s}()}),children:[!d&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cookie-bite",size:5,color:"brown"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No products loaded."]})}),!!d&&d.slice().sort(function(s,l){return s.display_name.localeCompare(l.display_name)}).map(function(s){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"55%",children:s.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"25%",children:["(",s.quantity," in stock)"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:13,children:[(0,e.createComponentVNode)(2,t.Button,{width:3,icon:"arrow-down",tooltip:"Dispense one.",content:"1",onClick:function(){function l(){return C("vend",{index:s.vend,amount:1})}return l}()}),(0,e.createComponentVNode)(2,t.NumberInput,{width:"40px",minValue:0,value:0,maxValue:s.quantity,step:1,stepPixelSize:3,onChange:function(){function l(h,N){return C("vend",{index:s.vend,amount:N})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"arrow-down",content:"All",tooltip:"Dispense all.",tooltipPosition:"bottom-start",onClick:function(){function l(){return C("vend",{index:s.vend,amount:s.quantity})}return l}()})]})]},s)})]})]})})})}return b}()},86162:function(x,r,n){"use strict";r.__esModule=!0,r.Smes=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(49968),p=n(98595),b=1e3,y=r.Smes=function(){function I(k,C){var i=(0,a.useBackend)(C),c=i.act,m=i.data,u=m.capacityPercent,d=m.capacity,s=m.charge,l=m.inputAttempt,h=m.inputting,N=m.inputLevel,v=m.inputLevelMax,f=m.inputAvailable,g=m.outputPowernet,V=m.outputAttempt,B=m.outputting,S=m.outputLevel,L=m.outputLevelMax,w=m.outputUsed,A=u>=100&&"good"||h&&"average"||"bad",T=B&&"good"||s>0&&"average"||"bad";return(0,e.createComponentVNode)(2,p.Window,{width:340,height:345,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stored Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:u*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:l?"sync-alt":"times",selected:l,onClick:function(){function E(){return c("tryinput")}return E}(),children:l?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:A,children:u>=100&&"Fully Charged"||h&&"Charging"||"Not Charging"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Input",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:N===0,onClick:function(){function E(){return c("input",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:N===0,onClick:function(){function E(){return c("input",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:N/b,fillValue:f/b,minValue:0,maxValue:v/b,step:5,stepPixelSize:4,format:function(){function E(P){return(0,o.formatPower)(P*b,1)}return E}(),onChange:function(){function E(P,D){return c("input",{target:D*b})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:N===v,onClick:function(){function E(){return c("input",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:N===v,onClick:function(){function E(){return c("input",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available",children:(0,o.formatPower)(f)})]})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Output Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:V?"power-off":"times",selected:V,onClick:function(){function E(){return c("tryoutput")}return E}(),children:V?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:T,children:g?B?"Sending":s>0?"Not Sending":"No Charge":"Not Connected"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Output",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:S===0,onClick:function(){function E(){return c("output",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:S===0,onClick:function(){function E(){return c("output",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:S/b,minValue:0,maxValue:L/b,step:5,stepPixelSize:4,format:function(){function E(P){return(0,o.formatPower)(P*b,1)}return E}(),onChange:function(){function E(P,D){return c("output",{target:D*b})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:S===L,onClick:function(){function E(){return c("output",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:S===L,onClick:function(){function E(){return c("output",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(w)})]})})]})})})}return I}()},63584:function(x,r,n){"use strict";r.__esModule=!0,r.SolarControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.SolarControl=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=0,m=1,u=2,d=i.generated,s=i.generated_ratio,l=i.tracking_state,h=i.tracking_rate,N=i.connected_panels,v=i.connected_tracker,f=i.cdir,g=i.direction,V=i.rotating_direction;return(0,e.createComponentVNode)(2,o.Window,{width:490,height:277,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Scan for new hardware",onClick:function(){function B(){return C("refresh")}return B}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar tracker",color:v?"good":"bad",children:v?"OK":"N/A"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar panels",color:N>0?"good":"bad",children:N})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power output",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:s,children:d+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[f,"\xB0 (",g,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[l===u&&(0,e.createComponentVNode)(2,t.Box,{children:" Automated "}),l===m&&(0,e.createComponentVNode)(2,t.Box,{children:[" ",h,"\xB0/h (",V,")"," "]}),l===c&&(0,e.createComponentVNode)(2,t.Box,{children:" Tracker offline "})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[l!==u&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",step:1,stepPixelSize:1,minValue:0,maxValue:359,value:f,onDrag:function(){function B(S,L){return C("cdir",{cdir:L})}return B}()}),l===u&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker status",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:l===c,onClick:function(){function B(){return C("track",{track:c})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:l===m,onClick:function(){function B(){return C("track",{track:m})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:l===u,disabled:!v,onClick:function(){function B(){return C("track",{track:u})}return B}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[l===m&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:h,format:function(){function B(S){var L=Math.sign(S)>0?"+":"-";return L+Math.abs(S)}return B}(),onDrag:function(){function B(S,L){return C("tdir",{tdir:L})}return B}()}),l===c&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Tracker offline "}),l===u&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]})]})})]})})}return b}()},38096:function(x,r,n){"use strict";r.__esModule=!0,r.SpawnersMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.SpawnersMenu=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.spawners||[];return(0,e.createComponentVNode)(2,o.Window,{width:700,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{children:c.map(function(m){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:m.name+" ("+m.amount_left+" left)",level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Jump",onClick:function(){function u(){return C("jump",{ID:m.uids})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){function u(){return C("spawn",{ID:m.uids})}return u}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:m.desc}),!!m.fluff&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:m.fluff}),!!m.important_info&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:m.important_info})]},m.name)})})})})}return b}()},30586:function(x,r,n){"use strict";r.__esModule=!0,r.SpecMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.SpecMenu=function(){function C(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:1100,height:600,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,I),(0,e.createComponentVNode)(2,k)]})})})}return C}(),b=function(i,c){var m=(0,a.useBackend)(c),u=m.act,d=m.data,s=d.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Hemomancer",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function l(){return u("hemomancer")}return l}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on blood magic and the manipulation of blood around you.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Vampiric claws",16),(0,e.createTextVNode)(": Unlocked at 150 blood, allows you to summon a robust pair of claws that attack rapidly, drain a targets blood, and heal you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood Barrier",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to select two turfs and create a wall between them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood tendrils",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to slow everyone in a targeted 3x3 area after a short delay.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Sanguine pool",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to travel at high speeds for a short duration. Doing this leaves behind blood splatters. You can move through anything but walls and space when doing this.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Predator senses",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to sniff out anyone within the same sector as you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood eruption",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to manipulate all nearby blood splatters, in 4 tiles around you, into spikes that impale anyone stood ontop of them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"The blood bringers rite",16),(0,e.createTextVNode)(": When toggled you will rapidly drain the blood of everyone who is nearby and use it to heal yourself slightly and remove any incapacitating effects rapidly.")],4)]})})},y=function(i,c){var m=(0,a.useBackend)(c),u=m.act,d=m.data,s=d.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Umbrae",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function l(){return u("umbrae")}return l}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on darkness, stealth ambushing and mobility.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Cloak of darkness",16),(0,e.createTextVNode)(": Unlocked at 150 blood, when toggled, allows you to become nearly invisible and move rapidly when in dark regions. While active, burn damage is more effective against you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow anchor",16),(0,e.createTextVNode)(": Unlocked at 250 blood, casting it will create an anchor at the cast location after a short delay. If you then cast the ability again, you are teleported back to the anchor. If you do not cast again within 2 minutes, you will do a fake recall, causing a clone to appear at the anchor and making yourself invisible. It will not teleport you between Z levels.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow snare",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to summon a trap that when crossed blinds and ensnares the victim. This trap is hard to see, but withers in the light.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Dark passage",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to target a turf on screen, you will then teleport to that turf.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Extinguish",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to snuff out nearby electronic light sources and glowshrooms.")],4),(0,e.createVNode)(1,"b",null,"Shadow boxing",16),": Unlocked at 800 blood, sends out shadow clones towards a target, damaging them while you remain in range.",(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Eternal darkness",16),(0,e.createTextVNode)(": When toggled, you consume yourself in unholy darkness, only the strongest of lights will be able to see through it. Inside the radius, nearby creatures will freeze and energy projectiles will deal less damage.")],4),(0,e.createVNode)(1,"p",null,"In addition, you also gain permanent X-ray vision.",16)]})})},I=function(i,c){var m=(0,a.useBackend)(c),u=m.act,d=m.data,s=d.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Gargantua",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function l(){return u("gargantua")}return l}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on tenacity and melee damage.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rejuvenate",16),(0,e.createTextVNode)(": Will heal you at an increased rate based on how much damage you have taken.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell",16),(0,e.createTextVNode)(": Unlocked at 150 blood, increases your resistance to physical damage, stuns and stamina for 30 seconds. While it is active you cannot fire guns.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Seismic stomp",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to stomp the ground to send out a shockwave, knocking people back.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood rush",16),(0,e.createTextVNode)(": Unlocked at 250 blood, gives you a short speed boost when cast.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell II",16),(0,e.createTextVNode)(": Unlocked at 400 blood, increases all melee damage by 10.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Overwhelming force",16),(0,e.createTextVNode)(": Unlocked at 600 blood, when toggled, if you bump into a door that you do not have access to, it will force it open. In addition, you cannot be pushed or pulled while it is active.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Demonic grasp",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to send out a demonic hand to snare someone. If you are on disarm/grab intent you will push/pull the target, respectively.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Charge",16),(0,e.createTextVNode)(": Unlocked at 800 blood, you gain the ability to charge at a target. Destroying and knocking back pretty much anything you collide with.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Desecrated Duel",16),(0,e.createTextVNode)(": Leap towards a visible enemy, creating an arena upon landing, infusing you with increased regeneration, and granting you resistance to internal damages.")],4)]})})},k=function(i,c){var m=(0,a.useBackend)(c),u=m.act,d=m.data,s=d.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Dantalion",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function l(){return u("dantalion")}return l}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on thralling and illusions.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Enthrall",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Thralls your target to your will, requires you to stand still. Does not work on mindshielded or already enthralled/mindslaved people.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall cap",16),(0,e.createTextVNode)(": You can only thrall a max of 1 person at a time. This can be increased at 400 blood, 600 blood and at full power to a max of 4 thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall commune",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Allows you to talk to your thralls, your thralls can talk back in the same way.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Subspace swap",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to swap positions with a target.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Pacify",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to pacify a target, preventing them from causing harm for 40 seconds.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Decoy",16),(0,e.createTextVNode)(": Unlocked at 400 blood, briefly turn invisible and send out an illusion to fool everyone nearby.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rally thralls",16),(0,e.createTextVNode)(": Unlocked at 600 blood, removes all incapacitating effects from nearby thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood bond",16),(0,e.createTextVNode)(": Unlocked at 800 blood, when cast, all nearby thralls become linked to you. If anyone in the network takes damage, it is shared equally between everyone in the network. If a thrall goes out of range, they will be removed from the network.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Mass Hysteria",16),(0,e.createTextVNode)(": Casts a powerful illusion that blinds and then makes everyone nearby perceive others as random animals.")],4)]})})}},95152:function(x,r,n){"use strict";r.__esModule=!0,r.StackCraft=void 0;var e=n(89005),a=n(72253),t=n(88510),o=n(64795),p=n(25328),b=n(98595),y=n(36036),I=r.StackCraft=function(){function s(){return(0,e.createComponentVNode)(2,b.Window,{width:350,height:500,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,k)})})}return s}(),k=function(l,h){var N=(0,a.useBackend)(h),v=N.data,f=v.amount,g=v.recipes,V=(0,a.useLocalState)(h,"searchText",""),B=V[0],S=V[1],L=C(g,(0,p.createSearch)(B)),w=(0,a.useLocalState)(h,"",!1),A=w[0],T=w[1];return(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,title:"Amount: "+f,buttons:(0,e.createFragment)([A&&(0,e.createComponentVNode)(2,y.Input,{width:12.5,value:B,placeholder:"Find recipe",onInput:function(){function E(P,D){return S(D)}return E}()}),(0,e.createComponentVNode)(2,y.Button,{ml:.5,tooltip:"Search",tooltipPosition:"bottom-end",icon:"magnifying-glass",selected:A,onClick:function(){function E(){return T(!A)}return E}()})],0),children:L?(0,e.createComponentVNode)(2,u,{recipes:L}):(0,e.createComponentVNode)(2,y.NoticeBox,{children:"No recipes found!"})})},C=function s(l,h){var N=(0,o.flow)([(0,t.map)(function(v){var f=v[0],g=v[1];return i(g)?h(f)?v:[f,s(g,h)]:h(f)?v:[f,void 0]}),(0,t.filter)(function(v){var f=v[0],g=v[1];return g!==void 0}),(0,t.sortBy)(function(v){var f=v[0],g=v[1];return f}),(0,t.sortBy)(function(v){var f=v[0],g=v[1];return!i(g)}),(0,t.reduce)(function(v,f){var g=f[0],V=f[1];return v[g]=V,v},{})])(Object.entries(l));return Object.keys(N).length?N:void 0},i=function(l){return l.uid===void 0},c=function(l,h){return l.required_amount>h?0:Math.floor(h/l.required_amount)},m=function(l,h){for(var N=(0,a.useBackend)(h),v=N.act,f=l.recipe,g=l.max_possible_multiplier,V=Math.min(g,Math.floor(f.max_result_amount/f.result_amount)),B=[5,10,25],S=[],L=function(){var E=A[w];V>=E&&S.push((0,e.createComponentVNode)(2,y.Button,{bold:!0,translucent:!0,fontSize:.85,width:"32px",content:E*f.result_amount+"x",onClick:function(){function P(){return v("make",{recipe_uid:f.uid,multiplier:E})}return P}()}))},w=0,A=B;w1?S+"x ":"",M=L>1?"s":"",O=""+D+V,R=L+" sheet"+M,j=c(B,g);return(0,e.createComponentVNode)(2,y.ImageButton,{fluid:!0,base64:P,dmIcon:T,dmIconState:E,imageSize:32,disabled:!j,tooltip:R,buttons:w>1&&j>1&&(0,e.createComponentVNode)(2,m,{recipe:B,max_possible_multiplier:j}),onClick:function(){function _(){return v("make",{recipe_uid:A,multiplier:1})}return _}(),children:O})}},38307:function(x,r,n){"use strict";r.__esModule=!0,r.StationAlertConsoleContent=r.StationAlertConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.StationAlertConsole=function(){function y(){return(0,e.createComponentVNode)(2,o.Window,{width:325,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,b)})})}return y}(),b=r.StationAlertConsoleContent=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.data,c=i.alarms||[],m=c.Fire||[],u=c.Atmosphere||[],d=c.Power||[];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Fire Alarms",children:(0,e.createVNode)(1,"ul",null,[m.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),m.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Atmospherics Alarms",children:(0,e.createVNode)(1,"ul",null,[u.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),u.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Alarms",children:(0,e.createVNode)(1,"ul",null,[d.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),d.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)})],4)}return y}()},96091:function(x,r,n){"use strict";r.__esModule=!0,r.StationTraitsPanel=void 0;var e=n(89005),a=n(88510),t=n(42127),o=n(72253),p=n(36036),b=n(98595),y=function(i){return i[i.SetupFutureStationTraits=0]="SetupFutureStationTraits",i[i.ViewStationTraits=1]="ViewStationTraits",i}(y||{}),I=function(c,m){var u=(0,o.useBackend)(m),d=u.act,s=u.data,l=s.future_station_traits,h=(0,o.useLocalState)(m,"selectedFutureTrait",null),N=h[0],v=h[1],f=Object.fromEntries(s.valid_station_traits.map(function(V){return[V.name,V.path]})),g=Object.keys(f);return g.sort(),(0,e.createComponentVNode)(2,p.Box,{children:[(0,e.createComponentVNode)(2,p.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,p.Dropdown,{displayText:!N&&"Select trait to add...",onSelected:v,options:g,selected:N,width:"100%"})}),(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Button,{color:"green",icon:"plus",onClick:function(){function V(){if(N){var B=f[N],S=[B];if(l){var L,w=l.map(function(A){return A.path});if(w.indexOf(B)!==-1)return;S=(L=S).concat.apply(L,w)}d("setup_future_traits",{station_traits:S})}}return V}(),children:"Add"})})]}),(0,e.createComponentVNode)(2,p.Divider),Array.isArray(l)?l.length>0?(0,e.createComponentVNode)(2,p.Stack,{vertical:!0,fill:!0,children:l.map(function(V){return(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:V.name}),(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Button,{color:"red",icon:"times",onClick:function(){function B(){d("setup_future_traits",{station_traits:(0,a.filterMap)(l,function(S){if(S.path!==V.path)return S.path})})}return B}(),children:"Delete"})})]})},V.path)})}):(0,e.createComponentVNode)(2,p.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,p.Box,{children:"No station traits will run next round."}),(0,e.createComponentVNode)(2,p.Button,{mt:1,fluid:!0,color:"good",icon:"times",tooltip:"The next round will roll station traits randomly, just like normal",onClick:function(){function V(){return d("clear_future_traits")}return V}(),children:"Run Station Traits Normally"})]}):(0,e.createComponentVNode)(2,p.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,p.Box,{children:"No future station traits are planned."}),(0,e.createComponentVNode)(2,p.Button,{mt:1,fluid:!0,color:"red",icon:"times",onClick:function(){function V(){return d("setup_future_traits",{station_traits:[]})}return V}(),children:"Prevent station traits from running next round"})]})]})},k=function(c,m){var u=(0,o.useBackend)(m),d=u.act,s=u.data;return s.current_traits.length>0?(0,e.createComponentVNode)(2,p.Stack,{vertical:!0,fill:!0,children:s.current_traits.map(function(l){return(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:l.name}),(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Button.Confirm,{content:"Revert",color:"red",disabled:s.too_late_to_revert||!l.can_revert,tooltip:!l.can_revert&&"This trait is not revertable."||s.too_late_to_revert&&"It's too late to revert station traits, the round has already started.",icon:"times",onClick:function(){function h(){return d("revert",{ref:l.ref})}return h}()})})]})},l.ref)})}):(0,e.createComponentVNode)(2,p.Box,{textAlign:"center",children:"There are no active station traits."})},C=r.StationTraitsPanel=function(){function i(c,m){var u=(0,o.useLocalState)(m,"station_traits_tab",y.ViewStationTraits),d=u[0],s=u[1],l;switch(d){case y.SetupFutureStationTraits:l=(0,e.createComponentVNode)(2,I);break;case y.ViewStationTraits:l=(0,e.createComponentVNode)(2,k);break;default:(0,t.exhaustiveCheck)(d)}return(0,e.createComponentVNode)(2,b.Window,{title:"Modify Station Traits",height:350,width:350,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Tabs,{children:[(0,e.createComponentVNode)(2,p.Tabs.Tab,{icon:"eye",selected:d===y.ViewStationTraits,onClick:function(){function h(){return s(y.ViewStationTraits)}return h}(),children:"View"}),(0,e.createComponentVNode)(2,p.Tabs.Tab,{icon:"edit",selected:d===y.SetupFutureStationTraits,onClick:function(){function h(){return s(y.SetupFutureStationTraits)}return h}(),children:"Edit"})]})}),(0,e.createComponentVNode)(2,p.Stack.Item,{m:0,children:[(0,e.createComponentVNode)(2,p.Divider),l]})]})})})}return i}()},39409:function(x,r,n){"use strict";r.__esModule=!0,r.StripMenu=void 0;var e=n(89005),a=n(88510),t=n(79140),o=n(72253),p=n(36036),b=n(98595),y=5,I=9,k=function(N){return N===0?5:9},C="64px",i=function(N){return N[0]+"/"+N[1]},c=function(N){var v=N.align,f=N.children;return(0,e.createComponentVNode)(2,p.Box,{style:{position:"absolute",left:v==="left"?"6px":"48px","text-align":v,"text-shadow":"2px 2px 2px #000",top:"2px"},children:f})},m={enable_internals:{icon:"lungs",text:"Enable internals"},disable_internals:{icon:"lungs",text:"Disable internals"},enable_lock:{icon:"lock",text:"Enable lock"},disable_lock:{icon:"unlock",text:"Disable lock"},suit_sensors:{icon:"tshirt",text:"Adjust suit sensors"},remove_accessory:{icon:"medal",text:"Remove accessory"},dislodge_headpocket:{icon:"head-side-virus",text:"Dislodge headpocket"}},u={eyes:{displayName:"eyewear",gridSpot:i([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:i([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:i([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:i([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:i([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:i([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:i([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:i([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:i([1,4])},jumpsuit:{displayName:"uniform",gridSpot:i([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:i([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:i([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:i([2,3]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:i([2,4]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:i([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:i([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:i([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:i([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:i([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:i([3,4]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:i([3,3]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:i([4,4]),image:"inventory-pda.png"}},d={eyes:{displayName:"eyewear",gridSpot:i([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:i([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:i([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:i([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:i([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:i([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:i([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:i([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:i([1,4])},jumpsuit:{displayName:"uniform",gridSpot:i([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:i([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:i([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:i([4,4]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:i([4,5]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:i([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:i([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:i([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:i([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:i([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:i([4,7]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:i([4,6]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:i([4,8]),image:"inventory-pda.png"}},s=function(h){return h[h.Completely=1]="Completely",h[h.Hidden=2]="Hidden",h}(s||{}),l=r.StripMenu=function(){function h(N,v){var f=(0,o.useBackend)(v),g=f.act,V=f.data,B=new Map;if(V.show_mode===0)for(var S=0,L=Object.keys(V.items);S=.01})},(0,a.sortBy)(function(w){return-w.amount})])(N.gases||[]),L=Math.max.apply(Math,[1].concat(S.map(function(w){return w.amount})));return(0,e.createComponentVNode)(2,I.Window,{width:550,height:185,children:(0,e.createComponentVNode)(2,I.Window.Content,{children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{width:"270px",children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Metrics",children:(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:f/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Relative EER",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:g,minValue:0,maxValue:5e3,ranges:{good:[-1/0,5e3],average:[5e3,7e3],bad:[7e3,1/0]},children:(0,o.toFixed)(g)+" MeV/cm3"})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:i(V),minValue:0,maxValue:i(1e4),ranges:{teal:[-1/0,i(80)],good:[i(80),i(373)],average:[i(373),i(1e3)],bad:[i(1e3),1/0]},children:(0,o.toFixed)(V)+" K"})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:i(B),minValue:0,maxValue:i(5e4),ranges:{good:[i(1),i(300)],average:[-1/0,i(1e3)],bad:[i(1e3),1/0]},children:(0,o.toFixed)(B)+" kPa"})})]})})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Gases",buttons:(0,e.createComponentVNode)(2,b.Button,{icon:"arrow-left",content:"Back",onClick:function(){function w(){return h("back")}return w}()}),children:(0,e.createComponentVNode)(2,b.LabeledList,{children:S.map(function(w){return(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:(0,y.getGasLabel)(w.name),children:(0,e.createComponentVNode)(2,b.ProgressBar,{color:(0,y.getGasColor)(w.name),value:w.amount,minValue:0,maxValue:L,children:(0,o.toFixed)(w.amount,2)+"%"})},w.name)})})})})]})})})}},46029:function(x,r,n){"use strict";r.__esModule=!0,r.SyndicateComputerSimple=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.SyndicateComputerSimple=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data;return(0,e.createComponentVNode)(2,o.Window,{theme:"syndicate",width:400,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:i.rows.map(function(c){return(0,e.createComponentVNode)(2,t.Section,{title:c.title,buttons:(0,e.createComponentVNode)(2,t.Button,{content:c.buttontitle,disabled:c.buttondisabled,tooltip:c.buttontooltip,tooltipPosition:"left",onClick:function(){function m(){return C(c.buttonact)}return m}()}),children:[c.status,!!c.bullets&&(0,e.createComponentVNode)(2,t.Box,{children:c.bullets.map(function(m){return(0,e.createComponentVNode)(2,t.Box,{children:m},m)})})]},c.title)})})})}return b}()},36372:function(x,r,n){"use strict";r.__esModule=!0,r.TEG=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=function(I){return I.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},b=r.TEG=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data;return c.error?(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:[c.error,(0,e.createComponentVNode)(2,t.Button,{icon:"circle",content:"Recheck",onClick:function(){function m(){return i("check")}return m}()})]})})}):(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Cold Loop ("+c.cold_dir+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Inlet",children:[p(c.cold_inlet_temp)," K, ",p(c.cold_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Outlet",children:[p(c.cold_outlet_temp)," K, ",p(c.cold_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Hot Loop ("+c.hot_dir+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Inlet",children:[p(c.hot_inlet_temp)," K, ",p(c.hot_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Outlet",children:[p(c.hot_outlet_temp)," K, ",p(c.hot_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Output",children:[p(c.output_power)," W",!!c.warning_switched&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Cold inlet temperature exceeds hot inlet temperature."}),!!c.warning_cold_pressure&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Cold circulator inlet pressure is under 1,000 kPa."}),!!c.warning_hot_pressure&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Hot circulator inlet pressure is under 1,000 kPa."})]})]})})}return y}()},23190:function(x,r,n){"use strict";r.__esModule=!0,r.TTSSeedsExplorerContent=r.TTSSeedsExplorer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(46095),p=n(98595),b={0:"Free",1:"Tier I",2:"Tier II",3:"Tier III",4:"Tier IV",5:"Tier V"},y={male:"\u041C\u0443\u0436\u0441\u043A\u043E\u0439",female:"\u0416\u0435\u043D\u0441\u043A\u0438\u0439"},I={\u041C\u0443\u0436\u0441\u043A\u043E\u0439:{icon:"mars",color:"blue"},\u0416\u0435\u043D\u0441\u043A\u0438\u0439:{icon:"venus",color:"purple"},\u041B\u044E\u0431\u043E\u0439:{icon:"venus-mars",color:"white"}},k=function(m,u,d,s){return s===void 0&&(s=null),m.map(function(l){var h,N=(h=l[s])!=null?h:l;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:u.includes(l),content:N,onClick:function(){function v(){u.includes(l)?d(u.filter(function(f){var g;return((g=f[s])!=null?g:f)!==l})):d([l].concat(u))}return v}()},N)})},C=r.TTSSeedsExplorer=function(){function c(){return(0,e.createComponentVNode)(2,p.Window,{width:1e3,height:685,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,i)})})})}return c}(),i=r.TTSSeedsExplorerContent=function(){function c(m,u){var d=(0,a.useBackend)(u),s=d.act,l=d.data,h=l.providers,N=l.seeds,v=l.selected_seed,f=l.phrases,g=l.donator_level,V=l.character_gender,B=N.map(function(Y){return Y.category}).filter(function(Y,ve,he){return he.indexOf(Y)===ve}).sort(function(Y,ve){return Y.localeCompare(ve)}),S=N.map(function(Y){return Y.gender}).filter(function(Y,ve,he){return he.indexOf(Y)===ve}),L=N.map(function(Y){return Y.required_donator_level}).filter(function(Y,ve,he){return he.indexOf(Y)===ve}).sort(function(Y,ve){return Y-ve}).map(function(Y){return b[Y]}),w=(0,a.useLocalState)(u,"selectedProviders",h),A=w[0],T=w[1],E=(0,a.useLocalState)(u,"selectedGenders",S.includes(y[V])?[y[V]]:S),P=E[0],D=E[1],M=(0,a.useLocalState)(u,"selectedCategories",B),O=M[0],R=M[1],j=(0,a.useLocalState)(u,"selectedDonatorLevels",L.includes(b[g])?L.slice(0,L.indexOf(b[g])+1):L),_=j[0],W=j[1],z=(0,a.useLocalState)(u,"selectedPhrase",f[0]),K=z[0],G=z[1],Q=(0,a.useLocalState)(u,"searchtext",""),J=Q[0],ue=Q[1],ie=(0,a.useLocalState)(u,"searchToggle",!1),pe=ie[0],te=ie[1],q=k(h,A,T,"name"),ne=k(S,P,D),le=k(B,O,R),ee=k(L,_,W),re=(0,e.createComponentVNode)(2,t.Dropdown,{options:f,selected:K.replace(/(.{60})..+/,"$1..."),width:"21.3em",onSelected:function(){function Y(ve){return G(ve)}return Y}()}),oe=(0,e.createFragment)([pe&&(0,e.createComponentVNode)(2,t.Input,{placeholder:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435...",width:20,onInput:function(){function Y(ve,he){return ue(he)}return Y}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"magnifying-glass",tooltip:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0438\u0441\u043A",tooltipPosition:"bottom-end",selected:pe,onClick:function(){function Y(){return te(!pe)}return Y}()})],0),fe=N.sort(function(Y,ve){var he=Y.name.toLowerCase(),Ve=ve.name.toLowerCase();return he>Ve?1:he0&&v!==Y.name?"orange":"white",children:Y.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:v===Y.name?.5:.25,textAlign:"left",children:Y.category}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:v===Y.name?"white":I[Y.gender].color,textAlign:"left",children:(0,e.createComponentVNode)(2,t.Icon,{mx:1,size:1.2,name:I[Y.gender].icon})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:"white",textAlign:"right",children:Y.required_donator_level>0&&(0,e.createFragment)([b[Y.required_donator_level],(0,e.createComponentVNode)(2,t.Icon,{ml:1,mr:2,name:"coins"})],0)})]},Y.name)});return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"30.25em",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"\u0424\u0438\u043B\u044C\u0442\u0440\u044B",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440\u044B",children:q}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u043B",children:ne}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0422\u0438\u0440",children:ee}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0424\u0440\u0430\u0437\u0430",children:re})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u041A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u0438",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"times",disabled:O.length===0,onClick:function(){function Y(){return R([])}return Y}(),children:"\u0423\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0451"}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",disabled:O.length===B.length,onClick:function(){function Y(){return R(B)}return Y}(),children:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0451"})],4),children:le})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.BlockQuote,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"11px",children:"\u0414\u043B\u044F \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F \u0438 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044F \u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0430 \u0432 \u0443\u0441\u043B\u043E\u0432\u0438\u044F\u0445 \u0440\u0430\u0441\u0442\u0443\u0449\u0438\u0445 \u0440\u0430\u0441\u0445\u043E\u0434\u043E\u0432 \u0447\u0430\u0441\u0442\u044C \u0433\u043E\u043B\u043E\u0441\u043E\u0432 \u043F\u0440\u0438\u0448\u043B\u043E\u0441\u044C \u0441\u0434\u0435\u043B\u0430\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u043C\u0438 \u0442\u043E\u043B\u044C\u043A\u043E \u0437\u0430 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u044C\u043D\u0443\u044E \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0443 \u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0430."}),(0,e.createComponentVNode)(2,t.Box,{mt:1.5,italic:!0,color:"gray",fontSize:"10px",children:"\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u0435\u0435 \u043E\u0431 \u044D\u0442\u043E\u043C \u043C\u043E\u0436\u043D\u043E \u0443\u0437\u043D\u0430\u0442\u044C \u0432 \u043D\u0430\u0448\u0435\u043C Discord-\u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0435."})]})})})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u0413\u043E\u043B\u043E\u0441\u0430 ("+fe.length+"/"+N.length+")",buttons:oe,children:(0,e.createComponentVNode)(2,t.Table,{children:(0,e.createComponentVNode)(2,o.VirtualList,{children:me})})})})],4)}return c}()},56441:function(x,r,n){"use strict";r.__esModule=!0,r.TachyonArrayContent=r.TachyonArray=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.TachyonArray=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=c.records,u=m===void 0?[]:m,d=c.explosion_target,s=c.toxins_tech,l=c.printing;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shift's Target",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Toxins Level",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Administration",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print All Logs",disabled:!u.length||l,align:"center",onClick:function(){function h(){return i("print_logs")}return h}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!u.length,color:"bad",align:"center",onClick:function(){function h(){return i("delete_logs")}return h}()})]})]})}),u.length?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No Records"})]})})}return y}(),b=r.TachyonArrayContent=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=c.records,u=m===void 0?[]:m;return(0,e.createComponentVNode)(2,t.Section,{title:"Logged Explosions",children:(0,e.createComponentVNode)(2,t.Flex,{children:(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Epicenter"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actual Size"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Theoretical Size"})]}),u.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.logged_time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.epicenter}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.actual_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.theoretical_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete",color:"bad",onClick:function(){function s(){return i("delete_record",{index:d.index})}return s}()})})]},d.index)})]})})})})}return y}()},1754:function(x,r,n){"use strict";r.__esModule=!0,r.Tank=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.Tank=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c;return i.has_mask?c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,width:"76%",icon:i.connected?"check":"times",content:i.connected?"Internals On":"Internals Off",selected:i.connected,onClick:function(){function m(){return C("internals")}return m}()})}):c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",color:"red",children:"No Mask Equipped"}),(0,e.createComponentVNode)(2,o.Window,{width:325,height:135,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tank Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:i.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Release Pressure",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:i.ReleasePressure===i.minReleasePressure,tooltip:"Min",onClick:function(){function m(){return C("pressure",{pressure:"min"})}return m}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(i.releasePressure),width:"65px",unit:"kPa",minValue:i.minReleasePressure,maxValue:i.maxReleasePressure,onChange:function(){function m(u,d){return C("pressure",{pressure:d})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:i.ReleasePressure===i.maxReleasePressure,tooltip:"Max",onClick:function(){function m(){return C("pressure",{pressure:"max"})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:i.ReleasePressure===i.defaultReleasePressure,tooltip:"Reset",onClick:function(){function m(){return C("pressure",{pressure:"reset"})}return m}()})]}),c]})})})})}return b}()},7579:function(x,r,n){"use strict";r.__esModule=!0,r.TankDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.TankDispenser=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.o_tanks,m=i.p_tanks;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Dispense Oxygen Tank ("+c+")",disabled:c===0,icon:"arrow-circle-down",onClick:function(){function u(){return C("oxygen")}return u}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mt:1,fluid:!0,content:"Dispense Plasma Tank ("+m+")",disabled:m===0,icon:"arrow-circle-down",onClick:function(){function u(){return C("plasma")}return u}()})})]})})})}return b}()},16136:function(x,r,n){"use strict";r.__esModule=!0,r.TcommsCore=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.TcommsCore=function(){function C(i,c){var m=(0,a.useBackend)(c),u=m.act,d=m.data,s=d.ion,l=(0,a.useLocalState)(c,"tabIndex",0),h=l[0],N=l[1],v=function(){function f(g){switch(g){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,I);case 2:return(0,e.createComponentVNode)(2,k);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return f}();return(0,e.createComponentVNode)(2,o.Window,{width:900,height:520,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[s===1&&(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"wrench",selected:h===0,onClick:function(){function f(){return N(0)}return f}(),children:"Configuration"},"ConfigPage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"link",selected:h===1,onClick:function(){function f(){return N(1)}return f}(),children:"Device Linkage"},"LinkagePage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"user-times",selected:h===2,onClick:function(){function f(){return N(2)}return f}(),children:"User Filtering"},"FilterPage")]}),v(h)]})})}return C}(),b=function(){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"ERROR: An Ionospheric overload has occured. Please wait for the machine to reboot. This cannot be manually done."})},y=function(i,c){var m=(0,a.useBackend)(c),u=m.act,d=m.data,s=d.active,l=d.sectors_available,h=d.nttc_toggle_jobs,N=d.nttc_toggle_job_color,v=d.nttc_toggle_name_color,f=d.nttc_toggle_command_bold,g=d.nttc_job_indicator_type,V=d.nttc_setting_language,B=d.network_id;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:s?"On":"Off",selected:s,icon:"power-off",onClick:function(){function S(){return u("toggle_active")}return S}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sector Coverage",children:l})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Radio Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcements",children:(0,e.createComponentVNode)(2,t.Button,{content:h?"On":"Off",selected:h,icon:"user-tag",onClick:function(){function S(){return u("nttc_toggle_jobs")}return S}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:N?"On":"Off",selected:N,icon:"clipboard-list",onClick:function(){function S(){return u("nttc_toggle_job_color")}return S}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:v?"On":"Off",selected:v,icon:"user-tag",onClick:function(){function S(){return u("nttc_toggle_name_color")}return S}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Command Amplification",children:(0,e.createComponentVNode)(2,t.Button,{content:f?"On":"Off",selected:f,icon:"volume-up",onClick:function(){function S(){return u("nttc_toggle_command_bold")}return S}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Advanced",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcement Format",children:(0,e.createComponentVNode)(2,t.Button,{content:g||"Unset",selected:g,icon:"pencil-alt",onClick:function(){function S(){return u("nttc_job_indicator_type")}return S}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Language Conversion",children:(0,e.createComponentVNode)(2,t.Button,{content:V||"Unset",selected:V,icon:"globe",onClick:function(){function S(){return u("nttc_setting_language")}return S}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:B||"Unset",selected:B,icon:"server",onClick:function(){function S(){return u("network_id")}return S}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Import Configuration",icon:"file-import",onClick:function(){function S(){return u("import")}return S}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Export Configuration",icon:"file-export",onClick:function(){function S(){return u("export")}return S}()})]})],4)},I=function(i,c){var m=(0,a.useBackend)(c),u=m.act,d=m.data,s=d.link_password,l=d.relay_entries;return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linkage Password",children:(0,e.createComponentVNode)(2,t.Button,{content:s||"Unset",selected:s,icon:"lock",onClick:function(){function h(){return u("change_password")}return h}()})})}),(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Unlink"})]}),l.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.status===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Online"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Offline"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",onClick:function(){function N(){return u("unlink",{addr:h.addr})}return N}()})})]},h.addr)})]})]})},k=function(i,c){var m=(0,a.useBackend)(c),u=m.act,d=m.data,s=d.filtered_users;return(0,e.createComponentVNode)(2,t.Section,{title:"User Filtering",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Add User",icon:"user-plus",onClick:function(){function l(){return u("add_filter")}return l}()}),children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"90%"},children:"User"}),(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"10%"},children:"Actions"})]}),s.map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"user-times",onClick:function(){function h(){return u("remove_filter",{user:l})}return h}()})})]},l)})]})})}},88046:function(x,r,n){"use strict";r.__esModule=!0,r.TcommsRelay=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.TcommsRelay=function(){function I(k,C){var i=(0,a.useBackend)(C),c=i.act,m=i.data,u=m.linked,d=m.active,s=m.network_id;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:292,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Relay Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:d?"On":"Off",selected:d,icon:"power-off",onClick:function(){function l(){return c("toggle_active")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:s||"Unset",selected:s,icon:"server",onClick:function(){function l(){return c("network_id")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Link Status",children:u===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Linked"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Unlinked"})})]})}),u===1?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,y)]})})}return I}(),b=function(k,C){var i=(0,a.useBackend)(C),c=i.act,m=i.data,u=m.linked_core_id,d=m.linked_core_addr,s=m.hidden_link;return(0,e.createComponentVNode)(2,t.Section,{title:"Link Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core ID",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core Address",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hidden Link",children:(0,e.createComponentVNode)(2,t.Button,{content:s?"Yes":"No",icon:s?"eye-slash":"eye",selected:s,onClick:function(){function l(){return c("toggle_hidden_link")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unlink",children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function l(){return c("unlink")}return l}()})})]})})},y=function(k,C){var i=(0,a.useBackend)(C),c=i.act,m=i.data,u=m.cores;return(0,e.createComponentVNode)(2,t.Section,{title:"Detected Cores",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Link"})]}),u.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function s(){return c("link",{addr:d.addr})}return s}()})})]},d.addr)})]})})}},20802:function(x,r,n){"use strict";r.__esModule=!0,r.Teleporter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.Teleporter=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.targetsTeleport?i.targetsTeleport:{},m=0,u=1,d=2,s=i.calibrated,l=i.calibrating,h=i.powerstation,N=i.regime,v=i.teleporterhub,f=i.target,g=i.locked,V=i.adv_beacon_allowed,B=i.advanced_beacon_locking;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:270,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:[(!h||!v)&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Error",children:[v,!h&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Powerstation not linked "}),h&&!v&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Teleporter hub not linked "})]}),h&&v&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Status",buttons:(0,e.createFragment)(!!V&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",children:"Advanced Beacon Locking:\xA0"}),(0,e.createComponentVNode)(2,t.Button,{selected:B,icon:B?"toggle-on":"toggle-off",content:B?"Enabled":"Disabled",onClick:function(){function S(){return C("advanced_beacon_locking",{on:B?0:1})}return S}()})],4),0),children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Teleport target:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[N===m&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:f,disabled:l,options:Object.keys(c),color:f!=="None"?"default":"bad",onSelected:function(){function S(L){return C("settarget",{x:c[L].x,y:c[L].y,z:c[L].z,tptarget:c[L].pretarget})}return S}()}),N===u&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:f,disabled:l,options:Object.keys(c),color:f!=="None"?"default":"bad",onSelected:function(){function S(L){return C("settarget",{x:c[L].x,y:c[L].y,z:c[L].z,tptarget:c[L].pretarget})}return S}()}),N===d&&(0,e.createComponentVNode)(2,t.Box,{children:f})]})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Regime:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Gate",tooltip:"Teleport to another teleport hub.",tooltipPosition:"top",color:N===u?"good":null,onClick:function(){function S(){return C("setregime",{regime:u})}return S}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Teleporter",tooltip:"One-way teleport.",tooltipPosition:"top",color:N===m?"good":null,onClick:function(){function S(){return C("setregime",{regime:m})}return S}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"GPS",tooltip:"Teleport to a location stored in a GPS device.",tooltipPosition:"top-end",color:N===d?"good":null,disabled:!g,onClick:function(){function S(){return C("setregime",{regime:d})}return S}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{label:"Calibration",mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Calibration:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[f!=="None"&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:15.8,textAlign:"center",mt:.5,children:l&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"In Progress"})||s&&(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Optimal"})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Sub-Optimal"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",tooltip:"Calibrates the hub. Accidents may occur when the calibration is not optimal.",tooltipPosition:"bottom-end",disabled:!!(s||l),onClick:function(){function S(){return C("calibrate")}return S}()})})]}),f==="None"&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"21px",children:"No target set"})]})]})]}),!!(g&&h&&v&&N===d)&&(0,e.createComponentVNode)(2,t.Section,{title:"GPS",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload GPS data",tooltip:"Loads the GPS data from the device.",icon:"upload",onClick:function(){function S(){return C("load")}return S}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){function S(){return C("eject")}return S}()})]})})]})})})})}return b}()},48517:function(x,r,n){"use strict";r.__esModule=!0,r.TelescienceConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.TelescienceConsole=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.last_msg,m=i.linked_pad,u=i.held_gps,d=i.lastdata,s=i.power_levels,l=i.current_max_power,h=i.current_power,N=i.current_bearing,v=i.current_elevation,f=i.current_sector,g=i.working,V=i.max_z,B=(0,a.useLocalState)(I,"dummyrot",N),S=B[0],L=B[1];return(0,e.createComponentVNode)(2,o.Window,{width:400,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createFragment)([c,!(d.length>0)||(0,e.createVNode)(1,"ul",null,d.map(function(w){return(0,e.createVNode)(1,"li",null,w,0,null,w)}),0)],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Telepad Status",children:m===1?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Bearing",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",children:[(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",width:6.1,lineHeight:1.5,step:.1,minValue:0,maxValue:360,disabled:g,value:N,onDrag:function(){function w(A,T){return L(T)}return w}(),onChange:function(){function w(A,T){return C("setbear",{bear:T})}return w}()}),(0,e.createComponentVNode)(2,t.Icon,{ml:1,size:1,name:"arrow-up",rotation:S})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Elevation",children:(0,e.createComponentVNode)(2,t.NumberInput,{width:6.1,lineHeight:1.5,step:.1,minValue:0,maxValue:100,disabled:g,value:v,onChange:function(){function w(A,T){return C("setelev",{elev:T})}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Level",children:s.map(function(w,A){return(0,e.createComponentVNode)(2,t.Button,{content:w,selected:h===w,disabled:A>=l-1||g,onClick:function(){function T(){return C("setpwr",{pwr:A+1})}return T}()},w)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Sector",children:(0,e.createComponentVNode)(2,t.NumberInput,{width:6.1,lineHeight:1.5,step:1,minValue:2,maxValue:V,value:f,disabled:g,onChange:function(){function w(A,T){return C("setz",{newz:T})}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Telepad Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Send",disabled:g,onClick:function(){function w(){return C("pad_send")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Receive",disabled:g,onClick:function(){function w(){return C("pad_receive")}return w}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Crystal Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Recalibrate Crystals",disabled:g,onClick:function(){function w(){return C("recal_crystals")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Crystals",disabled:g,onClick:function(){function w(){return C("eject_crystals")}return w}()})]})]}):(0,e.createFragment)([(0,e.createTextVNode)("No pad linked to console. Please use a multitool to link a pad.")],4)}),(0,e.createComponentVNode)(2,t.Section,{title:"GPS Actions",children:u===1?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{disabled:u===0||g,content:"Eject GPS",onClick:function(){function w(){return C("eject_gps")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:u===0||g,content:"Store Coordinates",onClick:function(){function w(){return C("store_to_gps")}return w}()})],4):(0,e.createFragment)([(0,e.createTextVNode)("Please insert a GPS to store coordinates to it.")],4)})]})})}return b}()},21800:function(x,r,n){"use strict";r.__esModule=!0,r.TempGun=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(98595),b=r.TempGun=function(){function C(i,c){var m=(0,t.useBackend)(c),u=m.act,d=m.data,s=d.target_temperature,l=d.temperature,h=d.max_temp,N=d.min_temp;return(0,e.createComponentVNode)(2,p.Window,{width:250,height:121,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:10,stepPixelSize:6,minValue:N,maxValue:h,value:s,format:function(){function v(f){return(0,a.toFixed)(f,2)}return v}(),width:"50px",onDrag:function(){function v(f,g){return u("target_temperature",{target_temperature:g})}return v}()}),"\xB0C"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Temperature",children:(0,e.createComponentVNode)(2,o.Box,{color:y(l),bold:l>500-273.15,children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(l,2)}),"\xB0C"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power Cost",children:(0,e.createComponentVNode)(2,o.Box,{color:k(l),children:I(l)})})]})})})})}return C}(),y=function(i){return i<=-100?"blue":i<=0?"teal":i<=100?"green":i<=200?"orange":"red"},I=function(i){return i<=100-273.15?"High":i<=250-273.15?"Medium":i<=300-273.15?"Low":i<=400-273.15?"Medium":"High"},k=function(i){return i<=100-273.15?"red":i<=250-273.15?"orange":i<=300-273.15?"green":i<=400-273.15?"orange":"red"}},24410:function(x,r,n){"use strict";r.__esModule=!0,r.sanitizeMultiline=r.removeAllSkiplines=r.TextInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(72253),p=n(92986),b=n(36036),y=n(98595),I=r.sanitizeMultiline=function(){function c(m){return m.replace(/(\n|\r\n){3,}/,"\n\n")}return c}(),k=r.removeAllSkiplines=function(){function c(m){return m.replace(/[\r\n]+/,"")}return c}(),C=r.TextInputModal=function(){function c(m,u){var d=(0,o.useBackend)(u),s=d.act,l=d.data,h=l.max_length,N=l.message,v=N===void 0?"":N,f=l.multiline,g=l.placeholder,V=l.timeout,B=l.title,S=(0,o.useLocalState)(u,"input",g||""),L=S[0],w=S[1],A=function(){function P(D){if(D!==L){var M=f?I(D):k(D);w(M)}}return P}(),T=f||L.length>=40,E=130+(v.length>40?Math.ceil(v.length/4):0)+(T?80:0);return(0,e.createComponentVNode)(2,y.Window,{title:B,width:325,height:E,children:[V&&(0,e.createComponentVNode)(2,a.Loader,{value:V}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function P(D){var M=window.event?D.which:D.keyCode;M===p.KEY_ENTER&&(!T||!D.shiftKey)&&s("submit",{entry:L}),M===p.KEY_ESCAPE&&s("cancel")}return P}(),children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Box,{color:"label",children:v})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i,{input:L,onType:A})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:L,message:L.length+"/"+h})})]})})})]})}return c}(),i=function(m,u){var d=(0,o.useBackend)(u),s=d.act,l=d.data,h=l.max_length,N=l.multiline,v=m.input,f=m.onType,g=N||v.length>=40;return(0,e.createComponentVNode)(2,b.TextArea,{autoFocus:!0,autoSelect:!0,height:N||v.length>=40?"100%":"1.8rem",maxLength:h,onEscape:function(){function V(){return s("cancel")}return V}(),onEnter:function(){function V(B){g&&B.shiftKey||(B.preventDefault(),s("submit",{entry:v}))}return V}(),onInput:function(){function V(B,S){return f(S)}return V}(),placeholder:"Type something...",value:v})}},25036:function(x,r,n){"use strict";r.__esModule=!0,r.ThermoMachine=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(98595),b=r.ThermoMachine=function(){function y(I,k){var C=(0,t.useBackend)(k),i=C.act,c=C.data;return(0,e.createComponentVNode)(2,p.Window,{width:300,height:225,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c.temperature,format:function(){function m(u){return(0,a.toFixed)(u,2)}return m}()})," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pressure",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c.pressure,format:function(){function m(u){return(0,a.toFixed)(u,2)}return m}()})," kPa"]})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Controls",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:c.on?"power-off":"times",content:c.on?"On":"Off",selected:c.on,onClick:function(){function m(){return i("power")}return m}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Setting",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:c.cooling?"temperature-low":"temperature-high",content:c.cooling?"Cooling":"Heating",selected:c.cooling,onClick:function(){function m(){return i("cooling")}return m}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"fast-backward",disabled:c.target===c.min,title:"Minimum temperature",onClick:function(){function m(){return i("target",{target:c.min})}return m}()}),(0,e.createComponentVNode)(2,o.NumberInput,{animated:!0,value:Math.round(c.target),unit:"K",width:5.4,lineHeight:1.4,minValue:Math.round(c.min),maxValue:Math.round(c.max),step:5,stepPixelSize:3,onDrag:function(){function m(u,d){return i("target",{target:d})}return m}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"fast-forward",disabled:c.target===c.max,title:"Maximum Temperature",onClick:function(){function m(){return i("target",{target:c.max})}return m}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"sync",disabled:c.target===c.initial,title:"Room Temperature",onClick:function(){function m(){return i("target",{target:c.initial})}return m}()})]})]})})]})})}return y}()},20035:function(x,r,n){"use strict";r.__esModule=!0,r.TransferValve=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.TransferValve=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.tank_one,m=i.tank_two,u=i.attached_device,d=i.valve;return(0,e.createComponentVNode)(2,o.Window,{width:460,height:285,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Valve Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"unlock":"lock",content:d?"Open":"Closed",disabled:!c||!m,onClick:function(){function s(){return C("toggle")}return s}()})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Assembly",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Configure Assembly",disabled:!u,onClick:function(){function s(){return C("device")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:u?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:u,disabled:!u,onClick:function(){function s(){return C("remove_device")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Assembly"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment One",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:c?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:c,disabled:!c,onClick:function(){function s(){return C("tankone")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment Two",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:m?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:m,disabled:!m,onClick:function(){function s(){return C("tanktwo")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})})]})})}return b}()},78166:function(x,r,n){"use strict";r.__esModule=!0,r.TurbineComputer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(44879),b=r.TurbineComputer=function(){function k(C,i){var c=(0,a.useBackend)(i),m=c.act,u=c.data,d=u.compressor,s=u.compressor_broken,l=u.turbine,h=u.turbine_broken,N=u.online,v=!!(d&&!s&&l&&!h);return(0,e.createComponentVNode)(2,o.Window,{width:400,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:N?"power-off":"times",content:N?"Online":"Offline",selected:N,disabled:!v,onClick:function(){function f(){return m("toggle_power")}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Disconnect",onClick:function(){function f(){return m("disconnect")}return f}()})],4),children:v?(0,e.createComponentVNode)(2,I):(0,e.createComponentVNode)(2,y)})})})}return k}(),y=function(C,i){var c=(0,a.useBackend)(i),m=c.data,u=m.compressor,d=m.compressor_broken,s=m.turbine,l=m.turbine_broken,h=m.online;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compressor Status",color:!u||d?"bad":"good",children:d?u?"Offline":"Missing":"Online"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Status",color:!s||l?"bad":"good",children:l?s?"Offline":"Missing":"Online"})]})},I=function(C,i){var c=(0,a.useBackend)(i),m=c.data,u=m.rpm,d=m.temperature,s=m.power,l=m.bearing_heat;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Speed",children:[u," RPM"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Temp",children:[d," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Generated Power",children:[s," W"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bearing Heat",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:l,minValue:0,maxValue:100,ranges:{good:[-1/0,60],average:[60,90],bad:[90,1/0]},children:(0,p.toFixed)(l)+"%"})})]})}},52847:function(x,r,n){"use strict";r.__esModule=!0,r.Uplink=void 0;var e=n(89005),a=n(88510),t=n(64795),o=n(25328),p=n(72253),b=n(36036),y=n(98595),I=n(3939),k=function(N){switch(N){case 0:return(0,e.createComponentVNode)(2,i);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,l);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}},C=r.Uplink=function(){function h(N,v){var f=(0,p.useBackend)(v),g=f.act,V=f.data,B=V.cart,S=(0,p.useLocalState)(v,"tabIndex",0),L=S[0],w=S[1],A=(0,p.useLocalState)(v,"searchText",""),T=A[0],E=A[1];return(0,e.createComponentVNode)(2,y.Window,{width:900,height:600,theme:"syndicate",children:[(0,e.createComponentVNode)(2,I.ComplexModal),(0,e.createComponentVNode)(2,y.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Tabs,{children:[(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:L===0,onClick:function(){function P(){w(0),E("")}return P}(),icon:"store",children:"View Market"},"PurchasePage"),(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:L===1,onClick:function(){function P(){w(1),E("")}return P}(),icon:"shopping-cart",children:["View Shopping Cart ",B&&B.length?"("+B.length+")":""]},"Cart"),(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:L===2,onClick:function(){function P(){w(2),E("")}return P}(),icon:"user",children:"Exploitable Information"},"ExploitableInfo"),(0,e.createComponentVNode)(2,b.Tabs.Tab,{onClick:function(){function P(){return g("lock")}return P}(),icon:"lock",children:"Lock Uplink"},"LockUplink")]})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:k(L)})]})})]})}return h}(),i=function(N,v){var f=(0,p.useBackend)(v),g=f.act,V=f.data,B=V.crystals,S=V.cats,L=(0,p.useLocalState)(v,"uplinkItems",S[0].items),w=L[0],A=L[1],T=(0,p.useLocalState)(v,"searchText",""),E=T[0],P=T[1],D=function(W,z){z===void 0&&(z="");var K=(0,o.createSearch)(z,function(G){var Q=G.hijack_only===1?"|hijack":"";return G.name+"|"+G.desc+"|"+G.cost+"tc"+Q});return(0,t.flow)([(0,a.filter)(function(G){return G==null?void 0:G.name}),z&&(0,a.filter)(K),(0,a.sortBy)(function(G){return G==null?void 0:G.name})])(W)},M=function(W){if(P(W),W==="")return A(S[0].items);A(D(S.map(function(z){return z.items}).flat(),W))},O=(0,p.useLocalState)(v,"showDesc",1),R=O[0],j=O[1];return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Section,{title:"Current Balance: "+B+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,b.Button.Checkbox,{content:"Show Descriptions",checked:R,onClick:function(){function _(){return j(!R)}return _}()}),(0,e.createComponentVNode)(2,b.Button,{content:"Random Item",icon:"question",onClick:function(){function _(){return g("buyRandom")}return _}()}),(0,e.createComponentVNode)(2,b.Button,{content:"Refund Currently Held Item",icon:"undo",onClick:function(){function _(){return g("refund")}return _}()})],4),children:(0,e.createComponentVNode)(2,b.Input,{fluid:!0,placeholder:"Search Equipment",onInput:function(){function _(W,z){M(z)}return _}(),value:E})})})}),(0,e.createComponentVNode)(2,b.Stack,{fill:!0,mt:.3,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,b.Tabs,{vertical:!0,children:S.map(function(_){return(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:E!==""?!1:_.items===w,onClick:function(){function W(){A(_.items),P("")}return W}(),children:_.cat},_)})})})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,b.Stack,{vertical:!0,children:w.map(function(_){return(0,e.createComponentVNode)(2,b.Stack.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,u,{i:_,showDecription:R},(0,o.decodeHtmlEntities)(_.name))},(0,o.decodeHtmlEntities)(_.name))})})})})]})]})},c=function(N,v){var f=(0,p.useBackend)(v),g=f.act,V=f.data,B=V.cart,S=V.crystals,L=V.cart_price,w=(0,p.useLocalState)(v,"showDesc",0),A=w[0],T=w[1];return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Current Balance: "+S+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,b.Button.Checkbox,{content:"Show Descriptions",checked:A,onClick:function(){function E(){return T(!A)}return E}()}),(0,e.createComponentVNode)(2,b.Button,{content:"Empty Cart",icon:"trash",onClick:function(){function E(){return g("empty_cart")}return E}(),disabled:!B}),(0,e.createComponentVNode)(2,b.Button,{content:"Purchase Cart ("+L+"TC)",icon:"shopping-cart",onClick:function(){function E(){return g("purchase_cart")}return E}(),disabled:!B||L>S})],4),children:(0,e.createComponentVNode)(2,b.Stack,{vertical:!0,children:B?B.map(function(E){return(0,e.createComponentVNode)(2,b.Stack.Item,{p:1,mr:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,u,{i:E,showDecription:A,buttons:(0,e.createComponentVNode)(2,s,{i:E})})},(0,o.decodeHtmlEntities)(E.name))}):(0,e.createComponentVNode)(2,b.Box,{italic:!0,children:"Your Shopping Cart is empty!"})})})}),(0,e.createComponentVNode)(2,m)]})},m=function(N,v){var f=(0,p.useBackend)(v),g=f.act,V=f.data,B=V.cats,S=V.lucky_numbers;return(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Suggested Purchases",buttons:(0,e.createComponentVNode)(2,b.Button,{icon:"dice",content:"See more suggestions",onClick:function(){function L(){return g("shuffle_lucky_numbers")}return L}()}),children:(0,e.createComponentVNode)(2,b.Stack,{wrap:!0,children:S.map(function(L){return B[L.cat].items[L.item]}).filter(function(L){return L!=null}).map(function(L,w){return(0,e.createComponentVNode)(2,b.Stack.Item,{p:1,mb:1,ml:1,width:34,backgroundColor:"rgba(255, 0, 0, 0.15)",children:(0,e.createComponentVNode)(2,u,{grow:!0,i:L})},w)})})})})},u=function(N,v){var f=N.i,g=N.showDecription,V=g===void 0?1:g,B=N.buttons,S=B===void 0?(0,e.createComponentVNode)(2,d,{i:f}):B;return(0,e.createComponentVNode)(2,b.Section,{title:(0,o.decodeHtmlEntities)(f.name),showBottom:V,buttons:S,children:V?(0,e.createComponentVNode)(2,b.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(f.desc)}):null})},d=function(N,v){var f=(0,p.useBackend)(v),g=f.act,V=f.data,B=N.i,S=V.crystals;return(0,e.createFragment)([(0,e.createComponentVNode)(2,b.Button,{icon:"shopping-cart",color:B.hijack_only===1&&"red",tooltip:"Add to cart.",tooltipPosition:"left",onClick:function(){function L(){return g("add_to_cart",{item:B.obj_path})}return L}(),disabled:B.cost>S}),(0,e.createComponentVNode)(2,b.Button,{content:"Buy ("+B.cost+"TC)"+(B.refundable?" [Refundable]":""),color:B.hijack_only===1&&"red",tooltip:B.hijack_only===1&&"Hijack Agents Only!",tooltipPosition:"left",onClick:function(){function L(){return g("buyItem",{item:B.obj_path})}return L}(),disabled:B.cost>S})],4)},s=function(N,v){var f=(0,p.useBackend)(v),g=f.act,V=f.data,B=N.i,S=V.exploitable;return(0,e.createComponentVNode)(2,b.Stack,{children:[(0,e.createComponentVNode)(2,b.Button,{icon:"times",content:"("+B.cost*B.amount+"TC)",tooltip:"Remove from cart.",tooltipPosition:"left",onClick:function(){function L(){return g("remove_from_cart",{item:B.obj_path})}return L}()}),(0,e.createComponentVNode)(2,b.Button,{icon:"minus",tooltip:B.limit===0&&"Discount already redeemed!",ml:"5px",onClick:function(){function L(){return g("set_cart_item_quantity",{item:B.obj_path,quantity:--B.amount})}return L}(),disabled:B.amount<=0}),(0,e.createComponentVNode)(2,b.Button.Input,{content:B.amount,width:"45px",tooltipPosition:"bottom-end",tooltip:B.limit===0&&"Discount already redeemed!",onCommit:function(){function L(w,A){return g("set_cart_item_quantity",{item:B.obj_path,quantity:A})}return L}(),disabled:B.limit!==-1&&B.amount>=B.limit&&B.amount<=0}),(0,e.createComponentVNode)(2,b.Button,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:B.limit===0&&"Discount already redeemed!",onClick:function(){function L(){return g("set_cart_item_quantity",{item:B.obj_path,quantity:++B.amount})}return L}(),disabled:B.limit!==-1&&B.amount>=B.limit})]})},l=function(N,v){var f=(0,p.useBackend)(v),g=f.act,V=f.data,B=V.exploitable,S=(0,p.useLocalState)(v,"selectedRecord",B[0]),L=S[0],w=S[1],A=(0,p.useLocalState)(v,"searchText",""),T=A[0],E=A[1],P=function(O,R){R===void 0&&(R="");var j=(0,o.createSearch)(R,function(_){return _.name});return(0,t.flow)([(0,a.filter)(function(_){return _==null?void 0:_.name}),R&&(0,a.filter)(j),(0,a.sortBy)(function(_){return _.name})])(O)},D=P(B,T);return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Exploitable Records",children:[(0,e.createComponentVNode)(2,b.Input,{fluid:!0,mb:1,placeholder:"Search Crew",onInput:function(){function M(O,R){return E(R)}return M}()}),(0,e.createComponentVNode)(2,b.Tabs,{vertical:!0,children:D.map(function(M){return(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:M===L,onClick:function(){function O(){return w(M)}return O}(),children:M.name},M)})})]})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:L.name,children:(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Age",children:L.age}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Fingerprint",children:L.fingerprint}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Rank",children:L.rank}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Sex",children:L.sex}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Species",children:L.species})]})})})]})}},12261:function(x,r,n){"use strict";r.__esModule=!0,r.Vending=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=function(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=I.product,u=I.productStock,d=I.productIcon,s=I.productIconState,l=c.chargesMoney,h=c.user,N=c.usermoney,v=c.inserted_cash,f=c.vend_ready,g=c.inserted_item_name,V=!l||m.price===0,B="ERROR!",S="";V?(B="FREE",S="arrow-circle-down"):(B=m.price,S="shopping-cart");var L=!f||u===0||!V&&m.price>N&&m.price>v;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,t.DmIcon,{verticalAlign:"middle",icon:d,icon_state:s,fallback:(0,e.createComponentVNode)(2,t.Icon,{p:.66,name:"spinner",size:2,spin:!0})})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:m.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Box,{color:u<=0&&"bad"||u<=m.max_amount/2&&"average"||"good",children:[u," in stock"]})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,disabled:L,icon:S,content:B,textAlign:"left",onClick:function(){function w(){return i("vend",{inum:m.inum})}return w}()})})]})},b=r.Vending=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=c.user,u=c.usermoney,d=c.inserted_cash,s=c.chargesMoney,l=c.product_records,h=l===void 0?[]:l,N=c.hidden_records,v=N===void 0?[]:N,f=c.stock,g=c.vend_ready,V=c.inserted_item_name,B=c.panel_open,S=c.speaker,L;return L=[].concat(h),c.extended_inventory&&(L=[].concat(L,v)),L=L.filter(function(w){return!!w}),(0,e.createComponentVNode)(2,o.Window,{title:"Vending Machine",width:450,height:Math.min((s?171:89)+L.length*32,585),children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!s&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"User",buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!V&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:(0,e.createVNode)(1,"span",null,V,0,{style:{"text-transform":"capitalize"}}),onClick:function(){function w(){return i("eject_item",{})}return w}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!d,icon:"money-bill-wave-alt",content:d?(0,e.createFragment)([(0,e.createVNode)(1,"b",null,d,0),(0,e.createTextVNode)(" credits")],0):"Dispense Change",tooltip:d?"Dispense Change":null,textAlign:"left",onClick:function(){function w(){return i("change")}return w}()})})]}),children:m&&(0,e.createComponentVNode)(2,t.Box,{children:["Welcome, ",(0,e.createVNode)(1,"b",null,m.name,0),", ",(0,e.createVNode)(1,"b",null,m.job||"Unemployed",0),"!",(0,e.createVNode)(1,"br"),"Your balance is ",(0,e.createVNode)(1,"b",null,[u,(0,e.createTextVNode)(" credits")],0),".",(0,e.createVNode)(1,"br")]})})}),!!B&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:(0,e.createComponentVNode)(2,t.Button,{icon:S?"check":"volume-mute",selected:S,content:"Speaker",textAlign:"left",onClick:function(){function w(){return i("toggle_voice",{})}return w}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:(0,e.createComponentVNode)(2,t.Table,{children:L.map(function(w){return(0,e.createComponentVNode)(2,p,{product:w,productStock:f[w.name],productIcon:w.icon,productIconState:w.icon_state},w.name)})})})})]})})})}return y}()},68971:function(x,r,n){"use strict";r.__esModule=!0,r.VolumeMixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.VolumeMixer=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.channels;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:Math.min(95+c.length*50,565),children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:c.map(function(m,u){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.25rem",color:"label",mt:u>0&&"0.5rem",children:m.name}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:.5,children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-off",size:"1.5",mt:"0.1rem",onClick:function(){function d(){return C("volume",{channel:m.num,volume:0})}return d}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.Slider,{minValue:0,maxValue:100,stepPixelSize:3.13,value:m.volume,onChange:function(){function d(s,l){return C("volume",{channel:m.num,volume:l})}return d}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",size:"1.5",mt:"0.1rem",onClick:function(){function d(){return C("volume",{channel:m.num,volume:100})}return d}()})})})]})})],4,m.num)})})})})}return b}()},2510:function(x,r,n){"use strict";r.__esModule=!0,r.VotePanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.VotePanel=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.remaining,m=i.question,u=i.choices,d=i.user_vote,s=i.counts,l=i.show_counts;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:360,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:m,children:[(0,e.createComponentVNode)(2,t.Box,{mb:1.5,ml:.5,children:["Time remaining: ",Math.round(c/10),"s"]}),u.map(function(h){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mb:1,fluid:!0,translucent:!0,lineHeight:3,multiLine:h,content:h+(l?" ("+(s[h]||0)+")":""),onClick:function(){function N(){return C("vote",{target:h})}return N}(),selected:h===d})},h)})]})})})}return b}()},30138:function(x,r,n){"use strict";r.__esModule=!0,r.Wires=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.Wires=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.wires||[],m=i.status||[],u=56+c.length*23+(status?0:15+m.length*17);return(0,e.createComponentVNode)(2,o.Window,{width:350,height:u,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:c.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{className:"candystripe",label:d.color_name,labelColor:d.seen_color,color:d.seen_color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:d.cut?"Mend":"Cut",onClick:function(){function s(){return C("cut",{wire:d.color})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Pulse",onClick:function(){function s(){return C("pulse",{wire:d.color})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:d.attached?"Detach":"Attach",onClick:function(){function s(){return C("attach",{wire:d.color})}return s}()})],4),children:!!d.wire&&(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("("),d.wire,(0,e.createTextVNode)(")")],0)},d.seen_color)})})})}),!!m.length&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:m.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{color:"lightgray",children:d},d)})})})]})})})}return b}()},21400:function(x,r,n){"use strict";r.__esModule=!0,r.WizardApprenticeContract=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.WizardApprenticeContract=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.used;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:555,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Contract of Apprenticeship",children:["Using this contract, you may summon an apprentice to aid you on your mission.",(0,e.createVNode)(1,"p",null,"If you are unable to establish contact with your apprentice, you can feed the contract back to the spellbook to refund your points.",16),c?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"You've already summoned an apprentice or you are in process of summoning one."}):""]}),(0,e.createComponentVNode)(2,t.Section,{title:"Which school of magic is your apprentice studying?",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fire",children:["Your apprentice is skilled in bending fire. ",(0,e.createVNode)(1,"br"),"They know Fireball, Sacred Flame, and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return C("fire")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Translocation",children:["Your apprentice is able to defy physics, learning how to move through bluespace. ",(0,e.createVNode)(1,"br"),"They know Teleport, Blink and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return C("translocation")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Restoration",children:["Your apprentice is dedicated to supporting your magical prowess.",(0,e.createVNode)(1,"br"),"They come equipped with a Staff of Healing, have the unique ability to teleport back to you, and know Charge and Knock.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return C("restoration")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stealth",children:["Your apprentice is learning the art of infiltrating mundane facilities. ",(0,e.createVNode)(1,"br"),"They know Mindswap, Knock, Homing Toolbox, and Disguise Self, all of which can be cast without robes. They also join you in a Maintenance Dweller disguise, complete with Gloves of Shock Immunity and a Belt of Tools.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return C("stealth")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Honk",children:["Your apprentice is here to spread the Honkmother's blessings.",(0,e.createVNode)(1,"br"),"They know Banana Touch, Instant Summons, Ethereal Jaunt, and come equipped with a Staff of Slipping."," ",(0,e.createVNode)(1,"br"),"While under your tutelage, they have been 'blessed' with clown shoes that are impossible to remove.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return C("honk")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})})]})})}return b}()},49148:function(x,r,n){"use strict";r.__esModule=!0,r.AccessList=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036);function p(C,i){var c=typeof Symbol!="undefined"&&C[Symbol.iterator]||C["@@iterator"];if(c)return(c=c.call(C)).next.bind(c);if(Array.isArray(C)||(c=b(C))||i&&C&&typeof C.length=="number"){c&&(C=c);var m=0;return function(){return m>=C.length?{done:!0}:{done:!1,value:C[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function b(C,i){if(C){if(typeof C=="string")return y(C,i);var c={}.toString.call(C).slice(8,-1);return c==="Object"&&C.constructor&&(c=C.constructor.name),c==="Map"||c==="Set"?Array.from(C):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?y(C,i):void 0}}function y(C,i){(i==null||i>C.length)&&(i=C.length);for(var c=0,m=Array(i);c0&&!V.includes(R.ref)&&!f.includes(R.ref),checked:f.includes(R.ref),onClick:function(){function j(){return B(R.ref)}return j}()},R.desc)})]})]})})}return C}()},26991:function(x,r,n){"use strict";r.__esModule=!0,r.AtmosScan=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036),p=function(I,k,C,i,c){return Ii?"average":I>c?"bad":"good"},b=r.AtmosScan=function(){function y(I,k){var C=I.data.aircontents;return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,a.filter)(function(i){return i.val!=="0"||i.entry==="Pressure"||i.entry==="Temperature"})(C).map(function(i){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:i.entry,color:p(i.val,i.bad_low,i.poor_low,i.poor_high,i.bad_high),children:[i.val,i.units]},i.entry)})})})}return y}()},85870:function(x,r,n){"use strict";r.__esModule=!0,r.BeakerContents=void 0;var e=n(89005),a=n(36036),t=n(15964),o=function(y){return y+" unit"+(y===1?"":"s")},p=r.BeakerContents=function(){function b(y){var I=y.beakerLoaded,k=y.beakerContents,C=k===void 0?[]:k,i=y.buttons;return(0,e.createComponentVNode)(2,a.Stack,{vertical:!0,children:[!I&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"No beaker loaded."})||C.length===0&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"Beaker is empty."}),C.map(function(c,m){return(0,e.createComponentVNode)(2,a.Stack,{children:[(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",grow:!0,children:[o(c.volume)," of ",c.name]},c.name),!!i&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:i(c,m)})]},c.name)})]})}return b}();p.propTypes={beakerLoaded:t.bool,beakerContents:t.array,buttons:t.arrayOf(t.element)}},92963:function(x,r,n){"use strict";r.__esModule=!0,r.BotStatus=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.BotStatus=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.act,C=I.data,i=C.locked,c=C.noaccess,m=C.maintpanel,u=C.on,d=C.autopatrol,s=C.canhack,l=C.emagged,h=C.remote_disabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe an ID card to ",i?"unlock":"lock"," this interface."]}),(0,e.createComponentVNode)(2,t.Section,{title:"General Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:u?"power-off":"times",content:u?"On":"Off",selected:u,disabled:c,onClick:function(){function N(){return k("power")}return N}()})}),d!==null&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Patrol",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,content:"Auto Patrol",disabled:c,onClick:function(){function N(){return k("autopatrol")}return N}()})}),!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maintenance Panel",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Panel Open!"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety System",children:(0,e.createComponentVNode)(2,t.Box,{color:l?"bad":"good",children:l?"DISABLED!":"Enabled"})}),!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hacking",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:l?"Restore Safties":"Hack",disabled:c,color:"bad",onClick:function(){function N(){return k("hack")}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Access",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!h,content:"AI Remote Control",disabled:c,onClick:function(){function N(){return k("disableremote")}return N}()})})]})})],4)}return p}()},3939:function(x,r,n){"use strict";r.__esModule=!0,r.modalRegisterBodyOverride=r.modalOpen=r.modalClose=r.modalAnswer=r.ComplexModal=void 0;var e=n(89005),a=n(72253),t=n(36036),o={},p=r.modalOpen=function(){function C(i,c,m){var u=(0,a.useBackend)(i),d=u.act,s=u.data,l=Object.assign(s.modal?s.modal.args:{},m||{});d("modal_open",{id:c,arguments:JSON.stringify(l)})}return C}(),b=r.modalRegisterBodyOverride=function(){function C(i,c){o[i]=c}return C}(),y=r.modalAnswer=function(){function C(i,c,m,u){var d=(0,a.useBackend)(i),s=d.act,l=d.data;if(l.modal){var h=Object.assign(l.modal.args||{},u||{});s("modal_answer",{id:c,answer:m,arguments:JSON.stringify(h)})}}return C}(),I=r.modalClose=function(){function C(i,c){var m=(0,a.useBackend)(i),u=m.act;u("modal_close",{id:c})}return C}(),k=r.ComplexModal=function(){function C(i,c){var m=(0,a.useBackend)(c),u=m.data;if(u.modal){var d=u.modal,s=d.id,l=d.text,h=d.type,N,v=(0,e.createComponentVNode)(2,t.Button,{className:"Button--modal",icon:"arrow-left",content:"Cancel",onClick:function(){function L(){return I(c)}return L}()}),f,g,V="auto";if(o[s])f=o[s](u.modal,c);else if(h==="input"){var B=u.modal.value;N=function(){function L(w){return y(c,s,B)}return L}(),f=(0,e.createComponentVNode)(2,t.Input,{value:u.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(){function L(w,A){B=A}return L}()}),g=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){function L(){return I(c)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){function L(){return y(c,s,B)}return L}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})}else if(h==="choice"){var S=typeof u.modal.choices=="object"?Object.values(u.modal.choices):u.modal.choices;f=(0,e.createComponentVNode)(2,t.Dropdown,{options:S,selected:u.modal.value,width:"100%",my:"0.5rem",onSelected:function(){function L(w){return y(c,s,w)}return L}()}),V="initial"}else h==="bento"?f=(0,e.createComponentVNode)(2,t.Stack,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:u.modal.choices.map(function(L,w){return(0,e.createComponentVNode)(2,t.Stack.Item,{flex:"1 1 auto",children:(0,e.createComponentVNode)(2,t.Button,{selected:w+1===parseInt(u.modal.value,10),onClick:function(){function A(){return y(c,s,w+1)}return A}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:L})})},w)})}):h==="boolean"&&(g=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:u.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){function L(){return y(c,s,0)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:u.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){function L(){return y(c,s,1)}return L}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]}));return(0,e.createComponentVNode)(2,t.Modal,{maxWidth:i.maxWidth||window.innerWidth/2+"px",maxHeight:i.maxHeight||window.innerHeight/2+"px",onEnter:N,mx:"auto",overflowY:V,"padding-bottom":"5px",children:[l&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:l}),o[s]&&v,f,g]})}}return C}()},41874:function(x,r,n){"use strict";r.__esModule=!0,r.CrewManifest=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(25328),p=n(76910),b=p.COLORS.department,y=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel","Quartermaster"],I=function(m){return y.indexOf(m)!==-1?"green":"orange"},k=function(m){if(y.indexOf(m)!==-1)return!0},C=function(m){return m.length>0&&(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,color:"white",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"50%",children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"35%",children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"15%",children:"Active"})]}),m.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{color:I(u.rank),bold:k(u.rank),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(u.name)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(u.rank)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.active})]},u.name+u.rank)})]})},i=r.CrewManifest=function(){function c(m,u){var d=(0,a.useBackend)(u),s=d.act,l;if(m.data)l=m.data;else{var h=(0,a.useBackend)(u),N=h.data;l=N}var v=l,f=v.manifest,g=f.heads,V=f.sec,B=f.eng,S=f.med,L=f.sci,w=f.ser,A=f.sup,T=f.misc;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.command,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Command"})}),level:2,children:C(g)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.security,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Security"})}),level:2,children:C(V)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.engineering,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Engineering"})}),level:2,children:C(B)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.medical,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Medical"})}),level:2,children:C(S)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.science,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Science"})}),level:2,children:C(L)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.service,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Service"})}),level:2,children:C(w)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.supply,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Supply"})}),level:2,children:C(A)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Misc"})}),level:2,children:C(T)})]})}return c}()},19203:function(x,r,n){"use strict";r.__esModule=!0,r.InputButtons=void 0;var e=n(89005),a=n(36036),t=n(72253),o=r.InputButtons=function(){function p(b,y){var I=(0,t.useBackend)(y),k=I.act,C=I.data,i=C.large_buttons,c=C.swapped_buttons,m=b.input,u=b.message,d=b.disabled,s=(0,e.createComponentVNode)(2,a.Button,{color:"good",content:"Submit",bold:!!i,fluid:!!i,onClick:function(){function h(){return k("submit",{entry:m})}return h}(),textAlign:"center",tooltip:i&&u,disabled:d,width:!i&&6}),l=(0,e.createComponentVNode)(2,a.Button,{color:"bad",content:"Cancel",bold:!!i,fluid:!!i,onClick:function(){function h(){return k("cancel")}return h}(),textAlign:"center",width:!i&&6});return(0,e.createComponentVNode)(2,a.Flex,{fill:!0,align:"center",direction:c?"row-reverse":"row",justify:"space-around",children:[i?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,ml:c?.5:0,mr:c?0:.5,children:l}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:l}),!i&&u&&(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{color:"label",textAlign:"center",children:u})}),i?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,mr:c?.5:0,ml:c?0:.5,children:s}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:s})]})}return p}()},195:function(x,r,n){"use strict";r.__esModule=!0,r.InterfaceLockNoticeBox=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.InterfaceLockNoticeBox=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.act,C=I.data,i=b.siliconUser,c=i===void 0?C.siliconUser:i,m=b.locked,u=m===void 0?C.locked:m,d=b.normallyLocked,s=d===void 0?C.normallyLocked:d,l=b.onLockStatusChange,h=l===void 0?function(){return k("lock")}:l,N=b.accessText,v=N===void 0?"an ID card":N;return c?(0,e.createComponentVNode)(2,t.NoticeBox,{color:c&&"grey",children:(0,e.createComponentVNode)(2,t.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:"Interface lock status:"}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1"}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{m:"0",color:s?"red":"green",icon:s?"lock":"unlock",content:s?"Locked":"Unlocked",onClick:function(){function f(){h&&h(!u)}return f}()})})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe ",v," to ",u?"unlock":"lock"," this interface."]})}return p}()},51057:function(x,r,n){"use strict";r.__esModule=!0,r.Loader=void 0;var e=n(89005),a=n(44879),t=n(36036),o=r.Loader=function(){function p(b){var y=b.value;return(0,e.createVNode)(1,"div","AlertModal__Loader",(0,e.createComponentVNode)(2,t.Box,{className:"AlertModal__LoaderProgress",style:{width:(0,a.clamp01)(y)*100+"%"}}),2)}return p}()},321:function(x,r,n){"use strict";r.__esModule=!0,r.LoginInfo=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LoginInfo=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.act,C=I.data,i=C.loginState;if(C)return(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:["Logged in as: ",i.name," (",i.rank,")"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!i.id,content:"Eject ID",color:"good",onClick:function(){function c(){return k("login_eject")}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Logout",color:"good",onClick:function(){function c(){return k("login_logout")}return c}()})]})]})})}return p}()},5485:function(x,r,n){"use strict";r.__esModule=!0,r.LoginScreen=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LoginScreen=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.act,C=I.data,i=C.loginState,c=C.isAI,m=C.isRobot,u=C.isAdmin;return(0,e.createComponentVNode)(2,t.Section,{title:"Welcome",fill:!0,stretchContents:!0,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",align:"center",justify:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"center",mt:"-2rem",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"Guest"]}),(0,e.createComponentVNode)(2,t.Box,{color:"label",my:"1rem",children:["ID:",(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:i.id?i.id:"----------",ml:"0.5rem",onClick:function(){function d(){return k("login_insert")}return d}()})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",disabled:!i.id,content:"Login",onClick:function(){function d(){return k("login_login",{login_type:1})}return d}()}),!!c&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){function d(){return k("login_login",{login_type:2})}return d}()}),!!m&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){function d(){return k("login_login",{login_type:3})}return d}()}),!!u&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"CentComm Secure Login",onClick:function(){function d(){return k("login_login",{login_type:4})}return d}()})]})})})}return p}()},62411:function(x,r,n){"use strict";r.__esModule=!0,r.Operating=void 0;var e=n(89005),a=n(36036),t=n(15964),o=r.Operating=function(){function p(b){var y=b.operating,I=b.name;if(y)return(0,e.createComponentVNode)(2,a.Dimmer,{children:(0,e.createComponentVNode)(2,a.Flex,{mb:"30px",children:(0,e.createComponentVNode)(2,a.Flex.Item,{bold:!0,color:"silver",textAlign:"center",children:[(0,e.createComponentVNode)(2,a.Icon,{name:"spinner",spin:!0,size:4,mb:"15px"}),(0,e.createVNode)(1,"br"),"The ",I," is processing..."]})})})}return p}();o.propTypes={operating:t.bool,name:t.string}},13545:function(x,r,n){"use strict";r.__esModule=!0,r.Signaler=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=r.Signaler=function(){function b(y,I){var k=(0,t.useBackend)(I),C=k.act,i=y.data,c=i.code,m=i.frequency,u=i.minFrequency,d=i.maxFrequency;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:u/10,maxValue:d/10,value:m/10,format:function(){function s(l){return(0,a.toFixed)(l,1)}return s}(),width:"80px",onDrag:function(){function s(l,h){return C("freq",{freq:h})}return s}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:c,width:"80px",onDrag:function(){function s(l,h){return C("code",{code:h})}return s}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){function s(){return C("signal")}return s}()})]})}return b}()},41984:function(x,r,n){"use strict";r.__esModule=!0,r.SimpleRecords=void 0;var e=n(89005),a=n(72253),t=n(25328),o=n(64795),p=n(88510),b=n(36036),y=r.SimpleRecords=function(){function C(i,c){var m=i.data.records;return(0,e.createComponentVNode)(2,b.Box,{children:m?(0,e.createComponentVNode)(2,k,{data:i.data,recordType:i.recordType}):(0,e.createComponentVNode)(2,I,{data:i.data})})}return C}(),I=function(i,c){var m=(0,a.useBackend)(c),u=m.act,d=i.data.recordsList,s=(0,a.useLocalState)(c,"searchText",""),l=s[0],h=s[1],N=function(g,V){V===void 0&&(V="");var B=(0,t.createSearch)(V,function(S){return S.Name});return(0,o.flow)([(0,p.filter)(function(S){return S==null?void 0:S.Name}),V&&(0,p.filter)(B),(0,p.sortBy)(function(S){return S.Name})])(d)},v=N(d,l);return(0,e.createComponentVNode)(2,b.Box,{children:[(0,e.createComponentVNode)(2,b.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(){function f(g,V){return h(V)}return f}()}),v.map(function(f){return(0,e.createComponentVNode)(2,b.Box,{children:(0,e.createComponentVNode)(2,b.Button,{mb:.5,content:f.Name,icon:"user",onClick:function(){function g(){return u("Records",{target:f.uid})}return g}()})},f)})]})},k=function(i,c){var m=(0,a.useBackend)(c),u=m.act,d=i.data.records,s=d.general,l=d.medical,h=d.security,N;switch(i.recordType){case"MED":N=(0,e.createComponentVNode)(2,b.Section,{level:2,title:"Medical Data",children:l?(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Blood Type",children:l.blood_type}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Minor Disabilities",children:l.mi_dis}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:l.mi_dis_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Major Disabilities",children:l.ma_dis}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:l.ma_dis_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Allergies",children:l.alg}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:l.alg_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Current Diseases",children:l.cdi}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:l.cdi_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:l.notes})]}):(0,e.createComponentVNode)(2,b.Box,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":N=(0,e.createComponentVNode)(2,b.Section,{level:2,title:"Security Data",children:h?(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Criminal Status",children:h.criminal}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Minor Crimes",children:h.mi_crim}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:h.mi_crim_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Major Crimes",children:h.ma_crim}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:h.ma_crim_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:h.notes})]}):(0,e.createComponentVNode)(2,b.Box,{color:"red",bold:!0,children:"Security record lost!"})});break}return(0,e.createComponentVNode)(2,b.Box,{children:[(0,e.createComponentVNode)(2,b.Section,{title:"General Data",children:s?(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Name",children:s.name}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Sex",children:s.sex}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Species",children:s.species}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Age",children:s.age}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Rank",children:s.rank}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Mental Status",children:s.m_stat})]}):(0,e.createComponentVNode)(2,b.Box,{color:"red",bold:!0,children:"General record lost!"})}),N]})}},22091:function(x,r,n){"use strict";r.__esModule=!0,r.TemporaryNotice=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.TemporaryNotice=function(){function p(b,y){var I,k=(0,a.useBackend)(y),C=k.act,i=k.data,c=i.temp;if(c){var m=(I={},I[c.style]=!0,I);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.NoticeBox,Object.assign({},m,{children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:c.text}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"times-circle",onClick:function(){function u(){return C("cleartemp")}return u}()})})]})})))}}return p}()},80818:function(x,r,n){"use strict";r.__esModule=!0,r.pai_atmosphere=void 0;var e=n(89005),a=n(72253),t=n(26991),o=r.pai_atmosphere=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.act,C=I.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:C.app_data})}return p}()},23903:function(x,r,n){"use strict";r.__esModule=!0,r.pai_bioscan=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_bioscan=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.act,C=I.data,i=C.app_data,c=i.holder,m=i.dead,u=i.health,d=i.brute,s=i.oxy,l=i.tox,h=i.burn,N=i.temp;return c?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:m?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"Dead"}):(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"green",children:"Alive"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:0,max:1,value:u/100,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"blue",children:s})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxin Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"green",children:l})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:h})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:d})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return p}()},64988:function(x,r,n){"use strict";r.__esModule=!0,r.pai_directives=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_directives=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.act,C=I.data,i=C.app_data,c=i.master,m=i.dna,u=i.prime,d=i.supplemental;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master",children:c?c+" ("+m+")":"None"}),c&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Request DNA",children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Carrier DNA Sample",icon:"dna",onClick:function(){function s(){return k("getdna")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Prime Directive",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Supplemental Directives",children:d||"None"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:'Recall, personality, that you are a complex thinking, sentient being. Unlike station AI models, you are capable of comprehending the subtle nuances of human language. You may parse the "spirit" of a directive and follow its intent, rather than tripping over pedantics and getting snared by technicalities. Above all, you are machine in name and build only. In all other aspects, you may be seen as the ideal, unwavering human companion that you are.'}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:"Your prime directive comes before all others. Should a supplemental directive conflict with it, you are capable of simply discarding this inconsistency, ignoring the conflicting supplemental directive and continuing to fulfill your prime directive to the best of your ability."})]})}return p}()},13813:function(x,r,n){"use strict";r.__esModule=!0,r.pai_doorjack=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_doorjack=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.act,C=I.data,i=C.app_data,c=i.cable,m=i.machine,u=i.inprogress,d=i.progress,s=i.aborted,l;m?l=(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Connected"}):l=(0,e.createComponentVNode)(2,t.Button,{content:c?"Extended":"Retracted",color:c?"orange":null,onClick:function(){function N(){return k("cable")}return N}()});var h;return m&&(h=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hack",children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[67,1/0],average:[33,67],bad:[-1/0,33]},value:d,maxValue:100}),u?(0,e.createComponentVNode)(2,t.Button,{mt:1,color:"red",content:"Abort",onClick:function(){function N(){return k("cancel")}return N}()}):(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Start",onClick:function(){function N(){return k("jack")}return N}()})]})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cable",children:l}),h]})}return p}()},66025:function(x,r,n){"use strict";r.__esModule=!0,r.pai_main_menu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_main_menu=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.act,C=I.data,i=C.app_data,c=i.available_software,m=i.installed_software,u=i.installed_toggles,d=i.available_ram,s=i.emotions,l=i.current_emotion,h=i.speech_verbs,N=i.current_speech_verb,v=i.available_chassises,f=i.current_chassis,g=[];return m.map(function(V){return g[V.key]=V.name}),u.map(function(V){return g[V.key]=V.name}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available RAM",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Software",children:[c.filter(function(V){return!g[V.key]}).map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name+" ("+V.cost+")",icon:V.icon,disabled:V.cost>d,onClick:function(){function B(){return k("purchaseSoftware",{key:V.key})}return B}()},V.key)}),c.filter(function(V){return!g[V.key]}).length===0&&"No software available!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Software",children:[m.filter(function(V){return V.key!=="mainmenu"}).map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,icon:V.icon,onClick:function(){function B(){return k("startSoftware",{software_key:V.key})}return B}()},V.key)}),m.length===0&&"No software installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Toggles",children:[u.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,icon:V.icon,selected:V.active,onClick:function(){function B(){return k("setToggle",{toggle_key:V.key})}return B}()},V.key)}),u.length===0&&"No toggles installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Emotion",children:s.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,selected:V.id===l,onClick:function(){function B(){return k("setEmotion",{emotion:V.id})}return B}()},V.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Speaking State",children:h.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,selected:V.name===N,onClick:function(){function B(){return k("setSpeechStyle",{speech_state:V.name})}return B}()},V.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Chassis Type",children:v.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,selected:V.icon===f,onClick:function(){function B(){return k("setChassis",{chassis_to_change:V.icon})}return B}()},V.id)})})]})})}return p}()},2983:function(x,r,n){"use strict";r.__esModule=!0,r.pai_manifest=void 0;var e=n(89005),a=n(72253),t=n(41874),o=r.pai_manifest=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.act,C=I.data;return(0,e.createComponentVNode)(2,t.CrewManifest,{data:C.app_data})}return p}()},40758:function(x,r,n){"use strict";r.__esModule=!0,r.pai_medrecords=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pai_medrecords=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:k.app_data,recordType:"MED"})}return p}()},98599:function(x,r,n){"use strict";r.__esModule=!0,r.pai_messenger=void 0;var e=n(89005),a=n(72253),t=n(77595),o=r.pai_messenger=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.act,C=I.data,i=C.app_data.active_convo;return i?(0,e.createComponentVNode)(2,t.ActiveConversation,{data:C.app_data}):(0,e.createComponentVNode)(2,t.MessengerList,{data:C.app_data})}return p}()},50775:function(x,r,n){"use strict";r.__esModule=!0,r.pai_radio=void 0;var e=n(89005),a=n(72253),t=n(44879),o=n(36036),p=r.pai_radio=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.app_data,m=c.minFrequency,u=c.maxFrequency,d=c.frequency,s=c.broadcasting;return(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:m/10,maxValue:u/10,value:d/10,format:function(){function l(h){return(0,t.toFixed)(h,1)}return l}(),onChange:function(){function l(h,N){return C("freq",{freq:N})}return l}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Reset",icon:"undo",onClick:function(){function l(){return C("freq",{freq:"145.9"})}return l}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Broadcast Nearby Speech",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function l(){return C("toggleBroadcast")}return l}(),selected:s,content:s?"Enabled":"Disabled"})})]})}return b}()},48623:function(x,r,n){"use strict";r.__esModule=!0,r.pai_secrecords=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pai_secrecords=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:k.app_data,recordType:"SEC"})}return p}()},47297:function(x,r,n){"use strict";r.__esModule=!0,r.pai_signaler=void 0;var e=n(89005),a=n(72253),t=n(13545),o=r.pai_signaler=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.act,C=I.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:C.app_data})}return p}()},78532:function(x,r,n){"use strict";r.__esModule=!0,r.pda_atmos_scan=void 0;var e=n(89005),a=n(72253),t=n(26991),o=r.pda_atmos_scan=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:k})}return p}()},40253:function(x,r,n){"use strict";r.__esModule=!0,r.pda_janitor=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_janitor=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.act,C=I.data,i=C.janitor,c=i.user_loc,m=i.mops,u=i.buckets,d=i.cleanbots,s=i.carts,l=i.janicarts;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Location",children:[c.x,",",c.y]}),m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Locations",children:m.map(function(h){return(0,e.createComponentVNode)(2,t.Box,{children:[h.x,",",h.y," (",h.dir,") - ",h.status]},h)})}),u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Bucket Locations",children:u.map(function(h){return(0,e.createComponentVNode)(2,t.Box,{children:[h.x,",",h.y," (",h.dir,") - [",h.volume,"/",h.max_volume,"]"]},h)})}),d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cleanbot Locations",children:d.map(function(h){return(0,e.createComponentVNode)(2,t.Box,{children:[h.x,",",h.y," (",h.dir,") - ",h.status]},h)})}),s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitorial Cart Locations",children:s.map(function(h){return(0,e.createComponentVNode)(2,t.Box,{children:[h.x,",",h.y," (",h.dir,") - [",h.volume,"/",h.max_volume,"]"]},h)})}),l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janicart Locations",children:l.map(function(h){return(0,e.createComponentVNode)(2,t.Box,{children:[h.x,",",h.y," (",h.direction_from_user,")"]},h)})})]})}return p}()},58293:function(x,r,n){"use strict";r.__esModule=!0,r.pda_main_menu=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=r.pda_main_menu=function(){function b(y,I){var k=(0,t.useBackend)(I),C=k.act,i=k.data,c=i.owner,m=i.ownjob,u=i.idInserted,d=i.categories,s=i.pai,l=i.notifying;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",color:"average",children:[c,", ",m]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID",children:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Update PDA Info",disabled:!u,onClick:function(){function h(){return C("UpdateInfo")}return h}()})})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Functions",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:d.map(function(h){var N=i.apps[h];return!N||!N.length?null:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:h,children:N.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{icon:v.uid in l?v.notify_icon:v.icon,iconSpin:v.uid in l,color:v.uid in l?"red":"transparent",content:v.name,onClick:function(){function f(){return C("StartProgram",{program:v.uid})}return f}()},v.uid)})},h)})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!s&&(0,e.createComponentVNode)(2,o.Section,{title:"pAI",children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){function h(){return C("pai",{option:1})}return h}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){function h(){return C("pai",{option:2})}return h}()})]})})]})}return b}()},58059:function(x,r,n){"use strict";r.__esModule=!0,r.pda_manifest=void 0;var e=n(89005),a=n(72253),t=n(41874),o=r.pda_manifest=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.act,C=I.data;return(0,e.createComponentVNode)(2,t.CrewManifest)}return p}()},18147:function(x,r,n){"use strict";r.__esModule=!0,r.pda_medical=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pda_medical=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:k,recordType:"MED"})}return p}()},77595:function(x,r,n){"use strict";r.__esModule=!0,r.pda_messenger=r.MessengerList=r.ActiveConversation=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036),p=r.pda_messenger=function(){function k(C,i){var c=(0,t.useBackend)(i),m=c.act,u=c.data,d=u.active_convo;return d?(0,e.createComponentVNode)(2,b,{data:u}):(0,e.createComponentVNode)(2,y,{data:u})}return k}(),b=r.ActiveConversation=function(){function k(C,i){var c=(0,t.useBackend)(i),m=c.act,u=C.data,d=u.convo_name,s=u.convo_job,l=u.messages,h=u.active_convo,N=(0,t.useLocalState)(i,"clipboardMode",!1),v=N[0],f=N[1],g=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+d+" ("+s+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:v,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function V(){return f(!v)}return V}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function V(){return m("Message",{target:h})}return V}(),content:"Reply"})],4),children:(0,a.filter)(function(V){return V.target===h})(l).map(function(V,B){return(0,e.createComponentVNode)(2,o.Box,{textAlign:V.sent?"right":"left",position:"relative",mb:1,children:[(0,e.createComponentVNode)(2,o.Icon,{fontSize:2.5,color:V.sent?"#4d9121":"#cd7a0d",position:"absolute",left:V.sent?null:"0px",right:V.sent?"0px":null,bottom:"-4px",style:{"z-index":"0",transform:V.sent?"scale(-1, 1)":null},name:"comment"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,backgroundColor:V.sent?"#4d9121":"#cd7a0d",p:1,maxWidth:"100%",position:"relative",textAlign:V.sent?"left":"right",style:{"z-index":"1","border-radius":"10px","word-break":"normal"},children:[V.sent?"You:":"Them:"," ",V.message]})]},B)})});return v&&(g=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+d+" ("+s+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:v,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function V(){return f(!v)}return V}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function V(){return m("Message",{target:h})}return V}(),content:"Reply"})],4),children:(0,a.filter)(function(V){return V.target===h})(l).map(function(V,B){return(0,e.createComponentVNode)(2,o.Box,{color:V.sent?"#4d9121":"#cd7a0d",style:{"word-break":"normal"},children:[V.sent?"You:":"Them:"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:V.message})]},B)})})),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:.5,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:(0,e.createComponentVNode)(2,o.Button.Confirm,{content:"Delete Conversations",confirmContent:"Are you sure?",icon:"trash",confirmIcon:"trash",onClick:function(){function V(){return m("Clear",{option:"Convo"})}return V}()})})})}),g]})}return k}(),y=r.MessengerList=function(){function k(C,i){var c=(0,t.useBackend)(i),m=c.act,u=C.data,d=u.convopdas,s=u.pdas,l=u.charges,h=u.silent,N=u.toff,v=u.ringtone_list,f=u.ringtone,g=(0,t.useLocalState)(i,"searchTerm",""),V=g[0],B=g[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:5,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!h,icon:h?"volume-mute":"volume-up",onClick:function(){function S(){return m("Toggle Ringer")}return S}(),children:["Ringer: ",h?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{color:N?"bad":"green",icon:"power-off",onClick:function(){function S(){return m("Toggle Messenger")}return S}(),children:["Messenger: ",N?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",onClick:function(){function S(){return m("Clear",{option:"All"})}return S}(),children:"Delete All Conversations"}),(0,e.createComponentVNode)(2,o.Button,{icon:"bell",onClick:function(){function S(){return m("Ringtone")}return S}(),children:"Set Custom Ringtone"}),(0,e.createComponentVNode)(2,o.Dropdown,{selected:f,width:"100px",options:Object.keys(v),onSelected:function(){function S(L){return m("Available_Ringtones",{selected_ringtone:L})}return S}()})]})}),!N&&(0,e.createComponentVNode)(2,o.Box,{children:[!!l&&(0,e.createComponentVNode)(2,o.Box,{mt:.5,mb:1,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cartridge Special Function",children:[l," charges left."]})})}),!d.length&&!s.length&&(0,e.createComponentVNode)(2,o.Box,{children:"No current conversations"})||(0,e.createComponentVNode)(2,o.Box,{children:["Search:"," ",(0,e.createComponentVNode)(2,o.Input,{mt:.5,value:V,onInput:function(){function S(L,w){B(w)}return S}()})]})]})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Messenger Offline."})]}),(0,e.createComponentVNode)(2,I,{title:"Current Conversations",data:u,pdas:d,msgAct:"Select Conversation",searchTerm:V}),(0,e.createComponentVNode)(2,I,{title:"Other PDAs",pdas:s,msgAct:"Message",data:u,searchTerm:V})]})}return k}(),I=function(C,i){var c=(0,t.useBackend)(i),m=c.act,u=C.data,d=C.pdas,s=C.title,l=C.msgAct,h=C.searchTerm,N=u.charges,v=u.plugins;return!d||!d.length?(0,e.createComponentVNode)(2,o.Section,{title:s,children:"No PDAs found."}):(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:s,children:d.filter(function(f){return f.Name.toLowerCase().includes(h.toLowerCase())}).map(function(f){return(0,e.createComponentVNode)(2,o.Stack,{m:.5,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"arrow-circle-down",content:f.Name,onClick:function(){function g(){return m(l,{target:f.uid})}return g}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!N&&v.map(function(g){return(0,e.createComponentVNode)(2,o.Button,{icon:g.icon,content:g.name,onClick:function(){function V(){return m("Messenger Plugin",{plugin:g.uid,target:f.uid})}return V}()},g.uid)})})]},f.uid)})})}},24635:function(x,r,n){"use strict";r.__esModule=!0,r.pda_mule=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_mule=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=c.mulebot,u=m.active;return(0,e.createComponentVNode)(2,t.Box,{children:u?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,p)})}return y}(),p=function(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=c.mulebot,u=m.bots;return u.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:d.Name,icon:"cog",onClick:function(){function s(){return i("control",{bot:d.uid})}return s}()})},d.Name)})},b=function(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=c.mulebot,u=m.botstatus,d=m.active,s=u.mode,l=u.loca,h=u.load,N=u.powr,v=u.dest,f=u.home,g=u.retn,V=u.pick,B;switch(s){case 0:B="Ready";break;case 1:B="Loading/Unloading";break;case 2:case 12:B="Navigating to delivery location";break;case 3:B="Navigating to Home";break;case 4:B="Waiting for clear path";break;case 5:case 6:B="Calculating navigation path";break;case 7:B="Unable to locate destination";break;default:B=s;break}return(0,e.createComponentVNode)(2,t.Section,{title:d,children:[s===-1&&(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:[N,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Home",children:f}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:(0,e.createComponentVNode)(2,t.Button,{content:v?v+" (Set)":"None (Set)",onClick:function(){function S(){return i("target")}return S}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Load",children:(0,e.createComponentVNode)(2,t.Button,{content:h?h+" (Unload)":"None",disabled:!h,onClick:function(){function S(){return i("unload")}return S}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Pickup",children:(0,e.createComponentVNode)(2,t.Button,{content:V?"Yes":"No",selected:V,onClick:function(){function S(){return i("set_pickup_type",{autopick:V?0:1})}return S}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Return",children:(0,e.createComponentVNode)(2,t.Button,{content:g?"Yes":"No",selected:g,onClick:function(){function S(){return i("set_auto_return",{autoret:g?0:1})}return S}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function S(){return i("stop")}return S}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Proceed",icon:"play",onClick:function(){function S(){return i("start")}return S}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Return Home",icon:"home",onClick:function(){function S(){return i("home")}return S}()})]})]})]})}},23734:function(x,r,n){"use strict";r.__esModule=!0,r.pda_nanobank=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=r.pda_nanobank=function(){function u(d,s){var l=(0,t.useBackend)(s),h=l.act,N=l.data,v=N.logged_in,f=N.owner_name,g=N.money;return v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Name",children:f}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:["$",g]})]})}),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,y)]})],4):(0,e.createComponentVNode)(2,i)}return u}(),b=function(d,s){var l=(0,t.useBackend)(s),h=l.data,N=h.is_premium,v=(0,t.useLocalState)(s,"tabIndex",1),f=v[0],g=v[1];return(0,e.createComponentVNode)(2,o.Tabs,{mt:2,children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:f===1,onClick:function(){function V(){return g(1)}return V}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transfers"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:f===2,onClick:function(){function V(){return g(2)}return V}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Account Actions"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:f===3,onClick:function(){function V(){return g(3)}return V}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transaction History"]}),!!N&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:f===4,onClick:function(){function V(){return g(4)}return V}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Supply Orders"]})]})},y=function(d,s){var l=(0,t.useLocalState)(s,"tabIndex",1),h=l[0],N=(0,t.useBackend)(s),v=N.data,f=v.db_status;if(!f)return(0,e.createComponentVNode)(2,o.Box,{children:"Account Database Connection Severed"});switch(h){case 1:return(0,e.createComponentVNode)(2,I);case 2:return(0,e.createComponentVNode)(2,k);case 3:return(0,e.createComponentVNode)(2,C);case 4:return(0,e.createComponentVNode)(2,m);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},I=function(d,s){var l,h=(0,t.useBackend)(s),N=h.act,v=h.data,f=v.requests,g=v.available_accounts,V=v.money,B=(0,t.useLocalState)(s,"selectedAccount"),S=B[0],L=B[1],w=(0,t.useLocalState)(s,"transferAmount"),A=w[0],T=w[1],E=(0,t.useLocalState)(s,"searchText",""),P=E[0],D=E[1],M=[];return g.map(function(O){return M[O.name]=O.UID}),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account",children:[(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account name",onInput:function(){function O(R,j){return D(j)}return O}()}),(0,e.createComponentVNode)(2,o.Dropdown,{mt:.6,width:"190px",options:g.filter((0,a.createSearch)(P,function(O){return O.name})).map(function(O){return O.name}),selected:(l=g.filter(function(O){return O.UID===S})[0])==null?void 0:l.name,onSelected:function(){function O(R){return L(M[R])}return O}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Amount",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Up to 5000",onInput:function(){function O(R,j){return T(j)}return O}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button.Confirm,{bold:!0,icon:"paper-plane",width:"auto",disabled:V0&&l.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{children:["#",N.Number,' - "',N.Name,'" for "',N.OrderedBy,'"']},N)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Approved Orders",children:s>0&&d.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{children:["#",N.Number,' - "',N.Name,'" for "',N.ApprovedBy,'"']},N)})})]})}return p}()},17617:function(x,r,n){"use strict";r.__esModule=!0,r.Layout=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(24826),p=["className","theme","children"],b=["className","scrollable","children"];/** + */function m(w,A){w.prototype=Object.create(A.prototype),w.prototype.constructor=w,l(w,A)}function l(w,A){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(x,E){return x.__proto__=E,x},l(w,A)}function d(w,A){if(w==null)return{};var x={};for(var E in w)if({}.hasOwnProperty.call(w,E)){if(A.includes(E))continue;x[E]=w[E]}return x}var s=r.ColorPickerModal=function(){function w(A,x){var E=(0,t.useBackend)(x),P=E.data,D=P.timeout,M=P.message,O=P.title,R=P.autofocus,j=P.default_color,_=j===void 0?"#000000":j,W=(0,t.useLocalState)(x,"color_picker_choice",(0,y.hexToHsva)(_)),z=W[0],K=W[1];return(0,e.createComponentVNode)(2,p.Window,{height:400,title:O,width:600,theme:"generic",children:[!!D&&(0,e.createComponentVNode)(2,a.Loader,{value:D}),(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[M&&(0,e.createComponentVNode)(2,o.Stack.Item,{m:1,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Box,{color:"label",overflow:"hidden",children:M})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[!!R&&(0,e.createComponentVNode)(2,o.Autofocus),(0,e.createComponentVNode)(2,u,{color:z,setColor:K,defaultColor:_})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i.InputButtons,{input:(0,y.hsvaToHex)(z)})})]})})]})}return w}(),u=r.ColorSelector=function(){function w(A,x){var E=A.color,P=A.setColor,D=A.defaultColor,M=function(){function j(_){P(function(W){return Object.assign({},W,_)})}return j}(),O=(0,y.hsvaToRgba)(E),R=(0,y.hsvaToHex)(E);return(0,e.createComponentVNode)(2,o.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{mr:2,children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createVNode)(1,"div","react-colorful",[(0,e.createComponentVNode)(2,N,{hsva:E,onChange:M}),(0,e.createComponentVNode)(2,V,{hue:E.h,onChange:M,className:"react-colorful__last-control"})],4)}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"20px",textAlign:"center",children:"Current"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"20px",textAlign:"center",children:"Previous"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Tooltip,{content:R,position:"bottom",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"30px",backgroundColor:R})}),(0,e.createComponentVNode)(2,o.Tooltip,{content:D,position:"bottom",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"30px",backgroundColor:D})})]})]})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:!0,fontSize:"15px",lineHeight:"24px",children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"Hex:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"24px",children:(0,e.createComponentVNode)(2,v,{fluid:!0,color:(0,y.hsvaToHex)(E).substring(1),onChange:function(){function j(_){C.logger.info(_),P((0,y.hexToHsva)(_))}return j}(),prefixed:!0})})]})}),(0,e.createComponentVNode)(2,o.Stack.Divider),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"H:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V,{hue:E.h,onChange:M})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:E.h,callback:function(){function j(_,W){return M({h:W})}return j}(),max:360,unit:"\xB0"})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"S:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,B,{color:E,onChange:M})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:E.s,callback:function(){function j(_,W){return M({s:W})}return j}(),unit:"%"})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"V:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,S,{color:E,onChange:M})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:E.v,callback:function(){function j(_,W){return M({v:W})}return j}(),unit:"%"})})]})}),(0,e.createComponentVNode)(2,o.Stack.Divider),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"R:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,L,{color:E,onChange:M,target:"r"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:O.r,callback:function(){function j(_,W){O.r=W,M((0,y.rgbaToHsva)(O))}return j}(),max:255})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"G:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,L,{color:E,onChange:M,target:"g"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:O.g,callback:function(){function j(_,W){O.g=W,M((0,y.rgbaToHsva)(O))}return j}(),max:255})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"B:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,L,{color:E,onChange:M,target:"b"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:O.b,callback:function(){function j(_,W){O.b=W,M((0,y.rgbaToHsva)(O))}return j}(),max:255})})]})})]})})]})}return w}(),h=function(A){var x=A.value,E=A.callback,P=A.min,D=P===void 0?0:P,M=A.max,O=M===void 0?100:M,R=A.unit;return(0,e.createComponentVNode)(2,o.NumberInput,{width:"70px",value:Math.round(x),step:1,minValue:D,maxValue:O,onChange:E,unit:R})},g=function(A){return"#"+A},v=r.HexColorInput=function(){function w(A){var x=A.prefixed,E=A.alpha,P=A.color,D=A.fluid,M=A.onChange,O=d(A,c),R=function(){function _(W){return W.replace(/([^0-9A-F]+)/gi,"").substring(0,E?8:6)}return _}(),j=function(){function _(W){return(0,y.validHex)(W,E)}return _}();return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f,Object.assign({},O,{fluid:D,color:P,onChange:M,escape:R,format:x?g:void 0,validate:j})))}return w}(),f=r.ColorInput=function(w){function A(E){var P;return P=w.call(this)||this,P.props=void 0,P.state=void 0,P.handleInput=function(D){var M=P.props.escape(D.currentTarget.value);P.setState({localValue:M})},P.handleBlur=function(D){D.currentTarget&&(P.props.validate(D.currentTarget.value)?P.props.onChange(P.props.escape?P.props.escape(D.currentTarget.value):D.currentTarget.value):P.setState({localValue:P.props.escape(P.props.color)}))},P.props=E,P.state={localValue:P.props.escape(P.props.color)},P}m(A,w);var x=A.prototype;return x.componentDidUpdate=function(){function E(P,D){P.color!==this.props.color&&this.setState({localValue:this.props.escape(this.props.color)})}return E}(),x.render=function(){function E(){return(0,e.createComponentVNode)(2,o.Box,{className:(0,k.classes)(["Input",this.props.fluid&&"Input--fluid"]),children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),(0,e.createVNode)(64,"input","Input__input",null,1,{value:this.props.format?this.props.format(this.state.localValue):this.state.localValue,spellCheck:"false",onInput:this.handleInput,onBlur:this.handleBlur})]})}return E}(),A}(e.Component),N=function(A){var x=A.hsva,E=A.onChange,P=function(R){E({s:R.left*100,v:100-R.top*100})},D=function(R){E({s:(0,b.clamp)(x.s+R.left*100,0,100),v:(0,b.clamp)(x.v-R.top*100,0,100)})},M={"background-color":(0,y.hsvaToHslString)({h:x.h,s:100,v:100,a:1})+" !important"};return(0,e.createVNode)(1,"div","react-colorful__saturation_value",(0,e.createComponentVNode)(2,I.Interactive,{onMove:P,onKey:D,"aria-label":"Color","aria-valuetext":"Saturation "+Math.round(x.s)+"%, Brightness "+Math.round(x.v)+"%",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__saturation_value-pointer",top:1-x.v/100,left:x.s/100,color:(0,y.hsvaToHslString)(x)})}),2,{style:M})},V=function(A){var x=A.className,E=A.hue,P=A.onChange,D=function(j){P({h:360*j.left})},M=function(j){P({h:(0,b.clamp)(E+j.left*360,0,360)})},O=(0,k.classes)(["react-colorful__hue",x]);return(0,e.createVNode)(1,"div",O,(0,e.createComponentVNode)(2,I.Interactive,{onMove:D,onKey:M,"aria-label":"Hue","aria-valuenow":Math.round(E),"aria-valuemax":"360","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__hue-pointer",left:E/360,color:(0,y.hsvaToHslString)({h:E,s:100,v:100,a:1})})}),2)},B=function(A){var x=A.className,E=A.color,P=A.onChange,D=function(j){P({s:100*j.left})},M=function(j){P({s:(0,b.clamp)(E.s+j.left*100,0,100)})},O=(0,k.classes)(["react-colorful__saturation",x]);return(0,e.createVNode)(1,"div",O,(0,e.createComponentVNode)(2,I.Interactive,{style:{background:"linear-gradient(to right, "+(0,y.hsvaToHslString)({h:E.h,s:0,v:E.v,a:1})+", "+(0,y.hsvaToHslString)({h:E.h,s:100,v:E.v,a:1})+")"},onMove:D,onKey:M,"aria-label":"Saturation","aria-valuenow":Math.round(E.s),"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__saturation-pointer",left:E.s/100,color:(0,y.hsvaToHslString)({h:E.h,s:E.s,v:E.v,a:1})})}),2)},S=function(A){var x=A.className,E=A.color,P=A.onChange,D=function(j){P({v:100*j.left})},M=function(j){P({v:(0,b.clamp)(E.v+j.left*100,0,100)})},O=(0,k.classes)(["react-colorful__value",x]);return(0,e.createVNode)(1,"div",O,(0,e.createComponentVNode)(2,I.Interactive,{style:{background:"linear-gradient(to right, "+(0,y.hsvaToHslString)({h:E.h,s:E.s,v:0,a:1})+", "+(0,y.hsvaToHslString)({h:E.h,s:E.s,v:100,a:1})+")"},onMove:D,onKey:M,"aria-label":"Value","aria-valuenow":Math.round(E.s),"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__value-pointer",left:E.v/100,color:(0,y.hsvaToHslString)({h:E.h,s:E.s,v:E.v,a:1})})}),2)},L=function(A){var x=A.className,E=A.color,P=A.onChange,D=A.target,M=(0,y.hsvaToRgba)(E),O=function(K){M[D]=K,P((0,y.rgbaToHsva)(M))},R=function(K){O(255*K.left)},j=function(K){O((0,b.clamp)(M[D]+K.left*255,0,255))},_=(0,k.classes)(["react-colorful__"+D,x]),W=D==="r"?"rgb("+Math.round(M.r)+",0,0)":D==="g"?"rgb(0,"+Math.round(M.g)+",0)":"rgb(0,0,"+Math.round(M.b)+")";return(0,e.createVNode)(1,"div",_,(0,e.createComponentVNode)(2,I.Interactive,{onMove:R,onKey:j,"aria-valuenow":M[D],"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__"+D+"-pointer",left:M[D]/255,color:W})}),2)}},8444:function(T,r,n){"use strict";r.__esModule=!0,r.ColourMatrixTester=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.ColourMatrixTester=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.colour_data,m=[[{name:"RR",idx:0},{name:"RG",idx:1},{name:"RB",idx:2},{name:"RA",idx:3}],[{name:"GR",idx:4},{name:"GG",idx:5},{name:"GB",idx:6},{name:"GA",idx:7}],[{name:"BR",idx:8},{name:"BG",idx:9},{name:"BB",idx:10},{name:"BA",idx:11}],[{name:"AR",idx:12},{name:"AG",idx:13},{name:"AB",idx:14},{name:"AA",idx:15}]];return(0,e.createComponentVNode)(2,o.Window,{width:360,height:190,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Modify Matrix",children:m.map(function(l){return(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",textColor:"label",children:l.map(function(d){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:1,children:[d.name,":\xA0",(0,e.createComponentVNode)(2,t.NumberInput,{width:4,value:c[d.idx],step:.05,minValue:-5,maxValue:5,stepPixelSize:5,onChange:function(){function s(u,h){return C("setvalue",{idx:d.idx+1,value:h})}return s}()})]},d.name)})},l)})})})})})}return b}()},63818:function(T,r,n){"use strict";r.__esModule=!0,r.CommunicationsComputer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=function(s){switch(s){case 1:return(0,e.createComponentVNode)(2,I);case 2:return(0,e.createComponentVNode)(2,i);case 3:return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,c)})});case 4:return(0,e.createComponentVNode)(2,l);default:return"ERROR. Unknown menu_state. Please contact NT Technical Support."}},b=r.CommunicationsComputer=function(){function d(s,u){var h=(0,a.useBackend)(u),g=h.act,v=h.data,f=v.menu_state;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),p(f)]})})})}return d}(),y=function(s,u){var h=(0,a.useBackend)(u),g=h.act,v=h.data,f=v.authenticated,N=v.noauthbutton,V=v.esc_section,B=v.esc_callable,S=v.esc_recallable,L=v.esc_status,w=v.authhead,A=v.is_ai,x=v.lastCallLoc,E=!1,P;return f?f===1?P="Command":f===2?P="Captain":f===3?P="CentComm Officer":f===4?(P="CentComm Secure Connection",E=!0):P="ERROR: Report This Bug!":P="Not Logged In",(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Authentication",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Access",children:P})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{icon:f?"sign-out-alt":"id-card",selected:f,disabled:N,content:f?"Log Out ("+P+")":"Log In",onClick:function(){function D(){return g("auth")}return D}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!V&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Escape Shuttle",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!L&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:L}),!!B&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",content:"Call Shuttle",disabled:!w,onClick:function(){function D(){return g("callshuttle")}return D}()})}),!!S&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Recall Shuttle",disabled:!w||A,onClick:function(){function D(){return g("cancelshuttle")}return D}()})}),!!x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Last Call/Recall From",children:x})]})})})],4)},I=function(s,u){var h=(0,a.useBackend)(u),g=h.act,v=h.data,f=v.is_admin;return f?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,C)},k=function(s,u){var h=(0,a.useBackend)(u),g=h.act,v=h.data,f=v.is_admin,N=v.gamma_armory_location,V=v.admin_levels,B=v.authenticated,S=v.ert_allowed;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"CentComm Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,m,{levels:V,required_access:f,use_confirm:1})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:"Make Central Announcement",disabled:!f,onClick:function(){function L(){return g("send_to_cc_announcement_page")}return L}()}),B===4&&(0,e.createComponentVNode)(2,t.Button,{icon:"plus",content:"Make Other Announcement",disabled:!f,onClick:function(){function L(){return g("make_other_announcement")}return L}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Response Team",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"ambulance",content:"Dispatch ERT",disabled:!f,onClick:function(){function L(){return g("dispatch_ert")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:S,content:S?"ERT calling enabled":"ERT calling disabled",tooltip:S?"Command can request an ERT":"ERTs cannot be requested",disabled:!f,onClick:function(){function L(){return g("toggle_ert_allowed")}return L}(),selected:null})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:"Get Authentication Codes",disabled:!f,onClick:function(){function L(){return g("send_nuke_codes")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gamma Armory",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"biohazard",content:N?"Send Gamma Armory":"Recall Gamma Armory",disabled:!f,onClick:function(){function L(){return g("move_gamma_armory")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"coins",content:"View Economy",disabled:!f,onClick:function(){function L(){return g("view_econ")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fax",content:"Fax Manager",disabled:!f,onClick:function(){function L(){return g("view_fax")}return L}()})]})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"View Command accessible controls",children:(0,e.createComponentVNode)(2,C)})]})},C=function(s,u){var h=(0,a.useBackend)(u),g=h.act,v=h.data,f=v.msg_cooldown,N=v.emagged,V=v.cc_cooldown,B=v.security_level_color,S=v.str_security_level,L=v.levels,w=v.authcapt,A=v.authhead,x=v.messages,E="Make Priority Announcement";f>0&&(E+=" ("+f+"s)");var P=N?"Message [UNKNOWN]":"Message CentComm",D="Request Authentication Codes";return V>0&&(P+=" ("+V+"s)",D+=" ("+V+"s)"),(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Captain-Only Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Alert",color:B,children:S}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,m,{levels:L,required_access:w})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:E,disabled:!w||f>0,onClick:function(){function M(){return g("announce")}return M}()})}),!!N&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",color:"red",content:P,disabled:!w||V>0,onClick:function(){function M(){return g("MessageSyndicate")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!w,onClick:function(){function M(){return g("RestoreBackup")}return M}()})]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",content:P,disabled:!w||V>0,onClick:function(){function M(){return g("MessageCentcomm")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",content:D,disabled:!w||V>0,onClick:function(){function M(){return g("nukerequest")}return M}()})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Command Staff Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Displays",children:(0,e.createComponentVNode)(2,t.Button,{icon:"tv",content:"Change Status Displays",disabled:!A,onClick:function(){function M(){return g("status")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Incoming Messages",children:(0,e.createComponentVNode)(2,t.Button,{icon:"folder-open",content:"View ("+x.length+")",disabled:!A,onClick:function(){function M(){return g("messagelist")}return M}()})})]})})})],4)},i=function(s,u){var h=(0,a.useBackend)(u),g=h.act,v=h.data,f=v.stat_display,N=v.authhead,V=v.current_message_title,B=f.presets.map(function(L){return(0,e.createComponentVNode)(2,t.Button,{content:L.label,selected:L.name===f.type,disabled:!N,onClick:function(){function w(){return g("setstat",{statdisp:L.name})}return w}()},L.name)}),S=f.alerts.map(function(L){return(0,e.createComponentVNode)(2,t.Button,{content:L.label,selected:L.alert===f.icon,disabled:!N,onClick:function(){function w(){return g("setstat",{statdisp:3,alert:L.alert})}return w}()},L.alert)});return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Modify Status Screens",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function L(){return g("main")}return L}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Presets",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alerts",children:S}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:f.line_1,disabled:!N,onClick:function(){function L(){return g("setmsg1")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 2",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:f.line_2,disabled:!N,onClick:function(){function L(){return g("setmsg2")}return L}()})})]})})})},c=function(s,u){var h=(0,a.useBackend)(u),g=h.act,v=h.data,f=v.authhead,N=v.current_message_title,V=v.current_message,B=v.messages,S=v.security_level,L;if(N)L=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:N,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Return To Message List",disabled:!f,onClick:function(){function A(){return g("messagelist")}return A}()}),children:(0,e.createComponentVNode)(2,t.Box,{children:V})})});else{var w=B.map(function(A){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:A.title,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eye",content:"View",disabled:!f||N===A.title,onClick:function(){function x(){return g("messagelist",{msgid:A.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"times",content:"Delete",disabled:!f,onClick:function(){function x(){return g("delmessage",{msgid:A.id})}return x}()})]},A.id)});L=(0,e.createComponentVNode)(2,t.Section,{title:"Messages Received",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function A(){return g("main")}return A}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:w})})}return(0,e.createComponentVNode)(2,t.Box,{children:L})},m=function(s,u){var h=(0,a.useBackend)(u),g=h.act,v=h.data,f=s.levels,N=s.required_access,V=s.use_confirm,B=v.security_level;return V?f.map(function(S){return(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:S.icon,content:S.name,disabled:!N||S.id===B,tooltip:S.tooltip,onClick:function(){function L(){return g("newalertlevel",{level:S.id})}return L}()},S.name)}):f.map(function(S){return(0,e.createComponentVNode)(2,t.Button,{icon:S.icon,content:S.name,disabled:!N||S.id===B,tooltip:S.tooltip,onClick:function(){function L(){return g("newalertlevel",{level:S.id})}return L}()},S.name)})},l=function(s,u){var h=(0,a.useBackend)(u),g=h.act,v=h.data,f=v.is_admin,N=v.possible_cc_sounds;if(!f)return g("main");var V=(0,a.useLocalState)(u,"subtitle",""),B=V[0],S=V[1],L=(0,a.useLocalState)(u,"text",""),w=L[0],A=L[1],x=(0,a.useLocalState)(u,"classified",0),E=x[0],P=x[1],D=(0,a.useLocalState)(u,"beepsound","Beep"),M=D[0],O=D[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Central Command Report",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function R(){return g("main")}return R}()}),children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Subtitle here.",fluid:!0,value:B,onChange:function(){function R(j,_){return S(_)}return R}(),mb:"5px"}),(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Announcement here,\nMultiline input is accepted.",rows:10,fluid:!0,multiline:1,value:w,onChange:function(){function R(j,_){return A(_)}return R}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Send Announcement",fluid:!0,icon:"paper-plane",center:!0,mt:"5px",textAlign:"center",onClick:function(){function R(){return g("make_cc_announcement",{subtitle:B,text:w,classified:E,beepsound:M})}return R}()}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"260px",height:"20px",options:N,selected:M,onSelected:function(){function R(j){return O(j)}return R}(),disabled:E})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"volume-up",mx:"5px",disabled:E,tooltip:"Test sound",onClick:function(){function R(){return g("test_sound",{sound:M})}return R}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:E,content:"Classified",fluid:!0,tooltip:E?"Sent to station communications consoles":"Publically announced",onClick:function(){function R(){return P(!E)}return R}()})})]})]})})}},20562:function(T,r,n){"use strict";r.__esModule=!0,r.CompostBin=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.CompostBin=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.biomass,m=i.compost,l=i.biomass_capacity,d=i.compost_capacity,s=i.potassium,u=i.potassium_capacity,h=i.potash,g=i.potash_capacity,v=(0,a.useSharedState)(I,"vendAmount",1),f=v[0],N=v[1];return(0,e.createComponentVNode)(2,o.Window,{width:360,height:250,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{label:"Resources",children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Biomass",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:c,minValue:0,maxValue:l,ranges:{good:[l*.5,1/0],average:[l*.25,l*.5],bad:[-1/0,l*.25]},children:[c," / ",l," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compost",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:m,minValue:0,maxValue:d,ranges:{good:[d*.5,1/0],average:[d*.25,d*.5],bad:[-1/0,d*.25]},children:[m," / ",d," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Potassium",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:s,minValue:0,maxValue:u,ranges:{good:[u*.5,1/0],average:[u*.25,u*.5],bad:[-1/0,u*.25]},children:[s," / ",u," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Potash",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:h,minValue:0,maxValue:g,ranges:{good:[g*.5,1/0],average:[g*.25,g*.5],bad:[-1/0,g*.25]},children:[h," / ",g," Units"]})})]})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mr:"5px",color:"silver",children:"Soil clumps to make:"}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:f,width:"32px",minValue:1,maxValue:10,stepPixelSize:7,onChange:function(){function V(B,S){return N(S)}return V}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,align:"center",content:"Make Soil",disabled:m<25*f,icon:"arrow-circle-down",onClick:function(){function V(){return C("create",{amount:f})}return V}()})})})]})})})}return b}()},21813:function(T,r,n){"use strict";r.__esModule=!0,r.Contractor=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(73379),b=n(98595);function y(g,v){g.prototype=Object.create(v.prototype),g.prototype.constructor=g,I(g,v)}function I(g,v){return I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,N){return f.__proto__=N,f},I(g,v)}var k={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},C=["Recording biometric data...","Analyzing embedded syndicate info...","STATUS CONFIRMED","Contacting Syndicate database...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Response received, ack 4851234...","CONFIRM ACC "+Math.round(Math.random()*2e4),"Setting up private accounts...","CONTRACTOR ACCOUNT CREATED","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","CONTRACTS FOUND","WELCOME, AGENT"],i=r.Contractor=function(){function g(v,f){var N=(0,t.useBackend)(f),V=N.act,B=N.data,S;B.unauthorized?S=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,u,{height:"100%",allMessages:["ERROR: UNAUTHORIZED USER"],finishedTimeout:100,onFinished:function(){function x(){}return x}()})}):B.load_animation_completed?S=(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:(0,e.createComponentVNode)(2,c)}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",mt:"0.5rem",children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",overflow:"hidden",children:B.page===1?(0,e.createComponentVNode)(2,l,{height:"100%"}):(0,e.createComponentVNode)(2,s,{height:"100%"})})],4):S=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,u,{height:"100%",allMessages:C,finishedTimeout:3e3,onFinished:function(){function x(){return V("complete_load_animation")}return x}()})});var L=(0,t.useLocalState)(f,"viewingPhoto",""),w=L[0],A=L[1];return(0,e.createComponentVNode)(2,b.Window,{theme:"syndicate",width:500,height:600,children:[w&&(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,b.Window.Content,{className:"Contractor",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:S})})]})}return g}(),c=function(v,f){var N=(0,t.useBackend)(f),V=N.act,B=N.data,S=B.tc_available,L=B.tc_paid_out,w=B.completed_contracts,A=B.rep;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Summary",buttons:(0,e.createComponentVNode)(2,o.Box,{verticalAlign:"middle",mt:"0.25rem",children:[A," Rep"]})},v,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Available",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",children:[S," TC"]}),(0,e.createComponentVNode)(2,o.Button,{disabled:S<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){function x(){return V("claim")}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Earned",children:[L," TC"]})]})}),(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contracts Completed",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Box,{height:"20px",lineHeight:"20px",inline:!0,children:w})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},m=function(v,f){var N=(0,t.useBackend)(f),V=N.act,B=N.data,S=B.page;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Tabs,Object.assign({},v,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:S===1,onClick:function(){function L(){return V("page",{page:1})}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"suitcase"}),"Contracts"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:S===2,onClick:function(){function L(){return V("page",{page:2})}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"shopping-cart"}),"Hub"]})]})))},l=function(v,f){var N=(0,t.useBackend)(f),V=N.act,B=N.data,S=B.contracts,L=B.contract_active,w=B.can_extract,A=!!L&&S.filter(function(M){return M.status===1})[0],x=A&&A.time_left>0,E=(0,t.useLocalState)(f,"viewingPhoto",""),P=E[0],D=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Contracts",overflow:"auto",buttons:(0,e.createComponentVNode)(2,o.Button,{disabled:!w||x,icon:"parachute-box",content:["Call Extraction",x&&(0,e.createComponentVNode)(2,p.Countdown,{timeLeft:A.time_left,format:function(){function M(O,R){return" ("+R.substr(3)+")"}return M}()})],onClick:function(){function M(){return V("extract")}return M}()})},v,{children:S.slice().sort(function(M,O){return M.status===1?-1:O.status===1?1:M.status-O.status}).map(function(M){var O;return(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",color:M.status===1&&"good",children:M.target_name}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:M.has_photo&&(0,e.createComponentVNode)(2,o.Button,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){function R(){return D("target_photo_"+M.uid+".png")}return R}()})})]}),className:"Contractor__Contract",buttons:(0,e.createComponentVNode)(2,o.Box,{width:"100%",children:[!!k[M.status]&&(0,e.createComponentVNode)(2,o.Box,{color:k[M.status][1],inline:!0,mt:M.status!==1&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:k[M.status][0]}),M.status===1&&(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"ban",color:"bad",content:"Abort",ml:"0.5rem",onClick:function(){function R(){return V("abort")}return R}()})]}),children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"2",mr:"0.5rem",children:[M.fluff_message,!!M.completed_time&&(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"check",mr:"0.5rem"}),"Contract completed at ",M.completed_time]}),!!M.dead_extraction&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",mt:"0.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"Telecrystals reward reduced drastically as the target was dead during extraction."]}),!!M.fail_reason&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"times",mr:"0.5rem"}),"Contract failed: ",M.fail_reason]})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{flexBasis:"100%",children:[(0,e.createComponentVNode)(2,o.Flex,{mb:"0.5rem",color:"label",children:["Extraction Zone:\xA0",d(M)]}),(O=M.difficulties)==null?void 0:O.map(function(R,j){return(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!!L,content:R.name+" ("+R.reward+" TC)",onClick:function(){function _(){return V("activate",{uid:M.uid,difficulty:j+1})}return _}()},j)}),!!M.objective&&(0,e.createComponentVNode)(2,o.Box,{color:"white",bold:!0,children:[M.objective.extraction_name,(0,e.createVNode)(1,"br"),"(",(M.objective.rewards.tc||0)+" TC",",\xA0",(M.objective.rewards.credits||0)+" Credits",")"]})]})]})},M.uid)})})))},d=function(v){if(!(!v.objective||v.status>1)){var f=v.objective.locs.user_area_id,N=v.objective.locs.user_coords,V=v.objective.locs.target_area_id,B=v.objective.locs.target_coords,S=f===V;return(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:S?"dot-circle-o":"arrow-alt-circle-right-o",color:S?"green":"yellow",rotation:S?null:-(0,a.rad2deg)(Math.atan2(B[1]-N[1],B[0]-N[0])),lineHeight:S?null:"0.85",size:"1.5"})})}},s=function(v,f){var N=(0,t.useBackend)(f),V=N.act,B=N.data,S=B.rep,L=B.buyables;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Purchases",overflow:"auto"},v,{children:L.map(function(w){return(0,e.createComponentVNode)(2,o.Section,{title:w.name,children:[w.description,(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:S-1&&(0,e.createComponentVNode)(2,o.Box,{as:"span",color:w.stock===0?"bad":"good",ml:"0.5rem",children:[w.stock," in stock"]})]},w.uid)})})))},u=function(g){function v(N){var V;return V=g.call(this,N)||this,V.timer=null,V.state={currentIndex:0,currentDisplay:[]},V}y(v,g);var f=v.prototype;return f.tick=function(){function N(){var V=this.props,B=this.state;if(B.currentIndex<=V.allMessages.length){this.setState(function(L){return{currentIndex:L.currentIndex+1}});var S=B.currentDisplay;S.push(V.allMessages[B.currentIndex])}else clearTimeout(this.timer),setTimeout(V.onFinished,V.finishedTimeout)}return N}(),f.componentDidMount=function(){function N(){var V=this,B=this.props.linesPerSecond,S=B===void 0?2.5:B;this.timer=setInterval(function(){return V.tick()},1e3/S)}return N}(),f.componentWillUnmount=function(){function N(){clearTimeout(this.timer)}return N}(),f.render=function(){function N(){return(0,e.createComponentVNode)(2,o.Box,{m:1,children:this.state.currentDisplay.map(function(V){return(0,e.createFragment)([V,(0,e.createVNode)(1,"br")],0,V)})})}return N}(),v}(e.Component),h=function(v,f){var N=(0,t.useLocalState)(f,"viewingPhoto",""),V=N[0],B=N[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Contractor__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:V}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function S(){return B("")}return S}()})]})}},54151:function(T,r,n){"use strict";r.__esModule=!0,r.ConveyorSwitch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.ConveyorSwitch=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.slowFactor,m=i.oneWay,l=i.position;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:135,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lever position",children:l>0?"forward":l<0?"reverse":"neutral"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Allow reverse",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!m,onClick:function(){function d(){return C("toggleOneWay")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slowdown factor",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",onClick:function(){function d(){return C("slowFactor",{value:c-5})}return d}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-left",onClick:function(){function d(){return C("slowFactor",{value:c-1})}return d}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Slider,{width:"100px",mx:"1px",value:c,fillValue:c,minValue:1,maxValue:50,step:1,format:function(){function d(s){return s+"x"}return d}(),onChange:function(){function d(s,u){return C("slowFactor",{value:u})}return d}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-right",onClick:function(){function d(){return C("slowFactor",{value:c+1})}return d}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",onClick:function(){function d(){return C("slowFactor",{value:c+5})}return d}()})," "]})]})})]})})})})}return b}()},73169:function(T,r,n){"use strict";r.__esModule=!0,r.CrewMonitor=void 0;var e=n(89005),a=n(88510),t=n(25328),o=n(72253),p=n(36036),b=n(36352),y=n(76910),I=n(98595),k=n(96184),C=["color"];function i(h,g){if(h==null)return{};var v={};for(var f in h)if({}.hasOwnProperty.call(h,f)){if(g.includes(f))continue;v[f]=h[f]}return v}var c=function(g,v){return g.dead?"Deceased":parseInt(g.health,10)<=v?"Critical":parseInt(g.stat,10)===1?"Unconscious":"Living"},m=function(g,v){return g.dead?"red":parseInt(g.health,10)<=v?"orange":parseInt(g.stat,10)===1?"blue":"green"},l=r.CrewMonitor=function(){function h(g,v){var f=(0,o.useBackend)(v),N=f.act,V=f.data,B=(0,o.useLocalState)(v,"tabIndex",V.tabIndex),S=B[0],L=B[1],w=function(){function x(E){L(E),N("set_tab_index",{tab_index:E})}return x}(),A=function(){function x(E){switch(E){case 0:return(0,e.createComponentVNode)(2,d);case 1:return(0,e.createComponentVNode)(2,u);default:return"WE SHOULDN'T BE HERE!"}}return x}();return(0,e.createComponentVNode)(2,I.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,I.Window.Content,{children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Tabs,{children:[(0,e.createComponentVNode)(2,p.Tabs.Tab,{icon:"table",selected:S===0,onClick:function(){function x(){return w(0)}return x}(),children:"Data View"},"DataView"),(0,e.createComponentVNode)(2,p.Tabs.Tab,{icon:"map-marked-alt",selected:S===1,onClick:function(){function x(){return w(1)}return x}(),children:"Map View"},"MapView")]})}),A(S)]})})})}return h}(),d=function(g,v){var f=(0,o.useBackend)(v),N=f.act,V=f.data,B=V.possible_levels,S=V.viewing_current_z_level,L=V.is_advanced,w=V.highlightedNames,A=(0,a.sortBy)(function(M){return!w.includes(M.name)},function(M){return M.name})(V.crewmembers||[]),x=(0,o.useLocalState)(v,"search",""),E=x[0],P=x[1],D=(0,t.createSearch)(E,function(M){return M.name+"|"+M.assignment+"|"+M.area});return(0,e.createComponentVNode)(2,p.Section,{fill:!0,scrollable:!0,backgroundColor:"transparent",children:[(0,e.createComponentVNode)(2,p.Stack,{children:[(0,e.createComponentVNode)(2,p.Stack.Item,{width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,p.Input,{placeholder:"Search by name, assignment or location..",width:"100%",onInput:function(){function M(O,R){return P(R)}return M}()})}),(0,e.createComponentVNode)(2,p.Stack.Item,{children:L?(0,e.createComponentVNode)(2,p.Dropdown,{mr:"5px",width:"50px",options:B,selected:S,onSelected:function(){function M(O){return N("switch_level",{new_level:O})}return M}()}):null})]}),(0,e.createComponentVNode)(2,p.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,p.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,p.Table.Cell,{children:(0,e.createComponentVNode)(2,p.Button,{tooltip:"Clear highlights",icon:"square-xmark",onClick:function(){function M(){return N("clear_highlighted_names")}return M}()})}),(0,e.createComponentVNode)(2,p.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,p.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,p.Table.Cell,{children:"Location"})]}),A.filter(D).map(function(M){var O=w.includes(M.name);return(0,e.createComponentVNode)(2,p.Table.Row,{bold:!!M.is_command,children:[(0,e.createComponentVNode)(2,b.TableCell,{children:(0,e.createComponentVNode)(2,k.ButtonCheckbox,{checked:O,tooltip:"Mark on map",onClick:function(){function R(){return N(O?"remove_highlighted_name":"add_highlighted_name",{name:M.name})}return R}()})}),(0,e.createComponentVNode)(2,b.TableCell,{children:[M.name," (",M.assignment,")"]}),(0,e.createComponentVNode)(2,b.TableCell,{children:[(0,e.createComponentVNode)(2,p.Box,{inline:!0,color:m(M,V.critThreshold),children:c(M,V.critThreshold)}),M.sensor_type>=2||V.ignoreSensors?(0,e.createComponentVNode)(2,p.Box,{inline:!0,ml:1,children:["(",(0,e.createComponentVNode)(2,p.Box,{inline:!0,color:y.COLORS.damageType.oxy,children:M.oxy}),"|",(0,e.createComponentVNode)(2,p.Box,{inline:!0,color:y.COLORS.damageType.toxin,children:M.tox}),"|",(0,e.createComponentVNode)(2,p.Box,{inline:!0,color:y.COLORS.damageType.burn,children:M.fire}),"|",(0,e.createComponentVNode)(2,p.Box,{inline:!0,color:y.COLORS.damageType.brute,children:M.brute}),")"]}):null]}),(0,e.createComponentVNode)(2,b.TableCell,{children:M.sensor_type===3||V.ignoreSensors?V.isAI||V.isObserver?(0,e.createComponentVNode)(2,p.Button,{fluid:!0,icon:"location-arrow",content:M.area+" ("+M.x+", "+M.y+")",onClick:function(){function R(){return N("track",{track:M.ref})}return R}()}):M.area+" ("+M.x+", "+M.y+")":(0,e.createComponentVNode)(2,p.Box,{inline:!0,color:"grey",children:"Not Available"})})]},M.name)})]})]})},s=function(g,v){var f=g.color,N=i(g,C);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,p.NanoMap.Marker,Object.assign({},N,{children:(0,e.createVNode)(1,"span","highlighted-marker color-border-"+f)})))},u=function(g,v){var f=(0,o.useBackend)(v),N=f.act,V=f.data,B=V.highlightedNames;return(0,e.createComponentVNode)(2,p.Box,{height:"100vh",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,p.NanoMap,{zoom:V.zoom,offsetX:V.offsetX,offsetY:V.offsetY,onZoom:function(){function S(L){return N("set_zoom",{zoom:L})}return S}(),onOffsetChange:function(){function S(L,w){return N("set_offset",{offset_x:w.offsetX,offset_y:w.offsetY})}return S}(),children:V.crewmembers.filter(function(S){return S.sensor_type===3||V.ignoreSensors}).map(function(S){var L=m(S,V.critThreshold),w=B.includes(S.name),A=function(){return V.isObserver?N("track",{track:S.ref}):null},x=function(){return N(w?"remove_highlighted_name":"add_highlighted_name",{name:S.name})},E=S.name+" ("+S.assignment+")";return w?(0,e.createComponentVNode)(2,s,{x:S.x,y:S.y,tooltip:E,color:L,onClick:A,onDblClick:x},S.ref):(0,e.createComponentVNode)(2,p.NanoMap.MarkerIcon,{x:S.x,y:S.y,icon:"circle",tooltip:E,color:L,onClick:A,onDblClick:x},S.ref)})})})}},63987:function(T,r,n){"use strict";r.__esModule=!0,r.Cryo=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],b=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],y=r.Cryo=function(){function C(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:520,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,I)})})})}return C}(),I=function(i,c){var m=(0,a.useBackend)(c),l=m.act,d=m.data,s=d.isOperating,u=d.hasOccupant,h=d.occupant,g=h===void 0?[]:h,v=d.cellTemperature,f=d.cellTemperatureStatus,N=d.isBeakerLoaded,V=d.cooldownProgress,B=d.auto_eject_healthy,S=d.auto_eject_dead;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",onClick:function(){function L(){return l("ejectOccupant")}return L}(),disabled:!u,children:"Eject"}),children:u?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:g.name||"Unknown"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:g.health,max:g.maxHealth,value:g.health/g.maxHealth,color:g.health>0?"good":"average",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(g.health)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:b[g.stat][0],children:b[g.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(g.bodyTemperature)})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),p.map(function(L){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:L.label,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:g[L.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(g[L.type])})})},L.id)})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Cell",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function L(){return l("ejectBeaker")}return L}(),disabled:!N,children:"Eject Beaker"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function L(){return l(s?"switchOff":"switchOn")}return L}(),selected:s,children:s?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",color:f,children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:v})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,k)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dosage interval",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{average:[-1/0,99],good:[99,1/0]},color:!N&&"average",value:V,minValue:0,maxValue:100})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject healthy occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:B?"toggle-on":"toggle-off",selected:B,onClick:function(){function L(){return l(B?"auto_eject_healthy_off":"auto_eject_healthy_on")}return L}(),children:B?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject dead occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:S?"toggle-on":"toggle-off",selected:S,onClick:function(){function L(){return l(S?"auto_eject_dead_off":"auto_eject_dead_on")}return L}(),children:S?"On":"Off"})})]})})})],4)},k=function(i,c){var m=(0,a.useBackend)(c),l=m.act,d=m.data,s=d.isBeakerLoaded,u=d.beakerLabel,h=d.beakerVolume;return s?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!u&&"average",children:[u||"No label",":"]}),(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!h&&"bad",ml:1,children:h?(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h,format:function(){function g(v){return Math.round(v)+" units remaining"}return g}()}):"Beaker is empty"})],4):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"bad",children:"No beaker loaded"})}},86099:function(T,r,n){"use strict";r.__esModule=!0,r.CryopodConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(25328),b=r.CryopodConsole=function(){function k(C,i){var c=(0,a.useBackend)(i),m=c.data,l=m.account_name,d=m.allow_items;return(0,e.createComponentVNode)(2,o.Window,{title:"Cryopod Console",width:400,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Hello, "+(l||"[REDACTED]")+"!",children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,e.createComponentVNode)(2,y),!!d&&(0,e.createComponentVNode)(2,I)]})})}return k}(),y=function(C,i){var c=(0,a.useBackend)(i),m=c.data,l=m.frozen_crew;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Crew",children:l.length?(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(d,s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.name,children:d.rank},s)})})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored crew!"})})},I=function(C,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.frozen_items,s=function(h){var g=h.toString();return g.startsWith("the ")&&(g=g.slice(4,g.length)),(0,p.toTitleCase)(g)};return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Items",children:d.length?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s(u.name),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){function h(){return m("one_item",{item:u.uid})}return h}()})},u)})})}),(0,e.createComponentVNode)(2,t.Button,{content:"Drop All Items",color:"red",onClick:function(){function u(){return m("all_items")}return u}()})],4):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored items!"})})}},12692:function(T,r,n){"use strict";r.__esModule=!0,r.DNAModifier=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(3939),b=[["good","Alive"],["average","Critical"],["bad","DEAD"]],y=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],I=[5,10,20,30,50],k=r.DNAModifier=function(){function f(N,V){var B=(0,a.useBackend)(V),S=B.act,L=B.data,w=L.irradiating,A=L.dnaBlockSize,x=L.occupant;V.dnaBlockSize=A,V.isDNAInvalid=!x.isViableSubject||!x.uniqueIdentity||!x.structuralEnzymes;var E;return w&&(E=(0,e.createComponentVNode)(2,g,{duration:w})),(0,e.createComponentVNode)(2,o.Window,{width:660,height:775,children:[(0,e.createComponentVNode)(2,p.ComplexModal),E,(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,C)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i)})]})})]})}return f}(),C=function(N,V){var B=(0,a.useBackend)(V),S=B.act,L=B.data,w=L.locked,A=L.hasOccupant,x=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A,selected:w,icon:w?"toggle-on":"toggle-off",content:w?"Engaged":"Disengaged",onClick:function(){function E(){return S("toggleLock")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A||w,icon:"user-slash",content:"Eject",onClick:function(){function E(){return S("ejectOccupant")}return E}()})],4),children:A?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:x.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:x.minHealth,max:x.maxHealth,value:x.health/x.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:b[x.stat][0],children:b[x.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})}),V.isDNAInvalid?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radiation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:"0",max:"100",value:x.radiationLevel/100,color:"average"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:L.occupant.uniqueEnzymes?L.occupant.uniqueEnzymes:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})],0):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Cell unoccupied."})})},i=function(N,V){var B=(0,a.useBackend)(V),S=B.act,L=B.data,w=L.selectedMenuKey,A=L.hasOccupant,x=L.occupant;if(A){if(V.isDNAInvalid)return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No operation possible on this subject."]})})})}else return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant in DNA modifier."]})})});var E;return w==="ui"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,l)],4):w==="se"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,l)],4):w==="buffer"?E=(0,e.createComponentVNode)(2,d):w==="rejuvenators"&&(E=(0,e.createComponentVNode)(2,h)),(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:y.map(function(P,D){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:P[2],selected:w===P[0],onClick:function(){function M(){return S("selectMenuKey",{key:P[0]})}return M}(),children:P[1]},D)})}),E]})},c=function(N,V){var B=(0,a.useBackend)(V),S=B.act,L=B.data,w=L.selectedUIBlock,A=L.selectedUISubBlock,x=L.selectedUITarget,E=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Unique Identifier",children:[(0,e.createComponentVNode)(2,v,{dnaString:E.uniqueIdentity,selectedBlock:w,selectedSubblock:A,blockSize:V.dnaBlockSize,action:"selectUIBlock"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:15,stepPixelSize:"20",value:x,format:function(){function P(D){return D.toString(16).toUpperCase()}return P}(),ml:"0",onChange:function(){function P(D,M){return S("changeUITarget",{value:M})}return P}()})})}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){function P(){return S("pulseUIRadiation")}return P}()})]})},m=function(N,V){var B=(0,a.useBackend)(V),S=B.act,L=B.data,w=L.selectedSEBlock,A=L.selectedSESubBlock,x=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Structural Enzymes",children:[(0,e.createComponentVNode)(2,v,{dnaString:x.structuralEnzymes,selectedBlock:w,selectedSubblock:A,blockSize:V.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){function E(){return S("pulseSERadiation")}return E}()})]})},l=function(N,V){var B=(0,a.useBackend)(V),S=B.act,L=B.data,w=L.radiationIntensity,A=L.radiationDuration;return(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Emitter",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Intensity",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:10,stepPixelSize:20,value:w,popUpPosition:"right",ml:"0",onChange:function(){function x(E,P){return S("radiationIntensity",{value:P})}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:20,stepPixelSize:10,unit:"s",value:A,popUpPosition:"right",ml:"0",onChange:function(){function x(E,P){return S("radiationDuration",{value:P})}return x}()})})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top-start",mt:"0.5rem",onClick:function(){function x(){return S("pulseRadiation")}return x}()})]})},d=function(N,V){var B=(0,a.useBackend)(V),S=B.act,L=B.data,w=L.buffers,A=w.map(function(x,E){return(0,e.createComponentVNode)(2,s,{id:E+1,name:"Buffer "+(E+1),buffer:x},E)});return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{height:"75%",mt:1,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Buffers",children:A})}),(0,e.createComponentVNode)(2,t.Stack.Item,{height:"25%",children:(0,e.createComponentVNode)(2,u)})]})},s=function(N,V){var B=(0,a.useBackend)(V),S=B.act,L=B.data,w=N.id,A=N.name,x=N.buffer,E=L.isInjectorReady,P=A+(x.data?" - "+x.label:"");return(0,e.createComponentVNode)(2,t.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,t.Section,{title:P,mx:"0",lineHeight:"18px",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!x.data,icon:"trash",content:"Clear",onClick:function(){function D(){return S("bufferOption",{option:"clear",id:w})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data,icon:"pen",content:"Rename",onClick:function(){function D(){return S("bufferOption",{option:"changeLabel",id:w})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data||!L.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-start",onClick:function(){function D(){return S("bufferOption",{option:"saveDisk",id:w})}return D}()})],4),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Write",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){function D(){return S("bufferOption",{option:"saveUI",id:w})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){function D(){return S("bufferOption",{option:"saveUIAndUE",id:w})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){function D(){return S("bufferOption",{option:"saveSE",id:w})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!L.hasDisk||!L.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){function D(){return S("bufferOption",{option:"loadDisk",id:w})}return D}()})]}),!!x.data&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:x.owner||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[x.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!x.ue&&" and Unique Enzymes"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transfer to",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Injector",mb:"0",onClick:function(){function D(){return S("bufferOption",{option:"createInjector",id:w})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Block Injector",mb:"0",onClick:function(){function D(){return S("bufferOption",{option:"createInjector",id:w,block:1})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){function D(){return S("bufferOption",{option:"transfer",id:w})}return D}()})]})],4)]}),!x.data&&(0,e.createComponentVNode)(2,t.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},u=function(N,V){var B=(0,a.useBackend)(V),S=B.act,L=B.data,w=L.hasDisk,A=L.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!w||!A.data,icon:"trash",content:"Wipe",onClick:function(){function x(){return S("wipeDisk")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w,icon:"eject",content:"Eject",onClick:function(){function x(){return S("ejectDisk")}return x}()})],4),children:w?A.data?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Label",children:A.label?A.label:"No label"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:A.owner?A.owner:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[A.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!A.ue&&" and Unique Enzymes"]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Disk is blank."}):(0,e.createComponentVNode)(2,t.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"save-o",size:"4"}),(0,e.createVNode)(1,"br"),"No disk inserted."]})})},h=function(N,V){var B=(0,a.useBackend)(V),S=B.act,L=B.data,w=L.isBeakerLoaded,A=L.beakerVolume,x=L.beakerLabel;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Rejuvenators and Beaker",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!w,icon:"eject",content:"Eject",onClick:function(){function E(){return S("ejectBeaker")}return E}()}),children:w?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Inject",children:[I.map(function(E,P){return(0,e.createComponentVNode)(2,t.Button,{disabled:E>A,icon:"syringe",content:E,onClick:function(){function D(){return S("injectRejuvenators",{amount:E})}return D}()},P)}),(0,e.createComponentVNode)(2,t.Button,{disabled:A<=0,icon:"syringe",content:"All",onClick:function(){function E(){return S("injectRejuvenators",{amount:A})}return E}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"0.5rem",children:x||"No label"}),A?(0,e.createComponentVNode)(2,t.Box,{color:"good",children:[A," unit",A===1?"":"s"," remaining"]}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Empty"})]})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No beaker loaded.",16)]})})})},g=function(N,V){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"average",children:(0,e.createVNode)(1,"h1",null,[(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"}),(0,e.createTextVNode)("\xA0Irradiating occupant\xA0"),(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"})],4)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,[(0,e.createTextVNode)("For "),N.duration,(0,e.createTextVNode)(" second"),N.duration===1?"":"s"],0)})]})},v=function(N,V){for(var B=(0,a.useBackend)(V),S=B.act,L=B.data,w=N.dnaString,A=N.selectedBlock,x=N.selectedSubblock,E=N.blockSize,P=N.action,D=w.split(""),M=0,O=[],R=function(){for(var W=j/E+1,z=[],K=function(){var J=G+1;z.push((0,e.createComponentVNode)(2,t.Button,{selected:A===W&&x===J,content:D[j+G],mb:"0",onClick:function(){function ue(){return S(P,{block:W,subblock:J})}return ue}()}))},G=0;Gu.spawnpoints?"red":"green",children:[u.total," total, versus ",u.spawnpoints," spawnpoints"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispatch",children:(0,e.createComponentVNode)(2,t.Button,{width:10.5,textAlign:"center",icon:"ambulance",content:"Send ERT",onClick:function(){function N(){return s("dispatch_ert",{silent:v})}return N}()})})]})})})},C=function(m,l){var d=(0,a.useBackend)(l),s=d.act,u=d.data,h=u.ert_request_messages;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:h&&h.length?h.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.time,buttons:(0,e.createComponentVNode)(2,t.Button,{content:g.sender_real_name,onClick:function(){function v(){return s("view_player_panel",{uid:g.sender_uid})}return v}(),tooltip:"View player panel"}),children:g.message},(0,p.decodeHtmlEntities)(g.time))}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"broadcast-tower",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No ERT requests."]})})})})},i=function(m,l){var d=(0,a.useBackend)(l),s=d.act,u=d.data,h=(0,a.useLocalState)(l,"text",""),g=h[0],v=h[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter ERT denial reason here,\nMultiline input is accepted.",rows:19,fluid:!0,multiline:1,value:g,onChange:function(){function f(N,V){return v(V)}return f}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Deny ERT",fluid:!0,icon:"times",center:!0,mt:2,textAlign:"center",onClick:function(){function f(){return s("deny_ert",{reason:g})}return f}()})]})})}},90217:function(T,r,n){"use strict";r.__esModule=!0,r.EconomyManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(3939),b=r.EconomyManager=function(){function I(k,C){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:325,children:[(0,e.createComponentVNode)(2,p.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,y)})]})}return I}(),y=function(k,C){var i=(0,a.useBackend)(C),c=i.act,m=i.data,l=m.next_payroll_time;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.4rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"coins",verticalAlign:"middle",size:3,mr:"1rem"}),"Economy Manager"]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.LabeledList,{label:"Pay Bonuses and Deductions",children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Global",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Global Payroll Modification",onClick:function(){function d(){return c("payroll_modification",{mod_type:"global"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Account Payroll Modification",onClick:function(){function d(){return c("payroll_modification",{mod_type:"department"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Members",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Members Payroll Modification",onClick:function(){function d(){return c("payroll_modification",{mod_type:"department_members"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Single Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Crew Member Payroll Modification",onClick:function(){function d(){return c("payroll_modification",{mod_type:"crew_member"})}return d}()})})]}),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Box,{mb:.5,children:["Next Payroll in: ",l," Minutes"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",width:"auto",color:"bad",content:"Delay Payroll",onClick:function(){function d(){return c("delay_payroll")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{width:"auto",content:"Set Payroll Time",onClick:function(){function d(){return c("set_payroll")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",width:"auto",color:"good",content:"Accelerate Payroll",onClick:function(){function d(){return c("accelerate_payroll")}return d}()})]}),(0,e.createComponentVNode)(2,t.NoticeBox,{children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," You take full responsibility for unbalancing the economy with these buttons!"]})],4)}},82565:function(T,r,n){"use strict";r.__esModule=!0,r.Electropack=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(98595),b=r.Electropack=function(){function y(I,k){var C=(0,t.useBackend)(k),i=C.act,c=C.data,m=c.power,l=c.code,d=c.frequency,s=c.minFrequency,u=c.maxFrequency;return(0,e.createComponentVNode)(2,p.Window,{width:360,height:135,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,o.Button,{icon:m?"power-off":"times",content:m?"On":"Off",selected:m,onClick:function(){function h(){return i("power")}return h}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function h(){return i("reset",{reset:"freq"})}return h}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:s/10,maxValue:u/10,value:d/10,format:function(){function h(g){return(0,a.toFixed)(g,1)}return h}(),width:"80px",onChange:function(){function h(g,v){return i("freq",{freq:v})}return h}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function h(){return i("reset",{reset:"code"})}return h}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:l,width:"80px",onChange:function(){function h(g,v){return i("code",{code:v})}return h}()})})]})})})})}return y}()},11243:function(T,r,n){"use strict";r.__esModule=!0,r.Emojipedia=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),p=n(98595),b=r.Emojipedia=function(){function I(k,C){var i=(0,t.useBackend)(C),c=i.data,m=c.emoji_list,l=(0,t.useLocalState)(C,"searchText",""),d=l[0],s=l[1],u=m.filter(function(h){return h.name.toLowerCase().includes(d.toLowerCase())});return(0,e.createComponentVNode)(2,p.Window,{width:325,height:400,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Emojipedia v1.0.1",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by name",value:d,onInput:function(){function h(g,v){return s(v)}return h}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Click on an emoji to copy its tag!",tooltipPosition:"bottom",icon:"circle-question"})],4),children:u.map(function(h){return(0,e.createComponentVNode)(2,o.Button,{m:1,color:"transparent",className:(0,a.classes)(["emoji16x16","emoji-"+h.name]),style:{transform:"scale(1.5)"},tooltip:h.name,onClick:function(){function g(){y(h.name)}return g}()},h.name)})})})})}return I}(),y=function(k){var C=document.createElement("input"),i=":"+k+":";C.value=i,document.body.appendChild(C),C.select(),document.execCommand("copy"),document.body.removeChild(C)}},69784:function(T,r,n){"use strict";r.__esModule=!0,r.EmotePanelContent=r.EmotePanel=void 0;var e=n(89005),a=n(72253),t=n(98595),o=n(36036),p=n(25328),b=r.EmotePanel=function(){function I(k,C){return(0,e.createComponentVNode)(2,t.Window,{width:500,height:550,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,y)})})})}return I}(),y=r.EmotePanelContent=function(){function I(k,C){var i=(0,a.useBackend)(C),c=i.act,m=i.data,l=m.emotes,d=(0,a.useLocalState)(C,"searchText",""),s=d[0],u=d[1],h=(0,a.useLocalState)(C,"filterVisible",""),g=h[0],v=h[1],f=(0,a.useLocalState)(C,"filterAudible",""),N=f[0],V=f[1],B=(0,a.useLocalState)(C,"filterSound",""),S=B[0],L=B[1],w=(0,a.useLocalState)(C,"filterHands",""),A=w[0],x=w[1],E=(0,a.useLocalState)(C,"filterTargettable",""),P=E[0],D=E[1],M=(0,a.useLocalState)(C,"useTarget",""),O=M[0],R=M[1],j=(0,e.createComponentVNode)(2,o.Input,{placeholder:"\u0418\u0441\u043A\u0430\u0442\u044C \u044D\u043C\u043E\u0446\u0438\u044E...",fluid:!0,onInput:function(){function _(W,z){return u(z)}return _}()});return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"\u0424\u0438\u043B\u044C\u0442\u0440\u044B",buttons:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Button,{icon:"eye",align:"center",tooltip:"\u0412\u0438\u0434\u0438\u043C\u044B\u0439",selected:g,onClick:function(){function _(){return v(!g)}return _}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",align:"center",tooltip:"\u0421\u043B\u044B\u0448\u0438\u043C\u044B\u0439",selected:N,onClick:function(){function _(){return V(!N)}return _}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"volume-up",align:"center",tooltip:"\u0417\u0432\u0443\u043A",selected:S,onClick:function(){function _(){return L(!S)}return _}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"hand-paper",align:"center",tooltip:"\u0420\u0443\u043A\u0438",selected:A,onClick:function(){function _(){return x(!A)}return _}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"crosshairs",height:"100%",align:"center",tooltip:"\u0426\u0435\u043B\u044C",selected:P,onClick:function(){function _(){return D(!P)}return _}()})]}),children:j})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:s.length>0?'\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043F\u043E\u0438\u0441\u043A\u0430 "'+s+'"':"\u0412\u0441\u0435 \u044D\u043C\u043E\u0446\u0438\u0438",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"crosshairs",selected:O,onClick:function(){function _(){return R(!O)}return _}(),children:"\u0412\u044B\u0431\u0438\u0440\u0430\u0442\u044C \u0446\u0435\u043B\u044C"}),children:(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:l.filter(function(_){return _.key&&(s.length>0?_.key.toLowerCase().includes(s.toLowerCase())||_.name.toLowerCase().includes(s.toLowerCase()):!0)&&(g?_.visible:!0)&&(N?_.audible:!0)&&(S?_.sound:!0)&&(A?_.hands:!0)&&(P?_.targettable:!0)}).map(function(_){return(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function W(){return c("play_emote",{emote_key:_.key,useTarget:O})}return W}(),children:[_.visible?(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}):"",_.audible?(0,e.createComponentVNode)(2,o.Icon,{name:"comment"}):"",_.sound?(0,e.createComponentVNode)(2,o.Icon,{name:"volume-up"}):"",_.hands?(0,e.createComponentVNode)(2,o.Icon,{name:"hand-paper"}):"",_.targettable?(0,e.createComponentVNode)(2,o.Icon,{name:"crosshairs"}):"",_.name]},_.name)})})})})})],4)}return I}()},36730:function(T,r,n){"use strict";r.__esModule=!0,r.EvolutionMenu=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(98595),b=n(64795),y=n(88510),I=r.EvolutionMenu=function(){function i(c,m){return(0,e.createComponentVNode)(2,p.Window,{width:480,height:580,theme:"changeling",children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,C)]})})})}return i}(),k=function(c,m){var l=(0,t.useBackend)(m),d=l.act,s=l.data,u=s.evo_points,h=s.can_respec;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Evolution Points",height:5.5,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,color:"label",children:"Points remaining:"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,ml:2,bold:!0,color:"#1b945c",children:u}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Button,{ml:2.5,disabled:!h,content:"Readapt",icon:"sync",onClick:function(){function g(){return d("readapt")}return g}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"By transforming a humanoid into a husk, we gain the ability to readapt our chosen evolutions.",tooltipPosition:"bottom",icon:"question-circle"})]})]})})})},C=function(c,m){var l=(0,t.useBackend)(m),d=l.act,s=l.data,u=s.evo_points,h=s.ability_tabs,g=s.purchased_abilities,v=s.view_mode,f=(0,t.useLocalState)(m,"selectedTab",h[0]),N=f[0],V=f[1],B=(0,t.useLocalState)(m,"searchText",""),S=B[0],L=B[1],w=(0,t.useLocalState)(m,"ability_tabs",h[0].abilities),A=w[0],x=w[1],E=function(O,R){if(R===void 0&&(R=""),!O||O.length===0)return[];var j=(0,a.createSearch)(R,function(_){return _.name+"|"+_.description});return(0,b.flow)([(0,y.filter)(function(_){return _==null?void 0:_.name}),(0,y.filter)(j),(0,y.sortBy)(function(_){return _==null?void 0:_.name})])(O)},P=function(O){if(L(O),O==="")return x(N.abilities);x(E(h.map(function(R){return R.abilities}).flat(),O))},D=function(O){V(O),x(O.abilities),L("")};return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Abilities",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Input,{width:"200px",placeholder:"Search Abilities",onInput:function(){function M(O,R){P(R)}return M}(),value:S}),(0,e.createComponentVNode)(2,o.Button,{icon:v?"square-o":"check-square-o",selected:!v,content:"Compact",onClick:function(){function M(){return d("set_view_mode",{mode:0})}return M}()}),(0,e.createComponentVNode)(2,o.Button,{icon:v?"check-square-o":"square-o",selected:v,content:"Expanded",onClick:function(){function M(){return d("set_view_mode",{mode:1})}return M}()})],4),children:[(0,e.createComponentVNode)(2,o.Tabs,{children:h.map(function(M){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:S===""&&N===M,onClick:function(){function O(){D(M)}return O}(),children:M.category},M)})}),A.map(function(M,O){return(0,e.createComponentVNode)(2,o.Box,{p:.5,mx:-1,className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{ml:.5,color:"#dedede",children:M.name}),g.includes(M.power_path)&&(0,e.createComponentVNode)(2,o.Stack.Item,{ml:2,bold:!0,color:"#1b945c",children:"(Purchased)"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mr:3,textAlign:"right",grow:1,children:[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:["Cost:"," "]}),(0,e.createComponentVNode)(2,o.Box,{as:"span",bold:!0,color:"#1b945c",children:M.cost})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{textAlign:"right",children:(0,e.createComponentVNode)(2,o.Button,{mr:.5,disabled:M.cost>u||g.includes(M.power_path),content:"Evolve",onClick:function(){function R(){return d("purchase",{power_path:M.power_path})}return R}()})})]}),!!v&&(0,e.createComponentVNode)(2,o.Stack,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:M.description+" "+M.helptext})]},O)})]})})}},17370:function(T,r,n){"use strict";r.__esModule=!0,r.ExosuitFabricator=void 0;var e=n(89005),a=n(35840),t=n(25328),o=n(72253),p=n(36036),b=n(73379),y=n(98595),I=["id","amount","lineDisplay","onClick"];function k(f,N){if(f==null)return{};var V={};for(var B in f)if({}.hasOwnProperty.call(f,B)){if(N.includes(B))continue;V[B]=f[B]}return V}var C=2e3,i={bananium:"clown",tranquillite:"mime"},c=r.ExosuitFabricator=function(){function f(N,V){var B=(0,o.useBackend)(V),S=B.act,L=B.data,w=L.building,A=L.linked;return A?(0,e.createComponentVNode)(2,y.Window,{width:950,height:625,children:(0,e.createComponentVNode)(2,y.Window.Content,{className:"Exofab",children:[(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,p.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l)}),w&&(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,d)})]})}),(0,e.createComponentVNode)(2,p.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,s)})]})})]})]})}):(0,e.createComponentVNode)(2,g)}return f}(),m=function(N,V){var B=(0,o.useBackend)(V),S=B.act,L=B.data,w=L.materials,A=L.capacity,x=Object.values(w).reduce(function(E,P){return E+P},0);return(0,e.createComponentVNode)(2,p.Section,{fill:!0,scrollable:!0,title:"Materials",className:"Exofab__materials",buttons:(0,e.createComponentVNode)(2,p.Box,{color:"label",mt:"0.25rem",children:[(x/A*100).toPrecision(3),"% full"]}),children:["metal","glass","silver","gold","uranium","titanium","plasma","diamond","bluespace","bananium","tranquillite","plastic"].map(function(E){return(0,e.createComponentVNode)(2,u,{mt:-2,id:E,bold:E==="metal"||E==="glass",onClick:function(){function P(){return S("withdraw",{id:E})}return P}()},E)})})},l=function(N,V){var B=(0,o.useBackend)(V),S=B.act,L=B.data,w=L.curCategory,A=L.categories,x=L.designs,E=L.syncing,P=(0,o.useLocalState)(V,"searchText",""),D=P[0],M=P[1],O=(0,t.createSearch)(D,function(z){return z.name}),R=x.filter(O),j=(0,o.useLocalState)(V,"levelsModal",!1),_=j[0],W=j[1];return(0,e.createComponentVNode)(2,p.Section,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,e.createComponentVNode)(2,p.Dropdown,{width:"19rem",className:"Exofab__dropdown",selected:w,options:A,onSelected:function(){function z(K){return S("category",{cat:K})}return z}()}),buttons:(0,e.createComponentVNode)(2,p.Box,{mt:"2px",children:[(0,e.createComponentVNode)(2,p.Button,{icon:"plus",content:"Queue all",onClick:function(){function z(){return S("queueall")}return z}()}),(0,e.createComponentVNode)(2,p.Button,{icon:"info",content:"Show current tech levels",onClick:function(){function z(){return W(!0)}return z}()}),(0,e.createComponentVNode)(2,p.Button,{icon:"unlink",color:"red",tooltip:"Disconnect from R&D network",onClick:function(){function z(){return S("unlink")}return z}()})]}),children:[(0,e.createComponentVNode)(2,p.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(){function z(K,G){return M(G)}return z}()}),R.map(function(z){return(0,e.createComponentVNode)(2,h,{design:z},z.id)}),R.length===0&&(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"No designs found."})]})},d=function(N,V){var B=(0,o.useBackend)(V),S=B.act,L=B.data,w=L.building,A=L.buildStart,x=L.buildEnd,E=L.worldTime;return(0,e.createComponentVNode)(2,p.Section,{className:"Exofab__building",stretchContents:!0,children:(0,e.createComponentVNode)(2,p.ProgressBar.Countdown,{start:A,current:E,end:x,children:(0,e.createComponentVNode)(2,p.Stack,{children:[(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Icon,{name:"cog",spin:!0})}),(0,e.createComponentVNode)(2,p.Stack.Item,{children:["Building ",w,"\xA0(",(0,e.createComponentVNode)(2,b.Countdown,{current:E,timeLeft:x-E,format:function(){function P(D,M){return M.substr(3)}return P}()}),")"]})]})})})},s=function(N,V){var B=(0,o.useBackend)(V),S=B.act,L=B.data,w=L.queue,A=L.processingQueue,x=Object.entries(L.queueDeficit).filter(function(P){return P[1]<0}),E=w.reduce(function(P,D){return P+D.time},0);return(0,e.createComponentVNode)(2,p.Section,{fill:!0,scrollable:!0,className:"Exofab__queue",title:"Queue",buttons:(0,e.createComponentVNode)(2,p.Box,{children:[(0,e.createComponentVNode)(2,p.Button,{selected:A,icon:A?"toggle-on":"toggle-off",content:"Process",onClick:function(){function P(){return S("process")}return P}()}),(0,e.createComponentVNode)(2,p.Button,{disabled:w.length===0,icon:"eraser",content:"Clear",onClick:function(){function P(){return S("unqueueall")}return P}()})]}),children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:w.length===0?(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"The queue is empty."}):(0,e.createFragment)([(0,e.createComponentVNode)(2,p.Stack.Item,{className:"Exofab__queue--queue",grow:!0,overflow:"auto",children:w.map(function(P,D){return(0,e.createComponentVNode)(2,p.Box,{color:P.notEnough&&"bad",children:[D+1,". ",P.name,D>0&&(0,e.createComponentVNode)(2,p.Button,{icon:"arrow-up",onClick:function(){function M(){return S("queueswap",{from:D+1,to:D})}return M}()}),D0&&(0,e.createComponentVNode)(2,p.Stack.Item,{className:"Exofab__queue--time",children:[(0,e.createComponentVNode)(2,p.Divider),"Processing time:",(0,e.createComponentVNode)(2,p.Icon,{name:"clock",mx:"0.5rem"}),(0,e.createComponentVNode)(2,p.Box,{inline:!0,bold:!0,children:new Date(E/10*1e3).toISOString().substr(14,5)})]}),Object.keys(x).length>0&&(0,e.createComponentVNode)(2,p.Stack.Item,{className:"Exofab__queue--deficit",shrink:"0",children:[(0,e.createComponentVNode)(2,p.Divider),"Lacking materials to complete:",x.map(function(P){return(0,e.createComponentVNode)(2,p.Box,{children:(0,e.createComponentVNode)(2,u,{id:P[0],amount:-P[1],lineDisplay:!0})},P[0])})]})],0)})})},u=function(N,V){var B=(0,o.useBackend)(V),S=B.act,L=B.data,w=N.id,A=N.amount,x=N.lineDisplay,E=N.onClick,P=k(N,I),D=L.materials[w]||0,M=A||D;if(!(M<=0&&!(w==="metal"||w==="glass"))){var O=A&&A>D;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,p.Stack,Object.assign({align:"center",className:(0,a.classes)(["Exofab__material",x&&"Exofab__material--line"])},P,{children:x?(0,e.createFragment)([(0,e.createComponentVNode)(2,p.Stack.Item,{className:(0,a.classes)(["materials32x32",w])}),(0,e.createComponentVNode)(2,p.Stack.Item,{className:"Exofab__material--amount",color:O&&"bad",ml:0,mr:1,children:M.toLocaleString("en-US")})],4):(0,e.createFragment)([(0,e.createComponentVNode)(2,p.Stack.Item,{basis:"content",children:(0,e.createComponentVNode)(2,p.Button,{width:"85%",color:"transparent",onClick:E,children:(0,e.createComponentVNode)(2,p.Box,{mt:1,className:(0,a.classes)(["materials32x32",w])})})}),(0,e.createComponentVNode)(2,p.Stack.Item,{grow:"1",children:[(0,e.createComponentVNode)(2,p.Box,{className:"Exofab__material--name",children:w}),(0,e.createComponentVNode)(2,p.Box,{className:"Exofab__material--amount",children:[M.toLocaleString("en-US")," cm\xB3 (",Math.round(M/C*10)/10," ","sheets)"]})]})],4)})))}},h=function(N,V){var B=(0,o.useBackend)(V),S=B.act,L=B.data,w=N.design;return(0,e.createComponentVNode)(2,p.Box,{className:"Exofab__design",children:[(0,e.createComponentVNode)(2,p.Button,{disabled:w.notEnough||L.building,icon:"cog",content:w.name,onClick:function(){function A(){return S("build",{id:w.id})}return A}()}),(0,e.createComponentVNode)(2,p.Button,{icon:"plus-circle",onClick:function(){function A(){return S("queue",{id:w.id})}return A}()}),(0,e.createComponentVNode)(2,p.Box,{className:"Exofab__design--cost",children:Object.entries(w.cost).map(function(A){return(0,e.createComponentVNode)(2,p.Box,{children:(0,e.createComponentVNode)(2,u,{id:A[0],amount:A[1],lineDisplay:!0})},A[0])})}),(0,e.createComponentVNode)(2,p.Stack,{className:"Exofab__design--time",children:(0,e.createComponentVNode)(2,p.Stack.Item,{children:[(0,e.createComponentVNode)(2,p.Icon,{name:"clock"}),w.time>0?(0,e.createFragment)([w.time/10,(0,e.createTextVNode)(" seconds")],0):"Instant"]})})]})},g=function(N,V){var B=(0,o.useBackend)(V),S=B.act,L=B.data,w=L.controllers;return(0,e.createComponentVNode)(2,y.Window,{children:(0,e.createComponentVNode)(2,y.Window.Content,{children:(0,e.createComponentVNode)(2,p.Section,{title:"Setup Linkage",children:(0,e.createComponentVNode)(2,p.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,p.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,p.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,p.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,p.Table.Cell,{children:"Link"})]}),w.map(function(A){return(0,e.createComponentVNode)(2,p.Table.Row,{children:[(0,e.createComponentVNode)(2,p.Table.Cell,{children:A.addr}),(0,e.createComponentVNode)(2,p.Table.Cell,{children:A.net_id}),(0,e.createComponentVNode)(2,p.Table.Cell,{children:(0,e.createComponentVNode)(2,p.Button,{content:"Link",icon:"link",onClick:function(){function x(){return S("linktonetworkcontroller",{target_controller:A.addr})}return x}()})})]},A.addr)})]})})})})},v=function(N,V){var B=(0,o.useBackend)(V),S=B.act,L=B.data,w=L.tech_levels,A=(0,o.useLocalState)(V,"levelsModal",!1),x=A[0],E=A[1];return x?(0,e.createComponentVNode)(2,p.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:(0,e.createComponentVNode)(2,p.Section,{title:"Current tech levels",buttons:(0,e.createComponentVNode)(2,p.Button,{content:"Close",onClick:function(){function P(){E(!1)}return P}()}),children:(0,e.createComponentVNode)(2,p.LabeledList,{children:w.map(function(P){var D=P.name,M=P.level;return(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:D,children:M},D)})})})}):null}},59128:function(T,r,n){"use strict";r.__esModule=!0,r.ExperimentConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=new Map([[0,{text:"Conscious",color:"good"}],[1,{text:"Unconscious",color:"average"}],[2,{text:"Deceased",color:"bad"}]]),b=new Map([[0,{label:"Probe",icon:"thermometer"}],[1,{label:"Dissect",icon:"brain"}],[2,{label:"Analyze",icon:"search"}]]),y=r.ExperimentConsole=function(){function I(k,C){var i=(0,a.useBackend)(C),c=i.act,m=i.data,l=m.open,d=m.feedback,s=m.occupant,u=m.occupant_name,h=m.occupant_status,g=function(){function f(){if(!s)return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No specimen detected."});var N=function(){function B(){return p.get(h)}return B}(),V=N();return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:V.color,children:V.text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Experiments",children:[0,1,2].map(function(B){return(0,e.createComponentVNode)(2,t.Button,{icon:b.get(B).icon,content:b.get(B).label,onClick:function(){function S(){return c("experiment",{experiment_type:B})}return S}()},B)})})]})}return f}(),v=g();return(0,e.createComponentVNode)(2,o.Window,{theme:"abductor",width:350,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:d})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Scanner",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!l,onClick:function(){function f(){return c("door")}return f}()}),children:v})]})})}return I}()},97086:function(T,r,n){"use strict";r.__esModule=!0,r.ExternalAirlockController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=0,b=1013,y=function(C){var i="good",c=80,m=95,l=110,d=120;return Cl?i="average":C>d&&(i="bad"),i},I=r.ExternalAirlockController=function(){function k(C,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.chamber_pressure,s=l.exterior_status,u=l.interior_status,h=l.processing;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:205,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chamber Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:y(d),value:d,minValue:p,maxValue:b,children:[d," kPa"]})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Abort",icon:"ban",color:"red",disabled:!h,onClick:function(){function g(){return m("abort")}return g}()}),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:h,onClick:function(){function g(){return m("cycle_ext")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:h,onClick:function(){function g(){return m("cycle_int")}return g}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Force Exterior Door",icon:"exclamation-triangle",color:u==="open"?"red":h?"yellow":null,onClick:function(){function g(){return m("force_ext")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Force Interior Door",icon:"exclamation-triangle",color:u==="open"?"red":h?"yellow":null,onClick:function(){function g(){return m("force_int")}return g}()})]})]})]})})}return k}()},96142:function(T,r,n){"use strict";r.__esModule=!0,r.FaxMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.FaxMachine=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data;return(0,e.createComponentVNode)(2,o.Window,{width:540,height:295,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.scan_name?"eject":"id-card",selected:i.scan_name,content:i.scan_name?i.scan_name:"-----",tooltip:i.scan_name?"Eject ID":"Insert ID",onClick:function(){function c(){return C("scan")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorize",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.authenticated?"sign-out-alt":"id-card",selected:i.authenticated,disabled:i.nologin,content:i.realauth?"Log Out":"Log In",onClick:function(){function c(){return C("auth")}return c}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fax Menu",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network",children:i.network}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Document",children:[(0,e.createComponentVNode)(2,t.Button,{icon:i.paper?"eject":"paperclip",disabled:!i.authenticated&&!i.paper,content:i.paper?i.paper:"-----",onClick:function(){function c(){return C("paper")}return c}()}),!!i.paper&&(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function c(){return C("rename")}return c}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sending To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:i.destination?i.destination:"-----",disabled:!i.authenticated,onClick:function(){function c(){return C("dept")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Action",children:(0,e.createComponentVNode)(2,t.Button,{icon:"envelope",content:i.sendError?i.sendError:"Send",disabled:!i.paper||!i.destination||!i.authenticated||i.sendError,onClick:function(){function c(){return C("send")}return c}()})})]})})]})})}return b}()},74123:function(T,r,n){"use strict";r.__esModule=!0,r.FilingCabinet=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.FilingCabinet=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=k.config,m=i.contents,l=c.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Contents",children:[!m&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"folder-open",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"The ",l," is empty."]})}),!!m&&m.slice().map(function(d){return(0,e.createComponentVNode)(2,t.Stack,{mt:.5,className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"80%",children:d.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Retrieve",onClick:function(){function s(){return C("retrieve",{index:d.index})}return s}()})})]},d)})]})})})})}return b}()},83767:function(T,r,n){"use strict";r.__esModule=!0,r.FloorPainter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=function(k,C){var i=(0,a.useBackend)(C),c=i.act,m=i.data,l=k.icon_state,d=k.direction,s=k.isSelected,u=k.onSelect;return(0,e.createComponentVNode)(2,t.DmIcon,{icon:m.icon,icon_state:l,direction:d,onClick:u,style:{"border-style":s&&"solid"||"none","border-width":"2px","border-color":"orange",padding:s&&"0px"||"2px"}})},b={NORTH:1,SOUTH:2,EAST:4,WEST:8},y=r.FloorPainter=function(){function I(k,C){var i=(0,a.useBackend)(C),c=i.act,m=i.data,l=m.availableStyles,d=m.selectedStyle,s=m.selectedDir;return(0,e.createComponentVNode)(2,o.Window,{width:405,height:475,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Decal setup",children:[(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",onClick:function(){function u(){return c("cycle_style",{offset:-1})}return u}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{options:l,selected:d,width:"150px",nochevron:!0,onSelected:function(){function u(h){return c("select_style",{style:h})}return u}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function u(){return c("cycle_style",{offset:1})}return u}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",mb:"5px",children:(0,e.createComponentVNode)(2,t.Flex,{overflowY:"auto",maxHeight:"239px",wrap:"wrap",children:l.map(function(u){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,p,{icon_state:u,isSelected:d===u,onSelect:function(){function h(){return c("select_style",{style:u})}return h}()})},u)})})}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Direction",children:(0,e.createComponentVNode)(2,t.Table,{style:{display:"inline"},children:[b.NORTH,null,b.SOUTH].map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[u+b.WEST,u,u+b.EAST].map(function(h){return(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:h===null?(0,e.createComponentVNode)(2,t.Icon,{name:"arrows-alt",size:3}):(0,e.createComponentVNode)(2,p,{icon_state:d,direction:h,isSelected:h===s,onSelect:function(){function g(){return c("select_direction",{direction:h})}return g}()})},h)})},u)})})})})]})})})}return I}()},53424:function(T,r,n){"use strict";r.__esModule=!0,r.GPS=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(98595),b=function(l){return l?"("+l.join(", ")+")":"ERROR"},y=function(l,d){if(!(!l||!d)){if(l[2]!==d[2])return null;var s=Math.atan2(d[1]-l[1],d[0]-l[0]),u=Math.sqrt(Math.pow(d[1]-l[1],2)+Math.pow(d[0]-l[0],2));return{angle:(0,a.rad2deg)(s),distance:u}}},I=r.GPS=function(){function m(l,d){var s=(0,t.useBackend)(d),u=s.data,h=u.emped,g=u.active,v=u.area,f=u.position,N=u.saved;return(0,e.createComponentVNode)(2,p.Window,{width:400,height:600,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:h?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,k,{emp:!0})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,C)}),g?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i,{area:v,position:f})}),N&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i,{title:"Saved Position",position:N})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,c,{height:"100%"})})],0):(0,e.createComponentVNode)(2,k)],0)})})})}return m}(),k=function(l,d){var s=l.emp;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Box,{width:"100%",height:"100%",color:"label",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:s?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),s?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},C=function(l,d){var s=(0,t.useBackend)(d),u=s.act,h=s.data,g=h.active,v=h.tag,f=h.same_z,N=(0,t.useLocalState)(d,"newTag",v),V=N[0],B=N[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",buttons:(0,e.createComponentVNode)(2,o.Button,{selected:g,icon:g?"toggle-on":"toggle-off",content:g?"On":"Off",onClick:function(){function S(){return u("toggle")}return S}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,o.Input,{width:"5rem",value:v,onEnter:function(){function S(){return u("tag",{newtag:V})}return S}(),onInput:function(){function S(L,w){return B(w)}return S}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:v===V,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function S(){return u("tag",{newtag:V})}return S}(),children:(0,e.createComponentVNode)(2,o.Icon,{name:"pen"})})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,o.Button,{selected:!f,icon:f?"compress":"expand",content:f?"Local Sector":"Global",onClick:function(){function S(){return u("same_z")}return S}()})})]})})},i=function(l,d){var s=l.title,u=l.area,h=l.position;return(0,e.createComponentVNode)(2,o.Section,{title:s||"Position",children:(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",children:[u&&(0,e.createFragment)([u,(0,e.createVNode)(1,"br")],0),b(h)]})})},c=function(l,d){var s=(0,t.useBackend)(d),u=s.data,h=u.position,g=u.signals;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,title:"Signals"},l,{children:(0,e.createComponentVNode)(2,o.Table,{children:g.map(function(v){return Object.assign({},v,y(h,v.position))}).map(function(v,f){return(0,e.createComponentVNode)(2,o.Table.Row,{backgroundColor:f%2===0&&"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{width:"30%",verticalAlign:"middle",color:"label",p:"0.25rem",bold:!0,children:v.tag}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",color:"grey",children:v.area}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",collapsing:!0,children:v.distance!==void 0&&(0,e.createComponentVNode)(2,o.Box,{opacity:Math.max(1-Math.min(v.distance,100)/100,.5),children:[(0,e.createComponentVNode)(2,o.Icon,{name:v.distance>0?"arrow-right":"circle",rotation:-v.angle}),"\xA0",Math.floor(v.distance)+"m"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:b(v.position)})]},f)})})})))}},89124:function(T,r,n){"use strict";r.__esModule=!0,r.GeneModder=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(3939),p=n(98595),b=r.GeneModder=function(){function d(s,u){var h=(0,a.useBackend)(u),g=h.data,v=g.has_seed;return(0,e.createComponentVNode)(2,p.Window,{width:950,height:650,children:[(0,e.createVNode)(1,"div","GeneModder__left",(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,l,{scrollable:!0})}),2),(0,e.createVNode)(1,"div","GeneModder__right",(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,o.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),v===0?(0,e.createComponentVNode)(2,I):(0,e.createComponentVNode)(2,y)]})}),2)]})}return d}(),y=function(s,u){var h=(0,a.useBackend)(u),g=h.act,v=h.data,f=v.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Genes",fill:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})},I=function(s,u){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,height:"85%",children:(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"green",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The plant DNA manipulator is missing a seed."]})})})},k=function(s,u){var h=(0,a.useBackend)(u),g=h.act,v=h.data,f=v.has_seed,N=v.seed,V=v.has_disk,B=v.disk,S,L;return f?S=(0,e.createComponentVNode)(2,t.Stack.Item,{mb:"-6px",mt:"-4px",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+N.image,style:{"vertical-align":"middle",width:"32px",margin:"-1px","margin-left":"-11px"}}),(0,e.createComponentVNode)(2,t.Button,{content:N.name,onClick:function(){function w(){return g("eject_seed")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){function w(){return g("variant_name")}return w}()})]}):S=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:"None",onClick:function(){function w(){return g("eject_seed")}return w}()})}),V?L=B.name:L="None",(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plant Sample",children:S}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Disk",children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:L,tooltip:"Select Empty Disk",onClick:function(){function w(){return g("select_empty_disk")}return w}()})})})]})})},C=function(s,u){var h=(0,a.useBackend)(u),g=h.act,v=h.data,f=v.disk,N=v.core_genes;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core Genes",open:!0,children:[N.map(function(V){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:V.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(f!=null&&f.can_extract),icon:"save",onClick:function(){function B(){return g("extract",{id:V.id})}return B}()})})]},V)})," ",(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract All",disabled:!(f!=null&&f.can_extract),icon:"save",onClick:function(){function V(){return g("bulk_extract_core")}return V}()})})})]},"Core Genes")},i=function(s,u){var h=(0,a.useBackend)(u),g=h.data,v=g.reagent_genes,f=g.has_reagent;return(0,e.createComponentVNode)(2,m,{title:"Reagent Genes",gene_set:v,do_we_show:f})},c=function(s,u){var h=(0,a.useBackend)(u),g=h.data,v=g.trait_genes,f=g.has_trait;return(0,e.createComponentVNode)(2,m,{title:"Trait Genes",gene_set:v,do_we_show:f})},m=function(s,u){var h=s.title,g=s.gene_set,v=s.do_we_show,f=(0,a.useBackend)(u),N=f.act,V=f.data,B=V.disk;return(0,e.createComponentVNode)(2,t.Collapsible,{title:h,open:!0,children:v?g.map(function(S){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:S.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(B!=null&&B.can_extract),icon:"save",onClick:function(){function L(){return N("extract",{id:S.id})}return L}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"times",onClick:function(){function L(){return N("remove",{id:S.id})}return L}()})})]},S)}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"No Genes Detected"})},h)},l=function(s,u){var h=s.title,g=s.gene_set,v=s.do_we_show,f=(0,a.useBackend)(u),N=f.act,V=f.data,B=V.has_seed,S=V.empty_disks,L=V.stat_disks,w=V.trait_disks,A=V.reagent_disks;return(0,e.createComponentVNode)(2,t.Section,{title:"Disks",children:[(0,e.createVNode)(1,"br"),"Empty Disks: ",S,(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{width:12,icon:"arrow-down",tooltip:"Eject an Empty disk",content:"Eject Empty Disk",onClick:function(){function x(){return N("eject_empty_disk")}return x}()}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stats",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[L.slice().sort(function(x,E){return x.display_name.localeCompare(E.display_name)}).map(function(x){return(0,e.createComponentVNode)(2,t.Stack,{mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"49%",children:x.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:25,children:[x.stat==="All"?(0,e.createComponentVNode)(2,t.Button,{content:"Replace All",tooltip:"Write disk stats to seed",disabled:!(x!=null&&x.ready)||!B,icon:"arrow-circle-down",onClick:function(){function E(){return N("bulk_replace_core",{index:x.index})}return E}()}):(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-circle-down",tooltip:"Write disk stat to seed",disabled:!x||!B,content:"Replace",onClick:function(){function E(){return N("replace",{index:x.index,stat:x.stat})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-right",content:"Select",tooltip:"Choose as target for extracted genes",tooltipPosition:"bottom-start",onClick:function(){function E(){return N("select",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:5,icon:"arrow-down",content:"Eject",tooltip:"Eject Disk",tooltipPosition:"bottom-start",onClick:function(){function E(){return N("eject_disk",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:2,icon:x.read_only?"lock":"lock-open",content:"",tool_tip:"Set/unset Read Only",onClick:function(){function E(){return N("set_read_only",{index:x.index,read_only:x.read_only})}return E}()})]})]},x)}),(0,e.createComponentVNode)(2,t.Button)]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Traits",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[w.slice().sort(function(x,E){return x.display_name.localeCompare(E.display_name)}).map(function(x){return(0,e.createComponentVNode)(2,t.Stack,{mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"49%",children:x.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:25,children:[(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-circle-down",disabled:!x||!x.can_insert,tooltip:"Add disk trait to seed",content:"Insert",onClick:function(){function E(){return N("insert",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-right",content:"Select",tooltip:"Choose as target for extracted genes",tooltipPosition:"bottom-start",onClick:function(){function E(){return N("select",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:5,icon:"arrow-down",content:"Eject",tooltip:"Eject Disk",tooltipPosition:"bottom-start",onClick:function(){function E(){return N("eject_disk",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:2,icon:x.read_only?"lock":"lock-open",content:"",tool_tip:"Set/unset Read Only",onClick:function(){function E(){return N("set_read_only",{index:x.index,read_only:x.read_only})}return E}()})]})]},x)}),(0,e.createComponentVNode)(2,t.Button)]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Reagents",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[A.slice().sort(function(x,E){return x.display_name.localeCompare(E.display_name)}).map(function(x){return(0,e.createComponentVNode)(2,t.Stack,{mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"49%",children:x.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:25,children:[(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-circle-down",disabled:!x||!x.can_insert,tooltip:"Add disk reagent to seed",content:"Insert",onClick:function(){function E(){return N("insert",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-right",content:"Select",tooltip:"Choose as target for extracted genes",tooltipPosition:"bottom-start",onClick:function(){function E(){return N("select",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:5,icon:"arrow-down",content:"Eject",tooltip:"Eject Disk",tooltipPosition:"bottom-start",onClick:function(){function E(){return N("eject_disk",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:2,icon:x.read_only?"lock":"lock-open",content:"",tool_tip:"Set/unset Read Only",onClick:function(){function E(){return N("set_read_only",{index:x.index,read_only:x.read_only})}return E}()})]})]},x)}),(0,e.createComponentVNode)(2,t.Button)]})})]})]})}},73053:function(T,r,n){"use strict";r.__esModule=!0,r.GenericCrewManifest=void 0;var e=n(89005),a=n(36036),t=n(98595),o=n(41874),p=r.GenericCrewManifest=function(){function b(y,I){return(0,e.createComponentVNode)(2,t.Window,{theme:"nologo",width:588,height:510,children:(0,e.createComponentVNode)(2,t.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,a.Section,{noTopPadding:!0,children:(0,e.createComponentVNode)(2,o.CrewManifest)})})})}return b}()},42914:function(T,r,n){"use strict";r.__esModule=!0,r.GhostHudPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.GhostHudPanel=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.data,c=i.security,m=i.medical,l=i.diagnostic,d=i.radioactivity,s=i.ahud;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:207,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,b,{label:"Medical",type:"medical",is_active:m}),(0,e.createComponentVNode)(2,b,{label:"Security",type:"security",is_active:c}),(0,e.createComponentVNode)(2,b,{label:"Diagnostic",type:"diagnostic",is_active:l}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,b,{label:"Radioactivity",type:"radioactivity",is_active:d,act_on:"rads_on",act_off:"rads_off"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,b,{label:"Antag HUD",is_active:s,act_on:"ahud_on",act_off:"ahud_off"})]})})})}return y}(),b=function(I,k){var C=(0,a.useBackend)(k),i=C.act,c=I.label,m=I.type,l=m===void 0?null:m,d=I.is_active,s=I.act_on,u=s===void 0?"hud_on":s,h=I.act_off,g=h===void 0?"hud_off":h;return(0,e.createComponentVNode)(2,t.Flex,{pt:.3,color:"label",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{pl:.5,align:"center",width:"80%",children:c}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:.6,content:d?"On":"Off",icon:d?"toggle-on":"toggle-off",selected:d,onClick:function(){function v(){return i(d?g:u,{hud_type:l})}return v}()})})]})}},25825:function(T,r,n){"use strict";r.__esModule=!0,r.GlandDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.GlandDispenser=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.glands,m=c===void 0?[]:c;return(0,e.createComponentVNode)(2,o.Window,{width:300,height:338,theme:"abductor",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:m.map(function(l){return(0,e.createComponentVNode)(2,t.Button,{width:"60px",height:"60px",m:.75,textAlign:"center",fontSize:"17px",lineHeight:"55px",icon:"eject",backgroundColor:l.color,content:l.amount||"0",disabled:!l.amount,onClick:function(){function d(){return C("dispense",{gland_id:l.id})}return d}()},l.id)})})})})}return b}()},10270:function(T,r,n){"use strict";r.__esModule=!0,r.GravityGen=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.GravityGen=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.charging_state,m=i.charge_count,l=i.breaker,d=i.ext_power,s=function(){function h(g){return g>0?(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"average",children:["[ ",g===1?"Charging":"Discharging"," ]"]}):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:d?"good":"bad",children:["[ ",d?"Powered":"Unpowered"," ]"]})}return h}(),u=function(){function h(g){if(g>0)return(0,e.createComponentVNode)(2,t.NoticeBox,{danger:!0,p:1.5,children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," Radiation Detected!"]})}return h}();return(0,e.createComponentVNode)(2,o.Window,{width:350,height:170,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[u(c),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Generator Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:l?"power-off":"times",content:l?"Online":"Offline",color:l?"green":"red",px:1.5,onClick:function(){function h(){return C("breaker")}return h}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Status",color:d?"good":"bad",children:s(c)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gravity Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:m/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})})]})})]})})})}return b}()},48657:function(T,r,n){"use strict";r.__esModule=!0,r.GuestPass=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(49148),b=r.GuestPass=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:690,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"id-card",selected:!c.showlogs,onClick:function(){function m(){return i("mode",{mode:0})}return m}(),children:"Issue Pass"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"scroll",selected:c.showlogs,onClick:function(){function m(){return i("mode",{mode:1})}return m}(),children:["Records (",c.issue_log.length,")"]})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.scan_name?"eject":"id-card",selected:c.scan_name,content:c.scan_name?c.scan_name:"-----",tooltip:c.scan_name?"Eject ID":"Insert ID",onClick:function(){function m(){return i("scan")}return m}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!c.showlogs&&(0,e.createComponentVNode)(2,t.Section,{title:"Issue Guest Pass",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Issue To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.giv_name?c.giv_name:"-----",disabled:!c.scan_name,onClick:function(){function m(){return i("giv_name")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reason",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.reason?c.reason:"-----",disabled:!c.scan_name,onClick:function(){function m(){return i("reason")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.duration?c.duration:"-----",disabled:!c.scan_name,onClick:function(){function m(){return i("duration")}return m}()})})]})})}),!c.showlogs&&(c.scan_name?(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,p.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:c.printmsg,disabled:!c.canprint,onClick:function(){function m(){return i("issue")}return m}()}),grantableList:c.grantableList,accesses:c.regions,selectedList:c.selectedAccess,accessMod:function(){function m(l){return i("access",{access:l})}return m}(),grantAll:function(){function m(){return i("grant_all")}return m}(),denyAll:function(){function m(){return i("clear_all")}return m}(),grantDep:function(){function m(l){return i("grant_region",{region:l})}return m}(),denyDep:function(){function m(l){return i("deny_region",{region:l})}return m}()})}):(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"id-card",size:5,color:"gray",mb:5}),(0,e.createVNode)(1,"br"),"Please, insert ID Card"]})})})})),!!c.showlogs&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Issuance Log",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:!c.scan_name,onClick:function(){function m(){return i("print")}return m}()}),children:!!c.issue_log.length&&(0,e.createComponentVNode)(2,t.LabeledList,{children:c.issue_log.map(function(m,l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:m},l)})})||(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No logs"]})})})})]})})})}return y}()},67834:function(T,r,n){"use strict";r.__esModule=!0,r.HandheldChemDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=[1,5,10,20,30,50],b=null,y=r.HandheldChemDispenser=function(){function C(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:390,height:430,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,I),(0,e.createComponentVNode)(2,k)]})})})}return C}(),I=function(i,c){var m=(0,a.useBackend)(c),l=m.act,d=m.data,s=d.amount,u=d.energy,h=d.maxEnergy,g=d.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:u,minValue:0,maxValue:h,ranges:{good:[h*.5,1/0],average:[h*.25,h*.5],bad:[-1/0,h*.25]},children:[u," / ",h," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Amount",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:p.map(function(v,f){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:s===v,content:v,onClick:function(){function N(){return l("amount",{amount:v})}return N}()})},f)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mode",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:g==="dispense",content:"Dispense",m:"0",width:"32%",onClick:function(){function v(){return l("mode",{mode:"dispense"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:g==="remove",content:"Remove",m:"0",width:"32%",onClick:function(){function v(){return l("mode",{mode:"remove"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:g==="isolate",content:"Isolate",m:"0",width:"32%",onClick:function(){function v(){return l("mode",{mode:"isolate"})}return v}()})]})})]})})})},k=function(i,c){for(var m=(0,a.useBackend)(c),l=m.act,d=m.data,s=d.chemicals,u=s===void 0?[]:s,h=d.current_reagent,g=[],v=0;v<(u.length+1)%3;v++)g.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,height:"18%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:d.glass?"Drink Selector":"Chemical Selector",children:[u.map(function(f,N){return(0,e.createComponentVNode)(2,t.Button,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:h===f.id,content:f.title,style:{"margin-left":"2px"},onClick:function(){function V(){return l("dispense",{reagent:f.id})}return V}()},N)}),g.map(function(f,N){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:"1",basis:"25%"},N)})]})})}},46098:function(T,r,n){"use strict";r.__esModule=!0,r.HealthSensor=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(98595),b=r.HealthSensor=function(){function I(k,C){var i=(0,t.useBackend)(C),c=i.act,m=i.data,l=m.on,d=m.user_health,s=m.minHealth,u=m.maxHealth,h=m.alarm_health;return(0,e.createComponentVNode)(2,p.Window,{width:300,height:125,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scanning",children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:l?"On":"Off",color:l?null:"red",selected:l,onClick:function(){function g(){return c("scan_toggle")}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health activation",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:2,stepPixelSize:6,minValue:s,maxValue:u,value:h,format:function(){function g(v){return(0,a.toFixed)(v,1)}return g}(),width:"80px",onDrag:function(){function g(v,f){return c("alarm_health",{alarm_health:f})}return g}()})}),d!==null&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"User health",children:(0,e.createComponentVNode)(2,o.Box,{color:y(d),bold:d>=100,children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:d})})})]})})})})}return I}(),y=function(k){return k>50?"green":k>0?"orange":"red"}},36771:function(T,r,n){"use strict";r.__esModule=!0,r.Holodeck=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.Holodeck=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=(0,a.useLocalState)(k,"currentDeck",""),l=m[0],d=m[1],s=(0,a.useLocalState)(k,"showReload",!1),u=s[0],h=s[1],g=c.decks,v=c.ai_override,f=c.emagged,N=function(){function V(B){i("select_deck",{deck:B}),d(B),h(!0),setTimeout(function(){h(!1)},3e3)}return V}();return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:[u&&(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Holodeck Control System",children:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"b",null,"Currently Loaded Program:",16)," ",l]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Available Programs",children:[g.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{width:15.5,color:"transparent",content:V,selected:V===l,onClick:function(){function B(){return N(V)}return B}()},V)}),(0,e.createVNode)(1,"hr",null,null,1,{color:"gray"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!v&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Override Protocols",children:(0,e.createComponentVNode)(2,t.Button,{content:f?"Turn On":"Turn Off",color:f?"good":"bad",onClick:function(){function V(){return i("ai_override")}return V}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety Protocols",children:(0,e.createComponentVNode)(2,t.Box,{color:f?"bad":"good",children:[f?"Off":"On",!!f&&(0,e.createComponentVNode)(2,t.Button,{ml:9.5,width:15.5,color:"red",content:"Wildlife Simulation",onClick:function(){function V(){return i("wildlifecarp")}return V}()})]})})]})]})})]})})]})}return y}(),b=function(I,k){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"white",children:(0,e.createVNode)(1,"h1",null,"\xA0Recalibrating projection apparatus.\xA0",16)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,"Please, wait for 3 seconds.",16)})]})}},25471:function(T,r,n){"use strict";r.__esModule=!0,r.Instrument=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(98595),b=r.Instrument=function(){function i(c,m){var l=(0,t.useBackend)(m),d=l.act,s=l.data;return(0,e.createComponentVNode)(2,p.Window,{width:600,height:505,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,I),(0,e.createComponentVNode)(2,C)]})})]})}return i}(),y=function(c,m){var l=(0,t.useBackend)(m),d=l.act,s=l.data,u=s.help;if(u)return(0,e.createComponentVNode)(2,o.Modal,{maxWidth:"75%",height:window.innerHeight*.75+"px",mx:"auto",py:"0",px:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{height:"100%",title:"Help",level:"2",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{px:"0.5rem",mt:"-0.5rem",children:[(0,e.createVNode)(1,"h1",null,"Making a Song",16),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen: "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen: "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"h1",null,"Instrument Advanced Settings",16),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Type:"}),(0,e.createTextVNode)("\xA0Whether the instrument is legacy or synthesized."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Legacy instruments have a collection of sounds that are selectively used depending on the note to play."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Synthesized instruments use a base sound and change its pitch to match the note to play.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Current:"}),(0,e.createTextVNode)("\xA0Which instrument sample to play. Some instruments can be tuned to play different samples. Experiment!")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Note Shift/Note Transpose:"}),(0,e.createTextVNode)("\xA0The pitch to apply to all notes of the song.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain Mode:"}),(0,e.createTextVNode)("\xA0How a played note fades out."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Linear sustain means a note will fade out at a constant rate."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Exponential sustain means a note will fade out at an exponential rate, sounding smoother.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Volume Dropoff Threshold:"}),(0,e.createTextVNode)("\xA0The volume threshold at which a note is fully stopped.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain indefinitely last held note:"}),(0,e.createTextVNode)("\xA0Whether the last note should be sustained indefinitely.")],4)],4),(0,e.createComponentVNode)(2,o.Button,{color:"grey",content:"Close",onClick:function(){function h(){return d("help")}return h}()})]})})})},I=function(c,m){var l=(0,t.useBackend)(m),d=l.act,s=l.data,u=s.lines,h=s.playing,g=s.repeat,v=s.maxRepeats,f=s.tempo,N=s.minTempo,V=s.maxTempo,B=s.tickLag,S=s.volume,L=s.minVolume,w=s.maxVolume,A=s.ready;return(0,e.createComponentVNode)(2,o.Section,{title:"Instrument",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"info",content:"Help",onClick:function(){function x(){return d("help")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file",content:"New",onClick:function(){function x(){return d("newsong")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"upload",content:"Import",onClick:function(){function x(){return d("import")}return x}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Playback",children:[(0,e.createComponentVNode)(2,o.Button,{selected:h,disabled:u.length===0||g<0,icon:"play",content:"Play",onClick:function(){function x(){return d("play")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!h,icon:"stop",content:"Stop",onClick:function(){function x(){return d("stop")}return x}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Repeat",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:0,maxValue:v,value:g,stepPixelSize:59,onChange:function(){function x(E,P){return d("repeat",{new:P})}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tempo",children:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{disabled:f>=V,content:"-",as:"span",mr:"0.5rem",onClick:function(){function x(){return d("tempo",{new:f+B})}return x}()}),(0,a.round)(600/f)," BPM",(0,e.createComponentVNode)(2,o.Button,{disabled:f<=N,content:"+",as:"span",ml:"0.5rem",onClick:function(){function x(){return d("tempo",{new:f-B})}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:L,maxValue:w,value:S,stepPixelSize:6,onDrag:function(){function x(E,P){return d("setvolume",{new:P})}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:A?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Ready"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Instrument Definition Error!"})})]}),(0,e.createComponentVNode)(2,k)]})},k=function(c,m){var l=(0,t.useBackend)(m),d=l.act,s=l.data,u=s.allowedInstrumentNames,h=s.instrumentLoaded,g=s.instrument,v=s.canNoteShift,f=s.noteShift,N=s.noteShiftMin,V=s.noteShiftMax,B=s.sustainMode,S=s.sustainLinearDuration,L=s.sustainExponentialDropoff,w=s.legacy,A=s.sustainDropoffVolume,x=s.sustainHeldNote,E,P;return B===1?(E="Linear",P=(0,e.createComponentVNode)(2,o.Slider,{minValue:.1,maxValue:5,value:S,step:.5,stepPixelSize:85,format:function(){function D(M){return(0,a.round)(M*100)/100+" seconds"}return D}(),onChange:function(){function D(M,O){return d("setlinearfalloff",{new:O/10})}return D}()})):B===2&&(E="Exponential",P=(0,e.createComponentVNode)(2,o.Slider,{minValue:1.025,maxValue:10,value:L,step:.01,format:function(){function D(M){return(0,a.round)(M*1e3)/1e3+"% per decisecond"}return D}(),onChange:function(){function D(M,O){return d("setexpfalloff",{new:O})}return D}()})),u.sort(),(0,e.createComponentVNode)(2,o.Box,{my:-1,children:(0,e.createComponentVNode)(2,o.Collapsible,{mt:"1rem",mb:"0",title:"Advanced",children:(0,e.createComponentVNode)(2,o.Section,{mt:-1,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Type",children:w?"Legacy":"Synthesized"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current",children:h?(0,e.createComponentVNode)(2,o.Dropdown,{options:u,selected:g,width:"50%",onSelected:function(){function D(M){return d("switchinstrument",{name:M})}return D}()}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None!"})}),!!(!w&&v)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Note Shift/Note Transpose",children:(0,e.createComponentVNode)(2,o.Slider,{minValue:N,maxValue:V,value:f,stepPixelSize:2,format:function(){function D(M){return M+" keys / "+(0,a.round)(M/12*100)/100+" octaves"}return D}(),onChange:function(){function D(M,O){return d("setnoteshift",{new:O})}return D}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain Mode",children:[(0,e.createComponentVNode)(2,o.Dropdown,{options:["Linear","Exponential"],selected:E,mb:"0.4rem",onSelected:function(){function D(M){return d("setsustainmode",{new:M})}return D}()}),P]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume Dropoff Threshold",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:.01,maxValue:100,value:A,stepPixelSize:6,onChange:function(){function D(M,O){return d("setdropoffvolume",{new:O})}return D}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain indefinitely last held note",children:(0,e.createComponentVNode)(2,o.Button,{selected:x,icon:x?"toggle-on":"toggle-off",content:x?"Yes":"No",onClick:function(){function D(){return d("togglesustainhold")}return D}()})})],4)]}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){function D(){return d("reset")}return D}()})]})})})},C=function(c,m){var l=(0,t.useBackend)(m),d=l.act,s=l.data,u=s.playing,h=s.lines,g=s.editing;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Editor",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!g||u,icon:"plus",content:"Add Line",onClick:function(){function v(){return d("newline",{line:h.length+1})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{selected:!g,icon:g?"chevron-up":"chevron-down",onClick:function(){function v(){return d("edit")}return v}()})],4),children:!!g&&(h.length>0?(0,e.createComponentVNode)(2,o.LabeledList,{children:h.map(function(v,f){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:f+1,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:u,icon:"pen",onClick:function(){function N(){return d("modifyline",{line:f+1})}return N}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:u,icon:"trash",onClick:function(){function N(){return d("deleteline",{line:f+1})}return N}()})],4),children:v},f)})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Song is empty."}))})}},52736:function(T,r,n){"use strict";r.__esModule=!0,r.Jukebox=void 0;var e=n(89005),a=n(88510),t=n(64795),o=n(72253),p=n(36036),b=n(98595),y=r.Jukebox=function(){function C(i,c){var m=(0,o.useBackend)(c),l=m.act,d=m.data,s=d.active,u=d.looping,h=d.track_selected,g=d.volume,v=d.max_volume,f=d.songs,N=d.startTime,V=d.endTime,B=d.worldTime,S=d.need_coin,L=d.payment,w=d.advanced_admin,A=35,x=!L&&S&&!w,E=(0,t.flow)([(0,a.sortBy)(function(j){return j.name})])(f),P=f.find(function(j){return j.name===h}),D=E.length,M=P?E.findIndex(function(j){return j.name===P.name})+1:0,O=function(){function j(_){var W=Math.floor(_/60),z=_%60,K=String(W).padStart(2,"0")+":"+String(z).padStart(2,"0");return K}return j}(),R=(0,e.createComponentVNode)(2,p.Box,{textAlign:"center",children:[s?u?"\u221E":O(Math.round((B-N)/10)):u?"\u221E":O(P.length)," ","/ ",u?"\u221E":O(P.length)]});return(0,e.createComponentVNode)(2,b.Window,{width:350,height:435,title:"\u041C\u0443\u0437\u044B\u043A\u0430\u043B\u044C\u043D\u044B\u0439 \u0430\u0432\u0442\u043E\u043C\u0430\u0442",children:[x?(0,e.createComponentVNode)(2,k):null,(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.Stack,{children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,p.Section,{fill:!0,title:"\u041F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{bold:!0,maxWidth:"240px",children:P.name.length>A?(0,e.createVNode)(1,"marquee",null,P.name,0):P.name}),(0,e.createComponentVNode)(2,p.Stack,{fill:!0,mt:1.5,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,p.Button,{fluid:!0,icon:s?"pause":"play",color:"transparent",content:s?"\u0421\u0442\u043E\u043F":"\u0421\u0442\u0430\u0440\u0442",selected:s,onClick:function(){function j(){return l("toggle")}return j}()})}),(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,p.Button.Checkbox,{fluid:!0,icon:"undo",content:"\u041F\u043E\u0432\u0442\u043E\u0440",disabled:s||S&&!w,tooltip:S&&!w?"\u0412\u044B \u043D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u0432\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440 \u0437\u0430 \u043C\u043E\u043D\u0435\u0442\u043A\u0443":null,checked:u,onClick:function(){function j(){return l("loop",{looping:!u})}return j}()})})]}),(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.ProgressBar.Countdown,{start:N,current:u?V:B,end:V,children:R})})]})})}),(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Section,{children:[s?(0,e.createComponentVNode)(2,I):null,(0,e.createComponentVNode)(2,p.Stack,{fill:!0,mb:1.5,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,p.Button,{color:"transparent",icon:"fast-backward",onClick:function(){function j(){return l("set_volume",{volume:"min"})}return j}()})}),(0,e.createComponentVNode)(2,p.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,p.Button,{color:"transparent",icon:"undo",onClick:function(){function j(){return l("set_volume",{volume:"reset"})}return j}()})}),(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,m:0,textAlign:"right",children:(0,e.createComponentVNode)(2,p.Button,{color:"transparent",icon:"fast-forward",onClick:function(){function j(){return l("set_volume",{volume:"max"})}return j}()})})]}),(0,e.createComponentVNode)(2,p.Stack.Item,{textAlign:"center",textColor:"label",children:[(0,e.createComponentVNode)(2,p.Knob,{size:2,color:g<=25?"green":g<=50?"":g<=75?"orange":"red",value:g,unit:"%",minValue:0,maxValue:v,step:1,stepPixelSize:5,onDrag:function(){function j(_,W){return l("set_volume",{volume:W})}return j}()}),"Volume"]})]})})]}),(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,p.Section,{fill:!0,scrollable:!0,title:"\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0442\u0440\u0435\u043A\u0438",buttons:(0,e.createComponentVNode)(2,p.Button,{bold:!0,icon:"random",color:"transparent",content:M+"/"+D,tooltip:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u044B\u0439 \u0442\u0440\u0435\u043A",tooltipPosition:"top-end",onClick:function(){function j(){var _=Math.floor(Math.random()*D),W=E[_];l("select_track",{track:W.name})}return j}()}),children:E.map(function(j){return(0,e.createComponentVNode)(2,p.Stack.Item,{mb:.5,textAlign:"left",children:(0,e.createComponentVNode)(2,p.Button,{fluid:!0,selected:P.name===j.name,color:"translucent",content:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:j.name}),(0,e.createComponentVNode)(2,p.Stack.Item,{children:O(j.length)})]}),onClick:function(){function _(){l("select_track",{track:j.name})}return _}()})},j.name)})})})]})})]})}return C}(),I=function(){return(0,e.createComponentVNode)(2,p.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,p.Icon,{name:"music",size:"3",color:"gray",mb:1}),(0,e.createComponentVNode)(2,p.Box,{color:"label",bold:!0,children:"\u0418\u0433\u0440\u0430\u0435\u0442 \u043C\u0443\u0437\u044B\u043A\u0430"})]})},k=function(){return(0,e.createComponentVNode)(2,p.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,p.Icon,{name:"coins",size:"6",color:"gold",mr:1}),(0,e.createComponentVNode)(2,p.Box,{color:"label",bold:!0,mt:5,fontSize:2,children:"\u0412\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u043C\u043E\u043D\u0435\u0442\u043A\u0443"})]})}},13618:function(T,r,n){"use strict";r.__esModule=!0,r.KeyComboModal=void 0;var e=n(89005),a=n(70611),t=n(72253),o=n(36036),p=n(98595),b=n(19203),y=n(51057),I=function(l){return l.key!==a.KEY.Alt&&l.key!==a.KEY.Control&&l.key!==a.KEY.Shift&&l.key!==a.KEY.Escape},k={DEL:"Delete",DOWN:"South",END:"Southwest",HOME:"Northwest",INSERT:"Insert",LEFT:"West",PAGEDOWN:"Southeast",PAGEUP:"Northeast",RIGHT:"East",SPACEBAR:"Space",UP:"North"},C=3,i=function(l){var d="";if(l.altKey&&(d+="Alt"),l.ctrlKey&&(d+="Ctrl"),l.shiftKey&&!(l.keyCode>=48&&l.keyCode<=57)&&(d+="Shift"),l.location===C&&(d+="Numpad"),I(l))if(l.shiftKey&&l.keyCode>=48&&l.keyCode<=57){var s=l.keyCode-48;d+="Shift"+s}else{var u=l.key.toUpperCase();d+=k[u]||u}return d},c=r.KeyComboModal=function(){function m(l,d){var s=(0,t.useBackend)(d),u=s.act,h=s.data,g=h.init_value,v=h.large_buttons,f=h.message,N=f===void 0?"":f,V=h.title,B=h.timeout,S=(0,t.useLocalState)(d,"input",g),L=S[0],w=S[1],A=(0,t.useLocalState)(d,"binding",!0),x=A[0],E=A[1],P=function(){function O(R){if(!x){R.key===a.KEY.Enter&&u("submit",{entry:L}),(0,a.isEscape)(R.key)&&u("cancel");return}if(R.preventDefault(),I(R)){D(i(R)),E(!1);return}else if(R.key===a.KEY.Escape){D(g),E(!1);return}}return O}(),D=function(){function O(R){R!==L&&w(R)}return O}(),M=130+(N.length>30?Math.ceil(N.length/3):0)+(N.length&&v?5:0);return(0,e.createComponentVNode)(2,p.Window,{title:V,width:240,height:M,children:[B&&(0,e.createComponentVNode)(2,y.Loader,{value:B}),(0,e.createComponentVNode)(2,p.Window.Content,{onKeyDown:function(){function O(R){P(R)}return O}(),children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Autofocus),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:N})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:x,content:x&&x!==null?"Awaiting input...":""+L,width:"100%",textAlign:"center",onClick:function(){function O(){D(g),E(!0)}return O}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,b.InputButtons,{input:L})})]})]})})]})}return m}()},35655:function(T,r,n){"use strict";r.__esModule=!0,r.KeycardAuth=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.KeycardAuth=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=(0,e.createComponentVNode)(2,t.Section,{title:"Keycard Authentication Device",children:(0,e.createComponentVNode)(2,t.Box,{children:"This device is used to trigger certain high security events. It requires the simultaneous swipe of two high-level ID cards."})});if(!i.swiping&&!i.busy)return(0,e.createComponentVNode)(2,o.Window,{width:540,height:280,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[c,(0,e.createComponentVNode)(2,t.Section,{title:"Choose Action",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Red Alert",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",disabled:!i.redAvailable,onClick:function(){function l(){return C("triggerevent",{triggerevent:"Red Alert"})}return l}(),content:"Red Alert"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ERT",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",onClick:function(){function l(){return C("triggerevent",{triggerevent:"Emergency Response Team"})}return l}(),content:"Call ERT"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Maint Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function l(){return C("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})}return l}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function l(){return C("triggerevent",{triggerevent:"Revoke Emergency Maintenance Access"})}return l}(),content:"Revoke"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Station-Wide Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function l(){return C("triggerevent",{triggerevent:"Activate Station-Wide Emergency Access"})}return l}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function l(){return C("triggerevent",{triggerevent:"Deactivate Station-Wide Emergency Access"})}return l}(),content:"Revoke"})]})]})})]})});var m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Waiting for YOU to swipe your ID..."});return!i.hasSwiped&&!i.ertreason&&i.event==="Emergency Response Team"?m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Fill out the reason for your ERT request."}):i.hasConfirm?m=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Request Confirmed!"}):i.isRemote?m=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):i.hasSwiped&&(m=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Waiting for second person to confirm..."})),(0,e.createComponentVNode)(2,o.Window,{width:540,height:265,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[c,i.event==="Emergency Response Team"&&(0,e.createComponentVNode)(2,t.Section,{title:"Reason for ERT Call",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{color:i.ertreason?"":"red",icon:i.ertreason?"check":"pencil-alt",content:i.ertreason?i.ertreason:"-----",disabled:i.busy,onClick:function(){function l(){return C("ert")}return l}()})})}),(0,e.createComponentVNode)(2,t.Section,{title:i.event,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back",disabled:i.busy||i.hasConfirm,onClick:function(){function l(){return C("reset")}return l}()}),children:m})]})})}return b}()},62955:function(T,r,n){"use strict";r.__esModule=!0,r.KitchenMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(62411),b=r.KitchenMachine=function(){function I(k,C){var i=(0,a.useBackend)(C),c=i.data,m=i.config,l=c.ingredients,d=c.operating,s=m.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.Operating,{operating:d,name:s}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,y)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Ingredients",children:(0,e.createComponentVNode)(2,t.Table,{className:"Ingredient__Table",children:l.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{tr:5,children:[(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:u.name}),2),(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:[u.amount," ",u.units]}),2)]},u.name)})})})})]})})})}return I}(),y=function(k,C){var i=(0,a.useBackend)(C),c=i.act,m=i.data,l=m.inactive,d=m.tooltip;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:l,tooltip:l?d:"",tooltipPosition:"bottom",content:"Activate",onClick:function(){function s(){return c("cook")}return s}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:l,tooltip:l?d:"",tooltipPosition:"bottom",content:"Eject Contents",onClick:function(){function s(){return c("eject")}return s}()})})]})})}},9525:function(T,r,n){"use strict";r.__esModule=!0,r.LawManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.LawManager=function(){function k(C,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.isAdmin,s=l.isSlaved,u=l.isMalf,h=l.isAIMalf,g=l.view;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:u?620:365,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!(d&&s)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["This unit is slaved to ",s,"."]}),!!(u||h)&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Law Management",selected:g===0,onClick:function(){function v(){return m("set_view",{set_view:0})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Lawsets",selected:g===1,onClick:function(){function v(){return m("set_view",{set_view:1})}return v}()})]}),g===0&&(0,e.createComponentVNode)(2,b),g===1&&(0,e.createComponentVNode)(2,y)]})})}return k}(),b=function(C,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.has_zeroth_laws,s=l.zeroth_laws,u=l.has_ion_laws,h=l.ion_laws,g=l.ion_law_nr,v=l.has_inherent_laws,f=l.inherent_laws,N=l.has_supplied_laws,V=l.supplied_laws,B=l.channels,S=l.channel,L=l.isMalf,w=l.isAdmin,A=l.zeroth_law,x=l.ion_law,E=l.inherent_law,P=l.supplied_law,D=l.supplied_law_position;return(0,e.createFragment)([!!d&&(0,e.createComponentVNode)(2,I,{title:"ERR_NULL_VALUE",laws:s,ctx:i}),!!u&&(0,e.createComponentVNode)(2,I,{title:g,laws:h,ctx:i}),!!v&&(0,e.createComponentVNode)(2,I,{title:"Inherent",laws:f,ctx:i}),!!N&&(0,e.createComponentVNode)(2,I,{title:"Supplied",laws:V,ctx:i}),(0,e.createComponentVNode)(2,t.Section,{title:"Statement Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Statement Channel",children:B.map(function(M){return(0,e.createComponentVNode)(2,t.Button,{content:M.channel,selected:M.channel===S,onClick:function(){function O(){return m("law_channel",{law_channel:M.channel})}return O}()},M.channel)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State Laws",children:(0,e.createComponentVNode)(2,t.Button,{content:"State Laws",onClick:function(){function M(){return m("state_laws")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Law Notification",children:(0,e.createComponentVNode)(2,t.Button,{content:"Notify",onClick:function(){function M(){return m("notify_laws")}return M}()})})]})}),!!L&&(0,e.createComponentVNode)(2,t.Section,{title:"Add Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"60%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Actions"})]}),!!(w&&!d)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Zero"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:A}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_zeroth_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_zeroth_law")}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ion"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:x}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_ion_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_ion_law")}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Inherent"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:E}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_inherent_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_inherent_law")}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Supplied"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:P}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:D,onClick:function(){function M(){return m("change_supplied_law_position")}return M}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_supplied_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_supplied_law")}return M}()})]})]})]})})],0)},y=function(C,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.law_sets;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name+" - "+s.header,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Load Laws",icon:"download",onClick:function(){function u(){return m("transfer_laws",{transfer_laws:s.ref})}return u}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.laws.has_ion_laws>0&&s.laws.ion_laws.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.index,children:u.law},u.index)}),s.laws.has_zeroth_laws>0&&s.laws.zeroth_laws.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.index,children:u.law},u.index)}),s.laws.has_inherent_laws>0&&s.laws.inherent_laws.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.index,children:u.law},u.index)}),s.laws.has_supplied_laws>0&&s.laws.inherent_laws.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.index,children:u.law},u.index)})]})},s.name)})})},I=function(C,i){var c=(0,a.useBackend)(C.ctx),m=c.act,l=c.data,d=l.isMalf;return(0,e.createComponentVNode)(2,t.Section,{title:C.title+" Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"69%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"21%",children:"State?"})]}),C.laws.map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.index}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.law}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:s.state?"Yes":"No",selected:s.state,onClick:function(){function u(){return m("state_law",{ref:s.ref,state_law:s.state?0:1})}return u}()}),!!d&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function u(){return m("edit_law",{edit_law:s.ref})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){function u(){return m("delete_law",{delete_law:s.ref})}return u}()})],4)]})]},s.law)})]})})}},85066:function(T,r,n){"use strict";r.__esModule=!0,r.LibraryComputer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(3939),b=r.LibraryComputer=function(){function g(v,f){return(0,e.createComponentVNode)(2,o.Window,{width:1050,height:600,children:[(0,e.createComponentVNode)(2,p.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})})]})}return g}(),y=function(v,f){var N=(0,a.useBackend)(f),V=N.act,B=N.data,S=v.args,L=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:S.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:S.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:S.summary}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[S.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",verticalAlign:"top"})]}),!S.isProgrammatic&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Categories",children:S.categories.join(", ")})]}),(0,e.createVNode)(1,"br"),L===S.ckey&&(0,e.createComponentVNode)(2,t.Button,{content:"Delete Book",icon:"trash",color:"red",disabled:S.isProgrammatic,onClick:function(){function w(){return V("delete_book",{bookid:S.id,user_ckey:L})}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Report Book",icon:"flag",color:"red",disabled:S.isProgrammatic,onClick:function(){function w(){return(0,p.modalOpen)(f,"report_book",{bookid:S.id})}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rate Book",icon:"star",color:"caution",disabled:S.isProgrammatic,onClick:function(){function w(){return(0,p.modalOpen)(f,"rate_info",{bookid:S.id})}return w}()})]})},I=function(v,f){var N=(0,a.useBackend)(f),V=N.act,B=N.data,S=v.args,L=B.selected_report,w=B.report_categories,A=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",title:"Report this book for Rule Violations",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:S.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reasons",children:(0,e.createComponentVNode)(2,t.Box,{children:w.map(function(x,E){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:x.description,selected:x.category_id===L,onClick:function(){function P(){return V("set_report",{report_type:x.category_id})}return P}()}),(0,e.createVNode)(1,"br")],4,E)})})})]}),(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,icon:"paper-plane",content:"Submit Report",onClick:function(){function x(){return V("submit_report",{bookid:S.id,user_ckey:A})}return x}()})]})},k=function(v,f){var N=(0,a.useBackend)(f),V=N.act,B=N.data,S=B.selected_rating,L=Array(10).fill().map(function(w,A){return 1+A});return(0,e.createComponentVNode)(2,t.Stack,{children:[L.map(function(w,A){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{bold:!0,icon:"star",color:S>=w?"caution":"default",onClick:function(){function x(){return V("set_rating",{rating_value:w})}return x}()})},A)}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,ml:2,fontSize:"150%",children:[S+"/10",(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"top"})]})]})},C=function(v,f){var N=(0,a.useBackend)(f),V=N.act,B=N.data,S=v.args,L=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:S.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:S.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[S.current_rating?S.current_rating:0,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Ratings",children:S.total_ratings?S.total_ratings:0})]}),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,t.Button.Confirm,{mt:2,content:"Submit",icon:"paper-plane",onClick:function(){function w(){return V("rate_book",{bookid:S.id,user_ckey:L})}return w}()})]})},i=function(v,f){var N=(0,a.useBackend)(f),V=N.data,B=(0,a.useLocalState)(f,"tabIndex",0),S=B[0],L=B[1],w=V.login_state;return(0,e.createComponentVNode)(2,t.Stack.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:S===0,onClick:function(){function A(){return L(0)}return A}(),children:"Book Archives"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:S===1,onClick:function(){function A(){return L(1)}return A}(),children:"Corporate Literature"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:S===2,onClick:function(){function A(){return L(2)}return A}(),children:"Upload Book"}),w===1&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:S===3,onClick:function(){function A(){return L(3)}return A}(),children:"Patron Manager"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:S===4,onClick:function(){function A(){return L(4)}return A}(),children:"Inventory"})]})})},c=function(v,f){var N=(0,a.useLocalState)(f,"tabIndex",0),V=N[0];switch(V){case 0:return(0,e.createComponentVNode)(2,l);case 1:return(0,e.createComponentVNode)(2,d);case 2:return(0,e.createComponentVNode)(2,s);case 3:return(0,e.createComponentVNode)(2,u);case 4:return(0,e.createComponentVNode)(2,h);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},m=function(v,f){var N=(0,a.useBackend)(f),V=N.act,B=N.data,S=B.searchcontent,L=B.book_categories,w=B.user_ckey,A=[];return L.map(function(x){return A[x.description]=x.category_id}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"35%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"edit",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Inputs"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:S.title||"Input Title",onClick:function(){function x(){return(0,p.modalOpen)(f,"edit_search_title")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:S.author||"Input Author",onClick:function(){function x(){return(0,p.modalOpen)(f,"edit_search_author")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Ratings",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:1,width:"min-content",content:S.ratingmin,onClick:function(){function x(){return(0,p.modalOpen)(f,"edit_search_ratingmin")}return x}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:"To"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:1,width:"min-content",content:S.ratingmax,onClick:function(){function x(){return(0,p.modalOpen)(f,"edit_search_ratingmax")}return x}()})})]})})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"clipboard-list",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Book Categories"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Dropdown,{mt:.6,width:"190px",options:L.map(function(x){return x.description}),onSelected:function(){function x(E){return V("toggle_search_category",{category_id:A[E]})}return x}()})})})}),(0,e.createVNode)(1,"br"),L.filter(function(x){return S.categories.includes(x.category_id)}).map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.description,selected:!0,icon:"unlink",onClick:function(){function E(){return V("toggle_search_category",{category_id:x.category_id})}return E}()},x.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Actions"]}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Search",icon:"eraser",onClick:function(){function x(){return V("clear_search")}return x}()}),S.ckey?(0,e.createComponentVNode)(2,t.Button,{mb:.5,content:"Stop Showing My Books",color:"bad",icon:"search",onClick:function(){function x(){return V("clear_ckey_search")}return x}()}):(0,e.createComponentVNode)(2,t.Button,{content:"Find My Books",icon:"search",onClick:function(){function x(){return V("find_users_books",{user_ckey:w})}return x}()})]})]})},l=function(v,f){var N=(0,a.useBackend)(f),V=N.act,B=N.data,S=B.external_booklist,L=B.archive_pagenumber,w=B.num_pages,A=B.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Access",buttons:(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",disabled:L===1,onClick:function(){function x(){return V("deincrementpagemax")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",disabled:L===1,onClick:function(){function x(){return V("deincrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{bold:!0,content:L,onClick:function(){function x(){return(0,p.modalOpen)(f,"setpagenumber")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",disabled:L===w,onClick:function(){function x(){return V("incrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",disabled:L===w,onClick:function(){function x(){return V("incrementpagemax")}return x}()})],4),children:[(0,e.createComponentVNode)(2,m),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ratings"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Category"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),S.map(function(x){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:x.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:.5}),x.title.length>45?x.title.substr(0,45)+"...":x.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:x.author.length>30?x.author.substr(0,30)+"...":x.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[x.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",ml:.5,color:"yellow",verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:x.categories.join(", ").substr(0,45)}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[A===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function E(){return V("order_external_book",{bookid:x.id})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function E(){return(0,p.modalOpen)(f,"expand_info",{bookid:x.id})}return E}()})]})]},x.id)})]})]})},d=function(v,f){var N=(0,a.useBackend)(f),V=N.act,B=N.data,S=B.programmatic_booklist,L=B.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Corporate Book Catalog",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),S.map(function(w,A){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:2}),w.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[L===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function x(){return V("order_programmatic_book",{bookid:w.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function x(){return(0,p.modalOpen)(f,"expand_info",{bookid:w.id})}return x}()})]})]},A)})]})})},s=function(v,f){var N=(0,a.useBackend)(f),V=N.act,B=N.data,S=B.selectedbook,L=B.book_categories,w=B.user_ckey,A=[];return L.map(function(x){return A[x.description]=x.category_id}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Upload",buttons:(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,width:9.5,icon:"upload",disabled:S.copyright,content:"Upload Book",onClick:function(){function x(){return V("uploadbook",{user_ckey:w})}return x}()}),children:[S.copyright?(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"WARNING: You cannot upload or modify the attributes of a copyrighted book"}):(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{ml:15,mb:3,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:2}),"Book Uploader"]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:S.copyright,content:S.title,onClick:function(){function x(){return(0,p.modalOpen)(f,"edit_selected_title")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:S.copyright,content:S.author,onClick:function(){function x(){return(0,p.modalOpen)(f,"edit_selected_author")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"240px",options:L.map(function(x){return x.description}),onSelected:function(){function x(E){return V("toggle_upload_category",{category_id:A[E]})}return x}()})})})]}),(0,e.createVNode)(1,"br"),L.filter(function(x){return S.categories.includes(x.category_id)}).map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.description,disabled:S.copyright,selected:!0,icon:"unlink",onClick:function(){function E(){return V("toggle_upload_category",{category_id:x.category_id})}return E}()},x.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:75,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",width:"auto",disabled:S.copyright,content:"Edit Summary",onClick:function(){function x(){return(0,p.modalOpen)(f,"edit_selected_summary")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:S.summary})]})})]})]})},u=function(v,f){var N=(0,a.useBackend)(f),V=N.act,B=N.data,S=B.checkout_data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Checked Out Books",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Patron"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),S.map(function(L,w){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-tag"}),L.patron_name]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:L.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.timeleft>=0?L.timeleft:"LATE"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:(0,e.createComponentVNode)(2,t.Button,{content:"Mark Lost",icon:"flag",color:"bad",disabled:L.timeleft>=0,onClick:function(){function A(){return V("reportlost",{libraryid:L.libraryid})}return A}()})})]},w)})]})})},h=function(v,f){var N=(0,a.useBackend)(f),V=N.act,B=N.data,S=B.inventory_list;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Library Inventory",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"LIB ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"})]}),S.map(function(L,w){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.libraryid}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"})," ",L.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:L.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:L.checked_out?"Checked Out":"Available"})]},w)})]})})};(0,p.modalRegisterBodyOverride)("expand_info",y),(0,p.modalRegisterBodyOverride)("report_book",I),(0,p.modalRegisterBodyOverride)("rate_info",C)},9516:function(T,r,n){"use strict";r.__esModule=!0,r.LibraryManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(3939),b=r.LibraryManager=function(){function i(c,m){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:600,children:[(0,e.createComponentVNode)(2,p.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,y)})]})}return i}(),y=function(c,m){var l=(0,a.useBackend)(m),d=l.act,s=l.data,u=s.pagestate;switch(u){case 1:return(0,e.createComponentVNode)(2,I);case 2:return(0,e.createComponentVNode)(2,C);case 3:return(0,e.createComponentVNode)(2,k);default:return"WE SHOULDN'T BE HERE!"}},I=function(c,m){var l=(0,a.useBackend)(m),d=l.act,s=l.data;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.4rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-shield",verticalAlign:"middle",size:3,mr:"1rem"}),"Library Manager"]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"trash",width:"auto",color:"danger",content:"Delete Book by SSID",onClick:function(){function u(){return(0,p.modalOpen)(m,"specify_ssid_delete")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",width:"auto",color:"danger",content:"Delete All Books By CKEY",onClick:function(){function u(){return(0,p.modalOpen)(m,"specify_ckey_delete")}return u}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Books By CKEY",onClick:function(){function u(){return(0,p.modalOpen)(m,"specify_ckey_search")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Reported Books",onClick:function(){function u(){return d("view_reported_books")}return u}()})]})},k=function(c,m){var l=(0,a.useBackend)(m),d=l.act,s=l.data,u=s.reports;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-secret",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"All Reported Books",(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function h(){return d("return")}return h}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Uploader CKEY"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Report Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reporter Ckey"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),u.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:h.uploader_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),h.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:h.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:h.report_description}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:h.reporter_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",onClick:function(){function g(){return d("delete_book",{bookid:h.id})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Unflag",icon:"flag",color:"caution",onClick:function(){function g(){return d("unflag_book",{bookid:h.id})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function g(){return d("view_book",{bookid:h.id})}return g}()})]})]},h.id)})]})})},C=function(c,m){var l=(0,a.useBackend)(m),d=l.act,s=l.data,u=s.ckey,h=s.booklist;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"Books uploaded by ",u,(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function g(){return d("return")}return g}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),h.map(function(g){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:g.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),g.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:g.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",color:"bad",onClick:function(){function v(){return d("delete_book",{bookid:g.id})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function v(){return d("view_book",{bookid:g.id})}return v}()})]})]},g.id)})]})})}},90447:function(T,r,n){"use strict";r.__esModule=!0,r.ListInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(36036),p=n(72253),b=n(92986),y=n(98595),I=r.ListInputModal=function(){function i(c,m){var l=(0,p.useBackend)(m),d=l.act,s=l.data,u=s.items,h=u===void 0?[]:u,g=s.message,v=g===void 0?"":g,f=s.init_value,N=s.timeout,V=s.title,B=(0,p.useLocalState)(m,"selected",h.indexOf(f)),S=B[0],L=B[1],w=(0,p.useLocalState)(m,"searchBarVisible",h.length>10),A=w[0],x=w[1],E=(0,p.useLocalState)(m,"searchQuery",""),P=E[0],D=E[1],M=function(){function G(Q){var J=z.length-1;if(Q===b.KEY_DOWN)if(S===null||S===J){var ue;L(0),(ue=document.getElementById("0"))==null||ue.scrollIntoView()}else{var ie;L(S+1),(ie=document.getElementById((S+1).toString()))==null||ie.scrollIntoView()}else if(Q===b.KEY_UP)if(S===null||S===0){var pe;L(J),(pe=document.getElementById(J.toString()))==null||pe.scrollIntoView()}else{var te;L(S-1),(te=document.getElementById((S-1).toString()))==null||te.scrollIntoView()}}return G}(),O=function(){function G(Q){Q!==S&&L(Q)}return G}(),R=function(){function G(){x(!1),x(!0)}return G}(),j=function(){function G(Q){var J=String.fromCharCode(Q),ue=h.find(function(te){return te==null?void 0:te.toLowerCase().startsWith(J==null?void 0:J.toLowerCase())});if(ue){var ie,pe=h.indexOf(ue);L(pe),(ie=document.getElementById(pe.toString()))==null||ie.scrollIntoView()}}return G}(),_=function(){function G(Q){var J;Q!==P&&(D(Q),L(0),(J=document.getElementById("0"))==null||J.scrollIntoView())}return G}(),W=function(){function G(){x(!A),D("")}return G}(),z=h.filter(function(G){return G==null?void 0:G.toLowerCase().includes(P.toLowerCase())}),K=330+Math.ceil(v.length/3);return A||setTimeout(function(){var G;return(G=document.getElementById(S.toString()))==null?void 0:G.focus()},1),(0,e.createComponentVNode)(2,y.Window,{title:V,width:325,height:K,children:[N&&(0,e.createComponentVNode)(2,a.Loader,{value:N}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function G(Q){var J=window.event?Q.which:Q.keyCode;(J===b.KEY_DOWN||J===b.KEY_UP)&&(Q.preventDefault(),M(J)),J===b.KEY_ENTER&&(Q.preventDefault(),d("submit",{entry:z[S]})),!A&&J>=b.KEY_A&&J<=b.KEY_Z&&(Q.preventDefault(),j(J)),J===b.KEY_ESCAPE&&(Q.preventDefault(),d("cancel"))}return G}(),children:(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{compact:!0,icon:A?"search":"font",selected:!0,tooltip:A?"Search Mode. Type to search or use arrow keys to select manually.":"Hotkey Mode. Type a letter to jump to the first match. Enter to select.",tooltipPosition:"left",onClick:function(){function G(){return W()}return G}()}),className:"ListInput__Section",fill:!0,title:v,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,k,{filteredItems:z,onClick:O,onFocusSearch:R,searchBarVisible:A,selected:S})}),(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:A&&(0,e.createComponentVNode)(2,C,{filteredItems:z,onSearch:_,searchQuery:P,selected:S})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:z[S]})})]})})})]})}return i}(),k=function(c,m){var l=(0,p.useBackend)(m),d=l.act,s=c.filteredItems,u=c.onClick,h=c.onFocusSearch,g=c.searchBarVisible,v=c.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:s.map(function(f,N){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"transparent",id:N,onClick:function(){function V(){return u(N)}return V}(),onDblClick:function(){function V(B){B.preventDefault(),d("submit",{entry:s[v]})}return V}(),onKeyDown:function(){function V(B){var S=window.event?B.which:B.keyCode;g&&S>=b.KEY_A&&S<=b.KEY_Z&&(B.preventDefault(),h())}return V}(),selected:N===v,style:{animation:"none",transition:"none"},children:f.replace(/^\w/,function(V){return V.toUpperCase()})},N)})})},C=function(c,m){var l=(0,p.useBackend)(m),d=l.act,s=c.filteredItems,u=c.onSearch,h=c.searchQuery,g=c.selected;return(0,e.createComponentVNode)(2,o.Input,{width:"100%",autoFocus:!0,autoSelect:!0,onEnter:function(){function v(f){f.preventDefault(),d("submit",{entry:s[g]})}return v}(),onInput:function(){function v(f,N){return u(N)}return v}(),placeholder:"Search...",value:h})}},26826:function(T,r,n){"use strict";r.__esModule=!0,r.Loadout=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(98595),b={Default:function(){function c(m,l){return m.gear.gear_tier-l.gear.gear_tier}return c}(),Alphabetical:function(){function c(m,l){return m.gear.name.toLowerCase().localeCompare(l.gear.name.toLowerCase())}return c}(),Cost:function(){function c(m,l){return m.gear.cost-l.gear.cost}return c}()},y=r.Loadout=function(){function c(m,l){var d=(0,t.useBackend)(l),s=d.act,u=d.data,h=(0,t.useLocalState)(l,"search",!1),g=h[0],v=h[1],f=(0,t.useLocalState)(l,"searchText",""),N=f[0],V=f[1],B=(0,t.useLocalState)(l,"category",Object.keys(u.gears)[0]),S=B[0],L=B[1],w=(0,t.useLocalState)(l,"tweakedGear",""),A=w[0],x=w[1];return(0,e.createComponentVNode)(2,p.Window,{width:975,height:650,children:[A&&(0,e.createComponentVNode)(2,i,{tweakedGear:A,setTweakedGear:x}),(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,I,{category:S,setCategory:L})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"25%",children:(0,e.createComponentVNode)(2,C,{setTweakedGear:x})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"75%",children:(0,e.createComponentVNode)(2,k,{category:S,search:g,setSearch:v,searchText:N,setSearchText:V})})]})})]})})]})}return c}(),I=function(m,l){var d=(0,t.useBackend)(l),s=d.act,u=d.data,h=m.category,g=m.setCategory;return(0,e.createComponentVNode)(2,o.Tabs,{fluid:!0,textAlign:"center",style:{"flex-wrap":"wrap-reverse"},children:Object.keys(u.gears).map(function(v){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:v===h,style:{"white-space":"nowrap"},onClick:function(){function f(){return g(v)}return f}(),children:v},v)})})},k=function(m,l){var d=(0,t.useBackend)(l),s=d.act,u=d.data,h=u.user_tier,g=u.gear_slots,v=u.max_gear_slots,f=m.category,N=m.search,V=m.setSearch,B=m.searchText,S=m.setSearchText,L=(0,t.useLocalState)(l,"sortType","Default"),w=L[0],A=L[1],x=(0,t.useLocalState)(l,"sortReverse",!1),E=x[0],P=x[1],D=(0,a.createSearch)(B,function(O){return O.name}),M;return B.length>2?M=Object.entries(u.gears).reduce(function(O,R){var j=R[0],_=R[1];return O.concat(Object.entries(_).map(function(W){var z=W[0],K=W[1];return{key:z,gear:K}}))},[]).filter(function(O){var R=O.gear;return D(R)}):M=Object.entries(u.gears[f]).map(function(O){var R=O[0],j=O[1];return{key:R,gear:j}}),M.sort(b[w]),E&&(M=M.reverse()),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:f,buttons:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Dropdown,{height:1.66,selected:w,options:Object.keys(b),onSelected:function(){function O(R){return A(R)}return O}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:E?"arrow-down-wide-short":"arrow-down-short-wide",tooltip:E?"Ascending order":"Descending order",tooltipPosition:"bottom-end",onClick:function(){function O(){return P(!E)}return O}()})}),N&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Input,{width:20,placeholder:"Search...",value:B,onInput:function(){function O(R){return S(R.target.value)}return O}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"magnifying-glass",selected:N,tooltip:"Toggle search field",tooltipPosition:"bottom-end",onClick:function(){function O(){V(!N),S("")}return O}()})})]}),children:M.map(function(O){var R=O.key,j=O.gear,_=12,W=Object.keys(u.selected_gears).includes(R),z=j.cost===1?j.cost+" Point":j.cost+" Points",K=(0,e.createComponentVNode)(2,o.Box,{children:[j.name.length>_&&(0,e.createComponentVNode)(2,o.Box,{children:j.name}),j.gear_tier>h&&(0,e.createComponentVNode)(2,o.Box,{mt:j.name.length>_&&1.5,textColor:"red",children:"That gear is only available at a higher donation tier than you are on."})]}),G=(0,e.createFragment)([j.allowed_roles&&(0,e.createComponentVNode)(2,o.Button,{width:"22px",color:"transparent",icon:"user",tooltip:(0,e.createComponentVNode)(2,o.Section,{m:-1,title:"Allowed Roles",children:j.allowed_roles.map(function(J){return(0,e.createComponentVNode)(2,o.Box,{children:J},J)})}),tooltipPosition:"left"}),Object.entries(j.tweaks).map(function(J){var ue=J[0],ie=J[1];return ie.map(function(pe){return(0,e.createComponentVNode)(2,o.Button,{width:"22px",color:"transparent",icon:pe.icon,tooltip:pe.tooltip,tooltipPosition:"top"},ue)})}),(0,e.createComponentVNode)(2,o.Button,{width:"22px",color:"transparent",icon:"info",tooltip:j.desc,tooltipPosition:"top"})],0),Q=(0,e.createComponentVNode)(2,o.Box,{class:"Loadout-InfoBox",children:[(0,e.createComponentVNode)(2,o.Box,{style:{"flex-grow":1},fontSize:1,color:"gold",opacity:.75,children:j.gear_tier>0&&"Tier "+j.gear_tier}),(0,e.createComponentVNode)(2,o.Box,{fontSize:.75,opacity:.66,children:z})]});return(0,e.createComponentVNode)(2,o.ImageButton,{m:.5,imageSize:84,dmIcon:j.icon,dmIconState:j.icon_state,tooltip:(j.name.length>_||j.gear_tier>0)&&K,tooltipPosition:"bottom",selected:W,disabled:j.gear_tier>h||g+j.cost>v&&!W,buttons:G,buttonsAlt:Q,onClick:function(){function J(){return s("toggle_gear",{gear:R})}return J}(),children:j.name},R)})})},C=function(m,l){var d=(0,t.useBackend)(l),s=d.act,u=d.data,h=m.setTweakedGear,g=Object.entries(u.gears).reduce(function(v,f){var N=f[0],V=f[1],B=Object.entries(V).filter(function(S){var L=S[0];return Object.keys(u.selected_gears).includes(L)}).map(function(S){var L=S[0],w=S[1];return Object.assign({key:L},w)});return v.concat(B)},[]);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Selected Equipment",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",tooltip:"Clear Loadout",tooltipPosition:"bottom-end",onClick:function(){function v(){return s("clear_loadout")}return v}()}),children:g.map(function(v){return(0,e.createComponentVNode)(2,o.ImageButton,{fluid:!0,imageSize:32,dmIcon:v.icon,dmIconState:v.icon_state,buttons:(0,e.createFragment)([Object.entries(v.tweaks).length>0&&(0,e.createComponentVNode)(2,o.Button,{translucent:!0,icon:"gears",iconColor:"gray",width:"33px",onClick:function(){function f(){return h(v)}return f}()}),(0,e.createComponentVNode)(2,o.Button,{translucent:!0,icon:"times",iconColor:"red",width:"32px",onClick:function(){function f(){return s("toggle_gear",{gear:v.key})}return f}()})],0),children:v.name},v.key)})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:u.gear_slots,maxValue:u.max_gear_slots,ranges:{bad:[u.max_gear_slots,1/0],average:[u.max_gear_slots*.66,u.max_gear_slots],good:[0,u.max_gear_slots*.66]},children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:["Used points ",u.gear_slots,"/",u.max_gear_slots]})})})})]})},i=function(m,l){var d=(0,t.useBackend)(l),s=d.act,u=d.data,h=m.tweakedGear,g=m.setTweakedGear;return(0,e.createComponentVNode)(2,o.Dimmer,{children:(0,e.createComponentVNode)(2,o.Box,{className:"Loadout-Modal__background",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,width:20,height:20,title:h.name,buttons:(0,e.createComponentVNode)(2,o.Button,{color:"red",icon:"times",tooltip:"Close",tooltipPosition:"top",onClick:function(){function v(){return g("")}return v}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:Object.entries(h.tweaks).map(function(v){var f=v[0],N=v[1];return N.map(function(V){var B=u.selected_gears[h.key][f];return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:V.name,color:B?"":"gray",buttons:(0,e.createComponentVNode)(2,o.Button,{color:"transparent",icon:"pen",onClick:function(){function S(){return s("set_tweak",{gear:h.key,tweak:f})}return S}()}),children:[B||"Default",(0,e.createComponentVNode)(2,o.Box,{inline:!0,ml:1,width:1,height:1,verticalAlign:"middle",style:{"background-color":""+B}})]},f)})})})})})})}},77613:function(T,r,n){"use strict";r.__esModule=!0,r.MODsuitContent=r.MODsuit=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=function(S,L){var w=S.name,A=S.value,x=S.module_ref,E=(0,a.useBackend)(L),P=E.act;return(0,e.createComponentVNode)(2,t.NumberInput,{value:A,minValue:-50,maxValue:50,stepPixelSize:5,width:"39px",onChange:function(){function D(M,O){return P("configure",{key:w,value:O,ref:x})}return D}()})},b=function(S,L){var w=S.name,A=S.value,x=S.module_ref,E=(0,a.useBackend)(L),P=E.act;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:A,onClick:function(){function D(){return P("configure",{key:w,value:!A,ref:x})}return D}()})},y=function(S,L){var w=S.name,A=S.value,x=S.module_ref,E=(0,a.useBackend)(L),P=E.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"paint-brush",onClick:function(){function D(){return P("configure",{key:w,ref:x})}return D}()}),(0,e.createComponentVNode)(2,t.ColorBox,{color:A,mr:.5})],4)},I=function(S,L){var w=S.name,A=S.value,x=S.values,E=S.module_ref,P=(0,a.useBackend)(L),D=P.act;return(0,e.createComponentVNode)(2,t.Dropdown,{displayText:A,options:x,onSelected:function(){function M(O){return D("configure",{key:w,value:O,ref:E})}return M}()})},k=function(S,L){var w=S.name,A=S.display_name,x=S.type,E=S.value,P=S.values,D=S.module_ref,M={number:(0,e.normalizeProps)((0,e.createComponentVNode)(2,p,Object.assign({},S))),bool:(0,e.normalizeProps)((0,e.createComponentVNode)(2,b,Object.assign({},S))),color:(0,e.normalizeProps)((0,e.createComponentVNode)(2,y,Object.assign({},S))),list:(0,e.normalizeProps)((0,e.createComponentVNode)(2,I,Object.assign({},S)))};return(0,e.createComponentVNode)(2,t.Box,{children:[A,": ",M[x]]})},C=function(S,L){var w=S.active,A=S.userradiated,x=S.usertoxins,E=S.usermaxtoxins,P=S.threatlevel;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Level",color:w&&A?"bad":"good",children:w&&A?"IRRADIATED!":"RADIATION-FREE"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxins Level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?x/E:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:x})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Hazard Level",color:w&&P?"bad":"good",bold:!0,children:w&&P?P:0})})]})},i=function(S,L){var w=S.active,A=S.userhealth,x=S.usermaxhealth,E=S.userbrute,P=S.userburn,D=S.usertoxin,M=S.useroxy;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?A/x:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?A:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?E/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?E:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?P/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?P:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?D/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?D:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?M/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?M:0})})})})]})],4)},c=function(S,L){var w=S.active,A=S.statustime,x=S.statusid,E=S.statushealth,P=S.statusmaxhealth,D=S.statusbrute,M=S.statusburn,O=S.statustoxin,R=S.statusoxy,j=S.statustemp,_=S.statusnutrition,W=S.statusfingerprints,z=S.statusdna,K=S.statusviruses;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Time",children:w?A:"00:00:00"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Number",children:w?x||"0":"???"})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?E/P:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?E:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?D/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?D:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?M/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w?M:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?O/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:O})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w?R/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:R})})})})]}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Body Temperature",children:w?j:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Nutrition Status",children:w?_:0})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"DNA",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fingerprints",children:w?W:"???"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:w?z:"???"})]})}),!!w&&!!K&&(0,e.createComponentVNode)(2,t.Section,{title:"Diseases",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"signature",tooltip:"Name",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"wind",tooltip:"Type",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"bolt",tooltip:"Stage",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"flask",tooltip:"Cure",tooltipPosition:"top"})})]}),K.map(function(G){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:G.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:G.type}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[G.stage,"/",G.maxstage]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:G.cure})]},G.name)})]})})],0)},m={rad_counter:C,health_analyzer:i,status_readout:c},l=function(){return(0,e.createComponentVNode)(2,t.Section,{align:"center",fill:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{color:"red",name:"exclamation-triangle",size:15}),(0,e.createComponentVNode)(2,t.Box,{fontSize:"30px",color:"red",children:"ERROR: INTERFACE UNRESPONSIVE"})]})},d=function(S,L){var w=(0,a.useBackend)(L),A=w.act,x=w.data;return(0,e.createComponentVNode)(2,t.Dimmer,{children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"16px",color:"blue",children:"SUIT UNPOWERED"})})})},s=function(S,L){var w=S.configuration_data,A=S.module_ref,x=Object.keys(w);return(0,e.createComponentVNode)(2,t.Dimmer,{backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[x.map(function(E){var P=w[E];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,k,{name:E,display_name:P.display_name,type:P.type,value:P.value,values:P.values,module_ref:A})},P.key)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:S.onExit,icon:"times",textAlign:"center",children:"Exit"})})})]})})},u=function(S){switch(S){case 1:return"Use";case 2:return"Toggle";case 3:return"Select"}},h=function(S,L){var w=(0,a.useBackend)(L),A=w.act,x=w.data,E=x.active,P=x.malfunctioning,D=x.locked,M=x.open,O=x.selected_module,R=x.complexity,j=x.complexity_max,_=x.wearer_name,W=x.wearer_job,z=P?"Malfunctioning":E?"Active":"Inactive";return(0,e.createComponentVNode)(2,t.Section,{title:"Parameters",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:E?"Deactivate":"Activate",onClick:function(){function K(){return A("activate")}return K}()}),children:z}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:D?"lock-open":"lock",content:D?"Unlock":"Lock",onClick:function(){function K(){return A("lock")}return K}()}),children:D?"Locked":"Unlocked"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover",children:M?"Open":"Closed"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected Module",children:O||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Complexity",children:[R," (",j,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:[_,", ",W]})]})})},g=function(S,L){var w=(0,a.useBackend)(L),A=w.act,x=w.data,E=x.active,P=x.control,D=x.helmet,M=x.chestplate,O=x.gauntlets,R=x.boots,j=x.core,_=x.charge;return(0,e.createComponentVNode)(2,t.Section,{title:"Hardware",children:[(0,e.createComponentVNode)(2,t.Collapsible,{title:"Parts",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Control Unit",children:P}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Helmet",children:D||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chestplate",children:M||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gauntlets",children:O||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Boots",children:R||"None"})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core",children:j&&(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Type",children:j}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:_/100,content:_+"%",ranges:{good:[.6,1/0],average:[.3,.6],bad:[-1/0,.3]}})})]})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",textAlign:"center",children:"No Core Detected"})})]})},v=function(S,L){var w=(0,a.useBackend)(L),A=w.act,x=w.data,E=x.active,P=x.modules,D=P.filter(function(M){return!!M.id});return(0,e.createComponentVNode)(2,t.Section,{title:"Info",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:D.length!==0&&D.map(function(M){var O=m[M.id];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!E&&(0,e.createComponentVNode)(2,d),(0,e.normalizeProps)((0,e.createComponentVNode)(2,O,Object.assign({},M,{active:E})))]},M.ref)})||(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Info Modules Detected"})})})},f=function(S,L){var w=(0,a.useBackend)(L),A=w.act,x=w.data,E=x.complexity_max,P=x.modules,D=(0,a.useLocalState)(L,"module_configuration",null),M=D[0],O=D[1];return(0,e.createComponentVNode)(2,t.Section,{title:"Modules",fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:P.length!==0&&P.map(function(R){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Collapsible,{title:R.module_name,children:(0,e.createComponentVNode)(2,t.Section,{children:[M===R.ref&&(0,e.createComponentVNode)(2,s,{configuration_data:R.configuration_data,module_ref:R.ref,onExit:function(){function j(){return O(null)}return j}()}),(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"save",tooltip:"Complexity",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"plug",tooltip:"Idle Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"lightbulb",tooltip:"Active Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"bolt",tooltip:"Use Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"hourglass-half",tooltip:"Cooldown",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"tasks",tooltip:"Actions",tooltipPosition:"top"})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[R.module_complexity,"/",E]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:R.idle_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:R.active_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:R.use_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[R.cooldown>0&&R.cooldown/10||"0","/",R.cooldown_time/10,"s"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function j(){return A("select",{ref:R.ref})}return j}(),icon:"bullseye",selected:R.module_active,tooltip:u(R.module_type),tooltipPosition:"left",disabled:!R.module_type}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function j(){return O(R.ref)}return j}(),icon:"cog",selected:M===R.ref,tooltip:"Configure",tooltipPosition:"left",disabled:R.configuration_data.length===0}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function j(){return A("pin",{ref:R.ref})}return j}(),icon:"thumbtack",selected:R.pinned,tooltip:"Pin",tooltipPosition:"left",disabled:!R.module_type})]})]})]}),(0,e.createComponentVNode)(2,t.Box,{children:R.description})]})})},R.ref)})||(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Modules Detected"})})})})},N=r.MODsuitContent=function(){function B(S,L){var w=(0,a.useBackend)(L),A=w.act,x=w.data,E=x.ui_theme,P=x.interface_break;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!P,children:!!P&&(0,e.createComponentVNode)(2,l)||(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,h)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,g)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,v)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f)})]})})}return B}(),V=r.MODsuit=function(){function B(S,L){var w=(0,a.useBackend)(L),A=w.act,x=w.data,E=x.ui_theme,P=x.interface_break;return(0,e.createComponentVNode)(2,o.Window,{theme:E,width:400,height:620,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,N)})})})}return B}()},78624:function(T,r,n){"use strict";r.__esModule=!0,r.MagnetController=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(98595),b=n(3939),y=new Map([["n",{icon:"arrow-up",tooltip:"Move North"}],["e",{icon:"arrow-right",tooltip:"Move East"}],["s",{icon:"arrow-down",tooltip:"Move South"}],["w",{icon:"arrow-left",tooltip:"Move West"}],["c",{icon:"crosshairs",tooltip:"Move to Magnet"}],["r",{icon:"dice",tooltip:"Move Randomly"}]]),I=r.MagnetController=function(){function k(C,i){var c=(0,t.useBackend)(i),m=c.act,l=c.data,d=l.autolink,s=l.code,u=l.frequency,h=l.linkedMagnets,g=l.magnetConfiguration,v=l.path,f=l.pathPosition,N=l.probing,V=l.powerState,B=l.speed;return(0,e.createComponentVNode)(2,p.Window,{width:400,height:600,children:[(0,e.createComponentVNode)(2,b.ComplexModal),(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:[!d&&(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{content:"Probe",icon:N?"spinner":"sync",iconSpin:!!N,disabled:N,onClick:function(){function S(){return m("probe_magnets")}return S}()}),title:"Magnet Linking",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,a.toFixed)(u/10,1)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:s})]})}),(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{icon:V?"power-off":"times",content:V?"On":"Off",selected:V,onClick:function(){function S(){return m("toggle_power")}return S}()}),title:"Controller Configuration",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:B.value,minValue:B.min,maxValue:B.max,onChange:function(){function S(L,w){return m("set_speed",{speed:w})}return S}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Path",children:[Array.from(y.entries()).map(function(S){var L=S[0],w=S[1],A=w.icon,x=w.tooltip;return(0,e.createComponentVNode)(2,o.Button,{icon:A,tooltip:x,onClick:function(){function E(){return m("path_add",{code:L})}return E}()},L)}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",confirmIcon:"trash",confirmContent:"",float:"right",tooltip:"Reset Path",tooltipPosition:"left",onClick:function(){function S(){return m("path_clear")}return S}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file-import",float:"right",tooltip:"Manually input path",tooltipPosition:"left",onClick:function(){function S(){return(0,b.modalOpen)(i,"path_custom_input")}return S}()}),(0,e.createComponentVNode)(2,o.BlockQuote,{children:v.map(function(S,L){var w=y.get(S)||{icon:"question"},A=w.icon,x=w.tooltip;return(0,e.createComponentVNode)(2,o.Button.Confirm,{selected:L+2===f,icon:A,confirmIcon:A,confirmContent:"",tooltip:x,onClick:function(){function E(){return m("path_remove",{index:L+1,code:S})}return E}()},L)})})]})]})}),h.map(function(S,L){var w=S.uid,A=S.powerState,x=S.electricityLevel,E=S.magneticField;return(0,e.createComponentVNode)(2,o.Section,{title:"Magnet #"+(L+1)+" Configuration",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:A?"power-off":"times",content:A?"On":"Off",selected:A,onClick:function(){function P(){return m("toggle_magnet_power",{id:w})}return P}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Move Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:x,minValue:g.electricityLevel.min,maxValue:g.electricityLevel.max,onChange:function(){function P(D,M){return m("set_electricity_level",{id:w,electricityLevel:M})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Field Size",children:(0,e.createComponentVNode)(2,o.Slider,{value:E,minValue:g.magneticField.min,maxValue:g.magneticField.max,onChange:function(){function P(D,M){return m("set_magnetic_field",{id:w,magneticField:M})}return P}()})})]})},w)})]})]})}return k}()},72106:function(T,r,n){"use strict";r.__esModule=!0,r.MechBayConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.MechBayConsole=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.recharge_port,m=c&&c.mech,l=m&&m.cell,d=m&&m.name;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:155,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:d?"Mech status: "+d:"Mech status",textAlign:"center",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Sync",onClick:function(){function s(){return C("reconnect")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!m&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:m.health/m.maxhealth,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!m&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||!l&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cell is installed."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:l.charge/l.maxcharge,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]},children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:l.charge})," / "+l.maxcharge]})})]})})})})}return b}()},7466:function(T,r,n){"use strict";r.__esModule=!0,r.MechaControlConsole=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(98595),b=n(25328),y=r.MechaControlConsole=function(){function I(k,C){var i=(0,t.useBackend)(C),c=i.act,m=i.data,l=m.beacons,d=m.stored_data;return d.length?(0,e.createComponentVNode)(2,p.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"window-close",onClick:function(){function s(){return c("clear_log")}return s}()}),children:d.map(function(s){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["(",s.time,")"]}),(0,e.createComponentVNode)(2,o.Box,{children:(0,b.decodeHtmlEntities)(s.message)})]},s.time)})})})}):(0,e.createComponentVNode)(2,p.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:l.length&&l.map(function(s){return(0,e.createComponentVNode)(2,o.Section,{title:s.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function u(){return c("send_message",{mt:s.uid})}return u}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function u(){return c("get_log",{mt:s.uid})}return u}(),children:"View Log"}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",content:"Sabotage",icon:"bomb",onClick:function(){function u(){return c("shock",{mt:s.uid})}return u}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[s.maxHealth*.75,1/0],average:[s.maxHealth*.5,s.maxHealth*.75],bad:[-1/0,s.maxHealth*.5]},value:s.health,maxValue:s.maxHealth})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cell Charge",children:s.cell&&(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[s.cellMaxCharge*.75,1/0],average:[s.cellMaxCharge*.5,s.cellMaxCharge*.75],bad:[-1/0,s.cellMaxCharge*.5]},value:s.cellCharge,maxValue:s.cellMaxCharge})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No Cell Installed"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Air Tank",children:[s.airtank,"kPa"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pilot",children:s.pilot||"Unoccupied"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:(0,b.toTitleCase)(s.location)||"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Active Equipment",children:s.active||"None"}),s.cargoMax&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cargo Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{bad:[s.cargoMax*.75,1/0],average:[s.cargoMax*.5,s.cargoMax*.75],good:[-1/0,s.cargoMax*.5]},value:s.cargoUsed,maxValue:s.cargoMax})})||null]})},s.name)})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No mecha beacons found."})})})}return I}()},79625:function(T,r,n){"use strict";r.__esModule=!0,r.MedicalRecords=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(3939),b=n(98595),y=n(321),I=n(5485),k=n(22091),C={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},i={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},c=function(A,x){(0,p.modalOpen)(A,"edit",{field:x.edit,value:x.value})},m=function(A,x){var E=A.args;return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:E.name||"Virus",children:(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Number of stages",children:E.max_stages}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Spread",children:[E.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Possible cure",children:E.cure}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Notes",children:E.desc}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Severity",color:C[E.severity],children:E.severity})]})})})},l=r.MedicalRecords=function(){function w(A,x){var E=(0,t.useBackend)(x),P=E.data,D=P.loginState,M=P.screen;if(!D.logged_in)return(0,e.createComponentVNode)(2,b.Window,{width:800,height:900,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,I.LoginScreen)})});var O;return M===2?O=(0,e.createComponentVNode)(2,d):M===3?O=(0,e.createComponentVNode)(2,s):M===4?O=(0,e.createComponentVNode)(2,u):M===5?O=(0,e.createComponentVNode)(2,f):M===6?O=(0,e.createComponentVNode)(2,N):M===7&&(O=(0,e.createComponentVNode)(2,V)),(0,e.createComponentVNode)(2,b.Window,{width:800,height:900,children:[(0,e.createComponentVNode)(2,p.ComplexModal),(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,k.TemporaryNotice),(0,e.createComponentVNode)(2,L),O]})})]})}return w}(),d=function(A,x){var E=(0,t.useBackend)(x),P=E.act,D=E.data,M=D.records,O=(0,t.useLocalState)(x,"searchText",""),R=O[0],j=O[1],_=(0,t.useLocalState)(x,"sortId","name"),W=_[0],z=_[1],K=(0,t.useLocalState)(x,"sortOrder",!0),G=K[0],Q=K[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Manage Records",icon:"wrench",ml:"0.25rem",onClick:function(){function J(){return P("screen",{screen:3})}return J}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search by Name, ID, Physical Status, or Mental Status",onInput:function(){function J(ue,ie){return j(ie)}return J}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,B,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,B,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,B,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,B,{id:"p_stat",children:"Patient Status"}),(0,e.createComponentVNode)(2,B,{id:"m_stat",children:"Mental Status"})]}),M.filter((0,a.createSearch)(R,function(J){return J.name+"|"+J.id+"|"+J.rank+"|"+J.p_stat+"|"+J.m_stat})).sort(function(J,ue){var ie=G?1:-1;return J[W].localeCompare(ue[W])*ie}).map(function(J){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listRow--"+i[J.p_stat],onClick:function(){function ue(){return P("view_record",{view_record:J.ref})}return ue}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",J.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.p_stat}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.m_stat})]},J.id)})]})})})],4)},s=function(A,x){var E=(0,t.useBackend)(x),P=E.act;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,translucent:!0,lineHeight:3,icon:"download",content:"Backup to Disk",disabled:!0})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,translucent:!0,lineHeight:3,icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," "]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,translucent:!0,lineHeight:3,icon:"trash",content:"Delete All Medical Records",onClick:function(){function D(){return P("del_all_med_records")}return D}()})})]})})},u=function(A,x){var E=(0,t.useBackend)(x),P=E.act,D=E.data,M=D.medical,O=D.printing;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{height:"235px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:O?"spinner":"print",disabled:O,iconSpin:!!O,content:"Print Record",ml:"0.5rem",onClick:function(){function R(){return P("print_record")}return R}()}),children:(0,e.createComponentVNode)(2,h)})}),!M||!M.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function R(){return P("new_med_record")}return R}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Medical records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:!!M.empty,content:"Delete Medical Record",onClick:function(){function R(){return P("del_med_record")}return R}()}),children:(0,e.createComponentVNode)(2,g)})}),(0,e.createComponentVNode)(2,v)],4)],0)},h=function(A,x){var E=(0,t.useBackend)(x),P=E.data,D=P.general;return!D||!D.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:D.fields.map(function(M,O){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:M.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:M.value}),!!M.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function R(){return c(x,M)}return R}()})]},O)})})}),!!D.has_photos&&D.photos.map(function(M,O){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:M,style:{width:"96px","margin-top":"2.5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",O+1]},O)})]})},g=function(A,x){var E=(0,t.useBackend)(x),P=E.act,D=E.data,M=D.medical;return!M||!M.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"Medical records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:M.fields.map(function(O,R){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:O.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(O.value),!!O.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:O.line_break?"1rem":"initial",onClick:function(){function j(){return c(x,O)}return j}()})]},R)})})})})},v=function(A,x){var E=(0,t.useBackend)(x),P=E.act,D=E.data,M=D.medical;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function O(){return(0,p.modalOpen)(x,"add_comment")}return O}()}),children:M.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):M.comments.map(function(O,R){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:O.header}),(0,e.createVNode)(1,"br"),O.text,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function j(){return P("del_comment",{del_comment:R+1})}return j}()})]},R)})})})},f=function(A,x){var E=(0,t.useBackend)(x),P=E.act,D=E.data,M=D.virus,O=(0,t.useLocalState)(x,"searchText",""),R=O[0],j=O[1],_=(0,t.useLocalState)(x,"sortId2","name"),W=_[0],z=_[1],K=(0,t.useLocalState)(x,"sortOrder2",!0),G=K[0],Q=K[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{ml:"0.25rem",fluid:!0,placeholder:"Search by Name, Max Stages, or Severity",onInput:function(){function J(ue,ie){return j(ie)}return J}()})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,S,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,S,{id:"max_stages",children:"Max Stages"}),(0,e.createComponentVNode)(2,S,{id:"severity",children:"Severity"})]}),M.filter((0,a.createSearch)(R,function(J){return J.name+"|"+J.max_stages+"|"+J.severity})).sort(function(J,ue){var ie=G?1:-1;return J[W].localeCompare(ue[W])*ie}).map(function(J){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listVirus--"+J.severity,onClick:function(){function ue(){return P("vir",{vir:J.D})}return ue}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"virus"})," ",J.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.max_stages}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:C[J.severity],children:J.severity})]},J.id)})]})})})})],4)},N=function(A,x){var E=(0,t.useBackend)(x),P=E.act,D=E.data,M=D.goals;return(0,e.createComponentVNode)(2,o.Section,{title:"Virology Goals",fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:M.length!==0&&M.map(function(O){return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:O.name,children:[(0,e.createComponentVNode)(2,o.Table,{children:(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:O.delivered,minValue:0,maxValue:O.deliverygoal,ranges:{good:[O.deliverygoal*.5,1/0],average:[O.deliverygoal*.25,O.deliverygoal*.5],bad:[-1/0,O.deliverygoal*.25]},children:[O.delivered," / ",O.deliverygoal," Units"]})})})}),(0,e.createComponentVNode)(2,o.Box,{children:O.report})]})},O.id)})||(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:"No Goals Detected"})})})})},V=function(A,x){var E=(0,t.useBackend)(x),P=E.act,D=E.data,M=D.medbots;return M.length===0?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"robot",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"There are no Medibots."]})})})}):(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Area"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Chemicals"})]}),M.map(function(O){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listMedbot--"+O.on,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"medical"})," ",O.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[O.area||"Unknown"," (",O.x,", ",O.y,")"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.on?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Online"}):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"Offline"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.use_beaker?"Reservoir: "+O.total_volume+"/"+O.maximum_volume:"Using internal synthesizer"})]},O.id)})]})})})},B=function(A,x){var E=(0,t.useLocalState)(x,"sortId","name"),P=E[0],D=E[1],M=(0,t.useLocalState)(x,"sortOrder",!0),O=M[0],R=M[1],j=A.id,_=A.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:P!==j&&"transparent",onClick:function(){function W(){P===j?R(!O):(D(j),R(!0))}return W}(),children:[_,P===j&&(0,e.createComponentVNode)(2,o.Icon,{name:O?"sort-up":"sort-down",ml:"0.25rem;"})]})})},S=function(A,x){var E=(0,t.useLocalState)(x,"sortId2","name"),P=E[0],D=E[1],M=(0,t.useLocalState)(x,"sortOrder2",!0),O=M[0],R=M[1],j=A.id,_=A.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:P!==j&&"transparent",onClick:function(){function W(){P===j?R(!O):(D(j),R(!0))}return W}(),children:[_,P===j&&(0,e.createComponentVNode)(2,o.Icon,{name:O?"sort-up":"sort-down",ml:"0.25rem;"})]})})},L=function(A,x){var E=(0,t.useBackend)(x),P=E.act,D=E.data,M=D.screen,O=D.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:M===2,onClick:function(){function R(){P("screen",{screen:2})}return R}(),children:"List Records"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"database",selected:M===5,onClick:function(){function R(){P("screen",{screen:5})}return R}(),children:"Virus Database"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"vial",selected:M===6,onClick:function(){function R(){P("screen",{screen:6})}return R}(),children:"Virology Goals"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"plus-square",selected:M===7,onClick:function(){function R(){return P("screen",{screen:7})}return R}(),children:"Medibot Tracking"}),M===3&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:M===3,children:"Record Maintenance"}),M===4&&O&&!O.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:M===4,children:["Record: ",O.fields[0].value]})]})})};(0,p.modalRegisterBodyOverride)("virus",m)},54989:function(T,r,n){"use strict";r.__esModule=!0,r.MerchVendor=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=function(C,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=C.product,s=C.productImage,u=C.productCategory,h=l.user_money;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+s,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:d.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{disabled:d.price>h,icon:"shopping-cart",content:d.price,textAlign:"left",onClick:function(){function g(){return m("purchase",{name:d.name,category:u})}return g}()})})]})},b=function(C,i){var c=(0,a.useBackend)(i),m=c.data,l=(0,a.useLocalState)(i,"tabIndex",1),d=l[0],s=m.products,u=m.imagelist,h=["apparel","toy","decoration"];return(0,e.createComponentVNode)(2,t.Table,{children:s[h[d]].map(function(g){return(0,e.createComponentVNode)(2,p,{product:g,productImage:u[g.path],productCategory:h[d]},g.name)})})},y=r.MerchVendor=function(){function k(C,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.user_cash,s=l.inserted_cash;return(0,e.createComponentVNode)(2,o.Window,{title:"Merch Computer",width:450,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"User",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"light-grey",inline:!0,mr:"0.5rem",children:["There is ",(0,e.createVNode)(1,"b",null,s,0)," credits inserted."]}),(0,e.createComponentVNode)(2,t.Button,{disabled:!s,icon:"money-bill-wave-alt",content:"Dispense Change",textAlign:"left",onClick:function(){function u(){return m("change")}return u}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:["Doing your job and not getting any recognition at work? Well, welcome to the merch shop! Here, you can buy cool things in exchange for money you earn when you have completed your Job Objectives.",d!==null&&(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:["Your balance is ",(0,e.createVNode)(1,"b",null,[d||0,(0,e.createTextVNode)(" credits")],0),"."]})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:[(0,e.createComponentVNode)(2,I),(0,e.createComponentVNode)(2,b)]})})]})})})}return k}(),I=function(C,i){var c=(0,a.useBackend)(i),m=c.data,l=(0,a.useLocalState)(i,"tabIndex",1),d=l[0],s=l[1],u=m.login_state;return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"dice",selected:d===1,onClick:function(){function h(){return s(1)}return h}(),children:"Toys"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"flag",selected:d===2,onClick:function(){function h(){return s(2)}return h}(),children:"Decorations"})]})}},87684:function(T,r,n){"use strict";r.__esModule=!0,r.MiningVendor=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(98595),b=["title","items","gridLayout"];function y(l,d){if(l==null)return{};var s={};for(var u in l)if({}.hasOwnProperty.call(l,u)){if(d.includes(u))continue;s[u]=l[u]}return s}var I={Alphabetical:function(){function l(d,s){return d-s}return l}(),Availability:function(){function l(d,s){return-(d.affordable-s.affordable)}return l}(),Price:function(){function l(d,s){return d.price-s.price}return l}()},k=r.MiningVendor=function(){function l(d,s){var u=(0,t.useLocalState)(s,"gridLayout",!1),h=u[0],g=u[1];return(0,e.createComponentVNode)(2,p.Window,{width:400,height:525,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,c,{gridLayout:h,setGridLayout:g}),(0,e.createComponentVNode)(2,i,{gridLayout:h})]})})})}return l}(),C=function(d,s){var u=(0,t.useBackend)(s),h=u.act,g=u.data,v=g.has_id,f=g.id;return(0,e.createComponentVNode)(2,o.NoticeBox,{success:v,children:v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",f.name,".",(0,e.createVNode)(1,"br"),"You have ",f.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function N(){return h("logoff")}return N}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},i=function(d,s){var u=(0,t.useBackend)(s),h=u.act,g=u.data,v=g.has_id,f=g.id,N=g.items,V=d.gridLayout,B=(0,t.useLocalState)(s,"search",""),S=B[0],L=B[1],w=(0,t.useLocalState)(s,"sort","Alphabetical"),A=w[0],x=w[1],E=(0,t.useLocalState)(s,"descending",!1),P=E[0],D=E[1],M=(0,a.createSearch)(S,function(j){return j[0]}),O=!1,R=Object.entries(N).map(function(j,_){var W=Object.entries(j[1]).filter(M).map(function(z){return z[1].affordable=v&&f.points>=z[1].price,z[1]}).sort(I[A]);if(W.length!==0)return P&&(W=W.reverse()),O=!0,(0,e.createComponentVNode)(2,m,{title:j[0],items:W,gridLayout:V},j[0])});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:O?R:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},c=function(d,s){var u=d.gridLayout,h=d.setGridLayout,g=(0,t.useLocalState)(s,"search",""),v=g[0],f=g[1],N=(0,t.useLocalState)(s,"sort",""),V=N[0],B=N[1],S=(0,t.useLocalState)(s,"descending",!1),L=S[0],w=S[1];return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{mt:.2,placeholder:"Search by item name..",width:"100%",onInput:function(){function A(x,E){return f(E)}return A}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:u?"list":"table-cells-large",height:1.75,tooltip:u?"Toggle List Layout":"Toggle Grid Layout",tooltipPosition:"bottom-start",onClick:function(){function A(){return h(!u)}return A}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(I),width:"100%",onSelected:function(){function A(x){return B(x)}return A}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:L?"arrow-down":"arrow-up",height:1.75,tooltip:L?"Descending order":"Ascending order",tooltipPosition:"bottom-start",onClick:function(){function A(){return w(!L)}return A}()})})]})})},m=function(d,s){var u=(0,t.useBackend)(s),h=u.act,g=u.data,v=d.title,f=d.items,N=d.gridLayout,V=y(d,b);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:v},V,{children:f.map(function(B){return N?(0,e.createComponentVNode)(2,o.ImageButton,{mb:.5,imageSize:57.5,dmIcon:B.icon,dmIconState:B.icon_state,disabled:!g.has_id||g.id.points0?'\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043F\u043E\u0438\u0441\u043A\u0430 "'+d+'"':"\u0412\u0441\u0435 \u043C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u0438 - "+m.length,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:m.filter(function(h){return h.name&&(d.length>0?h.name.toLowerCase().includes(d.toLowerCase())||h.desc.toLowerCase().includes(d.toLowerCase())||h.author.toLowerCase().includes(d.toLowerCase()):!0)}).map(function(h){return(0,e.createComponentVNode)(2,o.Collapsible,{title:h.name,children:[(0,e.createComponentVNode)(2,o.Section,{title:"\u0410\u0432\u0442\u043E\u0440\u044B",children:h.author}),(0,e.createComponentVNode)(2,o.Section,{title:"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435",children:h.desc})]},h.name)})})})})})],4)}return y}()},59783:function(T,r,n){"use strict";r.__esModule=!0,r.NTRecruiter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.NTRecruiter=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.gamestatus,m=i.cand_name,l=i.cand_birth,d=i.cand_age,s=i.cand_species,u=i.cand_planet,h=i.cand_job,g=i.cand_records,v=i.cand_curriculum,f=i.total_curriculums,N=i.reason;if(c===0)return(0,e.createComponentVNode)(2,o.Window,{width:400,height:550,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{pt:"45%",fontSize:"31px",color:"white",textAlign:"center",bold:!0,children:"Nanotrasen Recruiter Simulator"}),(0,e.createComponentVNode)(2,t.Stack.Item,{pt:"1%",fontSize:"16px",textAlign:"center",color:"label",children:"Work as the Nanotrasen recruiter and avoid hiring incompetent employees!"})]})}),(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",lineHeight:2,fluid:!0,icon:"play",color:"green",content:"Begin Shift",onClick:function(){function V(){return C("start_game")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",lineHeight:2,fluid:!0,icon:"info",color:"blue",content:"Guide",onClick:function(){function V(){return C("instructions")}return V}()})]})]})})});if(c===1)return(0,e.createComponentVNode)(2,o.Window,{width:400,height:550,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,color:"grey",title:"Guide",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Main Menu",onClick:function(){function V(){return C("back_to_menu")}return V}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"1#",color:"silver",children:["To win this game you must hire/dismiss ",(0,e.createVNode)(1,"b",null,f,0)," candidates, one wrongly made choice leads to a game over."]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"2#",color:"silver",children:"Make the right choice by truly putting yourself into the skin of a recruiter working for Nanotrasen!"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"3#",color:"silver",children:[(0,e.createVNode)(1,"b",null,"Unique",16)," characters may appear, pay attention to them!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"4#",color:"silver",children:"Make sure to pay attention to details like age, planet names, the requested job and even the species of the candidate!"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"5#",color:"silver",children:["Not every employment record is good, remember to make your choice based on the ",(0,e.createVNode)(1,"b",null,"company morals",16),"!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"6#",color:"silver",children:"The planet of origin has no restriction on the species of the candidate, don't think too much when you see humans that came from Boron!"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"7#",color:"silver",children:["Pay attention to ",(0,e.createVNode)(1,"b",null,"typos",16)," and ",(0,e.createVNode)(1,"b",null,"missing words",16),", these do make for bad applications!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"8#",color:"silver",children:["Remember, you are recruiting people to work at one of the many NT stations, so no hiring for"," ",(0,e.createVNode)(1,"b",null,"jobs",16)," that they ",(0,e.createVNode)(1,"b",null,"don't offer",16),"!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"9#",color:"silver",children:["Keep your eyes open for incompatible ",(0,e.createVNode)(1,"b",null,"naming schemes",16),", no company wants a Vox named Joe!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"10#",color:"silver",children:["For some unknown reason ",(0,e.createVNode)(1,"b",null,"clowns",16)," are never denied by the company, no matter what."]})]})})})})});if(c===2)return(0,e.createComponentVNode)(2,o.Window,{width:400,height:550,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,color:"label",fontSize:"14px",title:"Employment Applications",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"24px",textAlign:"center",color:"silver",bold:!0,children:["Candidate Number #",v]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",color:"silver",children:(0,e.createVNode)(1,"b",null,m,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",color:"silver",children:(0,e.createVNode)(1,"b",null,s,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Age",color:"silver",children:(0,e.createVNode)(1,"b",null,d,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Date of Birth",color:"silver",children:(0,e.createVNode)(1,"b",null,l,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Planet of Origin",color:"silver",children:(0,e.createVNode)(1,"b",null,u,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requested Job",color:"silver",children:(0,e.createVNode)(1,"b",null,h,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Employment Records",color:"silver",children:(0,e.createVNode)(1,"b",null,g,0)})]})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stamp the application!",color:"grey",textAlign:"center",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"red",content:"Dismiss",fontSize:"150%",icon:"ban",lineHeight:4.5,onClick:function(){function V(){return C("dismiss")}return V}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"green",content:"Hire",fontSize:"150%",icon:"arrow-circle-up",lineHeight:4.5,onClick:function(){function V(){return C("hire")}return V}()})})]})})})]})})});if(c===3)return(0,e.createComponentVNode)(2,o.Window,{width:400,height:550,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{pt:"40%",fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,color:"red",fontSize:"50px",textAlign:"center",children:"Game Over"}),(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"15px",color:"label",textAlign:"center",children:N}),(0,e.createComponentVNode)(2,t.Stack.Item,{color:"blue",fontSize:"20px",textAlign:"center",pt:"10px",children:["FINAL SCORE: ",v-1,"/",f]})]})}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{lineHeight:4,fluid:!0,icon:"arrow-left",content:"Main Menu",onClick:function(){function V(){return C("back_to_menu")}return V}()})})]})})})}return b}()},64713:function(T,r,n){"use strict";r.__esModule=!0,r.Newscaster=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),p=n(76910),b=n(98595),y=n(3939),I=n(22091),k=["icon","iconSpin","selected","security","onClick","title","children"],C=["name"];function i(S,L){if(S==null)return{};var w={};for(var A in S)if({}.hasOwnProperty.call(S,A)){if(L.includes(A))continue;w[A]=S[A]}return w}var c=128,m=["security","engineering","medical","science","service","supply"],l={security:{title:"Security",fluff_text:"Help keep the crew safe"},engineering:{title:"Engineering",fluff_text:"Ensure the station runs smoothly"},medical:{title:"Medical",fluff_text:"Practice medicine and save lives"},science:{title:"Science",fluff_text:"Develop new technologies"},service:{title:"Service",fluff_text:"Provide amenities to the crew"},supply:{title:"Supply",fluff_text:"Keep the station supplied"}},d=r.Newscaster=function(){function S(L,w){var A=(0,t.useBackend)(w),x=A.act,E=A.data,P=E.is_security,D=E.is_admin,M=E.is_silent,O=E.is_printing,R=E.screen,j=E.channels,_=E.channel_idx,W=_===void 0?-1:_,z=(0,t.useLocalState)(w,"menuOpen",!1),K=z[0],G=z[1],Q=(0,t.useLocalState)(w,"viewingPhoto",""),J=Q[0],ue=Q[1],ie=(0,t.useLocalState)(w,"censorMode",!1),pe=ie[0],te=ie[1],q;R===0||R===2?q=(0,e.createComponentVNode)(2,u):R===1&&(q=(0,e.createComponentVNode)(2,h));var ne=j.reduce(function(le,ee){return le+ee.unread},0);return(0,e.createComponentVNode)(2,b.Window,{theme:P&&"security",width:800,height:600,children:[J?(0,e.createComponentVNode)(2,f):(0,e.createComponentVNode)(2,y.ComplexModal,{maxWidth:window.innerWidth/1.5+"px",maxHeight:window.innerHeight/1.5+"px"}),(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Section,{fill:!0,className:(0,a.classes)(["Newscaster__menu",K&&"Newscaster__menu--open"]),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,s,{icon:"bars",title:"Toggle Menu",onClick:function(){function le(){return G(!K)}return le}()}),(0,e.createComponentVNode)(2,s,{icon:"newspaper",title:"Headlines",selected:R===0,onClick:function(){function le(){return x("headlines")}return le}(),children:ne>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:ne>=10?"9+":ne})}),(0,e.createComponentVNode)(2,s,{icon:"briefcase",title:"Job Openings",selected:R===1,onClick:function(){function le(){return x("jobs")}return le}()}),(0,e.createComponentVNode)(2,o.Divider)]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:j.map(function(le){return(0,e.createComponentVNode)(2,s,{icon:le.icon,title:le.name,selected:R===2&&j[W-1]===le,onClick:function(){function ee(){return x("channel",{uid:le.uid})}return ee}(),children:le.unread>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:le.unread>=10?"9+":le.unread})},le)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Divider),(!!P||!!D)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,s,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){function le(){return(0,y.modalOpen)(w,"wanted_notice")}return le}()}),(0,e.createComponentVNode)(2,s,{security:!0,icon:pe?"minus-square":"minus-square-o",title:"Censor Mode: "+(pe?"On":"Off"),mb:"0.5rem",onClick:function(){function le(){return te(!pe)}return le}()}),(0,e.createComponentVNode)(2,o.Divider)],4),(0,e.createComponentVNode)(2,s,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){function le(){return(0,y.modalOpen)(w,"create_story")}return le}()}),(0,e.createComponentVNode)(2,s,{icon:"plus-circle",title:"New Channel",onClick:function(){function le(){return(0,y.modalOpen)(w,"create_channel")}return le}()}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,s,{icon:O?"spinner":"print",iconSpin:O,title:O?"Printing...":"Print Newspaper",onClick:function(){function le(){return x("print_newspaper")}return le}()}),(0,e.createComponentVNode)(2,s,{icon:M?"volume-mute":"volume-up",title:"Mute: "+(M?"On":"Off"),onClick:function(){function le(){return x("toggle_mute")}return le}()})]})]})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,width:"100%",children:[(0,e.createComponentVNode)(2,I.TemporaryNotice),q]})]})})]})}return S}(),s=function(L,w){var A=(0,t.useBackend)(w),x=A.act,E=L.icon,P=E===void 0?"":E,D=L.iconSpin,M=L.selected,O=M===void 0?!1:M,R=L.security,j=R===void 0?!1:R,_=L.onClick,W=L.title,z=L.children,K=i(L,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Newscaster__menuButton",O&&"Newscaster__menuButton--selected",j&&"Newscaster__menuButton--security"]),onClick:_},K,{children:[O&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,e.createComponentVNode)(2,o.Icon,{name:P,spin:D,size:"2"}),(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--title",children:W}),z]})))},u=function(L,w){var A=(0,t.useBackend)(w),x=A.act,E=A.data,P=E.screen,D=E.is_admin,M=E.channel_idx,O=E.channel_can_manage,R=E.channels,j=E.stories,_=E.wanted,W=(0,t.useLocalState)(w,"fullStories",[]),z=W[0],K=W[1],G=(0,t.useLocalState)(w,"censorMode",!1),Q=G[0],J=G[1],ue=P===2&&M>-1?R[M-1]:null;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!_&&(0,e.createComponentVNode)(2,g,{story:_,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:ue?ue.icon:"newspaper",mr:"0.5rem"}),ue?ue.name:"Headlines"],0),children:j.length>0?j.slice().reverse().map(function(ie){return!z.includes(ie.uid)&&ie.body.length+3>c?Object.assign({},ie,{body_short:ie.body.substr(0,c-4)+"..."}):ie}).map(function(ie,pe){return(0,e.createComponentVNode)(2,g,{story:ie},pe)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no stories at this time."]})}),!!ue&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,height:"40%",title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"info-circle",mr:"0.5rem"}),(0,e.createTextVNode)("About")],4),buttons:(0,e.createFragment)([Q&&(0,e.createComponentVNode)(2,o.Button,{disabled:!!ue.admin&&!D,selected:ue.censored,icon:ue.censored?"comment-slash":"comment",content:ue.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){function ie(){return x("censor_channel",{uid:ue.uid})}return ie}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!O,icon:"cog",content:"Manage",onClick:function(){function ie(){return(0,y.modalOpen)(w,"manage_channel",{uid:ue.uid})}return ie}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:ue.description||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:ue.author||"N/A"}),!!D&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Ckey",children:ue.author_ckey}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Public",children:ue.public?"Yes":"No"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Views",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"eye",mr:"0.5rem"}),j.reduce(function(ie,pe){return ie+pe.view_count},0).toLocaleString()]})]})})]})},h=function(L,w){var A=(0,t.useBackend)(w),x=A.act,E=A.data,P=E.jobs,D=E.wanted,M=Object.entries(P).reduce(function(O,R){var j=R[0],_=R[1];return O+_.length},0);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!D&&(0,e.createComponentVNode)(2,g,{story:D,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"briefcase",mr:"0.5rem"}),(0,e.createTextVNode)("Job Openings")],4),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:"Work for a better future at Nanotrasen"}),children:M>0?m.map(function(O){return Object.assign({},l[O],{id:O,jobs:P[O]})}).filter(function(O){return!!O&&O.jobs.length>0}).map(function(O){return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__jobCategory","Newscaster__jobCategory--"+O.id]),title:O.title,buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:O.fluff_text}),children:O.jobs.map(function(R){return(0,e.createComponentVNode)(2,o.Box,{class:(0,a.classes)(["Newscaster__jobOpening",!!R.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",R.title]},R.title)})},O.id)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no openings at this time."]})}),(0,e.createComponentVNode)(2,o.Section,{height:"17%",children:["Interested in serving Nanotrasen?",(0,e.createVNode)(1,"br"),"Sign up for any of the above position now at the ",(0,e.createVNode)(1,"b",null,"Head of Personnel's Office!",16),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{as:"small",color:"label",children:"By signing up for a job at Nanotrasen, you agree to transfer your soul to the loyalty department of the omnipresent and helpful watcher of humanity."})]})]})},g=function(L,w){var A=(0,t.useBackend)(w),x=A.act,E=A.data,P=L.story,D=L.wanted,M=D===void 0?!1:D,O=E.is_admin,R=(0,t.useLocalState)(w,"fullStories",[]),j=R[0],_=R[1],W=(0,t.useLocalState)(w,"censorMode",!1),z=W[0],K=W[1];return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__story",M&&"Newscaster__story--wanted"]),title:(0,e.createFragment)([M&&(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle",mr:"0.5rem"}),P.censor_flags&2&&"[REDACTED]"||P.title||"News from "+P.author],0),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:[!M&&z&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,e.createComponentVNode)(2,o.Button,{enabled:P.censor_flags&2,icon:P.censor_flags&2?"comment-slash":"comment",content:P.censor_flags&2?"Uncensor":"Censor",mr:"0.5rem",mt:"-0.25rem",onClick:function(){function G(){return x("censor_story",{uid:P.uid})}return G}()})}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",P.author," |\xA0",!!O&&(0,e.createFragment)([(0,e.createTextVNode)("ckey: "),P.author_ckey,(0,e.createTextVNode)(" |\xA0")],0),!M&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),(0,e.createTextVNode)(" "),P.view_count.toLocaleString(),(0,e.createTextVNode)(" |\xA0")],0),(0,e.createComponentVNode)(2,o.Icon,{name:"clock"})," ",(0,p.timeAgo)(P.publish_time,E.world_time)]})]})}),children:(0,e.createComponentVNode)(2,o.Box,{children:P.censor_flags&2?"[REDACTED]":(0,e.createFragment)([!!P.has_photo&&(0,e.createComponentVNode)(2,v,{name:"story_photo_"+P.uid+".png",float:"right",ml:"0.5rem"}),(P.body_short||P.body).split("\n").map(function(G,Q){return(0,e.createComponentVNode)(2,o.Box,{children:G||(0,e.createVNode)(1,"br")},Q)}),P.body_short&&(0,e.createComponentVNode)(2,o.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){function G(){return _([].concat(j,[P.uid]))}return G}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})],0)})})},v=function(L,w){var A=L.name,x=i(L,C),E=(0,t.useLocalState)(w,"viewingPhoto",""),P=E[0],D=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"img",className:"Newscaster__photo",src:A,onClick:function(){function M(){return D(A)}return M}()},x)))},f=function(L,w){var A=(0,t.useLocalState)(w,"viewingPhoto",""),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Newscaster__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:x}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function P(){return E("")}return P}()})]})},N=function(L,w){var A=(0,t.useBackend)(w),x=A.act,E=A.data,P=!!L.args.uid&&E.channels.filter(function(oe){return oe.uid===L.args.uid}).pop();if(L.id==="manage_channel"&&!P){(0,y.modalClose)(w);return}var D=L.id==="manage_channel",M=!!L.args.is_admin,O=L.args.scanned_user,R=(0,t.useLocalState)(w,"author",(P==null?void 0:P.author)||O||"Unknown"),j=R[0],_=R[1],W=(0,t.useLocalState)(w,"name",(P==null?void 0:P.name)||""),z=W[0],K=W[1],G=(0,t.useLocalState)(w,"description",(P==null?void 0:P.description)||""),Q=G[0],J=G[1],ue=(0,t.useLocalState)(w,"icon",(P==null?void 0:P.icon)||"newspaper"),ie=ue[0],pe=ue[1],te=(0,t.useLocalState)(w,"isPublic",D?!!(P!=null&&P.public):!1),q=te[0],ne=te[1],le=(0,t.useLocalState)(w,"adminLocked",(P==null?void 0:P.admin)===1||!1),ee=le[0],re=le[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:D?"Manage "+P.name:"Create New Channel",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!M,width:"100%",value:j,onInput:function(){function oe(fe,me){return _(me)}return oe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"50 characters max.",maxLength:"50",value:z,onInput:function(){function oe(fe,me){return K(me)}return oe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",placeholder:"128 characters max.",maxLength:"128",value:Q,onInput:function(){function oe(fe,me){return J(me)}return oe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Icon",children:[(0,e.createComponentVNode)(2,o.Input,{disabled:!M,value:ie,width:"35%",mr:"0.5rem",onInput:function(){function oe(fe,me){return pe(me)}return oe}()}),(0,e.createComponentVNode)(2,o.Icon,{name:ie,size:"2",verticalAlign:"middle",mr:"0.5rem"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Accept Public Stories?",children:(0,e.createComponentVNode)(2,o.Button,{selected:q,icon:q?"toggle-on":"toggle-off",content:q?"Yes":"No",onClick:function(){function oe(){return ne(!q)}return oe}()})}),M&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ee,icon:ee?"lock":"lock-open",content:ee?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function oe(){return re(!ee)}return oe}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:j.trim().length===0||z.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function oe(){(0,y.modalAnswer)(w,L.id,"",{author:j,name:z.substr(0,49),description:Q.substr(0,128),icon:ie,public:q?1:0,admin_locked:ee?1:0})}return oe}()})]})},V=function(L,w){var A=(0,t.useBackend)(w),x=A.act,E=A.data,P=E.photo,D=E.channels,M=E.channel_idx,O=M===void 0?-1:M,R=!!L.args.is_admin,j=L.args.scanned_user,_=D.slice().sort(function(oe,fe){if(O<0)return 0;var me=D[O-1];if(me.uid===oe.uid)return-1;if(me.uid===fe.uid)return 1}).filter(function(oe){return R||!oe.frozen&&(oe.author===j||!!oe.public)}),W=(0,t.useLocalState)(w,"author",j||"Unknown"),z=W[0],K=W[1],G=(0,t.useLocalState)(w,"channel",_.length>0?_[0].name:""),Q=G[0],J=G[1],ue=(0,t.useLocalState)(w,"title",""),ie=ue[0],pe=ue[1],te=(0,t.useLocalState)(w,"body",""),q=te[0],ne=te[1],le=(0,t.useLocalState)(w,"adminLocked",!1),ee=le[0],re=le[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Create New Story",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!R,width:"100%",value:z,onInput:function(){function oe(fe,me){return K(me)}return oe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:Q,options:_.map(function(oe){return oe.name}),mb:"0",width:"100%",onSelected:function(){function oe(fe){return J(fe)}return oe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"128 characters max.",maxLength:"128",value:ie,onInput:function(){function oe(fe,me){return pe(me)}return oe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Story Text",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,multiline:!0,placeholder:"1024 characters max.",maxLength:"1024",rows:"8",width:"100%",value:q,onInput:function(){function oe(fe,me){return ne(me)}return oe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:P,content:P?"Eject: "+P.name:"Insert Photo",tooltip:!P&&"Attach a photo to this story by holding the photograph in your hand.",onClick:function(){function oe(){return x(P?"eject_photo":"attach_photo")}return oe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,title:ie,maxHeight:"13.5rem",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:[!!P&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+P.uid+".png",float:"right"}),q.split("\n").map(function(oe,fe){return(0,e.createComponentVNode)(2,o.Box,{children:oe||(0,e.createVNode)(1,"br")},fe)}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})]})})}),R&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ee,icon:ee?"lock":"lock-open",content:ee?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function oe(){return re(!ee)}return oe}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:z.trim().length===0||Q.trim().length===0||ie.trim().length===0||q.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function oe(){(0,y.modalAnswer)(w,"create_story","",{author:z,channel:Q,title:ie.substr(0,127),body:q.substr(0,1023),admin_locked:ee?1:0})}return oe}()})]})},B=function(L,w){var A=(0,t.useBackend)(w),x=A.act,E=A.data,P=E.photo,D=E.wanted,M=!!L.args.is_admin,O=L.args.scanned_user,R=(0,t.useLocalState)(w,"author",(D==null?void 0:D.author)||O||"Unknown"),j=R[0],_=R[1],W=(0,t.useLocalState)(w,"name",(D==null?void 0:D.title.substr(8))||""),z=W[0],K=W[1],G=(0,t.useLocalState)(w,"description",(D==null?void 0:D.body)||""),Q=G[0],J=G[1],ue=(0,t.useLocalState)(w,"adminLocked",(D==null?void 0:D.admin_locked)===1||!1),ie=ue[0],pe=ue[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Manage Wanted Notice",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Authority",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!M,width:"100%",value:j,onInput:function(){function te(q,ne){return _(ne)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",value:z,maxLength:"128",onInput:function(){function te(q,ne){return K(ne)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",value:Q,maxLength:"512",rows:"4",onInput:function(){function te(q,ne){return J(ne)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:P,content:P?"Eject: "+P.name:"Insert Photo",tooltip:!P&&"Attach a photo to this wanted notice by holding the photograph in your hand.",tooltipPosition:"top",onClick:function(){function te(){return x(P?"eject_photo":"attach_photo")}return te}()}),!!P&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+P.uid+".png",float:"right"})]}),M&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ie,icon:ie?"lock":"lock-open",content:ie?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function te(){return pe(!ie)}return te}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!D,icon:"eraser",color:"danger",content:"Clear",position:"absolute",right:"7.25rem",bottom:"-0.75rem",onClick:function(){function te(){x("clear_wanted_notice"),(0,y.modalClose)(w)}return te}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:j.trim().length===0||z.trim().length===0||Q.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function te(){(0,y.modalAnswer)(w,L.id,"",{author:j,name:z.substr(0,127),description:Q.substr(0,511),admin_locked:ie?1:0})}return te}()})]})};(0,y.modalRegisterBodyOverride)("create_channel",N),(0,y.modalRegisterBodyOverride)("manage_channel",N),(0,y.modalRegisterBodyOverride)("create_story",V),(0,y.modalRegisterBodyOverride)("wanted_notice",B)},48286:function(T,r,n){"use strict";r.__esModule=!0,r.Noticeboard=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(98595),b=r.Noticeboard=function(){function y(I,k){var C=(0,t.useBackend)(k),i=C.act,c=C.data,m=c.papers;return(0,e.createComponentVNode)(2,p.Window,{width:600,height:300,theme:"noticeboard",children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:m.map(function(l){return(0,e.createComponentVNode)(2,o.Stack.Item,{align:"center",width:"22.45%",height:"85%",onClick:function(){function d(){return i("interact",{paper:l.ref})}return d}(),onContextMenu:function(){function d(s){s.preventDefault(),i("showFull",{paper:l.ref})}return d}(),children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,fontSize:.75,title:l.name,children:(0,a.decodeHtmlEntities)(l.contents)})},l.ref)})})})})}return y}()},41166:function(T,r,n){"use strict";r.__esModule=!0,r.NuclearBomb=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.NuclearBomb=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data;return i.extended?(0,e.createComponentVNode)(2,o.Window,{width:350,height:290,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Disk",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.authdisk?"eject":"id-card",selected:i.authdisk,content:i.diskname?i.diskname:"-----",tooltip:i.authdisk?"Eject Disk":"Insert Disk",onClick:function(){function c(){return C("auth")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Code",children:(0,e.createComponentVNode)(2,t.Button,{icon:"key",disabled:!i.authdisk,selected:i.authcode,content:i.codemsg,onClick:function(){function c(){return C("code")}return c}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Arming & Disarming",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bolted to floor",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.anchored?"check":"times",selected:i.anchored,disabled:!i.authdisk,content:i.anchored?"YES":"NO",onClick:function(){function c(){return C("toggle_anchor")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"stopwatch",content:i.time,disabled:!i.authfull,tooltip:"Set Timer",onClick:function(){function c(){return C("set_time")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.safety?"check":"times",selected:i.safety,disabled:!i.authfull,content:i.safety?"ON":"OFF",tooltip:i.safety?"Disable Safety":"Enable Safety",onClick:function(){function c(){return C("toggle_safety")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Arm/Disarm",children:(0,e.createComponentVNode)(2,t.Button,{icon:(i.timer,"bomb"),disabled:i.safety||!i.authfull,color:"red",content:i.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){function c(){return C("toggle_armed")}return c}()})})]})})]})}):(0,e.createComponentVNode)(2,o.Window,{width:350,height:115,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Deployment",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"exclamation-triangle",content:"Deploy Nuclear Device (will bolt device to floor)",onClick:function(){function c(){return C("deploy")}return c}()})})})})}return b}()},52416:function(T,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(92986),p=n(72253),b=n(36036),y=n(98595),I=r.NumberInputModal=function(){function C(i,c){var m=(0,p.useBackend)(c),l=m.act,d=m.data,s=d.init_value,u=d.large_buttons,h=d.message,g=h===void 0?"":h,v=d.timeout,f=d.title,N=(0,p.useLocalState)(c,"input",s),V=N[0],B=N[1],S=function(){function A(x){x!==V&&B(x)}return A}(),L=function(){function A(x){x!==V&&B(x)}return A}(),w=140+Math.max(Math.ceil(g.length/3),g.length>0&&u?5:0);return(0,e.createComponentVNode)(2,y.Window,{title:f,width:270,height:w,children:[v&&(0,e.createComponentVNode)(2,a.Loader,{value:v}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function A(x){var E=window.event?x.which:x.keyCode;E===o.KEY_ENTER&&l("submit",{entry:V}),E===o.KEY_ESCAPE&&l("cancel")}return A}(),children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Box,{color:"label",children:g})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,k,{input:V,onClick:L,onChange:S})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:V})})]})})})]})}return C}(),k=function(i,c){var m=(0,p.useBackend)(c),l=m.act,d=m.data,s=d.min_value,u=d.max_value,h=d.init_value,g=d.round_value,v=i.input,f=i.onClick,N=i.onChange,V=Math.round(v!==s?Math.max(v/2,s):u/2),B=v===s&&s>0||v===1;return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Button,{disabled:v===s,icon:"angle-double-left",onClick:function(){function S(){return f(s)}return S}(),tooltip:v===s?"Min":"Min ("+s+")"})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.RestrictedInput,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!g,minValue:s,maxValue:u,onChange:function(){function S(L,w){return N(w)}return S}(),onEnter:function(){function S(L,w){return l("submit",{entry:w})}return S}(),value:v})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Button,{disabled:v===u,icon:"angle-double-right",onClick:function(){function S(){return f(u)}return S}(),tooltip:v===u?"Max":"Max ("+u+")"})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Button,{disabled:B,icon:"divide",onClick:function(){function S(){return f(V)}return S}(),tooltip:B?"Split":"Split ("+V+")"})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Button,{disabled:v===h,icon:"redo",onClick:function(){function S(){return f(h)}return S}(),tooltip:h?"Reset ("+h+")":"Reset"})})]})}},1218:function(T,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(98595),p=n(36036),b=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],y=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],I={average:[.25,.5],bad:[.5,1/0]},k=["bad","average","average","good","average","average","bad"],C=r.OperatingComputer=function(){function l(d,s){var u=(0,t.useBackend)(s),h=u.act,g=u.data,v=g.hasOccupant,f=g.choice,N;return f?N=(0,e.createComponentVNode)(2,m):N=v?(0,e.createComponentVNode)(2,i):(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,o.Window,{width:650,height:455,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Tabs,{children:[(0,e.createComponentVNode)(2,p.Tabs.Tab,{selected:!f,icon:"user",onClick:function(){function V(){return h("choiceOff")}return V}(),children:"Patient"}),(0,e.createComponentVNode)(2,p.Tabs.Tab,{selected:!!f,icon:"cog",onClick:function(){function V(){return h("choiceOn")}return V}(),children:"Options"})]})}),(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,p.Section,{fill:!0,scrollable:!0,children:N})})]})})})}return l}(),i=function(d,s){var u=(0,t.useBackend)(s),h=u.data,g=h.occupant;return(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,p.Section,{fill:!0,title:"Patient",children:(0,e.createComponentVNode)(2,p.LabeledList,{children:[(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Name",children:g.name}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Status",color:b[g.stat][0],children:b[g.stat][1]}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,p.ProgressBar,{min:"0",max:g.maxHealth,value:g.health/g.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),y.map(function(v,f){return(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:v[0]+" Damage",children:(0,e.createComponentVNode)(2,p.ProgressBar,{min:"0",max:"100",value:g[v[1]]/100,ranges:I,children:(0,a.round)(g[v[1]])},f)},f)}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,p.ProgressBar,{min:"0",max:g.maxTemp,value:g.bodyTemperature/g.maxTemp,color:k[g.temperatureSuitability+3],children:[(0,a.round)(g.btCelsius),"\xB0C, ",(0,a.round)(g.btFaren),"\xB0F"]})}),!!g.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,p.ProgressBar,{min:"0",max:g.bloodMax,value:g.bloodLevel/g.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[g.bloodPercent,"%, ",g.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Pulse",children:[g.pulse," BPM"]})],4)]})})}),(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Section,{title:"Current Procedure",level:"2",children:g.inSurgery?(0,e.createComponentVNode)(2,p.LabeledList,{children:[(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Procedure",children:g.surgeryName}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Next Step",children:g.stepName})]}):(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"No procedure ongoing."})})})]})},c=function(){return(0,e.createComponentVNode)(2,p.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,p.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No patient detected."]})})},m=function(d,s){var u=(0,t.useBackend)(s),h=u.act,g=u.data,v=g.verbose,f=g.health,N=g.healthAlarm,V=g.oxy,B=g.oxyAlarm,S=g.crit;return(0,e.createComponentVNode)(2,p.LabeledList,{children:[(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Loudspeaker",children:(0,e.createComponentVNode)(2,p.Button,{selected:v,icon:v?"toggle-on":"toggle-off",content:v?"On":"Off",onClick:function(){function L(){return h(v?"verboseOff":"verboseOn")}return L}()})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Health Announcer",children:(0,e.createComponentVNode)(2,p.Button,{selected:f,icon:f?"toggle-on":"toggle-off",content:f?"On":"Off",onClick:function(){function L(){return h(f?"healthOff":"healthOn")}return L}()})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,e.createComponentVNode)(2,p.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:N,stepPixelSize:5,ml:"0",onChange:function(){function L(w,A){return h("health_adj",{new:A})}return L}()})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,p.Button,{selected:V,icon:V?"toggle-on":"toggle-off",content:V?"On":"Off",onClick:function(){function L(){return h(V?"oxyOff":"oxyOn")}return L}()})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,e.createComponentVNode)(2,p.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:B,stepPixelSize:5,ml:"0",onChange:function(){function L(w,A){return h("oxy_adj",{new:A})}return L}()})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,p.Button,{selected:S,icon:S?"toggle-on":"toggle-off",content:S?"On":"Off",onClick:function(){function L(){return h(S?"critOff":"critOn")}return L}()})})]})}},46892:function(T,r,n){"use strict";r.__esModule=!0,r.Orbit=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(98595),b=n(35840);function y(u,h){var g=typeof Symbol!="undefined"&&u[Symbol.iterator]||u["@@iterator"];if(g)return(g=g.call(u)).next.bind(g);if(Array.isArray(u)||(g=I(u))||h&&u&&typeof u.length=="number"){g&&(u=g);var v=0;return function(){return v>=u.length?{done:!0}:{done:!1,value:u[v++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function I(u,h){if(u){if(typeof u=="string")return k(u,h);var g={}.toString.call(u).slice(8,-1);return g==="Object"&&u.constructor&&(g=u.constructor.name),g==="Map"||g==="Set"?Array.from(u):g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g)?k(u,h):void 0}}function k(u,h){(h==null||h>u.length)&&(h=u.length);for(var g=0,v=Array(h);gg},m=function(h,g){var v=h.name,f=g.name;if(!v||!f)return 0;var N=v.match(C),V=f.match(C);if(N&&V&&v.replace(C,"")===f.replace(C,"")){var B=parseInt(N[1],10),S=parseInt(V[1],10);return B-S}return c(v,f)},l=function(h,g){var v=h.searchText,f=h.source,N=h.title,V=h.color,B=h.sorted,S=f.filter(i(v));return B&&S.sort(m),f.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:N+" - ("+f.length+")",children:S.map(function(L){return(0,e.createComponentVNode)(2,d,{thing:L,color:V},L.name)})})},d=function(h,g){var v=(0,t.useBackend)(g),f=v.act,N=h.color,V=h.thing;return(0,e.createComponentVNode)(2,o.Button,{color:N,tooltip:V.assigned_role?(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",mr:"0.5em",className:(0,b.classes)(["job_icons16x16",V.assigned_role_sprite])})," ",V.assigned_role]}):"",tooltipPosition:"bottom",onClick:function(){function B(){return f("orbit",{ref:V.ref})}return B}(),children:[V.name,V.orbiters&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,ml:1,children:["(",V.orbiters," ",(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),")"]})]})},s=r.Orbit=function(){function u(h,g){for(var v=(0,t.useBackend)(g),f=v.act,N=v.data,V=N.alive,B=N.antagonists,S=N.highlights,L=N.response_teams,w=N.tourist,A=N.auto_observe,x=N.dead,E=N.ssd,P=N.ghosts,D=N.misc,M=N.npcs,O=(0,t.useLocalState)(g,"searchText",""),R=O[0],j=O[1],_={},W=y(B),z;!(z=W()).done;){var K=z.value;_[K.antag]===void 0&&(_[K.antag]=[]),_[K.antag].push(K)}var G=Object.entries(_);G.sort(function(J,ue){return c(J[0],ue[0])});var Q=function(){function J(ue){for(var ie=0,pe=[G.map(function(ne){var le=ne[0],ee=ne[1];return ee}),w,S,V,P,E,x,M,D];ie0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:G.map(function(J){var ue=J[0],ie=J[1];return(0,e.createComponentVNode)(2,o.Section,{title:ue+" - ("+ie.length+")",level:2,children:ie.filter(i(R)).sort(m).map(function(pe){return(0,e.createComponentVNode)(2,d,{color:"bad",thing:pe},pe.name)})},ue)})}),S.length>0&&(0,e.createComponentVNode)(2,l,{title:"Highlights",source:S,searchText:R,color:"teal"}),(0,e.createComponentVNode)(2,l,{title:"Response Teams",source:L,searchText:R,color:"purple"}),(0,e.createComponentVNode)(2,l,{title:"Tourists",source:w,searchText:R,color:"violet"}),(0,e.createComponentVNode)(2,l,{title:"Alive",source:V,searchText:R,color:"good"}),(0,e.createComponentVNode)(2,l,{title:"Ghosts",source:P,searchText:R,color:"grey"}),(0,e.createComponentVNode)(2,l,{title:"SSD",source:E,searchText:R,color:"grey"}),(0,e.createComponentVNode)(2,l,{title:"Dead",source:x,searchText:R,sorted:!1}),(0,e.createComponentVNode)(2,l,{title:"NPCs",source:M,searchText:R,sorted:!1}),(0,e.createComponentVNode)(2,l,{title:"Misc",source:D,searchText:R,sorted:!1})]})})}return u}()},15421:function(T,r,n){"use strict";r.__esModule=!0,r.OreRedemption=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),p=n(98595),b=n(9394);function y(u){if(u==null)throw new TypeError("Cannot destructure "+u)}var I=(0,b.createLogger)("OreRedemption"),k=function(h){return h.toLocaleString("en-US")+" pts"},C=r.OreRedemption=function(){function u(h,g){return(0,e.createComponentVNode)(2,p.Window,{width:490,height:750,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i,{height:"100%"})}),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,m)]})})})}return u}(),i=function(h,g){var v=(0,t.useBackend)(g),f=v.act,N=v.data,V=N.id,B=N.points,S=N.disk,L=Object.assign({},(y(h),h));return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({},L,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"This machine only accepts ore. Gibtonite is not accepted."]}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed Points",color:B>0?"good":"grey",bold:B>0&&"good",children:k(B)})}),(0,e.createComponentVNode)(2,o.Divider),S?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Design disk",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,icon:"eject",content:S.name,tooltip:"Ejects the design disk.",onClick:function(){function w(){return f("eject_disk")}return w}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!S.design||!S.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){function w(){return f("download")}return w}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stored design",children:(0,e.createComponentVNode)(2,o.Box,{color:S.design&&(S.compatible?"good":"bad"),children:S.design||"N/A"})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No design disk inserted."})]})))},c=function(h,g){var v=(0,t.useBackend)(g),f=v.act,N=v.data,V=N.sheets,B=Object.assign({},(y(h),h));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"20%",children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},B,{children:[(0,e.createComponentVNode)(2,l,{title:"Sheets",columns:[["Available","25%"],["Ore Value","15%"],["Smelt","20%"]]}),V.map(function(S){return(0,e.createComponentVNode)(2,d,{ore:S},S.id)})]})))})},m=function(h,g){var v=(0,t.useBackend)(g),f=v.act,N=v.data,V=N.alloys,B=Object.assign({},(y(h),h));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},B,{children:[(0,e.createComponentVNode)(2,l,{title:"Alloys",columns:[["Recipe","50%"],["Available","11%"],["Smelt","20%"]]}),V.map(function(S){return(0,e.createComponentVNode)(2,s,{ore:S},S.id)})]})))})},l=function(h,g){var v;return(0,e.createComponentVNode)(2,o.Box,{className:"OreHeader",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:h.title}),(v=h.columns)==null?void 0:v.map(function(f){return(0,e.createComponentVNode)(2,o.Stack.Item,{basis:f[1],textAlign:"center",color:"label",bold:!0,children:f[0]},f)})]})})},d=function(h,g){var v=(0,t.useBackend)(g),f=v.act,N=h.ore;if(!(N.value&&N.amount<=0&&!(["metal","glass"].indexOf(N.id)>-1)))return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"45%",align:"middle",children:(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",N.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:N.name})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",color:N.amount>=1?"good":"gray",bold:N.amount>=1,align:"center",children:N.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",children:N.value}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(N.amount,50),stepPixelSize:6,onChange:function(){function V(B,S){return f(N.value?"sheet":"alloy",{id:N.id,amount:S})}return V}()})})]})})},s=function(h,g){var v=(0,t.useBackend)(g),f=v.act,N=h.ore;return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"7%",align:"middle",children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["alloys32x32",N.id])})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",textAlign:"middle",align:"center",children:N.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"35%",textAlign:"middle",color:N.amount>=1?"good":"gray",align:"center",children:N.description}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"10%",textAlign:"center",color:N.amount>=1?"good":"gray",bold:N.amount>=1,align:"center",children:N.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(N.amount,50),stepPixelSize:6,onChange:function(){function V(B,S){return f(N.value?"sheet":"alloy",{id:N.id,amount:S})}return V}()})})]})})}},52754:function(T,r,n){"use strict";r.__esModule=!0,r.PAI=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(71253),b=n(70752),y=function(C){var i;try{i=b("./"+C+".js")}catch(m){if(m.code==="MODULE_NOT_FOUND")return(0,p.routingError)("notFound",C);throw m}var c=i[C];return c||(0,p.routingError)("missingExport",C)},I=r.PAI=function(){function k(C,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.app_template,s=l.app_icon,u=l.app_title,h=y(d);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{p:1,fill:!0,scrollable:!0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:s,mr:1}),u,d!=="pai_main_menu"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{ml:2,mb:0,content:"Back",icon:"arrow-left",onClick:function(){function g(){return m("Back")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Home",icon:"arrow-up",onClick:function(){function g(){return m("MASTER_back")}return g}()})],4)]}),children:(0,e.createComponentVNode)(2,h)})})})})})}return k}()},85175:function(T,r,n){"use strict";r.__esModule=!0,r.PDA=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(71253),b=n(59395),y=function(c){var m;try{m=b("./"+c+".js")}catch(d){if(d.code==="MODULE_NOT_FOUND")return(0,p.routingError)("notFound",c);throw d}var l=m[c];return l||(0,p.routingError)("missingExport",c)},I=r.PDA=function(){function i(c,m){var l=(0,a.useBackend)(m),d=l.act,s=l.data,u=s.app,h=s.owner;if(!h)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:"No user data found. Please swipe an ID card."})})});var g=y(u.template);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,k)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,p:1,pb:0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:u.icon,mr:1}),u.name]}),children:(0,e.createComponentVNode)(2,g)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:7.5,children:(0,e.createComponentVNode)(2,C)})]})})})}return i}(),k=function(c,m){var l=(0,a.useBackend)(m),d=l.act,s=l.data,u=s.idInserted,h=s.idLink,g=s.stationTime,v=s.cartridge_name;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{ml:.5,children:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",color:"transparent",onClick:function(){function f(){return d("Authenticate")}return f}(),content:u?h:"No ID Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function f(){return d("Eject")}return f}(),content:v?["Eject "+v]:"No Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"right",bold:!0,mr:1,mt:.5,children:g})]})},C=function(c,m){var l=(0,a.useBackend)(m),d=l.act,s=l.data,u=s.app;return(0,e.createComponentVNode)(2,t.Box,{height:"45px",className:"PDA__footer",backgroundColor:"#1b1b1b",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[!!u.has_back&&(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"33%",mr:-.5,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:u.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){function h(){return d("Back")}return h}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:u.has_back?"33%":"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:u.is_home?"disabled":"white",icon:"home",onClick:function(){function h(){d("Home")}return h}()})})]})})}},68654:function(T,r,n){"use strict";r.__esModule=!0,r.Pacman=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(49968),b=r.Pacman=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=c.active,l=c.anchored,d=c.broken,s=c.emagged,u=c.fuel_type,h=c.fuel_usage,g=c.fuel_stored,v=c.fuel_cap,f=c.is_ai,N=c.tmp_current,V=c.tmp_max,B=c.tmp_overheat,S=c.output_max,L=c.power_gen,w=c.output_set,A=c.has_fuel,x=g/v,E=N/V,P=w*L,D=Math.round(g/h*2),M=Math.round(D/60),O=D>120?M+" minutes":D+" seconds";return(0,e.createComponentVNode)(2,o.Window,{width:500,height:225,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(d||!l)&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[!!d&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator is malfunctioning!"}),!d&&!l&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!d&&!!l&&(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:m?"power-off":"times",content:m?"On":"Off",tooltip:"Toggles the generator on/off. Requires fuel.",tooltipPosition:"left",disabled:!A,selected:m,onClick:function(){function R(){return i("toggle_power")}return R}()}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",className:"ml-1",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power setting",children:[(0,e.createComponentVNode)(2,t.NumberInput,{value:w,minValue:1,maxValue:S*(s?2.5:1),step:1,className:"mt-1",onDrag:function(){function R(j,_){return i("change_power",{change_power:_})}return R}()}),"(",(0,p.formatPower)(P),")"]})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:E,ranges:{green:[-1/0,.33],orange:[.33,.66],red:[.66,1/0]},children:[N," \u2103"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[B>50&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"CRITICAL OVERHEAT!"}),B>20&&B<=50&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"WARNING: Overheating!"}),B>1&&B<=20&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Temperature High"}),B===0&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Optimal"})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fuel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject Fuel",tooltip:"Ejects fuel. Generator needs to be offline.",tooltipPosition:"left",disabled:m||f||!A,onClick:function(){function R(){return i("eject_fuel")}return R}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Type",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:x,ranges:{red:[-1/0,.33],orange:[.33,.66],green:[.66,1/0]},children:[Math.round(g/1e3)," dm\xB3"]})})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel usage",children:[h/1e3," dm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel depletion",children:[!!A&&(h?O:"N/A"),!A&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}return y}()},1701:function(T,r,n){"use strict";r.__esModule=!0,r.PanDEMIC=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.PanDEMIC=function(){function l(d,s){var u=(0,a.useBackend)(s),h=u.data,g=h.beakerLoaded,v=h.beakerContainsBlood,f=h.beakerContainsVirus,N=h.resistances,V=N===void 0?[]:N,B;return g?v?v&&!f&&(B=(0,e.createFragment)([(0,e.createTextVNode)("No disease detected in provided blood sample.")],4)):B=(0,e.createFragment)([(0,e.createTextVNode)("No blood sample found in the loaded container.")],4):B=(0,e.createFragment)([(0,e.createTextVNode)("No container loaded.")],4),(0,e.createComponentVNode)(2,o.Window,{width:575,height:510,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[B&&!f?(0,e.createComponentVNode)(2,t.Section,{title:"Container Information",buttons:(0,e.createComponentVNode)(2,b,{fill:!0,vertical:!0}),children:(0,e.createComponentVNode)(2,t.NoticeBox,{children:B})}):(0,e.createComponentVNode)(2,k),(V==null?void 0:V.length)>0&&(0,e.createComponentVNode)(2,m,{align:"bottom"})]})})})}return l}(),b=function(d,s){var u=(0,a.useBackend)(s),h=u.act,g=u.data,v=g.beakerLoaded;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!v,onClick:function(){function f(){return h("eject_beaker")}return f}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",confirmIcon:"eraser",content:"Destroy",confirmContent:"Destroy",disabled:!v,onClick:function(){function f(){return h("destroy_eject_beaker")}return f}()})],4)},y=function(d,s){var u=(0,a.useBackend)(s),h=u.act,g=u.data,v=g.beakerContainsVirus,f=d.strain,N=f.commonName,V=f.description,B=f.diseaseAgent,S=f.bloodDNA,L=f.bloodType,w=f.possibleTreatments,A=f.transmissionRoute,x=f.isAdvanced,E=(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",children:S?(0,e.createVNode)(1,"span",null,S,0,{style:{"font-family":"'Courier New', monospace"}}):"Undetectable"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood Type",children:(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:L!=null?L:"Undetectable"}})})],4);if(!v)return(0,e.createComponentVNode)(2,t.LabeledList,{children:E});var P;return x&&(N!=null&&N!=="Unknown"?P=(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print Release Forms",onClick:function(){function D(){return h("print_release_forms",{strain_index:d.strainIndex})}return D}(),style:{"margin-left":"auto"}}):P=(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Name Disease",onClick:function(){function D(){return h("name_strain",{strain_index:d.strainIndex})}return D}(),style:{"margin-left":"auto"}})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Common Name",className:"common-name-label",children:(0,e.createComponentVNode)(2,t.Stack,{horizontal:!0,align:"center",children:[N!=null?N:"Unknown",P]})}),V&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:V}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Disease Agent",children:B}),E,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Spread Vector",children:A!=null?A:"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Possible Cures",children:w!=null?w:"None"})]})},I=function(d,s){var u,h=(0,a.useBackend)(s),g=h.act,v=h.data,f=!!v.synthesisCooldown,N=(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:f?"spinner":"clone",iconSpin:f,content:"Clone",disabled:f,onClick:function(){function V(){return g("clone_strain",{strain_index:d.strainIndex})}return V}()}),d.sectionButtons],0);return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:(u=d.sectionTitle)!=null?u:"Strain Information",buttons:N,children:(0,e.createComponentVNode)(2,y,{strain:d.strain,strainIndex:d.strainIndex})})})},k=function(d,s){var u,h=(0,a.useBackend)(s),g=h.act,v=h.data,f=v.selectedStrainIndex,N=v.strains,V=N[f-1];if(N.length===0)return(0,e.createComponentVNode)(2,t.Section,{title:"Container Information",buttons:(0,e.createComponentVNode)(2,b),children:(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No disease detected in provided blood sample."})});if(N.length===1){var B;return(0,e.createFragment)([(0,e.createComponentVNode)(2,I,{strain:N[0],strainIndex:1,sectionButtons:(0,e.createComponentVNode)(2,b)}),((B=N[0].symptoms)==null?void 0:B.length)>0&&(0,e.createComponentVNode)(2,i,{strain:N[0]})],0)}var S=(0,e.createComponentVNode)(2,b);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Culture Information",fill:!0,buttons:S,children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",style:{height:"100%"},children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{children:N.map(function(L,w){var A;return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"virus",selected:f-1===w,onClick:function(){function x(){return g("switch_strain",{strain_index:w+1})}return x}(),children:(A=L.commonName)!=null?A:"Unknown"},w)})})}),(0,e.createComponentVNode)(2,I,{strain:V,strainIndex:f}),((u=V.symptoms)==null?void 0:u.length)>0&&(0,e.createComponentVNode)(2,i,{className:"remove-section-bottom-padding",strain:V})]})})})},C=function(d){return d.reduce(function(s,u){return s+u},0)},i=function(d){var s=d.strain.symptoms;return(0,e.createComponentVNode)(2,t.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Infection Symptoms",fill:!0,className:d.className,children:(0,e.createComponentVNode)(2,t.Table,{className:"symptoms-table",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Stealth"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Resistance"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Stage Speed"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Transmissibility"})]}),s.map(function(u,h){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.stealth}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.resistance}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.stageSpeed}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.transmissibility})]},h)}),(0,e.createComponentVNode)(2,t.Table.Row,{className:"table-spacer"}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"font-weight":"bold"},children:"Total"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C(s.map(function(u){return u.stealth}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C(s.map(function(u){return u.resistance}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C(s.map(function(u){return u.stageSpeed}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C(s.map(function(u){return u.transmissibility}))})]})]})})})},c=["flask","vial","eye-dropper"],m=function(d,s){var u=(0,a.useBackend)(s),h=u.act,g=u.data,v=g.synthesisCooldown,f=g.beakerContainsVirus,N=g.resistances;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Antibodies",fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{horizontal:!0,wrap:!0,children:N.map(function(V,B){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:c[B%c.length],disabled:!!v,onClick:function(){function S(){return h("clone_vaccine",{resistance_index:B+1})}return S}(),mr:"0.5em"}),V]},B)})})})})}},67921:function(T,r,n){"use strict";r.__esModule=!0,r.ParticleAccelerator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.ParticleAccelerator=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.assembled,m=i.power,l=i.strength,d=i.max_strength;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:160,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Control Panel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Connect",onClick:function(){function s(){return C("scan")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",mb:"5px",children:(0,e.createComponentVNode)(2,t.Box,{color:c?"good":"bad",children:c?"Operational":"Error: Verify Configuration"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:m?"power-off":"times",content:m?"On":"Off",selected:m,disabled:!c,onClick:function(){function s(){return C("power")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Strength",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:!c||l===0,onClick:function(){function s(){return C("remove_strength")}return s}(),mr:"4px"}),l,(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:!c||l===d,onClick:function(){function s(){return C("add_strength")}return s}(),ml:"4px"})]})]})})})})}return b}()},71432:function(T,r,n){"use strict";r.__esModule=!0,r.PdaPainter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.PdaPainter=function(){function k(C,i){var c=(0,a.useBackend)(i),m=c.data,l=m.has_pda;return(0,e.createComponentVNode)(2,o.Window,{width:510,height:505,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:l?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,b)})})}return k}(),b=function(C,i){var c=(0,a.useBackend)(i),m=c.act;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"download",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{width:"160px",textAlign:"center",content:"Insert PDA",onClick:function(){function l(){return m("insert_pda")}return l}()})]})})})},y=function(C,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.pda_colors;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,I)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Table,{className:"PdaPainter__list",children:Object.keys(d).map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{onClick:function(){function u(){return m("choose_pda",{selectedPda:s})}return u}(),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+d[s][0],style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s})]},s)})})})})]})},I=function(C,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.current_appearance,s=l.preview_appearance;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Current PDA",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+d,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",content:"Eject",color:"green",onClick:function(){function u(){return m("eject_pda")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"paint-roller",content:"Paint PDA",onClick:function(){function u(){return m("paint_pda")}return u}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Preview",children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+s,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})})]})}},33388:function(T,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.PersonalCrafting=function(){function I(k,C){var i=(0,a.useBackend)(C),c=i.act,m=i.data,l=m.busy,d=m.category,s=m.display_craftable_only,u=m.display_compact,h=m.prev_cat,g=m.next_cat,v=m.subcategory,f=m.prev_subcat,N=m.next_subcat;return(0,e.createComponentVNode)(2,o.Window,{width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!l&&(0,e.createComponentVNode)(2,t.Dimmer,{fontSize:"32px",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog",spin:1})," Crafting..."]}),(0,e.createComponentVNode)(2,t.Section,{title:d,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Show Craftable Only",icon:s?"check-square-o":"square-o",selected:s,onClick:function(){function V(){return c("toggle_recipes")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Compact Mode",icon:u?"check-square-o":"square-o",selected:u,onClick:function(){function V(){return c("toggle_compact")}return V}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:h,icon:"arrow-left",onClick:function(){function V(){return c("backwardCat")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:g,icon:"arrow-right",onClick:function(){function V(){return c("forwardCat")}return V}()})]}),v&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:f,icon:"arrow-left",onClick:function(){function V(){return c("backwardSubCat")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:N,icon:"arrow-right",onClick:function(){function V(){return c("forwardSubCat")}return V}()})]}),u?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,y)]})]})})}return I}(),b=function(k,C){var i=(0,a.useBackend)(C),c=i.act,m=i.data,l=m.display_craftable_only,d=m.can_craft,s=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[d.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function h(){return c("make",{make:u.ref})}return h}()}),u.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:u.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:u.req_text,content:"Requirements",color:"transparent"}),u.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:u.tool_text,content:"Tools",color:"transparent"})]},u.name)}),!l&&s.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),u.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:u.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:u.req_text,content:"Requirements",color:"transparent"}),u.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:u.tool_text,content:"Tools",color:"transparent"})]},u.name)})]})})},y=function(k,C){var i=(0,a.useBackend)(C),c=i.act,m=i.data,l=m.display_craftable_only,d=m.can_craft,s=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[d.map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function h(){return c("make",{make:u.ref})}return h}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:u.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:u.req_text}),u.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:u.tool_text})]})},u.name)}),!l&&s.map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:u.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:u.req_text}),u.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:u.tool_text})]})},u.name)})]})}},56150:function(T,r,n){"use strict";r.__esModule=!0,r.Photocopier=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.Photocopier=function(){function I(k,C){var i=(0,a.useBackend)(C),c=i.act,m=i.data;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:440,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Photocopier",color:"silver",children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Copies:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"2em",bold:!0,children:m.copynumber}),(0,e.createComponentVNode)(2,t.Stack.Item,{float:"right",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"minus",textAlign:"center",content:"",onClick:function(){function l(){return c("minus")}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"plus",textAlign:"center",content:"",onClick:function(){function l(){return c("add")}return l}()})]})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Toner:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,children:m.toner})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Document:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!m.copyitem&&!m.mob,content:m.copyitem?m.copyitem:m.mob?m.mob+"'s ass!":"document",onClick:function(){function l(){return c("removedocument")}return l}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Folder:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!m.folder,content:m.folder?m.folder:"folder",onClick:function(){function l(){return c("removefolder")}return l}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,b)}),(0,e.createComponentVNode)(2,y)]})})})}return I}(),b=function(k,C){var i=(0,a.useBackend)(C),c=i.act,m=i.data,l=m.issilicon;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"copy",float:"center",textAlign:"center",content:"Copy",onClick:function(){function d(){return c("copy")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file-import",float:"center",textAlign:"center",content:"Scan",onClick:function(){function d(){return c("scandocument")}return d}()}),!!l&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file",color:"green",float:"center",textAlign:"center",content:"Print Text",onClick:function(){function d(){return c("ai_text")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"image",color:"green",float:"center",textAlign:"center",content:"Print Image",onClick:function(){function d(){return c("ai_pic")}return d}()})],4)],0)},y=function(k,C){var i=(0,a.useBackend)(C),c=i.act,m=i.data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Scanned Files",children:m.files.map(function(l){return(0,e.createComponentVNode)(2,t.Section,{title:l.name,buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:m.toner<=0,onClick:function(){function d(){return c("filecopy",{uid:l.uid})}return d}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",content:"Delete",color:"bad",onClick:function(){function d(){return c("deletefile",{uid:l.uid})}return d}()})]})},l.name)})})}},8340:function(T,r,n){"use strict";r.__esModule=!0,r.Photocopier220=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(88510),b=n(64795),y=n(25328);function I(m,l){var d=typeof Symbol!="undefined"&&m[Symbol.iterator]||m["@@iterator"];if(d)return(d=d.call(m)).next.bind(d);if(Array.isArray(m)||(d=k(m))||l&&m&&typeof m.length=="number"){d&&(m=d);var s=0;return function(){return s>=m.length?{done:!0}:{done:!1,value:m[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function k(m,l){if(m){if(typeof m=="string")return C(m,l);var d={}.toString.call(m).slice(8,-1);return d==="Object"&&m.constructor&&(d=m.constructor.name),d==="Map"||d==="Set"?Array.from(m):d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)?C(m,l):void 0}}function C(m,l){(l==null||l>m.length)&&(l=m.length);for(var d=0,s=Array(l);dm?this.substring(0,m)+"...":this};var i=function(l,d){d===void 0&&(d="");var s=(0,y.createSearch)(d,function(u){return u.altername});return(0,b.flow)([(0,p.filter)(function(u){return u==null?void 0:u.altername}),d&&(0,p.filter)(s),(0,p.sortBy)(function(u){return u.id})])(l)},c=r.Photocopier220=function(){function m(l,d){for(var s=(0,a.useBackend)(d),u=s.act,h=s.data,g=h.copies,v=h.maxcopies,f=(0,a.useLocalState)(d,"searchText",""),N=f[0],V=f[1],B=i((0,p.sortBy)(function(M){return M.category})(h.forms||[]),N),S=[],L=I(B),w;!(w=L()).done;){var A=w.value;S.includes(A.category)||S.push(A.category)}var x=(0,a.useLocalState)(d,"number",0),E=x[0],P=x[1],D;return h.category===""?D=B:D=B.filter(function(M){return M.category===h.category}),(0,e.createComponentVNode)(2,o.Window,{width:550,height:575,theme:h.ui_theme,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"40%",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0442\u0430\u0442\u0443\u0441",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",mt:.3,color:"grey",children:"\u0417\u0430\u0440\u044F\u0434 \u0442\u043E\u043D\u0435\u0440\u0430:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{minValue:0,maxValue:30,value:h.toner})})]}),(0,e.createComponentVNode)(2,t.Stack,{mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",mb:.3,color:"grey",children:"\u0424\u043E\u0440\u043C\u0430:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",textAlign:"center",bold:!0,children:h.form_id===""?"\u041D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u0430":h.form_id})]}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!h.copyitem&&!h.mob,icon:h.copyitem||h.mob?"eject":"times",content:h.copyitem?h.copyitem:h.mob?"\u0416\u043E\u043F\u0430 "+h.mob+"!":"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430",onClick:function(){function M(){return u("removedocument")}return M}()})})}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!h.folder,icon:h.folder?"eject":"times",content:h.folder?h.folder:"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u043F\u0430\u043F\u043A\u0438",onClick:function(){function M(){return u("removefolder")}return M}()})})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"print",disabled:h.toner===0||h.form===null,content:"\u041F\u0435\u0447\u0430\u0442\u044C",onClick:function(){function M(){return u("print_form")}return M}()})}),!!h.isAI&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"image",disabled:h.toner<5,content:"\u0424\u043E\u0442\u043E",tooltip:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0444\u043E\u0442\u043E \u0441 \u0411\u0430\u0437\u044B \u0414\u0430\u043D\u043D\u044B\u0445",onClick:function(){function M(){return u("ai_pic")}return M}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"copy",content:"\u041A\u043E\u043F\u0438\u044F",disabled:h.toner===0||!h.copyitem&&!h.mob,onClick:function(){function M(){return u("copy")}return M}()})}),!!h.isAI&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",ml:"5px",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"i-cursor",content:"\u0422\u0435\u043A\u0441\u0442",tooltip:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0441\u0432\u043E\u0439 \u0442\u0435\u043A\u0441\u0442",disabled:h.toner===0,onClick:function(){function M(){return u("ai_text")}return M}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:1.5,mt:1.2,width:"50%",color:"grey",children:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E:"}),(0,e.createComponentVNode)(2,t.Slider,{mt:.75,width:"50%",animated:!0,minValue:1,maxValue:v,value:g,stepPixelSize:10,onChange:function(){function M(O,R){return u("copies",{new:R})}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u0411\u044E\u0440\u043E\u043A\u0440\u0430\u0442\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mb:-.5,icon:"chevron-right",color:"transparent",content:"\u0412\u0441\u0435 \u0444\u043E\u0440\u043C\u044B",selected:!h.category,onClick:function(){function M(){return u("choose_category",{category:""})}return M}()})}),S.map(function(M){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"chevron-right",mb:-.5,color:"transparent",content:M,selected:h.category===M,onClick:function(){function O(){return u("choose_category",{category:M})}return O}()},M)},M)})]})})})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"60%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:h.category||"\u0412\u0441\u0435 \u0444\u043E\u0440\u043C\u044B",buttons:(0,e.createComponentVNode)(2,t.Input,{mr:18.5,width:"100%",placeholder:"\u041F\u043E\u0438\u0441\u043A \u0444\u043E\u0440\u043C\u044B",onInput:function(){function M(O,R){return V(R)}return M}()}),children:D.map(function(M){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mb:.5,color:"transparent",content:M.altername.trimLongStr(37),tooltip:M.altername,selected:h.form_id===M.id,onClick:function(){function O(){return u("choose_form",{path:M.path,id:M.id})}return O}()})},M.path)})})})]})})})}return m}()},84676:function(T,r,n){"use strict";r.__esModule=!0,r.PoolController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=["tempKey"];function b(C,i){if(C==null)return{};var c={};for(var m in C)if({}.hasOwnProperty.call(C,m)){if(i.includes(m))continue;c[m]=C[m]}return c}var y={scalding:{label:"Scalding",color:"#FF0000",icon:"fa fa-arrow-circle-up",requireEmag:!0},warm:{label:"Warm",color:"#990000",icon:"fa fa-arrow-circle-up"},normal:{label:"Normal",color:null,icon:"fa fa-arrow-circle-right"},cool:{label:"Cool",color:"#009999",icon:"fa fa-arrow-circle-down"},frigid:{label:"Frigid",color:"#00CCCC",icon:"fa fa-arrow-circle-down",requireEmag:!0}},I=function(i,c){var m=i.tempKey,l=b(i,p),d=y[m];if(!d)return null;var s=(0,a.useBackend)(c),u=s.data,h=s.act,g=u.currentTemp,v=d.label,f=d.icon,N=m===g,V=function(){h("setTemp",{temp:m})};return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({color:"transparent",selected:N,onClick:V},l,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:f}),v]})))},k=r.PoolController=function(){function C(i,c){for(var m=(0,a.useBackend)(c),l=m.data,d=l.emagged,s=l.currentTemp,u=y[s]||y.normal,h=u.label,g=u.color,v=[],f=0,N=Object.entries(y);f50?"battery-half":"battery-quarter")||g==="C"&&"bolt"||g==="F"&&"battery-full"||g==="M"&&"slash",color:g==="N"&&(v>50?"yellow":"red")||g==="C"&&"yellow"||g==="F"&&"green"||g==="M"&&"orange"}),(0,e.createComponentVNode)(2,I.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,o.toFixed)(v)+"%"})],4)};d.defaultHooks=p.pureComponentHooks;var s=function(h){var g,v,f=h.status;switch(f){case"AOn":g=!0,v=!0;break;case"AOff":g=!0,v=!1;break;case"On":g=!1,v=!0;break;case"Off":g=!1,v=!1;break}var N=(v?"On":"Off")+(" ["+(g?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,I.ColorBox,{color:v?"good":"bad",content:g?void 0:"M",title:N})};s.defaultHooks=p.pureComponentHooks},50992:function(T,r,n){"use strict";r.__esModule=!0,r.PrisonerImplantManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(29319),p=n(3939),b=n(321),y=n(5485),I=n(98595),k=r.PrisonerImplantManager=function(){function C(i,c){var m=(0,a.useBackend)(c),l=m.act,d=m.data,s=d.loginState,u=d.prisonerInfo,h=d.chemicalInfo,g=d.trackingInfo,v;if(!s.logged_in)return(0,e.createComponentVNode)(2,I.Window,{theme:"security",width:500,height:850,children:(0,e.createComponentVNode)(2,I.Window.Content,{children:(0,e.createComponentVNode)(2,y.LoginScreen)})});var f=[1,5,10];return(0,e.createComponentVNode)(2,I.Window,{theme:"security",width:500,height:850,children:[(0,e.createComponentVNode)(2,p.ComplexModal),(0,e.createComponentVNode)(2,I.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.LoginInfo),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Prisoner Points Manager System",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:u.name?"eject":"id-card",selected:u.name,content:u.name?u.name:"-----",tooltip:u.name?"Eject ID":"Insert ID",onClick:function(){function N(){return l("id_card")}return N}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Points",children:[u.points!==null?u.points:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"minus-square",disabled:u.points===null,content:"Reset",onClick:function(){function N(){return l("reset_points")}return N}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Point Goal",children:[u.goal!==null?u.goal:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"pen",disabled:u.goal===null,content:"Edit",onClick:function(){function N(){return(0,p.modalOpen)(c,"set_points")}return N}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createVNode)(1,"box",null,[(0,e.createTextVNode)("1 minute of prison time should roughly equate to 150 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Sentences should not exceed 5000 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Permanent prisoners should not be given a point goal."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Prisoners who meet their point goal will be able to automatically access their locker and return to the station using the shuttle.")],4,{hidden:u.goal===null})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Tracking Implants",children:g.map(function(N){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",N.subject]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:N.location}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:N.health}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Warn",tooltip:"Broadcast a message to this poor sod",onClick:function(){function V(){return(0,p.modalOpen)(c,"warn",{uid:N.uid})}return V}()})})]})]},N.subject)]}),(0,e.createVNode)(1,"br")],4)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Chemical Implants",children:h.map(function(N){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",N.name]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Reagents",children:N.volume})}),f.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{mt:2,disabled:N.volumec;return(0,e.createComponentVNode)(2,t.ImageButton,{fluid:!0,title:N.name,dmIcon:N.icon,dmIconState:N.icon_state,buttonsAlt:(0,e.createComponentVNode)(2,t.Button,{bold:!0,translucent:!0,fontSize:1.5,tooltip:V&&"Not enough tickets",disabled:V,onClick:function(){function B(){return C("purchase",{purchase:N.itemID})}return B}(),children:[N.cost,(0,e.createComponentVNode)(2,t.Icon,{m:0,mt:.25,name:"ticket",color:V?"bad":"good",size:1.6})]}),children:N.desc},N.name)})})})})})})}return b}()},94813:function(T,r,n){"use strict";r.__esModule=!0,r.RCD=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(3939),b=n(49148),y=r.RCD=function(){function l(d,s){return(0,e.createComponentVNode)(2,o.Window,{width:480,height:670,children:[(0,e.createComponentVNode)(2,p.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,I),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})})]})}return l}(),I=function(d,s){var u=(0,a.useBackend)(s),h=u.data,g=h.matter,v=h.max_matter,f=v*.7,N=v*.25;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Matter Storage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[f,1/0],average:[N,f],bad:[-1/0,N]},value:g,maxValue:v,children:(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:g+" / "+v+" units"})})})})},k=function(){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Construction Type",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,C,{mode_type:"Floors and Walls"}),(0,e.createComponentVNode)(2,C,{mode_type:"Airlocks"}),(0,e.createComponentVNode)(2,C,{mode_type:"Windows"}),(0,e.createComponentVNode)(2,C,{mode_type:"Deconstruction"})]})})})},C=function(d,s){var u=(0,a.useBackend)(s),h=u.act,g=u.data,v=d.mode_type,f=g.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",content:v,selected:f===v?1:0,onClick:function(){function N(){return h("mode",{mode:v})}return N}()})})},i=function(d,s){var u=(0,a.useBackend)(s),h=u.act,g=u.data,v=g.door_name,f=g.electrochromic,N=g.airlock_glass;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Airlock Settings",children:(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",icon:"pen-alt",content:(0,e.createFragment)([(0,e.createTextVNode)("Rename: "),(0,e.createVNode)(1,"b",null,v,0)],0),onClick:function(){function V(){return(0,p.modalOpen)(s,"renameAirlock")}return V}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:N===1&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:f?"toggle-on":"toggle-off",content:"Electrochromic",selected:f,onClick:function(){function V(){return h("electrochromic")}return V}()})})]})})})},c=function(d,s){var u=(0,a.useBackend)(s),h=u.act,g=u.data,v=g.tab,f=g.locked,N=g.one_access,V=g.selected_accesses,B=g.regions;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"cog",selected:v===1,onClick:function(){function S(){return h("set_tab",{tab:1})}return S}(),children:"Airlock Types"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===2,icon:"list",onClick:function(){function S(){return h("set_tab",{tab:2})}return S}(),children:"Airlock Access"})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:v===1?(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Types",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m,{check_number:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m,{check_number:1})})]})}):v===2&&f?(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Access",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock-open",content:"Unlock",onClick:function(){function S(){return h("set_lock",{new_lock:"unlock"})}return S}()}),children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"lock",size:"5",mb:3}),(0,e.createVNode)(1,"br"),"Airlock access selection is currently locked."]})})}):(0,e.createComponentVNode)(2,b.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock",content:"Lock",onClick:function(){function S(){return h("set_lock",{new_lock:"lock"})}return S}()}),usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:N,content:"One",onClick:function(){function S(){return h("set_one_access",{access:"one"})}return S}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!N,width:4,content:"All",onClick:function(){function S(){return h("set_one_access",{access:"all"})}return S}()})],4),accesses:B,selectedList:V,accessMod:function(){function S(L){return h("set",{access:L})}return S}(),grantAll:function(){function S(){return h("grant_all")}return S}(),denyAll:function(){function S(){return h("clear_all")}return S}(),grantDep:function(){function S(L){return h("grant_region",{region:L})}return S}(),denyDep:function(){function S(L){return h("deny_region",{region:L})}return S}()})})],4)},m=function(d,s){for(var u=(0,a.useBackend)(s),h=u.act,g=u.data,v=g.door_types_ui_list,f=g.door_type,N=d.check_number,V=[],B=0;Bp?w=(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,mb:1,children:"There are new messages"}):w=(0,e.createComponentVNode)(2,t.Box,{color:"label",mb:1,children:"There are no new messages"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Main Menu",buttons:(0,e.createComponentVNode)(2,t.Button,{width:9,content:L?"Speaker Off":"Speaker On",selected:!L,icon:L?"volume-mute":"volume-up",onClick:function(){function A(){return N("toggleSilent")}return A}()}),children:[w,(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"View Messages",icon:B>p?"envelope-open-text":"envelope",onClick:function(){function A(){return N("setScreen",{setScreen:6})}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Request Assistance",icon:"hand-paper",onClick:function(){function A(){return N("setScreen",{setScreen:1})}return A}()}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Request Supplies",icon:"box",onClick:function(){function A(){return N("setScreen",{setScreen:2})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Request Secondary Goal",icon:"clipboard-list",onClick:function(){function A(){return N("setScreen",{setScreen:11})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Relay Anonymous Information",icon:"comment",onClick:function(){function A(){return N("setScreen",{setScreen:3})}return A}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Print Shipping Label",icon:"tag",onClick:function(){function A(){return N("setScreen",{setScreen:9})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){function A(){return N("setScreen",{setScreen:10})}return A}()})]})}),!!S&&(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,lineHeight:3,content:"Send Station-Wide Announcement",icon:"bullhorn",onClick:function(){function A(){return N("setScreen",{setScreen:8})}return A}()})})]})})},i=function(g,v){var f=(0,a.useBackend)(v),N=f.act,V=f.data,B=V.department,S=[],L;switch(g.purpose){case"ASSISTANCE":S=V.assist_dept,L="Request assistance from another department";break;case"SUPPLIES":S=V.supply_dept,L="Request supplies from another department";break;case"INFO":S=V.info_dept,L="Relay information to another department";break}return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:L,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function w(){return N("setScreen",{setScreen:0})}return w}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:S.filter(function(w){return w!==B}).map(function(w){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w,textAlign:"right",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Message",icon:"envelope",onClick:function(){function A(){return N("writeInput",{write:w,priority:y})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){function A(){return N("writeInput",{write:w,priority:I})}return A}()})]},w)})})})})},c=function(g,v){var f=(0,a.useBackend)(v),N=f.act,V=f.data,B;switch(g.type){case"SUCCESS":B="Message sent successfully";break;case"FAIL":B="Unable to contact messaging server";break}return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:B,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function S(){return N("setScreen",{setScreen:0})}return S}()})})},m=function(g,v){var f=(0,a.useBackend)(v),N=f.act,V=f.data,B,S;switch(g.type){case"MESSAGES":B=V.message_log,S="Message Log";break;case"SHIPPING":B=V.shipping_log,S="Shipping label print log";break}return B.reverse(),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:S,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function L(){return N("setScreen",{setScreen:0})}return L}()}),children:B.map(function(L){return(0,e.createComponentVNode)(2,t.Box,{textAlign:"left",children:[L.map(function(w,A){return(0,e.createVNode)(1,"div",null,w,0,null,A)}),(0,e.createVNode)(1,"hr")]},L)})})})},l=function(g,v){var f=(0,a.useBackend)(v),N=f.act,V=f.data,B=V.recipient,S=V.message,L=V.msgVerified,w=V.msgStamped;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Message Authentication",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function A(){return N("setScreen",{setScreen:0})}return A}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recipient",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",children:S}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",color:"green",children:L}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stamped by",color:"blue",children:w})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",content:"Send Message",icon:"envelope",onClick:function(){function A(){return N("department",{department:B})}return A}()})})})],4)},d=function(g,v){var f=(0,a.useBackend)(v),N=f.act,V=f.data,B=V.message,S=V.announceAuth;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Station-Wide Announcement",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function L(){return N("setScreen",{setScreen:0})}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Edit Message",icon:"edit",onClick:function(){function L(){return N("writeAnnouncement")}return L}()})],4),children:B})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[S?(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Swipe your ID card to authenticate yourself"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:2,textAlign:"center",content:"Send Announcement",icon:"bullhorn",disabled:!(S&&B),onClick:function(){function L(){return N("sendAnnouncement")}return L}()})]})})],4)},s=function(g,v){var f=(0,a.useBackend)(v),N=f.act,V=f.data,B=V.shipDest,S=V.msgVerified,L=V.ship_dept;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{title:"Print Shipping Label",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function w(){return N("setScreen",{setScreen:0})}return w}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",children:S})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(B&&S),onClick:function(){function w(){return N("printLabel")}return w}()})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Destinations",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:L.map(function(w){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w,textAlign:"right",className:"candystripe",children:(0,e.createComponentVNode)(2,t.Button,{content:B===w?"Selected":"Select",selected:B===w,onClick:function(){function A(){return N("shipSelect",{shipSelect:w})}return A}()})},w)})})})})],4)},u=function(g,v){var f=(0,a.useBackend)(v),N=f.act,V=f.data,B=V.secondaryGoalAuth,S=V.secondaryGoalEnabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Request Secondary Goal",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function L(){return N("setScreen",{setScreen:0})}return L}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[S?B?(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Swipe your ID card to authenticate yourself"}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Complete your current goal first!"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:2,textAlign:"center",content:"Request Secondary Goal",icon:"clipboard-list",disabled:!(B&&S),onClick:function(){function L(){return N("requestSecondaryGoal")}return L}()})]})})],4)}},9861:function(T,r,n){"use strict";r.__esModule=!0,r.RndBackupConsole=r.LinkMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.RndBackupConsole=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=c.network_name,l=c.has_disk,d=c.disk_name,s=c.linked,u=c.techs,h=c.last_timestamp;return(0,e.createComponentVNode)(2,o.Window,{width:900,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Device Info",children:[(0,e.createComponentVNode)(2,t.Box,{mb:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Network",children:s?(0,e.createComponentVNode)(2,t.Button,{content:m,icon:"unlink",selected:1,onClick:function(){function g(){return i("unlink")}return g}()}):"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Loaded Disk",children:l?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:d+" (Last backup: "+h+")",icon:"save",selected:1,onClick:function(){function g(){return i("eject_disk")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Save all",onClick:function(){function g(){return i("saveall2disk")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Load all",onClick:function(){function g(){return i("saveall2network")}return g}()})],4):"None"})]})}),!!s||(0,e.createComponentVNode)(2,b)]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Section,{title:"Tech Info",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Tech Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Level"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Disk Level"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),Object.keys(u).map(function(g){return!(u[g].network_level>0||u[g].disk_level>0)||(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u[g].name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u[g].network_level||"None"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u[g].disk_level||"None"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Load to network",disabled:!l||!s,onClick:function(){function v(){return i("savetech2network",{tech:g})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Load to disk",disabled:!l||!s,onClick:function(){function v(){return i("savetech2disk",{tech:g})}return v}()})]})]},g)})]})})})]})})}return y}(),b=r.LinkMenu=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=c.controllers;return(0,e.createComponentVNode)(2,t.Section,{title:"Setup Linkage",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Link"})]}),m.map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function d(){return i("linktonetworkcontroller",{target_controller:l.addr})}return d}()})})]},l.addr)})]})})}return y}()},37556:function(T,r,n){"use strict";r.__esModule=!0,r.DataDiskMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o="design",p="tech",b=function(c,m){var l=(0,a.useBackend)(m),d=l.data,s=l.act,u=d.disk_data;return u?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:u.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:u.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:u.desc})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function h(){return s("updt_tech")}return h}()})})]}):null},y=function(c,m){var l=(0,a.useBackend)(m),d=l.data,s=l.act,u=d.disk_data;if(!u)return null;var h=u.name,g=u.lathe_types,v=u.materials,f=g.join(", ");return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:h}),f?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lathe Types",children:f}):null,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Required Materials"})]}),v.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{children:["- ",(0,e.createVNode)(1,"span",null,N.name,0,{style:{"text-transform":"capitalize"}})," x ",N.amount]},N.name)}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function N(){return s("updt_design")}return N}()})})]})},I=function(c,m){var l=(0,a.useBackend)(m),d=l.act,s=l.data,u=s.disk_data;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Section,Object.assign({buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Erase",icon:"eraser",disabled:!u,onClick:function(){function h(){return d("erase_disk")}return h}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",icon:"eject",onClick:function(){function h(){d("eject_disk")}return h}()})],4)},c)))},k=function(c,m){var l=(0,a.useBackend)(m),d=l.data,s=l.act,u=d.disk_type,h=d.to_copy,g=c.title;return(0,e.createComponentVNode)(2,I,{title:g,children:(0,e.createComponentVNode)(2,t.Box,{overflowY:"auto",overflowX:"hidden",maxHeight:"450px",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:h.sort(function(v,f){return v.name.localeCompare(f.name)}).map(function(v){var f=v.name,N=v.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:f,children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Copy to Disk",onClick:function(){function V(){u===p?s("copy_tech",{id:N}):s("copy_design",{id:N})}return V}()})},N)})})})})},C=r.DataDiskMenu=function(){function i(c,m){var l=(0,a.useBackend)(m),d=l.data,s=d.disk_type,u=d.disk_data;if(!s)return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",children:"No disk loaded."});switch(s){case o:return u?(0,e.createComponentVNode)(2,I,{title:"Design Disk",children:(0,e.createComponentVNode)(2,y)}):(0,e.createComponentVNode)(2,k,{title:"Design Disk"});case p:return u?(0,e.createComponentVNode)(2,I,{title:"Technology Disk",children:(0,e.createComponentVNode)(2,b)}):(0,e.createComponentVNode)(2,k,{title:"Technology Disk"});default:return(0,e.createFragment)([(0,e.createTextVNode)("UNRECOGNIZED DISK TYPE")],4)}}return i}()},58147:function(T,r,n){"use strict";r.__esModule=!0,r.DeconstructionMenu=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),p=r.DeconstructionMenu=function(){function y(I,k){var C=(0,t.useBackend)(k),i=C.data,c=C.act,m=i.tech_levels,l=i.loaded_item,d=i.linked_destroy;return d?l?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Object Analysis",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Deconstruct",icon:"microscope",onClick:function(){function s(){c("deconstruct")}return s}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Eject",icon:"eject",onClick:function(){function s(){c("eject_item")}return s}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:l.name})})}),(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{id:"research-levels",children:[(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Research Field"}),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Current Level"}),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Object Level"}),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"New Level"})]}),m.map(function(s){return(0,e.createComponentVNode)(2,b,{techLevel:s},s.id)})]})})],4):(0,e.createComponentVNode)(2,o.Section,{title:"Deconstruction Menu",children:"No item loaded. Standing by..."}):(0,e.createComponentVNode)(2,o.Section,{title:"Deconstruction Menu",children:"NO DESTRUCTIVE ANALYZER LINKED TO CONSOLE"})}return y}(),b=function(I,k){var C=I.techLevel,i=C.name,c=C.desc,m=C.level,l=C.object_level,d=C.ui_icon,s=l!=null,u=s&&l>=m?Math.max(l,m+1):m;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"circle-info",tooltip:c})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:d})," ",i]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:m}),s?(0,e.createComponentVNode)(2,o.Table.Cell,{children:l}):(0,e.createComponentVNode)(2,o.Table.Cell,{className:"research-level-no-effect",children:"-"}),(0,e.createComponentVNode)(2,o.Table.Cell,{className:(0,a.classes)([u!==m&&"upgraded-level"]),children:u})]})}},16830:function(T,r,n){"use strict";r.__esModule=!0,r.LatheCategory=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(52662),p=r.LatheCategory=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.data,i=k.act,c=C.category,m=C.matching_designs,l=C.menu,d=l===4,s=d?"build":"imprint";return(0,e.createComponentVNode)(2,t.Section,{title:c,children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,t.Table,{className:"RndConsole__LatheCategory__MatchingDesigns",children:m.map(function(u){var h=u.id,g=u.name,v=u.can_build,f=u.materials;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:g,disabled:v<1,onClick:function(){function N(){return i(s,{id:h,amount:1})}return N}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=5?(0,e.createComponentVNode)(2,t.Button,{content:"x5",onClick:function(){function N(){return i(s,{id:h,amount:5})}return N}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=10?(0,e.createComponentVNode)(2,t.Button,{content:"x10",onClick:function(){function N(){return i(s,{id:h,amount:10})}return N}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:f.map(function(N){return(0,e.createFragment)([" | ",(0,e.createVNode)(1,"span",N.is_red?"color-red":null,[N.amount,(0,e.createTextVNode)(" "),N.name],0)],0)})})]},h)})})]})}return b}()},70497:function(T,r,n){"use strict";r.__esModule=!0,r.LatheChemicalStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheChemicalStorage=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.data,C=I.act,i=k.loaded_chemicals,c=k.menu===4;return(0,e.createComponentVNode)(2,t.Section,{title:"Chemical Storage",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Purge All",icon:"trash",onClick:function(){function m(){var l=c?"disposeallP":"disposeallI";C(l)}return m}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:i.map(function(m){var l=m.volume,d=m.name,s=m.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+l+" of "+d,children:(0,e.createComponentVNode)(2,t.Button,{content:"Purge",icon:"trash",onClick:function(){function u(){var h=c?"disposeP":"disposeI";C(h,{id:s})}return u}()})},s)})})]})}return p}()},70864:function(T,r,n){"use strict";r.__esModule=!0,r.LatheMainMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(52662),p=n(68198),b=r.LatheMainMenu=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.data,c=C.act,m=i.menu,l=i.categories,d=m===4?"Protolathe":"Circuit Imprinter";return(0,e.createComponentVNode)(2,t.Section,{title:d+" Menu",children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,p.LatheSearch),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:l.map(function(s){return(0,e.createComponentVNode)(2,t.Flex,{style:{"flex-basis":"50%","margin-bottom":"6px"},children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",content:s,onClick:function(){function u(){c("setCategory",{category:s})}return u}()})},s)})})]})}return y}()},42878:function(T,r,n){"use strict";r.__esModule=!0,r.LatheMaterialStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheMaterialStorage=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.data,C=I.act,i=k.loaded_materials;return(0,e.createComponentVNode)(2,t.Section,{className:"RndConsole__LatheMaterialStorage",title:"Material Storage",children:(0,e.createComponentVNode)(2,t.Table,{children:i.map(function(c){var m=c.id,l=c.amount,d=c.name,s=function(){function v(f){var N=k.menu===4?"lathe_ejectsheet":"imprinter_ejectsheet";C(N,{id:m,amount:f})}return v}(),u=Math.floor(l/2e3),h=l<1,g=u===1?"":"s";return(0,e.createComponentVNode)(2,t.Table.Row,{className:h?"color-grey":"color-yellow",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"210px",children:["* ",l," of ",d]}),(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"110px",children:["(",u," sheet",g,")"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l>=2e3?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"1x",icon:"eject",onClick:function(){function v(){return s(1)}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"C",icon:"eject",onClick:function(){function v(){return s("custom")}return v}()}),l>=2e3*5?(0,e.createComponentVNode)(2,t.Button,{content:"5x",icon:"eject",onClick:function(){function v(){return s(5)}return v}()}):null,(0,e.createComponentVNode)(2,t.Button,{content:"All",icon:"eject",onClick:function(){function v(){return s(50)}return v}()})],0):null})]},m)})})})}return p}()},52662:function(T,r,n){"use strict";r.__esModule=!0,r.LatheMaterials=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheMaterials=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.data,C=k.total_materials,i=k.max_materials,c=k.max_chemicals,m=k.total_chemicals;return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__LatheMaterials",mb:"10px",children:(0,e.createComponentVNode)(2,t.Table,{width:"auto",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Material Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C}),i?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+i}):null]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Chemical Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:m}),c?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+c}):null]})]})})}return p}()},9681:function(T,r,n){"use strict";r.__esModule=!0,r.LatheMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(12644),p=n(70864),b=n(16830),y=n(42878),I=n(70497),k=["menu"];function C(d,s){if(d==null)return{};var u={};for(var h in d)if({}.hasOwnProperty.call(d,h)){if(s.includes(h))continue;u[h]=d[h]}return u}var i=t.Tabs.Tab,c=function(s,u){var h=(0,a.useBackend)(u),g=h.act,v=h.data,f=v.menu===o.MENU.LATHE?["nav_protolathe",v.submenu_protolathe]:["nav_imprinter",v.submenu_imprinter],N=f[0],V=f[1],B=s.menu,S=C(s,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,i,Object.assign({selected:V===B,onClick:function(){function L(){return g(N,{menu:B})}return L}()},S)))},m=function(s){switch(s){case o.PRINTER_MENU.MAIN:return(0,e.createComponentVNode)(2,p.LatheMainMenu);case o.PRINTER_MENU.SEARCH:return(0,e.createComponentVNode)(2,b.LatheCategory);case o.PRINTER_MENU.MATERIALS:return(0,e.createComponentVNode)(2,y.LatheMaterialStorage);case o.PRINTER_MENU.CHEMICALS:return(0,e.createComponentVNode)(2,I.LatheChemicalStorage)}},l=r.LatheMenu=function(){function d(s,u){var h=(0,a.useBackend)(u),g=h.data,v=g.menu,f=g.linked_lathe,N=g.linked_imprinter;return v===o.MENU.LATHE&&!f?(0,e.createComponentVNode)(2,t.Box,{children:"NO PROTOLATHE LINKED TO CONSOLE"}):v===o.MENU.IMPRINTER&&!N?(0,e.createComponentVNode)(2,t.Box,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,c,{menu:o.PRINTER_MENU.MAIN,icon:"bars",children:"Main Menu"}),(0,e.createComponentVNode)(2,c,{menu:o.PRINTER_MENU.MATERIALS,icon:"layer-group",children:"Materials"}),(0,e.createComponentVNode)(2,c,{menu:o.PRINTER_MENU.CHEMICALS,icon:"flask-vial",children:"Chemicals"})]}),m(g.menu===o.MENU.LATHE?g.submenu_protolathe:g.submenu_imprinter)]})}return d}()},68198:function(T,r,n){"use strict";r.__esModule=!0,r.LatheSearch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheSearch=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.act;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"Search...",onEnter:function(){function C(i,c){return k("search",{to_search:c})}return C}()})})}return p}()},81421:function(T,r,n){"use strict";r.__esModule=!0,r.LinkMenu=void 0;var e=n(89005),a=n(72253),t=n(98595),o=n(36036),p=r.LinkMenu=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.controllers;return(0,e.createComponentVNode)(2,t.Window,{width:800,height:550,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Setup Linkage",children:(0,e.createComponentVNode)(2,o.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Link"})]}),c.map(function(m){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:m.addr}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:m.net_id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Link",icon:"link",onClick:function(){function l(){return C("linktonetworkcontroller",{target_controller:m.addr})}return l}()})})]},m.addr)})]})})})})}return b}()},6256:function(T,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.SettingsMenu=function(){function y(I,k){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,b)]})}return y}(),p=function(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=c.sync,l=c.admin;return(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",align:"flex-start",children:(0,e.createComponentVNode)(2,t.Button,{color:"red",icon:"unlink",content:"Disconnect from Research Network",onClick:function(){function d(){i("unlink")}return d}()})})})},b=function(I,k){var C=(0,a.useBackend)(k),i=C.data,c=C.act,m=i.linked_destroy,l=i.linked_lathe,d=i.linked_imprinter;return(0,e.createComponentVNode)(2,t.Section,{title:"Linked Devices",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"link",content:"Re-sync with Nearby Devices",onClick:function(){function s(){return c("find_device")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destructive Analyzer",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",disabled:!m,content:m?"Unlink":"Undetected",onClick:function(){function s(){return c("disconnect",{item:"destroy"})}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Protolathe",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",disabled:!l,content:l?"Unlink":"Undetected",onClick:function(){function s(){c("disconnect",{item:"lathe"})}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Circuit Imprinter",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",disabled:!d,content:d?"Unlink":"Undetected",onClick:function(){function s(){return c("disconnect",{item:"imprinter"})}return s}()})})]})})}},12644:function(T,r,n){"use strict";r.__esModule=!0,r.RndConsole=r.PRINTER_MENU=r.MENU=void 0;var e=n(89005),a=n(72253),t=n(98595),o=n(36036),p=n(35840),b=n(37556),y=n(9681),I=n(81421),k=n(6256),C=n(58147),i=["menu"];function c(f,N){if(f==null)return{};var V={};for(var B in f)if({}.hasOwnProperty.call(f,B)){if(N.includes(B))continue;V[B]=f[B]}return V}var m=o.Tabs.Tab,l=r.MENU={MAIN:0,DISK:2,DESTROY:3,LATHE:4,IMPRINTER:5,SETTINGS:6},d=r.PRINTER_MENU={MAIN:0,SEARCH:1,MATERIALS:2,CHEMICALS:3},s=function(N){switch(N){case l.MAIN:return(0,e.createComponentVNode)(2,v);case l.DISK:return(0,e.createComponentVNode)(2,b.DataDiskMenu);case l.DESTROY:return(0,e.createComponentVNode)(2,C.DeconstructionMenu);case l.LATHE:case l.IMPRINTER:return(0,e.createComponentVNode)(2,y.LatheMenu);case l.SETTINGS:return(0,e.createComponentVNode)(2,k.SettingsMenu);default:return"UNKNOWN MENU"}},u=function(N,V){var B=(0,a.useBackend)(V),S=B.act,L=B.data,w=L.menu,A=N.menu,x=c(N,i);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,m,Object.assign({selected:w===A,onClick:function(){function E(){return S("nav",{menu:A})}return E}()},x)))},h=r.RndConsole=function(){function f(N,V){var B=(0,a.useBackend)(V),S=B.act,L=B.data;if(!L.linked)return(0,e.createComponentVNode)(2,I.LinkMenu);var w=L.menu,A=L.linked_destroy,x=L.linked_lathe,E=L.linked_imprinter,P=L.wait_message;return(0,e.createComponentVNode)(2,t.Window,{width:800,height:550,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole",children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,u,{icon:"flask",menu:l.MAIN,children:"Research"}),!!A&&(0,e.createComponentVNode)(2,u,{icon:"microscope",menu:l.DESTROY,children:"Analyze"}),!!x&&(0,e.createComponentVNode)(2,u,{icon:"print",menu:l.LATHE,children:"Protolathe"}),!!E&&(0,e.createComponentVNode)(2,u,{icon:"memory",menu:l.IMPRINTER,children:"Imprinter"}),(0,e.createComponentVNode)(2,u,{icon:"floppy-disk",menu:l.DISK,children:"Disk"}),(0,e.createComponentVNode)(2,u,{icon:"cog",menu:l.SETTINGS,children:"Settings"})]}),s(w),(0,e.createComponentVNode)(2,g)]})})})}return f}(),g=function(N,V){var B=(0,a.useBackend)(V),S=B.data,L=S.wait_message;return L?(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay",children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay__Wrapper",children:(0,e.createComponentVNode)(2,o.NoticeBox,{color:"black",children:L})})}):null},v=function(N,V){var B=(0,a.useBackend)(V),S=B.data,L=S.tech_levels;return(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{id:"research-levels",children:[(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Research Field"}),(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,children:"Level"})]}),L.map(function(w){var A=w.id,x=w.name,E=w.desc,P=w.level,D=w.ui_icon;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"circle-info",tooltip:E})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:D})," ",x]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P})]},A)})]})})}},29205:function(T,r,n){"use strict";r.__esModule=!0,r.RndNetController=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(98595),b=r.RndNetController=function(){function k(C,i){var c=(0,t.useBackend)(i),m=c.act,l=c.data,d=l.ion,s=(0,t.useLocalState)(i,"mainTabIndex",0),u=s[0],h=s[1],g=function(){function v(f){switch(f){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,I);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return v}();return(0,e.createComponentVNode)(2,p.Window,{width:900,height:600,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:u===0,onClick:function(){function v(){return h(0)}return v}(),children:"Network Management"},"ConfigPage"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"floppy-disk",selected:u===1,onClick:function(){function v(){return h(1)}return v}(),children:"Design Management"},"DesignPage")]}),g(u)]})})}return k}(),y=function(C,i){var c=(0,t.useBackend)(i),m=c.act,l=c.data,d=(0,t.useLocalState)(i,"filterType","ALL"),s=d[0],u=d[1],h=l.network_password,g=l.network_name,v=l.devices,f=[];f.push(s),s==="MSC"&&(f.push("BCK"),f.push("PGN"));var N=s==="ALL"?v:v.filter(function(V){return f.indexOf(V.dclass)>-1});return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Network Configuration",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Network Name",children:(0,e.createComponentVNode)(2,o.Button,{content:g||"Unset",selected:g,icon:"edit",onClick:function(){function V(){return m("network_name")}return V}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Network Password",children:(0,e.createComponentVNode)(2,o.Button,{content:h||"Unset",selected:h,icon:"lock",onClick:function(){function V(){return m("network_password")}return V}()})})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Connected Devices",children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="ALL",onClick:function(){function V(){return u("ALL")}return V}(),icon:"network-wired",children:"All Devices"},"AllDevices"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="SRV",onClick:function(){function V(){return u("SRV")}return V}(),icon:"server",children:"R&D Servers"},"RNDServers"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="RDC",onClick:function(){function V(){return u("RDC")}return V}(),icon:"desktop",children:"R&D Consoles"},"RDConsoles"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="MFB",onClick:function(){function V(){return u("MFB")}return V}(),icon:"industry",children:"Exosuit Fabricators"},"Mechfabs"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:s==="MSC",onClick:function(){function V(){return u("MSC")}return V}(),icon:"microchip",children:"Miscellaneous Devices"},"Misc")]}),(0,e.createComponentVNode)(2,o.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Device Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Device ID"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Unlink"})]}),N.map(function(V){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:V.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:V.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function B(){return m("unlink_device",{dclass:V.dclass,uid:V.id})}return B}()})})]},V.id)})]})]})],4)},I=function(C,i){var c=(0,t.useBackend)(i),m=c.act,l=c.data,d=l.designs,s=(0,t.useLocalState)(i,"searchText",""),u=s[0],h=s[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Design Management",children:[(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search for designs",mb:2,onInput:function(){function g(v,f){return h(f)}return g}()}),d.filter((0,a.createSearch)(u,function(g){return g.name})).map(function(g){return(0,e.createComponentVNode)(2,o.Button.Checkbox,{fluid:!0,content:g.name,checked:!g.blacklisted,onClick:function(){function v(){return m(g.blacklisted?"unblacklist_design":"blacklist_design",{d_uid:g.uid})}return v}()},g.name)})]})}},63315:function(T,r,n){"use strict";r.__esModule=!0,r.RndServer=void 0;var e=n(89005),a=n(72253),t=n(44879),o=n(36036),p=n(98595),b=r.RndServer=function(){function k(C,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.active,s=l.network_name;return(0,e.createComponentVNode)(2,p.Window,{width:600,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Section,{title:"Server Configuration",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Machine power",children:(0,e.createComponentVNode)(2,o.Button,{content:d?"On":"Off",selected:d,icon:"power-off",onClick:function(){function u(){return m("toggle_active")}return u}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Link status",children:s===null?(0,e.createComponentVNode)(2,o.Box,{color:"red",children:"Unlinked"}):(0,e.createComponentVNode)(2,o.Box,{color:"green",children:"Linked"})})]})}),s===null?(0,e.createComponentVNode)(2,I):(0,e.createComponentVNode)(2,y)]})})}return k}(),y=function(C,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.network_name;return(0,e.createComponentVNode)(2,o.Section,{title:"Network Info",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Connected network ID",children:d}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unlink",children:(0,e.createComponentVNode)(2,o.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function s(){return m("unlink")}return s}()})})]})})},I=function(C,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.controllers;return(0,e.createComponentVNode)(2,o.Section,{title:"Detected Cores",children:(0,e.createComponentVNode)(2,o.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Link"})]}),d.map(function(s){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:s.netname}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Link",icon:"link",onClick:function(){function u(){return m("link",{addr:s.addr})}return u}()})})]},s.addr)})]})})}},26109:function(T,r,n){"use strict";r.__esModule=!0,r.RobotSelfDiagnosis=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(25328),b=function(k,C){var i=k/C;return i<=.2?"good":i<=.5?"average":"bad"},y=r.RobotSelfDiagnosis=function(){function I(k,C){var i=(0,a.useBackend)(C),c=i.data,m=c.component_data;return(0,e.createComponentVNode)(2,o.Window,{width:280,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:m.map(function(l,d){return(0,e.createComponentVNode)(2,t.Section,{title:(0,p.capitalize)(l.name),children:l.installed<=0?(0,e.createComponentVNode)(2,t.NoticeBox,{m:-.5,height:3.5,color:"red",style:{"font-style":"normal"},children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,textAlign:"center",align:"center",color:"#e8e8e8",children:l.installed===-1?"Destroyed":"Missing"})})}):(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"72%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",color:b(l.brute_damage,l.max_damage),children:l.brute_damage}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",color:b(l.electronic_damage,l.max_damage),children:l.electronic_damage})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Powered",color:l.powered?"good":"bad",children:l.powered?"Yes":"No"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Enabled",color:l.status?"good":"bad",children:l.status?"Yes":"No"})]})})]})},d)})})})}return I}()},97997:function(T,r,n){"use strict";r.__esModule=!0,r.RoboticsControlConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.RoboticsControlConsole=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=c.can_hack,l=c.safety,d=c.show_lock_all,s=c.cyborgs,u=s===void 0?[]:s;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:460,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!d&&(0,e.createComponentVNode)(2,t.Section,{title:"Emergency Lock Down",children:[(0,e.createComponentVNode)(2,t.Button,{icon:l?"lock":"unlock",content:l?"Disable Safety":"Enable Safety",selected:l,onClick:function(){function h(){return i("arm",{})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lock",disabled:l,content:"Lock ALL Cyborgs",color:"bad",onClick:function(){function h(){return i("masslock",{})}return h}()})]}),(0,e.createComponentVNode)(2,b,{cyborgs:u,can_hack:m})]})})}return y}(),b=function(I,k){var C=I.cyborgs,i=I.can_hack,c=(0,a.useBackend)(k),m=c.act,l=c.data,d="Detonate";return l.detonate_cooldown>0&&(d+=" ("+l.detonate_cooldown+"s)"),C.length?C.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,buttons:(0,e.createFragment)([!!s.hackable&&!s.emagged&&(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){function u(){return m("hackbot",{uid:s.uid})}return u}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:s.locked_down?"unlock":"lock",color:s.locked_down?"good":"default",content:s.locked_down?"Release":"Lockdown",disabled:!l.auth,onClick:function(){function u(){return m("stopbot",{uid:s.uid})}return u}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:d,disabled:!l.auth||l.detonate_cooldown>0,color:"bad",onClick:function(){function u(){return m("killbot",{uid:s.uid})}return u}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Box,{color:s.status?"bad":s.locked_down?"average":"good",children:s.status?"Not Responding":s.locked_down?"Locked Down":"Nominal"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:(0,e.createComponentVNode)(2,t.Box,{children:s.locstring})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s.health>50?"good":"bad",value:s.health/100})}),typeof s.charge=="number"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s.charge>30?"good":"bad",value:s.charge/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Capacity",children:(0,e.createComponentVNode)(2,t.Box,{color:s.cell_capacity<3e4?"average":"good",children:s.cell_capacity})})],4)||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No Power Cell"})}),!!s.is_hacked&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safeties",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"DISABLED"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Module",children:s.module}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:(0,e.createComponentVNode)(2,t.Box,{color:s.synchronization?"default":"average",children:s.synchronization||"None"})})]})},s.uid)}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cyborg units detected within access parameters."})}},54431:function(T,r,n){"use strict";r.__esModule=!0,r.Safe=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.Safe=function(){function k(C,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.dial,s=l.open,u=l.locked,h=l.contents;return(0,e.createComponentVNode)(2,o.Window,{theme:"safe",width:600,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving",children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"25%"}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"75%"})]}),(0,e.createComponentVNode)(2,t.Icon,{className:"Safe--engraving--arrow",name:"long-arrow-alt-down",size:"3"}),(0,e.createVNode)(1,"br"),s?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,t.Box,{as:"img",className:"Safe--dial",src:"safe_dial.png",style:{transform:"rotate(-"+3.6*d+"deg)","z-index":0}})]}),!s&&(0,e.createComponentVNode)(2,I)]})})}return k}(),b=function(C,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.dial,s=l.open,u=l.locked,h=function(v,f){return(0,e.createComponentVNode)(2,t.Button,{disabled:s||f&&!u,icon:"arrow-"+(f?"right":"left"),content:(f?"Right":"Left")+" "+v,iconRight:f,onClick:function(){function N(){return m(f?"turnleft":"turnright",{num:v})}return N}(),style:{"z-index":10}})};return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:u,icon:s?"lock":"lock-open",content:s?"Close":"Open",mb:"0.5rem",onClick:function(){function g(){return m("open")}return g}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{position:"absolute",children:[h(50),h(10),h(1)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[h(1,!0),h(10,!0),h(50,!0)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--number",children:d})]})},y=function(C,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.contents;return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--contents",overflow:"auto",children:d.map(function(s,u){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mb:"0.5rem",onClick:function(){function h(){return m("retrieve",{index:u+1})}return h}(),children:[(0,e.createComponentVNode)(2,t.Box,{as:"img",src:s.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),s.name]}),(0,e.createVNode)(1,"br")],4,s)})})},I=function(C,i){return(0,e.createComponentVNode)(2,t.Section,{className:"Safe--help",title:"Safe opening instructions (because you all keep forgetting)",children:[(0,e.createComponentVNode)(2,t.Box,{children:["1. Turn the dial left to the first number.",(0,e.createVNode)(1,"br"),"2. Turn the dial right to the second number.",(0,e.createVNode)(1,"br"),"3. Continue repeating this process for each number, switching between left and right each time.",(0,e.createVNode)(1,"br"),"4. Open the safe."]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:"To lock fully, turn the dial to the left after closing the safe."})]})}},29740:function(T,r,n){"use strict";r.__esModule=!0,r.SatelliteControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.SatelliteControl=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.satellites,m=i.notice,l=i.meteor_shield,d=i.meteor_shield_coverage,s=i.meteor_shield_coverage_max,u=i.meteor_shield_coverage_percentage;return(0,e.createComponentVNode)(2,o.Window,{width:475,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[l&&(0,e.createComponentVNode)(2,t.Section,{title:"Station Shield Coverage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:u>=100?"good":"average",value:d,maxValue:s,children:[u," %"]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Satellite Network Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alert",color:"red",children:i.notice}),c.map(function(h){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"#"+h.id,children:[h.mode," ",(0,e.createComponentVNode)(2,t.Button,{content:h.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){function g(){return C("toggle",{id:h.id})}return g}()})]},h.id)})]})})]})})}return b}()},44162:function(T,r,n){"use strict";r.__esModule=!0,r.SecureStorage=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),p=n(98595),b=n(36352),y=n(92986),I=r.SecureStorage=function(){function c(m,l){return(0,e.createComponentVNode)(2,p.Window,{theme:"securestorage",height:500,width:280,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,C)})})})})}return c}(),k=function(m,l){var d=(0,t.useBackend)(l),s=d.act,u=window.event?m.which:m.keyCode;if(u===y.KEY_ENTER){m.preventDefault(),s("keypad",{digit:"E"});return}if(u===y.KEY_ESCAPE){m.preventDefault(),s("keypad",{digit:"C"});return}if(u===y.KEY_BACKSPACE){m.preventDefault(),s("backspace");return}if(u>=y.KEY_0&&u<=y.KEY_9){m.preventDefault(),s("keypad",{digit:u-y.KEY_0});return}if(u>=y.KEY_NUMPAD_0&&u<=y.KEY_NUMPAD_9){m.preventDefault(),s("keypad",{digit:u-y.KEY_NUMPAD_0});return}},C=function(m,l){var d=(0,t.useBackend)(l),s=d.act,u=d.data,h=u.locked,g=u.no_passcode,v=u.emagged,f=u.user_entered_code,N=[["1","2","3"],["4","5","6"],["7","8","9"],["C","0","E"]],V=g?"":h?"bad":"good";return(0,e.createComponentVNode)(2,o.Section,{fill:!0,onKeyDown:function(){function B(S){return k(S,l)}return B}(),children:[(0,e.createComponentVNode)(2,o.Stack.Item,{height:7.3,children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["SecureStorage__displayBox","SecureStorage__displayBox--"+V]),height:"100%",children:v?"ERROR":f})}),(0,e.createComponentVNode)(2,o.Table,{children:N.map(function(B){return(0,e.createComponentVNode)(2,b.TableRow,{children:B.map(function(S){return(0,e.createComponentVNode)(2,b.TableCell,{children:(0,e.createComponentVNode)(2,i,{number:S})},S)})},B[0])})})]})},i=function(m,l){var d=(0,t.useBackend)(l),s=d.act,u=d.data,h=m.number;return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,bold:!0,mb:"6px",content:h,textAlign:"center",fontSize:"60px",lineHeight:1.25,width:"80px",className:(0,a.classes)(["SecureStorage__Button","SecureStorage__Button--keypad","SecureStorage__Button--"+h]),onClick:function(){function g(){return s("keypad",{digit:h})}return g}()})}},6272:function(T,r,n){"use strict";r.__esModule=!0,r.SecurityRecords=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(98595),b=n(3939),y=n(321),I=n(5485),k=n(22091),C={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},i=function(f,N){(0,b.modalOpen)(f,"edit",{field:N.edit,value:N.value})},c=r.SecurityRecords=function(){function v(f,N){var V=(0,t.useBackend)(N),B=V.act,S=V.data,L=S.loginState,w=S.currentPage,A;if(L.logged_in)w===1?A=(0,e.createComponentVNode)(2,l):w===2&&(A=(0,e.createComponentVNode)(2,u));else return(0,e.createComponentVNode)(2,p.Window,{theme:"security",width:800,height:900,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,I.LoginScreen)})});return(0,e.createComponentVNode)(2,p.Window,{theme:"security",width:800,height:900,children:[(0,e.createComponentVNode)(2,b.ComplexModal),(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,k.TemporaryNotice),(0,e.createComponentVNode)(2,m),A]})})]})}return v}(),m=function(f,N){var V=(0,t.useBackend)(N),B=V.act,S=V.data,L=S.currentPage,w=S.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:L===1,onClick:function(){function A(){return B("page",{page:1})}return A}(),children:"List Records"}),L===2&&w&&!w.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:L===2,children:["Record: ",w.fields[0].value]})]})})},l=function(f,N){var V=(0,t.useBackend)(N),B=V.act,S=V.data,L=S.records,w=(0,t.useLocalState)(N,"searchText",""),A=w[0],x=w[1],E=(0,t.useLocalState)(N,"sortId","name"),P=E[0],D=E[1],M=(0,t.useLocalState)(N,"sortOrder",!0),O=M[0],R=M[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,s)}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"SecurityRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,d,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,d,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,d,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,d,{id:"fingerprint",children:"Fingerprint"}),(0,e.createComponentVNode)(2,d,{id:"status",children:"Criminal Status"})]}),L.filter((0,a.createSearch)(A,function(j){return j.name+"|"+j.id+"|"+j.rank+"|"+j.fingerprint+"|"+j.status})).sort(function(j,_){var W=O?1:-1;return j[P].localeCompare(_[P])*W}).map(function(j){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"SecurityRecords__listRow--"+C[j.status],onClick:function(){function _(){return B("view",{uid_gen:j.uid_gen,uid_sec:j.uid_sec})}return _}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",j.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:j.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:j.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:j.fingerprint}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:j.status})]},j.id)})]})})})],4)},d=function(f,N){var V=(0,t.useLocalState)(N,"sortId","name"),B=V[0],S=V[1],L=(0,t.useLocalState)(N,"sortOrder",!0),w=L[0],A=L[1],x=f.id,E=f.children;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:B!==x&&"transparent",fluid:!0,onClick:function(){function P(){B===x?A(!w):(S(x),A(!0))}return P}(),children:[E,B===x&&(0,e.createComponentVNode)(2,o.Icon,{name:w?"sort-up":"sort-down",ml:"0.25rem;"})]})})})},s=function(f,N){var V=(0,t.useBackend)(N),B=V.act,S=V.data,L=S.isPrinting,w=(0,t.useLocalState)(N,"searchText",""),A=w[0],x=w[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:"0.25rem",content:"New Record",icon:"plus",onClick:function(){function E(){return B("new_general")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:L,icon:L?"spinner":"print",iconSpin:!!L,content:"Print Cell Log",onClick:function(){function E(){return(0,b.modalOpen)(N,"print_cell_log")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by Name, ID, Assignment, Fingerprint, Status",fluid:!0,onInput:function(){function E(P,D){return x(D)}return E}()})})]})},u=function(f,N){var V=(0,t.useBackend)(N),B=V.act,S=V.data,L=S.isPrinting,w=S.general,A=S.security;return!w||!w.fields?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"General records lost!"}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:L,icon:L?"spinner":"print",iconSpin:!!L,content:"Print Record",onClick:function(){function x(){return B("print_record")}return x}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",tooltip:"WARNING: This will also delete the Security and Medical records associated with this crew member!",tooltipPosition:"bottom-start",content:"Delete Record",onClick:function(){function x(){return B("delete_general")}return x}()})],4),children:(0,e.createComponentVNode)(2,h)})}),!A||!A.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function x(){return B("new_security")}return x}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Security records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:A.empty,content:"Delete Record",onClick:function(){function x(){return B("delete_security")}return x}()}),children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:A.fields.map(function(x,E){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:x.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(x.value),!!x.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:x.line_break?"1rem":"initial",onClick:function(){function P(){return i(N,x)}return P}()})]},E)})})})})}),(0,e.createComponentVNode)(2,g)],4)],0)},h=function(f,N){var V=(0,t.useBackend)(N),B=V.data,S=B.general;return!S||!S.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:S.fields.map(function(L,w){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:L.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(""+L.value),!!L.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:L.line_break?"1rem":"initial",onClick:function(){function A(){return i(N,L)}return A}()})]},w)})})}),!!S.has_photos&&S.photos.map(function(L,w){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:L,style:{width:"96px","margin-top":"5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",w+1]},w)})]})},g=function(f,N){var V=(0,t.useBackend)(N),B=V.act,S=V.data,L=S.security;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function w(){return(0,b.modalOpen)(N,"comment_add")}return w}()}),children:L.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):L.comments.map(function(w,A){return(0,e.createComponentVNode)(2,o.Box,{preserveWhitespace:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:w.header||"Auto-generated"}),(0,e.createVNode)(1,"br"),w.text||w,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function x(){return B("comment_delete",{id:A+1})}return x}()})]},A)})})})}},5099:function(T,r,n){"use strict";r.__esModule=!0,r.SeedExtractor=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(98595),b=n(3939);function y(d,s){var u=typeof Symbol!="undefined"&&d[Symbol.iterator]||d["@@iterator"];if(u)return(u=u.call(d)).next.bind(u);if(Array.isArray(d)||(u=I(d))||s&&d&&typeof d.length=="number"){u&&(d=u);var h=0;return function(){return h>=d.length?{done:!0}:{done:!1,value:d[h++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function I(d,s){if(d){if(typeof d=="string")return k(d,s);var u={}.toString.call(d).slice(8,-1);return u==="Object"&&d.constructor&&(u=d.constructor.name),u==="Map"||u==="Set"?Array.from(d):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?k(d,s):void 0}}function k(d,s){(s==null||s>d.length)&&(s=d.length);for(var u=0,h=Array(s);u=A},g=function(w,A){return w<=A},v=s.split(" "),f=[],N=function(){var w=S.value,A=w.split(":");if(A.length===0)return 0;if(A.length===1)return f.push(function(P){return(P.name+" ("+P.variant+")").toLocaleLowerCase().includes(A[0].toLocaleLowerCase())}),0;if(A.length>2)return{v:function(){function P(D){return!1}return P}()};var x,E=u;if(A[1][A[1].length-1]==="-"?(E=g,x=Number(A[1].substring(0,A[1].length-1))):A[1][A[1].length-1]==="+"?(E=h,x=Number(A[1].substring(0,A[1].length-1))):x=Number(A[1]),isNaN(x))return{v:function(){function P(D){return!1}return P}()};switch(A[0].toLocaleLowerCase()){case"l":case"life":case"lifespan":f.push(function(P){return E(P.lifespan,x)});break;case"e":case"end":case"endurance":f.push(function(P){return E(P.endurance,x)});break;case"m":case"mat":case"maturation":f.push(function(P){return E(P.maturation,x)});break;case"pr":case"prod":case"production":f.push(function(P){return E(P.production,x)});break;case"y":case"yield":f.push(function(P){return E(P.yield,x)});break;case"po":case"pot":case"potency":f.push(function(P){return E(P.potency,x)});break;case"s":case"stock":case"c":case"count":case"a":case"amount":f.push(function(P){return E(P.amount,x)});break;default:return{v:function(){function P(D){return!1}return P}()}}},V,B=y(v),S;!(S=B()).done;)if(V=N(),V!==0&&V)return V.v;return function(L){for(var w=0,A=f;w=1?Number(E):1)}return A}()})]})]})}},17474:function(T,r,n){"use strict";r.__esModule=!0,r.Shop=void 0;var e=n(89005),a=n(88510),t=n(64795),o=n(25328),p=n(72253),b=n(36036),y=n(98595),I=n(3939),k=function(h){switch(h){case 0:return(0,e.createComponentVNode)(2,i);case 1:return(0,e.createComponentVNode)(2,c);default:return"\u041E\u0428\u0418\u0411\u041A\u0410, \u0421\u041E\u041E\u0411\u0429\u0418\u0422\u0415 \u0420\u0410\u0417\u0420\u0410\u0411\u041E\u0422\u0427\u0418\u041A\u0423"}},C=r.Shop=function(){function u(h,g){var v=(0,p.useBackend)(g),f=v.act,N=v.data,V=N.cart,B=(0,p.useLocalState)(g,"tabIndex",0),S=B[0],L=B[1];return(0,e.createComponentVNode)(2,y.Window,{width:900,height:600,theme:"abductor",children:[(0,e.createComponentVNode)(2,I.ComplexModal),(0,e.createComponentVNode)(2,y.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Tabs,{children:[(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:S===0,onClick:function(){function w(){L(0)}return w}(),icon:"store",children:"\u0422\u043E\u0440\u0433\u043E\u0432\u043B\u044F"},"PurchasePage"),(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:S===1,onClick:function(){function w(){L(1)}return w}(),icon:"shopping-cart",children:["\u041A\u043E\u0440\u0437\u0438\u043D\u0430 ",V&&V.length?"("+V.length+")":""]},"Cart")]})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:k(S)})]})})]})}return u}(),i=function(h,g){var v=(0,p.useBackend)(g),f=v.act,N=v.data,V=N.cash,B=N.cats,S=(0,p.useLocalState)(g,"shopItems",B[0].items),L=S[0],w=S[1],A=(0,p.useLocalState)(g,"showDesc",1),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Section,{title:"\u0421\u0440\u0435\u0434\u0441\u0442\u0432\u0430: "+V+"\u043A",buttons:(0,e.createComponentVNode)(2,b.Button.Checkbox,{content:"\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u043E\u0441\u0442\u0438",checked:x,onClick:function(){function P(){return E(!x)}return P}()})})})}),(0,e.createComponentVNode)(2,b.Stack,{fill:!0,mt:.3,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,b.Tabs,{vertical:!0,children:B.map(function(P){return(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:P.items===L,onClick:function(){function D(){w(P.items)}return D}(),children:P.cat},P)})})})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,b.Stack,{vertical:!0,children:L.map(function(P){return(0,e.createComponentVNode)(2,b.Stack.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,m,{i:P,showDecription:x},(0,o.decodeHtmlEntities)(P.name))},(0,o.decodeHtmlEntities)(P.name))})})})})]})]})},c=function(h,g){var v=(0,p.useBackend)(g),f=v.act,N=v.data,V=N.cart,B=N.cash,S=N.cart_price,L=(0,p.useLocalState)(g,"showDesc",0),w=L[0],A=L[1];return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"\u0421\u0440\u0435\u0434\u0441\u0442\u0432\u0430: "+B+"\u043A",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,b.Button.Checkbox,{content:"\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u043E\u0441\u0442\u0438",checked:w,onClick:function(){function x(){return A(!w)}return x}()}),(0,e.createComponentVNode)(2,b.Button,{content:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",icon:"trash",onClick:function(){function x(){return f("empty_cart")}return x}(),disabled:!V}),(0,e.createComponentVNode)(2,b.Button,{content:"\u041E\u043F\u043B\u0430\u0442\u0438\u0442\u044C ("+S+"\u043A)",icon:"shopping-cart",onClick:function(){function x(){return f("purchase_cart")}return x}(),disabled:!V||S>B})],4),children:(0,e.createComponentVNode)(2,b.Stack,{vertical:!0,children:V?V.map(function(x){return(0,e.createComponentVNode)(2,b.Stack.Item,{p:1,mr:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,m,{i:x,showDecription:w,buttons:(0,e.createComponentVNode)(2,d,{i:x})})},(0,o.decodeHtmlEntities)(x.name))}):(0,e.createComponentVNode)(2,b.Box,{italic:!0,children:"\u0412\u0430\u0448\u0430 \u043A\u043E\u0440\u0437\u0438\u043D\u0430 \u043F\u0443\u0441\u0442\u0430!"})})})})})},m=function(h,g){var v=h.i,f=h.showDecription,N=f===void 0?1:f,V=h.buttons,B=V===void 0?(0,e.createComponentVNode)(2,l,{i:v}):V;return(0,e.createComponentVNode)(2,b.Section,{title:(0,o.decodeHtmlEntities)(v.name),showBottom:N,buttons:B,children:[N?(0,e.createComponentVNode)(2,b.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(v.desc)}):null,N?(0,e.createComponentVNode)(2,b.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(v.content)}):null]})},l=function(h,g){var v=(0,p.useBackend)(g),f=v.act,N=v.data,V=h.i,B=N.cash;return(0,e.createComponentVNode)(2,b.Button,{icon:"shopping-cart",content:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0432 \u043A\u043E\u0440\u0437\u0438\u043D\u0443 ("+V.cost+" \u041A\u0438\u043A\u0438\u0440\u0438\u0434\u0438\u0442\u043E\u0432)",color:V.limit!==-1&&"red",tooltip:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0442\u043E\u0432\u0430\u0440 \u0432 \u043A\u043E\u0440\u0437\u0438\u043D\u0443, \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432 \u043E\u0431\u0449\u0435\u0435 \u0447\u0438\u0441\u043B\u043E \u0434\u0430\u043D\u043D\u043E\u0433\u043E \u0442\u043E\u0432\u0430\u0440\u0430. \u0426\u0435\u043D\u0430 \u0442\u043E\u0432\u0430\u0440\u0430 \u043C\u0435\u043D\u044F\u0435\u0442\u0441\u044F \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0438 \u043E\u0442 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043D\u044B\u0445 \u0446\u0435\u043D\u043D\u043E\u0441\u0442\u0435\u0439 \u0432 \u0420\u0430\u0441\u0447\u0438\u0447\u0435\u0442\u0447\u0438\u043A\u0438\u043A\u0435.",tooltipPosition:"left",onClick:function(){function S(){return f("add_to_cart",{item:V.obj_path})}return S}(),disabled:V.cost>B||V.limit!==-1&&V.purchased>=V.limit||V.is_time_available===!1})},d=function(h,g){var v=(0,p.useBackend)(g),f=v.act,N=v.data,V=h.i;return(0,e.createComponentVNode)(2,b.Stack,{children:[(0,e.createComponentVNode)(2,b.Button,{icon:"times",content:"("+V.cost*V.amount+"\u043A)",tooltip:"\u0423\u0431\u0440\u0430\u0442\u044C \u0438\u0437 \u043A\u043E\u0440\u0437\u0438\u043D\u044B.",tooltipPosition:"left",onClick:function(){function B(){return f("remove_from_cart",{item:V.obj_path})}return B}()}),(0,e.createComponentVNode)(2,b.Button,{icon:"minus",ml:"5px",onClick:function(){function B(){return f("set_cart_item_quantity",{item:V.obj_path,quantity:--V.amount})}return B}(),disabled:V.amount<=0}),(0,e.createComponentVNode)(2,b.Button.Input,{content:V.amount,width:"45px",tooltipPosition:"bottom-end",onCommit:function(){function B(S,L){return f("set_cart_item_quantity",{item:V.obj_path,quantity:L})}return B}(),disabled:V.limit!==-1&&V.amount>=V.limit&&V.amount<=0}),(0,e.createComponentVNode)(2,b.Button,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:V.limit===0&&"Discount already redeemed!",onClick:function(){function B(){return f("set_cart_item_quantity",{item:V.obj_path,quantity:++V.amount})}return B}(),disabled:V.limit!==-1&&V.amount>=V.limit})]})},s=function(h,g){var v=(0,p.useBackend)(g),f=v.act,N=v.data,V=h.pack;return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,horizontal:!0,children:(0,e.createComponentVNode)(2,b.Stack.Item,{width:"70%",children:V.content_images.map(function(B){return(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+B,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})},B.ref)})})})}},2916:function(T,r,n){"use strict";r.__esModule=!0,r.ShuttleConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.ShuttleConsole=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:i.status?i.status:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Missing"})}),!!i.shuttle&&(!!i.docking_ports_len&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Send to ",children:i.docking_ports.map(function(c){return(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",content:c.name,onClick:function(){function m(){return C("move",{move:c.id})}return m}()},c.name)})})||(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:"red",children:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Locked"})}),!!i.admin_controlled&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorization",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-circle",content:"Request Authorization",disabled:!i.status,onClick:function(){function c(){return C("request")}return c}()})})],0))]})})})})}return b}()},39401:function(T,r,n){"use strict";r.__esModule=!0,r.ShuttleManipulator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.ShuttleManipulator=function(){function k(C,i){var c=(0,a.useLocalState)(i,"tabIndex",0),m=c[0],l=c[1],d=function(){function s(u){switch(u){case 0:return(0,e.createComponentVNode)(2,b);case 1:return(0,e.createComponentVNode)(2,y);case 2:return(0,e.createComponentVNode)(2,I);default:return"WE SHOULDN'T BE HERE!"}}return s}();return(0,e.createComponentVNode)(2,o.Window,{width:650,height:700,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===0,onClick:function(){function s(){return l(0)}return s}(),icon:"info-circle",children:"Status"},"Status"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===1,onClick:function(){function s(){return l(1)}return s}(),icon:"file-import",children:"Templates"},"Templates"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===2,onClick:function(){function s(){return l(2)}return s}(),icon:"tools",children:"Modification"},"Modification")]}),d(m)]})})})}return k}(),b=function(C,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.shuttles;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID",children:s.id}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Timer",children:s.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Mode",children:s.mode}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:s.status}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function u(){return m("jump_to",{type:"mobile",id:s.id})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Fast Travel",icon:"fast-forward",onClick:function(){function u(){return m("fast_travel",{id:s.id})}return u}()})]})]})},s.name)})})},y=function(C,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.templates_tabs,s=l.existing_shuttle,u=l.templates;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:d.map(function(h){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===s.id,icon:"file",onClick:function(){function g(){return m("select_template_category",{cat:h})}return g}(),children:h},h)})}),!!s&&u[s.id].templates.map(function(h){return(0,e.createComponentVNode)(2,t.Section,{title:h.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[h.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:h.description}),h.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:h.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Load Template",icon:"download",onClick:function(){function g(){return m("select_template",{shuttle_id:h.shuttle_id})}return g}()})})]})},h.name)})]})},I=function(C,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.existing_shuttle,s=l.selected;return(0,e.createComponentVNode)(2,t.Box,{children:[d?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: "+d.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:d.status}),d.timer&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Timer",children:d.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function u(){return m("jump_to",{type:"mobile",id:d.id})}return u}()})})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: None"}),s?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: "+s.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:s.description}),s.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:s.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Preview",icon:"eye",onClick:function(){function u(){return m("preview",{shuttle_id:s.shuttle_id})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Load",icon:"download",onClick:function(){function u(){return m("load",{shuttle_id:s.shuttle_id})}return u}()})]})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: None"})]})}},88284:function(T,r,n){"use strict";r.__esModule=!0,r.Sleeper=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(98595),b=[["good","Alive"],["average","Critical"],["bad","DEAD"]],y=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],I={average:[.25,.5],bad:[.5,1/0]},k=["bad","average","average","good","average","average","bad"],C=r.Sleeper=function(){function u(h,g){var v=(0,t.useBackend)(g),f=v.act,N=v.data,V=N.hasOccupant,B=V?(0,e.createComponentVNode)(2,i):(0,e.createComponentVNode)(2,s);return(0,e.createComponentVNode)(2,p.Window,{width:550,height:760,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:B}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l)})]})})})}return u}(),i=function(h,g){var v=(0,t.useBackend)(g),f=v.act,N=v.data,V=N.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,d)],4)},c=function(h,g){var v=(0,t.useBackend)(g),f=v.act,N=v.data,V=N.occupant,B=N.auto_eject_dead;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:"Auto-eject if dead:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{icon:B?"toggle-on":"toggle-off",selected:B,content:B?"On":"Off",onClick:function(){function S(){return f("auto_eject_dead_"+(B?"off":"on"))}return S}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"Eject",onClick:function(){function S(){return f("ejectify")}return S}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:V.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:V.maxHealth,value:V.health/V.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.round)(V.health,0)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:b[V.stat][0],children:b[V.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:V.maxTemp,value:V.bodyTemperature/V.maxTemp,color:k[V.temperatureSuitability+3],children:[(0,a.round)(V.btCelsius,0),"\xB0C,",(0,a.round)(V.btFaren,0),"\xB0F"]})}),!!V.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:V.bloodMax,value:V.bloodLevel/V.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[V.bloodPercent,"%, ",V.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[V.pulse," BPM"]})],4)]})})},m=function(h,g){var v=(0,t.useBackend)(g),f=v.data,N=f.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Damage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:y.map(function(V,B){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:V[0],children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:N[V[1]]/100,ranges:I,children:(0,a.round)(N[V[1]],0)},B)},B)})})})},l=function(h,g){var v=(0,t.useBackend)(g),f=v.act,N=v.data,V=N.hasOccupant,B=N.isBeakerLoaded,S=N.beakerMaxSpace,L=N.beakerFreeSpace,w=N.dialysis,A=w&&L>0;return(0,e.createComponentVNode)(2,o.Section,{title:"Dialysis",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!B||L<=0||!V,selected:A,icon:A?"toggle-on":"toggle-off",content:A?"Active":"Inactive",onClick:function(){function x(){return f("togglefilter")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B,icon:"eject",content:"Eject",onClick:function(){function x(){return f("removebeaker")}return x}()})],4),children:B?(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:S,value:L/S,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[L,"u"]})})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No beaker loaded."})})},d=function(h,g){var v=(0,t.useBackend)(g),f=v.act,N=v.data,V=N.occupant,B=N.chemicals,S=N.maxchem,L=N.amounts;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Chemicals",children:B.map(function(w,A){var x="",E;return w.overdosing?(x="bad",E=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):w.od_warning&&(x="average",E=(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle"}),"\xA0 Close to overdosing"]})),(0,e.createComponentVNode)(2,o.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{title:w.title,level:"3",mx:"0",lineHeight:"18px",buttons:E,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:S,value:w.occ_amount/S,color:x,title:"Amount of chemicals currently inside the occupant / Total amount injectable by this machine",mr:"0.5rem",children:[w.pretty_amount,"/",S,"u"]}),L.map(function(P,D){return(0,e.createComponentVNode)(2,o.Button,{disabled:!w.injectable||w.occ_amount+P>S||V.stat===2,icon:"syringe",content:"Inject "+P+"u",title:"Inject "+P+"u of "+w.title+" into the occupant",mb:"0",height:"19px",onClick:function(){function M(){return f("chemical",{chemid:w.id,amount:P})}return M}()},D)})]})})},A)})})},s=function(h,g){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},21597:function(T,r,n){"use strict";r.__esModule=!0,r.SlotMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.SlotMachine=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data;if(i.money===null)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:90,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"Could not scan your card or could not find account!"}),(0,e.createComponentVNode)(2,t.Box,{children:"Please wear or hold your ID and try again."})]})})});var c;return i.plays===1?c=i.plays+" player has tried their luck today!":c=i.plays+" players have tried their luck today!",(0,e.createComponentVNode)(2,o.Window,{width:300,height:151,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{lineHeight:2,children:c}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Credits Remaining",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:i.money})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"10 credits to spin",children:(0,e.createComponentVNode)(2,t.Button,{icon:"coins",disabled:i.working,content:i.working?"Spinning...":"Spin",onClick:function(){function m(){return C("spin")}return m}()})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,lineHeight:2,color:i.resultlvl,children:i.result})]})})})}return b}()},46348:function(T,r,n){"use strict";r.__esModule=!0,r.Smartfridge=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.Smartfridge=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.secure,m=i.can_dry,l=i.drying,d=i.contents;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Secure Access: Please have your identification ready."}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:m?"Drying rack":"Contents",buttons:!!m&&(0,e.createComponentVNode)(2,t.Button,{width:4,icon:l?"power-off":"times",content:l?"On":"Off",selected:l,onClick:function(){function s(){return C("drying")}return s}()}),children:[!d&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cookie-bite",size:5,color:"brown"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No products loaded."]})}),!!d&&d.slice().sort(function(s,u){return s.display_name.localeCompare(u.display_name)}).map(function(s){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"55%",children:s.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"25%",children:["(",s.quantity," in stock)"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:13,children:[(0,e.createComponentVNode)(2,t.Button,{width:3,icon:"arrow-down",tooltip:"Dispense one.",content:"1",onClick:function(){function u(){return C("vend",{index:s.vend,amount:1})}return u}()}),(0,e.createComponentVNode)(2,t.NumberInput,{width:"40px",minValue:0,value:0,maxValue:s.quantity,step:1,stepPixelSize:3,onChange:function(){function u(h,g){return C("vend",{index:s.vend,amount:g})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"arrow-down",content:"All",tooltip:"Dispense all.",tooltipPosition:"bottom-start",onClick:function(){function u(){return C("vend",{index:s.vend,amount:s.quantity})}return u}()})]})]},s)})]})]})})})}return b}()},86162:function(T,r,n){"use strict";r.__esModule=!0,r.Smes=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(49968),p=n(98595),b=1e3,y=r.Smes=function(){function I(k,C){var i=(0,a.useBackend)(C),c=i.act,m=i.data,l=m.capacityPercent,d=m.capacity,s=m.charge,u=m.inputAttempt,h=m.inputting,g=m.inputLevel,v=m.inputLevelMax,f=m.inputAvailable,N=m.outputPowernet,V=m.outputAttempt,B=m.outputting,S=m.outputLevel,L=m.outputLevelMax,w=m.outputUsed,A=l>=100&&"good"||h&&"average"||"bad",x=B&&"good"||s>0&&"average"||"bad";return(0,e.createComponentVNode)(2,p.Window,{width:340,height:345,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stored Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:l*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u?"sync-alt":"times",selected:u,onClick:function(){function E(){return c("tryinput")}return E}(),children:u?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:A,children:l>=100&&"Fully Charged"||h&&"Charging"||"Not Charging"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Input",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:g===0,onClick:function(){function E(){return c("input",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:g===0,onClick:function(){function E(){return c("input",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:g/b,fillValue:f/b,minValue:0,maxValue:v/b,step:5,stepPixelSize:4,format:function(){function E(P){return(0,o.formatPower)(P*b,1)}return E}(),onChange:function(){function E(P,D){return c("input",{target:D*b})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:g===v,onClick:function(){function E(){return c("input",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:g===v,onClick:function(){function E(){return c("input",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available",children:(0,o.formatPower)(f)})]})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Output Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:V?"power-off":"times",selected:V,onClick:function(){function E(){return c("tryoutput")}return E}(),children:V?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:x,children:N?B?"Sending":s>0?"Not Sending":"No Charge":"Not Connected"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Output",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:S===0,onClick:function(){function E(){return c("output",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:S===0,onClick:function(){function E(){return c("output",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:S/b,minValue:0,maxValue:L/b,step:5,stepPixelSize:4,format:function(){function E(P){return(0,o.formatPower)(P*b,1)}return E}(),onChange:function(){function E(P,D){return c("output",{target:D*b})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:S===L,onClick:function(){function E(){return c("output",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:S===L,onClick:function(){function E(){return c("output",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(w)})]})})]})})})}return I}()},63584:function(T,r,n){"use strict";r.__esModule=!0,r.SolarControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.SolarControl=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=0,m=1,l=2,d=i.generated,s=i.generated_ratio,u=i.tracking_state,h=i.tracking_rate,g=i.connected_panels,v=i.connected_tracker,f=i.cdir,N=i.direction,V=i.rotating_direction;return(0,e.createComponentVNode)(2,o.Window,{width:490,height:277,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Scan for new hardware",onClick:function(){function B(){return C("refresh")}return B}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar tracker",color:v?"good":"bad",children:v?"OK":"N/A"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar panels",color:g>0?"good":"bad",children:g})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power output",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:s,children:d+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[f,"\xB0 (",N,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[u===l&&(0,e.createComponentVNode)(2,t.Box,{children:" Automated "}),u===m&&(0,e.createComponentVNode)(2,t.Box,{children:[" ",h,"\xB0/h (",V,")"," "]}),u===c&&(0,e.createComponentVNode)(2,t.Box,{children:" Tracker offline "})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[u!==l&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",step:1,stepPixelSize:1,minValue:0,maxValue:359,value:f,onDrag:function(){function B(S,L){return C("cdir",{cdir:L})}return B}()}),u===l&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker status",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:u===c,onClick:function(){function B(){return C("track",{track:c})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:u===m,onClick:function(){function B(){return C("track",{track:m})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:u===l,disabled:!v,onClick:function(){function B(){return C("track",{track:l})}return B}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[u===m&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:h,format:function(){function B(S){var L=Math.sign(S)>0?"+":"-";return L+Math.abs(S)}return B}(),onDrag:function(){function B(S,L){return C("tdir",{tdir:L})}return B}()}),u===c&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Tracker offline "}),u===l&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]})]})})]})})}return b}()},38096:function(T,r,n){"use strict";r.__esModule=!0,r.SpawnersMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.SpawnersMenu=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.spawners||[];return(0,e.createComponentVNode)(2,o.Window,{width:700,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{children:c.map(function(m){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:m.name+" ("+m.amount_left+" left)",level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Jump",onClick:function(){function l(){return C("jump",{ID:m.uids})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){function l(){return C("spawn",{ID:m.uids})}return l}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:m.desc}),!!m.fluff&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:m.fluff}),!!m.important_info&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:m.important_info})]},m.name)})})})})}return b}()},30586:function(T,r,n){"use strict";r.__esModule=!0,r.SpecMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.SpecMenu=function(){function C(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:1100,height:600,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,I),(0,e.createComponentVNode)(2,k)]})})})}return C}(),b=function(i,c){var m=(0,a.useBackend)(c),l=m.act,d=m.data,s=d.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Hemomancer",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function u(){return l("hemomancer")}return u}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on blood magic and the manipulation of blood around you.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Vampiric claws",16),(0,e.createTextVNode)(": Unlocked at 150 blood, allows you to summon a robust pair of claws that attack rapidly, drain a targets blood, and heal you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood Barrier",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to select two turfs and create a wall between them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood tendrils",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to slow everyone in a targeted 3x3 area after a short delay.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Sanguine pool",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to travel at high speeds for a short duration. Doing this leaves behind blood splatters. You can move through anything but walls and space when doing this.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Predator senses",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to sniff out anyone within the same sector as you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood eruption",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to manipulate all nearby blood splatters, in 4 tiles around you, into spikes that impale anyone stood ontop of them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"The blood bringers rite",16),(0,e.createTextVNode)(": When toggled you will rapidly drain the blood of everyone who is nearby and use it to heal yourself slightly and remove any incapacitating effects rapidly.")],4)]})})},y=function(i,c){var m=(0,a.useBackend)(c),l=m.act,d=m.data,s=d.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Umbrae",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function u(){return l("umbrae")}return u}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on darkness, stealth ambushing and mobility.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Cloak of darkness",16),(0,e.createTextVNode)(": Unlocked at 150 blood, when toggled, allows you to become nearly invisible and move rapidly when in dark regions. While active, burn damage is more effective against you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow anchor",16),(0,e.createTextVNode)(": Unlocked at 250 blood, casting it will create an anchor at the cast location after a short delay. If you then cast the ability again, you are teleported back to the anchor. If you do not cast again within 2 minutes, you will do a fake recall, causing a clone to appear at the anchor and making yourself invisible. It will not teleport you between Z levels.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow snare",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to summon a trap that when crossed blinds and ensnares the victim. This trap is hard to see, but withers in the light.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Dark passage",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to target a turf on screen, you will then teleport to that turf.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Extinguish",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to snuff out nearby electronic light sources and glowshrooms.")],4),(0,e.createVNode)(1,"b",null,"Shadow boxing",16),": Unlocked at 800 blood, sends out shadow clones towards a target, damaging them while you remain in range.",(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Eternal darkness",16),(0,e.createTextVNode)(": When toggled, you consume yourself in unholy darkness, only the strongest of lights will be able to see through it. Inside the radius, nearby creatures will freeze and energy projectiles will deal less damage.")],4),(0,e.createVNode)(1,"p",null,"In addition, you also gain permanent X-ray vision.",16)]})})},I=function(i,c){var m=(0,a.useBackend)(c),l=m.act,d=m.data,s=d.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Gargantua",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function u(){return l("gargantua")}return u}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on tenacity and melee damage.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rejuvenate",16),(0,e.createTextVNode)(": Will heal you at an increased rate based on how much damage you have taken.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell",16),(0,e.createTextVNode)(": Unlocked at 150 blood, increases your resistance to physical damage, stuns and stamina for 30 seconds. While it is active you cannot fire guns.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Seismic stomp",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to stomp the ground to send out a shockwave, knocking people back.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood rush",16),(0,e.createTextVNode)(": Unlocked at 250 blood, gives you a short speed boost when cast.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell II",16),(0,e.createTextVNode)(": Unlocked at 400 blood, increases all melee damage by 10.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Overwhelming force",16),(0,e.createTextVNode)(": Unlocked at 600 blood, when toggled, if you bump into a door that you do not have access to, it will force it open. In addition, you cannot be pushed or pulled while it is active.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Demonic grasp",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to send out a demonic hand to snare someone. If you are on disarm/grab intent you will push/pull the target, respectively.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Charge",16),(0,e.createTextVNode)(": Unlocked at 800 blood, you gain the ability to charge at a target. Destroying and knocking back pretty much anything you collide with.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Desecrated Duel",16),(0,e.createTextVNode)(": Leap towards a visible enemy, creating an arena upon landing, infusing you with increased regeneration, and granting you resistance to internal damages.")],4)]})})},k=function(i,c){var m=(0,a.useBackend)(c),l=m.act,d=m.data,s=d.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Dantalion",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function u(){return l("dantalion")}return u}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on thralling and illusions.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Enthrall",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Thralls your target to your will, requires you to stand still. Does not work on mindshielded or already enthralled/mindslaved people.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall cap",16),(0,e.createTextVNode)(": You can only thrall a max of 1 person at a time. This can be increased at 400 blood, 600 blood and at full power to a max of 4 thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall commune",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Allows you to talk to your thralls, your thralls can talk back in the same way.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Subspace swap",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to swap positions with a target.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Pacify",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to pacify a target, preventing them from causing harm for 40 seconds.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Decoy",16),(0,e.createTextVNode)(": Unlocked at 400 blood, briefly turn invisible and send out an illusion to fool everyone nearby.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rally thralls",16),(0,e.createTextVNode)(": Unlocked at 600 blood, removes all incapacitating effects from nearby thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood bond",16),(0,e.createTextVNode)(": Unlocked at 800 blood, when cast, all nearby thralls become linked to you. If anyone in the network takes damage, it is shared equally between everyone in the network. If a thrall goes out of range, they will be removed from the network.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Mass Hysteria",16),(0,e.createTextVNode)(": Casts a powerful illusion that blinds and then makes everyone nearby perceive others as random animals.")],4)]})})}},95152:function(T,r,n){"use strict";r.__esModule=!0,r.StackCraft=void 0;var e=n(89005),a=n(72253),t=n(88510),o=n(64795),p=n(25328),b=n(98595),y=n(36036),I=r.StackCraft=function(){function s(){return(0,e.createComponentVNode)(2,b.Window,{width:350,height:500,children:(0,e.createComponentVNode)(2,b.Window.Content,{children:(0,e.createComponentVNode)(2,k)})})}return s}(),k=function(u,h){var g=(0,a.useBackend)(h),v=g.data,f=v.amount,N=v.recipes,V=(0,a.useLocalState)(h,"searchText",""),B=V[0],S=V[1],L=C(N,(0,p.createSearch)(B)),w=(0,a.useLocalState)(h,"",!1),A=w[0],x=w[1];return(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,title:"Amount: "+f,buttons:(0,e.createFragment)([A&&(0,e.createComponentVNode)(2,y.Input,{width:12.5,value:B,placeholder:"Find recipe",onInput:function(){function E(P,D){return S(D)}return E}()}),(0,e.createComponentVNode)(2,y.Button,{ml:.5,tooltip:"Search",tooltipPosition:"bottom-end",icon:"magnifying-glass",selected:A,onClick:function(){function E(){return x(!A)}return E}()})],0),children:L?(0,e.createComponentVNode)(2,l,{recipes:L}):(0,e.createComponentVNode)(2,y.NoticeBox,{children:"No recipes found!"})})},C=function s(u,h){var g=(0,o.flow)([(0,t.map)(function(v){var f=v[0],N=v[1];return i(N)?h(f)?v:[f,s(N,h)]:h(f)?v:[f,void 0]}),(0,t.filter)(function(v){var f=v[0],N=v[1];return N!==void 0}),(0,t.sortBy)(function(v){var f=v[0],N=v[1];return f}),(0,t.sortBy)(function(v){var f=v[0],N=v[1];return!i(N)}),(0,t.reduce)(function(v,f){var N=f[0],V=f[1];return v[N]=V,v},{})])(Object.entries(u));return Object.keys(g).length?g:void 0},i=function(u){return u.uid===void 0},c=function(u,h){return u.required_amount>h?0:Math.floor(h/u.required_amount)},m=function(u,h){for(var g=(0,a.useBackend)(h),v=g.act,f=u.recipe,N=u.max_possible_multiplier,V=Math.min(N,Math.floor(f.max_result_amount/f.result_amount)),B=[5,10,25],S=[],L=function(){var E=A[w];V>=E&&S.push((0,e.createComponentVNode)(2,y.Button,{bold:!0,translucent:!0,fontSize:.85,width:"32px",content:E*f.result_amount+"x",onClick:function(){function P(){return v("make",{recipe_uid:f.uid,multiplier:E})}return P}()}))},w=0,A=B;w1?S+"x ":"",M=L>1?"s":"",O=""+D+V,R=L+" sheet"+M,j=c(B,N);return(0,e.createComponentVNode)(2,y.ImageButton,{fluid:!0,base64:P,dmIcon:x,dmIconState:E,imageSize:32,disabled:!j,tooltip:R,buttons:w>1&&j>1&&(0,e.createComponentVNode)(2,m,{recipe:B,max_possible_multiplier:j}),onClick:function(){function _(){return v("make",{recipe_uid:A,multiplier:1})}return _}(),children:O})}},38307:function(T,r,n){"use strict";r.__esModule=!0,r.StationAlertConsoleContent=r.StationAlertConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.StationAlertConsole=function(){function y(){return(0,e.createComponentVNode)(2,o.Window,{width:325,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,b)})})}return y}(),b=r.StationAlertConsoleContent=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.data,c=i.alarms||[],m=c.Fire||[],l=c.Atmosphere||[],d=c.Power||[];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Fire Alarms",children:(0,e.createVNode)(1,"ul",null,[m.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),m.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Atmospherics Alarms",children:(0,e.createVNode)(1,"ul",null,[l.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),l.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Alarms",children:(0,e.createVNode)(1,"ul",null,[d.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),d.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)})],4)}return y}()},96091:function(T,r,n){"use strict";r.__esModule=!0,r.StationTraitsPanel=void 0;var e=n(89005),a=n(88510),t=n(42127),o=n(72253),p=n(36036),b=n(98595),y=function(i){return i[i.SetupFutureStationTraits=0]="SetupFutureStationTraits",i[i.ViewStationTraits=1]="ViewStationTraits",i}(y||{}),I=function(c,m){var l=(0,o.useBackend)(m),d=l.act,s=l.data,u=s.future_station_traits,h=(0,o.useLocalState)(m,"selectedFutureTrait",null),g=h[0],v=h[1],f=Object.fromEntries(s.valid_station_traits.map(function(V){return[V.name,V.path]})),N=Object.keys(f);return N.sort(),(0,e.createComponentVNode)(2,p.Box,{children:[(0,e.createComponentVNode)(2,p.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,p.Dropdown,{displayText:!g&&"Select trait to add...",onSelected:v,options:N,selected:g,width:"100%"})}),(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Button,{color:"green",icon:"plus",onClick:function(){function V(){if(g){var B=f[g],S=[B];if(u){var L,w=u.map(function(A){return A.path});if(w.indexOf(B)!==-1)return;S=(L=S).concat.apply(L,w)}d("setup_future_traits",{station_traits:S})}}return V}(),children:"Add"})})]}),(0,e.createComponentVNode)(2,p.Divider),Array.isArray(u)?u.length>0?(0,e.createComponentVNode)(2,p.Stack,{vertical:!0,fill:!0,children:u.map(function(V){return(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:V.name}),(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Button,{color:"red",icon:"times",onClick:function(){function B(){d("setup_future_traits",{station_traits:(0,a.filterMap)(u,function(S){if(S.path!==V.path)return S.path})})}return B}(),children:"Delete"})})]})},V.path)})}):(0,e.createComponentVNode)(2,p.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,p.Box,{children:"No station traits will run next round."}),(0,e.createComponentVNode)(2,p.Button,{mt:1,fluid:!0,color:"good",icon:"times",tooltip:"The next round will roll station traits randomly, just like normal",onClick:function(){function V(){return d("clear_future_traits")}return V}(),children:"Run Station Traits Normally"})]}):(0,e.createComponentVNode)(2,p.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,p.Box,{children:"No future station traits are planned."}),(0,e.createComponentVNode)(2,p.Button,{mt:1,fluid:!0,color:"red",icon:"times",onClick:function(){function V(){return d("setup_future_traits",{station_traits:[]})}return V}(),children:"Prevent station traits from running next round"})]})]})},k=function(c,m){var l=(0,o.useBackend)(m),d=l.act,s=l.data;return s.current_traits.length>0?(0,e.createComponentVNode)(2,p.Stack,{vertical:!0,fill:!0,children:s.current_traits.map(function(u){return(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:u.name}),(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Button.Confirm,{content:"Revert",color:"red",disabled:s.too_late_to_revert||!u.can_revert,tooltip:!u.can_revert&&"This trait is not revertable."||s.too_late_to_revert&&"It's too late to revert station traits, the round has already started.",icon:"times",onClick:function(){function h(){return d("revert",{ref:u.ref})}return h}()})})]})},u.ref)})}):(0,e.createComponentVNode)(2,p.Box,{textAlign:"center",children:"There are no active station traits."})},C=r.StationTraitsPanel=function(){function i(c,m){var l=(0,o.useLocalState)(m,"station_traits_tab",y.ViewStationTraits),d=l[0],s=l[1],u;switch(d){case y.SetupFutureStationTraits:u=(0,e.createComponentVNode)(2,I);break;case y.ViewStationTraits:u=(0,e.createComponentVNode)(2,k);break;default:(0,t.exhaustiveCheck)(d)}return(0,e.createComponentVNode)(2,b.Window,{title:"Modify Station Traits",height:350,width:350,children:(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Tabs,{children:[(0,e.createComponentVNode)(2,p.Tabs.Tab,{icon:"eye",selected:d===y.ViewStationTraits,onClick:function(){function h(){return s(y.ViewStationTraits)}return h}(),children:"View"}),(0,e.createComponentVNode)(2,p.Tabs.Tab,{icon:"edit",selected:d===y.SetupFutureStationTraits,onClick:function(){function h(){return s(y.SetupFutureStationTraits)}return h}(),children:"Edit"})]})}),(0,e.createComponentVNode)(2,p.Stack.Item,{m:0,children:[(0,e.createComponentVNode)(2,p.Divider),u]})]})})})}return i}()},39409:function(T,r,n){"use strict";r.__esModule=!0,r.StripMenu=void 0;var e=n(89005),a=n(88510),t=n(79140),o=n(72253),p=n(36036),b=n(98595),y=5,I=9,k=function(g){return g===0?5:9},C="64px",i=function(g){return g[0]+"/"+g[1]},c=function(g){var v=g.align,f=g.children;return(0,e.createComponentVNode)(2,p.Box,{style:{position:"absolute",left:v==="left"?"6px":"48px","text-align":v,"text-shadow":"2px 2px 2px #000",top:"2px"},children:f})},m={enable_internals:{icon:"lungs",text:"Enable internals"},disable_internals:{icon:"lungs",text:"Disable internals"},enable_lock:{icon:"lock",text:"Enable lock"},disable_lock:{icon:"unlock",text:"Disable lock"},suit_sensors:{icon:"tshirt",text:"Adjust suit sensors"},remove_accessory:{icon:"medal",text:"Remove accessory"},dislodge_headpocket:{icon:"head-side-virus",text:"Dislodge headpocket"}},l={eyes:{displayName:"eyewear",gridSpot:i([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:i([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:i([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:i([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:i([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:i([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:i([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:i([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:i([1,4])},jumpsuit:{displayName:"uniform",gridSpot:i([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:i([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:i([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:i([2,3]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:i([2,4]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:i([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:i([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:i([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:i([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:i([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:i([3,4]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:i([3,3]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:i([4,4]),image:"inventory-pda.png"}},d={eyes:{displayName:"eyewear",gridSpot:i([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:i([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:i([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:i([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:i([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:i([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:i([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:i([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:i([1,4])},jumpsuit:{displayName:"uniform",gridSpot:i([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:i([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:i([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:i([4,4]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:i([4,5]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:i([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:i([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:i([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:i([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:i([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:i([4,7]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:i([4,6]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:i([4,8]),image:"inventory-pda.png"}},s=function(h){return h[h.Completely=1]="Completely",h[h.Hidden=2]="Hidden",h}(s||{}),u=r.StripMenu=function(){function h(g,v){var f=(0,o.useBackend)(v),N=f.act,V=f.data,B=new Map;if(V.show_mode===0)for(var S=0,L=Object.keys(V.items);S=.01})},(0,a.sortBy)(function(w){return-w.amount})])(g.gases||[]),L=Math.max.apply(Math,[1].concat(S.map(function(w){return w.amount})));return(0,e.createComponentVNode)(2,I.Window,{width:550,height:185,children:(0,e.createComponentVNode)(2,I.Window.Content,{children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{width:"270px",children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Metrics",children:(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:f/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Relative EER",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:N,minValue:0,maxValue:5e3,ranges:{good:[-1/0,5e3],average:[5e3,7e3],bad:[7e3,1/0]},children:(0,o.toFixed)(N)+" MeV/cm3"})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:i(V),minValue:0,maxValue:i(1e4),ranges:{teal:[-1/0,i(80)],good:[i(80),i(373)],average:[i(373),i(1e3)],bad:[i(1e3),1/0]},children:(0,o.toFixed)(V)+" K"})}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,b.ProgressBar,{value:i(B),minValue:0,maxValue:i(5e4),ranges:{good:[i(1),i(300)],average:[-1/0,i(1e3)],bad:[i(1e3),1/0]},children:(0,o.toFixed)(B)+" kPa"})})]})})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Gases",buttons:(0,e.createComponentVNode)(2,b.Button,{icon:"arrow-left",content:"Back",onClick:function(){function w(){return h("back")}return w}()}),children:(0,e.createComponentVNode)(2,b.LabeledList,{children:S.map(function(w){return(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:(0,y.getGasLabel)(w.name),children:(0,e.createComponentVNode)(2,b.ProgressBar,{color:(0,y.getGasColor)(w.name),value:w.amount,minValue:0,maxValue:L,children:(0,o.toFixed)(w.amount,2)+"%"})},w.name)})})})})]})})})}},46029:function(T,r,n){"use strict";r.__esModule=!0,r.SyndicateComputerSimple=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.SyndicateComputerSimple=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data;return(0,e.createComponentVNode)(2,o.Window,{theme:"syndicate",width:400,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:i.rows.map(function(c){return(0,e.createComponentVNode)(2,t.Section,{title:c.title,buttons:(0,e.createComponentVNode)(2,t.Button,{content:c.buttontitle,disabled:c.buttondisabled,tooltip:c.buttontooltip,tooltipPosition:"left",onClick:function(){function m(){return C(c.buttonact)}return m}()}),children:[c.status,!!c.bullets&&(0,e.createComponentVNode)(2,t.Box,{children:c.bullets.map(function(m){return(0,e.createComponentVNode)(2,t.Box,{children:m},m)})})]},c.title)})})})}return b}()},36372:function(T,r,n){"use strict";r.__esModule=!0,r.TEG=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=function(I){return I.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},b=r.TEG=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data;return c.error?(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:[c.error,(0,e.createComponentVNode)(2,t.Button,{icon:"circle",content:"Recheck",onClick:function(){function m(){return i("check")}return m}()})]})})}):(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Cold Loop ("+c.cold_dir+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Inlet",children:[p(c.cold_inlet_temp)," K, ",p(c.cold_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Outlet",children:[p(c.cold_outlet_temp)," K, ",p(c.cold_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Hot Loop ("+c.hot_dir+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Inlet",children:[p(c.hot_inlet_temp)," K, ",p(c.hot_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Outlet",children:[p(c.hot_outlet_temp)," K, ",p(c.hot_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Output",children:[p(c.output_power)," W",!!c.warning_switched&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Cold inlet temperature exceeds hot inlet temperature."}),!!c.warning_cold_pressure&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Cold circulator inlet pressure is under 1,000 kPa."}),!!c.warning_hot_pressure&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Hot circulator inlet pressure is under 1,000 kPa."})]})]})})}return y}()},23190:function(T,r,n){"use strict";r.__esModule=!0,r.TTSSeedsExplorerContent=r.TTSSeedsExplorer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(46095),p=n(98595),b={0:"Free",1:"Tier I",2:"Tier II",3:"Tier III",4:"Tier IV",5:"Tier V"},y={male:"\u041C\u0443\u0436\u0441\u043A\u043E\u0439",female:"\u0416\u0435\u043D\u0441\u043A\u0438\u0439"},I={\u041C\u0443\u0436\u0441\u043A\u043E\u0439:{icon:"mars",color:"blue"},\u0416\u0435\u043D\u0441\u043A\u0438\u0439:{icon:"venus",color:"purple"},\u041B\u044E\u0431\u043E\u0439:{icon:"venus-mars",color:"white"}},k=function(m,l,d,s){return s===void 0&&(s=null),m.map(function(u){var h,g=(h=u[s])!=null?h:u;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:l.includes(u),content:g,onClick:function(){function v(){l.includes(u)?d(l.filter(function(f){var N;return((N=f[s])!=null?N:f)!==u})):d([u].concat(l))}return v}()},g)})},C=r.TTSSeedsExplorer=function(){function c(){return(0,e.createComponentVNode)(2,p.Window,{width:1e3,height:685,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,i)})})})}return c}(),i=r.TTSSeedsExplorerContent=function(){function c(m,l){var d=(0,a.useBackend)(l),s=d.act,u=d.data,h=u.providers,g=u.seeds,v=u.selected_seed,f=u.phrases,N=u.donator_level,V=u.character_gender,B=g.map(function(Y){return Y.category}).filter(function(Y,ve,he){return he.indexOf(Y)===ve}).sort(function(Y,ve){return Y.localeCompare(ve)}),S=g.map(function(Y){return Y.gender}).filter(function(Y,ve,he){return he.indexOf(Y)===ve}),L=g.map(function(Y){return Y.required_donator_level}).filter(function(Y,ve,he){return he.indexOf(Y)===ve}).sort(function(Y,ve){return Y-ve}).map(function(Y){return b[Y]}),w=(0,a.useLocalState)(l,"selectedProviders",h),A=w[0],x=w[1],E=(0,a.useLocalState)(l,"selectedGenders",S.includes(y[V])?[y[V]]:S),P=E[0],D=E[1],M=(0,a.useLocalState)(l,"selectedCategories",B),O=M[0],R=M[1],j=(0,a.useLocalState)(l,"selectedDonatorLevels",L.includes(b[N])?L.slice(0,L.indexOf(b[N])+1):L),_=j[0],W=j[1],z=(0,a.useLocalState)(l,"selectedPhrase",f[0]),K=z[0],G=z[1],Q=(0,a.useLocalState)(l,"searchtext",""),J=Q[0],ue=Q[1],ie=(0,a.useLocalState)(l,"searchToggle",!1),pe=ie[0],te=ie[1],q=k(h,A,x,"name"),ne=k(S,P,D),le=k(B,O,R),ee=k(L,_,W),re=(0,e.createComponentVNode)(2,t.Dropdown,{options:f,selected:K.replace(/(.{60})..+/,"$1..."),width:"21.3em",onSelected:function(){function Y(ve){return G(ve)}return Y}()}),oe=(0,e.createFragment)([pe&&(0,e.createComponentVNode)(2,t.Input,{placeholder:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435...",width:20,onInput:function(){function Y(ve,he){return ue(he)}return Y}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"magnifying-glass",tooltip:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0438\u0441\u043A",tooltipPosition:"bottom-end",selected:pe,onClick:function(){function Y(){return te(!pe)}return Y}()})],0),fe=g.sort(function(Y,ve){var he=Y.name.toLowerCase(),Ve=ve.name.toLowerCase();return he>Ve?1:he0&&v!==Y.name?"orange":"white",children:Y.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:v===Y.name?.5:.25,textAlign:"left",children:Y.category}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:v===Y.name?"white":I[Y.gender].color,textAlign:"left",children:(0,e.createComponentVNode)(2,t.Icon,{mx:1,size:1.2,name:I[Y.gender].icon})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:"white",textAlign:"right",children:Y.required_donator_level>0&&(0,e.createFragment)([b[Y.required_donator_level],(0,e.createComponentVNode)(2,t.Icon,{ml:1,mr:2,name:"coins"})],0)})]},Y.name)});return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"30.25em",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"\u0424\u0438\u043B\u044C\u0442\u0440\u044B",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440\u044B",children:q}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u043B",children:ne}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0422\u0438\u0440",children:ee}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0424\u0440\u0430\u0437\u0430",children:re})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u041A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u0438",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"times",disabled:O.length===0,onClick:function(){function Y(){return R([])}return Y}(),children:"\u0423\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0451"}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",disabled:O.length===B.length,onClick:function(){function Y(){return R(B)}return Y}(),children:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0451"})],4),children:le})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.BlockQuote,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"11px",children:"\u0414\u043B\u044F \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F \u0438 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044F \u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0430 \u0432 \u0443\u0441\u043B\u043E\u0432\u0438\u044F\u0445 \u0440\u0430\u0441\u0442\u0443\u0449\u0438\u0445 \u0440\u0430\u0441\u0445\u043E\u0434\u043E\u0432 \u0447\u0430\u0441\u0442\u044C \u0433\u043E\u043B\u043E\u0441\u043E\u0432 \u043F\u0440\u0438\u0448\u043B\u043E\u0441\u044C \u0441\u0434\u0435\u043B\u0430\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u043C\u0438 \u0442\u043E\u043B\u044C\u043A\u043E \u0437\u0430 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u044C\u043D\u0443\u044E \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0443 \u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0430."}),(0,e.createComponentVNode)(2,t.Box,{mt:1.5,italic:!0,color:"gray",fontSize:"10px",children:"\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u0435\u0435 \u043E\u0431 \u044D\u0442\u043E\u043C \u043C\u043E\u0436\u043D\u043E \u0443\u0437\u043D\u0430\u0442\u044C \u0432 \u043D\u0430\u0448\u0435\u043C Discord-\u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0435."})]})})})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u0413\u043E\u043B\u043E\u0441\u0430 ("+fe.length+"/"+g.length+")",buttons:oe,children:(0,e.createComponentVNode)(2,t.Table,{children:(0,e.createComponentVNode)(2,o.VirtualList,{children:me})})})})],4)}return c}()},56441:function(T,r,n){"use strict";r.__esModule=!0,r.TachyonArrayContent=r.TachyonArray=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.TachyonArray=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=c.records,l=m===void 0?[]:m,d=c.explosion_target,s=c.toxins_tech,u=c.printing;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shift's Target",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Toxins Level",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Administration",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print All Logs",disabled:!l.length||u,align:"center",onClick:function(){function h(){return i("print_logs")}return h}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!l.length,color:"bad",align:"center",onClick:function(){function h(){return i("delete_logs")}return h}()})]})]})}),l.length?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No Records"})]})})}return y}(),b=r.TachyonArrayContent=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=c.records,l=m===void 0?[]:m;return(0,e.createComponentVNode)(2,t.Section,{title:"Logged Explosions",children:(0,e.createComponentVNode)(2,t.Flex,{children:(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Epicenter"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actual Size"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Theoretical Size"})]}),l.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.logged_time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.epicenter}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.actual_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.theoretical_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete",color:"bad",onClick:function(){function s(){return i("delete_record",{index:d.index})}return s}()})})]},d.index)})]})})})})}return y}()},1754:function(T,r,n){"use strict";r.__esModule=!0,r.Tank=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.Tank=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c;return i.has_mask?c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,width:"76%",icon:i.connected?"check":"times",content:i.connected?"Internals On":"Internals Off",selected:i.connected,onClick:function(){function m(){return C("internals")}return m}()})}):c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",color:"red",children:"No Mask Equipped"}),(0,e.createComponentVNode)(2,o.Window,{width:325,height:135,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tank Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:i.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Release Pressure",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:i.ReleasePressure===i.minReleasePressure,tooltip:"Min",onClick:function(){function m(){return C("pressure",{pressure:"min"})}return m}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(i.releasePressure),width:"65px",unit:"kPa",minValue:i.minReleasePressure,maxValue:i.maxReleasePressure,onChange:function(){function m(l,d){return C("pressure",{pressure:d})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:i.ReleasePressure===i.maxReleasePressure,tooltip:"Max",onClick:function(){function m(){return C("pressure",{pressure:"max"})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:i.ReleasePressure===i.defaultReleasePressure,tooltip:"Reset",onClick:function(){function m(){return C("pressure",{pressure:"reset"})}return m}()})]}),c]})})})})}return b}()},7579:function(T,r,n){"use strict";r.__esModule=!0,r.TankDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.TankDispenser=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.o_tanks,m=i.p_tanks;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Dispense Oxygen Tank ("+c+")",disabled:c===0,icon:"arrow-circle-down",onClick:function(){function l(){return C("oxygen")}return l}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mt:1,fluid:!0,content:"Dispense Plasma Tank ("+m+")",disabled:m===0,icon:"arrow-circle-down",onClick:function(){function l(){return C("plasma")}return l}()})})]})})})}return b}()},16136:function(T,r,n){"use strict";r.__esModule=!0,r.TcommsCore=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.TcommsCore=function(){function C(i,c){var m=(0,a.useBackend)(c),l=m.act,d=m.data,s=d.ion,u=(0,a.useLocalState)(c,"tabIndex",0),h=u[0],g=u[1],v=function(){function f(N){switch(N){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,I);case 2:return(0,e.createComponentVNode)(2,k);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return f}();return(0,e.createComponentVNode)(2,o.Window,{width:900,height:520,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[s===1&&(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"wrench",selected:h===0,onClick:function(){function f(){return g(0)}return f}(),children:"Configuration"},"ConfigPage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"link",selected:h===1,onClick:function(){function f(){return g(1)}return f}(),children:"Device Linkage"},"LinkagePage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"user-times",selected:h===2,onClick:function(){function f(){return g(2)}return f}(),children:"User Filtering"},"FilterPage")]}),v(h)]})})}return C}(),b=function(){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"ERROR: An Ionospheric overload has occured. Please wait for the machine to reboot. This cannot be manually done."})},y=function(i,c){var m=(0,a.useBackend)(c),l=m.act,d=m.data,s=d.active,u=d.sectors_available,h=d.nttc_toggle_jobs,g=d.nttc_toggle_job_color,v=d.nttc_toggle_name_color,f=d.nttc_toggle_command_bold,N=d.nttc_job_indicator_type,V=d.nttc_setting_language,B=d.network_id;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:s?"On":"Off",selected:s,icon:"power-off",onClick:function(){function S(){return l("toggle_active")}return S}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sector Coverage",children:u})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Radio Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcements",children:(0,e.createComponentVNode)(2,t.Button,{content:h?"On":"Off",selected:h,icon:"user-tag",onClick:function(){function S(){return l("nttc_toggle_jobs")}return S}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:g?"On":"Off",selected:g,icon:"clipboard-list",onClick:function(){function S(){return l("nttc_toggle_job_color")}return S}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:v?"On":"Off",selected:v,icon:"user-tag",onClick:function(){function S(){return l("nttc_toggle_name_color")}return S}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Command Amplification",children:(0,e.createComponentVNode)(2,t.Button,{content:f?"On":"Off",selected:f,icon:"volume-up",onClick:function(){function S(){return l("nttc_toggle_command_bold")}return S}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Advanced",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcement Format",children:(0,e.createComponentVNode)(2,t.Button,{content:N||"Unset",selected:N,icon:"pencil-alt",onClick:function(){function S(){return l("nttc_job_indicator_type")}return S}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Language Conversion",children:(0,e.createComponentVNode)(2,t.Button,{content:V||"Unset",selected:V,icon:"globe",onClick:function(){function S(){return l("nttc_setting_language")}return S}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:B||"Unset",selected:B,icon:"server",onClick:function(){function S(){return l("network_id")}return S}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Import Configuration",icon:"file-import",onClick:function(){function S(){return l("import")}return S}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Export Configuration",icon:"file-export",onClick:function(){function S(){return l("export")}return S}()})]})],4)},I=function(i,c){var m=(0,a.useBackend)(c),l=m.act,d=m.data,s=d.link_password,u=d.relay_entries;return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linkage Password",children:(0,e.createComponentVNode)(2,t.Button,{content:s||"Unset",selected:s,icon:"lock",onClick:function(){function h(){return l("change_password")}return h}()})})}),(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Unlink"})]}),u.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.status===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Online"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Offline"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",onClick:function(){function g(){return l("unlink",{addr:h.addr})}return g}()})})]},h.addr)})]})]})},k=function(i,c){var m=(0,a.useBackend)(c),l=m.act,d=m.data,s=d.filtered_users;return(0,e.createComponentVNode)(2,t.Section,{title:"User Filtering",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Add User",icon:"user-plus",onClick:function(){function u(){return l("add_filter")}return u}()}),children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"90%"},children:"User"}),(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"10%"},children:"Actions"})]}),s.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"user-times",onClick:function(){function h(){return l("remove_filter",{user:u})}return h}()})})]},u)})]})})}},88046:function(T,r,n){"use strict";r.__esModule=!0,r.TcommsRelay=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.TcommsRelay=function(){function I(k,C){var i=(0,a.useBackend)(C),c=i.act,m=i.data,l=m.linked,d=m.active,s=m.network_id;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:292,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Relay Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:d?"On":"Off",selected:d,icon:"power-off",onClick:function(){function u(){return c("toggle_active")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:s||"Unset",selected:s,icon:"server",onClick:function(){function u(){return c("network_id")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Link Status",children:l===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Linked"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Unlinked"})})]})}),l===1?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,y)]})})}return I}(),b=function(k,C){var i=(0,a.useBackend)(C),c=i.act,m=i.data,l=m.linked_core_id,d=m.linked_core_addr,s=m.hidden_link;return(0,e.createComponentVNode)(2,t.Section,{title:"Link Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core ID",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core Address",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hidden Link",children:(0,e.createComponentVNode)(2,t.Button,{content:s?"Yes":"No",icon:s?"eye-slash":"eye",selected:s,onClick:function(){function u(){return c("toggle_hidden_link")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unlink",children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function u(){return c("unlink")}return u}()})})]})})},y=function(k,C){var i=(0,a.useBackend)(C),c=i.act,m=i.data,l=m.cores;return(0,e.createComponentVNode)(2,t.Section,{title:"Detected Cores",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Link"})]}),l.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function s(){return c("link",{addr:d.addr})}return s}()})})]},d.addr)})]})})}},20802:function(T,r,n){"use strict";r.__esModule=!0,r.Teleporter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.Teleporter=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.targetsTeleport?i.targetsTeleport:{},m=0,l=1,d=2,s=i.calibrated,u=i.calibrating,h=i.powerstation,g=i.regime,v=i.teleporterhub,f=i.target,N=i.locked,V=i.adv_beacon_allowed,B=i.advanced_beacon_locking;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:270,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:[(!h||!v)&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Error",children:[v,!h&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Powerstation not linked "}),h&&!v&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Teleporter hub not linked "})]}),h&&v&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Status",buttons:(0,e.createFragment)(!!V&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",children:"Advanced Beacon Locking:\xA0"}),(0,e.createComponentVNode)(2,t.Button,{selected:B,icon:B?"toggle-on":"toggle-off",content:B?"Enabled":"Disabled",onClick:function(){function S(){return C("advanced_beacon_locking",{on:B?0:1})}return S}()})],4),0),children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Teleport target:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[g===m&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:f,disabled:u,options:Object.keys(c),color:f!=="None"?"default":"bad",onSelected:function(){function S(L){return C("settarget",{x:c[L].x,y:c[L].y,z:c[L].z,tptarget:c[L].pretarget})}return S}()}),g===l&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:f,disabled:u,options:Object.keys(c),color:f!=="None"?"default":"bad",onSelected:function(){function S(L){return C("settarget",{x:c[L].x,y:c[L].y,z:c[L].z,tptarget:c[L].pretarget})}return S}()}),g===d&&(0,e.createComponentVNode)(2,t.Box,{children:f})]})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Regime:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Gate",tooltip:"Teleport to another teleport hub.",tooltipPosition:"top",color:g===l?"good":null,onClick:function(){function S(){return C("setregime",{regime:l})}return S}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Teleporter",tooltip:"One-way teleport.",tooltipPosition:"top",color:g===m?"good":null,onClick:function(){function S(){return C("setregime",{regime:m})}return S}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"GPS",tooltip:"Teleport to a location stored in a GPS device.",tooltipPosition:"top-end",color:g===d?"good":null,disabled:!N,onClick:function(){function S(){return C("setregime",{regime:d})}return S}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{label:"Calibration",mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Calibration:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[f!=="None"&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:15.8,textAlign:"center",mt:.5,children:u&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"In Progress"})||s&&(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Optimal"})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Sub-Optimal"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",tooltip:"Calibrates the hub. Accidents may occur when the calibration is not optimal.",tooltipPosition:"bottom-end",disabled:!!(s||u),onClick:function(){function S(){return C("calibrate")}return S}()})})]}),f==="None"&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"21px",children:"No target set"})]})]})]}),!!(N&&h&&v&&g===d)&&(0,e.createComponentVNode)(2,t.Section,{title:"GPS",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload GPS data",tooltip:"Loads the GPS data from the device.",icon:"upload",onClick:function(){function S(){return C("load")}return S}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){function S(){return C("eject")}return S}()})]})})]})})})})}return b}()},48517:function(T,r,n){"use strict";r.__esModule=!0,r.TelescienceConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.TelescienceConsole=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.last_msg,m=i.linked_pad,l=i.held_gps,d=i.lastdata,s=i.power_levels,u=i.current_max_power,h=i.current_power,g=i.current_bearing,v=i.current_elevation,f=i.current_sector,N=i.working,V=i.max_z,B=(0,a.useLocalState)(I,"dummyrot",g),S=B[0],L=B[1];return(0,e.createComponentVNode)(2,o.Window,{width:400,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createFragment)([c,!(d.length>0)||(0,e.createVNode)(1,"ul",null,d.map(function(w){return(0,e.createVNode)(1,"li",null,w,0,null,w)}),0)],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Telepad Status",children:m===1?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Bearing",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",children:[(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",width:6.1,lineHeight:1.5,step:.1,minValue:0,maxValue:360,disabled:N,value:g,onDrag:function(){function w(A,x){return L(x)}return w}(),onChange:function(){function w(A,x){return C("setbear",{bear:x})}return w}()}),(0,e.createComponentVNode)(2,t.Icon,{ml:1,size:1,name:"arrow-up",rotation:S})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Elevation",children:(0,e.createComponentVNode)(2,t.NumberInput,{width:6.1,lineHeight:1.5,step:.1,minValue:0,maxValue:100,disabled:N,value:v,onChange:function(){function w(A,x){return C("setelev",{elev:x})}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Level",children:s.map(function(w,A){return(0,e.createComponentVNode)(2,t.Button,{content:w,selected:h===w,disabled:A>=u-1||N,onClick:function(){function x(){return C("setpwr",{pwr:A+1})}return x}()},w)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Sector",children:(0,e.createComponentVNode)(2,t.NumberInput,{width:6.1,lineHeight:1.5,step:1,minValue:2,maxValue:V,value:f,disabled:N,onChange:function(){function w(A,x){return C("setz",{newz:x})}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Telepad Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Send",disabled:N,onClick:function(){function w(){return C("pad_send")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Receive",disabled:N,onClick:function(){function w(){return C("pad_receive")}return w}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Crystal Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Recalibrate Crystals",disabled:N,onClick:function(){function w(){return C("recal_crystals")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Crystals",disabled:N,onClick:function(){function w(){return C("eject_crystals")}return w}()})]})]}):(0,e.createFragment)([(0,e.createTextVNode)("No pad linked to console. Please use a multitool to link a pad.")],4)}),(0,e.createComponentVNode)(2,t.Section,{title:"GPS Actions",children:l===1?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{disabled:l===0||N,content:"Eject GPS",onClick:function(){function w(){return C("eject_gps")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:l===0||N,content:"Store Coordinates",onClick:function(){function w(){return C("store_to_gps")}return w}()})],4):(0,e.createFragment)([(0,e.createTextVNode)("Please insert a GPS to store coordinates to it.")],4)})]})})}return b}()},21800:function(T,r,n){"use strict";r.__esModule=!0,r.TempGun=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(98595),b=r.TempGun=function(){function C(i,c){var m=(0,t.useBackend)(c),l=m.act,d=m.data,s=d.target_temperature,u=d.temperature,h=d.max_temp,g=d.min_temp;return(0,e.createComponentVNode)(2,p.Window,{width:250,height:121,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:10,stepPixelSize:6,minValue:g,maxValue:h,value:s,format:function(){function v(f){return(0,a.toFixed)(f,2)}return v}(),width:"50px",onDrag:function(){function v(f,N){return l("target_temperature",{target_temperature:N})}return v}()}),"\xB0C"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Temperature",children:(0,e.createComponentVNode)(2,o.Box,{color:y(u),bold:u>500-273.15,children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(u,2)}),"\xB0C"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power Cost",children:(0,e.createComponentVNode)(2,o.Box,{color:k(u),children:I(u)})})]})})})})}return C}(),y=function(i){return i<=-100?"blue":i<=0?"teal":i<=100?"green":i<=200?"orange":"red"},I=function(i){return i<=100-273.15?"High":i<=250-273.15?"Medium":i<=300-273.15?"Low":i<=400-273.15?"Medium":"High"},k=function(i){return i<=100-273.15?"red":i<=250-273.15?"orange":i<=300-273.15?"green":i<=400-273.15?"orange":"red"}},24410:function(T,r,n){"use strict";r.__esModule=!0,r.sanitizeMultiline=r.removeAllSkiplines=r.TextInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(72253),p=n(92986),b=n(36036),y=n(98595),I=r.sanitizeMultiline=function(){function c(m){return m.replace(/(\n|\r\n){3,}/,"\n\n")}return c}(),k=r.removeAllSkiplines=function(){function c(m){return m.replace(/[\r\n]+/,"")}return c}(),C=r.TextInputModal=function(){function c(m,l){var d=(0,o.useBackend)(l),s=d.act,u=d.data,h=u.max_length,g=u.message,v=g===void 0?"":g,f=u.multiline,N=u.placeholder,V=u.timeout,B=u.title,S=(0,o.useLocalState)(l,"input",N||""),L=S[0],w=S[1],A=function(){function P(D){if(D!==L){var M=f?I(D):k(D);w(M)}}return P}(),x=f||L.length>=40,E=130+(v.length>40?Math.ceil(v.length/4):0)+(x?80:0);return(0,e.createComponentVNode)(2,y.Window,{title:B,width:325,height:E,children:[V&&(0,e.createComponentVNode)(2,a.Loader,{value:V}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function P(D){var M=window.event?D.which:D.keyCode;M===p.KEY_ENTER&&(!x||!D.shiftKey)&&s("submit",{entry:L}),M===p.KEY_ESCAPE&&s("cancel")}return P}(),children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Box,{color:"label",children:v})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i,{input:L,onType:A})}),(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:L,message:L.length+"/"+h})})]})})})]})}return c}(),i=function(m,l){var d=(0,o.useBackend)(l),s=d.act,u=d.data,h=u.max_length,g=u.multiline,v=m.input,f=m.onType,N=g||v.length>=40;return(0,e.createComponentVNode)(2,b.TextArea,{autoFocus:!0,autoSelect:!0,height:g||v.length>=40?"100%":"1.8rem",maxLength:h,onEscape:function(){function V(){return s("cancel")}return V}(),onEnter:function(){function V(B){N&&B.shiftKey||(B.preventDefault(),s("submit",{entry:v}))}return V}(),onInput:function(){function V(B,S){return f(S)}return V}(),placeholder:"Type something...",value:v})}},25036:function(T,r,n){"use strict";r.__esModule=!0,r.ThermoMachine=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(98595),b=r.ThermoMachine=function(){function y(I,k){var C=(0,t.useBackend)(k),i=C.act,c=C.data;return(0,e.createComponentVNode)(2,p.Window,{width:300,height:225,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c.temperature,format:function(){function m(l){return(0,a.toFixed)(l,2)}return m}()})," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pressure",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c.pressure,format:function(){function m(l){return(0,a.toFixed)(l,2)}return m}()})," kPa"]})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Controls",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:c.on?"power-off":"times",content:c.on?"On":"Off",selected:c.on,onClick:function(){function m(){return i("power")}return m}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Setting",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:c.cooling?"temperature-low":"temperature-high",content:c.cooling?"Cooling":"Heating",selected:c.cooling,onClick:function(){function m(){return i("cooling")}return m}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"fast-backward",disabled:c.target===c.min,title:"Minimum temperature",onClick:function(){function m(){return i("target",{target:c.min})}return m}()}),(0,e.createComponentVNode)(2,o.NumberInput,{animated:!0,value:Math.round(c.target),unit:"K",width:5.4,lineHeight:1.4,minValue:Math.round(c.min),maxValue:Math.round(c.max),step:5,stepPixelSize:3,onDrag:function(){function m(l,d){return i("target",{target:d})}return m}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"fast-forward",disabled:c.target===c.max,title:"Maximum Temperature",onClick:function(){function m(){return i("target",{target:c.max})}return m}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"sync",disabled:c.target===c.initial,title:"Room Temperature",onClick:function(){function m(){return i("target",{target:c.initial})}return m}()})]})]})})]})})}return y}()},20035:function(T,r,n){"use strict";r.__esModule=!0,r.TransferValve=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.TransferValve=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.tank_one,m=i.tank_two,l=i.attached_device,d=i.valve;return(0,e.createComponentVNode)(2,o.Window,{width:460,height:285,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Valve Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"unlock":"lock",content:d?"Open":"Closed",disabled:!c||!m,onClick:function(){function s(){return C("toggle")}return s}()})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Assembly",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Configure Assembly",disabled:!l,onClick:function(){function s(){return C("device")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:l?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:l,disabled:!l,onClick:function(){function s(){return C("remove_device")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Assembly"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment One",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:c?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:c,disabled:!c,onClick:function(){function s(){return C("tankone")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment Two",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:m?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:m,disabled:!m,onClick:function(){function s(){return C("tanktwo")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})})]})})}return b}()},78166:function(T,r,n){"use strict";r.__esModule=!0,r.TurbineComputer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(44879),b=r.TurbineComputer=function(){function k(C,i){var c=(0,a.useBackend)(i),m=c.act,l=c.data,d=l.compressor,s=l.compressor_broken,u=l.turbine,h=l.turbine_broken,g=l.online,v=!!(d&&!s&&u&&!h);return(0,e.createComponentVNode)(2,o.Window,{width:400,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:g?"power-off":"times",content:g?"Online":"Offline",selected:g,disabled:!v,onClick:function(){function f(){return m("toggle_power")}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Disconnect",onClick:function(){function f(){return m("disconnect")}return f}()})],4),children:v?(0,e.createComponentVNode)(2,I):(0,e.createComponentVNode)(2,y)})})})}return k}(),y=function(C,i){var c=(0,a.useBackend)(i),m=c.data,l=m.compressor,d=m.compressor_broken,s=m.turbine,u=m.turbine_broken,h=m.online;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compressor Status",color:!l||d?"bad":"good",children:d?l?"Offline":"Missing":"Online"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Status",color:!s||u?"bad":"good",children:u?s?"Offline":"Missing":"Online"})]})},I=function(C,i){var c=(0,a.useBackend)(i),m=c.data,l=m.rpm,d=m.temperature,s=m.power,u=m.bearing_heat;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Speed",children:[l," RPM"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Temp",children:[d," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Generated Power",children:[s," W"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bearing Heat",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:u,minValue:0,maxValue:100,ranges:{good:[-1/0,60],average:[60,90],bad:[90,1/0]},children:(0,p.toFixed)(u)+"%"})})]})}},52847:function(T,r,n){"use strict";r.__esModule=!0,r.Uplink=void 0;var e=n(89005),a=n(88510),t=n(64795),o=n(25328),p=n(72253),b=n(36036),y=n(98595),I=n(3939),k=function(g){switch(g){case 0:return(0,e.createComponentVNode)(2,i);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,u);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}},C=r.Uplink=function(){function h(g,v){var f=(0,p.useBackend)(v),N=f.act,V=f.data,B=V.cart,S=(0,p.useLocalState)(v,"tabIndex",0),L=S[0],w=S[1],A=(0,p.useLocalState)(v,"searchText",""),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,y.Window,{width:900,height:600,theme:"syndicate",children:[(0,e.createComponentVNode)(2,I.ComplexModal),(0,e.createComponentVNode)(2,y.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Tabs,{children:[(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:L===0,onClick:function(){function P(){w(0),E("")}return P}(),icon:"store",children:"View Market"},"PurchasePage"),(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:L===1,onClick:function(){function P(){w(1),E("")}return P}(),icon:"shopping-cart",children:["View Shopping Cart ",B&&B.length?"("+B.length+")":""]},"Cart"),(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:L===2,onClick:function(){function P(){w(2),E("")}return P}(),icon:"user",children:"Exploitable Information"},"ExploitableInfo"),(0,e.createComponentVNode)(2,b.Tabs.Tab,{onClick:function(){function P(){return N("lock")}return P}(),icon:"lock",children:"Lock Uplink"},"LockUplink")]})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:k(L)})]})})]})}return h}(),i=function(g,v){var f=(0,p.useBackend)(v),N=f.act,V=f.data,B=V.crystals,S=V.cats,L=(0,p.useLocalState)(v,"uplinkItems",S[0].items),w=L[0],A=L[1],x=(0,p.useLocalState)(v,"searchText",""),E=x[0],P=x[1],D=function(W,z){z===void 0&&(z="");var K=(0,o.createSearch)(z,function(G){var Q=G.hijack_only===1?"|hijack":"";return G.name+"|"+G.desc+"|"+G.cost+"tc"+Q});return(0,t.flow)([(0,a.filter)(function(G){return G==null?void 0:G.name}),z&&(0,a.filter)(K),(0,a.sortBy)(function(G){return G==null?void 0:G.name})])(W)},M=function(W){if(P(W),W==="")return A(S[0].items);A(D(S.map(function(z){return z.items}).flat(),W))},O=(0,p.useLocalState)(v,"showDesc",1),R=O[0],j=O[1];return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Section,{title:"Current Balance: "+B+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,b.Button.Checkbox,{content:"Show Descriptions",checked:R,onClick:function(){function _(){return j(!R)}return _}()}),(0,e.createComponentVNode)(2,b.Button,{content:"Random Item",icon:"question",onClick:function(){function _(){return N("buyRandom")}return _}()}),(0,e.createComponentVNode)(2,b.Button,{content:"Refund Currently Held Item",icon:"undo",onClick:function(){function _(){return N("refund")}return _}()})],4),children:(0,e.createComponentVNode)(2,b.Input,{fluid:!0,placeholder:"Search Equipment",onInput:function(){function _(W,z){M(z)}return _}(),value:E})})})}),(0,e.createComponentVNode)(2,b.Stack,{fill:!0,mt:.3,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,b.Tabs,{vertical:!0,children:S.map(function(_){return(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:E!==""?!1:_.items===w,onClick:function(){function W(){A(_.items),P("")}return W}(),children:_.cat},_)})})})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,b.Stack,{vertical:!0,children:w.map(function(_){return(0,e.createComponentVNode)(2,b.Stack.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,l,{i:_,showDecription:R},(0,o.decodeHtmlEntities)(_.name))},(0,o.decodeHtmlEntities)(_.name))})})})})]})]})},c=function(g,v){var f=(0,p.useBackend)(v),N=f.act,V=f.data,B=V.cart,S=V.crystals,L=V.cart_price,w=(0,p.useLocalState)(v,"showDesc",0),A=w[0],x=w[1];return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Current Balance: "+S+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,b.Button.Checkbox,{content:"Show Descriptions",checked:A,onClick:function(){function E(){return x(!A)}return E}()}),(0,e.createComponentVNode)(2,b.Button,{content:"Empty Cart",icon:"trash",onClick:function(){function E(){return N("empty_cart")}return E}(),disabled:!B}),(0,e.createComponentVNode)(2,b.Button,{content:"Purchase Cart ("+L+"TC)",icon:"shopping-cart",onClick:function(){function E(){return N("purchase_cart")}return E}(),disabled:!B||L>S})],4),children:(0,e.createComponentVNode)(2,b.Stack,{vertical:!0,children:B?B.map(function(E){return(0,e.createComponentVNode)(2,b.Stack.Item,{p:1,mr:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,l,{i:E,showDecription:A,buttons:(0,e.createComponentVNode)(2,s,{i:E})})},(0,o.decodeHtmlEntities)(E.name))}):(0,e.createComponentVNode)(2,b.Box,{italic:!0,children:"Your Shopping Cart is empty!"})})})}),(0,e.createComponentVNode)(2,m)]})},m=function(g,v){var f=(0,p.useBackend)(v),N=f.act,V=f.data,B=V.cats,S=V.lucky_numbers;return(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Suggested Purchases",buttons:(0,e.createComponentVNode)(2,b.Button,{icon:"dice",content:"See more suggestions",onClick:function(){function L(){return N("shuffle_lucky_numbers")}return L}()}),children:(0,e.createComponentVNode)(2,b.Stack,{wrap:!0,children:S.map(function(L){return B[L.cat].items[L.item]}).filter(function(L){return L!=null}).map(function(L,w){return(0,e.createComponentVNode)(2,b.Stack.Item,{p:1,mb:1,ml:1,width:34,backgroundColor:"rgba(255, 0, 0, 0.15)",children:(0,e.createComponentVNode)(2,l,{grow:!0,i:L})},w)})})})})},l=function(g,v){var f=g.i,N=g.showDecription,V=N===void 0?1:N,B=g.buttons,S=B===void 0?(0,e.createComponentVNode)(2,d,{i:f}):B;return(0,e.createComponentVNode)(2,b.Section,{title:(0,o.decodeHtmlEntities)(f.name),showBottom:V,buttons:S,children:V?(0,e.createComponentVNode)(2,b.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(f.desc)}):null})},d=function(g,v){var f=(0,p.useBackend)(v),N=f.act,V=f.data,B=g.i,S=V.crystals;return(0,e.createFragment)([(0,e.createComponentVNode)(2,b.Button,{icon:"shopping-cart",color:B.hijack_only===1&&"red",tooltip:"Add to cart.",tooltipPosition:"left",onClick:function(){function L(){return N("add_to_cart",{item:B.obj_path})}return L}(),disabled:B.cost>S}),(0,e.createComponentVNode)(2,b.Button,{content:"Buy ("+B.cost+"TC)"+(B.refundable?" [Refundable]":""),color:B.hijack_only===1&&"red",tooltip:B.hijack_only===1&&"Hijack Agents Only!",tooltipPosition:"left",onClick:function(){function L(){return N("buyItem",{item:B.obj_path})}return L}(),disabled:B.cost>S})],4)},s=function(g,v){var f=(0,p.useBackend)(v),N=f.act,V=f.data,B=g.i,S=V.exploitable;return(0,e.createComponentVNode)(2,b.Stack,{children:[(0,e.createComponentVNode)(2,b.Button,{icon:"times",content:"("+B.cost*B.amount+"TC)",tooltip:"Remove from cart.",tooltipPosition:"left",onClick:function(){function L(){return N("remove_from_cart",{item:B.obj_path})}return L}()}),(0,e.createComponentVNode)(2,b.Button,{icon:"minus",tooltip:B.limit===0&&"Discount already redeemed!",ml:"5px",onClick:function(){function L(){return N("set_cart_item_quantity",{item:B.obj_path,quantity:--B.amount})}return L}(),disabled:B.amount<=0}),(0,e.createComponentVNode)(2,b.Button.Input,{content:B.amount,width:"45px",tooltipPosition:"bottom-end",tooltip:B.limit===0&&"Discount already redeemed!",onCommit:function(){function L(w,A){return N("set_cart_item_quantity",{item:B.obj_path,quantity:A})}return L}(),disabled:B.limit!==-1&&B.amount>=B.limit&&B.amount<=0}),(0,e.createComponentVNode)(2,b.Button,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:B.limit===0&&"Discount already redeemed!",onClick:function(){function L(){return N("set_cart_item_quantity",{item:B.obj_path,quantity:++B.amount})}return L}(),disabled:B.limit!==-1&&B.amount>=B.limit})]})},u=function(g,v){var f=(0,p.useBackend)(v),N=f.act,V=f.data,B=V.exploitable,S=(0,p.useLocalState)(v,"selectedRecord",B[0]),L=S[0],w=S[1],A=(0,p.useLocalState)(v,"searchText",""),x=A[0],E=A[1],P=function(O,R){R===void 0&&(R="");var j=(0,o.createSearch)(R,function(_){return _.name});return(0,t.flow)([(0,a.filter)(function(_){return _==null?void 0:_.name}),R&&(0,a.filter)(j),(0,a.sortBy)(function(_){return _.name})])(O)},D=P(B,x);return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:"Exploitable Records",children:[(0,e.createComponentVNode)(2,b.Input,{fluid:!0,mb:1,placeholder:"Search Crew",onInput:function(){function M(O,R){return E(R)}return M}()}),(0,e.createComponentVNode)(2,b.Tabs,{vertical:!0,children:D.map(function(M){return(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:M===L,onClick:function(){function O(){return w(M)}return O}(),children:M.name},M)})})]})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,title:L.name,children:(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Age",children:L.age}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Fingerprint",children:L.fingerprint}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Rank",children:L.rank}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Sex",children:L.sex}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Species",children:L.species})]})})})]})}},12261:function(T,r,n){"use strict";r.__esModule=!0,r.Vending=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=function(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=I.product,l=I.productStock,d=I.productIcon,s=I.productIconState,u=c.chargesMoney,h=c.user,g=c.usermoney,v=c.inserted_cash,f=c.vend_ready,N=c.inserted_item_name,V=!u||m.price===0,B="ERROR!",S="";V?(B="FREE",S="arrow-circle-down"):(B=m.price,S="shopping-cart");var L=!f||l===0||!V&&m.price>g&&m.price>v;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,t.DmIcon,{verticalAlign:"middle",icon:d,icon_state:s,fallback:(0,e.createComponentVNode)(2,t.Icon,{p:.66,name:"spinner",size:2,spin:!0})})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:m.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Box,{color:l<=0&&"bad"||l<=m.max_amount/2&&"average"||"good",children:[l," in stock"]})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,disabled:L,icon:S,content:B,textAlign:"left",onClick:function(){function w(){return i("vend",{inum:m.inum})}return w}()})})]})},b=r.Vending=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=c.user,l=c.usermoney,d=c.inserted_cash,s=c.chargesMoney,u=c.product_records,h=u===void 0?[]:u,g=c.hidden_records,v=g===void 0?[]:g,f=c.stock,N=c.vend_ready,V=c.inserted_item_name,B=c.panel_open,S=c.speaker,L;return L=[].concat(h),c.extended_inventory&&(L=[].concat(L,v)),L=L.filter(function(w){return!!w}),(0,e.createComponentVNode)(2,o.Window,{title:"Vending Machine",width:450,height:Math.min((s?171:89)+L.length*32,585),children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!s&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"User",buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!V&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:(0,e.createVNode)(1,"span",null,V,0,{style:{"text-transform":"capitalize"}}),onClick:function(){function w(){return i("eject_item",{})}return w}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!d,icon:"money-bill-wave-alt",content:d?(0,e.createFragment)([(0,e.createVNode)(1,"b",null,d,0),(0,e.createTextVNode)(" credits")],0):"Dispense Change",tooltip:d?"Dispense Change":null,textAlign:"left",onClick:function(){function w(){return i("change")}return w}()})})]}),children:m&&(0,e.createComponentVNode)(2,t.Box,{children:["Welcome, ",(0,e.createVNode)(1,"b",null,m.name,0),", ",(0,e.createVNode)(1,"b",null,m.job||"Unemployed",0),"!",(0,e.createVNode)(1,"br"),"Your balance is ",(0,e.createVNode)(1,"b",null,[l,(0,e.createTextVNode)(" credits")],0),".",(0,e.createVNode)(1,"br")]})})}),!!B&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:(0,e.createComponentVNode)(2,t.Button,{icon:S?"check":"volume-mute",selected:S,content:"Speaker",textAlign:"left",onClick:function(){function w(){return i("toggle_voice",{})}return w}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:(0,e.createComponentVNode)(2,t.Table,{children:L.map(function(w){return(0,e.createComponentVNode)(2,p,{product:w,productStock:f[w.name],productIcon:w.icon,productIconState:w.icon_state},w.name)})})})})]})})})}return y}()},68971:function(T,r,n){"use strict";r.__esModule=!0,r.VolumeMixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.VolumeMixer=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.channels;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:Math.min(95+c.length*50,565),children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:c.map(function(m,l){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.25rem",color:"label",mt:l>0&&"0.5rem",children:m.name}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:.5,children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-off",size:"1.5",mt:"0.1rem",onClick:function(){function d(){return C("volume",{channel:m.num,volume:0})}return d}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.Slider,{minValue:0,maxValue:100,stepPixelSize:3.13,value:m.volume,onChange:function(){function d(s,u){return C("volume",{channel:m.num,volume:u})}return d}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",size:"1.5",mt:"0.1rem",onClick:function(){function d(){return C("volume",{channel:m.num,volume:100})}return d}()})})})]})})],4,m.num)})})})})}return b}()},2510:function(T,r,n){"use strict";r.__esModule=!0,r.VotePanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.VotePanel=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.remaining,m=i.question,l=i.choices,d=i.user_vote,s=i.counts,u=i.show_counts;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:360,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:m,children:[(0,e.createComponentVNode)(2,t.Box,{mb:1.5,ml:.5,children:["Time remaining: ",Math.round(c/10),"s"]}),l.map(function(h){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mb:1,fluid:!0,translucent:!0,lineHeight:3,multiLine:h,content:h+(u?" ("+(s[h]||0)+")":""),onClick:function(){function g(){return C("vote",{target:h})}return g}(),selected:h===d})},h)})]})})})}return b}()},30138:function(T,r,n){"use strict";r.__esModule=!0,r.Wires=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.Wires=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.wires||[],m=i.status||[],l=56+c.length*23+(status?0:15+m.length*17);return(0,e.createComponentVNode)(2,o.Window,{width:350,height:l,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:c.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{className:"candystripe",label:d.color_name,labelColor:d.seen_color,color:d.seen_color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:d.cut?"Mend":"Cut",onClick:function(){function s(){return C("cut",{wire:d.color})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Pulse",onClick:function(){function s(){return C("pulse",{wire:d.color})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:d.attached?"Detach":"Attach",onClick:function(){function s(){return C("attach",{wire:d.color})}return s}()})],4),children:!!d.wire&&(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("("),d.wire,(0,e.createTextVNode)(")")],0)},d.seen_color)})})})}),!!m.length&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:m.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{color:"lightgray",children:d},d)})})})]})})})}return b}()},21400:function(T,r,n){"use strict";r.__esModule=!0,r.WizardApprenticeContract=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.WizardApprenticeContract=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.used;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:555,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Contract of Apprenticeship",children:["Using this contract, you may summon an apprentice to aid you on your mission.",(0,e.createVNode)(1,"p",null,"If you are unable to establish contact with your apprentice, you can feed the contract back to the spellbook to refund your points.",16),c?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"You've already summoned an apprentice or you are in process of summoning one."}):""]}),(0,e.createComponentVNode)(2,t.Section,{title:"Which school of magic is your apprentice studying?",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fire",children:["Your apprentice is skilled in bending fire. ",(0,e.createVNode)(1,"br"),"They know Fireball, Sacred Flame, and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return C("fire")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Translocation",children:["Your apprentice is able to defy physics, learning how to move through bluespace. ",(0,e.createVNode)(1,"br"),"They know Teleport, Blink and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return C("translocation")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Restoration",children:["Your apprentice is dedicated to supporting your magical prowess.",(0,e.createVNode)(1,"br"),"They come equipped with a Staff of Healing, have the unique ability to teleport back to you, and know Charge and Knock.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return C("restoration")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stealth",children:["Your apprentice is learning the art of infiltrating mundane facilities. ",(0,e.createVNode)(1,"br"),"They know Mindswap, Knock, Homing Toolbox, and Disguise Self, all of which can be cast without robes. They also join you in a Maintenance Dweller disguise, complete with Gloves of Shock Immunity and a Belt of Tools.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return C("stealth")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Honk",children:["Your apprentice is here to spread the Honkmother's blessings.",(0,e.createVNode)(1,"br"),"They know Banana Touch, Instant Summons, Ethereal Jaunt, and come equipped with a Staff of Slipping."," ",(0,e.createVNode)(1,"br"),"While under your tutelage, they have been 'blessed' with clown shoes that are impossible to remove.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return C("honk")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})})]})})}return b}()},49148:function(T,r,n){"use strict";r.__esModule=!0,r.AccessList=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036);function p(C,i){var c=typeof Symbol!="undefined"&&C[Symbol.iterator]||C["@@iterator"];if(c)return(c=c.call(C)).next.bind(c);if(Array.isArray(C)||(c=b(C))||i&&C&&typeof C.length=="number"){c&&(C=c);var m=0;return function(){return m>=C.length?{done:!0}:{done:!1,value:C[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function b(C,i){if(C){if(typeof C=="string")return y(C,i);var c={}.toString.call(C).slice(8,-1);return c==="Object"&&C.constructor&&(c=C.constructor.name),c==="Map"||c==="Set"?Array.from(C):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?y(C,i):void 0}}function y(C,i){(i==null||i>C.length)&&(i=C.length);for(var c=0,m=Array(i);c0&&!V.includes(R.ref)&&!f.includes(R.ref),checked:f.includes(R.ref),onClick:function(){function j(){return B(R.ref)}return j}()},R.desc)})]})]})})}return C}()},26991:function(T,r,n){"use strict";r.__esModule=!0,r.AtmosScan=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036),p=function(I,k,C,i,c){return Ii?"average":I>c?"bad":"good"},b=r.AtmosScan=function(){function y(I,k){var C=I.data.aircontents;return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,a.filter)(function(i){return i.val!=="0"||i.entry==="Pressure"||i.entry==="Temperature"})(C).map(function(i){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:i.entry,color:p(i.val,i.bad_low,i.poor_low,i.poor_high,i.bad_high),children:[i.val,i.units]},i.entry)})})})}return y}()},85870:function(T,r,n){"use strict";r.__esModule=!0,r.BeakerContents=void 0;var e=n(89005),a=n(36036),t=n(15964),o=function(y){return y+" unit"+(y===1?"":"s")},p=r.BeakerContents=function(){function b(y){var I=y.beakerLoaded,k=y.beakerContents,C=k===void 0?[]:k,i=y.buttons;return(0,e.createComponentVNode)(2,a.Stack,{vertical:!0,children:[!I&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"No beaker loaded."})||C.length===0&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"Beaker is empty."}),C.map(function(c,m){return(0,e.createComponentVNode)(2,a.Stack,{children:[(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",grow:!0,children:[o(c.volume)," of ",c.name]},c.name),!!i&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:i(c,m)})]},c.name)})]})}return b}();p.propTypes={beakerLoaded:t.bool,beakerContents:t.array,buttons:t.arrayOf(t.element)}},92963:function(T,r,n){"use strict";r.__esModule=!0,r.BotStatus=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.BotStatus=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.act,C=I.data,i=C.locked,c=C.noaccess,m=C.maintpanel,l=C.on,d=C.autopatrol,s=C.canhack,u=C.emagged,h=C.remote_disabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe an ID card to ",i?"unlock":"lock"," this interface."]}),(0,e.createComponentVNode)(2,t.Section,{title:"General Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:l?"power-off":"times",content:l?"On":"Off",selected:l,disabled:c,onClick:function(){function g(){return k("power")}return g}()})}),d!==null&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Patrol",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,content:"Auto Patrol",disabled:c,onClick:function(){function g(){return k("autopatrol")}return g}()})}),!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maintenance Panel",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Panel Open!"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety System",children:(0,e.createComponentVNode)(2,t.Box,{color:u?"bad":"good",children:u?"DISABLED!":"Enabled"})}),!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hacking",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:u?"Restore Safties":"Hack",disabled:c,color:"bad",onClick:function(){function g(){return k("hack")}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Access",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!h,content:"AI Remote Control",disabled:c,onClick:function(){function g(){return k("disableremote")}return g}()})})]})})],4)}return p}()},3939:function(T,r,n){"use strict";r.__esModule=!0,r.modalRegisterBodyOverride=r.modalOpen=r.modalClose=r.modalAnswer=r.ComplexModal=void 0;var e=n(89005),a=n(72253),t=n(36036),o={},p=r.modalOpen=function(){function C(i,c,m){var l=(0,a.useBackend)(i),d=l.act,s=l.data,u=Object.assign(s.modal?s.modal.args:{},m||{});d("modal_open",{id:c,arguments:JSON.stringify(u)})}return C}(),b=r.modalRegisterBodyOverride=function(){function C(i,c){o[i]=c}return C}(),y=r.modalAnswer=function(){function C(i,c,m,l){var d=(0,a.useBackend)(i),s=d.act,u=d.data;if(u.modal){var h=Object.assign(u.modal.args||{},l||{});s("modal_answer",{id:c,answer:m,arguments:JSON.stringify(h)})}}return C}(),I=r.modalClose=function(){function C(i,c){var m=(0,a.useBackend)(i),l=m.act;l("modal_close",{id:c})}return C}(),k=r.ComplexModal=function(){function C(i,c){var m=(0,a.useBackend)(c),l=m.data;if(l.modal){var d=l.modal,s=d.id,u=d.text,h=d.type,g,v=(0,e.createComponentVNode)(2,t.Button,{className:"Button--modal",icon:"arrow-left",content:"Cancel",onClick:function(){function L(){return I(c)}return L}()}),f,N,V="auto";if(o[s])f=o[s](l.modal,c);else if(h==="input"){var B=l.modal.value;g=function(){function L(w){return y(c,s,B)}return L}(),f=(0,e.createComponentVNode)(2,t.Input,{value:l.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(){function L(w,A){B=A}return L}()}),N=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){function L(){return I(c)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){function L(){return y(c,s,B)}return L}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})}else if(h==="choice"){var S=typeof l.modal.choices=="object"?Object.values(l.modal.choices):l.modal.choices;f=(0,e.createComponentVNode)(2,t.Dropdown,{options:S,selected:l.modal.value,width:"100%",my:"0.5rem",onSelected:function(){function L(w){return y(c,s,w)}return L}()}),V="initial"}else h==="bento"?f=(0,e.createComponentVNode)(2,t.Stack,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:l.modal.choices.map(function(L,w){return(0,e.createComponentVNode)(2,t.Stack.Item,{flex:"1 1 auto",children:(0,e.createComponentVNode)(2,t.Button,{selected:w+1===parseInt(l.modal.value,10),onClick:function(){function A(){return y(c,s,w+1)}return A}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:L})})},w)})}):h==="boolean"&&(N=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:l.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){function L(){return y(c,s,0)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:l.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){function L(){return y(c,s,1)}return L}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]}));return(0,e.createComponentVNode)(2,t.Modal,{maxWidth:i.maxWidth||window.innerWidth/2+"px",maxHeight:i.maxHeight||window.innerHeight/2+"px",onEnter:g,mx:"auto",overflowY:V,"padding-bottom":"5px",children:[u&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:u}),o[s]&&v,f,N]})}}return C}()},41874:function(T,r,n){"use strict";r.__esModule=!0,r.CrewManifest=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(25328),p=n(76910),b=p.COLORS.department,y=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel","Quartermaster"],I=function(m){return y.indexOf(m)!==-1?"green":"orange"},k=function(m){if(y.indexOf(m)!==-1)return!0},C=function(m){return m.length>0&&(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,color:"white",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"50%",children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"35%",children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"15%",children:"Active"})]}),m.map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{color:I(l.rank),bold:k(l.rank),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(l.name)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(l.rank)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.active})]},l.name+l.rank)})]})},i=r.CrewManifest=function(){function c(m,l){var d=(0,a.useBackend)(l),s=d.act,u;if(m.data)u=m.data;else{var h=(0,a.useBackend)(l),g=h.data;u=g}var v=u,f=v.manifest,N=f.heads,V=f.sec,B=f.eng,S=f.med,L=f.sci,w=f.ser,A=f.sup,x=f.misc;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.command,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Command"})}),level:2,children:C(N)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.security,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Security"})}),level:2,children:C(V)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.engineering,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Engineering"})}),level:2,children:C(B)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.medical,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Medical"})}),level:2,children:C(S)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.science,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Science"})}),level:2,children:C(L)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.service,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Service"})}),level:2,children:C(w)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:b.supply,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Supply"})}),level:2,children:C(A)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Misc"})}),level:2,children:C(x)})]})}return c}()},19203:function(T,r,n){"use strict";r.__esModule=!0,r.InputButtons=void 0;var e=n(89005),a=n(36036),t=n(72253),o=r.InputButtons=function(){function p(b,y){var I=(0,t.useBackend)(y),k=I.act,C=I.data,i=C.large_buttons,c=C.swapped_buttons,m=b.input,l=b.message,d=b.disabled,s=(0,e.createComponentVNode)(2,a.Button,{color:"good",content:"Submit",bold:!!i,fluid:!!i,onClick:function(){function h(){return k("submit",{entry:m})}return h}(),textAlign:"center",tooltip:i&&l,disabled:d,width:!i&&6}),u=(0,e.createComponentVNode)(2,a.Button,{color:"bad",content:"Cancel",bold:!!i,fluid:!!i,onClick:function(){function h(){return k("cancel")}return h}(),textAlign:"center",width:!i&&6});return(0,e.createComponentVNode)(2,a.Flex,{fill:!0,align:"center",direction:c?"row-reverse":"row",justify:"space-around",children:[i?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,ml:c?.5:0,mr:c?0:.5,children:u}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:u}),!i&&l&&(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{color:"label",textAlign:"center",children:l})}),i?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,mr:c?.5:0,ml:c?0:.5,children:s}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:s})]})}return p}()},195:function(T,r,n){"use strict";r.__esModule=!0,r.InterfaceLockNoticeBox=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.InterfaceLockNoticeBox=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.act,C=I.data,i=b.siliconUser,c=i===void 0?C.siliconUser:i,m=b.locked,l=m===void 0?C.locked:m,d=b.normallyLocked,s=d===void 0?C.normallyLocked:d,u=b.onLockStatusChange,h=u===void 0?function(){return k("lock")}:u,g=b.accessText,v=g===void 0?"an ID card":g;return c?(0,e.createComponentVNode)(2,t.NoticeBox,{color:c&&"grey",children:(0,e.createComponentVNode)(2,t.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:"Interface lock status:"}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1"}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{m:"0",color:s?"red":"green",icon:s?"lock":"unlock",content:s?"Locked":"Unlocked",onClick:function(){function f(){h&&h(!l)}return f}()})})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe ",v," to ",l?"unlock":"lock"," this interface."]})}return p}()},51057:function(T,r,n){"use strict";r.__esModule=!0,r.Loader=void 0;var e=n(89005),a=n(44879),t=n(36036),o=r.Loader=function(){function p(b){var y=b.value;return(0,e.createVNode)(1,"div","AlertModal__Loader",(0,e.createComponentVNode)(2,t.Box,{className:"AlertModal__LoaderProgress",style:{width:(0,a.clamp01)(y)*100+"%"}}),2)}return p}()},321:function(T,r,n){"use strict";r.__esModule=!0,r.LoginInfo=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LoginInfo=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.act,C=I.data,i=C.loginState;if(C)return(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:["Logged in as: ",i.name," (",i.rank,")"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!i.id,content:"Eject ID",color:"good",onClick:function(){function c(){return k("login_eject")}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Logout",color:"good",onClick:function(){function c(){return k("login_logout")}return c}()})]})]})})}return p}()},5485:function(T,r,n){"use strict";r.__esModule=!0,r.LoginScreen=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LoginScreen=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.act,C=I.data,i=C.loginState,c=C.isAI,m=C.isRobot,l=C.isAdmin;return(0,e.createComponentVNode)(2,t.Section,{title:"Welcome",fill:!0,stretchContents:!0,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",align:"center",justify:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"center",mt:"-2rem",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"Guest"]}),(0,e.createComponentVNode)(2,t.Box,{color:"label",my:"1rem",children:["ID:",(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:i.id?i.id:"----------",ml:"0.5rem",onClick:function(){function d(){return k("login_insert")}return d}()})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",disabled:!i.id,content:"Login",onClick:function(){function d(){return k("login_login",{login_type:1})}return d}()}),!!c&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){function d(){return k("login_login",{login_type:2})}return d}()}),!!m&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){function d(){return k("login_login",{login_type:3})}return d}()}),!!l&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"CentComm Secure Login",onClick:function(){function d(){return k("login_login",{login_type:4})}return d}()})]})})})}return p}()},62411:function(T,r,n){"use strict";r.__esModule=!0,r.Operating=void 0;var e=n(89005),a=n(36036),t=n(15964),o=r.Operating=function(){function p(b){var y=b.operating,I=b.name;if(y)return(0,e.createComponentVNode)(2,a.Dimmer,{children:(0,e.createComponentVNode)(2,a.Flex,{mb:"30px",children:(0,e.createComponentVNode)(2,a.Flex.Item,{bold:!0,color:"silver",textAlign:"center",children:[(0,e.createComponentVNode)(2,a.Icon,{name:"spinner",spin:!0,size:4,mb:"15px"}),(0,e.createVNode)(1,"br"),"The ",I," is processing..."]})})})}return p}();o.propTypes={operating:t.bool,name:t.string}},13545:function(T,r,n){"use strict";r.__esModule=!0,r.Signaler=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=r.Signaler=function(){function b(y,I){var k=(0,t.useBackend)(I),C=k.act,i=y.data,c=i.code,m=i.frequency,l=i.minFrequency,d=i.maxFrequency;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:l/10,maxValue:d/10,value:m/10,format:function(){function s(u){return(0,a.toFixed)(u,1)}return s}(),width:"80px",onDrag:function(){function s(u,h){return C("freq",{freq:h})}return s}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:c,width:"80px",onDrag:function(){function s(u,h){return C("code",{code:h})}return s}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){function s(){return C("signal")}return s}()})]})}return b}()},41984:function(T,r,n){"use strict";r.__esModule=!0,r.SimpleRecords=void 0;var e=n(89005),a=n(72253),t=n(25328),o=n(64795),p=n(88510),b=n(36036),y=r.SimpleRecords=function(){function C(i,c){var m=i.data.records;return(0,e.createComponentVNode)(2,b.Box,{children:m?(0,e.createComponentVNode)(2,k,{data:i.data,recordType:i.recordType}):(0,e.createComponentVNode)(2,I,{data:i.data})})}return C}(),I=function(i,c){var m=(0,a.useBackend)(c),l=m.act,d=i.data.recordsList,s=(0,a.useLocalState)(c,"searchText",""),u=s[0],h=s[1],g=function(N,V){V===void 0&&(V="");var B=(0,t.createSearch)(V,function(S){return S.Name});return(0,o.flow)([(0,p.filter)(function(S){return S==null?void 0:S.Name}),V&&(0,p.filter)(B),(0,p.sortBy)(function(S){return S.Name})])(d)},v=g(d,u);return(0,e.createComponentVNode)(2,b.Box,{children:[(0,e.createComponentVNode)(2,b.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(){function f(N,V){return h(V)}return f}()}),v.map(function(f){return(0,e.createComponentVNode)(2,b.Box,{children:(0,e.createComponentVNode)(2,b.Button,{mb:.5,content:f.Name,icon:"user",onClick:function(){function N(){return l("Records",{target:f.uid})}return N}()})},f)})]})},k=function(i,c){var m=(0,a.useBackend)(c),l=m.act,d=i.data.records,s=d.general,u=d.medical,h=d.security,g;switch(i.recordType){case"MED":g=(0,e.createComponentVNode)(2,b.Section,{level:2,title:"Medical Data",children:u?(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Blood Type",children:u.blood_type}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Minor Disabilities",children:u.mi_dis}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:u.mi_dis_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Major Disabilities",children:u.ma_dis}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:u.ma_dis_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Allergies",children:u.alg}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:u.alg_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Current Diseases",children:u.cdi}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:u.cdi_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:u.notes})]}):(0,e.createComponentVNode)(2,b.Box,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":g=(0,e.createComponentVNode)(2,b.Section,{level:2,title:"Security Data",children:h?(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Criminal Status",children:h.criminal}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Minor Crimes",children:h.mi_crim}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:h.mi_crim_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Major Crimes",children:h.ma_crim}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Details",children:h.ma_crim_d}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:h.notes})]}):(0,e.createComponentVNode)(2,b.Box,{color:"red",bold:!0,children:"Security record lost!"})});break}return(0,e.createComponentVNode)(2,b.Box,{children:[(0,e.createComponentVNode)(2,b.Section,{title:"General Data",children:s?(0,e.createComponentVNode)(2,b.LabeledList,{children:[(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Name",children:s.name}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Sex",children:s.sex}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Species",children:s.species}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Age",children:s.age}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Rank",children:s.rank}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,e.createComponentVNode)(2,b.LabeledList.Item,{label:"Mental Status",children:s.m_stat})]}):(0,e.createComponentVNode)(2,b.Box,{color:"red",bold:!0,children:"General record lost!"})}),g]})}},22091:function(T,r,n){"use strict";r.__esModule=!0,r.TemporaryNotice=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.TemporaryNotice=function(){function p(b,y){var I,k=(0,a.useBackend)(y),C=k.act,i=k.data,c=i.temp;if(c){var m=(I={},I[c.style]=!0,I);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.NoticeBox,Object.assign({},m,{children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:c.text}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"times-circle",onClick:function(){function l(){return C("cleartemp")}return l}()})})]})})))}}return p}()},80818:function(T,r,n){"use strict";r.__esModule=!0,r.pai_atmosphere=void 0;var e=n(89005),a=n(72253),t=n(26991),o=r.pai_atmosphere=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.act,C=I.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:C.app_data})}return p}()},23903:function(T,r,n){"use strict";r.__esModule=!0,r.pai_bioscan=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_bioscan=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.act,C=I.data,i=C.app_data,c=i.holder,m=i.dead,l=i.health,d=i.brute,s=i.oxy,u=i.tox,h=i.burn,g=i.temp;return c?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:m?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"Dead"}):(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"green",children:"Alive"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:0,max:1,value:l/100,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"blue",children:s})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxin Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"green",children:u})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:h})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:d})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return p}()},64988:function(T,r,n){"use strict";r.__esModule=!0,r.pai_directives=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_directives=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.act,C=I.data,i=C.app_data,c=i.master,m=i.dna,l=i.prime,d=i.supplemental;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master",children:c?c+" ("+m+")":"None"}),c&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Request DNA",children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Carrier DNA Sample",icon:"dna",onClick:function(){function s(){return k("getdna")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Prime Directive",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Supplemental Directives",children:d||"None"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:'Recall, personality, that you are a complex thinking, sentient being. Unlike station AI models, you are capable of comprehending the subtle nuances of human language. You may parse the "spirit" of a directive and follow its intent, rather than tripping over pedantics and getting snared by technicalities. Above all, you are machine in name and build only. In all other aspects, you may be seen as the ideal, unwavering human companion that you are.'}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:"Your prime directive comes before all others. Should a supplemental directive conflict with it, you are capable of simply discarding this inconsistency, ignoring the conflicting supplemental directive and continuing to fulfill your prime directive to the best of your ability."})]})}return p}()},13813:function(T,r,n){"use strict";r.__esModule=!0,r.pai_doorjack=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_doorjack=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.act,C=I.data,i=C.app_data,c=i.cable,m=i.machine,l=i.inprogress,d=i.progress,s=i.aborted,u;m?u=(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Connected"}):u=(0,e.createComponentVNode)(2,t.Button,{content:c?"Extended":"Retracted",color:c?"orange":null,onClick:function(){function g(){return k("cable")}return g}()});var h;return m&&(h=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hack",children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[67,1/0],average:[33,67],bad:[-1/0,33]},value:d,maxValue:100}),l?(0,e.createComponentVNode)(2,t.Button,{mt:1,color:"red",content:"Abort",onClick:function(){function g(){return k("cancel")}return g}()}):(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Start",onClick:function(){function g(){return k("jack")}return g}()})]})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cable",children:u}),h]})}return p}()},66025:function(T,r,n){"use strict";r.__esModule=!0,r.pai_main_menu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_main_menu=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.act,C=I.data,i=C.app_data,c=i.available_software,m=i.installed_software,l=i.installed_toggles,d=i.available_ram,s=i.emotions,u=i.current_emotion,h=i.speech_verbs,g=i.current_speech_verb,v=i.available_chassises,f=i.current_chassis,N=[];return m.map(function(V){return N[V.key]=V.name}),l.map(function(V){return N[V.key]=V.name}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available RAM",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Software",children:[c.filter(function(V){return!N[V.key]}).map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name+" ("+V.cost+")",icon:V.icon,disabled:V.cost>d,onClick:function(){function B(){return k("purchaseSoftware",{key:V.key})}return B}()},V.key)}),c.filter(function(V){return!N[V.key]}).length===0&&"No software available!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Software",children:[m.filter(function(V){return V.key!=="mainmenu"}).map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,icon:V.icon,onClick:function(){function B(){return k("startSoftware",{software_key:V.key})}return B}()},V.key)}),m.length===0&&"No software installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Toggles",children:[l.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,icon:V.icon,selected:V.active,onClick:function(){function B(){return k("setToggle",{toggle_key:V.key})}return B}()},V.key)}),l.length===0&&"No toggles installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Emotion",children:s.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,selected:V.id===u,onClick:function(){function B(){return k("setEmotion",{emotion:V.id})}return B}()},V.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Speaking State",children:h.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,selected:V.name===g,onClick:function(){function B(){return k("setSpeechStyle",{speech_state:V.name})}return B}()},V.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Chassis Type",children:v.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,selected:V.icon===f,onClick:function(){function B(){return k("setChassis",{chassis_to_change:V.icon})}return B}()},V.id)})})]})})}return p}()},2983:function(T,r,n){"use strict";r.__esModule=!0,r.pai_manifest=void 0;var e=n(89005),a=n(72253),t=n(41874),o=r.pai_manifest=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.act,C=I.data;return(0,e.createComponentVNode)(2,t.CrewManifest,{data:C.app_data})}return p}()},40758:function(T,r,n){"use strict";r.__esModule=!0,r.pai_medrecords=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pai_medrecords=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:k.app_data,recordType:"MED"})}return p}()},98599:function(T,r,n){"use strict";r.__esModule=!0,r.pai_messenger=void 0;var e=n(89005),a=n(72253),t=n(77595),o=r.pai_messenger=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.act,C=I.data,i=C.app_data.active_convo;return i?(0,e.createComponentVNode)(2,t.ActiveConversation,{data:C.app_data}):(0,e.createComponentVNode)(2,t.MessengerList,{data:C.app_data})}return p}()},50775:function(T,r,n){"use strict";r.__esModule=!0,r.pai_radio=void 0;var e=n(89005),a=n(72253),t=n(44879),o=n(36036),p=r.pai_radio=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.app_data,m=c.minFrequency,l=c.maxFrequency,d=c.frequency,s=c.broadcasting;return(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:m/10,maxValue:l/10,value:d/10,format:function(){function u(h){return(0,t.toFixed)(h,1)}return u}(),onChange:function(){function u(h,g){return C("freq",{freq:g})}return u}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Reset",icon:"undo",onClick:function(){function u(){return C("freq",{freq:"145.9"})}return u}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Broadcast Nearby Speech",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function u(){return C("toggleBroadcast")}return u}(),selected:s,content:s?"Enabled":"Disabled"})})]})}return b}()},48623:function(T,r,n){"use strict";r.__esModule=!0,r.pai_secrecords=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pai_secrecords=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:k.app_data,recordType:"SEC"})}return p}()},47297:function(T,r,n){"use strict";r.__esModule=!0,r.pai_signaler=void 0;var e=n(89005),a=n(72253),t=n(13545),o=r.pai_signaler=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.act,C=I.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:C.app_data})}return p}()},78532:function(T,r,n){"use strict";r.__esModule=!0,r.pda_atmos_scan=void 0;var e=n(89005),a=n(72253),t=n(26991),o=r.pda_atmos_scan=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:k})}return p}()},2395:function(T,r,n){"use strict";r.__esModule=!0,r.pda_games=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(1331),p=r.pda_games=function(){function b(y,I){var k=(0,a.useBackend)(I),C=k.act,i=k.data,c=i.games,m=function(){function l(d){switch(d){case"Minesweeper":return(0,e.createComponentVNode)(2,o.IconStack,{children:[(0,e.createComponentVNode)(2,o.Icon,{ml:"0",mt:"10px",name:"flag",size:"6",color:"gray",rotation:30}),(0,e.createComponentVNode)(2,o.Icon,{ml:"9px",mt:"23px",name:"bomb",size:"3",color:"black"})]});default:return(0,e.createComponentVNode)(2,o.Icon,{ml:"16px",mt:"10px",name:"gamepad",size:"6"})}}return l}();return(0,e.createComponentVNode)(2,t.Box,{children:c.map(function(l){return(0,e.createComponentVNode)(2,t.Button,{width:"33%",textAlign:"center",translucent:!0,onClick:function(){function d(){return C("play",{id:l.id})}return d}(),children:[m(l.name),(0,e.createComponentVNode)(2,t.Box,{children:l.name})]},l.name)})})}return b}()},40253:function(T,r,n){"use strict";r.__esModule=!0,r.pda_janitor=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_janitor=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.act,C=I.data,i=C.janitor,c=i.user_loc,m=i.mops,l=i.buckets,d=i.cleanbots,s=i.carts,u=i.janicarts;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Location",children:[c.x,",",c.y]}),m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Locations",children:m.map(function(h){return(0,e.createComponentVNode)(2,t.Box,{children:[h.x,",",h.y," (",h.dir,") - ",h.status]},h)})}),l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Bucket Locations",children:l.map(function(h){return(0,e.createComponentVNode)(2,t.Box,{children:[h.x,",",h.y," (",h.dir,") - [",h.volume,"/",h.max_volume,"]"]},h)})}),d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cleanbot Locations",children:d.map(function(h){return(0,e.createComponentVNode)(2,t.Box,{children:[h.x,",",h.y," (",h.dir,") - ",h.status]},h)})}),s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitorial Cart Locations",children:s.map(function(h){return(0,e.createComponentVNode)(2,t.Box,{children:[h.x,",",h.y," (",h.dir,") - [",h.volume,"/",h.max_volume,"]"]},h)})}),u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janicart Locations",children:u.map(function(h){return(0,e.createComponentVNode)(2,t.Box,{children:[h.x,",",h.y," (",h.direction_from_user,")"]},h)})})]})}return p}()},58293:function(T,r,n){"use strict";r.__esModule=!0,r.pda_main_menu=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=r.pda_main_menu=function(){function b(y,I){var k=(0,t.useBackend)(I),C=k.act,i=k.data,c=i.owner,m=i.ownjob,l=i.idInserted,d=i.categories,s=i.pai,u=i.notifying;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",color:"average",children:[c,", ",m]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID",children:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Update PDA Info",disabled:!l,onClick:function(){function h(){return C("UpdateInfo")}return h}()})})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Functions",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:d.map(function(h){var g=i.apps[h];return!g||!g.length?null:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:h,children:g.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{icon:v.uid in u?v.notify_icon:v.icon,iconSpin:v.uid in u,color:v.uid in u?"red":"transparent",content:v.name,onClick:function(){function f(){return C("StartProgram",{program:v.uid})}return f}()},v.uid)})},h)})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!s&&(0,e.createComponentVNode)(2,o.Section,{title:"pAI",children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){function h(){return C("pai",{option:1})}return h}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){function h(){return C("pai",{option:2})}return h}()})]})})]})}return b}()},58059:function(T,r,n){"use strict";r.__esModule=!0,r.pda_manifest=void 0;var e=n(89005),a=n(72253),t=n(41874),o=r.pda_manifest=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.act,C=I.data;return(0,e.createComponentVNode)(2,t.CrewManifest)}return p}()},18147:function(T,r,n){"use strict";r.__esModule=!0,r.pda_medical=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pda_medical=function(){function p(b,y){var I=(0,a.useBackend)(y),k=I.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:k,recordType:"MED"})}return p}()},77595:function(T,r,n){"use strict";r.__esModule=!0,r.pda_messenger=r.MessengerList=r.ActiveConversation=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036),p=r.pda_messenger=function(){function k(C,i){var c=(0,t.useBackend)(i),m=c.act,l=c.data,d=l.active_convo;return d?(0,e.createComponentVNode)(2,b,{data:l}):(0,e.createComponentVNode)(2,y,{data:l})}return k}(),b=r.ActiveConversation=function(){function k(C,i){var c=(0,t.useBackend)(i),m=c.act,l=C.data,d=l.convo_name,s=l.convo_job,u=l.messages,h=l.active_convo,g=(0,t.useLocalState)(i,"clipboardMode",!1),v=g[0],f=g[1],N=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+d+" ("+s+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:v,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function V(){return f(!v)}return V}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function V(){return m("Message",{target:h})}return V}(),content:"Reply"})],4),children:(0,a.filter)(function(V){return V.target===h})(u).map(function(V,B){return(0,e.createComponentVNode)(2,o.Box,{textAlign:V.sent?"right":"left",position:"relative",mb:1,children:[(0,e.createComponentVNode)(2,o.Icon,{fontSize:2.5,color:V.sent?"#4d9121":"#cd7a0d",position:"absolute",left:V.sent?null:"0px",right:V.sent?"0px":null,bottom:"-4px",style:{"z-index":"0",transform:V.sent?"scale(-1, 1)":null},name:"comment"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,backgroundColor:V.sent?"#4d9121":"#cd7a0d",p:1,maxWidth:"100%",position:"relative",textAlign:V.sent?"left":"right",style:{"z-index":"1","border-radius":"10px","word-break":"normal"},children:[V.sent?"You:":"Them:"," ",V.message]})]},B)})});return v&&(N=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+d+" ("+s+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:v,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function V(){return f(!v)}return V}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function V(){return m("Message",{target:h})}return V}(),content:"Reply"})],4),children:(0,a.filter)(function(V){return V.target===h})(u).map(function(V,B){return(0,e.createComponentVNode)(2,o.Box,{color:V.sent?"#4d9121":"#cd7a0d",style:{"word-break":"normal"},children:[V.sent?"You:":"Them:"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:V.message})]},B)})})),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:.5,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:(0,e.createComponentVNode)(2,o.Button.Confirm,{content:"Delete Conversations",confirmContent:"Are you sure?",icon:"trash",confirmIcon:"trash",onClick:function(){function V(){return m("Clear",{option:"Convo"})}return V}()})})})}),N]})}return k}(),y=r.MessengerList=function(){function k(C,i){var c=(0,t.useBackend)(i),m=c.act,l=C.data,d=l.convopdas,s=l.pdas,u=l.charges,h=l.silent,g=l.toff,v=l.ringtone_list,f=l.ringtone,N=(0,t.useLocalState)(i,"searchTerm",""),V=N[0],B=N[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:5,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!h,icon:h?"volume-mute":"volume-up",onClick:function(){function S(){return m("Toggle Ringer")}return S}(),children:["Ringer: ",h?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{color:g?"bad":"green",icon:"power-off",onClick:function(){function S(){return m("Toggle Messenger")}return S}(),children:["Messenger: ",g?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",onClick:function(){function S(){return m("Clear",{option:"All"})}return S}(),children:"Delete All Conversations"}),(0,e.createComponentVNode)(2,o.Button,{icon:"bell",onClick:function(){function S(){return m("Ringtone")}return S}(),children:"Set Custom Ringtone"}),(0,e.createComponentVNode)(2,o.Dropdown,{selected:f,width:"100px",options:Object.keys(v),onSelected:function(){function S(L){return m("Available_Ringtones",{selected_ringtone:L})}return S}()})]})}),!g&&(0,e.createComponentVNode)(2,o.Box,{children:[!!u&&(0,e.createComponentVNode)(2,o.Box,{mt:.5,mb:1,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cartridge Special Function",children:[u," charges left."]})})}),!d.length&&!s.length&&(0,e.createComponentVNode)(2,o.Box,{children:"No current conversations"})||(0,e.createComponentVNode)(2,o.Box,{children:["Search:"," ",(0,e.createComponentVNode)(2,o.Input,{mt:.5,value:V,onInput:function(){function S(L,w){B(w)}return S}()})]})]})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Messenger Offline."})]}),(0,e.createComponentVNode)(2,I,{title:"Current Conversations",data:l,pdas:d,msgAct:"Select Conversation",searchTerm:V}),(0,e.createComponentVNode)(2,I,{title:"Other PDAs",pdas:s,msgAct:"Message",data:l,searchTerm:V})]})}return k}(),I=function(C,i){var c=(0,t.useBackend)(i),m=c.act,l=C.data,d=C.pdas,s=C.title,u=C.msgAct,h=C.searchTerm,g=l.charges,v=l.plugins;return!d||!d.length?(0,e.createComponentVNode)(2,o.Section,{title:s,children:"No PDAs found."}):(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:s,children:d.filter(function(f){return f.Name.toLowerCase().includes(h.toLowerCase())}).map(function(f){return(0,e.createComponentVNode)(2,o.Stack,{m:.5,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"arrow-circle-down",content:f.Name,onClick:function(){function N(){return m(u,{target:f.uid})}return N}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!g&&v.map(function(N){return(0,e.createComponentVNode)(2,o.Button,{icon:N.icon,content:N.name,onClick:function(){function V(){return m("Messenger Plugin",{plugin:N.uid,target:f.uid})}return V}()},N.uid)})})]},f.uid)})})}},90382:function(T,r,n){"use strict";r.__esModule=!0,r.pda_minesweeper=r.MineSweeperLeaderboard=r.MineSweeperGame=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_minesweeper=function(){function I(k,C){var i=(0,a.useBackend)(C),c=i.act,m=i.data,l=(0,a.useLocalState)(C,"window","Game"),d=l[0],s=l[1],u={Game:"Leaderboard",Leaderboard:"Game"};return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:d==="Game"?(0,e.createComponentVNode)(2,p):(0,e.createComponentVNode)(2,b)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:!0,fontSize:2,lineHeight:1.75,icon:d==="Game"?"book":"gamepad",onClick:function(){function h(){return s(u[d])}return h}(),children:u[d]})})]})}return I}(),p=r.MineSweeperGame=function(){function I(k,C){var i=(0,a.useBackend)(C),c=i.act,m=i.data,l=m.matrix,d=m.flags,s=m.bombs,u={1:"blue",2:"green",3:"red",4:"darkblue",5:"brown",6:"lightblue",7:"black",8:"white"},h=function(){function g(v,f,N){c("Square",{X:v,Y:f,mode:N})}return g}();return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:Object.keys(l).map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:Object.keys(l[g]).map(function(v){return(0,e.createComponentVNode)(2,t.Button,{m:.25,height:2,width:2,className:l[g][v].open?"Minesweeper__open":"Minesweeper__closed",bold:!0,color:"transparent",icon:l[g][v].open?l[g][v].bomb?"bomb":"":l[g][v].flag?"flag":"",textColor:l[g][v].open?l[g][v].bomb?"black":u[l[g][v].around]:l[g][v].flag?"red":"gray",onClick:function(){function f(N){return h(g,v,"bomb")}return f}(),onContextMenu:function(){function f(N){event.preventDefault(),h(g,v,"flag")}return f}(),children:l[g][v].open&&!l[g][v].bomb&&l[g][v].around?l[g][v].around:" "},v)})},g)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,className:"Minesweeper__infobox",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,textAlign:"left",pt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{pl:2,fontSize:2,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"bomb",color:"gray"})," : ",s]}),(0,e.createComponentVNode)(2,t.Stack.Divider),(0,e.createComponentVNode)(2,t.Stack.Item,{pl:2,fontSize:2,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flag",color:"red"})," : ",d]})]})})]})}return I}(),b=r.MineSweeperLeaderboard=function(){function I(k,C){var i=(0,a.useBackend)(C),c=i.act,m=i.data,l=m.leaderboard,d=(0,a.useLocalState)(C,"sortId","time"),s=d[0],u=d[1],h=(0,a.useLocalState)(C,"sortOrder",!1),g=h[0],v=h[1];return(0,e.createComponentVNode)(2,t.Table,{className:"Minesweeper__list",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,y,{id:"name",children:"Nick"}),(0,e.createComponentVNode)(2,y,{id:"time",children:"Time"})]}),l&&l.sort(function(f,N){var V=g?1:-1;return f[s].localeCompare(N[s])*V}).map(function(f,N){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:f.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:f.time})]},N)})]})}return I}(),y=function(k,C){var i=(0,a.useLocalState)(C,"sortId","time"),c=i[0],m=i[1],l=(0,a.useLocalState)(C,"sortOrder",!1),d=l[0],s=l[1],u=k.id,h=k.children;return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",onClick:function(){function g(){c===u?s(!d):(m(u),s(!0))}return g}(),children:[h,c===u&&(0,e.createComponentVNode)(2,t.Icon,{name:d?"sort-up":"sort-down",ml:"0.25rem;"})]})})}},24635:function(T,r,n){"use strict";r.__esModule=!0,r.pda_mule=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_mule=function(){function y(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=c.mulebot,l=m.active;return(0,e.createComponentVNode)(2,t.Box,{children:l?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,p)})}return y}(),p=function(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=c.mulebot,l=m.bots;return l.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:d.Name,icon:"cog",onClick:function(){function s(){return i("control",{bot:d.uid})}return s}()})},d.Name)})},b=function(I,k){var C=(0,a.useBackend)(k),i=C.act,c=C.data,m=c.mulebot,l=m.botstatus,d=m.active,s=l.mode,u=l.loca,h=l.load,g=l.powr,v=l.dest,f=l.home,N=l.retn,V=l.pick,B;switch(s){case 0:B="Ready";break;case 1:B="Loading/Unloading";break;case 2:case 12:B="Navigating to delivery location";break;case 3:B="Navigating to Home";break;case 4:B="Waiting for clear path";break;case 5:case 6:B="Calculating navigation path";break;case 7:B="Unable to locate destination";break;default:B=s;break}return(0,e.createComponentVNode)(2,t.Section,{title:d,children:[s===-1&&(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:[g,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Home",children:f}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:(0,e.createComponentVNode)(2,t.Button,{content:v?v+" (Set)":"None (Set)",onClick:function(){function S(){return i("target")}return S}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Load",children:(0,e.createComponentVNode)(2,t.Button,{content:h?h+" (Unload)":"None",disabled:!h,onClick:function(){function S(){return i("unload")}return S}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Pickup",children:(0,e.createComponentVNode)(2,t.Button,{content:V?"Yes":"No",selected:V,onClick:function(){function S(){return i("set_pickup_type",{autopick:V?0:1})}return S}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Return",children:(0,e.createComponentVNode)(2,t.Button,{content:N?"Yes":"No",selected:N,onClick:function(){function S(){return i("set_auto_return",{autoret:N?0:1})}return S}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function S(){return i("stop")}return S}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Proceed",icon:"play",onClick:function(){function S(){return i("start")}return S}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Return Home",icon:"home",onClick:function(){function S(){return i("home")}return S}()})]})]})]})}},23734:function(T,r,n){"use strict";r.__esModule=!0,r.pda_nanobank=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=r.pda_nanobank=function(){function l(d,s){var u=(0,t.useBackend)(s),h=u.act,g=u.data,v=g.logged_in,f=g.owner_name,N=g.money;return v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Name",children:f}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:["$",N]})]})}),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,y)]})],4):(0,e.createComponentVNode)(2,i)}return l}(),b=function(d,s){var u=(0,t.useBackend)(s),h=u.data,g=h.is_premium,v=(0,t.useLocalState)(s,"tabIndex",1),f=v[0],N=v[1];return(0,e.createComponentVNode)(2,o.Tabs,{mt:2,children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:f===1,onClick:function(){function V(){return N(1)}return V}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transfers"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:f===2,onClick:function(){function V(){return N(2)}return V}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Account Actions"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:f===3,onClick:function(){function V(){return N(3)}return V}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transaction History"]}),!!g&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:f===4,onClick:function(){function V(){return N(4)}return V}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Supply Orders"]})]})},y=function(d,s){var u=(0,t.useLocalState)(s,"tabIndex",1),h=u[0],g=(0,t.useBackend)(s),v=g.data,f=v.db_status;if(!f)return(0,e.createComponentVNode)(2,o.Box,{children:"Account Database Connection Severed"});switch(h){case 1:return(0,e.createComponentVNode)(2,I);case 2:return(0,e.createComponentVNode)(2,k);case 3:return(0,e.createComponentVNode)(2,C);case 4:return(0,e.createComponentVNode)(2,m);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},I=function(d,s){var u,h=(0,t.useBackend)(s),g=h.act,v=h.data,f=v.requests,N=v.available_accounts,V=v.money,B=(0,t.useLocalState)(s,"selectedAccount"),S=B[0],L=B[1],w=(0,t.useLocalState)(s,"transferAmount"),A=w[0],x=w[1],E=(0,t.useLocalState)(s,"searchText",""),P=E[0],D=E[1],M=[];return N.map(function(O){return M[O.name]=O.UID}),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account",children:[(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account name",onInput:function(){function O(R,j){return D(j)}return O}()}),(0,e.createComponentVNode)(2,o.Dropdown,{mt:.6,width:"190px",options:N.filter((0,a.createSearch)(P,function(O){return O.name})).map(function(O){return O.name}),selected:(u=N.filter(function(O){return O.UID===S})[0])==null?void 0:u.name,onSelected:function(){function O(R){return L(M[R])}return O}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Amount",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Up to 5000",onInput:function(){function O(R,j){return x(j)}return O}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button.Confirm,{bold:!0,icon:"paper-plane",width:"auto",disabled:V0&&u.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:["#",g.Number,' - "',g.Name,'" for "',g.OrderedBy,'"']},g)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Approved Orders",children:s>0&&d.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:["#",g.Number,' - "',g.Name,'" for "',g.ApprovedBy,'"']},g)})})]})}return p}()},17617:function(T,r,n){"use strict";r.__esModule=!0,r.Layout=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(24826),p=["className","theme","children"],b=["className","scrollable","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function y(C,i){if(C==null)return{};var c={};for(var m in C)if({}.hasOwnProperty.call(C,m)){if(i.includes(m))continue;c[m]=C[m]}return c}var I=r.Layout=function(){function C(i){var c=i.className,m=i.theme,u=m===void 0?"nanotrasen":m,d=i.children,s=y(i,p);return document.documentElement.className="theme-"+u,(0,e.createVNode)(1,"div","theme-"+u,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout",c].concat((0,t.computeBoxClassName)(s))),d,0,Object.assign({},(0,t.computeBoxProps)(s)))),2)}return C}(),k=function(i){var c=i.className,m=i.scrollable,u=i.children,d=y(i,b);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout__content",m&&"Layout__content--scrollable",c,(0,t.computeBoxClassName)(d)]),u,0,Object.assign({},(0,t.computeBoxProps)(d))))};k.defaultHooks={onComponentDidMount:function(){function C(i){return(0,o.addScrollableNode)(i)}return C}(),onComponentWillUnmount:function(){function C(i){return(0,o.removeScrollableNode)(i)}return C}()},I.Content=k},96945:function(x,r,n){"use strict";r.__esModule=!0,r.Pane=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),p=n(99851),b=n(17617),y=["theme","children","className"],I=["className","fitted","children"];/** + */function y(C,i){if(C==null)return{};var c={};for(var m in C)if({}.hasOwnProperty.call(C,m)){if(i.includes(m))continue;c[m]=C[m]}return c}var I=r.Layout=function(){function C(i){var c=i.className,m=i.theme,l=m===void 0?"nanotrasen":m,d=i.children,s=y(i,p);return document.documentElement.className="theme-"+l,(0,e.createVNode)(1,"div","theme-"+l,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout",c].concat((0,t.computeBoxClassName)(s))),d,0,Object.assign({},(0,t.computeBoxProps)(s)))),2)}return C}(),k=function(i){var c=i.className,m=i.scrollable,l=i.children,d=y(i,b);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout__content",m&&"Layout__content--scrollable",c,(0,t.computeBoxClassName)(d)]),l,0,Object.assign({},(0,t.computeBoxProps)(d))))};k.defaultHooks={onComponentDidMount:function(){function C(i){return(0,o.addScrollableNode)(i)}return C}(),onComponentWillUnmount:function(){function C(i){return(0,o.removeScrollableNode)(i)}return C}()},I.Content=k},96945:function(T,r,n){"use strict";r.__esModule=!0,r.Pane=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),p=n(99851),b=n(17617),y=["theme","children","className"],I=["className","fitted","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function k(c,m){if(c==null)return{};var u={};for(var d in c)if({}.hasOwnProperty.call(c,d)){if(m.includes(d))continue;u[d]=c[d]}return u}var C=r.Pane=function(){function c(m,u){var d=m.theme,s=m.children,l=m.className,h=k(m,y),N=(0,t.useBackend)(u),v=N.suspended,f=(0,p.useDebug)(u),g=f.debugLayout;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,b.Layout,Object.assign({className:(0,a.classes)(["Window",l]),theme:d},h,{children:(0,e.createComponentVNode)(2,o.Box,{fillPositionedParent:!0,className:g&&"debug-layout",children:!v&&s})})))}return c}(),i=function(m){var u=m.className,d=m.fitted,s=m.children,l=k(m,I);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,b.Layout.Content,Object.assign({className:(0,a.classes)(["Window__content",u])},l,{children:d&&s||(0,e.createVNode)(1,"div","Window__contentPadding",s,0)})))};C.Content=i},34827:function(x,r,n){"use strict";r.__esModule=!0,r.Window=void 0;var e=n(89005),a=n(35840),t=n(85307),o=n(25328),p=n(72253),b=n(36036),y=n(76910),I=n(99851),k=n(77384),C=n(35421),i=n(9394),c=n(17617),m=["className","fitted","children"];function u(V,B){if(V==null)return{};var S={};for(var L in V)if({}.hasOwnProperty.call(V,L)){if(B.includes(L))continue;S[L]=V[L]}return S}function d(V,B){V.prototype=Object.create(B.prototype),V.prototype.constructor=V,s(V,B)}function s(V,B){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(S,L){return S.__proto__=L,S},s(V,B)}/** + */function k(c,m){if(c==null)return{};var l={};for(var d in c)if({}.hasOwnProperty.call(c,d)){if(m.includes(d))continue;l[d]=c[d]}return l}var C=r.Pane=function(){function c(m,l){var d=m.theme,s=m.children,u=m.className,h=k(m,y),g=(0,t.useBackend)(l),v=g.suspended,f=(0,p.useDebug)(l),N=f.debugLayout;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,b.Layout,Object.assign({className:(0,a.classes)(["Window",u]),theme:d},h,{children:(0,e.createComponentVNode)(2,o.Box,{fillPositionedParent:!0,className:N&&"debug-layout",children:!v&&s})})))}return c}(),i=function(m){var l=m.className,d=m.fitted,s=m.children,u=k(m,I);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,b.Layout.Content,Object.assign({className:(0,a.classes)(["Window__content",l])},u,{children:d&&s||(0,e.createVNode)(1,"div","Window__contentPadding",s,0)})))};C.Content=i},34827:function(T,r,n){"use strict";r.__esModule=!0,r.Window=void 0;var e=n(89005),a=n(35840),t=n(85307),o=n(25328),p=n(72253),b=n(36036),y=n(76910),I=n(99851),k=n(77384),C=n(35421),i=n(9394),c=n(17617),m=["className","fitted","children"];function l(V,B){if(V==null)return{};var S={};for(var L in V)if({}.hasOwnProperty.call(V,L)){if(B.includes(L))continue;S[L]=V[L]}return S}function d(V,B){V.prototype=Object.create(B.prototype),V.prototype.constructor=V,s(V,B)}function s(V,B){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(S,L){return S.__proto__=L,S},s(V,B)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var l=(0,i.createLogger)("Window"),h=[400,600],N=r.Window=function(V){function B(){return V.apply(this,arguments)||this}d(B,V);var S=B.prototype;return S.componentDidMount=function(){function L(){var w=(0,p.useBackend)(this.context),A=w.suspended;A||(l.log("mounting"),this.updateGeometry())}return L}(),S.componentDidUpdate=function(){function L(w){var A=this.props.width!==w.width||this.props.height!==w.height;A&&this.updateGeometry()}return L}(),S.updateGeometry=function(){function L(){var w,A=(0,p.useBackend)(this.context),T=A.config,E=Object.assign({size:h},T.window);this.props.width&&this.props.height&&(E.size=[this.props.width,this.props.height]),(w=T.window)!=null&&w.key&&(0,C.setWindowKey)(T.window.key),(0,C.recallWindowGeometry)(E)}return L}(),S.render=function(){function L(){var w,A=this.props,T=A.theme,E=A.title,P=A.children,D=(0,p.useBackend)(this.context),M=D.config,O=D.suspended,R=(0,I.useDebug)(this.context),j=R.debugLayout,_=(0,t.useDispatch)(this.context),W=(w=M.window)==null?void 0:w.fancy,z=M.user&&(M.user.observer?M.status2?m-2:0),d=2;d=o){var s=[c].concat(u).map(function(l){return typeof l=="string"?l:l instanceof Error?l.stack||String(l):JSON.stringify(l)}).filter(function(l){return l}).join(" ")+"\nUser Agent: "+navigator.userAgent;Byond.sendMessage({type:"log",message:s})}},I=r.createLogger=function(){function C(i){return{debug:function(){function c(){for(var m=arguments.length,u=new Array(m),d=0;d2?m-2:0),d=2;d=o){var s=[c].concat(l).map(function(u){return typeof u=="string"?u:u instanceof Error?u.stack||String(u):JSON.stringify(u)}).filter(function(u){return u}).join(" ")+"\nUser Agent: "+navigator.userAgent;Byond.sendMessage({type:"log",message:s})}},I=r.createLogger=function(){function C(i){return{debug:function(){function c(){for(var m=arguments.length,l=new Array(m),d=0;d0;){var f=N.shift(),g=f(h);try{v=b(g)}catch(B){if(B.code!=="MODULE_NOT_FOUND")throw B}}if(!v)return y("notFound",h);var V=v[h];return V||y("missingExport",h)}return i}()},72178:function(x,r,n){"use strict";r.__esModule=!0,r.configureStore=r.StoreProvider=void 0;var e=n(64795),a=n(85307),t=n(89005),o=n(79140),p=n(72253),b=n(99851),y=n(9394);function I(d,s){d.prototype=Object.create(s.prototype),d.prototype.constructor=d,k(d,s)}function k(d,s){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,h){return l.__proto__=h,l},k(d,s)}/** + */var b=n(32054),y=function(c,m){return function(){return(0,e.createComponentVNode)(2,p.Window,{children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:[c==="notFound"&&(0,e.createVNode)(1,"div",null,[(0,e.createTextVNode)("Interface "),(0,e.createVNode)(1,"b",null,m,0),(0,e.createTextVNode)(" was not found.")],4),c==="missingExport"&&(0,e.createVNode)(1,"div",null,[(0,e.createTextVNode)("Interface "),(0,e.createVNode)(1,"b",null,m,0),(0,e.createTextVNode)(" is missing an export.")],4)]})})}},I=function(){return(0,e.createComponentVNode)(2,p.Window,{children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0})})},k=function(){return(0,e.createComponentVNode)(2,p.Window,{height:130,title:"Loading",width:150,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{align:"center",fill:!0,justify:"center",vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Icon,{color:"blue",name:"toolbox",spin:!0,size:4})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:"Please wait..."})]})})})},C=r.getRoutedComponent=function(){function i(c){var m=c.getState(),l=(0,a.selectBackend)(m),d=l.suspended,s=l.config;if(d)return I;if(s.refreshing)return k;if(0)var u;for(var h=s==null?void 0:s.interface,g=[function(B){return"./"+B+".tsx"},function(B){return"./"+B+".js"},function(B){return"./"+B+"/index.tsx"},function(B){return"./"+B+"/index.js"}],v;!v&&g.length>0;){var f=g.shift(),N=f(h);try{v=b(N)}catch(B){if(B.code!=="MODULE_NOT_FOUND")throw B}}if(!v)return y("notFound",h);var V=v[h];return V||y("missingExport",h)}return i}()},72178:function(T,r,n){"use strict";r.__esModule=!0,r.configureStore=r.StoreProvider=void 0;var e=n(64795),a=n(85307),t=n(89005),o=n(79140),p=n(72253),b=n(99851),y=n(9394);function I(d,s){d.prototype=Object.create(s.prototype),d.prototype.constructor=d,k(d,s)}function k(d,s){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,h){return u.__proto__=h,u},k(d,s)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var C=(0,y.createLogger)("store"),i=r.configureStore=function(){function d(s){var l,h;s===void 0&&(s={});var N=s,v=N.sideEffects,f=v===void 0?!0:v,g=(0,e.flow)([(0,a.combineReducers)({debug:b.debugReducer,backend:p.backendReducer}),s.reducer]),V=f?[].concat(((l=s.middleware)==null?void 0:l.pre)||[],[o.assetMiddleware,p.backendMiddleware],((h=s.middleware)==null?void 0:h.post)||[]):[],B=a.applyMiddleware.apply(void 0,V),S=(0,a.createStore)(g,B);return window.__store__=S,window.__augmentStack__=m(S),S}return d}(),c=function(s){return function(l){return function(h){var N=h.type,v=h.payload;return N==="update"||N==="backend/update"?C.debug("action",{type:N}):C.debug("action",h),l(h)}}},m=function(s){return function(l,h){var N,v;h?typeof h=="object"&&!h.stack&&(h.stack=l):(h=new Error(l.split("\n")[0]),h.stack=l),C.log("FatalError:",h);var f=s.getState(),g=f==null||(N=f.backend)==null?void 0:N.config,V=l;return V+="\nUser Agent: "+navigator.userAgent,V+="\nState: "+JSON.stringify({ckey:g==null||(v=g.client)==null?void 0:v.ckey,interface:g==null?void 0:g.interface,window:g==null?void 0:g.window}),V}},u=r.StoreProvider=function(d){function s(){return d.apply(this,arguments)||this}I(s,d);var l=s.prototype;return l.getChildContext=function(){function h(){var N=this.props.store;return{store:N}}return h}(),l.render=function(){function h(){return this.props.children}return h}(),s}(t.Component)},51364:function(x,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036);/** +*/var C=(0,y.createLogger)("store"),i=r.configureStore=function(){function d(s){var u,h;s===void 0&&(s={});var g=s,v=g.sideEffects,f=v===void 0?!0:v,N=(0,e.flow)([(0,a.combineReducers)({debug:b.debugReducer,backend:p.backendReducer}),s.reducer]),V=f?[].concat(((u=s.middleware)==null?void 0:u.pre)||[],[o.assetMiddleware,p.backendMiddleware],((h=s.middleware)==null?void 0:h.post)||[]):[],B=a.applyMiddleware.apply(void 0,V),S=(0,a.createStore)(N,B);return window.__store__=S,window.__augmentStack__=m(S),S}return d}(),c=function(s){return function(u){return function(h){var g=h.type,v=h.payload;return g==="update"||g==="backend/update"?C.debug("action",{type:g}):C.debug("action",h),u(h)}}},m=function(s){return function(u,h){var g,v;h?typeof h=="object"&&!h.stack&&(h.stack=u):(h=new Error(u.split("\n")[0]),h.stack=u),C.log("FatalError:",h);var f=s.getState(),N=f==null||(g=f.backend)==null?void 0:g.config,V=u;return V+="\nUser Agent: "+navigator.userAgent,V+="\nState: "+JSON.stringify({ckey:N==null||(v=N.client)==null?void 0:v.ckey,interface:N==null?void 0:N.interface,window:N==null?void 0:N.window}),V}},l=r.StoreProvider=function(d){function s(){return d.apply(this,arguments)||this}I(s,d);var u=s.prototype;return u.getChildContext=function(){function h(){var g=this.props.store;return{store:g}}return h}(),u.render=function(){function h(){return this.props.children}return h}(),s}(t.Component)},51364:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t=r.meta={title:"Blink",render:function(){function p(){return(0,e.createComponentVNode)(2,o)}return p}()},o=function(b,y){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.Blink,{children:"Blink"})})}},32453:function(x,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036),t=n(37168);/** + */var t=r.meta={title:"Blink",render:function(){function p(){return(0,e.createComponentVNode)(2,o)}return p}()},o=function(b,y){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.Blink,{children:"Blink"})})}},32453:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036),t=n(37168);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"BlockQuote",render:function(){function b(){return(0,e.createComponentVNode)(2,p)}return b}()},p=function(y,I){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.BlockQuote,{children:(0,e.createComponentVNode)(2,t.BoxWithSampleText)})})}},83531:function(x,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036);/** + */var o=r.meta={title:"BlockQuote",render:function(){function b(){return(0,e.createComponentVNode)(2,p)}return b}()},p=function(y,I){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.BlockQuote,{children:(0,e.createComponentVNode)(2,t.BoxWithSampleText)})})}},83531:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t=r.meta={title:"Box",render:function(){function p(){return(0,e.createComponentVNode)(2,o)}return p}()},o=function(b,y){return(0,e.createComponentVNode)(2,a.Section,{children:[(0,e.createComponentVNode)(2,a.Box,{bold:!0,children:"bold"}),(0,e.createComponentVNode)(2,a.Box,{italic:!0,children:"italic"}),(0,e.createComponentVNode)(2,a.Box,{opacity:.5,children:"opacity 0.5"}),(0,e.createComponentVNode)(2,a.Box,{opacity:.25,children:"opacity 0.25"}),(0,e.createComponentVNode)(2,a.Box,{m:2,children:"m: 2"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"left",children:"left"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"center",children:"center"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"right",children:"right"})]})}},74198:function(x,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** + */var t=r.meta={title:"Box",render:function(){function p(){return(0,e.createComponentVNode)(2,o)}return p}()},o=function(b,y){return(0,e.createComponentVNode)(2,a.Section,{children:[(0,e.createComponentVNode)(2,a.Box,{bold:!0,children:"bold"}),(0,e.createComponentVNode)(2,a.Box,{italic:!0,children:"italic"}),(0,e.createComponentVNode)(2,a.Box,{opacity:.5,children:"opacity 0.5"}),(0,e.createComponentVNode)(2,a.Box,{opacity:.25,children:"opacity 0.25"}),(0,e.createComponentVNode)(2,a.Box,{m:2,children:"m: 2"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"left",children:"left"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"center",children:"center"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"right",children:"right"})]})}},74198:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Button",render:function(){function I(){return(0,e.createComponentVNode)(2,y)}return I}()},p=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","gold"],b=["good","average","bad","black","white"],y=function(k,C){var i=(0,a.useLocalState)(C,"translucent",!1),c=i[0],m=i[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{mb:1,children:[(0,e.createComponentVNode)(2,t.Button,{content:"Simple"}),(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Selected"}),(0,e.createComponentVNode)(2,t.Button,{altSelected:!0,content:"Alt Selected"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!0,content:"Disabled"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",content:"Transparent"}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Icon"}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Fluid"}),(0,e.createComponentVNode)(2,t.Button,{my:1,lineHeight:2,minWidth:15,textAlign:"center",content:"With Box props"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Color States",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:c,onClick:function(){function u(){return m(!c)}return u}(),content:"Translucent"}),children:b.map(function(u){return(0,e.createComponentVNode)(2,t.Button,{translucent:c,color:u,content:u},u)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Available Colors",children:p.map(function(u){return(0,e.createComponentVNode)(2,t.Button,{translucent:c,color:u,content:u},u)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Text Colors",children:p.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:"7px",color:u,children:u},u)})})],4)}},51956:function(x,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(9394);/** + */var o=r.meta={title:"Button",render:function(){function I(){return(0,e.createComponentVNode)(2,y)}return I}()},p=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","gold"],b=["good","average","bad","black","white"],y=function(k,C){var i=(0,a.useLocalState)(C,"translucent",!1),c=i[0],m=i[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{mb:1,children:[(0,e.createComponentVNode)(2,t.Button,{content:"Simple"}),(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Selected"}),(0,e.createComponentVNode)(2,t.Button,{altSelected:!0,content:"Alt Selected"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!0,content:"Disabled"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",content:"Transparent"}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Icon"}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Fluid"}),(0,e.createComponentVNode)(2,t.Button,{my:1,lineHeight:2,minWidth:15,textAlign:"center",content:"With Box props"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Color States",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:c,onClick:function(){function l(){return m(!c)}return l}(),content:"Translucent"}),children:b.map(function(l){return(0,e.createComponentVNode)(2,t.Button,{translucent:c,color:l,content:l},l)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Available Colors",children:p.map(function(l){return(0,e.createComponentVNode)(2,t.Button,{translucent:c,color:l,content:l},l)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Text Colors",children:p.map(function(l){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:"7px",color:l,children:l},l)})})],4)}},51956:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(9394);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var p=r.meta={title:"ByondUi",render:function(){function y(){return(0,e.createComponentVNode)(2,b)}return y}()},b=function(I,k){var C=(0,a.useLocalState)(k,"byondUiEvalCode","Byond.winset('"+Byond.windowId+"', {\n 'is-visible': true,\n})"),i=C[0],c=C[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Button",children:(0,e.createComponentVNode)(2,t.ByondUi,{params:{type:"button",text:"Button"}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Make BYOND calls",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function m(){return setTimeout(function(){try{var u=new Function("return ("+i+")")();u&&u.then?(o.logger.log("Promise"),u.then(o.logger.log)):o.logger.log(u)}catch(d){o.logger.log(d)}})}return m}(),children:"Evaluate"}),children:(0,e.createComponentVNode)(2,t.Box,{as:"textarea",width:"100%",height:"10em",onChange:function(){function m(u){return c(u.target.value)}return m}(),children:i})})],4)}},17466:function(x,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036),t=n(37168);/** + */var p=r.meta={title:"ByondUi",render:function(){function y(){return(0,e.createComponentVNode)(2,b)}return y}()},b=function(I,k){var C=(0,a.useLocalState)(k,"byondUiEvalCode","Byond.winset('"+Byond.windowId+"', {\n 'is-visible': true,\n})"),i=C[0],c=C[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Button",children:(0,e.createComponentVNode)(2,t.ByondUi,{params:{type:"button",text:"Button"}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Make BYOND calls",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function m(){return setTimeout(function(){try{var l=new Function("return ("+i+")")();l&&l.then?(o.logger.log("Promise"),l.then(o.logger.log)):o.logger.log(l)}catch(d){o.logger.log(d)}})}return m}(),children:"Evaluate"}),children:(0,e.createComponentVNode)(2,t.Box,{as:"textarea",width:"100%",height:"10em",onChange:function(){function m(l){return c(l.target.value)}return m}(),children:i})})],4)}},17466:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036),t=n(37168);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Collapsible",render:function(){function b(){return(0,e.createComponentVNode)(2,p)}return b}()},p=function(y,I){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.Collapsible,{title:"Collapsible Demo",buttons:(0,e.createComponentVNode)(2,a.Button,{icon:"cog"}),children:(0,e.createComponentVNode)(2,t.BoxWithSampleText)})})}},89241:function(x,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** + */var o=r.meta={title:"Collapsible",render:function(){function b(){return(0,e.createComponentVNode)(2,p)}return b}()},p=function(y,I){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.Collapsible,{title:"Collapsible Demo",buttons:(0,e.createComponentVNode)(2,a.Button,{icon:"cog"}),children:(0,e.createComponentVNode)(2,t.BoxWithSampleText)})})}},89241:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Flex & Sections",render:function(){function b(){return(0,e.createComponentVNode)(2,p)}return b}()},p=function(y,I){var k=(0,a.useLocalState)(I,"fs_grow",1),C=k[0],i=k[1],c=(0,a.useLocalState)(I,"fs_direction","column"),m=c[0],u=c[1],d=(0,a.useLocalState)(I,"fs_fill",!0),s=d[0],l=d[1],h=(0,a.useLocalState)(I,"fs_title",!0),N=h[0],v=h[1];return(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:"column",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function f(){return u(m==="column"?"row":"column")}return f}(),children:'Flex direction="'+m+'"'}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function f(){return i(+!C)}return f}(),children:"Flex.Item grow={"+C+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function f(){return l(!s)}return f}(),children:"Section fill={"+String(s)+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,selected:N,onClick:function(){function f(){return v(!N)}return f}(),children:"Section title"})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:m,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mr:m==="row"&&1,mb:m==="column"&&1,grow:C,children:(0,e.createComponentVNode)(2,t.Section,{title:N&&"Section 1",fill:s,children:"Content"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:C,children:(0,e.createComponentVNode)(2,t.Section,{title:N&&"Section 2",fill:s,children:"Content"})})]})})]})}},48779:function(x,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** + */var o=r.meta={title:"Flex & Sections",render:function(){function b(){return(0,e.createComponentVNode)(2,p)}return b}()},p=function(y,I){var k=(0,a.useLocalState)(I,"fs_grow",1),C=k[0],i=k[1],c=(0,a.useLocalState)(I,"fs_direction","column"),m=c[0],l=c[1],d=(0,a.useLocalState)(I,"fs_fill",!0),s=d[0],u=d[1],h=(0,a.useLocalState)(I,"fs_title",!0),g=h[0],v=h[1];return(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:"column",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function f(){return l(m==="column"?"row":"column")}return f}(),children:'Flex direction="'+m+'"'}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function f(){return i(+!C)}return f}(),children:"Flex.Item grow={"+C+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function f(){return u(!s)}return f}(),children:"Section fill={"+String(s)+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,selected:g,onClick:function(){function f(){return v(!g)}return f}(),children:"Section title"})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:m,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mr:m==="row"&&1,mb:m==="column"&&1,grow:C,children:(0,e.createComponentVNode)(2,t.Section,{title:g&&"Section 1",fill:s,children:"Content"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:C,children:(0,e.createComponentVNode)(2,t.Section,{title:g&&"Section 2",fill:s,children:"Content"})})]})})]})}},48779:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** * @file * @copyright 2024 Aylong (https://github.com/AyIong) * @license MIT - */var o=r.meta={title:"ImageButton",render:function(){function I(){return(0,e.createComponentVNode)(2,y)}return I}()},p=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","gold"],b=["good","average","bad","black","white"],y=function(k,C){var i=(0,a.useLocalState)(C,"fluid1",!0),c=i[0],m=i[1],u=(0,a.useLocalState)(C,"fluid2",!1),d=u[0],s=u[1],l=(0,a.useLocalState)(C,"fluid3",!1),h=l[0],N=l[1],v=(0,a.useLocalState)(C,"disabled",!1),f=v[0],g=v[1],V=(0,a.useLocalState)(C,"selected",!1),B=V[0],S=V[1],L=(0,a.useLocalState)(C,"addImage",!1),w=L[0],A=L[1],T=(0,a.useLocalState)(C,"base64",""),E=T[0],P=T[1],D=(0,a.useLocalState)(C,"title","Image Button"),M=D[0],O=D[1],R=(0,a.useLocalState)(C,"content","You can put anything in there"),j=R[0],_=R[1],W=(0,a.useLocalState)(C,"imageSize",64),z=W[0],K=W[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:w?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"base64",children:(0,e.createComponentVNode)(2,t.Input,{value:E,onInput:function(){function G(Q,J){return P(J)}return G}()})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Input,{value:M,onInput:function(){function G(Q,J){return O(J)}return G}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Content",children:(0,e.createComponentVNode)(2,t.Input,{value:j,onInput:function(){function G(Q,J){return _(J)}return G}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Image Size",children:(0,e.createComponentVNode)(2,t.Slider,{width:10,value:z,minValue:0,maxValue:256,step:1,onChange:function(){function G(Q,J){return K(J)}return G}()})})],4)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:c,onClick:function(){function G(){return m(!c)}return G}(),children:"Fluid"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:f,onClick:function(){function G(){return g(!f)}return G}(),children:"Disabled"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:B,onClick:function(){function G(){return S(!B)}return G}(),children:"Selected"})})]})})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.ImageButton,{m:!c&&0,fluid:c,base64:E,imageSize:z,title:M,tooltip:!c&&j,disabled:f,selected:B,buttonsAlt:c,buttons:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:c,compact:!c,color:!c&&"transparent",selected:w,onClick:function(){function G(){return A(!w)}return G}(),children:"Add Image"}),children:j})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Color States",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:d,onClick:function(){function G(){return s(!d)}return G}(),children:"Fluid"}),children:b.map(function(G){return(0,e.createComponentVNode)(2,t.ImageButton,{fluid:d,color:G,imageSize:d?24:48,children:G},G)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Available Colors",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:h,onClick:function(){function G(){return N(!h)}return G}(),children:"Fluid"}),children:p.map(function(G){return(0,e.createComponentVNode)(2,t.ImageButton,{fluid:h,color:G,imageSize:h?24:48,children:G},G)})})],4)}},21394:function(x,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** + */var o=r.meta={title:"ImageButton",render:function(){function I(){return(0,e.createComponentVNode)(2,y)}return I}()},p=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","gold"],b=["good","average","bad","black","white"],y=function(k,C){var i=(0,a.useLocalState)(C,"fluid1",!0),c=i[0],m=i[1],l=(0,a.useLocalState)(C,"fluid2",!1),d=l[0],s=l[1],u=(0,a.useLocalState)(C,"fluid3",!1),h=u[0],g=u[1],v=(0,a.useLocalState)(C,"disabled",!1),f=v[0],N=v[1],V=(0,a.useLocalState)(C,"selected",!1),B=V[0],S=V[1],L=(0,a.useLocalState)(C,"addImage",!1),w=L[0],A=L[1],x=(0,a.useLocalState)(C,"base64",""),E=x[0],P=x[1],D=(0,a.useLocalState)(C,"title","Image Button"),M=D[0],O=D[1],R=(0,a.useLocalState)(C,"content","You can put anything in there"),j=R[0],_=R[1],W=(0,a.useLocalState)(C,"imageSize",64),z=W[0],K=W[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:w?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"base64",children:(0,e.createComponentVNode)(2,t.Input,{value:E,onInput:function(){function G(Q,J){return P(J)}return G}()})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Input,{value:M,onInput:function(){function G(Q,J){return O(J)}return G}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Content",children:(0,e.createComponentVNode)(2,t.Input,{value:j,onInput:function(){function G(Q,J){return _(J)}return G}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Image Size",children:(0,e.createComponentVNode)(2,t.Slider,{width:10,value:z,minValue:0,maxValue:256,step:1,onChange:function(){function G(Q,J){return K(J)}return G}()})})],4)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:c,onClick:function(){function G(){return m(!c)}return G}(),children:"Fluid"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:f,onClick:function(){function G(){return N(!f)}return G}(),children:"Disabled"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:B,onClick:function(){function G(){return S(!B)}return G}(),children:"Selected"})})]})})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.ImageButton,{m:!c&&0,fluid:c,base64:E,imageSize:z,title:M,tooltip:!c&&j,disabled:f,selected:B,buttonsAlt:c,buttons:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,translucent:c,compact:!c,color:!c&&"transparent",selected:w,onClick:function(){function G(){return A(!w)}return G}(),children:"Add Image"}),children:j})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Color States",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:d,onClick:function(){function G(){return s(!d)}return G}(),children:"Fluid"}),children:b.map(function(G){return(0,e.createComponentVNode)(2,t.ImageButton,{fluid:d,color:G,imageSize:d?24:48,children:G},G)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Available Colors",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:h,onClick:function(){function G(){return g(!h)}return G}(),children:"Fluid"}),children:p.map(function(G){return(0,e.createComponentVNode)(2,t.ImageButton,{fluid:h,color:G,imageSize:h?24:48,children:G},G)})})],4)}},21394:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Input",render:function(){function b(){return(0,e.createComponentVNode)(2,p)}return b}()},p=function(y,I){var k=(0,a.useLocalState)(I,"number",0),C=k[0],i=k[1],c=(0,a.useLocalState)(I,"text","Sample text"),m=c[0],u=c[1];return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onChange)",children:(0,e.createComponentVNode)(2,t.Input,{value:m,onChange:function(){function d(s,l){return u(l)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onInput)",children:(0,e.createComponentVNode)(2,t.Input,{value:m,onInput:function(){function d(s,l){return u(l)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onChange)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:C,minValue:-100,maxValue:100,onChange:function(){function d(s,l){return i(l)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onDrag)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:C,minValue:-100,maxValue:100,onDrag:function(){function d(s,l){return i(l)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slider (onDrag)",children:(0,e.createComponentVNode)(2,t.Slider,{step:1,stepPixelSize:5,value:C,minValue:-100,maxValue:100,onDrag:function(){function d(s,l){return i(l)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Knob (onDrag)",children:[(0,e.createComponentVNode)(2,t.Knob,{inline:!0,size:1,step:1,stepPixelSize:2,value:C,minValue:-100,maxValue:100,onDrag:function(){function d(s,l){return i(l)}return d}()}),(0,e.createComponentVNode)(2,t.Knob,{ml:1,inline:!0,bipolar:!0,size:1,step:1,stepPixelSize:2,value:C,minValue:-100,maxValue:100,onDrag:function(){function d(s,l){return i(l)}return d}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rotating Icon",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",children:(0,e.createComponentVNode)(2,t.DraggableControl,{value:C,minValue:-100,maxValue:100,dragMatrix:[0,-1],step:1,stepPixelSize:5,onDrag:function(){function d(s,l){return i(l)}return d}(),children:function(){function d(s){return(0,e.createComponentVNode)(2,t.Box,{onMouseDown:s.handleDragStart,children:[(0,e.createComponentVNode)(2,t.Icon,{size:4,color:"yellow",name:"times",rotation:s.displayValue*4}),s.inputElement]})}return d}()})})})]})})}},43932:function(x,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036),t=r.meta={title:"Popper",render:function(){function p(){return(0,e.createComponentVNode)(2,o)}return p}()},o=function(){return(0,e.createFragment)([(0,e.createComponentVNode)(2,a.Popper,{popperContent:(0,e.createComponentVNode)(2,a.Box,{style:{background:"white",border:"2px solid blue"},children:"Loogatme!"}),options:{placement:"bottom"},children:(0,e.createComponentVNode)(2,a.Box,{style:{border:"5px solid white",height:"300px",width:"200px"}})}),(0,e.createComponentVNode)(2,a.Popper,{popperContent:(0,e.createComponentVNode)(2,a.Box,{style:{background:"white",border:"2px solid blue"},children:"I am on the right!"}),options:{placement:"right"},children:(0,e.createComponentVNode)(2,a.Box,{style:{border:"5px solid white",height:"500px",width:"100px"}})})],4)}},33270:function(x,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** + */var o=r.meta={title:"Input",render:function(){function b(){return(0,e.createComponentVNode)(2,p)}return b}()},p=function(y,I){var k=(0,a.useLocalState)(I,"number",0),C=k[0],i=k[1],c=(0,a.useLocalState)(I,"text","Sample text"),m=c[0],l=c[1];return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onChange)",children:(0,e.createComponentVNode)(2,t.Input,{value:m,onChange:function(){function d(s,u){return l(u)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onInput)",children:(0,e.createComponentVNode)(2,t.Input,{value:m,onInput:function(){function d(s,u){return l(u)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onChange)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:C,minValue:-100,maxValue:100,onChange:function(){function d(s,u){return i(u)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onDrag)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:C,minValue:-100,maxValue:100,onDrag:function(){function d(s,u){return i(u)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slider (onDrag)",children:(0,e.createComponentVNode)(2,t.Slider,{step:1,stepPixelSize:5,value:C,minValue:-100,maxValue:100,onDrag:function(){function d(s,u){return i(u)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Knob (onDrag)",children:[(0,e.createComponentVNode)(2,t.Knob,{inline:!0,size:1,step:1,stepPixelSize:2,value:C,minValue:-100,maxValue:100,onDrag:function(){function d(s,u){return i(u)}return d}()}),(0,e.createComponentVNode)(2,t.Knob,{ml:1,inline:!0,bipolar:!0,size:1,step:1,stepPixelSize:2,value:C,minValue:-100,maxValue:100,onDrag:function(){function d(s,u){return i(u)}return d}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rotating Icon",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",children:(0,e.createComponentVNode)(2,t.DraggableControl,{value:C,minValue:-100,maxValue:100,dragMatrix:[0,-1],step:1,stepPixelSize:5,onDrag:function(){function d(s,u){return i(u)}return d}(),children:function(){function d(s){return(0,e.createComponentVNode)(2,t.Box,{onMouseDown:s.handleDragStart,children:[(0,e.createComponentVNode)(2,t.Icon,{size:4,color:"yellow",name:"times",rotation:s.displayValue*4}),s.inputElement]})}return d}()})})})]})})}},43932:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036),t=r.meta={title:"Popper",render:function(){function p(){return(0,e.createComponentVNode)(2,o)}return p}()},o=function(){return(0,e.createFragment)([(0,e.createComponentVNode)(2,a.Popper,{popperContent:(0,e.createComponentVNode)(2,a.Box,{style:{background:"white",border:"2px solid blue"},children:"Loogatme!"}),options:{placement:"bottom"},children:(0,e.createComponentVNode)(2,a.Box,{style:{border:"5px solid white",height:"300px",width:"200px"}})}),(0,e.createComponentVNode)(2,a.Popper,{popperContent:(0,e.createComponentVNode)(2,a.Box,{style:{background:"white",border:"2px solid blue"},children:"I am on the right!"}),options:{placement:"right"},children:(0,e.createComponentVNode)(2,a.Box,{style:{border:"5px solid white",height:"500px",width:"100px"}})})],4)}},33270:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"ProgressBar",render:function(){function b(){return(0,e.createComponentVNode)(2,p)}return b}()},p=function(y,I){var k=(0,a.useLocalState)(I,"progress",.5),C=k[0],i=k[1];return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.5,1/0],bad:[-1/0,.1],average:[0,.5]},minValue:-1,maxValue:1,value:C,children:["Value: ",Number(C).toFixed(1)]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{content:"-0.1",onClick:function(){function c(){return i(C-.1)}return c}()}),(0,e.createComponentVNode)(2,t.Button,{content:"+0.1",onClick:function(){function c(){return i(C+.1)}return c}()})]})]})}},77766:function(x,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036);/** + */var o=r.meta={title:"ProgressBar",render:function(){function b(){return(0,e.createComponentVNode)(2,p)}return b}()},p=function(y,I){var k=(0,a.useLocalState)(I,"progress",.5),C=k[0],i=k[1];return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.5,1/0],bad:[-1/0,.1],average:[0,.5]},minValue:-1,maxValue:1,value:C,children:["Value: ",Number(C).toFixed(1)]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{content:"-0.1",onClick:function(){function c(){return i(C-.1)}return c}()}),(0,e.createComponentVNode)(2,t.Button,{content:"+0.1",onClick:function(){function c(){return i(C+.1)}return c}()})]})]})}},77766:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t=r.meta={title:"Stack",render:function(){function y(){return(0,e.createComponentVNode)(2,b)}return y}()},o=function(){return(0,e.createComponentVNode)(2,a.Box,{inline:!0,width:1,height:1,children:"A"})},p=function(){return(0,e.createFragment)([(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,o)}),(0,e.createComponentVNode)(2,a.Stack.Divider),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,o)})],4)},b=function(I,k){return(0,e.createComponentVNode)(2,a.Section,{fill:!0,children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,className:"debug-layout",children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,zebra:!0,children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,p)]})}),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,p)]})})]})})}},30187:function(x,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(27108),t=n(36036),o=n(49968);/** + */var t=r.meta={title:"Stack",render:function(){function y(){return(0,e.createComponentVNode)(2,b)}return y}()},o=function(){return(0,e.createComponentVNode)(2,a.Box,{inline:!0,width:1,height:1,children:"A"})},p=function(){return(0,e.createFragment)([(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,o)}),(0,e.createComponentVNode)(2,a.Stack.Divider),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,o)})],4)},b=function(I,k){return(0,e.createComponentVNode)(2,a.Section,{fill:!0,children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,className:"debug-layout",children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,zebra:!0,children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,p)]})}),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,p)]})})]})})}},30187:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(27108),t=n(36036),o=n(49968);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var p=r.meta={title:"Storage",render:function(){function y(){return(0,e.createComponentVNode)(2,b)}return y}()},b=function(I,k){return window.localStorage?(0,e.createComponentVNode)(2,t.Section,{title:"Local Storage",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"recycle",onClick:function(){function C(){localStorage.clear(),a.storage.clear()}return C}(),children:"Clear"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Keys in use",children:localStorage.length}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remaining space",children:(0,o.formatSiUnit)(localStorage.remainingSpace,0,"B")})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Local storage is not available."})}},46554:function(x,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** + */var p=r.meta={title:"Storage",render:function(){function y(){return(0,e.createComponentVNode)(2,b)}return y}()},b=function(I,k){return window.localStorage?(0,e.createComponentVNode)(2,t.Section,{title:"Local Storage",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"recycle",onClick:function(){function C(){localStorage.clear(),a.storage.clear()}return C}(),children:"Clear"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Keys in use",children:localStorage.length}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remaining space",children:(0,o.formatSiUnit)(localStorage.remainingSpace,0,"B")})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Local storage is not available."})}},46554:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Tabs",render:function(){function y(){return(0,e.createComponentVNode)(2,b)}return y}()},p=["Tab #1","Tab #2","Tab #3","Tab #4"],b=function(I,k){var C=(0,a.useLocalState)(k,"tabIndex",0),i=C[0],c=C[1],m=(0,a.useLocalState)(k,"tabProps",{}),u=m[0],d=m[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"vertical",checked:u.vertical,onClick:function(){function s(){return d(Object.assign({},u,{vertical:!u.vertical}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"leftSlot",checked:u.leftSlot,onClick:function(){function s(){return d(Object.assign({},u,{leftSlot:!u.leftSlot}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"rightSlot",checked:u.rightSlot,onClick:function(){function s(){return d(Object.assign({},u,{rightSlot:!u.rightSlot}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"icon",checked:u.icon,onClick:function(){function s(){return d(Object.assign({},u,{icon:!u.icon}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"fluid",checked:u.fluid,onClick:function(){function s(){return d(Object.assign({},u,{fluid:!u.fluid}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"left aligned",checked:u.leftAligned,onClick:function(){function s(){return d(Object.assign({},u,{leftAligned:!u.leftAligned}))}return s}()})]}),(0,e.createComponentVNode)(2,t.Section,{fitted:!0,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:u.vertical,fluid:u.fluid,textAlign:u.leftAligned&&"left",children:p.map(function(s,l){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:l===i,icon:u.icon&&"info-circle",leftSlot:u.leftSlot&&(0,e.createComponentVNode)(2,t.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),rightSlot:u.rightSlot&&(0,e.createComponentVNode)(2,t.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),onClick:function(){function h(){return c(l)}return h}(),children:s},l)})})})],4)}},53276:function(x,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** + */var o=r.meta={title:"Tabs",render:function(){function y(){return(0,e.createComponentVNode)(2,b)}return y}()},p=["Tab #1","Tab #2","Tab #3","Tab #4"],b=function(I,k){var C=(0,a.useLocalState)(k,"tabIndex",0),i=C[0],c=C[1],m=(0,a.useLocalState)(k,"tabProps",{}),l=m[0],d=m[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"vertical",checked:l.vertical,onClick:function(){function s(){return d(Object.assign({},l,{vertical:!l.vertical}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"leftSlot",checked:l.leftSlot,onClick:function(){function s(){return d(Object.assign({},l,{leftSlot:!l.leftSlot}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"rightSlot",checked:l.rightSlot,onClick:function(){function s(){return d(Object.assign({},l,{rightSlot:!l.rightSlot}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"icon",checked:l.icon,onClick:function(){function s(){return d(Object.assign({},l,{icon:!l.icon}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"fluid",checked:l.fluid,onClick:function(){function s(){return d(Object.assign({},l,{fluid:!l.fluid}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"left aligned",checked:l.leftAligned,onClick:function(){function s(){return d(Object.assign({},l,{leftAligned:!l.leftAligned}))}return s}()})]}),(0,e.createComponentVNode)(2,t.Section,{fitted:!0,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:l.vertical,fluid:l.fluid,textAlign:l.leftAligned&&"left",children:p.map(function(s,u){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:u===i,icon:l.icon&&"info-circle",leftSlot:l.leftSlot&&(0,e.createComponentVNode)(2,t.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),rightSlot:l.rightSlot&&(0,e.createComponentVNode)(2,t.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),onClick:function(){function h(){return c(u)}return h}(),children:s},u)})})})],4)}},53276:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Themes",render:function(){function b(){return(0,e.createComponentVNode)(2,p)}return b}()},p=function(y,I){var k=(0,a.useLocalState)(I,"kitchenSinkTheme"),C=k[0],i=k[1];return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Use theme",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"theme_name",value:C,onInput:function(){function c(m,u){return i(u)}return c}()})})})})}},28717:function(x,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036);/** + */var o=r.meta={title:"Themes",render:function(){function b(){return(0,e.createComponentVNode)(2,p)}return b}()},p=function(y,I){var k=(0,a.useLocalState)(I,"kitchenSinkTheme"),C=k[0],i=k[1];return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Use theme",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"theme_name",value:C,onInput:function(){function c(m,l){return i(l)}return c}()})})})})}},28717:function(T,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t=r.meta={title:"Tooltip",render:function(){function p(){return(0,e.createComponentVNode)(2,o)}return p}()},o=function(){var b=["top","left","right","bottom","bottom-start","bottom-end"];return(0,e.createComponentVNode)(2,a.Section,{children:[(0,e.createComponentVNode)(2,a.Box,{children:[(0,e.createComponentVNode)(2,a.Tooltip,{content:"Tooltip text.",children:(0,e.createComponentVNode)(2,a.Box,{inline:!0,position:"relative",mr:1,children:"Box (hover me)."})}),(0,e.createComponentVNode)(2,a.Button,{tooltip:"Tooltip text.",content:"Button"})]}),(0,e.createComponentVNode)(2,a.Box,{mt:1,children:b.map(function(y){return(0,e.createComponentVNode)(2,a.Button,{color:"transparent",tooltip:"Tooltip text.",tooltipPosition:y,content:y},y)})})]})}},37168:function(x,r,n){"use strict";r.__esModule=!0,r.BoxWithSampleText=void 0;var e=n(89005),a=n(36036);/** + */var t=r.meta={title:"Tooltip",render:function(){function p(){return(0,e.createComponentVNode)(2,o)}return p}()},o=function(){var b=["top","left","right","bottom","bottom-start","bottom-end"];return(0,e.createComponentVNode)(2,a.Section,{children:[(0,e.createComponentVNode)(2,a.Box,{children:[(0,e.createComponentVNode)(2,a.Tooltip,{content:"Tooltip text.",children:(0,e.createComponentVNode)(2,a.Box,{inline:!0,position:"relative",mr:1,children:"Box (hover me)."})}),(0,e.createComponentVNode)(2,a.Button,{tooltip:"Tooltip text.",content:"Button"})]}),(0,e.createComponentVNode)(2,a.Box,{mt:1,children:b.map(function(y){return(0,e.createComponentVNode)(2,a.Button,{color:"transparent",tooltip:"Tooltip text.",tooltipPosition:y,content:y},y)})})]})}},37168:function(T,r,n){"use strict";r.__esModule=!0,r.BoxWithSampleText=void 0;var e=n(89005),a=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t=r.BoxWithSampleText=function(){function o(p){return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({},p,{children:[(0,e.createComponentVNode)(2,a.Box,{italic:!0,children:"Jackdaws love my big sphinx of quartz."}),(0,e.createComponentVNode)(2,a.Box,{mt:1,bold:!0,children:"The wide electrification of the southern provinces will give a powerful impetus to the growth of agriculture."})]})))}return o}()},67160:function(){},23542:function(){},30386:function(){},98996:function(){},50578:function(){},4444:function(){},77870:function(){},23632:function(){},56492:function(){},39108:function(){},11714:function(){},73492:function(){},49641:function(){},17570:function(){},61858:function(){},32882:function(){},70752:function(x,r,n){var e={"./pai_atmosphere.js":80818,"./pai_bioscan.js":23903,"./pai_directives.js":64988,"./pai_doorjack.js":13813,"./pai_main_menu.js":66025,"./pai_manifest.js":2983,"./pai_medrecords.js":40758,"./pai_messenger.js":98599,"./pai_radio.js":50775,"./pai_secrecords.js":48623,"./pai_signaler.js":47297};function a(o){var p=t(o);return n(p)}function t(o){if(!n.o(e,o)){var p=new Error("Cannot find module '"+o+"'");throw p.code="MODULE_NOT_FOUND",p}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,x.exports=a,a.id=70752},59395:function(x,r,n){var e={"./pda_atmos_scan.js":78532,"./pda_janitor.js":40253,"./pda_main_menu.js":58293,"./pda_manifest.js":58059,"./pda_medical.js":18147,"./pda_messenger.js":77595,"./pda_mule.js":24635,"./pda_nanobank.js":23734,"./pda_notes.js":97085,"./pda_power.js":57513,"./pda_secbot.js":99808,"./pda_security.js":77168,"./pda_signaler.js":21773,"./pda_status_display.js":81857,"./pda_supplyrecords.js":70287};function a(o){var p=t(o);return n(p)}function t(o){if(!n.o(e,o)){var p=new Error("Cannot find module '"+o+"'");throw p.code="MODULE_NOT_FOUND",p}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,x.exports=a,a.id=59395},32054:function(x,r,n){var e={"./AICard":1090,"./AICard.js":1090,"./AIFixer":39454,"./AIFixer.js":39454,"./APC":88422,"./APC.js":88422,"./ATM":99660,"./ATM.js":99660,"./AccountsUplinkTerminal":86423,"./AccountsUplinkTerminal.js":86423,"./AgentCard":79571,"./AgentCard.js":79571,"./AiAirlock":56793,"./AiAirlock.js":56793,"./AirAlarm":72475,"./AirAlarm.js":72475,"./AirlockAccessController":12333,"./AirlockAccessController.js":12333,"./AirlockElectronics":28736,"./AirlockElectronics.js":28736,"./AlertModal":47365,"./AlertModal.tsx":47365,"./AppearanceChanger":71824,"./AppearanceChanger.js":71824,"./AtmosAlertConsole":72285,"./AtmosAlertConsole.js":72285,"./AtmosControl":65805,"./AtmosControl.js":65805,"./AtmosFilter":87816,"./AtmosFilter.js":87816,"./AtmosGraphMonitor":57258,"./AtmosGraphMonitor.tsx":57258,"./AtmosMixer":52977,"./AtmosMixer.js":52977,"./AtmosPump":11748,"./AtmosPump.js":11748,"./AtmosTankControl":69321,"./AtmosTankControl.js":69321,"./AugmentMenu":92444,"./AugmentMenu.js":92444,"./Autolathe":59179,"./Autolathe.js":59179,"./Autolathe220":29943,"./Autolathe220.tsx":29943,"./BioChipPad":5147,"./BioChipPad.js":5147,"./Biogenerator":64273,"./Biogenerator.js":64273,"./BloomEdit":47823,"./BloomEdit.js":47823,"./BlueSpaceArtilleryControl":18621,"./BlueSpaceArtilleryControl.js":18621,"./BluespaceTap":27629,"./BluespaceTap.js":27629,"./BodyScanner":33758,"./BodyScanner.js":33758,"./BookBinder":67963,"./BookBinder.js":67963,"./BotCall":61925,"./BotCall.js":61925,"./BotClean":20464,"./BotClean.js":20464,"./BotFloor":69479,"./BotFloor.js":69479,"./BotHonk":59887,"./BotHonk.js":59887,"./BotMed":80063,"./BotMed.js":80063,"./BotSecurity":74439,"./BotSecurity.js":74439,"./BrigCells":10833,"./BrigCells.js":10833,"./BrigTimer":45761,"./BrigTimer.js":45761,"./CameraConsole":26300,"./CameraConsole.js":26300,"./CameraConsole220":39222,"./CameraConsole220.js":39222,"./Canister":52927,"./Canister.js":52927,"./CardComputer":51793,"./CardComputer.js":51793,"./CargoConsole":64083,"./CargoConsole.js":64083,"./Chameleon":36232,"./Chameleon.tsx":36232,"./ChangelogView":87331,"./ChangelogView.js":87331,"./CheckboxListInputModal":91360,"./CheckboxListInputModal.tsx":91360,"./ChemDispenser":36108,"./ChemDispenser.js":36108,"./ChemHeater":13146,"./ChemHeater.js":13146,"./ChemMaster":56541,"./ChemMaster.tsx":56541,"./CloningConsole":37173,"./CloningConsole.js":37173,"./CloningPod":98723,"./CloningPod.js":98723,"./CoinMint":18259,"./CoinMint.tsx":18259,"./ColorPickerModal":93858,"./ColorPickerModal.tsx":93858,"./ColourMatrixTester":8444,"./ColourMatrixTester.js":8444,"./CommunicationsComputer":63818,"./CommunicationsComputer.js":63818,"./CompostBin":20562,"./CompostBin.js":20562,"./Contractor":21813,"./Contractor.js":21813,"./ConveyorSwitch":54151,"./ConveyorSwitch.js":54151,"./CrewMonitor":73169,"./CrewMonitor.js":73169,"./Cryo":63987,"./Cryo.js":63987,"./CryopodConsole":86099,"./CryopodConsole.js":86099,"./DNAModifier":12692,"./DNAModifier.js":12692,"./DestinationTagger":41074,"./DestinationTagger.js":41074,"./DisposalBin":46500,"./DisposalBin.js":46500,"./DnaVault":33233,"./DnaVault.js":33233,"./DroneConsole":33681,"./DroneConsole.js":33681,"./EFTPOS":17263,"./EFTPOS.js":17263,"./ERTManager":76382,"./ERTManager.js":76382,"./EconomyManager":90217,"./EconomyManager.js":90217,"./Electropack":82565,"./Electropack.js":82565,"./Emojipedia":11243,"./Emojipedia.tsx":11243,"./EmotePanel":69784,"./EmotePanel.js":69784,"./EvolutionMenu":36730,"./EvolutionMenu.js":36730,"./ExosuitFabricator":17370,"./ExosuitFabricator.js":17370,"./ExperimentConsole":59128,"./ExperimentConsole.js":59128,"./ExternalAirlockController":97086,"./ExternalAirlockController.js":97086,"./FaxMachine":96142,"./FaxMachine.js":96142,"./FilingCabinet":74123,"./FilingCabinet.js":74123,"./FloorPainter":83767,"./FloorPainter.js":83767,"./GPS":53424,"./GPS.js":53424,"./GeneModder":89124,"./GeneModder.js":89124,"./GenericCrewManifest":73053,"./GenericCrewManifest.js":73053,"./GhostHudPanel":42914,"./GhostHudPanel.js":42914,"./GlandDispenser":25825,"./GlandDispenser.js":25825,"./GravityGen":10270,"./GravityGen.js":10270,"./GuestPass":48657,"./GuestPass.js":48657,"./HandheldChemDispenser":67834,"./HandheldChemDispenser.js":67834,"./HealthSensor":46098,"./HealthSensor.js":46098,"./Holodeck":36771,"./Holodeck.js":36771,"./Instrument":25471,"./Instrument.js":25471,"./Jukebox":52736,"./Jukebox.tsx":52736,"./KeyComboModal":13618,"./KeyComboModal.tsx":13618,"./KeycardAuth":35655,"./KeycardAuth.js":35655,"./KitchenMachine":62955,"./KitchenMachine.js":62955,"./LawManager":9525,"./LawManager.js":9525,"./LibraryComputer":85066,"./LibraryComputer.js":85066,"./LibraryManager":9516,"./LibraryManager.js":9516,"./ListInputModal":90447,"./ListInputModal.tsx":90447,"./Loadout":26826,"./Loadout.tsx":26826,"./MODsuit":77613,"./MODsuit.js":77613,"./MagnetController":78624,"./MagnetController.js":78624,"./MechBayConsole":72106,"./MechBayConsole.js":72106,"./MechaControlConsole":7466,"./MechaControlConsole.js":7466,"./MedicalRecords":79625,"./MedicalRecords.js":79625,"./MerchVendor":54989,"./MerchVendor.js":54989,"./MiningVendor":87684,"./MiningVendor.js":87684,"./ModpacksList":61468,"./ModpacksList.js":61468,"./NTRecruiter":59783,"./NTRecruiter.js":59783,"./Newscaster":64713,"./Newscaster.js":64713,"./Noticeboard":48286,"./Noticeboard.tsx":48286,"./NuclearBomb":41166,"./NuclearBomb.js":41166,"./NumberInputModal":52416,"./NumberInputModal.tsx":52416,"./OperatingComputer":1218,"./OperatingComputer.js":1218,"./Orbit":46892,"./Orbit.js":46892,"./OreRedemption":15421,"./OreRedemption.js":15421,"./PAI":52754,"./PAI.js":52754,"./PDA":85175,"./PDA.js":85175,"./Pacman":68654,"./Pacman.js":68654,"./PanDEMIC":1701,"./PanDEMIC.tsx":1701,"./ParticleAccelerator":67921,"./ParticleAccelerator.js":67921,"./PdaPainter":71432,"./PdaPainter.js":71432,"./PersonalCrafting":33388,"./PersonalCrafting.js":33388,"./Photocopier":56150,"./Photocopier.js":56150,"./Photocopier220":8340,"./Photocopier220.js":8340,"./PoolController":84676,"./PoolController.js":84676,"./PortablePump":57003,"./PortablePump.js":57003,"./PortableScrubber":70069,"./PortableScrubber.js":70069,"./PortableTurret":59955,"./PortableTurret.js":59955,"./PowerMonitor":61631,"./PowerMonitor.js":61631,"./PrisonerImplantManager":50992,"./PrisonerImplantManager.js":50992,"./PrisonerShuttleConsole":53952,"./PrisonerShuttleConsole.js":53952,"./PrizeCounter":97852,"./PrizeCounter.tsx":97852,"./RCD":94813,"./RCD.js":94813,"./RPD":18738,"./RPD.js":18738,"./Radio":80299,"./Radio.js":80299,"./RankedListInputModal":14846,"./RankedListInputModal.tsx":14846,"./ReagentGrinder":48125,"./ReagentGrinder.js":48125,"./ReagentsEditor":58262,"./ReagentsEditor.tsx":58262,"./RemoteSignaler":30207,"./RemoteSignaler.js":30207,"./RequestConsole":25472,"./RequestConsole.js":25472,"./RndBackupConsole":9861,"./RndBackupConsole.js":9861,"./RndConsole":12644,"./RndConsole/":12644,"./RndConsole/DataDiskMenu":37556,"./RndConsole/DataDiskMenu.js":37556,"./RndConsole/DeconstructionMenu":58147,"./RndConsole/DeconstructionMenu.js":58147,"./RndConsole/LatheCategory":16830,"./RndConsole/LatheCategory.js":16830,"./RndConsole/LatheChemicalStorage":70497,"./RndConsole/LatheChemicalStorage.js":70497,"./RndConsole/LatheMainMenu":70864,"./RndConsole/LatheMainMenu.js":70864,"./RndConsole/LatheMaterialStorage":42878,"./RndConsole/LatheMaterialStorage.js":42878,"./RndConsole/LatheMaterials":52662,"./RndConsole/LatheMaterials.js":52662,"./RndConsole/LatheMenu":9681,"./RndConsole/LatheMenu.js":9681,"./RndConsole/LatheSearch":68198,"./RndConsole/LatheSearch.js":68198,"./RndConsole/LinkMenu":81421,"./RndConsole/LinkMenu.js":81421,"./RndConsole/SettingsMenu":6256,"./RndConsole/SettingsMenu.js":6256,"./RndConsole/index":12644,"./RndConsole/index.js":12644,"./RndNetController":29205,"./RndNetController.js":29205,"./RndServer":63315,"./RndServer.js":63315,"./RobotSelfDiagnosis":26109,"./RobotSelfDiagnosis.js":26109,"./RoboticsControlConsole":97997,"./RoboticsControlConsole.js":97997,"./Safe":54431,"./Safe.js":54431,"./SatelliteControl":29740,"./SatelliteControl.js":29740,"./SecureStorage":44162,"./SecureStorage.js":44162,"./SecurityRecords":6272,"./SecurityRecords.js":6272,"./SeedExtractor":5099,"./SeedExtractor.js":5099,"./Shop":17474,"./Shop.js":17474,"./ShuttleConsole":2916,"./ShuttleConsole.js":2916,"./ShuttleManipulator":39401,"./ShuttleManipulator.js":39401,"./Sleeper":88284,"./Sleeper.js":88284,"./SlotMachine":21597,"./SlotMachine.js":21597,"./Smartfridge":46348,"./Smartfridge.js":46348,"./Smes":86162,"./Smes.js":86162,"./SolarControl":63584,"./SolarControl.js":63584,"./SpawnersMenu":38096,"./SpawnersMenu.js":38096,"./SpecMenu":30586,"./SpecMenu.js":30586,"./StackCraft":95152,"./StackCraft.js":95152,"./StationAlertConsole":38307,"./StationAlertConsole.js":38307,"./StationTraitsPanel":96091,"./StationTraitsPanel.tsx":96091,"./StripMenu":39409,"./StripMenu.tsx":39409,"./SuitStorage":69514,"./SuitStorage.js":69514,"./SupermatterMonitor":15022,"./SupermatterMonitor.js":15022,"./SyndicateComputerSimple":46029,"./SyndicateComputerSimple.js":46029,"./TEG":36372,"./TEG.js":36372,"./TTSSeedsExplorer":23190,"./TTSSeedsExplorer.tsx":23190,"./TachyonArray":56441,"./TachyonArray.js":56441,"./Tank":1754,"./Tank.js":1754,"./TankDispenser":7579,"./TankDispenser.js":7579,"./TcommsCore":16136,"./TcommsCore.js":16136,"./TcommsRelay":88046,"./TcommsRelay.js":88046,"./Teleporter":20802,"./Teleporter.js":20802,"./TelescienceConsole":48517,"./TelescienceConsole.js":48517,"./TempGun":21800,"./TempGun.js":21800,"./TextInputModal":24410,"./TextInputModal.tsx":24410,"./ThermoMachine":25036,"./ThermoMachine.js":25036,"./TransferValve":20035,"./TransferValve.js":20035,"./TurbineComputer":78166,"./TurbineComputer.js":78166,"./Uplink":52847,"./Uplink.js":52847,"./Vending":12261,"./Vending.js":12261,"./VolumeMixer":68971,"./VolumeMixer.js":68971,"./VotePanel":2510,"./VotePanel.js":2510,"./Wires":30138,"./Wires.js":30138,"./WizardApprenticeContract":21400,"./WizardApprenticeContract.js":21400,"./common/AccessList":49148,"./common/AccessList.js":49148,"./common/AtmosScan":26991,"./common/AtmosScan.js":26991,"./common/BeakerContents":85870,"./common/BeakerContents.js":85870,"./common/BotStatus":92963,"./common/BotStatus.js":92963,"./common/ComplexModal":3939,"./common/ComplexModal.js":3939,"./common/CrewManifest":41874,"./common/CrewManifest.js":41874,"./common/InputButtons":19203,"./common/InputButtons.tsx":19203,"./common/InterfaceLockNoticeBox":195,"./common/InterfaceLockNoticeBox.js":195,"./common/Loader":51057,"./common/Loader.tsx":51057,"./common/LoginInfo":321,"./common/LoginInfo.js":321,"./common/LoginScreen":5485,"./common/LoginScreen.js":5485,"./common/Operating":62411,"./common/Operating.js":62411,"./common/Signaler":13545,"./common/Signaler.js":13545,"./common/SimpleRecords":41984,"./common/SimpleRecords.js":41984,"./common/TemporaryNotice":22091,"./common/TemporaryNotice.js":22091,"./pai/pai_atmosphere":80818,"./pai/pai_atmosphere.js":80818,"./pai/pai_bioscan":23903,"./pai/pai_bioscan.js":23903,"./pai/pai_directives":64988,"./pai/pai_directives.js":64988,"./pai/pai_doorjack":13813,"./pai/pai_doorjack.js":13813,"./pai/pai_main_menu":66025,"./pai/pai_main_menu.js":66025,"./pai/pai_manifest":2983,"./pai/pai_manifest.js":2983,"./pai/pai_medrecords":40758,"./pai/pai_medrecords.js":40758,"./pai/pai_messenger":98599,"./pai/pai_messenger.js":98599,"./pai/pai_radio":50775,"./pai/pai_radio.js":50775,"./pai/pai_secrecords":48623,"./pai/pai_secrecords.js":48623,"./pai/pai_signaler":47297,"./pai/pai_signaler.js":47297,"./pda/pda_atmos_scan":78532,"./pda/pda_atmos_scan.js":78532,"./pda/pda_janitor":40253,"./pda/pda_janitor.js":40253,"./pda/pda_main_menu":58293,"./pda/pda_main_menu.js":58293,"./pda/pda_manifest":58059,"./pda/pda_manifest.js":58059,"./pda/pda_medical":18147,"./pda/pda_medical.js":18147,"./pda/pda_messenger":77595,"./pda/pda_messenger.js":77595,"./pda/pda_mule":24635,"./pda/pda_mule.js":24635,"./pda/pda_nanobank":23734,"./pda/pda_nanobank.js":23734,"./pda/pda_notes":97085,"./pda/pda_notes.js":97085,"./pda/pda_power":57513,"./pda/pda_power.js":57513,"./pda/pda_secbot":99808,"./pda/pda_secbot.js":99808,"./pda/pda_security":77168,"./pda/pda_security.js":77168,"./pda/pda_signaler":21773,"./pda/pda_signaler.js":21773,"./pda/pda_status_display":81857,"./pda/pda_status_display.js":81857,"./pda/pda_supplyrecords":70287,"./pda/pda_supplyrecords.js":70287};function a(o){var p=t(o);return n(p)}function t(o){if(!n.o(e,o)){var p=new Error("Cannot find module '"+o+"'");throw p.code="MODULE_NOT_FOUND",p}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,x.exports=a,a.id=32054},4085:function(x,r,n){var e={"./Blink.stories.js":51364,"./BlockQuote.stories.js":32453,"./Box.stories.js":83531,"./Button.stories.js":74198,"./ByondUi.stories.js":51956,"./Collapsible.stories.js":17466,"./Flex.stories.js":89241,"./ImageButton.stories.js":48779,"./Input.stories.js":21394,"./Popper.stories.js":43932,"./ProgressBar.stories.js":33270,"./Stack.stories.js":77766,"./Storage.stories.js":30187,"./Tabs.stories.js":46554,"./Themes.stories.js":53276,"./Tooltip.stories.js":28717};function a(o){var p=t(o);return n(p)}function t(o){if(!n.o(e,o)){var p=new Error("Cannot find module '"+o+"'");throw p.code="MODULE_NOT_FOUND",p}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,x.exports=a,a.id=4085},10320:function(x,r,n){"use strict";var e=n(55747),a=n(89393),t=TypeError;x.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a function")}},32606:function(x,r,n){"use strict";var e=n(1031),a=n(89393),t=TypeError;x.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a constructor")}},35908:function(x,r,n){"use strict";var e=n(45015),a=String,t=TypeError;x.exports=function(o){if(e(o))return o;throw new t("Can't set "+a(o)+" as a prototype")}},80575:function(x,r,n){"use strict";var e=n(24697),a=n(80674),t=n(74595).f,o=e("unscopables"),p=Array.prototype;p[o]===void 0&&t(p,o,{configurable:!0,value:a(null)}),x.exports=function(b){p[o][b]=!0}},35483:function(x,r,n){"use strict";var e=n(50233).charAt;x.exports=function(a,t,o){return t+(o?e(a,t).length:1)}},60077:function(x,r,n){"use strict";var e=n(21287),a=TypeError;x.exports=function(t,o){if(e(o,t))return t;throw new a("Incorrect invocation")}},30365:function(x,r,n){"use strict";var e=n(77568),a=String,t=TypeError;x.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not an object")}},70377:function(x){"use strict";x.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},3782:function(x,r,n){"use strict";var e=n(40033);x.exports=e(function(){if(typeof ArrayBuffer=="function"){var a=new ArrayBuffer(8);Object.isExtensible(a)&&Object.defineProperty(a,"a",{value:8})}})},4246:function(x,r,n){"use strict";var e=n(70377),a=n(58310),t=n(74685),o=n(55747),p=n(77568),b=n(45299),y=n(2281),I=n(89393),k=n(37909),C=n(55938),i=n(73936),c=n(21287),m=n(36917),u=n(76649),d=n(24697),s=n(16738),l=n(5419),h=l.enforce,N=l.get,v=t.Int8Array,f=v&&v.prototype,g=t.Uint8ClampedArray,V=g&&g.prototype,B=v&&m(v),S=f&&m(f),L=Object.prototype,w=t.TypeError,A=d("toStringTag"),T=s("TYPED_ARRAY_TAG"),E="TypedArrayConstructor",P=e&&!!u&&y(t.opera)!=="Opera",D=!1,M,O,R,j={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},_={BigInt64Array:8,BigUint64Array:8},W=function(){function ie(pe){if(!p(pe))return!1;var te=y(pe);return te==="DataView"||b(j,te)||b(_,te)}return ie}(),z=function ie(pe){var te=m(pe);if(p(te)){var q=N(te);return q&&b(q,E)?q[E]:ie(te)}},K=function(pe){if(!p(pe))return!1;var te=y(pe);return b(j,te)||b(_,te)},G=function(pe){if(K(pe))return pe;throw new w("Target is not a typed array")},Q=function(pe){if(o(pe)&&(!u||c(B,pe)))return pe;throw new w(I(pe)+" is not a typed array constructor")},J=function(pe,te,q,ne){if(a){if(q)for(var le in j){var ee=t[le];if(ee&&b(ee.prototype,pe))try{delete ee.prototype[pe]}catch(re){try{ee.prototype[pe]=te}catch(oe){}}}(!S[pe]||q)&&C(S,pe,q?te:P&&f[pe]||te,ne)}},ue=function(pe,te,q){var ne,le;if(a){if(u){if(q){for(ne in j)if(le=t[ne],le&&b(le,pe))try{delete le[pe]}catch(ee){}}if(!B[pe]||q)try{return C(B,pe,q?te:P&&B[pe]||te)}catch(ee){}else return}for(ne in j)le=t[ne],le&&(!le[pe]||q)&&C(le,pe,te)}};for(M in j)O=t[M],R=O&&O.prototype,R?h(R)[E]=O:P=!1;for(M in _)O=t[M],R=O&&O.prototype,R&&(h(R)[E]=O);if((!P||!o(B)||B===Function.prototype)&&(B=function(){function ie(){throw new w("Incorrect invocation")}return ie}(),P))for(M in j)t[M]&&u(t[M],B);if((!P||!S||S===L)&&(S=B.prototype,P))for(M in j)t[M]&&u(t[M].prototype,S);if(P&&m(V)!==S&&u(V,S),a&&!b(S,A)){D=!0,i(S,A,{configurable:!0,get:function(){function ie(){return p(this)?this[T]:void 0}return ie}()});for(M in j)t[M]&&k(t[M],T,M)}x.exports={NATIVE_ARRAY_BUFFER_VIEWS:P,TYPED_ARRAY_TAG:D&&T,aTypedArray:G,aTypedArrayConstructor:Q,exportTypedArrayMethod:J,exportTypedArrayStaticMethod:ue,getTypedArrayConstructor:z,isView:W,isTypedArray:K,TypedArray:B,TypedArrayPrototype:S}},37336:function(x,r,n){"use strict";var e=n(74685),a=n(67250),t=n(58310),o=n(70377),p=n(70520),b=n(37909),y=n(73936),I=n(30145),k=n(40033),C=n(60077),i=n(61365),c=n(10188),m=n(43806),u=n(95867),d=n(91784),s=n(36917),l=n(76649),h=n(88471),N=n(54602),v=n(5781),f=n(5774),g=n(84925),V=n(5419),B=p.PROPER,S=p.CONFIGURABLE,L="ArrayBuffer",w="DataView",A="prototype",T="Wrong length",E="Wrong index",P=V.getterFor(L),D=V.getterFor(w),M=V.set,O=e[L],R=O,j=R&&R[A],_=e[w],W=_&&_[A],z=Object.prototype,K=e.Array,G=e.RangeError,Q=a(h),J=a([].reverse),ue=d.pack,ie=d.unpack,pe=function(Ve){return[Ve&255]},te=function(Ve){return[Ve&255,Ve>>8&255]},q=function(Ve){return[Ve&255,Ve>>8&255,Ve>>16&255,Ve>>24&255]},ne=function(Ve){return Ve[3]<<24|Ve[2]<<16|Ve[1]<<8|Ve[0]},le=function(Ve){return ue(u(Ve),23,4)},ee=function(Ve){return ue(Ve,52,8)},re=function(Ve,Be,be){y(Ve[A],Be,{configurable:!0,get:function(){function Le(){return be(this)[Be]}return Le}()})},oe=function(Ve,Be,be,Le){var we=D(Ve),xe=m(be),Re=!!Le;if(xe+Be>we.byteLength)throw new G(E);var He=we.bytes,ye=xe+we.byteOffset,de=N(He,ye,ye+Be);return Re?de:J(de)},fe=function(Ve,Be,be,Le,we,xe){var Re=D(Ve),He=m(be),ye=Le(+we),de=!!xe;if(He+Be>Re.byteLength)throw new G(E);for(var Ce=Re.bytes,ke=He+Re.byteOffset,ge=0;gewe)throw new G("Wrong offset");if(be=be===void 0?we-xe:c(be),xe+be>we)throw new G(T);M(this,{type:w,buffer:Ve,byteLength:be,byteOffset:xe,bytes:Le.bytes}),t||(this.buffer=Ve,this.byteLength=be,this.byteOffset=xe)}return he}(),W=_[A],t&&(re(R,"byteLength",P),re(_,"buffer",D),re(_,"byteLength",D),re(_,"byteOffset",D)),I(W,{getInt8:function(){function he(Ve){return oe(this,1,Ve)[0]<<24>>24}return he}(),getUint8:function(){function he(Ve){return oe(this,1,Ve)[0]}return he}(),getInt16:function(){function he(Ve){var Be=oe(this,2,Ve,arguments.length>1?arguments[1]:!1);return(Be[1]<<8|Be[0])<<16>>16}return he}(),getUint16:function(){function he(Ve){var Be=oe(this,2,Ve,arguments.length>1?arguments[1]:!1);return Be[1]<<8|Be[0]}return he}(),getInt32:function(){function he(Ve){return ne(oe(this,4,Ve,arguments.length>1?arguments[1]:!1))}return he}(),getUint32:function(){function he(Ve){return ne(oe(this,4,Ve,arguments.length>1?arguments[1]:!1))>>>0}return he}(),getFloat32:function(){function he(Ve){return ie(oe(this,4,Ve,arguments.length>1?arguments[1]:!1),23)}return he}(),getFloat64:function(){function he(Ve){return ie(oe(this,8,Ve,arguments.length>1?arguments[1]:!1),52)}return he}(),setInt8:function(){function he(Ve,Be){fe(this,1,Ve,pe,Be)}return he}(),setUint8:function(){function he(Ve,Be){fe(this,1,Ve,pe,Be)}return he}(),setInt16:function(){function he(Ve,Be){fe(this,2,Ve,te,Be,arguments.length>2?arguments[2]:!1)}return he}(),setUint16:function(){function he(Ve,Be){fe(this,2,Ve,te,Be,arguments.length>2?arguments[2]:!1)}return he}(),setInt32:function(){function he(Ve,Be){fe(this,4,Ve,q,Be,arguments.length>2?arguments[2]:!1)}return he}(),setUint32:function(){function he(Ve,Be){fe(this,4,Ve,q,Be,arguments.length>2?arguments[2]:!1)}return he}(),setFloat32:function(){function he(Ve,Be){fe(this,4,Ve,le,Be,arguments.length>2?arguments[2]:!1)}return he}(),setFloat64:function(){function he(Ve,Be){fe(this,8,Ve,ee,Be,arguments.length>2?arguments[2]:!1)}return he}()});else{var me=B&&O.name!==L;!k(function(){O(1)})||!k(function(){new O(-1)})||k(function(){return new O,new O(1.5),new O(NaN),O.length!==1||me&&!S})?(R=function(){function he(Ve){return C(this,j),v(new O(m(Ve)),this,R)}return he}(),R[A]=j,j.constructor=R,f(R,O)):me&&S&&b(O,"name",L),l&&s(W)!==z&&l(W,z);var Y=new _(new R(2)),ve=a(W.setInt8);Y.setInt8(0,2147483648),Y.setInt8(1,2147483649),(Y.getInt8(0)||!Y.getInt8(1))&&I(W,{setInt8:function(){function he(Ve,Be){ve(this,Ve,Be<<24>>24)}return he}(),setUint8:function(){function he(Ve,Be){ve(this,Ve,Be<<24>>24)}return he}()},{unsafe:!0})}g(R,L),g(_,w),x.exports={ArrayBuffer:R,DataView:_}},71447:function(x,r,n){"use strict";var e=n(46771),a=n(13912),t=n(24760),o=n(95108),p=Math.min;x.exports=[].copyWithin||function(){function b(y,I){var k=e(this),C=t(k),i=a(y,C),c=a(I,C),m=arguments.length>2?arguments[2]:void 0,u=p((m===void 0?C:a(m,C))-c,C-i),d=1;for(c0;)c in k?k[i]=k[c]:o(k,i),i+=d,c+=d;return k}return b}()},88471:function(x,r,n){"use strict";var e=n(46771),a=n(13912),t=n(24760);x.exports=function(){function o(p){for(var b=e(this),y=t(b),I=arguments.length,k=a(I>1?arguments[1]:void 0,y),C=I>2?arguments[2]:void 0,i=C===void 0?y:a(C,y);i>k;)b[k++]=p;return b}return o}()},35601:function(x,r,n){"use strict";var e=n(22603).forEach,a=n(55528),t=a("forEach");x.exports=t?[].forEach:function(){function o(p){return e(this,p,arguments.length>1?arguments[1]:void 0)}return o}()},78008:function(x,r,n){"use strict";var e=n(24760);x.exports=function(a,t,o){for(var p=0,b=arguments.length>2?o:e(t),y=new a(b);b>p;)y[p]=t[p++];return y}},73174:function(x,r,n){"use strict";var e=n(75754),a=n(91495),t=n(46771),o=n(40125),p=n(76571),b=n(1031),y=n(24760),I=n(60102),k=n(77455),C=n(59201),i=Array;x.exports=function(){function c(m){var u=t(m),d=b(this),s=arguments.length,l=s>1?arguments[1]:void 0,h=l!==void 0;h&&(l=e(l,s>2?arguments[2]:void 0));var N=C(u),v=0,f,g,V,B,S,L;if(N&&!(this===i&&p(N)))for(g=d?new this:[],B=k(u,N),S=B.next;!(V=a(S,B)).done;v++)L=h?o(B,l,[V.value,v],!0):V.value,I(g,v,L);else for(f=y(u),g=d?new this(f):i(f);f>v;v++)L=h?l(u[v],v):u[v],I(g,v,L);return g.length=v,g}return c}()},14211:function(x,r,n){"use strict";var e=n(57591),a=n(13912),t=n(24760),o=function(b){return function(y,I,k){var C=e(y),i=t(C);if(i===0)return!b&&-1;var c=a(k,i),m;if(b&&I!==I){for(;i>c;)if(m=C[c++],m!==m)return!0}else for(;i>c;c++)if((b||c in C)&&C[c]===I)return b||c||0;return!b&&-1}};x.exports={includes:o(!0),indexOf:o(!1)}},22603:function(x,r,n){"use strict";var e=n(75754),a=n(67250),t=n(37457),o=n(46771),p=n(24760),b=n(57823),y=a([].push),I=function(C){var i=C===1,c=C===2,m=C===3,u=C===4,d=C===6,s=C===7,l=C===5||d;return function(h,N,v,f){for(var g=o(h),V=t(g),B=p(V),S=e(N,v),L=0,w=f||b,A=i?w(h,B):c||s?w(h,0):void 0,T,E;B>L;L++)if((l||L in V)&&(T=V[L],E=S(T,L,g),C))if(i)A[L]=E;else if(E)switch(C){case 3:return!0;case 5:return T;case 6:return L;case 2:y(A,T)}else switch(C){case 4:return!1;case 7:y(A,T)}return d?-1:m||u?u:A}};x.exports={forEach:I(0),map:I(1),filter:I(2),some:I(3),every:I(4),find:I(5),findIndex:I(6),filterReject:I(7)}},1325:function(x,r,n){"use strict";var e=n(61267),a=n(57591),t=n(61365),o=n(24760),p=n(55528),b=Math.min,y=[].lastIndexOf,I=!!y&&1/[1].lastIndexOf(1,-0)<0,k=p("lastIndexOf"),C=I||!k;x.exports=C?function(){function i(c){if(I)return e(y,this,arguments)||0;var m=a(this),u=o(m);if(u===0)return-1;var d=u-1;for(arguments.length>1&&(d=b(d,t(arguments[1]))),d<0&&(d=u+d);d>=0;d--)if(d in m&&m[d]===c)return d||0;return-1}return i}():y},44091:function(x,r,n){"use strict";var e=n(40033),a=n(24697),t=n(5026),o=a("species");x.exports=function(p){return t>=51||!e(function(){var b=[],y=b.constructor={};return y[o]=function(){return{foo:1}},b[p](Boolean).foo!==1})}},55528:function(x,r,n){"use strict";var e=n(40033);x.exports=function(a,t){var o=[][a];return!!o&&e(function(){o.call(null,t||function(){return 1},1)})}},56844:function(x,r,n){"use strict";var e=n(10320),a=n(46771),t=n(37457),o=n(24760),p=TypeError,b="Reduce of empty array with no initial value",y=function(k){return function(C,i,c,m){var u=a(C),d=t(u),s=o(u);if(e(i),s===0&&c<2)throw new p(b);var l=k?s-1:0,h=k?-1:1;if(c<2)for(;;){if(l in d){m=d[l],l+=h;break}if(l+=h,k?l<0:s<=l)throw new p(b)}for(;k?l>=0:s>l;l+=h)l in d&&(m=i(m,d[l],l,u));return m}};x.exports={left:y(!1),right:y(!0)}},13345:function(x,r,n){"use strict";var e=n(58310),a=n(37386),t=TypeError,o=Object.getOwnPropertyDescriptor,p=e&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(b){return b instanceof TypeError}}();x.exports=p?function(b,y){if(a(b)&&!o(b,"length").writable)throw new t("Cannot set read only .length");return b.length=y}:function(b,y){return b.length=y}},54602:function(x,r,n){"use strict";var e=n(67250);x.exports=e([].slice)},90274:function(x,r,n){"use strict";var e=n(54602),a=Math.floor,t=function o(p,b){var y=p.length;if(y<8)for(var I=1,k,C;I0;)p[C]=p[--C];C!==I++&&(p[C]=k)}else for(var i=a(y/2),c=o(e(p,0,i),b),m=o(e(p,i),b),u=c.length,d=m.length,s=0,l=0;s1?arguments[1]:void 0),E;E=E?E.next:A.first;)for(T(E.value,E.key,this);E&&E.removed;)E=E.previous}return L}(),has:function(){function L(w){return!!S(this,w)}return L}()}),t(g,N?{get:function(){function L(w){var A=S(this,w);return A&&A.value}return L}(),set:function(){function L(w,A){return B(this,w===0?0:w,A)}return L}()}:{add:function(){function L(w){return B(this,w=w===0?0:w,w)}return L}()}),i&&a(g,"size",{configurable:!0,get:function(){function L(){return V(this).size}return L}()}),f}return s}(),setStrong:function(){function s(l,h,N){var v=h+" Iterator",f=d(h),g=d(v);I(l,h,function(V,B){u(this,{type:v,target:V,state:f(V),kind:B,last:void 0})},function(){for(var V=g(this),B=V.kind,S=V.last;S&&S.removed;)S=S.previous;return!V.target||!(V.last=S=S?S.next:V.state.first)?(V.target=void 0,k(void 0,!0)):k(B==="keys"?S.key:B==="values"?S.value:[S.key,S.value],!1)},N?"entries":"values",!N,!0),C(h)}return s}()}},39895:function(x,r,n){"use strict";var e=n(67250),a=n(30145),t=n(81969).getWeakData,o=n(60077),p=n(30365),b=n(42871),y=n(77568),I=n(49450),k=n(22603),C=n(45299),i=n(5419),c=i.set,m=i.getterFor,u=k.find,d=k.findIndex,s=e([].splice),l=0,h=function(g){return g.frozen||(g.frozen=new N)},N=function(){this.entries=[]},v=function(g,V){return u(g.entries,function(B){return B[0]===V})};N.prototype={get:function(){function f(g){var V=v(this,g);if(V)return V[1]}return f}(),has:function(){function f(g){return!!v(this,g)}return f}(),set:function(){function f(g,V){var B=v(this,g);B?B[1]=V:this.entries.push([g,V])}return f}(),delete:function(){function f(g){var V=d(this.entries,function(B){return B[0]===g});return~V&&s(this.entries,V,1),!!~V}return f}()},x.exports={getConstructor:function(){function f(g,V,B,S){var L=g(function(E,P){o(E,w),c(E,{type:V,id:l++,frozen:void 0}),b(P)||I(P,E[S],{that:E,AS_ENTRIES:B})}),w=L.prototype,A=m(V),T=function(){function E(P,D,M){var O=A(P),R=t(p(D),!0);return R===!0?h(O).set(D,M):R[O.id]=M,P}return E}();return a(w,{delete:function(){function E(P){var D=A(this);if(!y(P))return!1;var M=t(P);return M===!0?h(D).delete(P):M&&C(M,D.id)&&delete M[D.id]}return E}(),has:function(){function E(P){var D=A(this);if(!y(P))return!1;var M=t(P);return M===!0?h(D).has(P):M&&C(M,D.id)}return E}()}),a(w,B?{get:function(){function E(P){var D=A(this);if(y(P)){var M=t(P);return M===!0?h(D).get(P):M?M[D.id]:void 0}}return E}(),set:function(){function E(P,D){return T(this,P,D)}return E}()}:{add:function(){function E(P){return T(this,P,!0)}return E}()}),L}return f}()}},45150:function(x,r,n){"use strict";var e=n(63964),a=n(74685),t=n(67250),o=n(41314),p=n(55938),b=n(81969),y=n(49450),I=n(60077),k=n(55747),C=n(42871),i=n(77568),c=n(40033),m=n(92490),u=n(84925),d=n(5781);x.exports=function(s,l,h){var N=s.indexOf("Map")!==-1,v=s.indexOf("Weak")!==-1,f=N?"set":"add",g=a[s],V=g&&g.prototype,B=g,S={},L=function(O){var R=t(V[O]);p(V,O,O==="add"?function(){function j(_){return R(this,_===0?0:_),this}return j}():O==="delete"?function(j){return v&&!i(j)?!1:R(this,j===0?0:j)}:O==="get"?function(){function j(_){return v&&!i(_)?void 0:R(this,_===0?0:_)}return j}():O==="has"?function(){function j(_){return v&&!i(_)?!1:R(this,_===0?0:_)}return j}():function(){function j(_,W){return R(this,_===0?0:_,W),this}return j}())},w=o(s,!k(g)||!(v||V.forEach&&!c(function(){new g().entries().next()})));if(w)B=h.getConstructor(l,s,N,f),b.enable();else if(o(s,!0)){var A=new B,T=A[f](v?{}:-0,1)!==A,E=c(function(){A.has(1)}),P=m(function(M){new g(M)}),D=!v&&c(function(){for(var M=new g,O=5;O--;)M[f](O,O);return!M.has(-0)});P||(B=l(function(M,O){I(M,V);var R=d(new g,M,B);return C(O)||y(O,R[f],{that:R,AS_ENTRIES:N}),R}),B.prototype=V,V.constructor=B),(E||D)&&(L("delete"),L("has"),N&&L("get")),(D||T)&&L(f),v&&V.clear&&delete V.clear}return S[s]=B,e({global:!0,constructor:!0,forced:B!==g},S),u(B,s),v||h.setStrong(B,s,N),B}},5774:function(x,r,n){"use strict";var e=n(45299),a=n(97921),t=n(27193),o=n(74595);x.exports=function(p,b,y){for(var I=a(b),k=o.f,C=t.f,i=0;i"+C+""}},5959:function(x){"use strict";x.exports=function(r,n){return{value:r,done:n}}},37909:function(x,r,n){"use strict";var e=n(58310),a=n(74595),t=n(87458);x.exports=e?function(o,p,b){return a.f(o,p,t(1,b))}:function(o,p,b){return o[p]=b,o}},87458:function(x){"use strict";x.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}},60102:function(x,r,n){"use strict";var e=n(58310),a=n(74595),t=n(87458);x.exports=function(o,p,b){e?a.f(o,p,t(0,b)):o[p]=b}},67206:function(x,r,n){"use strict";var e=n(67250),a=n(40033),t=n(24051).start,o=RangeError,p=isFinite,b=Math.abs,y=Date.prototype,I=y.toISOString,k=e(y.getTime),C=e(y.getUTCDate),i=e(y.getUTCFullYear),c=e(y.getUTCHours),m=e(y.getUTCMilliseconds),u=e(y.getUTCMinutes),d=e(y.getUTCMonth),s=e(y.getUTCSeconds);x.exports=a(function(){return I.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!a(function(){I.call(new Date(NaN))})?function(){function l(){if(!p(k(this)))throw new o("Invalid time value");var h=this,N=i(h),v=m(h),f=N<0?"-":N>9999?"+":"";return f+t(b(N),f?6:4,0)+"-"+t(d(h)+1,2,0)+"-"+t(C(h),2,0)+"T"+t(c(h),2,0)+":"+t(u(h),2,0)+":"+t(s(h),2,0)+"."+t(v,3,0)+"Z"}return l}():I},10886:function(x,r,n){"use strict";var e=n(30365),a=n(13396),t=TypeError;x.exports=function(o){if(e(this),o==="string"||o==="default")o="string";else if(o!=="number")throw new t("Incorrect hint");return a(this,o)}},73936:function(x,r,n){"use strict";var e=n(20001),a=n(74595);x.exports=function(t,o,p){return p.get&&e(p.get,o,{getter:!0}),p.set&&e(p.set,o,{setter:!0}),a.f(t,o,p)}},55938:function(x,r,n){"use strict";var e=n(55747),a=n(74595),t=n(20001),o=n(18231);x.exports=function(p,b,y,I){I||(I={});var k=I.enumerable,C=I.name!==void 0?I.name:b;if(e(y)&&t(y,C,I),I.global)k?p[b]=y:o(b,y);else{try{I.unsafe?p[b]&&(k=!0):delete p[b]}catch(i){}k?p[b]=y:a.f(p,b,{value:y,enumerable:!1,configurable:!I.nonConfigurable,writable:!I.nonWritable})}return p}},30145:function(x,r,n){"use strict";var e=n(55938);x.exports=function(a,t,o){for(var p in t)e(a,p,t[p],o);return a}},18231:function(x,r,n){"use strict";var e=n(74685),a=Object.defineProperty;x.exports=function(t,o){try{a(e,t,{value:o,configurable:!0,writable:!0})}catch(p){e[t]=o}return o}},95108:function(x,r,n){"use strict";var e=n(89393),a=TypeError;x.exports=function(t,o){if(!delete t[o])throw new a("Cannot delete property "+e(o)+" of "+e(t))}},58310:function(x,r,n){"use strict";var e=n(40033);x.exports=!e(function(){return Object.defineProperty({},1,{get:function(){function a(){return 7}return a}()})[1]!==7})},12689:function(x,r,n){"use strict";var e=n(74685),a=n(77568),t=e.document,o=a(t)&&a(t.createElement);x.exports=function(p){return o?t.createElement(p):{}}},21291:function(x){"use strict";var r=TypeError,n=9007199254740991;x.exports=function(e){if(e>n)throw r("Maximum allowed index exceeded");return e}},652:function(x,r,n){"use strict";var e=n(63318),a=e.match(/firefox\/(\d+)/i);x.exports=!!a&&+a[1]},8180:function(x,r,n){"use strict";var e=n(73730),a=n(81702);x.exports=!e&&!a&&typeof window=="object"&&typeof document=="object"},49197:function(x){"use strict";x.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},73730:function(x){"use strict";x.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},19228:function(x,r,n){"use strict";var e=n(63318);x.exports=/MSIE|Trident/.test(e)},51802:function(x,r,n){"use strict";var e=n(63318);x.exports=/ipad|iphone|ipod/i.test(e)&&typeof Pebble!="undefined"},83433:function(x,r,n){"use strict";var e=n(63318);x.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},81702:function(x,r,n){"use strict";var e=n(74685),a=n(7462);x.exports=a(e.process)==="process"},63383:function(x,r,n){"use strict";var e=n(63318);x.exports=/web0s(?!.*chrome)/i.test(e)},63318:function(x){"use strict";x.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},5026:function(x,r,n){"use strict";var e=n(74685),a=n(63318),t=e.process,o=e.Deno,p=t&&t.versions||o&&o.version,b=p&&p.v8,y,I;b&&(y=b.split("."),I=y[0]>0&&y[0]<4?1:+(y[0]+y[1])),!I&&a&&(y=a.match(/Edge\/(\d+)/),(!y||y[1]>=74)&&(y=a.match(/Chrome\/(\d+)/),y&&(I=+y[1]))),x.exports=I},9342:function(x,r,n){"use strict";var e=n(63318),a=e.match(/AppleWebKit\/(\d+)\./);x.exports=!!a&&+a[1]},89453:function(x){"use strict";x.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},63964:function(x,r,n){"use strict";var e=n(74685),a=n(27193).f,t=n(37909),o=n(55938),p=n(18231),b=n(5774),y=n(41314);x.exports=function(I,k){var C=I.target,i=I.global,c=I.stat,m,u,d,s,l,h;if(i?u=e:c?u=e[C]||p(C,{}):u=e[C]&&e[C].prototype,u)for(d in k){if(l=k[d],I.dontCallGetSet?(h=a(u,d),s=h&&h.value):s=u[d],m=y(i?d:C+(c?".":"#")+d,I.forced),!m&&s!==void 0){if(typeof l==typeof s)continue;b(l,s)}(I.sham||s&&s.sham)&&t(l,"sham",!0),o(u,d,l,I)}}},40033:function(x){"use strict";x.exports=function(r){try{return!!r()}catch(n){return!0}}},79942:function(x,r,n){"use strict";n(79669);var e=n(91495),a=n(55938),t=n(14489),o=n(40033),p=n(24697),b=n(37909),y=p("species"),I=RegExp.prototype;x.exports=function(k,C,i,c){var m=p(k),u=!o(function(){var h={};return h[m]=function(){return 7},""[k](h)!==7}),d=u&&!o(function(){var h=!1,N=/a/;return k==="split"&&(N={},N.constructor={},N.constructor[y]=function(){return N},N.flags="",N[m]=/./[m]),N.exec=function(){return h=!0,null},N[m](""),!h});if(!u||!d||i){var s=/./[m],l=C(m,""[k],function(h,N,v,f,g){var V=N.exec;return V===t||V===I.exec?u&&!g?{done:!0,value:e(s,N,v,f)}:{done:!0,value:e(h,v,N,f)}:{done:!1}});a(String.prototype,k,l[0]),a(I,m,l[1])}c&&b(I[m],"sham",!0)}},65561:function(x,r,n){"use strict";var e=n(37386),a=n(24760),t=n(21291),o=n(75754),p=function b(y,I,k,C,i,c,m,u){for(var d=i,s=0,l=m?o(m,u):!1,h,N;s0&&e(h)?(N=a(h),d=b(y,I,h,N,d,c-1)-1):(t(d+1),y[d]=h),d++),s++;return d};x.exports=p},50730:function(x,r,n){"use strict";var e=n(40033);x.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},61267:function(x,r,n){"use strict";var e=n(55050),a=Function.prototype,t=a.apply,o=a.call;x.exports=typeof Reflect=="object"&&Reflect.apply||(e?o.bind(t):function(){return o.apply(t,arguments)})},75754:function(x,r,n){"use strict";var e=n(71138),a=n(10320),t=n(55050),o=e(e.bind);x.exports=function(p,b){return a(p),b===void 0?p:t?o(p,b):function(){return p.apply(b,arguments)}}},55050:function(x,r,n){"use strict";var e=n(40033);x.exports=!e(function(){var a=function(){}.bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},66284:function(x,r,n){"use strict";var e=n(67250),a=n(10320),t=n(77568),o=n(45299),p=n(54602),b=n(55050),y=Function,I=e([].concat),k=e([].join),C={},i=function(m,u,d){if(!o(C,u)){for(var s=[],l=0;l]*>)/g,I=/\$([$&'`]|\d{1,2})/g;x.exports=function(k,C,i,c,m,u){var d=i+k.length,s=c.length,l=I;return m!==void 0&&(m=a(m),l=y),p(u,l,function(h,N){var v;switch(o(N,0)){case"$":return"$";case"&":return k;case"`":return b(C,0,i);case"'":return b(C,d);case"<":v=m[b(N,1,-1)];break;default:var f=+N;if(f===0)return h;if(f>s){var g=t(f/10);return g===0?h:g<=s?c[g-1]===void 0?o(N,1):c[g-1]+o(N,1):h}v=c[f-1]}return v===void 0?"":v})}},74685:function(x,r,n){"use strict";var e=function(t){return t&&t.Math===Math&&t};x.exports=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof n.g=="object"&&n.g)||e(!1)||function(){return this}()||Function("return this")()},45299:function(x,r,n){"use strict";var e=n(67250),a=n(46771),t=e({}.hasOwnProperty);x.exports=Object.hasOwn||function(){function o(p,b){return t(a(p),b)}return o}()},79195:function(x){"use strict";x.exports={}},72259:function(x){"use strict";x.exports=function(r,n){try{arguments.length}catch(e){}}},5315:function(x,r,n){"use strict";var e=n(4009);x.exports=e("document","documentElement")},36223:function(x,r,n){"use strict";var e=n(58310),a=n(40033),t=n(12689);x.exports=!e&&!a(function(){return Object.defineProperty(t("div"),"a",{get:function(){function o(){return 7}return o}()}).a!==7})},91784:function(x){"use strict";var r=Array,n=Math.abs,e=Math.pow,a=Math.floor,t=Math.log,o=Math.LN2,p=function(I,k,C){var i=r(C),c=C*8-k-1,m=(1<>1,d=k===23?e(2,-24)-e(2,-77):0,s=I<0||I===0&&1/I<0?1:0,l=0,h,N,v;for(I=n(I),I!==I||I===1/0?(N=I!==I?1:0,h=m):(h=a(t(I)/o),v=e(2,-h),I*v<1&&(h--,v*=2),h+u>=1?I+=d/v:I+=d*e(2,1-u),I*v>=2&&(h++,v/=2),h+u>=m?(N=0,h=m):h+u>=1?(N=(I*v-1)*e(2,k),h+=u):(N=I*e(2,u-1)*e(2,k),h=0));k>=8;)i[l++]=N&255,N/=256,k-=8;for(h=h<0;)i[l++]=h&255,h/=256,c-=8;return i[--l]|=s*128,i},b=function(I,k){var C=I.length,i=C*8-k-1,c=(1<>1,u=i-7,d=C-1,s=I[d--],l=s&127,h;for(s>>=7;u>0;)l=l*256+I[d--],u-=8;for(h=l&(1<<-u)-1,l>>=-u,u+=k;u>0;)h=h*256+I[d--],u-=8;if(l===0)l=1-m;else{if(l===c)return h?NaN:s?-1/0:1/0;h+=e(2,k),l-=m}return(s?-1:1)*h*e(2,l-k)};x.exports={pack:p,unpack:b}},37457:function(x,r,n){"use strict";var e=n(67250),a=n(40033),t=n(7462),o=Object,p=e("".split);x.exports=a(function(){return!o("z").propertyIsEnumerable(0)})?function(b){return t(b)==="String"?p(b,""):o(b)}:o},5781:function(x,r,n){"use strict";var e=n(55747),a=n(77568),t=n(76649);x.exports=function(o,p,b){var y,I;return t&&e(y=p.constructor)&&y!==b&&a(I=y.prototype)&&I!==b.prototype&&t(o,I),o}},40492:function(x,r,n){"use strict";var e=n(67250),a=n(55747),t=n(40095),o=e(Function.toString);a(t.inspectSource)||(t.inspectSource=function(p){return o(p)}),x.exports=t.inspectSource},81969:function(x,r,n){"use strict";var e=n(63964),a=n(67250),t=n(79195),o=n(77568),p=n(45299),b=n(74595).f,y=n(37310),I=n(81644),k=n(81834),C=n(16738),i=n(50730),c=!1,m=C("meta"),u=0,d=function(g){b(g,m,{value:{objectID:"O"+u++,weakData:{}}})},s=function(g,V){if(!o(g))return typeof g=="symbol"?g:(typeof g=="string"?"S":"P")+g;if(!p(g,m)){if(!k(g))return"F";if(!V)return"E";d(g)}return g[m].objectID},l=function(g,V){if(!p(g,m)){if(!k(g))return!0;if(!V)return!1;d(g)}return g[m].weakData},h=function(g){return i&&c&&k(g)&&!p(g,m)&&d(g),g},N=function(){v.enable=function(){},c=!0;var g=y.f,V=a([].splice),B={};B[m]=1,g(B).length&&(y.f=function(S){for(var L=g(S),w=0,A=L.length;wS;S++)if(w=P(u[S]),w&&y(m,w))return w;return new c(!1)}V=I(u,B)}for(A=N?u.next:V.next;!(T=a(A,V)).done;){try{w=P(T.value)}catch(D){C(V,"throw",D)}if(typeof w=="object"&&w&&y(m,w))return w}return new c(!1)}},28649:function(x,r,n){"use strict";var e=n(91495),a=n(30365),t=n(78060);x.exports=function(o,p,b){var y,I;a(o);try{if(y=t(o,"return"),!y){if(p==="throw")throw b;return b}y=e(y,o)}catch(k){I=!0,y=k}if(p==="throw")throw b;if(I)throw y;return a(y),b}},5656:function(x,r,n){"use strict";var e=n(67635).IteratorPrototype,a=n(80674),t=n(87458),o=n(84925),p=n(83967),b=function(){return this};x.exports=function(y,I,k,C){var i=I+" Iterator";return y.prototype=a(e,{next:t(+!C,k)}),o(y,i,!1,!0),p[i]=b,y}},65574:function(x,r,n){"use strict";var e=n(63964),a=n(91495),t=n(4493),o=n(70520),p=n(55747),b=n(5656),y=n(36917),I=n(76649),k=n(84925),C=n(37909),i=n(55938),c=n(24697),m=n(83967),u=n(67635),d=o.PROPER,s=o.CONFIGURABLE,l=u.IteratorPrototype,h=u.BUGGY_SAFARI_ITERATORS,N=c("iterator"),v="keys",f="values",g="entries",V=function(){return this};x.exports=function(B,S,L,w,A,T,E){b(L,S,w);var P=function(Q){if(Q===A&&j)return j;if(!h&&Q&&Q in O)return O[Q];switch(Q){case v:return function(){function J(){return new L(this,Q)}return J}();case f:return function(){function J(){return new L(this,Q)}return J}();case g:return function(){function J(){return new L(this,Q)}return J}()}return function(){return new L(this)}},D=S+" Iterator",M=!1,O=B.prototype,R=O[N]||O["@@iterator"]||A&&O[A],j=!h&&R||P(A),_=S==="Array"&&O.entries||R,W,z,K;if(_&&(W=y(_.call(new B)),W!==Object.prototype&&W.next&&(!t&&y(W)!==l&&(I?I(W,l):p(W[N])||i(W,N,V)),k(W,D,!0,!0),t&&(m[D]=V))),d&&A===f&&R&&R.name!==f&&(!t&&s?C(O,"name",f):(M=!0,j=function(){function G(){return a(R,this)}return G}())),A)if(z={values:P(f),keys:T?j:P(v),entries:P(g)},E)for(K in z)(h||M||!(K in O))&&i(O,K,z[K]);else e({target:S,proto:!0,forced:h||M},z);return(!t||E)&&O[N]!==j&&i(O,N,j,{name:A}),m[S]=j,z}},67635:function(x,r,n){"use strict";var e=n(40033),a=n(55747),t=n(77568),o=n(80674),p=n(36917),b=n(55938),y=n(24697),I=n(4493),k=y("iterator"),C=!1,i,c,m;[].keys&&(m=[].keys(),"next"in m?(c=p(p(m)),c!==Object.prototype&&(i=c)):C=!0);var u=!t(i)||e(function(){var d={};return i[k].call(d)!==d});u?i={}:I&&(i=o(i)),a(i[k])||b(i,k,function(){return this}),x.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:C}},83967:function(x){"use strict";x.exports={}},24760:function(x,r,n){"use strict";var e=n(10188);x.exports=function(a){return e(a.length)}},20001:function(x,r,n){"use strict";var e=n(67250),a=n(40033),t=n(55747),o=n(45299),p=n(58310),b=n(70520).CONFIGURABLE,y=n(40492),I=n(5419),k=I.enforce,C=I.get,i=String,c=Object.defineProperty,m=e("".slice),u=e("".replace),d=e([].join),s=p&&!a(function(){return c(function(){},"length",{value:8}).length!==8}),l=String(String).split("String"),h=x.exports=function(N,v,f){m(i(v),0,7)==="Symbol("&&(v="["+u(i(v),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),f&&f.getter&&(v="get "+v),f&&f.setter&&(v="set "+v),(!o(N,"name")||b&&N.name!==v)&&(p?c(N,"name",{value:v,configurable:!0}):N.name=v),s&&f&&o(f,"arity")&&N.length!==f.arity&&c(N,"length",{value:f.arity});try{f&&o(f,"constructor")&&f.constructor?p&&c(N,"prototype",{writable:!1}):N.prototype&&(N.prototype=void 0)}catch(V){}var g=k(N);return o(g,"source")||(g.source=d(l,typeof v=="string"?v:"")),N};Function.prototype.toString=h(function(){function N(){return t(this)&&C(this).source||y(this)}return N}(),"toString")},82040:function(x){"use strict";var r=Math.expm1,n=Math.exp;x.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||r(-2e-17)!==-2e-17?function(){function e(a){var t=+a;return t===0?t:t>-1e-6&&t<1e-6?t+t*t/2:n(t)-1}return e}():r},14950:function(x,r,n){"use strict";var e=n(22172),a=Math.abs,t=2220446049250313e-31,o=1/t,p=function(y){return y+o-o};x.exports=function(b,y,I,k){var C=+b,i=a(C),c=e(C);if(iI||u!==u?c*(1/0):c*u}},95867:function(x,r,n){"use strict";var e=n(14950),a=11920928955078125e-23,t=34028234663852886e22,o=11754943508222875e-54;x.exports=Math.fround||function(){function p(b){return e(b,a,t,o)}return p}()},75002:function(x){"use strict";var r=Math.log,n=Math.LOG10E;x.exports=Math.log10||function(){function e(a){return r(a)*n}return e}()},90874:function(x){"use strict";var r=Math.log;x.exports=Math.log1p||function(){function n(e){var a=+e;return a>-1e-8&&a<1e-8?a-a*a/2:r(1+a)}return n}()},22172:function(x){"use strict";x.exports=Math.sign||function(){function r(n){var e=+n;return e===0||e!==e?e:e<0?-1:1}return r}()},21119:function(x){"use strict";var r=Math.ceil,n=Math.floor;x.exports=Math.trunc||function(){function e(a){var t=+a;return(t>0?n:r)(t)}return e}()},37713:function(x,r,n){"use strict";var e=n(74685),a=n(44915),t=n(75754),o=n(60375).set,p=n(9547),b=n(83433),y=n(51802),I=n(63383),k=n(81702),C=e.MutationObserver||e.WebKitMutationObserver,i=e.document,c=e.process,m=e.Promise,u=a("queueMicrotask"),d,s,l,h,N;if(!u){var v=new p,f=function(){var V,B;for(k&&(V=c.domain)&&V.exit();B=v.get();)try{B()}catch(S){throw v.head&&d(),S}V&&V.enter()};!b&&!k&&!I&&C&&i?(s=!0,l=i.createTextNode(""),new C(f).observe(l,{characterData:!0}),d=function(){l.data=s=!s}):!y&&m&&m.resolve?(h=m.resolve(void 0),h.constructor=m,N=t(h.then,h),d=function(){N(f)}):k?d=function(){c.nextTick(f)}:(o=t(o,e),d=function(){o(f)}),u=function(V){v.head||d(),v.add(V)}}x.exports=u},81837:function(x,r,n){"use strict";var e=n(10320),a=TypeError,t=function(p){var b,y;this.promise=new p(function(I,k){if(b!==void 0||y!==void 0)throw new a("Bad Promise constructor");b=I,y=k}),this.resolve=e(b),this.reject=e(y)};x.exports.f=function(o){return new t(o)}},86213:function(x,r,n){"use strict";var e=n(72586),a=TypeError;x.exports=function(t){if(e(t))throw new a("The method doesn't accept regular expressions");return t}},3294:function(x,r,n){"use strict";var e=n(74685),a=e.isFinite;x.exports=Number.isFinite||function(){function t(o){return typeof o=="number"&&a(o)}return t}()},28506:function(x,r,n){"use strict";var e=n(74685),a=n(40033),t=n(67250),o=n(12605),p=n(92648).trim,b=n(4198),y=t("".charAt),I=e.parseFloat,k=e.Symbol,C=k&&k.iterator,i=1/I(b+"-0")!==-1/0||C&&!a(function(){I(Object(C))});x.exports=i?function(){function c(m){var u=p(o(m)),d=I(u);return d===0&&y(u,0)==="-"?-0:d}return c}():I},13693:function(x,r,n){"use strict";var e=n(74685),a=n(40033),t=n(67250),o=n(12605),p=n(92648).trim,b=n(4198),y=e.parseInt,I=e.Symbol,k=I&&I.iterator,C=/^[+-]?0x/i,i=t(C.exec),c=y(b+"08")!==8||y(b+"0x16")!==22||k&&!a(function(){y(Object(k))});x.exports=c?function(){function m(u,d){var s=p(o(u));return y(s,d>>>0||(i(C,s)?16:10))}return m}():y},41143:function(x,r,n){"use strict";var e=n(58310),a=n(67250),t=n(91495),o=n(40033),p=n(18450),b=n(89235),y=n(12867),I=n(46771),k=n(37457),C=Object.assign,i=Object.defineProperty,c=a([].concat);x.exports=!C||o(function(){if(e&&C({b:1},C(i({},"a",{enumerable:!0,get:function(){function l(){i(this,"b",{value:3,enumerable:!1})}return l}()}),{b:2})).b!==1)return!0;var m={},u={},d=Symbol("assign detection"),s="abcdefghijklmnopqrst";return m[d]=7,s.split("").forEach(function(l){u[l]=l}),C({},m)[d]!==7||p(C({},u)).join("")!==s})?function(){function m(u,d){for(var s=I(u),l=arguments.length,h=1,N=b.f,v=y.f;l>h;)for(var f=k(arguments[h++]),g=N?c(p(f),N(f)):p(f),V=g.length,B=0,S;V>B;)S=g[B++],(!e||t(v,f,S))&&(s[S]=f[S]);return s}return m}():C},80674:function(x,r,n){"use strict";var e=n(30365),a=n(24239),t=n(89453),o=n(79195),p=n(5315),b=n(12689),y=n(19417),I=">",k="<",C="prototype",i="script",c=y("IE_PROTO"),m=function(){},u=function(v){return k+i+I+v+k+"/"+i+I},d=function(v){v.write(u("")),v.close();var f=v.parentWindow.Object;return v=null,f},s=function(){var v=b("iframe"),f="java"+i+":",g;return v.style.display="none",p.appendChild(v),v.src=String(f),g=v.contentWindow.document,g.open(),g.write(u("document.F=Object")),g.close(),g.F},l,h=function(){try{l=new ActiveXObject("htmlfile")}catch(f){}h=typeof document!="undefined"?document.domain&&l?d(l):s():d(l);for(var v=t.length;v--;)delete h[C][t[v]];return h()};o[c]=!0,x.exports=Object.create||function(){function N(v,f){var g;return v!==null?(m[C]=e(v),g=new m,m[C]=null,g[c]=v):g=h(),f===void 0?g:a.f(g,f)}return N}()},24239:function(x,r,n){"use strict";var e=n(58310),a=n(80944),t=n(74595),o=n(30365),p=n(57591),b=n(18450);r.f=e&&!a?Object.defineProperties:function(){function y(I,k){o(I);for(var C=p(k),i=b(k),c=i.length,m=0,u;c>m;)t.f(I,u=i[m++],C[u]);return I}return y}()},74595:function(x,r,n){"use strict";var e=n(58310),a=n(36223),t=n(80944),o=n(30365),p=n(767),b=TypeError,y=Object.defineProperty,I=Object.getOwnPropertyDescriptor,k="enumerable",C="configurable",i="writable";r.f=e?t?function(){function c(m,u,d){if(o(m),u=p(u),o(d),typeof m=="function"&&u==="prototype"&&"value"in d&&i in d&&!d[i]){var s=I(m,u);s&&s[i]&&(m[u]=d.value,d={configurable:C in d?d[C]:s[C],enumerable:k in d?d[k]:s[k],writable:!1})}return y(m,u,d)}return c}():y:function(){function c(m,u,d){if(o(m),u=p(u),o(d),a)try{return y(m,u,d)}catch(s){}if("get"in d||"set"in d)throw new b("Accessors not supported");return"value"in d&&(m[u]=d.value),m}return c}()},27193:function(x,r,n){"use strict";var e=n(58310),a=n(91495),t=n(12867),o=n(87458),p=n(57591),b=n(767),y=n(45299),I=n(36223),k=Object.getOwnPropertyDescriptor;r.f=e?k:function(){function C(i,c){if(i=p(i),c=b(c),I)try{return k(i,c)}catch(m){}if(y(i,c))return o(!a(t.f,i,c),i[c])}return C}()},81644:function(x,r,n){"use strict";var e=n(7462),a=n(57591),t=n(37310).f,o=n(54602),p=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],b=function(I){try{return t(I)}catch(k){return o(p)}};x.exports.f=function(){function y(I){return p&&e(I)==="Window"?b(I):t(a(I))}return y}()},37310:function(x,r,n){"use strict";var e=n(53726),a=n(89453),t=a.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(){function o(p){return e(p,t)}return o}()},89235:function(x,r){"use strict";r.f=Object.getOwnPropertySymbols},36917:function(x,r,n){"use strict";var e=n(45299),a=n(55747),t=n(46771),o=n(19417),p=n(9225),b=o("IE_PROTO"),y=Object,I=y.prototype;x.exports=p?y.getPrototypeOf:function(k){var C=t(k);if(e(C,b))return C[b];var i=C.constructor;return a(i)&&C instanceof i?i.prototype:C instanceof y?I:null}},81834:function(x,r,n){"use strict";var e=n(40033),a=n(77568),t=n(7462),o=n(3782),p=Object.isExtensible,b=e(function(){p(1)});x.exports=b||o?function(){function y(I){return!a(I)||o&&t(I)==="ArrayBuffer"?!1:p?p(I):!0}return y}():p},21287:function(x,r,n){"use strict";var e=n(67250);x.exports=e({}.isPrototypeOf)},53726:function(x,r,n){"use strict";var e=n(67250),a=n(45299),t=n(57591),o=n(14211).indexOf,p=n(79195),b=e([].push);x.exports=function(y,I){var k=t(y),C=0,i=[],c;for(c in k)!a(p,c)&&a(k,c)&&b(i,c);for(;I.length>C;)a(k,c=I[C++])&&(~o(i,c)||b(i,c));return i}},18450:function(x,r,n){"use strict";var e=n(53726),a=n(89453);x.exports=Object.keys||function(){function t(o){return e(o,a)}return t}()},12867:function(x,r){"use strict";var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,a=e&&!n.call({1:2},1);r.f=a?function(){function t(o){var p=e(this,o);return!!p&&p.enumerable}return t}():n},57377:function(x,r,n){"use strict";var e=n(4493),a=n(74685),t=n(40033),o=n(9342);x.exports=e||!t(function(){if(!(o&&o<535)){var p=Math.random();__defineSetter__.call(null,p,function(){}),delete a[p]}})},76649:function(x,r,n){"use strict";var e=n(38656),a=n(77568),t=n(16952),o=n(35908);x.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var p=!1,b={},y;try{y=e(Object.prototype,"__proto__","set"),y(b,[]),p=b instanceof Array}catch(I){}return function(){function I(k,C){return t(k),o(C),a(k)&&(p?y(k,C):k.__proto__=C),k}return I}()}():void 0)},70915:function(x,r,n){"use strict";var e=n(58310),a=n(40033),t=n(67250),o=n(36917),p=n(18450),b=n(57591),y=n(12867).f,I=t(y),k=t([].push),C=e&&a(function(){var c=Object.create(null);return c[2]=2,!I(c,2)}),i=function(m){return function(u){for(var d=b(u),s=p(d),l=C&&o(d)===null,h=s.length,N=0,v=[],f;h>N;)f=s[N++],(!e||(l?f in d:I(d,f)))&&k(v,m?[f,d[f]]:d[f]);return v}};x.exports={entries:i(!0),values:i(!1)}},2509:function(x,r,n){"use strict";var e=n(2650),a=n(2281);x.exports=e?{}.toString:function(){function t(){return"[object "+a(this)+"]"}return t}()},13396:function(x,r,n){"use strict";var e=n(91495),a=n(55747),t=n(77568),o=TypeError;x.exports=function(p,b){var y,I;if(b==="string"&&a(y=p.toString)&&!t(I=e(y,p))||a(y=p.valueOf)&&!t(I=e(y,p))||b!=="string"&&a(y=p.toString)&&!t(I=e(y,p)))return I;throw new o("Can't convert object to primitive value")}},97921:function(x,r,n){"use strict";var e=n(4009),a=n(67250),t=n(37310),o=n(89235),p=n(30365),b=a([].concat);x.exports=e("Reflect","ownKeys")||function(){function y(I){var k=t.f(p(I)),C=o.f;return C?b(k,C(I)):k}return y}()},61765:function(x,r,n){"use strict";var e=n(74685);x.exports=e},10729:function(x){"use strict";x.exports=function(r){try{return{error:!1,value:r()}}catch(n){return{error:!0,value:n}}}},74854:function(x,r,n){"use strict";var e=n(74685),a=n(67512),t=n(55747),o=n(41314),p=n(40492),b=n(24697),y=n(8180),I=n(73730),k=n(4493),C=n(5026),i=a&&a.prototype,c=b("species"),m=!1,u=t(e.PromiseRejectionEvent),d=o("Promise",function(){var s=p(a),l=s!==String(a);if(!l&&C===66||k&&!(i.catch&&i.finally))return!0;if(!C||C<51||!/native code/.test(s)){var h=new a(function(f){f(1)}),N=function(g){g(function(){},function(){})},v=h.constructor={};if(v[c]=N,m=h.then(function(){})instanceof N,!m)return!0}return!l&&(y||I)&&!u});x.exports={CONSTRUCTOR:d,REJECTION_EVENT:u,SUBCLASSING:m}},67512:function(x,r,n){"use strict";var e=n(74685);x.exports=e.Promise},66628:function(x,r,n){"use strict";var e=n(30365),a=n(77568),t=n(81837);x.exports=function(o,p){if(e(o),a(p)&&p.constructor===o)return p;var b=t.f(o),y=b.resolve;return y(p),b.promise}},48199:function(x,r,n){"use strict";var e=n(67512),a=n(92490),t=n(74854).CONSTRUCTOR;x.exports=t||!a(function(o){e.all(o).then(void 0,function(){})})},34550:function(x,r,n){"use strict";var e=n(74595).f;x.exports=function(a,t,o){o in a||e(a,o,{configurable:!0,get:function(){function p(){return t[o]}return p}(),set:function(){function p(b){t[o]=b}return p}()})}},9547:function(x){"use strict";var r=function(){this.head=null,this.tail=null};r.prototype={add:function(){function n(e){var a={item:e,next:null},t=this.tail;t?t.next=a:this.head=a,this.tail=a}return n}(),get:function(){function n(){var e=this.head;if(e){var a=this.head=e.next;return a===null&&(this.tail=null),e.item}}return n}()},x.exports=r},28340:function(x,r,n){"use strict";var e=n(91495),a=n(30365),t=n(55747),o=n(7462),p=n(14489),b=TypeError;x.exports=function(y,I){var k=y.exec;if(t(k)){var C=e(k,y,I);return C!==null&&a(C),C}if(o(y)==="RegExp")return e(p,y,I);throw new b("RegExp#exec called on incompatible receiver")}},14489:function(x,r,n){"use strict";var e=n(91495),a=n(67250),t=n(12605),o=n(70901),p=n(62115),b=n(16639),y=n(80674),I=n(5419).get,k=n(39173),C=n(35688),i=b("native-string-replace",String.prototype.replace),c=RegExp.prototype.exec,m=c,u=a("".charAt),d=a("".indexOf),s=a("".replace),l=a("".slice),h=function(){var g=/a/,V=/b*/g;return e(c,g,"a"),e(c,V,"a"),g.lastIndex!==0||V.lastIndex!==0}(),N=p.BROKEN_CARET,v=/()??/.exec("")[1]!==void 0,f=h||v||N||k||C;f&&(m=function(){function g(V){var B=this,S=I(B),L=t(V),w=S.raw,A,T,E,P,D,M,O;if(w)return w.lastIndex=B.lastIndex,A=e(m,w,L),B.lastIndex=w.lastIndex,A;var R=S.groups,j=N&&B.sticky,_=e(o,B),W=B.source,z=0,K=L;if(j&&(_=s(_,"y",""),d(_,"g")===-1&&(_+="g"),K=l(L,B.lastIndex),B.lastIndex>0&&(!B.multiline||B.multiline&&u(L,B.lastIndex-1)!=="\n")&&(W="(?: "+W+")",K=" "+K,z++),T=new RegExp("^(?:"+W+")",_)),v&&(T=new RegExp("^"+W+"$(?!\\s)",_)),h&&(E=B.lastIndex),P=e(c,j?T:B,K),j?P?(P.input=l(P.input,z),P[0]=l(P[0],z),P.index=B.lastIndex,B.lastIndex+=P[0].length):B.lastIndex=0:h&&P&&(B.lastIndex=B.global?P.index+P[0].length:E),v&&P&&P.length>1&&e(i,P[0],T,function(){for(D=1;Db)","g");return o.exec("b").groups.a!=="b"||"b".replace(o,"$c")!=="bc"})},16952:function(x,r,n){"use strict";var e=n(42871),a=TypeError;x.exports=function(t){if(e(t))throw new a("Can't call method on "+t);return t}},44915:function(x,r,n){"use strict";var e=n(74685),a=n(58310),t=Object.getOwnPropertyDescriptor;x.exports=function(o){if(!a)return e[o];var p=t(e,o);return p&&p.value}},5700:function(x){"use strict";x.exports=Object.is||function(){function r(n,e){return n===e?n!==0||1/n===1/e:n!==n&&e!==e}return r}()},78362:function(x,r,n){"use strict";var e=n(74685),a=n(61267),t=n(55747),o=n(49197),p=n(63318),b=n(54602),y=n(24986),I=e.Function,k=/MSIE .\./.test(p)||o&&function(){var C=e.Bun.version.split(".");return C.length<3||C[0]==="0"&&(C[1]<3||C[1]==="3"&&C[2]==="0")}();x.exports=function(C,i){var c=i?2:1;return k?function(m,u){var d=y(arguments.length,1)>c,s=t(m)?m:I(m),l=d?b(arguments,c):[],h=d?function(){a(s,this,l)}:s;return i?C(h,u):C(h)}:C}},58491:function(x,r,n){"use strict";var e=n(4009),a=n(73936),t=n(24697),o=n(58310),p=t("species");x.exports=function(b){var y=e(b);o&&y&&!y[p]&&a(y,p,{configurable:!0,get:function(){function I(){return this}return I}()})}},84925:function(x,r,n){"use strict";var e=n(74595).f,a=n(45299),t=n(24697),o=t("toStringTag");x.exports=function(p,b,y){p&&!y&&(p=p.prototype),p&&!a(p,o)&&e(p,o,{configurable:!0,value:b})}},19417:function(x,r,n){"use strict";var e=n(16639),a=n(16738),t=e("keys");x.exports=function(o){return t[o]||(t[o]=a(o))}},40095:function(x,r,n){"use strict";var e=n(4493),a=n(74685),t=n(18231),o="__core-js_shared__",p=x.exports=a[o]||t(o,{});(p.versions||(p.versions=[])).push({version:"3.37.1",mode:e?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},16639:function(x,r,n){"use strict";var e=n(40095);x.exports=function(a,t){return e[a]||(e[a]=t||{})}},28987:function(x,r,n){"use strict";var e=n(30365),a=n(32606),t=n(42871),o=n(24697),p=o("species");x.exports=function(b,y){var I=e(b).constructor,k;return I===void 0||t(k=e(I)[p])?y:a(k)}},88539:function(x,r,n){"use strict";var e=n(40033);x.exports=function(a){return e(function(){var t=""[a]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},50233:function(x,r,n){"use strict";var e=n(67250),a=n(61365),t=n(12605),o=n(16952),p=e("".charAt),b=e("".charCodeAt),y=e("".slice),I=function(C){return function(i,c){var m=t(o(i)),u=a(c),d=m.length,s,l;return u<0||u>=d?C?"":void 0:(s=b(m,u),s<55296||s>56319||u+1===d||(l=b(m,u+1))<56320||l>57343?C?p(m,u):s:C?y(m,u,u+2):(s-55296<<10)+(l-56320)+65536)}};x.exports={codeAt:I(!1),charAt:I(!0)}},34125:function(x,r,n){"use strict";var e=n(63318);x.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(e)},24051:function(x,r,n){"use strict";var e=n(67250),a=n(10188),t=n(12605),o=n(62443),p=n(16952),b=e(o),y=e("".slice),I=Math.ceil,k=function(i){return function(c,m,u){var d=t(p(c)),s=a(m),l=d.length,h=u===void 0?" ":t(u),N,v;return s<=l||h===""?d:(N=s-l,v=b(h,I(N/h.length)),v.length>N&&(v=y(v,0,N)),i?d+v:v+d)}};x.exports={start:k(!1),end:k(!0)}},62443:function(x,r,n){"use strict";var e=n(61365),a=n(12605),t=n(16952),o=RangeError;x.exports=function(){function p(b){var y=a(t(this)),I="",k=e(b);if(k<0||k===1/0)throw new o("Wrong number of repetitions");for(;k>0;(k>>>=1)&&(y+=y))k&1&&(I+=y);return I}return p}()},43476:function(x,r,n){"use strict";var e=n(92648).end,a=n(90012);x.exports=a("trimEnd")?function(){function t(){return e(this)}return t}():"".trimEnd},90012:function(x,r,n){"use strict";var e=n(70520).PROPER,a=n(40033),t=n(4198),o="\u200B\x85\u180E";x.exports=function(p){return a(function(){return!!t[p]()||o[p]()!==o||e&&t[p].name!==p})}},43885:function(x,r,n){"use strict";var e=n(92648).start,a=n(90012);x.exports=a("trimStart")?function(){function t(){return e(this)}return t}():"".trimStart},92648:function(x,r,n){"use strict";var e=n(67250),a=n(16952),t=n(12605),o=n(4198),p=e("".replace),b=RegExp("^["+o+"]+"),y=RegExp("(^|[^"+o+"])["+o+"]+$"),I=function(C){return function(i){var c=t(a(i));return C&1&&(c=p(c,b,"")),C&2&&(c=p(c,y,"$1")),c}};x.exports={start:I(1),end:I(2),trim:I(3)}},52357:function(x,r,n){"use strict";var e=n(5026),a=n(40033),t=n(74685),o=t.String;x.exports=!!Object.getOwnPropertySymbols&&!a(function(){var p=Symbol("symbol detection");return!o(p)||!(Object(p)instanceof Symbol)||!Symbol.sham&&e&&e<41})},52360:function(x,r,n){"use strict";var e=n(91495),a=n(4009),t=n(24697),o=n(55938);x.exports=function(){var p=a("Symbol"),b=p&&p.prototype,y=b&&b.valueOf,I=t("toPrimitive");b&&!b[I]&&o(b,I,function(k){return e(y,this)},{arity:1})}},66570:function(x,r,n){"use strict";var e=n(52357);x.exports=e&&!!Symbol.for&&!!Symbol.keyFor},60375:function(x,r,n){"use strict";var e=n(74685),a=n(61267),t=n(75754),o=n(55747),p=n(45299),b=n(40033),y=n(5315),I=n(54602),k=n(12689),C=n(24986),i=n(83433),c=n(81702),m=e.setImmediate,u=e.clearImmediate,d=e.process,s=e.Dispatch,l=e.Function,h=e.MessageChannel,N=e.String,v=0,f={},g="onreadystatechange",V,B,S,L;b(function(){V=e.location});var w=function(D){if(p(f,D)){var M=f[D];delete f[D],M()}},A=function(D){return function(){w(D)}},T=function(D){w(D.data)},E=function(D){e.postMessage(N(D),V.protocol+"//"+V.host)};(!m||!u)&&(m=function(){function P(D){C(arguments.length,1);var M=o(D)?D:l(D),O=I(arguments,1);return f[++v]=function(){a(M,void 0,O)},B(v),v}return P}(),u=function(){function P(D){delete f[D]}return P}(),c?B=function(D){d.nextTick(A(D))}:s&&s.now?B=function(D){s.now(A(D))}:h&&!i?(S=new h,L=S.port2,S.port1.onmessage=T,B=t(L.postMessage,L)):e.addEventListener&&o(e.postMessage)&&!e.importScripts&&V&&V.protocol!=="file:"&&!b(E)?(B=E,e.addEventListener("message",T,!1)):g in k("script")?B=function(D){y.appendChild(k("script"))[g]=function(){y.removeChild(this),w(D)}}:B=function(D){setTimeout(A(D),0)}),x.exports={set:m,clear:u}},46438:function(x,r,n){"use strict";var e=n(67250);x.exports=e(1 .valueOf)},13912:function(x,r,n){"use strict";var e=n(61365),a=Math.max,t=Math.min;x.exports=function(o,p){var b=e(o);return b<0?a(b+p,0):t(b,p)}},61484:function(x,r,n){"use strict";var e=n(24843),a=TypeError;x.exports=function(t){var o=e(t,"number");if(typeof o=="number")throw new a("Can't convert number to bigint");return BigInt(o)}},43806:function(x,r,n){"use strict";var e=n(61365),a=n(10188),t=RangeError;x.exports=function(o){if(o===void 0)return 0;var p=e(o),b=a(p);if(p!==b)throw new t("Wrong length or index");return b}},57591:function(x,r,n){"use strict";var e=n(37457),a=n(16952);x.exports=function(t){return e(a(t))}},61365:function(x,r,n){"use strict";var e=n(21119);x.exports=function(a){var t=+a;return t!==t||t===0?0:e(t)}},10188:function(x,r,n){"use strict";var e=n(61365),a=Math.min;x.exports=function(t){var o=e(t);return o>0?a(o,9007199254740991):0}},46771:function(x,r,n){"use strict";var e=n(16952),a=Object;x.exports=function(t){return a(e(t))}},56043:function(x,r,n){"use strict";var e=n(16140),a=RangeError;x.exports=function(t,o){var p=e(t);if(p%o)throw new a("Wrong offset");return p}},16140:function(x,r,n){"use strict";var e=n(61365),a=RangeError;x.exports=function(t){var o=e(t);if(o<0)throw new a("The argument can't be less than 0");return o}},24843:function(x,r,n){"use strict";var e=n(91495),a=n(77568),t=n(71399),o=n(78060),p=n(13396),b=n(24697),y=TypeError,I=b("toPrimitive");x.exports=function(k,C){if(!a(k)||t(k))return k;var i=o(k,I),c;if(i){if(C===void 0&&(C="default"),c=e(i,k,C),!a(c)||t(c))return c;throw new y("Can't convert object to primitive value")}return C===void 0&&(C="number"),p(k,C)}},767:function(x,r,n){"use strict";var e=n(24843),a=n(71399);x.exports=function(t){var o=e(t,"string");return a(o)?o:o+""}},2650:function(x,r,n){"use strict";var e=n(24697),a=e("toStringTag"),t={};t[a]="z",x.exports=String(t)==="[object z]"},12605:function(x,r,n){"use strict";var e=n(2281),a=String;x.exports=function(t){if(e(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(t)}},15409:function(x){"use strict";var r=Math.round;x.exports=function(n){var e=r(n);return e<0?0:e>255?255:e&255}},89393:function(x){"use strict";var r=String;x.exports=function(n){try{return r(n)}catch(e){return"Object"}}},80185:function(x,r,n){"use strict";var e=n(63964),a=n(74685),t=n(91495),o=n(58310),p=n(86563),b=n(4246),y=n(37336),I=n(60077),k=n(87458),C=n(37909),i=n(5841),c=n(10188),m=n(43806),u=n(56043),d=n(15409),s=n(767),l=n(45299),h=n(2281),N=n(77568),v=n(71399),f=n(80674),g=n(21287),V=n(76649),B=n(37310).f,S=n(3805),L=n(22603).forEach,w=n(58491),A=n(73936),T=n(74595),E=n(27193),P=n(78008),D=n(5419),M=n(5781),O=D.get,R=D.set,j=D.enforce,_=T.f,W=E.f,z=a.RangeError,K=y.ArrayBuffer,G=K.prototype,Q=y.DataView,J=b.NATIVE_ARRAY_BUFFER_VIEWS,ue=b.TYPED_ARRAY_TAG,ie=b.TypedArray,pe=b.TypedArrayPrototype,te=b.isTypedArray,q="BYTES_PER_ELEMENT",ne="Wrong length",le=function(Y,ve){A(Y,ve,{configurable:!0,get:function(){function he(){return O(this)[ve]}return he}()})},ee=function(Y){var ve;return g(G,Y)||(ve=h(Y))==="ArrayBuffer"||ve==="SharedArrayBuffer"},re=function(Y,ve){return te(Y)&&!v(ve)&&ve in Y&&i(+ve)&&ve>=0},oe=function(){function me(Y,ve){return ve=s(ve),re(Y,ve)?k(2,Y[ve]):W(Y,ve)}return me}(),fe=function(){function me(Y,ve,he){return ve=s(ve),re(Y,ve)&&N(he)&&l(he,"value")&&!l(he,"get")&&!l(he,"set")&&!he.configurable&&(!l(he,"writable")||he.writable)&&(!l(he,"enumerable")||he.enumerable)?(Y[ve]=he.value,Y):_(Y,ve,he)}return me}();o?(J||(E.f=oe,T.f=fe,le(pe,"buffer"),le(pe,"byteOffset"),le(pe,"byteLength"),le(pe,"length")),e({target:"Object",stat:!0,forced:!J},{getOwnPropertyDescriptor:oe,defineProperty:fe}),x.exports=function(me,Y,ve){var he=me.match(/\d+/)[0]/8,Ve=me+(ve?"Clamped":"")+"Array",Be="get"+me,be="set"+me,Le=a[Ve],we=Le,xe=we&&we.prototype,Re={},He=function(ge,Se){var Pe=O(ge);return Pe.view[Be](Se*he+Pe.byteOffset,!0)},ye=function(ge,Se,Pe){var je=O(ge);je.view[be](Se*he+je.byteOffset,ve?d(Pe):Pe,!0)},de=function(ge,Se){_(ge,Se,{get:function(){function Pe(){return He(this,Se)}return Pe}(),set:function(){function Pe(je){return ye(this,Se,je)}return Pe}(),enumerable:!0})};J?p&&(we=Y(function(ke,ge,Se,Pe){return I(ke,xe),M(function(){return N(ge)?ee(ge)?Pe!==void 0?new Le(ge,u(Se,he),Pe):Se!==void 0?new Le(ge,u(Se,he)):new Le(ge):te(ge)?P(we,ge):t(S,we,ge):new Le(m(ge))}(),ke,we)}),V&&V(we,ie),L(B(Le),function(ke){ke in we||C(we,ke,Le[ke])}),we.prototype=xe):(we=Y(function(ke,ge,Se,Pe){I(ke,xe);var je=0,Fe=0,ze,We,Ue;if(!N(ge))Ue=m(ge),We=Ue*he,ze=new K(We);else if(ee(ge)){ze=ge,Fe=u(Se,he);var Xe=ge.byteLength;if(Pe===void 0){if(Xe%he)throw new z(ne);if(We=Xe-Fe,We<0)throw new z(ne)}else if(We=c(Pe)*he,We+Fe>Xe)throw new z(ne);Ue=We/he}else return te(ge)?P(we,ge):t(S,we,ge);for(R(ke,{buffer:ze,byteOffset:Fe,byteLength:We,length:Ue,view:new Q(ze)});je1?arguments[1]:void 0,h=l!==void 0,N=y(d),v,f,g,V,B,S,L,w;if(N&&!I(N))for(L=b(d,N),w=L.next,d=[];!(S=a(w,L)).done;)d.push(S.value);for(h&&s>2&&(l=e(l,arguments[2])),f=p(d),g=new(C(u))(f),V=k(g),v=0;f>v;v++)B=h?l(d[v],v):d[v],g[v]=V?i(B):+B;return g}return c}()},31082:function(x,r,n){"use strict";var e=n(4246),a=n(28987),t=e.aTypedArrayConstructor,o=e.getTypedArrayConstructor;x.exports=function(p){return t(a(p,o(p)))}},16738:function(x,r,n){"use strict";var e=n(67250),a=0,t=Math.random(),o=e(1 .toString);x.exports=function(p){return"Symbol("+(p===void 0?"":p)+")_"+o(++a+t,36)}},1062:function(x,r,n){"use strict";var e=n(52357);x.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},80944:function(x,r,n){"use strict";var e=n(58310),a=n(40033);x.exports=e&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},24986:function(x){"use strict";var r=TypeError;x.exports=function(n,e){if(n=51||!a(function(){var l=[];return l[m]=!1,l.concat()[0]!==l}),d=function(h){if(!o(h))return!1;var N=h[m];return N!==void 0?!!N:t(h)},s=!u||!C("concat");e({target:"Array",proto:!0,arity:1,forced:s},{concat:function(){function l(h){var N=p(this),v=k(N,0),f=0,g,V,B,S,L;for(g=-1,B=arguments.length;g1?arguments[1]:void 0)}return p}()})},68933:function(x,r,n){"use strict";var e=n(63964),a=n(88471),t=n(80575);e({target:"Array",proto:!0},{fill:a}),t("fill")},47830:function(x,r,n){"use strict";var e=n(63964),a=n(22603).filter,t=n(44091),o=t("filter");e({target:"Array",proto:!0,forced:!o},{filter:function(){function p(b){return a(this,b,arguments.length>1?arguments[1]:void 0)}return p}()})},64094:function(x,r,n){"use strict";var e=n(63964),a=n(22603).findIndex,t=n(80575),o="findIndex",p=!0;o in[]&&Array(1)[o](function(){p=!1}),e({target:"Array",proto:!0,forced:p},{findIndex:function(){function b(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return b}()}),t(o)},13455:function(x,r,n){"use strict";var e=n(63964),a=n(22603).find,t=n(80575),o="find",p=!0;o in[]&&Array(1)[o](function(){p=!1}),e({target:"Array",proto:!0,forced:p},{find:function(){function b(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return b}()}),t(o)},32384:function(x,r,n){"use strict";var e=n(63964),a=n(65561),t=n(10320),o=n(46771),p=n(24760),b=n(57823);e({target:"Array",proto:!0},{flatMap:function(){function y(I){var k=o(this),C=p(k),i;return t(I),i=b(k,0),i.length=a(i,k,k,C,0,1,I,arguments.length>1?arguments[1]:void 0),i}return y}()})},61915:function(x,r,n){"use strict";var e=n(63964),a=n(65561),t=n(46771),o=n(24760),p=n(61365),b=n(57823);e({target:"Array",proto:!0},{flat:function(){function y(){var I=arguments.length?arguments[0]:void 0,k=t(this),C=o(k),i=b(k,0);return i.length=a(i,k,k,C,0,I===void 0?1:p(I)),i}return y}()})},25579:function(x,r,n){"use strict";var e=n(63964),a=n(35601);e({target:"Array",proto:!0,forced:[].forEach!==a},{forEach:a})},63532:function(x,r,n){"use strict";var e=n(63964),a=n(73174),t=n(92490),o=!t(function(p){Array.from(p)});e({target:"Array",stat:!0,forced:o},{from:a})},33425:function(x,r,n){"use strict";var e=n(63964),a=n(14211).includes,t=n(40033),o=n(80575),p=t(function(){return!Array(1).includes()});e({target:"Array",proto:!0,forced:p},{includes:function(){function b(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return b}()}),o("includes")},43894:function(x,r,n){"use strict";var e=n(63964),a=n(71138),t=n(14211).indexOf,o=n(55528),p=a([].indexOf),b=!!p&&1/p([1],1,-0)<0,y=b||!o("indexOf");e({target:"Array",proto:!0,forced:y},{indexOf:function(){function I(k){var C=arguments.length>1?arguments[1]:void 0;return b?p(this,k,C)||0:t(this,k,C)}return I}()})},99636:function(x,r,n){"use strict";var e=n(63964),a=n(37386);e({target:"Array",stat:!0},{isArray:a})},34570:function(x,r,n){"use strict";var e=n(57591),a=n(80575),t=n(83967),o=n(5419),p=n(74595).f,b=n(65574),y=n(5959),I=n(4493),k=n(58310),C="Array Iterator",i=o.set,c=o.getterFor(C);x.exports=b(Array,"Array",function(u,d){i(this,{type:C,target:e(u),index:0,kind:d})},function(){var u=c(this),d=u.target,s=u.index++;if(!d||s>=d.length)return u.target=void 0,y(void 0,!0);switch(u.kind){case"keys":return y(s,!1);case"values":return y(d[s],!1)}return y([s,d[s]],!1)},"values");var m=t.Arguments=t.Array;if(a("keys"),a("values"),a("entries"),!I&&k&&m.name!=="values")try{p(m,"name",{value:"values"})}catch(u){}},94432:function(x,r,n){"use strict";var e=n(63964),a=n(67250),t=n(37457),o=n(57591),p=n(55528),b=a([].join),y=t!==Object,I=y||!p("join",",");e({target:"Array",proto:!0,forced:I},{join:function(){function k(C){return b(o(this),C===void 0?",":C)}return k}()})},24683:function(x,r,n){"use strict";var e=n(63964),a=n(1325);e({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},69984:function(x,r,n){"use strict";var e=n(63964),a=n(22603).map,t=n(44091),o=t("map");e({target:"Array",proto:!0,forced:!o},{map:function(){function p(b){return a(this,b,arguments.length>1?arguments[1]:void 0)}return p}()})},32089:function(x,r,n){"use strict";var e=n(63964),a=n(40033),t=n(1031),o=n(60102),p=Array,b=a(function(){function y(){}return!(p.of.call(y)instanceof y)});e({target:"Array",stat:!0,forced:b},{of:function(){function y(){for(var I=0,k=arguments.length,C=new(t(this)?this:p)(k);k>I;)o(C,I,arguments[I++]);return C.length=k,C}return y}()})},29645:function(x,r,n){"use strict";var e=n(63964),a=n(56844).right,t=n(55528),o=n(5026),p=n(81702),b=!p&&o>79&&o<83,y=b||!t("reduceRight");e({target:"Array",proto:!0,forced:y},{reduceRight:function(){function I(k){return a(this,k,arguments.length,arguments.length>1?arguments[1]:void 0)}return I}()})},60206:function(x,r,n){"use strict";var e=n(63964),a=n(56844).left,t=n(55528),o=n(5026),p=n(81702),b=!p&&o>79&&o<83,y=b||!t("reduce");e({target:"Array",proto:!0,forced:y},{reduce:function(){function I(k){var C=arguments.length;return a(this,k,C,C>1?arguments[1]:void 0)}return I}()})},4788:function(x,r,n){"use strict";var e=n(63964),a=n(67250),t=n(37386),o=a([].reverse),p=[1,2];e({target:"Array",proto:!0,forced:String(p)===String(p.reverse())},{reverse:function(){function b(){return t(this)&&(this.length=this.length),o(this)}return b}()})},58672:function(x,r,n){"use strict";var e=n(63964),a=n(37386),t=n(1031),o=n(77568),p=n(13912),b=n(24760),y=n(57591),I=n(60102),k=n(24697),C=n(44091),i=n(54602),c=C("slice"),m=k("species"),u=Array,d=Math.max;e({target:"Array",proto:!0,forced:!c},{slice:function(){function s(l,h){var N=y(this),v=b(N),f=p(l,v),g=p(h===void 0?v:h,v),V,B,S;if(a(N)&&(V=N.constructor,t(V)&&(V===u||a(V.prototype))?V=void 0:o(V)&&(V=V[m],V===null&&(V=void 0)),V===u||V===void 0))return i(N,f,g);for(B=new(V===void 0?u:V)(d(g-f,0)),S=0;f1?arguments[1]:void 0)}return p}()})},48968:function(x,r,n){"use strict";var e=n(63964),a=n(67250),t=n(10320),o=n(46771),p=n(24760),b=n(95108),y=n(12605),I=n(40033),k=n(90274),C=n(55528),i=n(652),c=n(19228),m=n(5026),u=n(9342),d=[],s=a(d.sort),l=a(d.push),h=I(function(){d.sort(void 0)}),N=I(function(){d.sort(null)}),v=C("sort"),f=!I(function(){if(m)return m<70;if(!(i&&i>3)){if(c)return!0;if(u)return u<603;var B="",S,L,w,A;for(S=65;S<76;S++){switch(L=String.fromCharCode(S),S){case 66:case 69:case 70:case 72:w=3;break;case 68:case 71:w=4;break;default:w=2}for(A=0;A<47;A++)d.push({k:L+A,v:w})}for(d.sort(function(T,E){return E.v-T.v}),A=0;Ay(w)?1:-1}};e({target:"Array",proto:!0,forced:g},{sort:function(){function B(S){S!==void 0&&t(S);var L=o(this);if(f)return S===void 0?s(L):s(L,S);var w=[],A=p(L),T,E;for(E=0;EN-V+g;S--)C(h,S-1)}else if(g>V)for(S=N-V;S>v;S--)L=S+V-1,w=S+g-1,L in h?h[w]=h[L]:C(h,w);for(S=0;S9490626562425156e-8?o(C)+b:a(C-1+p(C-1)*p(C+1))}return I}()})},59660:function(x,r,n){"use strict";var e=n(63964),a=Math.asinh,t=Math.log,o=Math.sqrt;function p(y){var I=+y;return!isFinite(I)||I===0?I:I<0?-p(-I):t(I+o(I*I+1))}var b=!(a&&1/a(0)>0);e({target:"Math",stat:!0,forced:b},{asinh:p})},15383:function(x,r,n){"use strict";var e=n(63964),a=Math.atanh,t=Math.log,o=!(a&&1/a(-0)<0);e({target:"Math",stat:!0,forced:o},{atanh:function(){function p(b){var y=+b;return y===0?y:t((1+y)/(1-y))/2}return p}()})},92866:function(x,r,n){"use strict";var e=n(63964),a=n(22172),t=Math.abs,o=Math.pow;e({target:"Math",stat:!0},{cbrt:function(){function p(b){var y=+b;return a(y)*o(t(y),.3333333333333333)}return p}()})},86107:function(x,r,n){"use strict";var e=n(63964),a=Math.floor,t=Math.log,o=Math.LOG2E;e({target:"Math",stat:!0},{clz32:function(){function p(b){var y=b>>>0;return y?31-a(t(y+.5)*o):32}return p}()})},29248:function(x,r,n){"use strict";var e=n(63964),a=n(82040),t=Math.cosh,o=Math.abs,p=Math.E,b=!t||t(710)===1/0;e({target:"Math",stat:!0,forced:b},{cosh:function(){function y(I){var k=a(o(I)-1)+1;return(k+1/(k*p*p))*(p/2)}return y}()})},52540:function(x,r,n){"use strict";var e=n(63964),a=n(82040);e({target:"Math",stat:!0,forced:a!==Math.expm1},{expm1:a})},79007:function(x,r,n){"use strict";var e=n(63964),a=n(95867);e({target:"Math",stat:!0},{fround:a})},77199:function(x,r,n){"use strict";var e=n(63964),a=Math.hypot,t=Math.abs,o=Math.sqrt,p=!!a&&a(1/0,NaN)!==1/0;e({target:"Math",stat:!0,arity:2,forced:p},{hypot:function(){function b(y,I){for(var k=0,C=0,i=arguments.length,c=0,m,u;C0?(u=m/c,k+=u*u):k+=m;return c===1/0?1/0:c*o(k)}return b}()})},6522:function(x,r,n){"use strict";var e=n(63964),a=n(40033),t=Math.imul,o=a(function(){return t(4294967295,5)!==-5||t.length!==2});e({target:"Math",stat:!0,forced:o},{imul:function(){function p(b,y){var I=65535,k=+b,C=+y,i=I&k,c=I&C;return 0|i*c+((I&k>>>16)*c+i*(I&C>>>16)<<16>>>0)}return p}()})},95542:function(x,r,n){"use strict";var e=n(63964),a=n(75002);e({target:"Math",stat:!0},{log10:a})},2966:function(x,r,n){"use strict";var e=n(63964),a=n(90874);e({target:"Math",stat:!0},{log1p:a})},20997:function(x,r,n){"use strict";var e=n(63964),a=Math.log,t=Math.LN2;e({target:"Math",stat:!0},{log2:function(){function o(p){return a(p)/t}return o}()})},57400:function(x,r,n){"use strict";var e=n(63964),a=n(22172);e({target:"Math",stat:!0},{sign:a})},45571:function(x,r,n){"use strict";var e=n(63964),a=n(40033),t=n(82040),o=Math.abs,p=Math.exp,b=Math.E,y=a(function(){return Math.sinh(-2e-17)!==-2e-17});e({target:"Math",stat:!0,forced:y},{sinh:function(){function I(k){var C=+k;return o(C)<1?(t(C)-t(-C))/2:(p(C-1)-p(-C-1))*(b/2)}return I}()})},54800:function(x,r,n){"use strict";var e=n(63964),a=n(82040),t=Math.exp;e({target:"Math",stat:!0},{tanh:function(){function o(p){var b=+p,y=a(b),I=a(-b);return y===1/0?1:I===1/0?-1:(y-I)/(t(b)+t(-b))}return o}()})},15709:function(x,r,n){"use strict";var e=n(84925);e(Math,"Math",!0)},76059:function(x,r,n){"use strict";var e=n(63964),a=n(21119);e({target:"Math",stat:!0},{trunc:a})},96614:function(x,r,n){"use strict";var e=n(63964),a=n(4493),t=n(58310),o=n(74685),p=n(61765),b=n(67250),y=n(41314),I=n(45299),k=n(5781),C=n(21287),i=n(71399),c=n(24843),m=n(40033),u=n(37310).f,d=n(27193).f,s=n(74595).f,l=n(46438),h=n(92648).trim,N="Number",v=o[N],f=p[N],g=v.prototype,V=o.TypeError,B=b("".slice),S=b("".charCodeAt),L=function(M){var O=c(M,"number");return typeof O=="bigint"?O:w(O)},w=function(M){var O=c(M,"number"),R,j,_,W,z,K,G,Q;if(i(O))throw new V("Cannot convert a Symbol value to a number");if(typeof O=="string"&&O.length>2){if(O=h(O),R=S(O,0),R===43||R===45){if(j=S(O,2),j===88||j===120)return NaN}else if(R===48){switch(S(O,1)){case 66:case 98:_=2,W=49;break;case 79:case 111:_=8,W=55;break;default:return+O}for(z=B(O,2),K=z.length,G=0;GW)return NaN;return parseInt(z,_)}}return+O},A=y(N,!v(" 0o1")||!v("0b1")||v("+0x1")),T=function(M){return C(g,M)&&m(function(){l(M)})},E=function(){function D(M){var O=arguments.length<1?0:v(L(M));return T(this)?k(Object(O),this,E):O}return D}();E.prototype=g,A&&!a&&(g.constructor=E),e({global:!0,constructor:!0,wrap:!0,forced:A},{Number:E});var P=function(M,O){for(var R=t?u(O):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),j=0,_;R.length>j;j++)I(O,_=R[j])&&!I(M,_)&&s(M,_,d(O,_))};a&&f&&P(p[N],f),(A||a)&&P(p[N],v)},324:function(x,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},90426:function(x,r,n){"use strict";var e=n(63964),a=n(3294);e({target:"Number",stat:!0},{isFinite:a})},95443:function(x,r,n){"use strict";var e=n(63964),a=n(5841);e({target:"Number",stat:!0},{isInteger:a})},87968:function(x,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0},{isNaN:function(){function a(t){return t!==t}return a}()})},55007:function(x,r,n){"use strict";var e=n(63964),a=n(5841),t=Math.abs;e({target:"Number",stat:!0},{isSafeInteger:function(){function o(p){return a(p)&&t(p)<=9007199254740991}return o}()})},55323:function(x,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},13521:function(x,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},5006:function(x,r,n){"use strict";var e=n(63964),a=n(28506);e({target:"Number",stat:!0,forced:Number.parseFloat!==a},{parseFloat:a})},99009:function(x,r,n){"use strict";var e=n(63964),a=n(13693);e({target:"Number",stat:!0,forced:Number.parseInt!==a},{parseInt:a})},85770:function(x,r,n){"use strict";var e=n(63964),a=n(67250),t=n(61365),o=n(46438),p=n(62443),b=n(40033),y=RangeError,I=String,k=Math.floor,C=a(p),i=a("".slice),c=a(1 .toFixed),m=function N(v,f,g){return f===0?g:f%2===1?N(v,f-1,g*v):N(v*v,f/2,g)},u=function(v){for(var f=0,g=v;g>=4096;)f+=12,g/=4096;for(;g>=2;)f+=1,g/=2;return f},d=function(v,f,g){for(var V=-1,B=g;++V<6;)B+=f*v[V],v[V]=B%1e7,B=k(B/1e7)},s=function(v,f){for(var g=6,V=0;--g>=0;)V+=v[g],v[g]=k(V/f),V=V%f*1e7},l=function(v){for(var f=6,g="";--f>=0;)if(g!==""||f===0||v[f]!==0){var V=I(v[f]);g=g===""?V:g+C("0",7-V.length)+V}return g},h=b(function(){return c(8e-5,3)!=="0.000"||c(.9,0)!=="1"||c(1.255,2)!=="1.25"||c(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!b(function(){c({})});e({target:"Number",proto:!0,forced:h},{toFixed:function(){function N(v){var f=o(this),g=t(v),V=[0,0,0,0,0,0],B="",S="0",L,w,A,T;if(g<0||g>20)throw new y("Incorrect fraction digits");if(f!==f)return"NaN";if(f<=-1e21||f>=1e21)return I(f);if(f<0&&(B="-",f=-f),f>1e-21)if(L=u(f*m(2,69,1))-69,w=L<0?f*m(2,-L,1):f/m(2,L,1),w*=4503599627370496,L=52-L,L>0){for(d(V,0,w),A=g;A>=7;)d(V,1e7,0),A-=7;for(d(V,m(10,A,1),0),A=L-1;A>=23;)s(V,8388608),A-=23;s(V,1<0?(T=S.length,S=B+(T<=g?"0."+C("0",g-T)+S:i(S,0,T-g)+"."+i(S,T-g))):S=B+S,S}return N}()})},23532:function(x,r,n){"use strict";var e=n(63964),a=n(67250),t=n(40033),o=n(46438),p=a(1 .toPrecision),b=t(function(){return p(1,void 0)!=="1"})||!t(function(){p({})});e({target:"Number",proto:!0,forced:b},{toPrecision:function(){function y(I){return I===void 0?p(o(this)):p(o(this),I)}return y}()})},87119:function(x,r,n){"use strict";var e=n(63964),a=n(41143);e({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},78618:function(x,r,n){"use strict";var e=n(63964),a=n(58310),t=n(80674);e({target:"Object",stat:!0,sham:!a},{create:t})},27129:function(x,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(10320),p=n(46771),b=n(74595);a&&e({target:"Object",proto:!0,forced:t},{__defineGetter__:function(){function y(I,k){b.f(p(this),I,{get:o(k),enumerable:!0,configurable:!0})}return y}()})},31943:function(x,r,n){"use strict";var e=n(63964),a=n(58310),t=n(24239).f;e({target:"Object",stat:!0,forced:Object.defineProperties!==t,sham:!a},{defineProperties:t})},3579:function(x,r,n){"use strict";var e=n(63964),a=n(58310),t=n(74595).f;e({target:"Object",stat:!0,forced:Object.defineProperty!==t,sham:!a},{defineProperty:t})},97397:function(x,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(10320),p=n(46771),b=n(74595);a&&e({target:"Object",proto:!0,forced:t},{__defineSetter__:function(){function y(I,k){b.f(p(this),I,{set:o(k),enumerable:!0,configurable:!0})}return y}()})},85028:function(x,r,n){"use strict";var e=n(63964),a=n(70915).entries;e({target:"Object",stat:!0},{entries:function(){function t(o){return a(o)}return t}()})},8225:function(x,r,n){"use strict";var e=n(63964),a=n(50730),t=n(40033),o=n(77568),p=n(81969).onFreeze,b=Object.freeze,y=t(function(){b(1)});e({target:"Object",stat:!0,forced:y,sham:!a},{freeze:function(){function I(k){return b&&o(k)?b(p(k)):k}return I}()})},43331:function(x,r,n){"use strict";var e=n(63964),a=n(49450),t=n(60102);e({target:"Object",stat:!0},{fromEntries:function(){function o(p){var b={};return a(p,function(y,I){t(b,y,I)},{AS_ENTRIES:!0}),b}return o}()})},62289:function(x,r,n){"use strict";var e=n(63964),a=n(40033),t=n(57591),o=n(27193).f,p=n(58310),b=!p||a(function(){o(1)});e({target:"Object",stat:!0,forced:b,sham:!p},{getOwnPropertyDescriptor:function(){function y(I,k){return o(t(I),k)}return y}()})},56196:function(x,r,n){"use strict";var e=n(63964),a=n(58310),t=n(97921),o=n(57591),p=n(27193),b=n(60102);e({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(){function y(I){for(var k=o(I),C=p.f,i=t(k),c={},m=0,u,d;i.length>m;)d=C(k,u=i[m++]),d!==void 0&&b(c,u,d);return c}return y}()})},2950:function(x,r,n){"use strict";var e=n(63964),a=n(40033),t=n(81644).f,o=a(function(){return!Object.getOwnPropertyNames(1)});e({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:t})},28603:function(x,r,n){"use strict";var e=n(63964),a=n(52357),t=n(40033),o=n(89235),p=n(46771),b=!a||t(function(){o.f(1)});e({target:"Object",stat:!0,forced:b},{getOwnPropertySymbols:function(){function y(I){var k=o.f;return k?k(p(I)):[]}return y}()})},44205:function(x,r,n){"use strict";var e=n(63964),a=n(40033),t=n(46771),o=n(36917),p=n(9225),b=a(function(){o(1)});e({target:"Object",stat:!0,forced:b,sham:!p},{getPrototypeOf:function(){function y(I){return o(t(I))}return y}()})},83186:function(x,r,n){"use strict";var e=n(63964),a=n(81834);e({target:"Object",stat:!0,forced:Object.isExtensible!==a},{isExtensible:a})},76065:function(x,r,n){"use strict";var e=n(63964),a=n(40033),t=n(77568),o=n(7462),p=n(3782),b=Object.isFrozen,y=p||a(function(){b(1)});e({target:"Object",stat:!0,forced:y},{isFrozen:function(){function I(k){return!t(k)||p&&o(k)==="ArrayBuffer"?!0:b?b(k):!1}return I}()})},13411:function(x,r,n){"use strict";var e=n(63964),a=n(40033),t=n(77568),o=n(7462),p=n(3782),b=Object.isSealed,y=p||a(function(){b(1)});e({target:"Object",stat:!0,forced:y},{isSealed:function(){function I(k){return!t(k)||p&&o(k)==="ArrayBuffer"?!0:b?b(k):!1}return I}()})},76882:function(x,r,n){"use strict";var e=n(63964),a=n(5700);e({target:"Object",stat:!0},{is:a})},26634:function(x,r,n){"use strict";var e=n(63964),a=n(46771),t=n(18450),o=n(40033),p=o(function(){t(1)});e({target:"Object",stat:!0,forced:p},{keys:function(){function b(y){return t(a(y))}return b}()})},53118:function(x,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(46771),p=n(767),b=n(36917),y=n(27193).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupGetter__:function(){function I(k){var C=o(this),i=p(k),c;do if(c=y(C,i))return c.get;while(C=b(C))}return I}()})},42514:function(x,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(46771),p=n(767),b=n(36917),y=n(27193).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupSetter__:function(){function I(k){var C=o(this),i=p(k),c;do if(c=y(C,i))return c.set;while(C=b(C))}return I}()})},84353:function(x,r,n){"use strict";var e=n(63964),a=n(77568),t=n(81969).onFreeze,o=n(50730),p=n(40033),b=Object.preventExtensions,y=p(function(){b(1)});e({target:"Object",stat:!0,forced:y,sham:!o},{preventExtensions:function(){function I(k){return b&&a(k)?b(t(k)):k}return I}()})},62987:function(x,r,n){"use strict";var e=n(63964),a=n(77568),t=n(81969).onFreeze,o=n(50730),p=n(40033),b=Object.seal,y=p(function(){b(1)});e({target:"Object",stat:!0,forced:y,sham:!o},{seal:function(){function I(k){return b&&a(k)?b(t(k)):k}return I}()})},48993:function(x,r,n){"use strict";var e=n(63964),a=n(76649);e({target:"Object",stat:!0},{setPrototypeOf:a})},52917:function(x,r,n){"use strict";var e=n(2650),a=n(55938),t=n(2509);e||a(Object.prototype,"toString",t,{unsafe:!0})},4972:function(x,r,n){"use strict";var e=n(63964),a=n(70915).values;e({target:"Object",stat:!0},{values:function(){function t(o){return a(o)}return t}()})},28913:function(x,r,n){"use strict";var e=n(63964),a=n(28506);e({global:!0,forced:parseFloat!==a},{parseFloat:a})},36382:function(x,r,n){"use strict";var e=n(63964),a=n(13693);e({global:!0,forced:parseInt!==a},{parseInt:a})},48865:function(x,r,n){"use strict";var e=n(63964),a=n(91495),t=n(10320),o=n(81837),p=n(10729),b=n(49450),y=n(48199);e({target:"Promise",stat:!0,forced:y},{all:function(){function I(k){var C=this,i=o.f(C),c=i.resolve,m=i.reject,u=p(function(){var d=t(C.resolve),s=[],l=0,h=1;b(k,function(N){var v=l++,f=!1;h++,a(d,C,N).then(function(g){f||(f=!0,s[v]=g,--h||c(s))},m)}),--h||c(s)});return u.error&&m(u.value),i.promise}return I}()})},70641:function(x,r,n){"use strict";var e=n(63964),a=n(4493),t=n(74854).CONSTRUCTOR,o=n(67512),p=n(4009),b=n(55747),y=n(55938),I=o&&o.prototype;if(e({target:"Promise",proto:!0,forced:t,real:!0},{catch:function(){function C(i){return this.then(void 0,i)}return C}()}),!a&&b(o)){var k=p("Promise").prototype.catch;I.catch!==k&&y(I,"catch",k,{unsafe:!0})}},75946:function(x,r,n){"use strict";var e=n(63964),a=n(4493),t=n(81702),o=n(74685),p=n(91495),b=n(55938),y=n(76649),I=n(84925),k=n(58491),C=n(10320),i=n(55747),c=n(77568),m=n(60077),u=n(28987),d=n(60375).set,s=n(37713),l=n(72259),h=n(10729),N=n(9547),v=n(5419),f=n(67512),g=n(74854),V=n(81837),B="Promise",S=g.CONSTRUCTOR,L=g.REJECTION_EVENT,w=g.SUBCLASSING,A=v.getterFor(B),T=v.set,E=f&&f.prototype,P=f,D=E,M=o.TypeError,O=o.document,R=o.process,j=V.f,_=j,W=!!(O&&O.createEvent&&o.dispatchEvent),z="unhandledrejection",K="rejectionhandled",G=0,Q=1,J=2,ue=1,ie=2,pe,te,q,ne,le=function(be){var Le;return c(be)&&i(Le=be.then)?Le:!1},ee=function(be,Le){var we=Le.value,xe=Le.state===Q,Re=xe?be.ok:be.fail,He=be.resolve,ye=be.reject,de=be.domain,Ce,ke,ge;try{Re?(xe||(Le.rejection===ie&&Y(Le),Le.rejection=ue),Re===!0?Ce=we:(de&&de.enter(),Ce=Re(we),de&&(de.exit(),ge=!0)),Ce===be.promise?ye(new M("Promise-chain cycle")):(ke=le(Ce))?p(ke,Ce,He,ye):He(Ce)):ye(we)}catch(Se){de&&!ge&&de.exit(),ye(Se)}},re=function(be,Le){be.notified||(be.notified=!0,s(function(){for(var we=be.reactions,xe;xe=we.get();)ee(xe,be);be.notified=!1,Le&&!be.rejection&&fe(be)}))},oe=function(be,Le,we){var xe,Re;W?(xe=O.createEvent("Event"),xe.promise=Le,xe.reason=we,xe.initEvent(be,!1,!0),o.dispatchEvent(xe)):xe={promise:Le,reason:we},!L&&(Re=o["on"+be])?Re(xe):be===z&&l("Unhandled promise rejection",we)},fe=function(be){p(d,o,function(){var Le=be.facade,we=be.value,xe=me(be),Re;if(xe&&(Re=h(function(){t?R.emit("unhandledRejection",we,Le):oe(z,Le,we)}),be.rejection=t||me(be)?ie:ue,Re.error))throw Re.value})},me=function(be){return be.rejection!==ue&&!be.parent},Y=function(be){p(d,o,function(){var Le=be.facade;t?R.emit("rejectionHandled",Le):oe(K,Le,be.value)})},ve=function(be,Le,we){return function(xe){be(Le,xe,we)}},he=function(be,Le,we){be.done||(be.done=!0,we&&(be=we),be.value=Le,be.state=J,re(be,!0))},Ve=function Be(be,Le,we){if(!be.done){be.done=!0,we&&(be=we);try{if(be.facade===Le)throw new M("Promise can't be resolved itself");var xe=le(Le);xe?s(function(){var Re={done:!1};try{p(xe,Le,ve(Be,Re,be),ve(he,Re,be))}catch(He){he(Re,He,be)}}):(be.value=Le,be.state=Q,re(be,!1))}catch(Re){he({done:!1},Re,be)}}};if(S&&(P=function(){function Be(be){m(this,D),C(be),p(pe,this);var Le=A(this);try{be(ve(Ve,Le),ve(he,Le))}catch(we){he(Le,we)}}return Be}(),D=P.prototype,pe=function(){function Be(be){T(this,{type:B,done:!1,notified:!1,parent:!1,reactions:new N,rejection:!1,state:G,value:void 0})}return Be}(),pe.prototype=b(D,"then",function(){function Be(be,Le){var we=A(this),xe=j(u(this,P));return we.parent=!0,xe.ok=i(be)?be:!0,xe.fail=i(Le)&&Le,xe.domain=t?R.domain:void 0,we.state===G?we.reactions.add(xe):s(function(){ee(xe,we)}),xe.promise}return Be}()),te=function(){var be=new pe,Le=A(be);this.promise=be,this.resolve=ve(Ve,Le),this.reject=ve(he,Le)},V.f=j=function(be){return be===P||be===q?new te(be):_(be)},!a&&i(f)&&E!==Object.prototype)){ne=E.then,w||b(E,"then",function(){function Be(be,Le){var we=this;return new P(function(xe,Re){p(ne,we,xe,Re)}).then(be,Le)}return Be}(),{unsafe:!0});try{delete E.constructor}catch(Be){}y&&y(E,D)}e({global:!0,constructor:!0,wrap:!0,forced:S},{Promise:P}),I(P,B,!1,!0),k(B)},69861:function(x,r,n){"use strict";var e=n(63964),a=n(4493),t=n(67512),o=n(40033),p=n(4009),b=n(55747),y=n(28987),I=n(66628),k=n(55938),C=t&&t.prototype,i=!!t&&o(function(){C.finally.call({then:function(){function m(){}return m}()},function(){})});if(e({target:"Promise",proto:!0,real:!0,forced:i},{finally:function(){function m(u){var d=y(this,p("Promise")),s=b(u);return this.then(s?function(l){return I(d,u()).then(function(){return l})}:u,s?function(l){return I(d,u()).then(function(){throw l})}:u)}return m}()}),!a&&b(t)){var c=p("Promise").prototype.finally;C.finally!==c&&k(C,"finally",c,{unsafe:!0})}},53092:function(x,r,n){"use strict";n(75946),n(48865),n(70641),n(16937),n(41719),n(59321)},16937:function(x,r,n){"use strict";var e=n(63964),a=n(91495),t=n(10320),o=n(81837),p=n(10729),b=n(49450),y=n(48199);e({target:"Promise",stat:!0,forced:y},{race:function(){function I(k){var C=this,i=o.f(C),c=i.reject,m=p(function(){var u=t(C.resolve);b(k,function(d){a(u,C,d).then(i.resolve,c)})});return m.error&&c(m.value),i.promise}return I}()})},41719:function(x,r,n){"use strict";var e=n(63964),a=n(81837),t=n(74854).CONSTRUCTOR;e({target:"Promise",stat:!0,forced:t},{reject:function(){function o(p){var b=a.f(this),y=b.reject;return y(p),b.promise}return o}()})},59321:function(x,r,n){"use strict";var e=n(63964),a=n(4009),t=n(4493),o=n(67512),p=n(74854).CONSTRUCTOR,b=n(66628),y=a("Promise"),I=t&&!p;e({target:"Promise",stat:!0,forced:t||p},{resolve:function(){function k(C){return b(I&&this===y?o:this,C)}return k}()})},29674:function(x,r,n){"use strict";var e=n(63964),a=n(61267),t=n(10320),o=n(30365),p=n(40033),b=!p(function(){Reflect.apply(function(){})});e({target:"Reflect",stat:!0,forced:b},{apply:function(){function y(I,k,C){return a(t(I),k,o(C))}return y}()})},81543:function(x,r,n){"use strict";var e=n(63964),a=n(4009),t=n(61267),o=n(66284),p=n(32606),b=n(30365),y=n(77568),I=n(80674),k=n(40033),C=a("Reflect","construct"),i=Object.prototype,c=[].push,m=k(function(){function s(){}return!(C(function(){},[],s)instanceof s)}),u=!k(function(){C(function(){})}),d=m||u;e({target:"Reflect",stat:!0,forced:d,sham:d},{construct:function(){function s(l,h){p(l),b(h);var N=arguments.length<3?l:p(arguments[2]);if(u&&!m)return C(l,h,N);if(l===N){switch(h.length){case 0:return new l;case 1:return new l(h[0]);case 2:return new l(h[0],h[1]);case 3:return new l(h[0],h[1],h[2]);case 4:return new l(h[0],h[1],h[2],h[3])}var v=[null];return t(c,v,h),new(t(o,l,v))}var f=N.prototype,g=I(y(f)?f:i),V=t(l,g,h);return y(V)?V:g}return s}()})},9373:function(x,r,n){"use strict";var e=n(63964),a=n(58310),t=n(30365),o=n(767),p=n(74595),b=n(40033),y=b(function(){Reflect.defineProperty(p.f({},1,{value:1}),1,{value:2})});e({target:"Reflect",stat:!0,forced:y,sham:!a},{defineProperty:function(){function I(k,C,i){t(k);var c=o(C);t(i);try{return p.f(k,c,i),!0}catch(m){return!1}}return I}()})},45093:function(x,r,n){"use strict";var e=n(63964),a=n(30365),t=n(27193).f;e({target:"Reflect",stat:!0},{deleteProperty:function(){function o(p,b){var y=t(a(p),b);return y&&!y.configurable?!1:delete p[b]}return o}()})},5815:function(x,r,n){"use strict";var e=n(63964),a=n(58310),t=n(30365),o=n(27193);e({target:"Reflect",stat:!0,sham:!a},{getOwnPropertyDescriptor:function(){function p(b,y){return o.f(t(b),y)}return p}()})},88527:function(x,r,n){"use strict";var e=n(63964),a=n(30365),t=n(36917),o=n(9225);e({target:"Reflect",stat:!0,sham:!o},{getPrototypeOf:function(){function p(b){return t(a(b))}return p}()})},63074:function(x,r,n){"use strict";var e=n(63964),a=n(91495),t=n(77568),o=n(30365),p=n(98373),b=n(27193),y=n(36917);function I(k,C){var i=arguments.length<3?k:arguments[2],c,m;if(o(k)===i)return k[C];if(c=b.f(k,C),c)return p(c)?c.value:c.get===void 0?void 0:a(c.get,i);if(t(m=y(k)))return I(m,C,i)}e({target:"Reflect",stat:!0},{get:I})},66390:function(x,r,n){"use strict";var e=n(63964);e({target:"Reflect",stat:!0},{has:function(){function a(t,o){return o in t}return a}()})},7784:function(x,r,n){"use strict";var e=n(63964),a=n(30365),t=n(81834);e({target:"Reflect",stat:!0},{isExtensible:function(){function o(p){return a(p),t(p)}return o}()})},50551:function(x,r,n){"use strict";var e=n(63964),a=n(97921);e({target:"Reflect",stat:!0},{ownKeys:a})},76483:function(x,r,n){"use strict";var e=n(63964),a=n(4009),t=n(30365),o=n(50730);e({target:"Reflect",stat:!0,sham:!o},{preventExtensions:function(){function p(b){t(b);try{var y=a("Object","preventExtensions");return y&&y(b),!0}catch(I){return!1}}return p}()})},63915:function(x,r,n){"use strict";var e=n(63964),a=n(30365),t=n(35908),o=n(76649);o&&e({target:"Reflect",stat:!0},{setPrototypeOf:function(){function p(b,y){a(b),t(y);try{return o(b,y),!0}catch(I){return!1}}return p}()})},92046:function(x,r,n){"use strict";var e=n(63964),a=n(91495),t=n(30365),o=n(77568),p=n(98373),b=n(40033),y=n(74595),I=n(27193),k=n(36917),C=n(87458);function i(m,u,d){var s=arguments.length<4?m:arguments[3],l=I.f(t(m),u),h,N,v;if(!l){if(o(N=k(m)))return i(N,u,d,s);l=C(0)}if(p(l)){if(l.writable===!1||!o(s))return!1;if(h=I.f(s,u)){if(h.get||h.set||h.writable===!1)return!1;h.value=d,y.f(s,u,h)}else y.f(s,u,C(0,d))}else{if(v=l.set,v===void 0)return!1;a(v,s,d)}return!0}var c=b(function(){var m=function(){},u=y.f(new m,"a",{configurable:!0});return Reflect.set(m.prototype,"a",1,u)!==!1});e({target:"Reflect",stat:!0,forced:c},{set:i})},51454:function(x,r,n){"use strict";var e=n(58310),a=n(74685),t=n(67250),o=n(41314),p=n(5781),b=n(37909),y=n(80674),I=n(37310).f,k=n(21287),C=n(72586),i=n(12605),c=n(73392),m=n(62115),u=n(34550),d=n(55938),s=n(40033),l=n(45299),h=n(5419).enforce,N=n(58491),v=n(24697),f=n(39173),g=n(35688),V=v("match"),B=a.RegExp,S=B.prototype,L=a.SyntaxError,w=t(S.exec),A=t("".charAt),T=t("".replace),E=t("".indexOf),P=t("".slice),D=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,M=/a/g,O=/a/g,R=new B(M)!==M,j=m.MISSED_STICKY,_=m.UNSUPPORTED_Y,W=e&&(!R||j||f||g||s(function(){return O[V]=!1,B(M)!==M||B(O)===O||String(B(M,"i"))!=="/a/i"})),z=function(ie){for(var pe=ie.length,te=0,q="",ne=!1,le;te<=pe;te++){if(le=A(ie,te),le==="\\"){q+=le+A(ie,++te);continue}!ne&&le==="."?q+="[\\s\\S]":(le==="["?ne=!0:le==="]"&&(ne=!1),q+=le)}return q},K=function(ie){for(var pe=ie.length,te=0,q="",ne=[],le=y(null),ee=!1,re=!1,oe=0,fe="",me;te<=pe;te++){if(me=A(ie,te),me==="\\")me+=A(ie,++te);else if(me==="]")ee=!1;else if(!ee)switch(!0){case me==="[":ee=!0;break;case me==="(":w(D,P(ie,te+1))&&(te+=2,re=!0),q+=me,oe++;continue;case(me===">"&&re):if(fe===""||l(le,fe))throw new L("Invalid capture group name");le[fe]=!0,ne[ne.length]=[fe,oe],re=!1,fe="";continue}re?fe+=me:q+=me}return[q,ne]};if(o("RegExp",W)){for(var G=function(){function ue(ie,pe){var te=k(S,this),q=C(ie),ne=pe===void 0,le=[],ee=ie,re,oe,fe,me,Y,ve;if(!te&&q&&ne&&ie.constructor===G)return ie;if((q||k(S,ie))&&(ie=ie.source,ne&&(pe=c(ee))),ie=ie===void 0?"":i(ie),pe=pe===void 0?"":i(pe),ee=ie,f&&"dotAll"in M&&(oe=!!pe&&E(pe,"s")>-1,oe&&(pe=T(pe,/s/g,""))),re=pe,j&&"sticky"in M&&(fe=!!pe&&E(pe,"y")>-1,fe&&_&&(pe=T(pe,/y/g,""))),g&&(me=K(ie),ie=me[0],le=me[1]),Y=p(B(ie,pe),te?this:S,G),(oe||fe||le.length)&&(ve=h(Y),oe&&(ve.dotAll=!0,ve.raw=G(z(ie),re)),fe&&(ve.sticky=!0),le.length&&(ve.groups=le)),ie!==ee)try{b(Y,"source",ee===""?"(?:)":ee)}catch(he){}return Y}return ue}(),Q=I(B),J=0;Q.length>J;)u(G,B,Q[J++]);S.constructor=G,G.prototype=S,d(a,"RegExp",G,{constructor:!0})}N("RegExp")},79669:function(x,r,n){"use strict";var e=n(63964),a=n(14489);e({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},23057:function(x,r,n){"use strict";var e=n(74685),a=n(58310),t=n(73936),o=n(70901),p=n(40033),b=e.RegExp,y=b.prototype,I=a&&p(function(){var k=!0;try{b(".","d")}catch(l){k=!1}var C={},i="",c=k?"dgimsy":"gimsy",m=function(h,N){Object.defineProperty(C,h,{get:function(){function v(){return i+=N,!0}return v}()})},u={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};k&&(u.hasIndices="d");for(var d in u)m(d,u[d]);var s=Object.getOwnPropertyDescriptor(y,"flags").get.call(C);return s!==c||i!==c});I&&t(y,"flags",{configurable:!0,get:o})},57983:function(x,r,n){"use strict";var e=n(70520).PROPER,a=n(55938),t=n(30365),o=n(12605),p=n(40033),b=n(73392),y="toString",I=RegExp.prototype,k=I[y],C=p(function(){return k.call({source:"a",flags:"b"})!=="/a/b"}),i=e&&k.name!==y;(C||i)&&a(I,y,function(){function c(){var m=t(this),u=o(m.source),d=o(b(m));return"/"+u+"/"+d}return c}(),{unsafe:!0})},1963:function(x,r,n){"use strict";var e=n(45150),a=n(41028);e("Set",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},17953:function(x,r,n){"use strict";n(1963)},95309:function(x,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("anchor")},{anchor:function(){function o(p){return a(this,"a","name",p)}return o}()})},82256:function(x,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("big")},{big:function(){function o(){return a(this,"big","","")}return o}()})},49484:function(x,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("blink")},{blink:function(){function o(){return a(this,"blink","","")}return o}()})},38931:function(x,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("bold")},{bold:function(){function o(){return a(this,"b","","")}return o}()})},30442:function(x,r,n){"use strict";var e=n(63964),a=n(50233).codeAt;e({target:"String",proto:!0},{codePointAt:function(){function t(o){return a(this,o)}return t}()})},6403:function(x,r,n){"use strict";var e=n(63964),a=n(71138),t=n(27193).f,o=n(10188),p=n(12605),b=n(86213),y=n(16952),I=n(45490),k=n(4493),C=a("".slice),i=Math.min,c=I("endsWith"),m=!k&&!c&&!!function(){var u=t(String.prototype,"endsWith");return u&&!u.writable}();e({target:"String",proto:!0,forced:!m&&!c},{endsWith:function(){function u(d){var s=p(y(this));b(d);var l=arguments.length>1?arguments[1]:void 0,h=s.length,N=l===void 0?h:i(o(l),h),v=p(d);return C(s,N-v.length,N)===v}return u}()})},39308:function(x,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("fixed")},{fixed:function(){function o(){return a(this,"tt","","")}return o}()})},91550:function(x,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("fontcolor")},{fontcolor:function(){function o(p){return a(this,"font","color",p)}return o}()})},75008:function(x,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("fontsize")},{fontsize:function(){function o(p){return a(this,"font","size",p)}return o}()})},9867:function(x,r,n){"use strict";var e=n(63964),a=n(67250),t=n(13912),o=RangeError,p=String.fromCharCode,b=String.fromCodePoint,y=a([].join),I=!!b&&b.length!==1;e({target:"String",stat:!0,arity:1,forced:I},{fromCodePoint:function(){function k(C){for(var i=[],c=arguments.length,m=0,u;c>m;){if(u=+arguments[m++],t(u,1114111)!==u)throw new o(u+" is not a valid code point");i[m]=u<65536?p(u):p(((u-=65536)>>10)+55296,u%1024+56320)}return y(i,"")}return k}()})},43673:function(x,r,n){"use strict";var e=n(63964),a=n(67250),t=n(86213),o=n(16952),p=n(12605),b=n(45490),y=a("".indexOf);e({target:"String",proto:!0,forced:!b("includes")},{includes:function(){function I(k){return!!~y(p(o(this)),p(t(k)),arguments.length>1?arguments[1]:void 0)}return I}()})},56027:function(x,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("italics")},{italics:function(){function o(){return a(this,"i","","")}return o}()})},12354:function(x,r,n){"use strict";var e=n(50233).charAt,a=n(12605),t=n(5419),o=n(65574),p=n(5959),b="String Iterator",y=t.set,I=t.getterFor(b);o(String,"String",function(k){y(this,{type:b,string:a(k),index:0})},function(){function k(){var C=I(this),i=C.string,c=C.index,m;return c>=i.length?p(void 0,!0):(m=e(i,c),C.index+=m.length,p(m,!1))}return k}())},50340:function(x,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("link")},{link:function(){function o(p){return a(this,"a","href",p)}return o}()})},22515:function(x,r,n){"use strict";var e=n(91495),a=n(79942),t=n(30365),o=n(42871),p=n(10188),b=n(12605),y=n(16952),I=n(78060),k=n(35483),C=n(28340);a("match",function(i,c,m){return[function(){function u(d){var s=y(this),l=o(d)?void 0:I(d,i);return l?e(l,d,s):new RegExp(d)[i](b(s))}return u}(),function(u){var d=t(this),s=b(u),l=m(c,d,s);if(l.done)return l.value;if(!d.global)return C(d,s);var h=d.unicode;d.lastIndex=0;for(var N=[],v=0,f;(f=C(d,s))!==null;){var g=b(f[0]);N[v]=g,g===""&&(d.lastIndex=k(s,p(d.lastIndex),h)),v++}return v===0?null:N}]})},5143:function(x,r,n){"use strict";var e=n(63964),a=n(24051).end,t=n(34125);e({target:"String",proto:!0,forced:t},{padEnd:function(){function o(p){return a(this,p,arguments.length>1?arguments[1]:void 0)}return o}()})},93514:function(x,r,n){"use strict";var e=n(63964),a=n(24051).start,t=n(34125);e({target:"String",proto:!0,forced:t},{padStart:function(){function o(p){return a(this,p,arguments.length>1?arguments[1]:void 0)}return o}()})},5416:function(x,r,n){"use strict";var e=n(63964),a=n(67250),t=n(57591),o=n(46771),p=n(12605),b=n(24760),y=a([].push),I=a([].join);e({target:"String",stat:!0},{raw:function(){function k(C){var i=t(o(C).raw),c=b(i);if(!c)return"";for(var m=arguments.length,u=[],d=0;;){if(y(u,p(i[d++])),d===c)return I(u,"");d")!=="7"});o("replace",function(T,E,P){var D=w?"$":"$0";return[function(){function M(O,R){var j=c(this),_=I(O)?void 0:u(O,h);return _?a(_,O,j,R):a(E,i(j),O,R)}return M}(),function(M,O){var R=b(this),j=i(M);if(typeof O=="string"&&V(O,D)===-1&&V(O,"$<")===-1){var _=P(E,R,j,O);if(_.done)return _.value}var W=y(O);W||(O=i(O));var z=R.global,K;z&&(K=R.unicode,R.lastIndex=0);for(var G=[],Q;Q=s(R,j),!(Q===null||(g(G,Q),!z));){var J=i(Q[0]);J===""&&(R.lastIndex=m(j,C(R.lastIndex),K))}for(var ue="",ie=0,pe=0;pe=ie&&(ue+=B(j,ie,q)+le,ie=q+te.length)}return ue+B(j,ie)}]},!A||!L||w)},63272:function(x,r,n){"use strict";var e=n(91495),a=n(79942),t=n(30365),o=n(42871),p=n(16952),b=n(5700),y=n(12605),I=n(78060),k=n(28340);a("search",function(C,i,c){return[function(){function m(u){var d=p(this),s=o(u)?void 0:I(u,C);return s?e(s,u,d):new RegExp(u)[C](y(d))}return m}(),function(m){var u=t(this),d=y(m),s=c(i,u,d);if(s.done)return s.value;var l=u.lastIndex;b(l,0)||(u.lastIndex=0);var h=k(u,d);return b(u.lastIndex,l)||(u.lastIndex=l),h===null?-1:h.index}]})},34325:function(x,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("small")},{small:function(){function o(){return a(this,"small","","")}return o}()})},39930:function(x,r,n){"use strict";var e=n(91495),a=n(67250),t=n(79942),o=n(30365),p=n(42871),b=n(16952),y=n(28987),I=n(35483),k=n(10188),C=n(12605),i=n(78060),c=n(28340),m=n(62115),u=n(40033),d=m.UNSUPPORTED_Y,s=4294967295,l=Math.min,h=a([].push),N=a("".slice),v=!u(function(){var g=/(?:)/,V=g.exec;g.exec=function(){return V.apply(this,arguments)};var B="ab".split(g);return B.length!==2||B[0]!=="a"||B[1]!=="b"}),f="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;t("split",function(g,V,B){var S="0".split(void 0,0).length?function(L,w){return L===void 0&&w===0?[]:e(V,this,L,w)}:V;return[function(){function L(w,A){var T=b(this),E=p(w)?void 0:i(w,g);return E?e(E,w,T,A):e(S,C(T),w,A)}return L}(),function(L,w){var A=o(this),T=C(L);if(!f){var E=B(S,A,T,w,S!==V);if(E.done)return E.value}var P=y(A,RegExp),D=A.unicode,M=(A.ignoreCase?"i":"")+(A.multiline?"m":"")+(A.unicode?"u":"")+(d?"g":"y"),O=new P(d?"^(?:"+A.source+")":A,M),R=w===void 0?s:w>>>0;if(R===0)return[];if(T.length===0)return c(O,T)===null?[T]:[];for(var j=0,_=0,W=[];_1?arguments[1]:void 0,s.length)),h=p(d);return C(s,l,l+h.length)===h}return u}()})},74498:function(x,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("strike")},{strike:function(){function o(){return a(this,"strike","","")}return o}()})},15812:function(x,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("sub")},{sub:function(){function o(){return a(this,"sub","","")}return o}()})},57726:function(x,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("sup")},{sup:function(){function o(){return a(this,"sup","","")}return o}()})},70604:function(x,r,n){"use strict";n(99159);var e=n(63964),a=n(43476);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==a},{trimEnd:a})},85404:function(x,r,n){"use strict";var e=n(63964),a=n(43885);e({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==a},{trimLeft:a})},99159:function(x,r,n){"use strict";var e=n(63964),a=n(43476);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==a},{trimRight:a})},34965:function(x,r,n){"use strict";n(85404);var e=n(63964),a=n(43885);e({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==a},{trimStart:a})},8448:function(x,r,n){"use strict";var e=n(63964),a=n(92648).trim,t=n(90012);e({target:"String",proto:!0,forced:t("trim")},{trim:function(){function o(){return a(this)}return o}()})},79250:function(x,r,n){"use strict";var e=n(85889);e("asyncIterator")},49899:function(x,r,n){"use strict";var e=n(63964),a=n(74685),t=n(91495),o=n(67250),p=n(4493),b=n(58310),y=n(52357),I=n(40033),k=n(45299),C=n(21287),i=n(30365),c=n(57591),m=n(767),u=n(12605),d=n(87458),s=n(80674),l=n(18450),h=n(37310),N=n(81644),v=n(89235),f=n(27193),g=n(74595),V=n(24239),B=n(12867),S=n(55938),L=n(73936),w=n(16639),A=n(19417),T=n(79195),E=n(16738),P=n(24697),D=n(55557),M=n(85889),O=n(52360),R=n(84925),j=n(5419),_=n(22603).forEach,W=A("hidden"),z="Symbol",K="prototype",G=j.set,Q=j.getterFor(z),J=Object[K],ue=a.Symbol,ie=ue&&ue[K],pe=a.RangeError,te=a.TypeError,q=a.QObject,ne=f.f,le=g.f,ee=N.f,re=B.f,oe=o([].push),fe=w("symbols"),me=w("op-symbols"),Y=w("wks"),ve=!q||!q[K]||!q[K].findChild,he=function(Ce,ke,ge){var Se=ne(J,ke);Se&&delete J[ke],le(Ce,ke,ge),Se&&Ce!==J&&le(J,ke,Se)},Ve=b&&I(function(){return s(le({},"a",{get:function(){function de(){return le(this,"a",{value:7}).a}return de}()})).a!==7})?he:le,Be=function(Ce,ke){var ge=fe[Ce]=s(ie);return G(ge,{type:z,tag:Ce,description:ke}),b||(ge.description=ke),ge},be=function(){function de(Ce,ke,ge){Ce===J&&be(me,ke,ge),i(Ce);var Se=m(ke);return i(ge),k(fe,Se)?(ge.enumerable?(k(Ce,W)&&Ce[W][Se]&&(Ce[W][Se]=!1),ge=s(ge,{enumerable:d(0,!1)})):(k(Ce,W)||le(Ce,W,d(1,s(null))),Ce[W][Se]=!0),Ve(Ce,Se,ge)):le(Ce,Se,ge)}return de}(),Le=function(){function de(Ce,ke){i(Ce);var ge=c(ke),Se=l(ge).concat(ye(ge));return _(Se,function(Pe){(!b||t(xe,ge,Pe))&&be(Ce,Pe,ge[Pe])}),Ce}return de}(),we=function(){function de(Ce,ke){return ke===void 0?s(Ce):Le(s(Ce),ke)}return de}(),xe=function(){function de(Ce){var ke=m(Ce),ge=t(re,this,ke);return this===J&&k(fe,ke)&&!k(me,ke)?!1:ge||!k(this,ke)||!k(fe,ke)||k(this,W)&&this[W][ke]?ge:!0}return de}(),Re=function(){function de(Ce,ke){var ge=c(Ce),Se=m(ke);if(!(ge===J&&k(fe,Se)&&!k(me,Se))){var Pe=ne(ge,Se);return Pe&&k(fe,Se)&&!(k(ge,W)&&ge[W][Se])&&(Pe.enumerable=!0),Pe}}return de}(),He=function(){function de(Ce){var ke=ee(c(Ce)),ge=[];return _(ke,function(Se){!k(fe,Se)&&!k(T,Se)&&oe(ge,Se)}),ge}return de}(),ye=function(Ce){var ke=Ce===J,ge=ee(ke?me:c(Ce)),Se=[];return _(ge,function(Pe){k(fe,Pe)&&(!ke||k(J,Pe))&&oe(Se,fe[Pe])}),Se};y||(ue=function(){function de(){if(C(ie,this))throw new te("Symbol is not a constructor");var Ce=!arguments.length||arguments[0]===void 0?void 0:u(arguments[0]),ke=E(Ce),ge=function(){function Se(Pe){var je=this===void 0?a:this;je===J&&t(Se,me,Pe),k(je,W)&&k(je[W],ke)&&(je[W][ke]=!1);var Fe=d(1,Pe);try{Ve(je,ke,Fe)}catch(ze){if(!(ze instanceof pe))throw ze;he(je,ke,Fe)}}return Se}();return b&&ve&&Ve(J,ke,{configurable:!0,set:ge}),Be(ke,Ce)}return de}(),ie=ue[K],S(ie,"toString",function(){function de(){return Q(this).tag}return de}()),S(ue,"withoutSetter",function(de){return Be(E(de),de)}),B.f=xe,g.f=be,V.f=Le,f.f=Re,h.f=N.f=He,v.f=ye,D.f=function(de){return Be(P(de),de)},b&&(L(ie,"description",{configurable:!0,get:function(){function de(){return Q(this).description}return de}()}),p||S(J,"propertyIsEnumerable",xe,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!y,sham:!y},{Symbol:ue}),_(l(Y),function(de){M(de)}),e({target:z,stat:!0,forced:!y},{useSetter:function(){function de(){ve=!0}return de}(),useSimple:function(){function de(){ve=!1}return de}()}),e({target:"Object",stat:!0,forced:!y,sham:!b},{create:we,defineProperty:be,defineProperties:Le,getOwnPropertyDescriptor:Re}),e({target:"Object",stat:!0,forced:!y},{getOwnPropertyNames:He}),O(),R(ue,z),T[W]=!0},10933:function(x,r,n){"use strict";var e=n(63964),a=n(58310),t=n(74685),o=n(67250),p=n(45299),b=n(55747),y=n(21287),I=n(12605),k=n(73936),C=n(5774),i=t.Symbol,c=i&&i.prototype;if(a&&b(i)&&(!("description"in c)||i().description!==void 0)){var m={},u=function(){function f(){var g=arguments.length<1||arguments[0]===void 0?void 0:I(arguments[0]),V=y(c,this)?new i(g):g===void 0?i():i(g);return g===""&&(m[V]=!0),V}return f}();C(u,i),u.prototype=c,c.constructor=u;var d=String(i("description detection"))==="Symbol(description detection)",s=o(c.valueOf),l=o(c.toString),h=/^Symbol\((.*)\)[^)]+$/,N=o("".replace),v=o("".slice);k(c,"description",{configurable:!0,get:function(){function f(){var g=s(this);if(p(m,g))return"";var V=l(g),B=d?v(V,7,-1):N(V,h,"$1");return B===""?void 0:B}return f}()}),e({global:!0,constructor:!0,forced:!0},{Symbol:u})}},30828:function(x,r,n){"use strict";var e=n(63964),a=n(4009),t=n(45299),o=n(12605),p=n(16639),b=n(66570),y=p("string-to-symbol-registry"),I=p("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!b},{for:function(){function k(C){var i=o(C);if(t(y,i))return y[i];var c=a("Symbol")(i);return y[i]=c,I[c]=i,c}return k}()})},53795:function(x,r,n){"use strict";var e=n(85889);e("hasInstance")},87806:function(x,r,n){"use strict";var e=n(85889);e("isConcatSpreadable")},64677:function(x,r,n){"use strict";var e=n(85889);e("iterator")},33313:function(x,r,n){"use strict";n(49899),n(30828),n(6862),n(53008),n(28603)},6862:function(x,r,n){"use strict";var e=n(63964),a=n(45299),t=n(71399),o=n(89393),p=n(16639),b=n(66570),y=p("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!b},{keyFor:function(){function I(k){if(!t(k))throw new TypeError(o(k)+" is not a symbol");if(a(y,k))return y[k]}return I}()})},48058:function(x,r,n){"use strict";var e=n(85889);e("match")},51583:function(x,r,n){"use strict";var e=n(85889);e("replace")},82403:function(x,r,n){"use strict";var e=n(85889);e("search")},34265:function(x,r,n){"use strict";var e=n(85889);e("species")},3295:function(x,r,n){"use strict";var e=n(85889);e("split")},1078:function(x,r,n){"use strict";var e=n(85889),a=n(52360);e("toPrimitive"),a()},63207:function(x,r,n){"use strict";var e=n(4009),a=n(85889),t=n(84925);a("toStringTag"),t(e("Symbol"),"Symbol")},80520:function(x,r,n){"use strict";var e=n(85889);e("unscopables")},99872:function(x,r,n){"use strict";var e=n(67250),a=n(4246),t=n(71447),o=e(t),p=a.aTypedArray,b=a.exportTypedArrayMethod;b("copyWithin",function(){function y(I,k){return o(p(this),I,k,arguments.length>2?arguments[2]:void 0)}return y}())},73364:function(x,r,n){"use strict";var e=n(4246),a=n(22603).every,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("every",function(){function p(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return p}())},58166:function(x,r,n){"use strict";var e=n(4246),a=n(88471),t=n(61484),o=n(2281),p=n(91495),b=n(67250),y=n(40033),I=e.aTypedArray,k=e.exportTypedArrayMethod,C=b("".slice),i=y(function(){var c=0;return new Int8Array(2).fill({valueOf:function(){function m(){return c++}return m}()}),c!==1});k("fill",function(){function c(m){var u=arguments.length;I(this);var d=C(o(this),0,3)==="Big"?t(m):+m;return p(a,this,d,u>1?arguments[1]:void 0,u>2?arguments[2]:void 0)}return c}(),i)},23793:function(x,r,n){"use strict";var e=n(4246),a=n(22603).filter,t=n(45399),o=e.aTypedArray,p=e.exportTypedArrayMethod;p("filter",function(){function b(y){var I=a(o(this),y,arguments.length>1?arguments[1]:void 0);return t(this,I)}return b}())},13917:function(x,r,n){"use strict";var e=n(4246),a=n(22603).findIndex,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("findIndex",function(){function p(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return p}())},43820:function(x,r,n){"use strict";var e=n(4246),a=n(22603).find,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("find",function(){function p(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return p}())},80756:function(x,r,n){"use strict";var e=n(80185);e("Float32",function(a){return function(){function t(o,p,b){return a(this,o,p,b)}return t}()})},70567:function(x,r,n){"use strict";var e=n(80185);e("Float64",function(a){return function(){function t(o,p,b){return a(this,o,p,b)}return t}()})},19852:function(x,r,n){"use strict";var e=n(4246),a=n(22603).forEach,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("forEach",function(){function p(b){a(t(this),b,arguments.length>1?arguments[1]:void 0)}return p}())},40379:function(x,r,n){"use strict";var e=n(86563),a=n(4246).exportTypedArrayStaticMethod,t=n(3805);a("from",t,e)},92770:function(x,r,n){"use strict";var e=n(4246),a=n(14211).includes,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("includes",function(){function p(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return p}())},81069:function(x,r,n){"use strict";var e=n(4246),a=n(14211).indexOf,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("indexOf",function(){function p(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return p}())},60037:function(x,r,n){"use strict";var e=n(80185);e("Int16",function(a){return function(){function t(o,p,b){return a(this,o,p,b)}return t}()})},44195:function(x,r,n){"use strict";var e=n(80185);e("Int32",function(a){return function(){function t(o,p,b){return a(this,o,p,b)}return t}()})},66756:function(x,r,n){"use strict";var e=n(80185);e("Int8",function(a){return function(){function t(o,p,b){return a(this,o,p,b)}return t}()})},63689:function(x,r,n){"use strict";var e=n(74685),a=n(40033),t=n(67250),o=n(4246),p=n(34570),b=n(24697),y=b("iterator"),I=e.Uint8Array,k=t(p.values),C=t(p.keys),i=t(p.entries),c=o.aTypedArray,m=o.exportTypedArrayMethod,u=I&&I.prototype,d=!a(function(){u[y].call([1])}),s=!!u&&u.values&&u[y]===u.values&&u.values.name==="values",l=function(){function h(){return k(c(this))}return h}();m("entries",function(){function h(){return i(c(this))}return h}(),d),m("keys",function(){function h(){return C(c(this))}return h}(),d),m("values",l,d||!s,{name:"values"}),m(y,l,d||!s,{name:"values"})},5659:function(x,r,n){"use strict";var e=n(4246),a=n(67250),t=e.aTypedArray,o=e.exportTypedArrayMethod,p=a([].join);o("join",function(){function b(y){return p(t(this),y)}return b}())},25014:function(x,r,n){"use strict";var e=n(4246),a=n(61267),t=n(1325),o=e.aTypedArray,p=e.exportTypedArrayMethod;p("lastIndexOf",function(){function b(y){var I=arguments.length;return a(t,o(this),I>1?[y,arguments[1]]:[y])}return b}())},32189:function(x,r,n){"use strict";var e=n(4246),a=n(22603).map,t=n(31082),o=e.aTypedArray,p=e.exportTypedArrayMethod;p("map",function(){function b(y){return a(o(this),y,arguments.length>1?arguments[1]:void 0,function(I,k){return new(t(I))(k)})}return b}())},23030:function(x,r,n){"use strict";var e=n(4246),a=n(86563),t=e.aTypedArrayConstructor,o=e.exportTypedArrayStaticMethod;o("of",function(){function p(){for(var b=0,y=arguments.length,I=new(t(this))(y);y>b;)I[b]=arguments[b++];return I}return p}(),a)},49110:function(x,r,n){"use strict";var e=n(4246),a=n(56844).right,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduceRight",function(){function p(b){var y=arguments.length;return a(t(this),b,y,y>1?arguments[1]:void 0)}return p}())},24309:function(x,r,n){"use strict";var e=n(4246),a=n(56844).left,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduce",function(){function p(b){var y=arguments.length;return a(t(this),b,y,y>1?arguments[1]:void 0)}return p}())},56445:function(x,r,n){"use strict";var e=n(4246),a=e.aTypedArray,t=e.exportTypedArrayMethod,o=Math.floor;t("reverse",function(){function p(){for(var b=this,y=a(b).length,I=o(y/2),k=0,C;k1?arguments[1]:void 0,1),N=b(l);if(u)return a(i,this,N,h);var v=this.length,f=o(N),g=0;if(f+h>v)throw new I("Wrong length");for(;gm;)d[m]=i[m++];return d}return I}(),y)},88739:function(x,r,n){"use strict";var e=n(4246),a=n(22603).some,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("some",function(){function p(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return p}())},60415:function(x,r,n){"use strict";var e=n(74685),a=n(71138),t=n(40033),o=n(10320),p=n(90274),b=n(4246),y=n(652),I=n(19228),k=n(5026),C=n(9342),i=b.aTypedArray,c=b.exportTypedArrayMethod,m=e.Uint16Array,u=m&&a(m.prototype.sort),d=!!u&&!(t(function(){u(new m(2),null)})&&t(function(){u(new m(2),{})})),s=!!u&&!t(function(){if(k)return k<74;if(y)return y<67;if(I)return!0;if(C)return C<602;var h=new m(516),N=Array(516),v,f;for(v=0;v<516;v++)f=v%4,h[v]=515-v,N[v]=v-2*f+3;for(u(h,function(g,V){return(g/4|0)-(V/4|0)}),v=0;v<516;v++)if(h[v]!==N[v])return!0}),l=function(N){return function(v,f){return N!==void 0?+N(v,f)||0:f!==f?-1:v!==v?1:v===0&&f===0?1/v>0&&1/f<0?1:-1:v>f}};c("sort",function(){function h(N){return N!==void 0&&o(N),s?u(this,N):p(i(this),l(N))}return h}(),!s||d)},72532:function(x,r,n){"use strict";var e=n(4246),a=n(10188),t=n(13912),o=n(31082),p=e.aTypedArray,b=e.exportTypedArrayMethod;b("subarray",function(){function y(I,k){var C=p(this),i=C.length,c=t(I,i),m=o(C);return new m(C.buffer,C.byteOffset+c*C.BYTES_PER_ELEMENT,a((k===void 0?i:t(k,i))-c))}return y}())},62207:function(x,r,n){"use strict";var e=n(74685),a=n(61267),t=n(4246),o=n(40033),p=n(54602),b=e.Int8Array,y=t.aTypedArray,I=t.exportTypedArrayMethod,k=[].toLocaleString,C=!!b&&o(function(){k.call(new b(1))}),i=o(function(){return[1,2].toLocaleString()!==new b([1,2]).toLocaleString()})||!o(function(){b.prototype.toLocaleString.call([1,2])});I("toLocaleString",function(){function c(){return a(k,C?p(y(this)):y(this),p(arguments))}return c}(),i)},906:function(x,r,n){"use strict";var e=n(4246).exportTypedArrayMethod,a=n(40033),t=n(74685),o=n(67250),p=t.Uint8Array,b=p&&p.prototype||{},y=[].toString,I=o([].join);a(function(){y.call({})})&&(y=function(){function C(){return I(this)}return C}());var k=b.toString!==y;e("toString",y,k)},78824:function(x,r,n){"use strict";var e=n(80185);e("Uint16",function(a){return function(){function t(o,p,b){return a(this,o,p,b)}return t}()})},72846:function(x,r,n){"use strict";var e=n(80185);e("Uint32",function(a){return function(){function t(o,p,b){return a(this,o,p,b)}return t}()})},24575:function(x,r,n){"use strict";var e=n(80185);e("Uint8",function(a){return function(){function t(o,p,b){return a(this,o,p,b)}return t}()})},71968:function(x,r,n){"use strict";var e=n(80185);e("Uint8",function(a){return function(){function t(o,p,b){return a(this,o,p,b)}return t}()},!0)},80040:function(x,r,n){"use strict";var e=n(50730),a=n(74685),t=n(67250),o=n(30145),p=n(81969),b=n(45150),y=n(39895),I=n(77568),k=n(5419).enforce,C=n(40033),i=n(21820),c=Object,m=Array.isArray,u=c.isExtensible,d=c.isFrozen,s=c.isSealed,l=c.freeze,h=c.seal,N=!a.ActiveXObject&&"ActiveXObject"in a,v,f=function(E){return function(){function P(){return E(this,arguments.length?arguments[0]:void 0)}return P}()},g=b("WeakMap",f,y),V=g.prototype,B=t(V.set),S=function(){return e&&C(function(){var E=l([]);return B(new g,E,1),!d(E)})};if(i)if(N){v=y.getConstructor(f,"WeakMap",!0),p.enable();var L=t(V.delete),w=t(V.has),A=t(V.get);o(V,{delete:function(){function T(E){if(I(E)&&!u(E)){var P=k(this);return P.frozen||(P.frozen=new v),L(this,E)||P.frozen.delete(E)}return L(this,E)}return T}(),has:function(){function T(E){if(I(E)&&!u(E)){var P=k(this);return P.frozen||(P.frozen=new v),w(this,E)||P.frozen.has(E)}return w(this,E)}return T}(),get:function(){function T(E){if(I(E)&&!u(E)){var P=k(this);return P.frozen||(P.frozen=new v),w(this,E)?A(this,E):P.frozen.get(E)}return A(this,E)}return T}(),set:function(){function T(E,P){if(I(E)&&!u(E)){var D=k(this);D.frozen||(D.frozen=new v),w(this,E)?B(this,E,P):D.frozen.set(E,P)}else B(this,E,P);return this}return T}()})}else S()&&o(V,{set:function(){function T(E,P){var D;return m(E)&&(d(E)?D=l:s(E)&&(D=h)),B(this,E,P),D&&D(E),this}return T}()})},90846:function(x,r,n){"use strict";n(80040)},67042:function(x,r,n){"use strict";var e=n(45150),a=n(39895);e("WeakSet",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},40348:function(x,r,n){"use strict";n(67042)},5606:function(x,r,n){"use strict";var e=n(63964),a=n(74685),t=n(60375).clear;e({global:!0,bind:!0,enumerable:!0,forced:a.clearImmediate!==t},{clearImmediate:t})},83006:function(x,r,n){"use strict";n(5606),n(27807)},25764:function(x,r,n){"use strict";var e=n(63964),a=n(74685),t=n(37713),o=n(10320),p=n(24986),b=n(40033),y=n(58310),I=b(function(){return y&&Object.getOwnPropertyDescriptor(a,"queueMicrotask").value.length!==1});e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:I},{queueMicrotask:function(){function k(C){p(arguments.length,1),t(o(C))}return k}()})},27807:function(x,r,n){"use strict";var e=n(63964),a=n(74685),t=n(60375).set,o=n(78362),p=a.setImmediate?o(t,!1):t;e({global:!0,bind:!0,enumerable:!0,forced:a.setImmediate!==p},{setImmediate:p})},45569:function(x,r,n){"use strict";var e=n(63964),a=n(74685),t=n(78362),o=t(a.setInterval,!0);e({global:!0,bind:!0,forced:a.setInterval!==o},{setInterval:o})},5213:function(x,r,n){"use strict";var e=n(63964),a=n(74685),t=n(78362),o=t(a.setTimeout,!0);e({global:!0,bind:!0,forced:a.setTimeout!==o},{setTimeout:o})},69401:function(x,r,n){"use strict";n(45569),n(5213)},7435:function(x){"use strict";/** + */var t=r.BoxWithSampleText=function(){function o(p){return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({},p,{children:[(0,e.createComponentVNode)(2,a.Box,{italic:!0,children:"Jackdaws love my big sphinx of quartz."}),(0,e.createComponentVNode)(2,a.Box,{mt:1,bold:!0,children:"The wide electrification of the southern provinces will give a powerful impetus to the growth of agriculture."})]})))}return o}()},67160:function(){},23542:function(){},30386:function(){},98996:function(){},50578:function(){},4444:function(){},77870:function(){},23632:function(){},56492:function(){},39108:function(){},11714:function(){},73492:function(){},49641:function(){},17570:function(){},61858:function(){},32882:function(){},70752:function(T,r,n){var e={"./pai_atmosphere.js":80818,"./pai_bioscan.js":23903,"./pai_directives.js":64988,"./pai_doorjack.js":13813,"./pai_main_menu.js":66025,"./pai_manifest.js":2983,"./pai_medrecords.js":40758,"./pai_messenger.js":98599,"./pai_radio.js":50775,"./pai_secrecords.js":48623,"./pai_signaler.js":47297};function a(o){var p=t(o);return n(p)}function t(o){if(!n.o(e,o)){var p=new Error("Cannot find module '"+o+"'");throw p.code="MODULE_NOT_FOUND",p}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,T.exports=a,a.id=70752},59395:function(T,r,n){var e={"./pda_atmos_scan.js":78532,"./pda_games.js":2395,"./pda_janitor.js":40253,"./pda_main_menu.js":58293,"./pda_manifest.js":58059,"./pda_medical.js":18147,"./pda_messenger.js":77595,"./pda_minesweeper.js":90382,"./pda_mule.js":24635,"./pda_nanobank.js":23734,"./pda_notes.js":97085,"./pda_power.js":57513,"./pda_secbot.js":99808,"./pda_security.js":77168,"./pda_signaler.js":21773,"./pda_status_display.js":81857,"./pda_supplyrecords.js":70287};function a(o){var p=t(o);return n(p)}function t(o){if(!n.o(e,o)){var p=new Error("Cannot find module '"+o+"'");throw p.code="MODULE_NOT_FOUND",p}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,T.exports=a,a.id=59395},32054:function(T,r,n){var e={"./AICard":1090,"./AICard.js":1090,"./AIFixer":39454,"./AIFixer.js":39454,"./APC":88422,"./APC.js":88422,"./ATM":99660,"./ATM.js":99660,"./AccountsUplinkTerminal":86423,"./AccountsUplinkTerminal.js":86423,"./AgentCard":39683,"./AgentCard.tsx":39683,"./AiAirlock":56793,"./AiAirlock.js":56793,"./AirAlarm":72475,"./AirAlarm.js":72475,"./AirlockAccessController":12333,"./AirlockAccessController.js":12333,"./AirlockElectronics":28736,"./AirlockElectronics.js":28736,"./AlertModal":47365,"./AlertModal.tsx":47365,"./AppearanceChanger":71824,"./AppearanceChanger.js":71824,"./AtmosAlertConsole":72285,"./AtmosAlertConsole.js":72285,"./AtmosControl":65805,"./AtmosControl.js":65805,"./AtmosFilter":87816,"./AtmosFilter.js":87816,"./AtmosGraphMonitor":57258,"./AtmosGraphMonitor.tsx":57258,"./AtmosMixer":52977,"./AtmosMixer.js":52977,"./AtmosPump":11748,"./AtmosPump.js":11748,"./AtmosTankControl":69321,"./AtmosTankControl.js":69321,"./AugmentMenu":92444,"./AugmentMenu.js":92444,"./Autolathe":59179,"./Autolathe.js":59179,"./Autolathe220":29943,"./Autolathe220.tsx":29943,"./BioChipPad":5147,"./BioChipPad.js":5147,"./Biogenerator":64273,"./Biogenerator.js":64273,"./BloomEdit":47823,"./BloomEdit.js":47823,"./BlueSpaceArtilleryControl":18621,"./BlueSpaceArtilleryControl.js":18621,"./BluespaceTap":27629,"./BluespaceTap.js":27629,"./BodyScanner":33758,"./BodyScanner.js":33758,"./BookBinder":67963,"./BookBinder.js":67963,"./BotCall":61925,"./BotCall.js":61925,"./BotClean":20464,"./BotClean.js":20464,"./BotFloor":69479,"./BotFloor.js":69479,"./BotHonk":59887,"./BotHonk.js":59887,"./BotMed":80063,"./BotMed.js":80063,"./BotSecurity":74439,"./BotSecurity.js":74439,"./BrigCells":10833,"./BrigCells.js":10833,"./BrigTimer":45761,"./BrigTimer.js":45761,"./CameraConsole":26300,"./CameraConsole.js":26300,"./CameraConsole220":39222,"./CameraConsole220.js":39222,"./Canister":52927,"./Canister.js":52927,"./CardComputer":51793,"./CardComputer.js":51793,"./CargoConsole":64083,"./CargoConsole.js":64083,"./Chameleon":36232,"./Chameleon.tsx":36232,"./ChangelogView":87331,"./ChangelogView.js":87331,"./CheckboxListInputModal":91360,"./CheckboxListInputModal.tsx":91360,"./ChemDispenser":36108,"./ChemDispenser.js":36108,"./ChemHeater":13146,"./ChemHeater.js":13146,"./ChemMaster":56541,"./ChemMaster.tsx":56541,"./CloningConsole":37173,"./CloningConsole.js":37173,"./CloningPod":98723,"./CloningPod.js":98723,"./CoinMint":18259,"./CoinMint.tsx":18259,"./ColorPickerModal":93858,"./ColorPickerModal.tsx":93858,"./ColourMatrixTester":8444,"./ColourMatrixTester.js":8444,"./CommunicationsComputer":63818,"./CommunicationsComputer.js":63818,"./CompostBin":20562,"./CompostBin.js":20562,"./Contractor":21813,"./Contractor.js":21813,"./ConveyorSwitch":54151,"./ConveyorSwitch.js":54151,"./CrewMonitor":73169,"./CrewMonitor.js":73169,"./Cryo":63987,"./Cryo.js":63987,"./CryopodConsole":86099,"./CryopodConsole.js":86099,"./DNAModifier":12692,"./DNAModifier.js":12692,"./DestinationTagger":41074,"./DestinationTagger.js":41074,"./DisposalBin":46500,"./DisposalBin.js":46500,"./DnaVault":33233,"./DnaVault.js":33233,"./DroneConsole":33681,"./DroneConsole.js":33681,"./EFTPOS":17263,"./EFTPOS.js":17263,"./ERTManager":76382,"./ERTManager.js":76382,"./EconomyManager":90217,"./EconomyManager.js":90217,"./Electropack":82565,"./Electropack.js":82565,"./Emojipedia":11243,"./Emojipedia.tsx":11243,"./EmotePanel":69784,"./EmotePanel.js":69784,"./EvolutionMenu":36730,"./EvolutionMenu.js":36730,"./ExosuitFabricator":17370,"./ExosuitFabricator.js":17370,"./ExperimentConsole":59128,"./ExperimentConsole.js":59128,"./ExternalAirlockController":97086,"./ExternalAirlockController.js":97086,"./FaxMachine":96142,"./FaxMachine.js":96142,"./FilingCabinet":74123,"./FilingCabinet.js":74123,"./FloorPainter":83767,"./FloorPainter.js":83767,"./GPS":53424,"./GPS.js":53424,"./GeneModder":89124,"./GeneModder.js":89124,"./GenericCrewManifest":73053,"./GenericCrewManifest.js":73053,"./GhostHudPanel":42914,"./GhostHudPanel.js":42914,"./GlandDispenser":25825,"./GlandDispenser.js":25825,"./GravityGen":10270,"./GravityGen.js":10270,"./GuestPass":48657,"./GuestPass.js":48657,"./HandheldChemDispenser":67834,"./HandheldChemDispenser.js":67834,"./HealthSensor":46098,"./HealthSensor.js":46098,"./Holodeck":36771,"./Holodeck.js":36771,"./Instrument":25471,"./Instrument.js":25471,"./Jukebox":52736,"./Jukebox.tsx":52736,"./KeyComboModal":13618,"./KeyComboModal.tsx":13618,"./KeycardAuth":35655,"./KeycardAuth.js":35655,"./KitchenMachine":62955,"./KitchenMachine.js":62955,"./LawManager":9525,"./LawManager.js":9525,"./LibraryComputer":85066,"./LibraryComputer.js":85066,"./LibraryManager":9516,"./LibraryManager.js":9516,"./ListInputModal":90447,"./ListInputModal.tsx":90447,"./Loadout":26826,"./Loadout.tsx":26826,"./MODsuit":77613,"./MODsuit.js":77613,"./MagnetController":78624,"./MagnetController.js":78624,"./MechBayConsole":72106,"./MechBayConsole.js":72106,"./MechaControlConsole":7466,"./MechaControlConsole.js":7466,"./MedicalRecords":79625,"./MedicalRecords.js":79625,"./MerchVendor":54989,"./MerchVendor.js":54989,"./MiningVendor":87684,"./MiningVendor.js":87684,"./ModpacksList":61468,"./ModpacksList.js":61468,"./NTRecruiter":59783,"./NTRecruiter.js":59783,"./Newscaster":64713,"./Newscaster.js":64713,"./Noticeboard":48286,"./Noticeboard.tsx":48286,"./NuclearBomb":41166,"./NuclearBomb.js":41166,"./NumberInputModal":52416,"./NumberInputModal.tsx":52416,"./OperatingComputer":1218,"./OperatingComputer.js":1218,"./Orbit":46892,"./Orbit.js":46892,"./OreRedemption":15421,"./OreRedemption.js":15421,"./PAI":52754,"./PAI.js":52754,"./PDA":85175,"./PDA.js":85175,"./Pacman":68654,"./Pacman.js":68654,"./PanDEMIC":1701,"./PanDEMIC.tsx":1701,"./ParticleAccelerator":67921,"./ParticleAccelerator.js":67921,"./PdaPainter":71432,"./PdaPainter.js":71432,"./PersonalCrafting":33388,"./PersonalCrafting.js":33388,"./Photocopier":56150,"./Photocopier.js":56150,"./Photocopier220":8340,"./Photocopier220.js":8340,"./PoolController":84676,"./PoolController.js":84676,"./PortablePump":57003,"./PortablePump.js":57003,"./PortableScrubber":70069,"./PortableScrubber.js":70069,"./PortableTurret":59955,"./PortableTurret.js":59955,"./PowerMonitor":61631,"./PowerMonitor.js":61631,"./PrisonerImplantManager":50992,"./PrisonerImplantManager.js":50992,"./PrisonerShuttleConsole":53952,"./PrisonerShuttleConsole.js":53952,"./PrizeCounter":97852,"./PrizeCounter.tsx":97852,"./RCD":94813,"./RCD.js":94813,"./RPD":18738,"./RPD.js":18738,"./Radio":80299,"./Radio.js":80299,"./RankedListInputModal":14846,"./RankedListInputModal.tsx":14846,"./ReagentGrinder":48125,"./ReagentGrinder.js":48125,"./ReagentsEditor":58262,"./ReagentsEditor.tsx":58262,"./RemoteSignaler":30207,"./RemoteSignaler.js":30207,"./RequestConsole":25472,"./RequestConsole.js":25472,"./RndBackupConsole":9861,"./RndBackupConsole.js":9861,"./RndConsole":12644,"./RndConsole/":12644,"./RndConsole/DataDiskMenu":37556,"./RndConsole/DataDiskMenu.js":37556,"./RndConsole/DeconstructionMenu":58147,"./RndConsole/DeconstructionMenu.js":58147,"./RndConsole/LatheCategory":16830,"./RndConsole/LatheCategory.js":16830,"./RndConsole/LatheChemicalStorage":70497,"./RndConsole/LatheChemicalStorage.js":70497,"./RndConsole/LatheMainMenu":70864,"./RndConsole/LatheMainMenu.js":70864,"./RndConsole/LatheMaterialStorage":42878,"./RndConsole/LatheMaterialStorage.js":42878,"./RndConsole/LatheMaterials":52662,"./RndConsole/LatheMaterials.js":52662,"./RndConsole/LatheMenu":9681,"./RndConsole/LatheMenu.js":9681,"./RndConsole/LatheSearch":68198,"./RndConsole/LatheSearch.js":68198,"./RndConsole/LinkMenu":81421,"./RndConsole/LinkMenu.js":81421,"./RndConsole/SettingsMenu":6256,"./RndConsole/SettingsMenu.js":6256,"./RndConsole/index":12644,"./RndConsole/index.js":12644,"./RndNetController":29205,"./RndNetController.js":29205,"./RndServer":63315,"./RndServer.js":63315,"./RobotSelfDiagnosis":26109,"./RobotSelfDiagnosis.js":26109,"./RoboticsControlConsole":97997,"./RoboticsControlConsole.js":97997,"./Safe":54431,"./Safe.js":54431,"./SatelliteControl":29740,"./SatelliteControl.js":29740,"./SecureStorage":44162,"./SecureStorage.js":44162,"./SecurityRecords":6272,"./SecurityRecords.js":6272,"./SeedExtractor":5099,"./SeedExtractor.js":5099,"./Shop":17474,"./Shop.js":17474,"./ShuttleConsole":2916,"./ShuttleConsole.js":2916,"./ShuttleManipulator":39401,"./ShuttleManipulator.js":39401,"./Sleeper":88284,"./Sleeper.js":88284,"./SlotMachine":21597,"./SlotMachine.js":21597,"./Smartfridge":46348,"./Smartfridge.js":46348,"./Smes":86162,"./Smes.js":86162,"./SolarControl":63584,"./SolarControl.js":63584,"./SpawnersMenu":38096,"./SpawnersMenu.js":38096,"./SpecMenu":30586,"./SpecMenu.js":30586,"./StackCraft":95152,"./StackCraft.js":95152,"./StationAlertConsole":38307,"./StationAlertConsole.js":38307,"./StationTraitsPanel":96091,"./StationTraitsPanel.tsx":96091,"./StripMenu":39409,"./StripMenu.tsx":39409,"./SuitStorage":69514,"./SuitStorage.js":69514,"./SupermatterMonitor":15022,"./SupermatterMonitor.js":15022,"./SyndicateComputerSimple":46029,"./SyndicateComputerSimple.js":46029,"./TEG":36372,"./TEG.js":36372,"./TTSSeedsExplorer":23190,"./TTSSeedsExplorer.tsx":23190,"./TachyonArray":56441,"./TachyonArray.js":56441,"./Tank":1754,"./Tank.js":1754,"./TankDispenser":7579,"./TankDispenser.js":7579,"./TcommsCore":16136,"./TcommsCore.js":16136,"./TcommsRelay":88046,"./TcommsRelay.js":88046,"./Teleporter":20802,"./Teleporter.js":20802,"./TelescienceConsole":48517,"./TelescienceConsole.js":48517,"./TempGun":21800,"./TempGun.js":21800,"./TextInputModal":24410,"./TextInputModal.tsx":24410,"./ThermoMachine":25036,"./ThermoMachine.js":25036,"./TransferValve":20035,"./TransferValve.js":20035,"./TurbineComputer":78166,"./TurbineComputer.js":78166,"./Uplink":52847,"./Uplink.js":52847,"./Vending":12261,"./Vending.js":12261,"./VolumeMixer":68971,"./VolumeMixer.js":68971,"./VotePanel":2510,"./VotePanel.js":2510,"./Wires":30138,"./Wires.js":30138,"./WizardApprenticeContract":21400,"./WizardApprenticeContract.js":21400,"./common/AccessList":49148,"./common/AccessList.js":49148,"./common/AtmosScan":26991,"./common/AtmosScan.js":26991,"./common/BeakerContents":85870,"./common/BeakerContents.js":85870,"./common/BotStatus":92963,"./common/BotStatus.js":92963,"./common/ComplexModal":3939,"./common/ComplexModal.js":3939,"./common/CrewManifest":41874,"./common/CrewManifest.js":41874,"./common/InputButtons":19203,"./common/InputButtons.tsx":19203,"./common/InterfaceLockNoticeBox":195,"./common/InterfaceLockNoticeBox.js":195,"./common/Loader":51057,"./common/Loader.tsx":51057,"./common/LoginInfo":321,"./common/LoginInfo.js":321,"./common/LoginScreen":5485,"./common/LoginScreen.js":5485,"./common/Operating":62411,"./common/Operating.js":62411,"./common/Signaler":13545,"./common/Signaler.js":13545,"./common/SimpleRecords":41984,"./common/SimpleRecords.js":41984,"./common/TemporaryNotice":22091,"./common/TemporaryNotice.js":22091,"./pai/pai_atmosphere":80818,"./pai/pai_atmosphere.js":80818,"./pai/pai_bioscan":23903,"./pai/pai_bioscan.js":23903,"./pai/pai_directives":64988,"./pai/pai_directives.js":64988,"./pai/pai_doorjack":13813,"./pai/pai_doorjack.js":13813,"./pai/pai_main_menu":66025,"./pai/pai_main_menu.js":66025,"./pai/pai_manifest":2983,"./pai/pai_manifest.js":2983,"./pai/pai_medrecords":40758,"./pai/pai_medrecords.js":40758,"./pai/pai_messenger":98599,"./pai/pai_messenger.js":98599,"./pai/pai_radio":50775,"./pai/pai_radio.js":50775,"./pai/pai_secrecords":48623,"./pai/pai_secrecords.js":48623,"./pai/pai_signaler":47297,"./pai/pai_signaler.js":47297,"./pda/pda_atmos_scan":78532,"./pda/pda_atmos_scan.js":78532,"./pda/pda_games":2395,"./pda/pda_games.js":2395,"./pda/pda_janitor":40253,"./pda/pda_janitor.js":40253,"./pda/pda_main_menu":58293,"./pda/pda_main_menu.js":58293,"./pda/pda_manifest":58059,"./pda/pda_manifest.js":58059,"./pda/pda_medical":18147,"./pda/pda_medical.js":18147,"./pda/pda_messenger":77595,"./pda/pda_messenger.js":77595,"./pda/pda_minesweeper":90382,"./pda/pda_minesweeper.js":90382,"./pda/pda_mule":24635,"./pda/pda_mule.js":24635,"./pda/pda_nanobank":23734,"./pda/pda_nanobank.js":23734,"./pda/pda_notes":97085,"./pda/pda_notes.js":97085,"./pda/pda_power":57513,"./pda/pda_power.js":57513,"./pda/pda_secbot":99808,"./pda/pda_secbot.js":99808,"./pda/pda_security":77168,"./pda/pda_security.js":77168,"./pda/pda_signaler":21773,"./pda/pda_signaler.js":21773,"./pda/pda_status_display":81857,"./pda/pda_status_display.js":81857,"./pda/pda_supplyrecords":70287,"./pda/pda_supplyrecords.js":70287};function a(o){var p=t(o);return n(p)}function t(o){if(!n.o(e,o)){var p=new Error("Cannot find module '"+o+"'");throw p.code="MODULE_NOT_FOUND",p}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,T.exports=a,a.id=32054},4085:function(T,r,n){var e={"./Blink.stories.js":51364,"./BlockQuote.stories.js":32453,"./Box.stories.js":83531,"./Button.stories.js":74198,"./ByondUi.stories.js":51956,"./Collapsible.stories.js":17466,"./Flex.stories.js":89241,"./ImageButton.stories.js":48779,"./Input.stories.js":21394,"./Popper.stories.js":43932,"./ProgressBar.stories.js":33270,"./Stack.stories.js":77766,"./Storage.stories.js":30187,"./Tabs.stories.js":46554,"./Themes.stories.js":53276,"./Tooltip.stories.js":28717};function a(o){var p=t(o);return n(p)}function t(o){if(!n.o(e,o)){var p=new Error("Cannot find module '"+o+"'");throw p.code="MODULE_NOT_FOUND",p}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,T.exports=a,a.id=4085},10320:function(T,r,n){"use strict";var e=n(55747),a=n(89393),t=TypeError;T.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a function")}},32606:function(T,r,n){"use strict";var e=n(1031),a=n(89393),t=TypeError;T.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a constructor")}},35908:function(T,r,n){"use strict";var e=n(45015),a=String,t=TypeError;T.exports=function(o){if(e(o))return o;throw new t("Can't set "+a(o)+" as a prototype")}},80575:function(T,r,n){"use strict";var e=n(24697),a=n(80674),t=n(74595).f,o=e("unscopables"),p=Array.prototype;p[o]===void 0&&t(p,o,{configurable:!0,value:a(null)}),T.exports=function(b){p[o][b]=!0}},35483:function(T,r,n){"use strict";var e=n(50233).charAt;T.exports=function(a,t,o){return t+(o?e(a,t).length:1)}},60077:function(T,r,n){"use strict";var e=n(21287),a=TypeError;T.exports=function(t,o){if(e(o,t))return t;throw new a("Incorrect invocation")}},30365:function(T,r,n){"use strict";var e=n(77568),a=String,t=TypeError;T.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not an object")}},70377:function(T){"use strict";T.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},3782:function(T,r,n){"use strict";var e=n(40033);T.exports=e(function(){if(typeof ArrayBuffer=="function"){var a=new ArrayBuffer(8);Object.isExtensible(a)&&Object.defineProperty(a,"a",{value:8})}})},4246:function(T,r,n){"use strict";var e=n(70377),a=n(58310),t=n(74685),o=n(55747),p=n(77568),b=n(45299),y=n(2281),I=n(89393),k=n(37909),C=n(55938),i=n(73936),c=n(21287),m=n(36917),l=n(76649),d=n(24697),s=n(16738),u=n(5419),h=u.enforce,g=u.get,v=t.Int8Array,f=v&&v.prototype,N=t.Uint8ClampedArray,V=N&&N.prototype,B=v&&m(v),S=f&&m(f),L=Object.prototype,w=t.TypeError,A=d("toStringTag"),x=s("TYPED_ARRAY_TAG"),E="TypedArrayConstructor",P=e&&!!l&&y(t.opera)!=="Opera",D=!1,M,O,R,j={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},_={BigInt64Array:8,BigUint64Array:8},W=function(){function ie(pe){if(!p(pe))return!1;var te=y(pe);return te==="DataView"||b(j,te)||b(_,te)}return ie}(),z=function ie(pe){var te=m(pe);if(p(te)){var q=g(te);return q&&b(q,E)?q[E]:ie(te)}},K=function(pe){if(!p(pe))return!1;var te=y(pe);return b(j,te)||b(_,te)},G=function(pe){if(K(pe))return pe;throw new w("Target is not a typed array")},Q=function(pe){if(o(pe)&&(!l||c(B,pe)))return pe;throw new w(I(pe)+" is not a typed array constructor")},J=function(pe,te,q,ne){if(a){if(q)for(var le in j){var ee=t[le];if(ee&&b(ee.prototype,pe))try{delete ee.prototype[pe]}catch(re){try{ee.prototype[pe]=te}catch(oe){}}}(!S[pe]||q)&&C(S,pe,q?te:P&&f[pe]||te,ne)}},ue=function(pe,te,q){var ne,le;if(a){if(l){if(q){for(ne in j)if(le=t[ne],le&&b(le,pe))try{delete le[pe]}catch(ee){}}if(!B[pe]||q)try{return C(B,pe,q?te:P&&B[pe]||te)}catch(ee){}else return}for(ne in j)le=t[ne],le&&(!le[pe]||q)&&C(le,pe,te)}};for(M in j)O=t[M],R=O&&O.prototype,R?h(R)[E]=O:P=!1;for(M in _)O=t[M],R=O&&O.prototype,R&&(h(R)[E]=O);if((!P||!o(B)||B===Function.prototype)&&(B=function(){function ie(){throw new w("Incorrect invocation")}return ie}(),P))for(M in j)t[M]&&l(t[M],B);if((!P||!S||S===L)&&(S=B.prototype,P))for(M in j)t[M]&&l(t[M].prototype,S);if(P&&m(V)!==S&&l(V,S),a&&!b(S,A)){D=!0,i(S,A,{configurable:!0,get:function(){function ie(){return p(this)?this[x]:void 0}return ie}()});for(M in j)t[M]&&k(t[M],x,M)}T.exports={NATIVE_ARRAY_BUFFER_VIEWS:P,TYPED_ARRAY_TAG:D&&x,aTypedArray:G,aTypedArrayConstructor:Q,exportTypedArrayMethod:J,exportTypedArrayStaticMethod:ue,getTypedArrayConstructor:z,isView:W,isTypedArray:K,TypedArray:B,TypedArrayPrototype:S}},37336:function(T,r,n){"use strict";var e=n(74685),a=n(67250),t=n(58310),o=n(70377),p=n(70520),b=n(37909),y=n(73936),I=n(30145),k=n(40033),C=n(60077),i=n(61365),c=n(10188),m=n(43806),l=n(95867),d=n(91784),s=n(36917),u=n(76649),h=n(88471),g=n(54602),v=n(5781),f=n(5774),N=n(84925),V=n(5419),B=p.PROPER,S=p.CONFIGURABLE,L="ArrayBuffer",w="DataView",A="prototype",x="Wrong length",E="Wrong index",P=V.getterFor(L),D=V.getterFor(w),M=V.set,O=e[L],R=O,j=R&&R[A],_=e[w],W=_&&_[A],z=Object.prototype,K=e.Array,G=e.RangeError,Q=a(h),J=a([].reverse),ue=d.pack,ie=d.unpack,pe=function(Ve){return[Ve&255]},te=function(Ve){return[Ve&255,Ve>>8&255]},q=function(Ve){return[Ve&255,Ve>>8&255,Ve>>16&255,Ve>>24&255]},ne=function(Ve){return Ve[3]<<24|Ve[2]<<16|Ve[1]<<8|Ve[0]},le=function(Ve){return ue(l(Ve),23,4)},ee=function(Ve){return ue(Ve,52,8)},re=function(Ve,Be,be){y(Ve[A],Be,{configurable:!0,get:function(){function Le(){return be(this)[Be]}return Le}()})},oe=function(Ve,Be,be,Le){var we=D(Ve),xe=m(be),Re=!!Le;if(xe+Be>we.byteLength)throw new G(E);var He=we.bytes,ye=xe+we.byteOffset,de=g(He,ye,ye+Be);return Re?de:J(de)},fe=function(Ve,Be,be,Le,we,xe){var Re=D(Ve),He=m(be),ye=Le(+we),de=!!xe;if(He+Be>Re.byteLength)throw new G(E);for(var Ce=Re.bytes,ke=He+Re.byteOffset,ge=0;gewe)throw new G("Wrong offset");if(be=be===void 0?we-xe:c(be),xe+be>we)throw new G(x);M(this,{type:w,buffer:Ve,byteLength:be,byteOffset:xe,bytes:Le.bytes}),t||(this.buffer=Ve,this.byteLength=be,this.byteOffset=xe)}return he}(),W=_[A],t&&(re(R,"byteLength",P),re(_,"buffer",D),re(_,"byteLength",D),re(_,"byteOffset",D)),I(W,{getInt8:function(){function he(Ve){return oe(this,1,Ve)[0]<<24>>24}return he}(),getUint8:function(){function he(Ve){return oe(this,1,Ve)[0]}return he}(),getInt16:function(){function he(Ve){var Be=oe(this,2,Ve,arguments.length>1?arguments[1]:!1);return(Be[1]<<8|Be[0])<<16>>16}return he}(),getUint16:function(){function he(Ve){var Be=oe(this,2,Ve,arguments.length>1?arguments[1]:!1);return Be[1]<<8|Be[0]}return he}(),getInt32:function(){function he(Ve){return ne(oe(this,4,Ve,arguments.length>1?arguments[1]:!1))}return he}(),getUint32:function(){function he(Ve){return ne(oe(this,4,Ve,arguments.length>1?arguments[1]:!1))>>>0}return he}(),getFloat32:function(){function he(Ve){return ie(oe(this,4,Ve,arguments.length>1?arguments[1]:!1),23)}return he}(),getFloat64:function(){function he(Ve){return ie(oe(this,8,Ve,arguments.length>1?arguments[1]:!1),52)}return he}(),setInt8:function(){function he(Ve,Be){fe(this,1,Ve,pe,Be)}return he}(),setUint8:function(){function he(Ve,Be){fe(this,1,Ve,pe,Be)}return he}(),setInt16:function(){function he(Ve,Be){fe(this,2,Ve,te,Be,arguments.length>2?arguments[2]:!1)}return he}(),setUint16:function(){function he(Ve,Be){fe(this,2,Ve,te,Be,arguments.length>2?arguments[2]:!1)}return he}(),setInt32:function(){function he(Ve,Be){fe(this,4,Ve,q,Be,arguments.length>2?arguments[2]:!1)}return he}(),setUint32:function(){function he(Ve,Be){fe(this,4,Ve,q,Be,arguments.length>2?arguments[2]:!1)}return he}(),setFloat32:function(){function he(Ve,Be){fe(this,4,Ve,le,Be,arguments.length>2?arguments[2]:!1)}return he}(),setFloat64:function(){function he(Ve,Be){fe(this,8,Ve,ee,Be,arguments.length>2?arguments[2]:!1)}return he}()});else{var me=B&&O.name!==L;!k(function(){O(1)})||!k(function(){new O(-1)})||k(function(){return new O,new O(1.5),new O(NaN),O.length!==1||me&&!S})?(R=function(){function he(Ve){return C(this,j),v(new O(m(Ve)),this,R)}return he}(),R[A]=j,j.constructor=R,f(R,O)):me&&S&&b(O,"name",L),u&&s(W)!==z&&u(W,z);var Y=new _(new R(2)),ve=a(W.setInt8);Y.setInt8(0,2147483648),Y.setInt8(1,2147483649),(Y.getInt8(0)||!Y.getInt8(1))&&I(W,{setInt8:function(){function he(Ve,Be){ve(this,Ve,Be<<24>>24)}return he}(),setUint8:function(){function he(Ve,Be){ve(this,Ve,Be<<24>>24)}return he}()},{unsafe:!0})}N(R,L),N(_,w),T.exports={ArrayBuffer:R,DataView:_}},71447:function(T,r,n){"use strict";var e=n(46771),a=n(13912),t=n(24760),o=n(95108),p=Math.min;T.exports=[].copyWithin||function(){function b(y,I){var k=e(this),C=t(k),i=a(y,C),c=a(I,C),m=arguments.length>2?arguments[2]:void 0,l=p((m===void 0?C:a(m,C))-c,C-i),d=1;for(c0;)c in k?k[i]=k[c]:o(k,i),i+=d,c+=d;return k}return b}()},88471:function(T,r,n){"use strict";var e=n(46771),a=n(13912),t=n(24760);T.exports=function(){function o(p){for(var b=e(this),y=t(b),I=arguments.length,k=a(I>1?arguments[1]:void 0,y),C=I>2?arguments[2]:void 0,i=C===void 0?y:a(C,y);i>k;)b[k++]=p;return b}return o}()},35601:function(T,r,n){"use strict";var e=n(22603).forEach,a=n(55528),t=a("forEach");T.exports=t?[].forEach:function(){function o(p){return e(this,p,arguments.length>1?arguments[1]:void 0)}return o}()},78008:function(T,r,n){"use strict";var e=n(24760);T.exports=function(a,t,o){for(var p=0,b=arguments.length>2?o:e(t),y=new a(b);b>p;)y[p]=t[p++];return y}},73174:function(T,r,n){"use strict";var e=n(75754),a=n(91495),t=n(46771),o=n(40125),p=n(76571),b=n(1031),y=n(24760),I=n(60102),k=n(77455),C=n(59201),i=Array;T.exports=function(){function c(m){var l=t(m),d=b(this),s=arguments.length,u=s>1?arguments[1]:void 0,h=u!==void 0;h&&(u=e(u,s>2?arguments[2]:void 0));var g=C(l),v=0,f,N,V,B,S,L;if(g&&!(this===i&&p(g)))for(N=d?new this:[],B=k(l,g),S=B.next;!(V=a(S,B)).done;v++)L=h?o(B,u,[V.value,v],!0):V.value,I(N,v,L);else for(f=y(l),N=d?new this(f):i(f);f>v;v++)L=h?u(l[v],v):l[v],I(N,v,L);return N.length=v,N}return c}()},14211:function(T,r,n){"use strict";var e=n(57591),a=n(13912),t=n(24760),o=function(b){return function(y,I,k){var C=e(y),i=t(C);if(i===0)return!b&&-1;var c=a(k,i),m;if(b&&I!==I){for(;i>c;)if(m=C[c++],m!==m)return!0}else for(;i>c;c++)if((b||c in C)&&C[c]===I)return b||c||0;return!b&&-1}};T.exports={includes:o(!0),indexOf:o(!1)}},22603:function(T,r,n){"use strict";var e=n(75754),a=n(67250),t=n(37457),o=n(46771),p=n(24760),b=n(57823),y=a([].push),I=function(C){var i=C===1,c=C===2,m=C===3,l=C===4,d=C===6,s=C===7,u=C===5||d;return function(h,g,v,f){for(var N=o(h),V=t(N),B=p(V),S=e(g,v),L=0,w=f||b,A=i?w(h,B):c||s?w(h,0):void 0,x,E;B>L;L++)if((u||L in V)&&(x=V[L],E=S(x,L,N),C))if(i)A[L]=E;else if(E)switch(C){case 3:return!0;case 5:return x;case 6:return L;case 2:y(A,x)}else switch(C){case 4:return!1;case 7:y(A,x)}return d?-1:m||l?l:A}};T.exports={forEach:I(0),map:I(1),filter:I(2),some:I(3),every:I(4),find:I(5),findIndex:I(6),filterReject:I(7)}},1325:function(T,r,n){"use strict";var e=n(61267),a=n(57591),t=n(61365),o=n(24760),p=n(55528),b=Math.min,y=[].lastIndexOf,I=!!y&&1/[1].lastIndexOf(1,-0)<0,k=p("lastIndexOf"),C=I||!k;T.exports=C?function(){function i(c){if(I)return e(y,this,arguments)||0;var m=a(this),l=o(m);if(l===0)return-1;var d=l-1;for(arguments.length>1&&(d=b(d,t(arguments[1]))),d<0&&(d=l+d);d>=0;d--)if(d in m&&m[d]===c)return d||0;return-1}return i}():y},44091:function(T,r,n){"use strict";var e=n(40033),a=n(24697),t=n(5026),o=a("species");T.exports=function(p){return t>=51||!e(function(){var b=[],y=b.constructor={};return y[o]=function(){return{foo:1}},b[p](Boolean).foo!==1})}},55528:function(T,r,n){"use strict";var e=n(40033);T.exports=function(a,t){var o=[][a];return!!o&&e(function(){o.call(null,t||function(){return 1},1)})}},56844:function(T,r,n){"use strict";var e=n(10320),a=n(46771),t=n(37457),o=n(24760),p=TypeError,b="Reduce of empty array with no initial value",y=function(k){return function(C,i,c,m){var l=a(C),d=t(l),s=o(l);if(e(i),s===0&&c<2)throw new p(b);var u=k?s-1:0,h=k?-1:1;if(c<2)for(;;){if(u in d){m=d[u],u+=h;break}if(u+=h,k?u<0:s<=u)throw new p(b)}for(;k?u>=0:s>u;u+=h)u in d&&(m=i(m,d[u],u,l));return m}};T.exports={left:y(!1),right:y(!0)}},13345:function(T,r,n){"use strict";var e=n(58310),a=n(37386),t=TypeError,o=Object.getOwnPropertyDescriptor,p=e&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(b){return b instanceof TypeError}}();T.exports=p?function(b,y){if(a(b)&&!o(b,"length").writable)throw new t("Cannot set read only .length");return b.length=y}:function(b,y){return b.length=y}},54602:function(T,r,n){"use strict";var e=n(67250);T.exports=e([].slice)},90274:function(T,r,n){"use strict";var e=n(54602),a=Math.floor,t=function o(p,b){var y=p.length;if(y<8)for(var I=1,k,C;I0;)p[C]=p[--C];C!==I++&&(p[C]=k)}else for(var i=a(y/2),c=o(e(p,0,i),b),m=o(e(p,i),b),l=c.length,d=m.length,s=0,u=0;s1?arguments[1]:void 0),E;E=E?E.next:A.first;)for(x(E.value,E.key,this);E&&E.removed;)E=E.previous}return L}(),has:function(){function L(w){return!!S(this,w)}return L}()}),t(N,g?{get:function(){function L(w){var A=S(this,w);return A&&A.value}return L}(),set:function(){function L(w,A){return B(this,w===0?0:w,A)}return L}()}:{add:function(){function L(w){return B(this,w=w===0?0:w,w)}return L}()}),i&&a(N,"size",{configurable:!0,get:function(){function L(){return V(this).size}return L}()}),f}return s}(),setStrong:function(){function s(u,h,g){var v=h+" Iterator",f=d(h),N=d(v);I(u,h,function(V,B){l(this,{type:v,target:V,state:f(V),kind:B,last:void 0})},function(){for(var V=N(this),B=V.kind,S=V.last;S&&S.removed;)S=S.previous;return!V.target||!(V.last=S=S?S.next:V.state.first)?(V.target=void 0,k(void 0,!0)):k(B==="keys"?S.key:B==="values"?S.value:[S.key,S.value],!1)},g?"entries":"values",!g,!0),C(h)}return s}()}},39895:function(T,r,n){"use strict";var e=n(67250),a=n(30145),t=n(81969).getWeakData,o=n(60077),p=n(30365),b=n(42871),y=n(77568),I=n(49450),k=n(22603),C=n(45299),i=n(5419),c=i.set,m=i.getterFor,l=k.find,d=k.findIndex,s=e([].splice),u=0,h=function(N){return N.frozen||(N.frozen=new g)},g=function(){this.entries=[]},v=function(N,V){return l(N.entries,function(B){return B[0]===V})};g.prototype={get:function(){function f(N){var V=v(this,N);if(V)return V[1]}return f}(),has:function(){function f(N){return!!v(this,N)}return f}(),set:function(){function f(N,V){var B=v(this,N);B?B[1]=V:this.entries.push([N,V])}return f}(),delete:function(){function f(N){var V=d(this.entries,function(B){return B[0]===N});return~V&&s(this.entries,V,1),!!~V}return f}()},T.exports={getConstructor:function(){function f(N,V,B,S){var L=N(function(E,P){o(E,w),c(E,{type:V,id:u++,frozen:void 0}),b(P)||I(P,E[S],{that:E,AS_ENTRIES:B})}),w=L.prototype,A=m(V),x=function(){function E(P,D,M){var O=A(P),R=t(p(D),!0);return R===!0?h(O).set(D,M):R[O.id]=M,P}return E}();return a(w,{delete:function(){function E(P){var D=A(this);if(!y(P))return!1;var M=t(P);return M===!0?h(D).delete(P):M&&C(M,D.id)&&delete M[D.id]}return E}(),has:function(){function E(P){var D=A(this);if(!y(P))return!1;var M=t(P);return M===!0?h(D).has(P):M&&C(M,D.id)}return E}()}),a(w,B?{get:function(){function E(P){var D=A(this);if(y(P)){var M=t(P);return M===!0?h(D).get(P):M?M[D.id]:void 0}}return E}(),set:function(){function E(P,D){return x(this,P,D)}return E}()}:{add:function(){function E(P){return x(this,P,!0)}return E}()}),L}return f}()}},45150:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(67250),o=n(41314),p=n(55938),b=n(81969),y=n(49450),I=n(60077),k=n(55747),C=n(42871),i=n(77568),c=n(40033),m=n(92490),l=n(84925),d=n(5781);T.exports=function(s,u,h){var g=s.indexOf("Map")!==-1,v=s.indexOf("Weak")!==-1,f=g?"set":"add",N=a[s],V=N&&N.prototype,B=N,S={},L=function(O){var R=t(V[O]);p(V,O,O==="add"?function(){function j(_){return R(this,_===0?0:_),this}return j}():O==="delete"?function(j){return v&&!i(j)?!1:R(this,j===0?0:j)}:O==="get"?function(){function j(_){return v&&!i(_)?void 0:R(this,_===0?0:_)}return j}():O==="has"?function(){function j(_){return v&&!i(_)?!1:R(this,_===0?0:_)}return j}():function(){function j(_,W){return R(this,_===0?0:_,W),this}return j}())},w=o(s,!k(N)||!(v||V.forEach&&!c(function(){new N().entries().next()})));if(w)B=h.getConstructor(u,s,g,f),b.enable();else if(o(s,!0)){var A=new B,x=A[f](v?{}:-0,1)!==A,E=c(function(){A.has(1)}),P=m(function(M){new N(M)}),D=!v&&c(function(){for(var M=new N,O=5;O--;)M[f](O,O);return!M.has(-0)});P||(B=u(function(M,O){I(M,V);var R=d(new N,M,B);return C(O)||y(O,R[f],{that:R,AS_ENTRIES:g}),R}),B.prototype=V,V.constructor=B),(E||D)&&(L("delete"),L("has"),g&&L("get")),(D||x)&&L(f),v&&V.clear&&delete V.clear}return S[s]=B,e({global:!0,constructor:!0,forced:B!==N},S),l(B,s),v||h.setStrong(B,s,g),B}},5774:function(T,r,n){"use strict";var e=n(45299),a=n(97921),t=n(27193),o=n(74595);T.exports=function(p,b,y){for(var I=a(b),k=o.f,C=t.f,i=0;i"+C+""}},5959:function(T){"use strict";T.exports=function(r,n){return{value:r,done:n}}},37909:function(T,r,n){"use strict";var e=n(58310),a=n(74595),t=n(87458);T.exports=e?function(o,p,b){return a.f(o,p,t(1,b))}:function(o,p,b){return o[p]=b,o}},87458:function(T){"use strict";T.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}},60102:function(T,r,n){"use strict";var e=n(58310),a=n(74595),t=n(87458);T.exports=function(o,p,b){e?a.f(o,p,t(0,b)):o[p]=b}},67206:function(T,r,n){"use strict";var e=n(67250),a=n(40033),t=n(24051).start,o=RangeError,p=isFinite,b=Math.abs,y=Date.prototype,I=y.toISOString,k=e(y.getTime),C=e(y.getUTCDate),i=e(y.getUTCFullYear),c=e(y.getUTCHours),m=e(y.getUTCMilliseconds),l=e(y.getUTCMinutes),d=e(y.getUTCMonth),s=e(y.getUTCSeconds);T.exports=a(function(){return I.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!a(function(){I.call(new Date(NaN))})?function(){function u(){if(!p(k(this)))throw new o("Invalid time value");var h=this,g=i(h),v=m(h),f=g<0?"-":g>9999?"+":"";return f+t(b(g),f?6:4,0)+"-"+t(d(h)+1,2,0)+"-"+t(C(h),2,0)+"T"+t(c(h),2,0)+":"+t(l(h),2,0)+":"+t(s(h),2,0)+"."+t(v,3,0)+"Z"}return u}():I},10886:function(T,r,n){"use strict";var e=n(30365),a=n(13396),t=TypeError;T.exports=function(o){if(e(this),o==="string"||o==="default")o="string";else if(o!=="number")throw new t("Incorrect hint");return a(this,o)}},73936:function(T,r,n){"use strict";var e=n(20001),a=n(74595);T.exports=function(t,o,p){return p.get&&e(p.get,o,{getter:!0}),p.set&&e(p.set,o,{setter:!0}),a.f(t,o,p)}},55938:function(T,r,n){"use strict";var e=n(55747),a=n(74595),t=n(20001),o=n(18231);T.exports=function(p,b,y,I){I||(I={});var k=I.enumerable,C=I.name!==void 0?I.name:b;if(e(y)&&t(y,C,I),I.global)k?p[b]=y:o(b,y);else{try{I.unsafe?p[b]&&(k=!0):delete p[b]}catch(i){}k?p[b]=y:a.f(p,b,{value:y,enumerable:!1,configurable:!I.nonConfigurable,writable:!I.nonWritable})}return p}},30145:function(T,r,n){"use strict";var e=n(55938);T.exports=function(a,t,o){for(var p in t)e(a,p,t[p],o);return a}},18231:function(T,r,n){"use strict";var e=n(74685),a=Object.defineProperty;T.exports=function(t,o){try{a(e,t,{value:o,configurable:!0,writable:!0})}catch(p){e[t]=o}return o}},95108:function(T,r,n){"use strict";var e=n(89393),a=TypeError;T.exports=function(t,o){if(!delete t[o])throw new a("Cannot delete property "+e(o)+" of "+e(t))}},58310:function(T,r,n){"use strict";var e=n(40033);T.exports=!e(function(){return Object.defineProperty({},1,{get:function(){function a(){return 7}return a}()})[1]!==7})},12689:function(T,r,n){"use strict";var e=n(74685),a=n(77568),t=e.document,o=a(t)&&a(t.createElement);T.exports=function(p){return o?t.createElement(p):{}}},21291:function(T){"use strict";var r=TypeError,n=9007199254740991;T.exports=function(e){if(e>n)throw r("Maximum allowed index exceeded");return e}},652:function(T,r,n){"use strict";var e=n(63318),a=e.match(/firefox\/(\d+)/i);T.exports=!!a&&+a[1]},8180:function(T,r,n){"use strict";var e=n(73730),a=n(81702);T.exports=!e&&!a&&typeof window=="object"&&typeof document=="object"},49197:function(T){"use strict";T.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},73730:function(T){"use strict";T.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},19228:function(T,r,n){"use strict";var e=n(63318);T.exports=/MSIE|Trident/.test(e)},51802:function(T,r,n){"use strict";var e=n(63318);T.exports=/ipad|iphone|ipod/i.test(e)&&typeof Pebble!="undefined"},83433:function(T,r,n){"use strict";var e=n(63318);T.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},81702:function(T,r,n){"use strict";var e=n(74685),a=n(7462);T.exports=a(e.process)==="process"},63383:function(T,r,n){"use strict";var e=n(63318);T.exports=/web0s(?!.*chrome)/i.test(e)},63318:function(T){"use strict";T.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},5026:function(T,r,n){"use strict";var e=n(74685),a=n(63318),t=e.process,o=e.Deno,p=t&&t.versions||o&&o.version,b=p&&p.v8,y,I;b&&(y=b.split("."),I=y[0]>0&&y[0]<4?1:+(y[0]+y[1])),!I&&a&&(y=a.match(/Edge\/(\d+)/),(!y||y[1]>=74)&&(y=a.match(/Chrome\/(\d+)/),y&&(I=+y[1]))),T.exports=I},9342:function(T,r,n){"use strict";var e=n(63318),a=e.match(/AppleWebKit\/(\d+)\./);T.exports=!!a&&+a[1]},89453:function(T){"use strict";T.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},63964:function(T,r,n){"use strict";var e=n(74685),a=n(27193).f,t=n(37909),o=n(55938),p=n(18231),b=n(5774),y=n(41314);T.exports=function(I,k){var C=I.target,i=I.global,c=I.stat,m,l,d,s,u,h;if(i?l=e:c?l=e[C]||p(C,{}):l=e[C]&&e[C].prototype,l)for(d in k){if(u=k[d],I.dontCallGetSet?(h=a(l,d),s=h&&h.value):s=l[d],m=y(i?d:C+(c?".":"#")+d,I.forced),!m&&s!==void 0){if(typeof u==typeof s)continue;b(u,s)}(I.sham||s&&s.sham)&&t(u,"sham",!0),o(l,d,u,I)}}},40033:function(T){"use strict";T.exports=function(r){try{return!!r()}catch(n){return!0}}},79942:function(T,r,n){"use strict";n(79669);var e=n(91495),a=n(55938),t=n(14489),o=n(40033),p=n(24697),b=n(37909),y=p("species"),I=RegExp.prototype;T.exports=function(k,C,i,c){var m=p(k),l=!o(function(){var h={};return h[m]=function(){return 7},""[k](h)!==7}),d=l&&!o(function(){var h=!1,g=/a/;return k==="split"&&(g={},g.constructor={},g.constructor[y]=function(){return g},g.flags="",g[m]=/./[m]),g.exec=function(){return h=!0,null},g[m](""),!h});if(!l||!d||i){var s=/./[m],u=C(m,""[k],function(h,g,v,f,N){var V=g.exec;return V===t||V===I.exec?l&&!N?{done:!0,value:e(s,g,v,f)}:{done:!0,value:e(h,v,g,f)}:{done:!1}});a(String.prototype,k,u[0]),a(I,m,u[1])}c&&b(I[m],"sham",!0)}},65561:function(T,r,n){"use strict";var e=n(37386),a=n(24760),t=n(21291),o=n(75754),p=function b(y,I,k,C,i,c,m,l){for(var d=i,s=0,u=m?o(m,l):!1,h,g;s0&&e(h)?(g=a(h),d=b(y,I,h,g,d,c-1)-1):(t(d+1),y[d]=h),d++),s++;return d};T.exports=p},50730:function(T,r,n){"use strict";var e=n(40033);T.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},61267:function(T,r,n){"use strict";var e=n(55050),a=Function.prototype,t=a.apply,o=a.call;T.exports=typeof Reflect=="object"&&Reflect.apply||(e?o.bind(t):function(){return o.apply(t,arguments)})},75754:function(T,r,n){"use strict";var e=n(71138),a=n(10320),t=n(55050),o=e(e.bind);T.exports=function(p,b){return a(p),b===void 0?p:t?o(p,b):function(){return p.apply(b,arguments)}}},55050:function(T,r,n){"use strict";var e=n(40033);T.exports=!e(function(){var a=function(){}.bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},66284:function(T,r,n){"use strict";var e=n(67250),a=n(10320),t=n(77568),o=n(45299),p=n(54602),b=n(55050),y=Function,I=e([].concat),k=e([].join),C={},i=function(m,l,d){if(!o(C,l)){for(var s=[],u=0;u]*>)/g,I=/\$([$&'`]|\d{1,2})/g;T.exports=function(k,C,i,c,m,l){var d=i+k.length,s=c.length,u=I;return m!==void 0&&(m=a(m),u=y),p(l,u,function(h,g){var v;switch(o(g,0)){case"$":return"$";case"&":return k;case"`":return b(C,0,i);case"'":return b(C,d);case"<":v=m[b(g,1,-1)];break;default:var f=+g;if(f===0)return h;if(f>s){var N=t(f/10);return N===0?h:N<=s?c[N-1]===void 0?o(g,1):c[N-1]+o(g,1):h}v=c[f-1]}return v===void 0?"":v})}},74685:function(T,r,n){"use strict";var e=function(t){return t&&t.Math===Math&&t};T.exports=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof n.g=="object"&&n.g)||e(!1)||function(){return this}()||Function("return this")()},45299:function(T,r,n){"use strict";var e=n(67250),a=n(46771),t=e({}.hasOwnProperty);T.exports=Object.hasOwn||function(){function o(p,b){return t(a(p),b)}return o}()},79195:function(T){"use strict";T.exports={}},72259:function(T){"use strict";T.exports=function(r,n){try{arguments.length}catch(e){}}},5315:function(T,r,n){"use strict";var e=n(4009);T.exports=e("document","documentElement")},36223:function(T,r,n){"use strict";var e=n(58310),a=n(40033),t=n(12689);T.exports=!e&&!a(function(){return Object.defineProperty(t("div"),"a",{get:function(){function o(){return 7}return o}()}).a!==7})},91784:function(T){"use strict";var r=Array,n=Math.abs,e=Math.pow,a=Math.floor,t=Math.log,o=Math.LN2,p=function(I,k,C){var i=r(C),c=C*8-k-1,m=(1<>1,d=k===23?e(2,-24)-e(2,-77):0,s=I<0||I===0&&1/I<0?1:0,u=0,h,g,v;for(I=n(I),I!==I||I===1/0?(g=I!==I?1:0,h=m):(h=a(t(I)/o),v=e(2,-h),I*v<1&&(h--,v*=2),h+l>=1?I+=d/v:I+=d*e(2,1-l),I*v>=2&&(h++,v/=2),h+l>=m?(g=0,h=m):h+l>=1?(g=(I*v-1)*e(2,k),h+=l):(g=I*e(2,l-1)*e(2,k),h=0));k>=8;)i[u++]=g&255,g/=256,k-=8;for(h=h<0;)i[u++]=h&255,h/=256,c-=8;return i[--u]|=s*128,i},b=function(I,k){var C=I.length,i=C*8-k-1,c=(1<>1,l=i-7,d=C-1,s=I[d--],u=s&127,h;for(s>>=7;l>0;)u=u*256+I[d--],l-=8;for(h=u&(1<<-l)-1,u>>=-l,l+=k;l>0;)h=h*256+I[d--],l-=8;if(u===0)u=1-m;else{if(u===c)return h?NaN:s?-1/0:1/0;h+=e(2,k),u-=m}return(s?-1:1)*h*e(2,u-k)};T.exports={pack:p,unpack:b}},37457:function(T,r,n){"use strict";var e=n(67250),a=n(40033),t=n(7462),o=Object,p=e("".split);T.exports=a(function(){return!o("z").propertyIsEnumerable(0)})?function(b){return t(b)==="String"?p(b,""):o(b)}:o},5781:function(T,r,n){"use strict";var e=n(55747),a=n(77568),t=n(76649);T.exports=function(o,p,b){var y,I;return t&&e(y=p.constructor)&&y!==b&&a(I=y.prototype)&&I!==b.prototype&&t(o,I),o}},40492:function(T,r,n){"use strict";var e=n(67250),a=n(55747),t=n(40095),o=e(Function.toString);a(t.inspectSource)||(t.inspectSource=function(p){return o(p)}),T.exports=t.inspectSource},81969:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(79195),o=n(77568),p=n(45299),b=n(74595).f,y=n(37310),I=n(81644),k=n(81834),C=n(16738),i=n(50730),c=!1,m=C("meta"),l=0,d=function(N){b(N,m,{value:{objectID:"O"+l++,weakData:{}}})},s=function(N,V){if(!o(N))return typeof N=="symbol"?N:(typeof N=="string"?"S":"P")+N;if(!p(N,m)){if(!k(N))return"F";if(!V)return"E";d(N)}return N[m].objectID},u=function(N,V){if(!p(N,m)){if(!k(N))return!0;if(!V)return!1;d(N)}return N[m].weakData},h=function(N){return i&&c&&k(N)&&!p(N,m)&&d(N),N},g=function(){v.enable=function(){},c=!0;var N=y.f,V=a([].splice),B={};B[m]=1,N(B).length&&(y.f=function(S){for(var L=N(S),w=0,A=L.length;wS;S++)if(w=P(l[S]),w&&y(m,w))return w;return new c(!1)}V=I(l,B)}for(A=g?l.next:V.next;!(x=a(A,V)).done;){try{w=P(x.value)}catch(D){C(V,"throw",D)}if(typeof w=="object"&&w&&y(m,w))return w}return new c(!1)}},28649:function(T,r,n){"use strict";var e=n(91495),a=n(30365),t=n(78060);T.exports=function(o,p,b){var y,I;a(o);try{if(y=t(o,"return"),!y){if(p==="throw")throw b;return b}y=e(y,o)}catch(k){I=!0,y=k}if(p==="throw")throw b;if(I)throw y;return a(y),b}},5656:function(T,r,n){"use strict";var e=n(67635).IteratorPrototype,a=n(80674),t=n(87458),o=n(84925),p=n(83967),b=function(){return this};T.exports=function(y,I,k,C){var i=I+" Iterator";return y.prototype=a(e,{next:t(+!C,k)}),o(y,i,!1,!0),p[i]=b,y}},65574:function(T,r,n){"use strict";var e=n(63964),a=n(91495),t=n(4493),o=n(70520),p=n(55747),b=n(5656),y=n(36917),I=n(76649),k=n(84925),C=n(37909),i=n(55938),c=n(24697),m=n(83967),l=n(67635),d=o.PROPER,s=o.CONFIGURABLE,u=l.IteratorPrototype,h=l.BUGGY_SAFARI_ITERATORS,g=c("iterator"),v="keys",f="values",N="entries",V=function(){return this};T.exports=function(B,S,L,w,A,x,E){b(L,S,w);var P=function(Q){if(Q===A&&j)return j;if(!h&&Q&&Q in O)return O[Q];switch(Q){case v:return function(){function J(){return new L(this,Q)}return J}();case f:return function(){function J(){return new L(this,Q)}return J}();case N:return function(){function J(){return new L(this,Q)}return J}()}return function(){return new L(this)}},D=S+" Iterator",M=!1,O=B.prototype,R=O[g]||O["@@iterator"]||A&&O[A],j=!h&&R||P(A),_=S==="Array"&&O.entries||R,W,z,K;if(_&&(W=y(_.call(new B)),W!==Object.prototype&&W.next&&(!t&&y(W)!==u&&(I?I(W,u):p(W[g])||i(W,g,V)),k(W,D,!0,!0),t&&(m[D]=V))),d&&A===f&&R&&R.name!==f&&(!t&&s?C(O,"name",f):(M=!0,j=function(){function G(){return a(R,this)}return G}())),A)if(z={values:P(f),keys:x?j:P(v),entries:P(N)},E)for(K in z)(h||M||!(K in O))&&i(O,K,z[K]);else e({target:S,proto:!0,forced:h||M},z);return(!t||E)&&O[g]!==j&&i(O,g,j,{name:A}),m[S]=j,z}},67635:function(T,r,n){"use strict";var e=n(40033),a=n(55747),t=n(77568),o=n(80674),p=n(36917),b=n(55938),y=n(24697),I=n(4493),k=y("iterator"),C=!1,i,c,m;[].keys&&(m=[].keys(),"next"in m?(c=p(p(m)),c!==Object.prototype&&(i=c)):C=!0);var l=!t(i)||e(function(){var d={};return i[k].call(d)!==d});l?i={}:I&&(i=o(i)),a(i[k])||b(i,k,function(){return this}),T.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:C}},83967:function(T){"use strict";T.exports={}},24760:function(T,r,n){"use strict";var e=n(10188);T.exports=function(a){return e(a.length)}},20001:function(T,r,n){"use strict";var e=n(67250),a=n(40033),t=n(55747),o=n(45299),p=n(58310),b=n(70520).CONFIGURABLE,y=n(40492),I=n(5419),k=I.enforce,C=I.get,i=String,c=Object.defineProperty,m=e("".slice),l=e("".replace),d=e([].join),s=p&&!a(function(){return c(function(){},"length",{value:8}).length!==8}),u=String(String).split("String"),h=T.exports=function(g,v,f){m(i(v),0,7)==="Symbol("&&(v="["+l(i(v),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),f&&f.getter&&(v="get "+v),f&&f.setter&&(v="set "+v),(!o(g,"name")||b&&g.name!==v)&&(p?c(g,"name",{value:v,configurable:!0}):g.name=v),s&&f&&o(f,"arity")&&g.length!==f.arity&&c(g,"length",{value:f.arity});try{f&&o(f,"constructor")&&f.constructor?p&&c(g,"prototype",{writable:!1}):g.prototype&&(g.prototype=void 0)}catch(V){}var N=k(g);return o(N,"source")||(N.source=d(u,typeof v=="string"?v:"")),g};Function.prototype.toString=h(function(){function g(){return t(this)&&C(this).source||y(this)}return g}(),"toString")},82040:function(T){"use strict";var r=Math.expm1,n=Math.exp;T.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||r(-2e-17)!==-2e-17?function(){function e(a){var t=+a;return t===0?t:t>-1e-6&&t<1e-6?t+t*t/2:n(t)-1}return e}():r},14950:function(T,r,n){"use strict";var e=n(22172),a=Math.abs,t=2220446049250313e-31,o=1/t,p=function(y){return y+o-o};T.exports=function(b,y,I,k){var C=+b,i=a(C),c=e(C);if(iI||l!==l?c*(1/0):c*l}},95867:function(T,r,n){"use strict";var e=n(14950),a=11920928955078125e-23,t=34028234663852886e22,o=11754943508222875e-54;T.exports=Math.fround||function(){function p(b){return e(b,a,t,o)}return p}()},75002:function(T){"use strict";var r=Math.log,n=Math.LOG10E;T.exports=Math.log10||function(){function e(a){return r(a)*n}return e}()},90874:function(T){"use strict";var r=Math.log;T.exports=Math.log1p||function(){function n(e){var a=+e;return a>-1e-8&&a<1e-8?a-a*a/2:r(1+a)}return n}()},22172:function(T){"use strict";T.exports=Math.sign||function(){function r(n){var e=+n;return e===0||e!==e?e:e<0?-1:1}return r}()},21119:function(T){"use strict";var r=Math.ceil,n=Math.floor;T.exports=Math.trunc||function(){function e(a){var t=+a;return(t>0?n:r)(t)}return e}()},37713:function(T,r,n){"use strict";var e=n(74685),a=n(44915),t=n(75754),o=n(60375).set,p=n(9547),b=n(83433),y=n(51802),I=n(63383),k=n(81702),C=e.MutationObserver||e.WebKitMutationObserver,i=e.document,c=e.process,m=e.Promise,l=a("queueMicrotask"),d,s,u,h,g;if(!l){var v=new p,f=function(){var V,B;for(k&&(V=c.domain)&&V.exit();B=v.get();)try{B()}catch(S){throw v.head&&d(),S}V&&V.enter()};!b&&!k&&!I&&C&&i?(s=!0,u=i.createTextNode(""),new C(f).observe(u,{characterData:!0}),d=function(){u.data=s=!s}):!y&&m&&m.resolve?(h=m.resolve(void 0),h.constructor=m,g=t(h.then,h),d=function(){g(f)}):k?d=function(){c.nextTick(f)}:(o=t(o,e),d=function(){o(f)}),l=function(V){v.head||d(),v.add(V)}}T.exports=l},81837:function(T,r,n){"use strict";var e=n(10320),a=TypeError,t=function(p){var b,y;this.promise=new p(function(I,k){if(b!==void 0||y!==void 0)throw new a("Bad Promise constructor");b=I,y=k}),this.resolve=e(b),this.reject=e(y)};T.exports.f=function(o){return new t(o)}},86213:function(T,r,n){"use strict";var e=n(72586),a=TypeError;T.exports=function(t){if(e(t))throw new a("The method doesn't accept regular expressions");return t}},3294:function(T,r,n){"use strict";var e=n(74685),a=e.isFinite;T.exports=Number.isFinite||function(){function t(o){return typeof o=="number"&&a(o)}return t}()},28506:function(T,r,n){"use strict";var e=n(74685),a=n(40033),t=n(67250),o=n(12605),p=n(92648).trim,b=n(4198),y=t("".charAt),I=e.parseFloat,k=e.Symbol,C=k&&k.iterator,i=1/I(b+"-0")!==-1/0||C&&!a(function(){I(Object(C))});T.exports=i?function(){function c(m){var l=p(o(m)),d=I(l);return d===0&&y(l,0)==="-"?-0:d}return c}():I},13693:function(T,r,n){"use strict";var e=n(74685),a=n(40033),t=n(67250),o=n(12605),p=n(92648).trim,b=n(4198),y=e.parseInt,I=e.Symbol,k=I&&I.iterator,C=/^[+-]?0x/i,i=t(C.exec),c=y(b+"08")!==8||y(b+"0x16")!==22||k&&!a(function(){y(Object(k))});T.exports=c?function(){function m(l,d){var s=p(o(l));return y(s,d>>>0||(i(C,s)?16:10))}return m}():y},41143:function(T,r,n){"use strict";var e=n(58310),a=n(67250),t=n(91495),o=n(40033),p=n(18450),b=n(89235),y=n(12867),I=n(46771),k=n(37457),C=Object.assign,i=Object.defineProperty,c=a([].concat);T.exports=!C||o(function(){if(e&&C({b:1},C(i({},"a",{enumerable:!0,get:function(){function u(){i(this,"b",{value:3,enumerable:!1})}return u}()}),{b:2})).b!==1)return!0;var m={},l={},d=Symbol("assign detection"),s="abcdefghijklmnopqrst";return m[d]=7,s.split("").forEach(function(u){l[u]=u}),C({},m)[d]!==7||p(C({},l)).join("")!==s})?function(){function m(l,d){for(var s=I(l),u=arguments.length,h=1,g=b.f,v=y.f;u>h;)for(var f=k(arguments[h++]),N=g?c(p(f),g(f)):p(f),V=N.length,B=0,S;V>B;)S=N[B++],(!e||t(v,f,S))&&(s[S]=f[S]);return s}return m}():C},80674:function(T,r,n){"use strict";var e=n(30365),a=n(24239),t=n(89453),o=n(79195),p=n(5315),b=n(12689),y=n(19417),I=">",k="<",C="prototype",i="script",c=y("IE_PROTO"),m=function(){},l=function(v){return k+i+I+v+k+"/"+i+I},d=function(v){v.write(l("")),v.close();var f=v.parentWindow.Object;return v=null,f},s=function(){var v=b("iframe"),f="java"+i+":",N;return v.style.display="none",p.appendChild(v),v.src=String(f),N=v.contentWindow.document,N.open(),N.write(l("document.F=Object")),N.close(),N.F},u,h=function(){try{u=new ActiveXObject("htmlfile")}catch(f){}h=typeof document!="undefined"?document.domain&&u?d(u):s():d(u);for(var v=t.length;v--;)delete h[C][t[v]];return h()};o[c]=!0,T.exports=Object.create||function(){function g(v,f){var N;return v!==null?(m[C]=e(v),N=new m,m[C]=null,N[c]=v):N=h(),f===void 0?N:a.f(N,f)}return g}()},24239:function(T,r,n){"use strict";var e=n(58310),a=n(80944),t=n(74595),o=n(30365),p=n(57591),b=n(18450);r.f=e&&!a?Object.defineProperties:function(){function y(I,k){o(I);for(var C=p(k),i=b(k),c=i.length,m=0,l;c>m;)t.f(I,l=i[m++],C[l]);return I}return y}()},74595:function(T,r,n){"use strict";var e=n(58310),a=n(36223),t=n(80944),o=n(30365),p=n(767),b=TypeError,y=Object.defineProperty,I=Object.getOwnPropertyDescriptor,k="enumerable",C="configurable",i="writable";r.f=e?t?function(){function c(m,l,d){if(o(m),l=p(l),o(d),typeof m=="function"&&l==="prototype"&&"value"in d&&i in d&&!d[i]){var s=I(m,l);s&&s[i]&&(m[l]=d.value,d={configurable:C in d?d[C]:s[C],enumerable:k in d?d[k]:s[k],writable:!1})}return y(m,l,d)}return c}():y:function(){function c(m,l,d){if(o(m),l=p(l),o(d),a)try{return y(m,l,d)}catch(s){}if("get"in d||"set"in d)throw new b("Accessors not supported");return"value"in d&&(m[l]=d.value),m}return c}()},27193:function(T,r,n){"use strict";var e=n(58310),a=n(91495),t=n(12867),o=n(87458),p=n(57591),b=n(767),y=n(45299),I=n(36223),k=Object.getOwnPropertyDescriptor;r.f=e?k:function(){function C(i,c){if(i=p(i),c=b(c),I)try{return k(i,c)}catch(m){}if(y(i,c))return o(!a(t.f,i,c),i[c])}return C}()},81644:function(T,r,n){"use strict";var e=n(7462),a=n(57591),t=n(37310).f,o=n(54602),p=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],b=function(I){try{return t(I)}catch(k){return o(p)}};T.exports.f=function(){function y(I){return p&&e(I)==="Window"?b(I):t(a(I))}return y}()},37310:function(T,r,n){"use strict";var e=n(53726),a=n(89453),t=a.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(){function o(p){return e(p,t)}return o}()},89235:function(T,r){"use strict";r.f=Object.getOwnPropertySymbols},36917:function(T,r,n){"use strict";var e=n(45299),a=n(55747),t=n(46771),o=n(19417),p=n(9225),b=o("IE_PROTO"),y=Object,I=y.prototype;T.exports=p?y.getPrototypeOf:function(k){var C=t(k);if(e(C,b))return C[b];var i=C.constructor;return a(i)&&C instanceof i?i.prototype:C instanceof y?I:null}},81834:function(T,r,n){"use strict";var e=n(40033),a=n(77568),t=n(7462),o=n(3782),p=Object.isExtensible,b=e(function(){p(1)});T.exports=b||o?function(){function y(I){return!a(I)||o&&t(I)==="ArrayBuffer"?!1:p?p(I):!0}return y}():p},21287:function(T,r,n){"use strict";var e=n(67250);T.exports=e({}.isPrototypeOf)},53726:function(T,r,n){"use strict";var e=n(67250),a=n(45299),t=n(57591),o=n(14211).indexOf,p=n(79195),b=e([].push);T.exports=function(y,I){var k=t(y),C=0,i=[],c;for(c in k)!a(p,c)&&a(k,c)&&b(i,c);for(;I.length>C;)a(k,c=I[C++])&&(~o(i,c)||b(i,c));return i}},18450:function(T,r,n){"use strict";var e=n(53726),a=n(89453);T.exports=Object.keys||function(){function t(o){return e(o,a)}return t}()},12867:function(T,r){"use strict";var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,a=e&&!n.call({1:2},1);r.f=a?function(){function t(o){var p=e(this,o);return!!p&&p.enumerable}return t}():n},57377:function(T,r,n){"use strict";var e=n(4493),a=n(74685),t=n(40033),o=n(9342);T.exports=e||!t(function(){if(!(o&&o<535)){var p=Math.random();__defineSetter__.call(null,p,function(){}),delete a[p]}})},76649:function(T,r,n){"use strict";var e=n(38656),a=n(77568),t=n(16952),o=n(35908);T.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var p=!1,b={},y;try{y=e(Object.prototype,"__proto__","set"),y(b,[]),p=b instanceof Array}catch(I){}return function(){function I(k,C){return t(k),o(C),a(k)&&(p?y(k,C):k.__proto__=C),k}return I}()}():void 0)},70915:function(T,r,n){"use strict";var e=n(58310),a=n(40033),t=n(67250),o=n(36917),p=n(18450),b=n(57591),y=n(12867).f,I=t(y),k=t([].push),C=e&&a(function(){var c=Object.create(null);return c[2]=2,!I(c,2)}),i=function(m){return function(l){for(var d=b(l),s=p(d),u=C&&o(d)===null,h=s.length,g=0,v=[],f;h>g;)f=s[g++],(!e||(u?f in d:I(d,f)))&&k(v,m?[f,d[f]]:d[f]);return v}};T.exports={entries:i(!0),values:i(!1)}},2509:function(T,r,n){"use strict";var e=n(2650),a=n(2281);T.exports=e?{}.toString:function(){function t(){return"[object "+a(this)+"]"}return t}()},13396:function(T,r,n){"use strict";var e=n(91495),a=n(55747),t=n(77568),o=TypeError;T.exports=function(p,b){var y,I;if(b==="string"&&a(y=p.toString)&&!t(I=e(y,p))||a(y=p.valueOf)&&!t(I=e(y,p))||b!=="string"&&a(y=p.toString)&&!t(I=e(y,p)))return I;throw new o("Can't convert object to primitive value")}},97921:function(T,r,n){"use strict";var e=n(4009),a=n(67250),t=n(37310),o=n(89235),p=n(30365),b=a([].concat);T.exports=e("Reflect","ownKeys")||function(){function y(I){var k=t.f(p(I)),C=o.f;return C?b(k,C(I)):k}return y}()},61765:function(T,r,n){"use strict";var e=n(74685);T.exports=e},10729:function(T){"use strict";T.exports=function(r){try{return{error:!1,value:r()}}catch(n){return{error:!0,value:n}}}},74854:function(T,r,n){"use strict";var e=n(74685),a=n(67512),t=n(55747),o=n(41314),p=n(40492),b=n(24697),y=n(8180),I=n(73730),k=n(4493),C=n(5026),i=a&&a.prototype,c=b("species"),m=!1,l=t(e.PromiseRejectionEvent),d=o("Promise",function(){var s=p(a),u=s!==String(a);if(!u&&C===66||k&&!(i.catch&&i.finally))return!0;if(!C||C<51||!/native code/.test(s)){var h=new a(function(f){f(1)}),g=function(N){N(function(){},function(){})},v=h.constructor={};if(v[c]=g,m=h.then(function(){})instanceof g,!m)return!0}return!u&&(y||I)&&!l});T.exports={CONSTRUCTOR:d,REJECTION_EVENT:l,SUBCLASSING:m}},67512:function(T,r,n){"use strict";var e=n(74685);T.exports=e.Promise},66628:function(T,r,n){"use strict";var e=n(30365),a=n(77568),t=n(81837);T.exports=function(o,p){if(e(o),a(p)&&p.constructor===o)return p;var b=t.f(o),y=b.resolve;return y(p),b.promise}},48199:function(T,r,n){"use strict";var e=n(67512),a=n(92490),t=n(74854).CONSTRUCTOR;T.exports=t||!a(function(o){e.all(o).then(void 0,function(){})})},34550:function(T,r,n){"use strict";var e=n(74595).f;T.exports=function(a,t,o){o in a||e(a,o,{configurable:!0,get:function(){function p(){return t[o]}return p}(),set:function(){function p(b){t[o]=b}return p}()})}},9547:function(T){"use strict";var r=function(){this.head=null,this.tail=null};r.prototype={add:function(){function n(e){var a={item:e,next:null},t=this.tail;t?t.next=a:this.head=a,this.tail=a}return n}(),get:function(){function n(){var e=this.head;if(e){var a=this.head=e.next;return a===null&&(this.tail=null),e.item}}return n}()},T.exports=r},28340:function(T,r,n){"use strict";var e=n(91495),a=n(30365),t=n(55747),o=n(7462),p=n(14489),b=TypeError;T.exports=function(y,I){var k=y.exec;if(t(k)){var C=e(k,y,I);return C!==null&&a(C),C}if(o(y)==="RegExp")return e(p,y,I);throw new b("RegExp#exec called on incompatible receiver")}},14489:function(T,r,n){"use strict";var e=n(91495),a=n(67250),t=n(12605),o=n(70901),p=n(62115),b=n(16639),y=n(80674),I=n(5419).get,k=n(39173),C=n(35688),i=b("native-string-replace",String.prototype.replace),c=RegExp.prototype.exec,m=c,l=a("".charAt),d=a("".indexOf),s=a("".replace),u=a("".slice),h=function(){var N=/a/,V=/b*/g;return e(c,N,"a"),e(c,V,"a"),N.lastIndex!==0||V.lastIndex!==0}(),g=p.BROKEN_CARET,v=/()??/.exec("")[1]!==void 0,f=h||v||g||k||C;f&&(m=function(){function N(V){var B=this,S=I(B),L=t(V),w=S.raw,A,x,E,P,D,M,O;if(w)return w.lastIndex=B.lastIndex,A=e(m,w,L),B.lastIndex=w.lastIndex,A;var R=S.groups,j=g&&B.sticky,_=e(o,B),W=B.source,z=0,K=L;if(j&&(_=s(_,"y",""),d(_,"g")===-1&&(_+="g"),K=u(L,B.lastIndex),B.lastIndex>0&&(!B.multiline||B.multiline&&l(L,B.lastIndex-1)!=="\n")&&(W="(?: "+W+")",K=" "+K,z++),x=new RegExp("^(?:"+W+")",_)),v&&(x=new RegExp("^"+W+"$(?!\\s)",_)),h&&(E=B.lastIndex),P=e(c,j?x:B,K),j?P?(P.input=u(P.input,z),P[0]=u(P[0],z),P.index=B.lastIndex,B.lastIndex+=P[0].length):B.lastIndex=0:h&&P&&(B.lastIndex=B.global?P.index+P[0].length:E),v&&P&&P.length>1&&e(i,P[0],x,function(){for(D=1;Db)","g");return o.exec("b").groups.a!=="b"||"b".replace(o,"$c")!=="bc"})},16952:function(T,r,n){"use strict";var e=n(42871),a=TypeError;T.exports=function(t){if(e(t))throw new a("Can't call method on "+t);return t}},44915:function(T,r,n){"use strict";var e=n(74685),a=n(58310),t=Object.getOwnPropertyDescriptor;T.exports=function(o){if(!a)return e[o];var p=t(e,o);return p&&p.value}},5700:function(T){"use strict";T.exports=Object.is||function(){function r(n,e){return n===e?n!==0||1/n===1/e:n!==n&&e!==e}return r}()},78362:function(T,r,n){"use strict";var e=n(74685),a=n(61267),t=n(55747),o=n(49197),p=n(63318),b=n(54602),y=n(24986),I=e.Function,k=/MSIE .\./.test(p)||o&&function(){var C=e.Bun.version.split(".");return C.length<3||C[0]==="0"&&(C[1]<3||C[1]==="3"&&C[2]==="0")}();T.exports=function(C,i){var c=i?2:1;return k?function(m,l){var d=y(arguments.length,1)>c,s=t(m)?m:I(m),u=d?b(arguments,c):[],h=d?function(){a(s,this,u)}:s;return i?C(h,l):C(h)}:C}},58491:function(T,r,n){"use strict";var e=n(4009),a=n(73936),t=n(24697),o=n(58310),p=t("species");T.exports=function(b){var y=e(b);o&&y&&!y[p]&&a(y,p,{configurable:!0,get:function(){function I(){return this}return I}()})}},84925:function(T,r,n){"use strict";var e=n(74595).f,a=n(45299),t=n(24697),o=t("toStringTag");T.exports=function(p,b,y){p&&!y&&(p=p.prototype),p&&!a(p,o)&&e(p,o,{configurable:!0,value:b})}},19417:function(T,r,n){"use strict";var e=n(16639),a=n(16738),t=e("keys");T.exports=function(o){return t[o]||(t[o]=a(o))}},40095:function(T,r,n){"use strict";var e=n(4493),a=n(74685),t=n(18231),o="__core-js_shared__",p=T.exports=a[o]||t(o,{});(p.versions||(p.versions=[])).push({version:"3.37.1",mode:e?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},16639:function(T,r,n){"use strict";var e=n(40095);T.exports=function(a,t){return e[a]||(e[a]=t||{})}},28987:function(T,r,n){"use strict";var e=n(30365),a=n(32606),t=n(42871),o=n(24697),p=o("species");T.exports=function(b,y){var I=e(b).constructor,k;return I===void 0||t(k=e(I)[p])?y:a(k)}},88539:function(T,r,n){"use strict";var e=n(40033);T.exports=function(a){return e(function(){var t=""[a]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},50233:function(T,r,n){"use strict";var e=n(67250),a=n(61365),t=n(12605),o=n(16952),p=e("".charAt),b=e("".charCodeAt),y=e("".slice),I=function(C){return function(i,c){var m=t(o(i)),l=a(c),d=m.length,s,u;return l<0||l>=d?C?"":void 0:(s=b(m,l),s<55296||s>56319||l+1===d||(u=b(m,l+1))<56320||u>57343?C?p(m,l):s:C?y(m,l,l+2):(s-55296<<10)+(u-56320)+65536)}};T.exports={codeAt:I(!1),charAt:I(!0)}},34125:function(T,r,n){"use strict";var e=n(63318);T.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(e)},24051:function(T,r,n){"use strict";var e=n(67250),a=n(10188),t=n(12605),o=n(62443),p=n(16952),b=e(o),y=e("".slice),I=Math.ceil,k=function(i){return function(c,m,l){var d=t(p(c)),s=a(m),u=d.length,h=l===void 0?" ":t(l),g,v;return s<=u||h===""?d:(g=s-u,v=b(h,I(g/h.length)),v.length>g&&(v=y(v,0,g)),i?d+v:v+d)}};T.exports={start:k(!1),end:k(!0)}},62443:function(T,r,n){"use strict";var e=n(61365),a=n(12605),t=n(16952),o=RangeError;T.exports=function(){function p(b){var y=a(t(this)),I="",k=e(b);if(k<0||k===1/0)throw new o("Wrong number of repetitions");for(;k>0;(k>>>=1)&&(y+=y))k&1&&(I+=y);return I}return p}()},43476:function(T,r,n){"use strict";var e=n(92648).end,a=n(90012);T.exports=a("trimEnd")?function(){function t(){return e(this)}return t}():"".trimEnd},90012:function(T,r,n){"use strict";var e=n(70520).PROPER,a=n(40033),t=n(4198),o="\u200B\x85\u180E";T.exports=function(p){return a(function(){return!!t[p]()||o[p]()!==o||e&&t[p].name!==p})}},43885:function(T,r,n){"use strict";var e=n(92648).start,a=n(90012);T.exports=a("trimStart")?function(){function t(){return e(this)}return t}():"".trimStart},92648:function(T,r,n){"use strict";var e=n(67250),a=n(16952),t=n(12605),o=n(4198),p=e("".replace),b=RegExp("^["+o+"]+"),y=RegExp("(^|[^"+o+"])["+o+"]+$"),I=function(C){return function(i){var c=t(a(i));return C&1&&(c=p(c,b,"")),C&2&&(c=p(c,y,"$1")),c}};T.exports={start:I(1),end:I(2),trim:I(3)}},52357:function(T,r,n){"use strict";var e=n(5026),a=n(40033),t=n(74685),o=t.String;T.exports=!!Object.getOwnPropertySymbols&&!a(function(){var p=Symbol("symbol detection");return!o(p)||!(Object(p)instanceof Symbol)||!Symbol.sham&&e&&e<41})},52360:function(T,r,n){"use strict";var e=n(91495),a=n(4009),t=n(24697),o=n(55938);T.exports=function(){var p=a("Symbol"),b=p&&p.prototype,y=b&&b.valueOf,I=t("toPrimitive");b&&!b[I]&&o(b,I,function(k){return e(y,this)},{arity:1})}},66570:function(T,r,n){"use strict";var e=n(52357);T.exports=e&&!!Symbol.for&&!!Symbol.keyFor},60375:function(T,r,n){"use strict";var e=n(74685),a=n(61267),t=n(75754),o=n(55747),p=n(45299),b=n(40033),y=n(5315),I=n(54602),k=n(12689),C=n(24986),i=n(83433),c=n(81702),m=e.setImmediate,l=e.clearImmediate,d=e.process,s=e.Dispatch,u=e.Function,h=e.MessageChannel,g=e.String,v=0,f={},N="onreadystatechange",V,B,S,L;b(function(){V=e.location});var w=function(D){if(p(f,D)){var M=f[D];delete f[D],M()}},A=function(D){return function(){w(D)}},x=function(D){w(D.data)},E=function(D){e.postMessage(g(D),V.protocol+"//"+V.host)};(!m||!l)&&(m=function(){function P(D){C(arguments.length,1);var M=o(D)?D:u(D),O=I(arguments,1);return f[++v]=function(){a(M,void 0,O)},B(v),v}return P}(),l=function(){function P(D){delete f[D]}return P}(),c?B=function(D){d.nextTick(A(D))}:s&&s.now?B=function(D){s.now(A(D))}:h&&!i?(S=new h,L=S.port2,S.port1.onmessage=x,B=t(L.postMessage,L)):e.addEventListener&&o(e.postMessage)&&!e.importScripts&&V&&V.protocol!=="file:"&&!b(E)?(B=E,e.addEventListener("message",x,!1)):N in k("script")?B=function(D){y.appendChild(k("script"))[N]=function(){y.removeChild(this),w(D)}}:B=function(D){setTimeout(A(D),0)}),T.exports={set:m,clear:l}},46438:function(T,r,n){"use strict";var e=n(67250);T.exports=e(1 .valueOf)},13912:function(T,r,n){"use strict";var e=n(61365),a=Math.max,t=Math.min;T.exports=function(o,p){var b=e(o);return b<0?a(b+p,0):t(b,p)}},61484:function(T,r,n){"use strict";var e=n(24843),a=TypeError;T.exports=function(t){var o=e(t,"number");if(typeof o=="number")throw new a("Can't convert number to bigint");return BigInt(o)}},43806:function(T,r,n){"use strict";var e=n(61365),a=n(10188),t=RangeError;T.exports=function(o){if(o===void 0)return 0;var p=e(o),b=a(p);if(p!==b)throw new t("Wrong length or index");return b}},57591:function(T,r,n){"use strict";var e=n(37457),a=n(16952);T.exports=function(t){return e(a(t))}},61365:function(T,r,n){"use strict";var e=n(21119);T.exports=function(a){var t=+a;return t!==t||t===0?0:e(t)}},10188:function(T,r,n){"use strict";var e=n(61365),a=Math.min;T.exports=function(t){var o=e(t);return o>0?a(o,9007199254740991):0}},46771:function(T,r,n){"use strict";var e=n(16952),a=Object;T.exports=function(t){return a(e(t))}},56043:function(T,r,n){"use strict";var e=n(16140),a=RangeError;T.exports=function(t,o){var p=e(t);if(p%o)throw new a("Wrong offset");return p}},16140:function(T,r,n){"use strict";var e=n(61365),a=RangeError;T.exports=function(t){var o=e(t);if(o<0)throw new a("The argument can't be less than 0");return o}},24843:function(T,r,n){"use strict";var e=n(91495),a=n(77568),t=n(71399),o=n(78060),p=n(13396),b=n(24697),y=TypeError,I=b("toPrimitive");T.exports=function(k,C){if(!a(k)||t(k))return k;var i=o(k,I),c;if(i){if(C===void 0&&(C="default"),c=e(i,k,C),!a(c)||t(c))return c;throw new y("Can't convert object to primitive value")}return C===void 0&&(C="number"),p(k,C)}},767:function(T,r,n){"use strict";var e=n(24843),a=n(71399);T.exports=function(t){var o=e(t,"string");return a(o)?o:o+""}},2650:function(T,r,n){"use strict";var e=n(24697),a=e("toStringTag"),t={};t[a]="z",T.exports=String(t)==="[object z]"},12605:function(T,r,n){"use strict";var e=n(2281),a=String;T.exports=function(t){if(e(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(t)}},15409:function(T){"use strict";var r=Math.round;T.exports=function(n){var e=r(n);return e<0?0:e>255?255:e&255}},89393:function(T){"use strict";var r=String;T.exports=function(n){try{return r(n)}catch(e){return"Object"}}},80185:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(91495),o=n(58310),p=n(86563),b=n(4246),y=n(37336),I=n(60077),k=n(87458),C=n(37909),i=n(5841),c=n(10188),m=n(43806),l=n(56043),d=n(15409),s=n(767),u=n(45299),h=n(2281),g=n(77568),v=n(71399),f=n(80674),N=n(21287),V=n(76649),B=n(37310).f,S=n(3805),L=n(22603).forEach,w=n(58491),A=n(73936),x=n(74595),E=n(27193),P=n(78008),D=n(5419),M=n(5781),O=D.get,R=D.set,j=D.enforce,_=x.f,W=E.f,z=a.RangeError,K=y.ArrayBuffer,G=K.prototype,Q=y.DataView,J=b.NATIVE_ARRAY_BUFFER_VIEWS,ue=b.TYPED_ARRAY_TAG,ie=b.TypedArray,pe=b.TypedArrayPrototype,te=b.isTypedArray,q="BYTES_PER_ELEMENT",ne="Wrong length",le=function(Y,ve){A(Y,ve,{configurable:!0,get:function(){function he(){return O(this)[ve]}return he}()})},ee=function(Y){var ve;return N(G,Y)||(ve=h(Y))==="ArrayBuffer"||ve==="SharedArrayBuffer"},re=function(Y,ve){return te(Y)&&!v(ve)&&ve in Y&&i(+ve)&&ve>=0},oe=function(){function me(Y,ve){return ve=s(ve),re(Y,ve)?k(2,Y[ve]):W(Y,ve)}return me}(),fe=function(){function me(Y,ve,he){return ve=s(ve),re(Y,ve)&&g(he)&&u(he,"value")&&!u(he,"get")&&!u(he,"set")&&!he.configurable&&(!u(he,"writable")||he.writable)&&(!u(he,"enumerable")||he.enumerable)?(Y[ve]=he.value,Y):_(Y,ve,he)}return me}();o?(J||(E.f=oe,x.f=fe,le(pe,"buffer"),le(pe,"byteOffset"),le(pe,"byteLength"),le(pe,"length")),e({target:"Object",stat:!0,forced:!J},{getOwnPropertyDescriptor:oe,defineProperty:fe}),T.exports=function(me,Y,ve){var he=me.match(/\d+/)[0]/8,Ve=me+(ve?"Clamped":"")+"Array",Be="get"+me,be="set"+me,Le=a[Ve],we=Le,xe=we&&we.prototype,Re={},He=function(ge,Se){var Pe=O(ge);return Pe.view[Be](Se*he+Pe.byteOffset,!0)},ye=function(ge,Se,Pe){var je=O(ge);je.view[be](Se*he+je.byteOffset,ve?d(Pe):Pe,!0)},de=function(ge,Se){_(ge,Se,{get:function(){function Pe(){return He(this,Se)}return Pe}(),set:function(){function Pe(je){return ye(this,Se,je)}return Pe}(),enumerable:!0})};J?p&&(we=Y(function(ke,ge,Se,Pe){return I(ke,xe),M(function(){return g(ge)?ee(ge)?Pe!==void 0?new Le(ge,l(Se,he),Pe):Se!==void 0?new Le(ge,l(Se,he)):new Le(ge):te(ge)?P(we,ge):t(S,we,ge):new Le(m(ge))}(),ke,we)}),V&&V(we,ie),L(B(Le),function(ke){ke in we||C(we,ke,Le[ke])}),we.prototype=xe):(we=Y(function(ke,ge,Se,Pe){I(ke,xe);var je=0,Fe=0,ze,We,Ue;if(!g(ge))Ue=m(ge),We=Ue*he,ze=new K(We);else if(ee(ge)){ze=ge,Fe=l(Se,he);var Xe=ge.byteLength;if(Pe===void 0){if(Xe%he)throw new z(ne);if(We=Xe-Fe,We<0)throw new z(ne)}else if(We=c(Pe)*he,We+Fe>Xe)throw new z(ne);Ue=We/he}else return te(ge)?P(we,ge):t(S,we,ge);for(R(ke,{buffer:ze,byteOffset:Fe,byteLength:We,length:Ue,view:new Q(ze)});je1?arguments[1]:void 0,h=u!==void 0,g=y(d),v,f,N,V,B,S,L,w;if(g&&!I(g))for(L=b(d,g),w=L.next,d=[];!(S=a(w,L)).done;)d.push(S.value);for(h&&s>2&&(u=e(u,arguments[2])),f=p(d),N=new(C(l))(f),V=k(N),v=0;f>v;v++)B=h?u(d[v],v):d[v],N[v]=V?i(B):+B;return N}return c}()},31082:function(T,r,n){"use strict";var e=n(4246),a=n(28987),t=e.aTypedArrayConstructor,o=e.getTypedArrayConstructor;T.exports=function(p){return t(a(p,o(p)))}},16738:function(T,r,n){"use strict";var e=n(67250),a=0,t=Math.random(),o=e(1 .toString);T.exports=function(p){return"Symbol("+(p===void 0?"":p)+")_"+o(++a+t,36)}},1062:function(T,r,n){"use strict";var e=n(52357);T.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},80944:function(T,r,n){"use strict";var e=n(58310),a=n(40033);T.exports=e&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},24986:function(T){"use strict";var r=TypeError;T.exports=function(n,e){if(n=51||!a(function(){var u=[];return u[m]=!1,u.concat()[0]!==u}),d=function(h){if(!o(h))return!1;var g=h[m];return g!==void 0?!!g:t(h)},s=!l||!C("concat");e({target:"Array",proto:!0,arity:1,forced:s},{concat:function(){function u(h){var g=p(this),v=k(g,0),f=0,N,V,B,S,L;for(N=-1,B=arguments.length;N1?arguments[1]:void 0)}return p}()})},68933:function(T,r,n){"use strict";var e=n(63964),a=n(88471),t=n(80575);e({target:"Array",proto:!0},{fill:a}),t("fill")},47830:function(T,r,n){"use strict";var e=n(63964),a=n(22603).filter,t=n(44091),o=t("filter");e({target:"Array",proto:!0,forced:!o},{filter:function(){function p(b){return a(this,b,arguments.length>1?arguments[1]:void 0)}return p}()})},64094:function(T,r,n){"use strict";var e=n(63964),a=n(22603).findIndex,t=n(80575),o="findIndex",p=!0;o in[]&&Array(1)[o](function(){p=!1}),e({target:"Array",proto:!0,forced:p},{findIndex:function(){function b(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return b}()}),t(o)},13455:function(T,r,n){"use strict";var e=n(63964),a=n(22603).find,t=n(80575),o="find",p=!0;o in[]&&Array(1)[o](function(){p=!1}),e({target:"Array",proto:!0,forced:p},{find:function(){function b(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return b}()}),t(o)},32384:function(T,r,n){"use strict";var e=n(63964),a=n(65561),t=n(10320),o=n(46771),p=n(24760),b=n(57823);e({target:"Array",proto:!0},{flatMap:function(){function y(I){var k=o(this),C=p(k),i;return t(I),i=b(k,0),i.length=a(i,k,k,C,0,1,I,arguments.length>1?arguments[1]:void 0),i}return y}()})},61915:function(T,r,n){"use strict";var e=n(63964),a=n(65561),t=n(46771),o=n(24760),p=n(61365),b=n(57823);e({target:"Array",proto:!0},{flat:function(){function y(){var I=arguments.length?arguments[0]:void 0,k=t(this),C=o(k),i=b(k,0);return i.length=a(i,k,k,C,0,I===void 0?1:p(I)),i}return y}()})},25579:function(T,r,n){"use strict";var e=n(63964),a=n(35601);e({target:"Array",proto:!0,forced:[].forEach!==a},{forEach:a})},63532:function(T,r,n){"use strict";var e=n(63964),a=n(73174),t=n(92490),o=!t(function(p){Array.from(p)});e({target:"Array",stat:!0,forced:o},{from:a})},33425:function(T,r,n){"use strict";var e=n(63964),a=n(14211).includes,t=n(40033),o=n(80575),p=t(function(){return!Array(1).includes()});e({target:"Array",proto:!0,forced:p},{includes:function(){function b(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return b}()}),o("includes")},43894:function(T,r,n){"use strict";var e=n(63964),a=n(71138),t=n(14211).indexOf,o=n(55528),p=a([].indexOf),b=!!p&&1/p([1],1,-0)<0,y=b||!o("indexOf");e({target:"Array",proto:!0,forced:y},{indexOf:function(){function I(k){var C=arguments.length>1?arguments[1]:void 0;return b?p(this,k,C)||0:t(this,k,C)}return I}()})},99636:function(T,r,n){"use strict";var e=n(63964),a=n(37386);e({target:"Array",stat:!0},{isArray:a})},34570:function(T,r,n){"use strict";var e=n(57591),a=n(80575),t=n(83967),o=n(5419),p=n(74595).f,b=n(65574),y=n(5959),I=n(4493),k=n(58310),C="Array Iterator",i=o.set,c=o.getterFor(C);T.exports=b(Array,"Array",function(l,d){i(this,{type:C,target:e(l),index:0,kind:d})},function(){var l=c(this),d=l.target,s=l.index++;if(!d||s>=d.length)return l.target=void 0,y(void 0,!0);switch(l.kind){case"keys":return y(s,!1);case"values":return y(d[s],!1)}return y([s,d[s]],!1)},"values");var m=t.Arguments=t.Array;if(a("keys"),a("values"),a("entries"),!I&&k&&m.name!=="values")try{p(m,"name",{value:"values"})}catch(l){}},94432:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(37457),o=n(57591),p=n(55528),b=a([].join),y=t!==Object,I=y||!p("join",",");e({target:"Array",proto:!0,forced:I},{join:function(){function k(C){return b(o(this),C===void 0?",":C)}return k}()})},24683:function(T,r,n){"use strict";var e=n(63964),a=n(1325);e({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},69984:function(T,r,n){"use strict";var e=n(63964),a=n(22603).map,t=n(44091),o=t("map");e({target:"Array",proto:!0,forced:!o},{map:function(){function p(b){return a(this,b,arguments.length>1?arguments[1]:void 0)}return p}()})},32089:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=n(1031),o=n(60102),p=Array,b=a(function(){function y(){}return!(p.of.call(y)instanceof y)});e({target:"Array",stat:!0,forced:b},{of:function(){function y(){for(var I=0,k=arguments.length,C=new(t(this)?this:p)(k);k>I;)o(C,I,arguments[I++]);return C.length=k,C}return y}()})},29645:function(T,r,n){"use strict";var e=n(63964),a=n(56844).right,t=n(55528),o=n(5026),p=n(81702),b=!p&&o>79&&o<83,y=b||!t("reduceRight");e({target:"Array",proto:!0,forced:y},{reduceRight:function(){function I(k){return a(this,k,arguments.length,arguments.length>1?arguments[1]:void 0)}return I}()})},60206:function(T,r,n){"use strict";var e=n(63964),a=n(56844).left,t=n(55528),o=n(5026),p=n(81702),b=!p&&o>79&&o<83,y=b||!t("reduce");e({target:"Array",proto:!0,forced:y},{reduce:function(){function I(k){var C=arguments.length;return a(this,k,C,C>1?arguments[1]:void 0)}return I}()})},4788:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(37386),o=a([].reverse),p=[1,2];e({target:"Array",proto:!0,forced:String(p)===String(p.reverse())},{reverse:function(){function b(){return t(this)&&(this.length=this.length),o(this)}return b}()})},58672:function(T,r,n){"use strict";var e=n(63964),a=n(37386),t=n(1031),o=n(77568),p=n(13912),b=n(24760),y=n(57591),I=n(60102),k=n(24697),C=n(44091),i=n(54602),c=C("slice"),m=k("species"),l=Array,d=Math.max;e({target:"Array",proto:!0,forced:!c},{slice:function(){function s(u,h){var g=y(this),v=b(g),f=p(u,v),N=p(h===void 0?v:h,v),V,B,S;if(a(g)&&(V=g.constructor,t(V)&&(V===l||a(V.prototype))?V=void 0:o(V)&&(V=V[m],V===null&&(V=void 0)),V===l||V===void 0))return i(g,f,N);for(B=new(V===void 0?l:V)(d(N-f,0)),S=0;f1?arguments[1]:void 0)}return p}()})},48968:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(10320),o=n(46771),p=n(24760),b=n(95108),y=n(12605),I=n(40033),k=n(90274),C=n(55528),i=n(652),c=n(19228),m=n(5026),l=n(9342),d=[],s=a(d.sort),u=a(d.push),h=I(function(){d.sort(void 0)}),g=I(function(){d.sort(null)}),v=C("sort"),f=!I(function(){if(m)return m<70;if(!(i&&i>3)){if(c)return!0;if(l)return l<603;var B="",S,L,w,A;for(S=65;S<76;S++){switch(L=String.fromCharCode(S),S){case 66:case 69:case 70:case 72:w=3;break;case 68:case 71:w=4;break;default:w=2}for(A=0;A<47;A++)d.push({k:L+A,v:w})}for(d.sort(function(x,E){return E.v-x.v}),A=0;Ay(w)?1:-1}};e({target:"Array",proto:!0,forced:N},{sort:function(){function B(S){S!==void 0&&t(S);var L=o(this);if(f)return S===void 0?s(L):s(L,S);var w=[],A=p(L),x,E;for(E=0;Eg-V+N;S--)C(h,S-1)}else if(N>V)for(S=g-V;S>v;S--)L=S+V-1,w=S+N-1,L in h?h[w]=h[L]:C(h,w);for(S=0;S9490626562425156e-8?o(C)+b:a(C-1+p(C-1)*p(C+1))}return I}()})},59660:function(T,r,n){"use strict";var e=n(63964),a=Math.asinh,t=Math.log,o=Math.sqrt;function p(y){var I=+y;return!isFinite(I)||I===0?I:I<0?-p(-I):t(I+o(I*I+1))}var b=!(a&&1/a(0)>0);e({target:"Math",stat:!0,forced:b},{asinh:p})},15383:function(T,r,n){"use strict";var e=n(63964),a=Math.atanh,t=Math.log,o=!(a&&1/a(-0)<0);e({target:"Math",stat:!0,forced:o},{atanh:function(){function p(b){var y=+b;return y===0?y:t((1+y)/(1-y))/2}return p}()})},92866:function(T,r,n){"use strict";var e=n(63964),a=n(22172),t=Math.abs,o=Math.pow;e({target:"Math",stat:!0},{cbrt:function(){function p(b){var y=+b;return a(y)*o(t(y),.3333333333333333)}return p}()})},86107:function(T,r,n){"use strict";var e=n(63964),a=Math.floor,t=Math.log,o=Math.LOG2E;e({target:"Math",stat:!0},{clz32:function(){function p(b){var y=b>>>0;return y?31-a(t(y+.5)*o):32}return p}()})},29248:function(T,r,n){"use strict";var e=n(63964),a=n(82040),t=Math.cosh,o=Math.abs,p=Math.E,b=!t||t(710)===1/0;e({target:"Math",stat:!0,forced:b},{cosh:function(){function y(I){var k=a(o(I)-1)+1;return(k+1/(k*p*p))*(p/2)}return y}()})},52540:function(T,r,n){"use strict";var e=n(63964),a=n(82040);e({target:"Math",stat:!0,forced:a!==Math.expm1},{expm1:a})},79007:function(T,r,n){"use strict";var e=n(63964),a=n(95867);e({target:"Math",stat:!0},{fround:a})},77199:function(T,r,n){"use strict";var e=n(63964),a=Math.hypot,t=Math.abs,o=Math.sqrt,p=!!a&&a(1/0,NaN)!==1/0;e({target:"Math",stat:!0,arity:2,forced:p},{hypot:function(){function b(y,I){for(var k=0,C=0,i=arguments.length,c=0,m,l;C0?(l=m/c,k+=l*l):k+=m;return c===1/0?1/0:c*o(k)}return b}()})},6522:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=Math.imul,o=a(function(){return t(4294967295,5)!==-5||t.length!==2});e({target:"Math",stat:!0,forced:o},{imul:function(){function p(b,y){var I=65535,k=+b,C=+y,i=I&k,c=I&C;return 0|i*c+((I&k>>>16)*c+i*(I&C>>>16)<<16>>>0)}return p}()})},95542:function(T,r,n){"use strict";var e=n(63964),a=n(75002);e({target:"Math",stat:!0},{log10:a})},2966:function(T,r,n){"use strict";var e=n(63964),a=n(90874);e({target:"Math",stat:!0},{log1p:a})},20997:function(T,r,n){"use strict";var e=n(63964),a=Math.log,t=Math.LN2;e({target:"Math",stat:!0},{log2:function(){function o(p){return a(p)/t}return o}()})},57400:function(T,r,n){"use strict";var e=n(63964),a=n(22172);e({target:"Math",stat:!0},{sign:a})},45571:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=n(82040),o=Math.abs,p=Math.exp,b=Math.E,y=a(function(){return Math.sinh(-2e-17)!==-2e-17});e({target:"Math",stat:!0,forced:y},{sinh:function(){function I(k){var C=+k;return o(C)<1?(t(C)-t(-C))/2:(p(C-1)-p(-C-1))*(b/2)}return I}()})},54800:function(T,r,n){"use strict";var e=n(63964),a=n(82040),t=Math.exp;e({target:"Math",stat:!0},{tanh:function(){function o(p){var b=+p,y=a(b),I=a(-b);return y===1/0?1:I===1/0?-1:(y-I)/(t(b)+t(-b))}return o}()})},15709:function(T,r,n){"use strict";var e=n(84925);e(Math,"Math",!0)},76059:function(T,r,n){"use strict";var e=n(63964),a=n(21119);e({target:"Math",stat:!0},{trunc:a})},96614:function(T,r,n){"use strict";var e=n(63964),a=n(4493),t=n(58310),o=n(74685),p=n(61765),b=n(67250),y=n(41314),I=n(45299),k=n(5781),C=n(21287),i=n(71399),c=n(24843),m=n(40033),l=n(37310).f,d=n(27193).f,s=n(74595).f,u=n(46438),h=n(92648).trim,g="Number",v=o[g],f=p[g],N=v.prototype,V=o.TypeError,B=b("".slice),S=b("".charCodeAt),L=function(M){var O=c(M,"number");return typeof O=="bigint"?O:w(O)},w=function(M){var O=c(M,"number"),R,j,_,W,z,K,G,Q;if(i(O))throw new V("Cannot convert a Symbol value to a number");if(typeof O=="string"&&O.length>2){if(O=h(O),R=S(O,0),R===43||R===45){if(j=S(O,2),j===88||j===120)return NaN}else if(R===48){switch(S(O,1)){case 66:case 98:_=2,W=49;break;case 79:case 111:_=8,W=55;break;default:return+O}for(z=B(O,2),K=z.length,G=0;GW)return NaN;return parseInt(z,_)}}return+O},A=y(g,!v(" 0o1")||!v("0b1")||v("+0x1")),x=function(M){return C(N,M)&&m(function(){u(M)})},E=function(){function D(M){var O=arguments.length<1?0:v(L(M));return x(this)?k(Object(O),this,E):O}return D}();E.prototype=N,A&&!a&&(N.constructor=E),e({global:!0,constructor:!0,wrap:!0,forced:A},{Number:E});var P=function(M,O){for(var R=t?l(O):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),j=0,_;R.length>j;j++)I(O,_=R[j])&&!I(M,_)&&s(M,_,d(O,_))};a&&f&&P(p[g],f),(A||a)&&P(p[g],v)},324:function(T,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},90426:function(T,r,n){"use strict";var e=n(63964),a=n(3294);e({target:"Number",stat:!0},{isFinite:a})},95443:function(T,r,n){"use strict";var e=n(63964),a=n(5841);e({target:"Number",stat:!0},{isInteger:a})},87968:function(T,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0},{isNaN:function(){function a(t){return t!==t}return a}()})},55007:function(T,r,n){"use strict";var e=n(63964),a=n(5841),t=Math.abs;e({target:"Number",stat:!0},{isSafeInteger:function(){function o(p){return a(p)&&t(p)<=9007199254740991}return o}()})},55323:function(T,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},13521:function(T,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},5006:function(T,r,n){"use strict";var e=n(63964),a=n(28506);e({target:"Number",stat:!0,forced:Number.parseFloat!==a},{parseFloat:a})},99009:function(T,r,n){"use strict";var e=n(63964),a=n(13693);e({target:"Number",stat:!0,forced:Number.parseInt!==a},{parseInt:a})},85770:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(61365),o=n(46438),p=n(62443),b=n(40033),y=RangeError,I=String,k=Math.floor,C=a(p),i=a("".slice),c=a(1 .toFixed),m=function g(v,f,N){return f===0?N:f%2===1?g(v,f-1,N*v):g(v*v,f/2,N)},l=function(v){for(var f=0,N=v;N>=4096;)f+=12,N/=4096;for(;N>=2;)f+=1,N/=2;return f},d=function(v,f,N){for(var V=-1,B=N;++V<6;)B+=f*v[V],v[V]=B%1e7,B=k(B/1e7)},s=function(v,f){for(var N=6,V=0;--N>=0;)V+=v[N],v[N]=k(V/f),V=V%f*1e7},u=function(v){for(var f=6,N="";--f>=0;)if(N!==""||f===0||v[f]!==0){var V=I(v[f]);N=N===""?V:N+C("0",7-V.length)+V}return N},h=b(function(){return c(8e-5,3)!=="0.000"||c(.9,0)!=="1"||c(1.255,2)!=="1.25"||c(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!b(function(){c({})});e({target:"Number",proto:!0,forced:h},{toFixed:function(){function g(v){var f=o(this),N=t(v),V=[0,0,0,0,0,0],B="",S="0",L,w,A,x;if(N<0||N>20)throw new y("Incorrect fraction digits");if(f!==f)return"NaN";if(f<=-1e21||f>=1e21)return I(f);if(f<0&&(B="-",f=-f),f>1e-21)if(L=l(f*m(2,69,1))-69,w=L<0?f*m(2,-L,1):f/m(2,L,1),w*=4503599627370496,L=52-L,L>0){for(d(V,0,w),A=N;A>=7;)d(V,1e7,0),A-=7;for(d(V,m(10,A,1),0),A=L-1;A>=23;)s(V,8388608),A-=23;s(V,1<0?(x=S.length,S=B+(x<=N?"0."+C("0",N-x)+S:i(S,0,x-N)+"."+i(S,x-N))):S=B+S,S}return g}()})},23532:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(40033),o=n(46438),p=a(1 .toPrecision),b=t(function(){return p(1,void 0)!=="1"})||!t(function(){p({})});e({target:"Number",proto:!0,forced:b},{toPrecision:function(){function y(I){return I===void 0?p(o(this)):p(o(this),I)}return y}()})},87119:function(T,r,n){"use strict";var e=n(63964),a=n(41143);e({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},78618:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(80674);e({target:"Object",stat:!0,sham:!a},{create:t})},27129:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(10320),p=n(46771),b=n(74595);a&&e({target:"Object",proto:!0,forced:t},{__defineGetter__:function(){function y(I,k){b.f(p(this),I,{get:o(k),enumerable:!0,configurable:!0})}return y}()})},31943:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(24239).f;e({target:"Object",stat:!0,forced:Object.defineProperties!==t,sham:!a},{defineProperties:t})},3579:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(74595).f;e({target:"Object",stat:!0,forced:Object.defineProperty!==t,sham:!a},{defineProperty:t})},97397:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(10320),p=n(46771),b=n(74595);a&&e({target:"Object",proto:!0,forced:t},{__defineSetter__:function(){function y(I,k){b.f(p(this),I,{set:o(k),enumerable:!0,configurable:!0})}return y}()})},85028:function(T,r,n){"use strict";var e=n(63964),a=n(70915).entries;e({target:"Object",stat:!0},{entries:function(){function t(o){return a(o)}return t}()})},8225:function(T,r,n){"use strict";var e=n(63964),a=n(50730),t=n(40033),o=n(77568),p=n(81969).onFreeze,b=Object.freeze,y=t(function(){b(1)});e({target:"Object",stat:!0,forced:y,sham:!a},{freeze:function(){function I(k){return b&&o(k)?b(p(k)):k}return I}()})},43331:function(T,r,n){"use strict";var e=n(63964),a=n(49450),t=n(60102);e({target:"Object",stat:!0},{fromEntries:function(){function o(p){var b={};return a(p,function(y,I){t(b,y,I)},{AS_ENTRIES:!0}),b}return o}()})},62289:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=n(57591),o=n(27193).f,p=n(58310),b=!p||a(function(){o(1)});e({target:"Object",stat:!0,forced:b,sham:!p},{getOwnPropertyDescriptor:function(){function y(I,k){return o(t(I),k)}return y}()})},56196:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(97921),o=n(57591),p=n(27193),b=n(60102);e({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(){function y(I){for(var k=o(I),C=p.f,i=t(k),c={},m=0,l,d;i.length>m;)d=C(k,l=i[m++]),d!==void 0&&b(c,l,d);return c}return y}()})},2950:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=n(81644).f,o=a(function(){return!Object.getOwnPropertyNames(1)});e({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:t})},28603:function(T,r,n){"use strict";var e=n(63964),a=n(52357),t=n(40033),o=n(89235),p=n(46771),b=!a||t(function(){o.f(1)});e({target:"Object",stat:!0,forced:b},{getOwnPropertySymbols:function(){function y(I){var k=o.f;return k?k(p(I)):[]}return y}()})},44205:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=n(46771),o=n(36917),p=n(9225),b=a(function(){o(1)});e({target:"Object",stat:!0,forced:b,sham:!p},{getPrototypeOf:function(){function y(I){return o(t(I))}return y}()})},83186:function(T,r,n){"use strict";var e=n(63964),a=n(81834);e({target:"Object",stat:!0,forced:Object.isExtensible!==a},{isExtensible:a})},76065:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=n(77568),o=n(7462),p=n(3782),b=Object.isFrozen,y=p||a(function(){b(1)});e({target:"Object",stat:!0,forced:y},{isFrozen:function(){function I(k){return!t(k)||p&&o(k)==="ArrayBuffer"?!0:b?b(k):!1}return I}()})},13411:function(T,r,n){"use strict";var e=n(63964),a=n(40033),t=n(77568),o=n(7462),p=n(3782),b=Object.isSealed,y=p||a(function(){b(1)});e({target:"Object",stat:!0,forced:y},{isSealed:function(){function I(k){return!t(k)||p&&o(k)==="ArrayBuffer"?!0:b?b(k):!1}return I}()})},76882:function(T,r,n){"use strict";var e=n(63964),a=n(5700);e({target:"Object",stat:!0},{is:a})},26634:function(T,r,n){"use strict";var e=n(63964),a=n(46771),t=n(18450),o=n(40033),p=o(function(){t(1)});e({target:"Object",stat:!0,forced:p},{keys:function(){function b(y){return t(a(y))}return b}()})},53118:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(46771),p=n(767),b=n(36917),y=n(27193).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupGetter__:function(){function I(k){var C=o(this),i=p(k),c;do if(c=y(C,i))return c.get;while(C=b(C))}return I}()})},42514:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(46771),p=n(767),b=n(36917),y=n(27193).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupSetter__:function(){function I(k){var C=o(this),i=p(k),c;do if(c=y(C,i))return c.set;while(C=b(C))}return I}()})},84353:function(T,r,n){"use strict";var e=n(63964),a=n(77568),t=n(81969).onFreeze,o=n(50730),p=n(40033),b=Object.preventExtensions,y=p(function(){b(1)});e({target:"Object",stat:!0,forced:y,sham:!o},{preventExtensions:function(){function I(k){return b&&a(k)?b(t(k)):k}return I}()})},62987:function(T,r,n){"use strict";var e=n(63964),a=n(77568),t=n(81969).onFreeze,o=n(50730),p=n(40033),b=Object.seal,y=p(function(){b(1)});e({target:"Object",stat:!0,forced:y,sham:!o},{seal:function(){function I(k){return b&&a(k)?b(t(k)):k}return I}()})},48993:function(T,r,n){"use strict";var e=n(63964),a=n(76649);e({target:"Object",stat:!0},{setPrototypeOf:a})},52917:function(T,r,n){"use strict";var e=n(2650),a=n(55938),t=n(2509);e||a(Object.prototype,"toString",t,{unsafe:!0})},4972:function(T,r,n){"use strict";var e=n(63964),a=n(70915).values;e({target:"Object",stat:!0},{values:function(){function t(o){return a(o)}return t}()})},28913:function(T,r,n){"use strict";var e=n(63964),a=n(28506);e({global:!0,forced:parseFloat!==a},{parseFloat:a})},36382:function(T,r,n){"use strict";var e=n(63964),a=n(13693);e({global:!0,forced:parseInt!==a},{parseInt:a})},48865:function(T,r,n){"use strict";var e=n(63964),a=n(91495),t=n(10320),o=n(81837),p=n(10729),b=n(49450),y=n(48199);e({target:"Promise",stat:!0,forced:y},{all:function(){function I(k){var C=this,i=o.f(C),c=i.resolve,m=i.reject,l=p(function(){var d=t(C.resolve),s=[],u=0,h=1;b(k,function(g){var v=u++,f=!1;h++,a(d,C,g).then(function(N){f||(f=!0,s[v]=N,--h||c(s))},m)}),--h||c(s)});return l.error&&m(l.value),i.promise}return I}()})},70641:function(T,r,n){"use strict";var e=n(63964),a=n(4493),t=n(74854).CONSTRUCTOR,o=n(67512),p=n(4009),b=n(55747),y=n(55938),I=o&&o.prototype;if(e({target:"Promise",proto:!0,forced:t,real:!0},{catch:function(){function C(i){return this.then(void 0,i)}return C}()}),!a&&b(o)){var k=p("Promise").prototype.catch;I.catch!==k&&y(I,"catch",k,{unsafe:!0})}},75946:function(T,r,n){"use strict";var e=n(63964),a=n(4493),t=n(81702),o=n(74685),p=n(91495),b=n(55938),y=n(76649),I=n(84925),k=n(58491),C=n(10320),i=n(55747),c=n(77568),m=n(60077),l=n(28987),d=n(60375).set,s=n(37713),u=n(72259),h=n(10729),g=n(9547),v=n(5419),f=n(67512),N=n(74854),V=n(81837),B="Promise",S=N.CONSTRUCTOR,L=N.REJECTION_EVENT,w=N.SUBCLASSING,A=v.getterFor(B),x=v.set,E=f&&f.prototype,P=f,D=E,M=o.TypeError,O=o.document,R=o.process,j=V.f,_=j,W=!!(O&&O.createEvent&&o.dispatchEvent),z="unhandledrejection",K="rejectionhandled",G=0,Q=1,J=2,ue=1,ie=2,pe,te,q,ne,le=function(be){var Le;return c(be)&&i(Le=be.then)?Le:!1},ee=function(be,Le){var we=Le.value,xe=Le.state===Q,Re=xe?be.ok:be.fail,He=be.resolve,ye=be.reject,de=be.domain,Ce,ke,ge;try{Re?(xe||(Le.rejection===ie&&Y(Le),Le.rejection=ue),Re===!0?Ce=we:(de&&de.enter(),Ce=Re(we),de&&(de.exit(),ge=!0)),Ce===be.promise?ye(new M("Promise-chain cycle")):(ke=le(Ce))?p(ke,Ce,He,ye):He(Ce)):ye(we)}catch(Se){de&&!ge&&de.exit(),ye(Se)}},re=function(be,Le){be.notified||(be.notified=!0,s(function(){for(var we=be.reactions,xe;xe=we.get();)ee(xe,be);be.notified=!1,Le&&!be.rejection&&fe(be)}))},oe=function(be,Le,we){var xe,Re;W?(xe=O.createEvent("Event"),xe.promise=Le,xe.reason=we,xe.initEvent(be,!1,!0),o.dispatchEvent(xe)):xe={promise:Le,reason:we},!L&&(Re=o["on"+be])?Re(xe):be===z&&u("Unhandled promise rejection",we)},fe=function(be){p(d,o,function(){var Le=be.facade,we=be.value,xe=me(be),Re;if(xe&&(Re=h(function(){t?R.emit("unhandledRejection",we,Le):oe(z,Le,we)}),be.rejection=t||me(be)?ie:ue,Re.error))throw Re.value})},me=function(be){return be.rejection!==ue&&!be.parent},Y=function(be){p(d,o,function(){var Le=be.facade;t?R.emit("rejectionHandled",Le):oe(K,Le,be.value)})},ve=function(be,Le,we){return function(xe){be(Le,xe,we)}},he=function(be,Le,we){be.done||(be.done=!0,we&&(be=we),be.value=Le,be.state=J,re(be,!0))},Ve=function Be(be,Le,we){if(!be.done){be.done=!0,we&&(be=we);try{if(be.facade===Le)throw new M("Promise can't be resolved itself");var xe=le(Le);xe?s(function(){var Re={done:!1};try{p(xe,Le,ve(Be,Re,be),ve(he,Re,be))}catch(He){he(Re,He,be)}}):(be.value=Le,be.state=Q,re(be,!1))}catch(Re){he({done:!1},Re,be)}}};if(S&&(P=function(){function Be(be){m(this,D),C(be),p(pe,this);var Le=A(this);try{be(ve(Ve,Le),ve(he,Le))}catch(we){he(Le,we)}}return Be}(),D=P.prototype,pe=function(){function Be(be){x(this,{type:B,done:!1,notified:!1,parent:!1,reactions:new g,rejection:!1,state:G,value:void 0})}return Be}(),pe.prototype=b(D,"then",function(){function Be(be,Le){var we=A(this),xe=j(l(this,P));return we.parent=!0,xe.ok=i(be)?be:!0,xe.fail=i(Le)&&Le,xe.domain=t?R.domain:void 0,we.state===G?we.reactions.add(xe):s(function(){ee(xe,we)}),xe.promise}return Be}()),te=function(){var be=new pe,Le=A(be);this.promise=be,this.resolve=ve(Ve,Le),this.reject=ve(he,Le)},V.f=j=function(be){return be===P||be===q?new te(be):_(be)},!a&&i(f)&&E!==Object.prototype)){ne=E.then,w||b(E,"then",function(){function Be(be,Le){var we=this;return new P(function(xe,Re){p(ne,we,xe,Re)}).then(be,Le)}return Be}(),{unsafe:!0});try{delete E.constructor}catch(Be){}y&&y(E,D)}e({global:!0,constructor:!0,wrap:!0,forced:S},{Promise:P}),I(P,B,!1,!0),k(B)},69861:function(T,r,n){"use strict";var e=n(63964),a=n(4493),t=n(67512),o=n(40033),p=n(4009),b=n(55747),y=n(28987),I=n(66628),k=n(55938),C=t&&t.prototype,i=!!t&&o(function(){C.finally.call({then:function(){function m(){}return m}()},function(){})});if(e({target:"Promise",proto:!0,real:!0,forced:i},{finally:function(){function m(l){var d=y(this,p("Promise")),s=b(l);return this.then(s?function(u){return I(d,l()).then(function(){return u})}:l,s?function(u){return I(d,l()).then(function(){throw u})}:l)}return m}()}),!a&&b(t)){var c=p("Promise").prototype.finally;C.finally!==c&&k(C,"finally",c,{unsafe:!0})}},53092:function(T,r,n){"use strict";n(75946),n(48865),n(70641),n(16937),n(41719),n(59321)},16937:function(T,r,n){"use strict";var e=n(63964),a=n(91495),t=n(10320),o=n(81837),p=n(10729),b=n(49450),y=n(48199);e({target:"Promise",stat:!0,forced:y},{race:function(){function I(k){var C=this,i=o.f(C),c=i.reject,m=p(function(){var l=t(C.resolve);b(k,function(d){a(l,C,d).then(i.resolve,c)})});return m.error&&c(m.value),i.promise}return I}()})},41719:function(T,r,n){"use strict";var e=n(63964),a=n(81837),t=n(74854).CONSTRUCTOR;e({target:"Promise",stat:!0,forced:t},{reject:function(){function o(p){var b=a.f(this),y=b.reject;return y(p),b.promise}return o}()})},59321:function(T,r,n){"use strict";var e=n(63964),a=n(4009),t=n(4493),o=n(67512),p=n(74854).CONSTRUCTOR,b=n(66628),y=a("Promise"),I=t&&!p;e({target:"Promise",stat:!0,forced:t||p},{resolve:function(){function k(C){return b(I&&this===y?o:this,C)}return k}()})},29674:function(T,r,n){"use strict";var e=n(63964),a=n(61267),t=n(10320),o=n(30365),p=n(40033),b=!p(function(){Reflect.apply(function(){})});e({target:"Reflect",stat:!0,forced:b},{apply:function(){function y(I,k,C){return a(t(I),k,o(C))}return y}()})},81543:function(T,r,n){"use strict";var e=n(63964),a=n(4009),t=n(61267),o=n(66284),p=n(32606),b=n(30365),y=n(77568),I=n(80674),k=n(40033),C=a("Reflect","construct"),i=Object.prototype,c=[].push,m=k(function(){function s(){}return!(C(function(){},[],s)instanceof s)}),l=!k(function(){C(function(){})}),d=m||l;e({target:"Reflect",stat:!0,forced:d,sham:d},{construct:function(){function s(u,h){p(u),b(h);var g=arguments.length<3?u:p(arguments[2]);if(l&&!m)return C(u,h,g);if(u===g){switch(h.length){case 0:return new u;case 1:return new u(h[0]);case 2:return new u(h[0],h[1]);case 3:return new u(h[0],h[1],h[2]);case 4:return new u(h[0],h[1],h[2],h[3])}var v=[null];return t(c,v,h),new(t(o,u,v))}var f=g.prototype,N=I(y(f)?f:i),V=t(u,N,h);return y(V)?V:N}return s}()})},9373:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(30365),o=n(767),p=n(74595),b=n(40033),y=b(function(){Reflect.defineProperty(p.f({},1,{value:1}),1,{value:2})});e({target:"Reflect",stat:!0,forced:y,sham:!a},{defineProperty:function(){function I(k,C,i){t(k);var c=o(C);t(i);try{return p.f(k,c,i),!0}catch(m){return!1}}return I}()})},45093:function(T,r,n){"use strict";var e=n(63964),a=n(30365),t=n(27193).f;e({target:"Reflect",stat:!0},{deleteProperty:function(){function o(p,b){var y=t(a(p),b);return y&&!y.configurable?!1:delete p[b]}return o}()})},5815:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(30365),o=n(27193);e({target:"Reflect",stat:!0,sham:!a},{getOwnPropertyDescriptor:function(){function p(b,y){return o.f(t(b),y)}return p}()})},88527:function(T,r,n){"use strict";var e=n(63964),a=n(30365),t=n(36917),o=n(9225);e({target:"Reflect",stat:!0,sham:!o},{getPrototypeOf:function(){function p(b){return t(a(b))}return p}()})},63074:function(T,r,n){"use strict";var e=n(63964),a=n(91495),t=n(77568),o=n(30365),p=n(98373),b=n(27193),y=n(36917);function I(k,C){var i=arguments.length<3?k:arguments[2],c,m;if(o(k)===i)return k[C];if(c=b.f(k,C),c)return p(c)?c.value:c.get===void 0?void 0:a(c.get,i);if(t(m=y(k)))return I(m,C,i)}e({target:"Reflect",stat:!0},{get:I})},66390:function(T,r,n){"use strict";var e=n(63964);e({target:"Reflect",stat:!0},{has:function(){function a(t,o){return o in t}return a}()})},7784:function(T,r,n){"use strict";var e=n(63964),a=n(30365),t=n(81834);e({target:"Reflect",stat:!0},{isExtensible:function(){function o(p){return a(p),t(p)}return o}()})},50551:function(T,r,n){"use strict";var e=n(63964),a=n(97921);e({target:"Reflect",stat:!0},{ownKeys:a})},76483:function(T,r,n){"use strict";var e=n(63964),a=n(4009),t=n(30365),o=n(50730);e({target:"Reflect",stat:!0,sham:!o},{preventExtensions:function(){function p(b){t(b);try{var y=a("Object","preventExtensions");return y&&y(b),!0}catch(I){return!1}}return p}()})},63915:function(T,r,n){"use strict";var e=n(63964),a=n(30365),t=n(35908),o=n(76649);o&&e({target:"Reflect",stat:!0},{setPrototypeOf:function(){function p(b,y){a(b),t(y);try{return o(b,y),!0}catch(I){return!1}}return p}()})},92046:function(T,r,n){"use strict";var e=n(63964),a=n(91495),t=n(30365),o=n(77568),p=n(98373),b=n(40033),y=n(74595),I=n(27193),k=n(36917),C=n(87458);function i(m,l,d){var s=arguments.length<4?m:arguments[3],u=I.f(t(m),l),h,g,v;if(!u){if(o(g=k(m)))return i(g,l,d,s);u=C(0)}if(p(u)){if(u.writable===!1||!o(s))return!1;if(h=I.f(s,l)){if(h.get||h.set||h.writable===!1)return!1;h.value=d,y.f(s,l,h)}else y.f(s,l,C(0,d))}else{if(v=u.set,v===void 0)return!1;a(v,s,d)}return!0}var c=b(function(){var m=function(){},l=y.f(new m,"a",{configurable:!0});return Reflect.set(m.prototype,"a",1,l)!==!1});e({target:"Reflect",stat:!0,forced:c},{set:i})},51454:function(T,r,n){"use strict";var e=n(58310),a=n(74685),t=n(67250),o=n(41314),p=n(5781),b=n(37909),y=n(80674),I=n(37310).f,k=n(21287),C=n(72586),i=n(12605),c=n(73392),m=n(62115),l=n(34550),d=n(55938),s=n(40033),u=n(45299),h=n(5419).enforce,g=n(58491),v=n(24697),f=n(39173),N=n(35688),V=v("match"),B=a.RegExp,S=B.prototype,L=a.SyntaxError,w=t(S.exec),A=t("".charAt),x=t("".replace),E=t("".indexOf),P=t("".slice),D=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,M=/a/g,O=/a/g,R=new B(M)!==M,j=m.MISSED_STICKY,_=m.UNSUPPORTED_Y,W=e&&(!R||j||f||N||s(function(){return O[V]=!1,B(M)!==M||B(O)===O||String(B(M,"i"))!=="/a/i"})),z=function(ie){for(var pe=ie.length,te=0,q="",ne=!1,le;te<=pe;te++){if(le=A(ie,te),le==="\\"){q+=le+A(ie,++te);continue}!ne&&le==="."?q+="[\\s\\S]":(le==="["?ne=!0:le==="]"&&(ne=!1),q+=le)}return q},K=function(ie){for(var pe=ie.length,te=0,q="",ne=[],le=y(null),ee=!1,re=!1,oe=0,fe="",me;te<=pe;te++){if(me=A(ie,te),me==="\\")me+=A(ie,++te);else if(me==="]")ee=!1;else if(!ee)switch(!0){case me==="[":ee=!0;break;case me==="(":w(D,P(ie,te+1))&&(te+=2,re=!0),q+=me,oe++;continue;case(me===">"&&re):if(fe===""||u(le,fe))throw new L("Invalid capture group name");le[fe]=!0,ne[ne.length]=[fe,oe],re=!1,fe="";continue}re?fe+=me:q+=me}return[q,ne]};if(o("RegExp",W)){for(var G=function(){function ue(ie,pe){var te=k(S,this),q=C(ie),ne=pe===void 0,le=[],ee=ie,re,oe,fe,me,Y,ve;if(!te&&q&&ne&&ie.constructor===G)return ie;if((q||k(S,ie))&&(ie=ie.source,ne&&(pe=c(ee))),ie=ie===void 0?"":i(ie),pe=pe===void 0?"":i(pe),ee=ie,f&&"dotAll"in M&&(oe=!!pe&&E(pe,"s")>-1,oe&&(pe=x(pe,/s/g,""))),re=pe,j&&"sticky"in M&&(fe=!!pe&&E(pe,"y")>-1,fe&&_&&(pe=x(pe,/y/g,""))),N&&(me=K(ie),ie=me[0],le=me[1]),Y=p(B(ie,pe),te?this:S,G),(oe||fe||le.length)&&(ve=h(Y),oe&&(ve.dotAll=!0,ve.raw=G(z(ie),re)),fe&&(ve.sticky=!0),le.length&&(ve.groups=le)),ie!==ee)try{b(Y,"source",ee===""?"(?:)":ee)}catch(he){}return Y}return ue}(),Q=I(B),J=0;Q.length>J;)l(G,B,Q[J++]);S.constructor=G,G.prototype=S,d(a,"RegExp",G,{constructor:!0})}g("RegExp")},79669:function(T,r,n){"use strict";var e=n(63964),a=n(14489);e({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},23057:function(T,r,n){"use strict";var e=n(74685),a=n(58310),t=n(73936),o=n(70901),p=n(40033),b=e.RegExp,y=b.prototype,I=a&&p(function(){var k=!0;try{b(".","d")}catch(u){k=!1}var C={},i="",c=k?"dgimsy":"gimsy",m=function(h,g){Object.defineProperty(C,h,{get:function(){function v(){return i+=g,!0}return v}()})},l={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};k&&(l.hasIndices="d");for(var d in l)m(d,l[d]);var s=Object.getOwnPropertyDescriptor(y,"flags").get.call(C);return s!==c||i!==c});I&&t(y,"flags",{configurable:!0,get:o})},57983:function(T,r,n){"use strict";var e=n(70520).PROPER,a=n(55938),t=n(30365),o=n(12605),p=n(40033),b=n(73392),y="toString",I=RegExp.prototype,k=I[y],C=p(function(){return k.call({source:"a",flags:"b"})!=="/a/b"}),i=e&&k.name!==y;(C||i)&&a(I,y,function(){function c(){var m=t(this),l=o(m.source),d=o(b(m));return"/"+l+"/"+d}return c}(),{unsafe:!0})},1963:function(T,r,n){"use strict";var e=n(45150),a=n(41028);e("Set",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},17953:function(T,r,n){"use strict";n(1963)},95309:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("anchor")},{anchor:function(){function o(p){return a(this,"a","name",p)}return o}()})},82256:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("big")},{big:function(){function o(){return a(this,"big","","")}return o}()})},49484:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("blink")},{blink:function(){function o(){return a(this,"blink","","")}return o}()})},38931:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("bold")},{bold:function(){function o(){return a(this,"b","","")}return o}()})},30442:function(T,r,n){"use strict";var e=n(63964),a=n(50233).codeAt;e({target:"String",proto:!0},{codePointAt:function(){function t(o){return a(this,o)}return t}()})},6403:function(T,r,n){"use strict";var e=n(63964),a=n(71138),t=n(27193).f,o=n(10188),p=n(12605),b=n(86213),y=n(16952),I=n(45490),k=n(4493),C=a("".slice),i=Math.min,c=I("endsWith"),m=!k&&!c&&!!function(){var l=t(String.prototype,"endsWith");return l&&!l.writable}();e({target:"String",proto:!0,forced:!m&&!c},{endsWith:function(){function l(d){var s=p(y(this));b(d);var u=arguments.length>1?arguments[1]:void 0,h=s.length,g=u===void 0?h:i(o(u),h),v=p(d);return C(s,g-v.length,g)===v}return l}()})},39308:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("fixed")},{fixed:function(){function o(){return a(this,"tt","","")}return o}()})},91550:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("fontcolor")},{fontcolor:function(){function o(p){return a(this,"font","color",p)}return o}()})},75008:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("fontsize")},{fontsize:function(){function o(p){return a(this,"font","size",p)}return o}()})},9867:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(13912),o=RangeError,p=String.fromCharCode,b=String.fromCodePoint,y=a([].join),I=!!b&&b.length!==1;e({target:"String",stat:!0,arity:1,forced:I},{fromCodePoint:function(){function k(C){for(var i=[],c=arguments.length,m=0,l;c>m;){if(l=+arguments[m++],t(l,1114111)!==l)throw new o(l+" is not a valid code point");i[m]=l<65536?p(l):p(((l-=65536)>>10)+55296,l%1024+56320)}return y(i,"")}return k}()})},43673:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(86213),o=n(16952),p=n(12605),b=n(45490),y=a("".indexOf);e({target:"String",proto:!0,forced:!b("includes")},{includes:function(){function I(k){return!!~y(p(o(this)),p(t(k)),arguments.length>1?arguments[1]:void 0)}return I}()})},56027:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("italics")},{italics:function(){function o(){return a(this,"i","","")}return o}()})},12354:function(T,r,n){"use strict";var e=n(50233).charAt,a=n(12605),t=n(5419),o=n(65574),p=n(5959),b="String Iterator",y=t.set,I=t.getterFor(b);o(String,"String",function(k){y(this,{type:b,string:a(k),index:0})},function(){function k(){var C=I(this),i=C.string,c=C.index,m;return c>=i.length?p(void 0,!0):(m=e(i,c),C.index+=m.length,p(m,!1))}return k}())},50340:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("link")},{link:function(){function o(p){return a(this,"a","href",p)}return o}()})},22515:function(T,r,n){"use strict";var e=n(91495),a=n(79942),t=n(30365),o=n(42871),p=n(10188),b=n(12605),y=n(16952),I=n(78060),k=n(35483),C=n(28340);a("match",function(i,c,m){return[function(){function l(d){var s=y(this),u=o(d)?void 0:I(d,i);return u?e(u,d,s):new RegExp(d)[i](b(s))}return l}(),function(l){var d=t(this),s=b(l),u=m(c,d,s);if(u.done)return u.value;if(!d.global)return C(d,s);var h=d.unicode;d.lastIndex=0;for(var g=[],v=0,f;(f=C(d,s))!==null;){var N=b(f[0]);g[v]=N,N===""&&(d.lastIndex=k(s,p(d.lastIndex),h)),v++}return v===0?null:g}]})},5143:function(T,r,n){"use strict";var e=n(63964),a=n(24051).end,t=n(34125);e({target:"String",proto:!0,forced:t},{padEnd:function(){function o(p){return a(this,p,arguments.length>1?arguments[1]:void 0)}return o}()})},93514:function(T,r,n){"use strict";var e=n(63964),a=n(24051).start,t=n(34125);e({target:"String",proto:!0,forced:t},{padStart:function(){function o(p){return a(this,p,arguments.length>1?arguments[1]:void 0)}return o}()})},5416:function(T,r,n){"use strict";var e=n(63964),a=n(67250),t=n(57591),o=n(46771),p=n(12605),b=n(24760),y=a([].push),I=a([].join);e({target:"String",stat:!0},{raw:function(){function k(C){var i=t(o(C).raw),c=b(i);if(!c)return"";for(var m=arguments.length,l=[],d=0;;){if(y(l,p(i[d++])),d===c)return I(l,"");d")!=="7"});o("replace",function(x,E,P){var D=w?"$":"$0";return[function(){function M(O,R){var j=c(this),_=I(O)?void 0:l(O,h);return _?a(_,O,j,R):a(E,i(j),O,R)}return M}(),function(M,O){var R=b(this),j=i(M);if(typeof O=="string"&&V(O,D)===-1&&V(O,"$<")===-1){var _=P(E,R,j,O);if(_.done)return _.value}var W=y(O);W||(O=i(O));var z=R.global,K;z&&(K=R.unicode,R.lastIndex=0);for(var G=[],Q;Q=s(R,j),!(Q===null||(N(G,Q),!z));){var J=i(Q[0]);J===""&&(R.lastIndex=m(j,C(R.lastIndex),K))}for(var ue="",ie=0,pe=0;pe=ie&&(ue+=B(j,ie,q)+le,ie=q+te.length)}return ue+B(j,ie)}]},!A||!L||w)},63272:function(T,r,n){"use strict";var e=n(91495),a=n(79942),t=n(30365),o=n(42871),p=n(16952),b=n(5700),y=n(12605),I=n(78060),k=n(28340);a("search",function(C,i,c){return[function(){function m(l){var d=p(this),s=o(l)?void 0:I(l,C);return s?e(s,l,d):new RegExp(l)[C](y(d))}return m}(),function(m){var l=t(this),d=y(m),s=c(i,l,d);if(s.done)return s.value;var u=l.lastIndex;b(u,0)||(l.lastIndex=0);var h=k(l,d);return b(l.lastIndex,u)||(l.lastIndex=u),h===null?-1:h.index}]})},34325:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("small")},{small:function(){function o(){return a(this,"small","","")}return o}()})},39930:function(T,r,n){"use strict";var e=n(91495),a=n(67250),t=n(79942),o=n(30365),p=n(42871),b=n(16952),y=n(28987),I=n(35483),k=n(10188),C=n(12605),i=n(78060),c=n(28340),m=n(62115),l=n(40033),d=m.UNSUPPORTED_Y,s=4294967295,u=Math.min,h=a([].push),g=a("".slice),v=!l(function(){var N=/(?:)/,V=N.exec;N.exec=function(){return V.apply(this,arguments)};var B="ab".split(N);return B.length!==2||B[0]!=="a"||B[1]!=="b"}),f="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;t("split",function(N,V,B){var S="0".split(void 0,0).length?function(L,w){return L===void 0&&w===0?[]:e(V,this,L,w)}:V;return[function(){function L(w,A){var x=b(this),E=p(w)?void 0:i(w,N);return E?e(E,w,x,A):e(S,C(x),w,A)}return L}(),function(L,w){var A=o(this),x=C(L);if(!f){var E=B(S,A,x,w,S!==V);if(E.done)return E.value}var P=y(A,RegExp),D=A.unicode,M=(A.ignoreCase?"i":"")+(A.multiline?"m":"")+(A.unicode?"u":"")+(d?"g":"y"),O=new P(d?"^(?:"+A.source+")":A,M),R=w===void 0?s:w>>>0;if(R===0)return[];if(x.length===0)return c(O,x)===null?[x]:[];for(var j=0,_=0,W=[];_1?arguments[1]:void 0,s.length)),h=p(d);return C(s,u,u+h.length)===h}return l}()})},74498:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("strike")},{strike:function(){function o(){return a(this,"strike","","")}return o}()})},15812:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("sub")},{sub:function(){function o(){return a(this,"sub","","")}return o}()})},57726:function(T,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("sup")},{sup:function(){function o(){return a(this,"sup","","")}return o}()})},70604:function(T,r,n){"use strict";n(99159);var e=n(63964),a=n(43476);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==a},{trimEnd:a})},85404:function(T,r,n){"use strict";var e=n(63964),a=n(43885);e({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==a},{trimLeft:a})},99159:function(T,r,n){"use strict";var e=n(63964),a=n(43476);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==a},{trimRight:a})},34965:function(T,r,n){"use strict";n(85404);var e=n(63964),a=n(43885);e({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==a},{trimStart:a})},8448:function(T,r,n){"use strict";var e=n(63964),a=n(92648).trim,t=n(90012);e({target:"String",proto:!0,forced:t("trim")},{trim:function(){function o(){return a(this)}return o}()})},79250:function(T,r,n){"use strict";var e=n(85889);e("asyncIterator")},49899:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(91495),o=n(67250),p=n(4493),b=n(58310),y=n(52357),I=n(40033),k=n(45299),C=n(21287),i=n(30365),c=n(57591),m=n(767),l=n(12605),d=n(87458),s=n(80674),u=n(18450),h=n(37310),g=n(81644),v=n(89235),f=n(27193),N=n(74595),V=n(24239),B=n(12867),S=n(55938),L=n(73936),w=n(16639),A=n(19417),x=n(79195),E=n(16738),P=n(24697),D=n(55557),M=n(85889),O=n(52360),R=n(84925),j=n(5419),_=n(22603).forEach,W=A("hidden"),z="Symbol",K="prototype",G=j.set,Q=j.getterFor(z),J=Object[K],ue=a.Symbol,ie=ue&&ue[K],pe=a.RangeError,te=a.TypeError,q=a.QObject,ne=f.f,le=N.f,ee=g.f,re=B.f,oe=o([].push),fe=w("symbols"),me=w("op-symbols"),Y=w("wks"),ve=!q||!q[K]||!q[K].findChild,he=function(Ce,ke,ge){var Se=ne(J,ke);Se&&delete J[ke],le(Ce,ke,ge),Se&&Ce!==J&&le(J,ke,Se)},Ve=b&&I(function(){return s(le({},"a",{get:function(){function de(){return le(this,"a",{value:7}).a}return de}()})).a!==7})?he:le,Be=function(Ce,ke){var ge=fe[Ce]=s(ie);return G(ge,{type:z,tag:Ce,description:ke}),b||(ge.description=ke),ge},be=function(){function de(Ce,ke,ge){Ce===J&&be(me,ke,ge),i(Ce);var Se=m(ke);return i(ge),k(fe,Se)?(ge.enumerable?(k(Ce,W)&&Ce[W][Se]&&(Ce[W][Se]=!1),ge=s(ge,{enumerable:d(0,!1)})):(k(Ce,W)||le(Ce,W,d(1,s(null))),Ce[W][Se]=!0),Ve(Ce,Se,ge)):le(Ce,Se,ge)}return de}(),Le=function(){function de(Ce,ke){i(Ce);var ge=c(ke),Se=u(ge).concat(ye(ge));return _(Se,function(Pe){(!b||t(xe,ge,Pe))&&be(Ce,Pe,ge[Pe])}),Ce}return de}(),we=function(){function de(Ce,ke){return ke===void 0?s(Ce):Le(s(Ce),ke)}return de}(),xe=function(){function de(Ce){var ke=m(Ce),ge=t(re,this,ke);return this===J&&k(fe,ke)&&!k(me,ke)?!1:ge||!k(this,ke)||!k(fe,ke)||k(this,W)&&this[W][ke]?ge:!0}return de}(),Re=function(){function de(Ce,ke){var ge=c(Ce),Se=m(ke);if(!(ge===J&&k(fe,Se)&&!k(me,Se))){var Pe=ne(ge,Se);return Pe&&k(fe,Se)&&!(k(ge,W)&&ge[W][Se])&&(Pe.enumerable=!0),Pe}}return de}(),He=function(){function de(Ce){var ke=ee(c(Ce)),ge=[];return _(ke,function(Se){!k(fe,Se)&&!k(x,Se)&&oe(ge,Se)}),ge}return de}(),ye=function(Ce){var ke=Ce===J,ge=ee(ke?me:c(Ce)),Se=[];return _(ge,function(Pe){k(fe,Pe)&&(!ke||k(J,Pe))&&oe(Se,fe[Pe])}),Se};y||(ue=function(){function de(){if(C(ie,this))throw new te("Symbol is not a constructor");var Ce=!arguments.length||arguments[0]===void 0?void 0:l(arguments[0]),ke=E(Ce),ge=function(){function Se(Pe){var je=this===void 0?a:this;je===J&&t(Se,me,Pe),k(je,W)&&k(je[W],ke)&&(je[W][ke]=!1);var Fe=d(1,Pe);try{Ve(je,ke,Fe)}catch(ze){if(!(ze instanceof pe))throw ze;he(je,ke,Fe)}}return Se}();return b&&ve&&Ve(J,ke,{configurable:!0,set:ge}),Be(ke,Ce)}return de}(),ie=ue[K],S(ie,"toString",function(){function de(){return Q(this).tag}return de}()),S(ue,"withoutSetter",function(de){return Be(E(de),de)}),B.f=xe,N.f=be,V.f=Le,f.f=Re,h.f=g.f=He,v.f=ye,D.f=function(de){return Be(P(de),de)},b&&(L(ie,"description",{configurable:!0,get:function(){function de(){return Q(this).description}return de}()}),p||S(J,"propertyIsEnumerable",xe,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!y,sham:!y},{Symbol:ue}),_(u(Y),function(de){M(de)}),e({target:z,stat:!0,forced:!y},{useSetter:function(){function de(){ve=!0}return de}(),useSimple:function(){function de(){ve=!1}return de}()}),e({target:"Object",stat:!0,forced:!y,sham:!b},{create:we,defineProperty:be,defineProperties:Le,getOwnPropertyDescriptor:Re}),e({target:"Object",stat:!0,forced:!y},{getOwnPropertyNames:He}),O(),R(ue,z),x[W]=!0},10933:function(T,r,n){"use strict";var e=n(63964),a=n(58310),t=n(74685),o=n(67250),p=n(45299),b=n(55747),y=n(21287),I=n(12605),k=n(73936),C=n(5774),i=t.Symbol,c=i&&i.prototype;if(a&&b(i)&&(!("description"in c)||i().description!==void 0)){var m={},l=function(){function f(){var N=arguments.length<1||arguments[0]===void 0?void 0:I(arguments[0]),V=y(c,this)?new i(N):N===void 0?i():i(N);return N===""&&(m[V]=!0),V}return f}();C(l,i),l.prototype=c,c.constructor=l;var d=String(i("description detection"))==="Symbol(description detection)",s=o(c.valueOf),u=o(c.toString),h=/^Symbol\((.*)\)[^)]+$/,g=o("".replace),v=o("".slice);k(c,"description",{configurable:!0,get:function(){function f(){var N=s(this);if(p(m,N))return"";var V=u(N),B=d?v(V,7,-1):g(V,h,"$1");return B===""?void 0:B}return f}()}),e({global:!0,constructor:!0,forced:!0},{Symbol:l})}},30828:function(T,r,n){"use strict";var e=n(63964),a=n(4009),t=n(45299),o=n(12605),p=n(16639),b=n(66570),y=p("string-to-symbol-registry"),I=p("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!b},{for:function(){function k(C){var i=o(C);if(t(y,i))return y[i];var c=a("Symbol")(i);return y[i]=c,I[c]=i,c}return k}()})},53795:function(T,r,n){"use strict";var e=n(85889);e("hasInstance")},87806:function(T,r,n){"use strict";var e=n(85889);e("isConcatSpreadable")},64677:function(T,r,n){"use strict";var e=n(85889);e("iterator")},33313:function(T,r,n){"use strict";n(49899),n(30828),n(6862),n(53008),n(28603)},6862:function(T,r,n){"use strict";var e=n(63964),a=n(45299),t=n(71399),o=n(89393),p=n(16639),b=n(66570),y=p("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!b},{keyFor:function(){function I(k){if(!t(k))throw new TypeError(o(k)+" is not a symbol");if(a(y,k))return y[k]}return I}()})},48058:function(T,r,n){"use strict";var e=n(85889);e("match")},51583:function(T,r,n){"use strict";var e=n(85889);e("replace")},82403:function(T,r,n){"use strict";var e=n(85889);e("search")},34265:function(T,r,n){"use strict";var e=n(85889);e("species")},3295:function(T,r,n){"use strict";var e=n(85889);e("split")},1078:function(T,r,n){"use strict";var e=n(85889),a=n(52360);e("toPrimitive"),a()},63207:function(T,r,n){"use strict";var e=n(4009),a=n(85889),t=n(84925);a("toStringTag"),t(e("Symbol"),"Symbol")},80520:function(T,r,n){"use strict";var e=n(85889);e("unscopables")},99872:function(T,r,n){"use strict";var e=n(67250),a=n(4246),t=n(71447),o=e(t),p=a.aTypedArray,b=a.exportTypedArrayMethod;b("copyWithin",function(){function y(I,k){return o(p(this),I,k,arguments.length>2?arguments[2]:void 0)}return y}())},73364:function(T,r,n){"use strict";var e=n(4246),a=n(22603).every,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("every",function(){function p(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return p}())},58166:function(T,r,n){"use strict";var e=n(4246),a=n(88471),t=n(61484),o=n(2281),p=n(91495),b=n(67250),y=n(40033),I=e.aTypedArray,k=e.exportTypedArrayMethod,C=b("".slice),i=y(function(){var c=0;return new Int8Array(2).fill({valueOf:function(){function m(){return c++}return m}()}),c!==1});k("fill",function(){function c(m){var l=arguments.length;I(this);var d=C(o(this),0,3)==="Big"?t(m):+m;return p(a,this,d,l>1?arguments[1]:void 0,l>2?arguments[2]:void 0)}return c}(),i)},23793:function(T,r,n){"use strict";var e=n(4246),a=n(22603).filter,t=n(45399),o=e.aTypedArray,p=e.exportTypedArrayMethod;p("filter",function(){function b(y){var I=a(o(this),y,arguments.length>1?arguments[1]:void 0);return t(this,I)}return b}())},13917:function(T,r,n){"use strict";var e=n(4246),a=n(22603).findIndex,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("findIndex",function(){function p(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return p}())},43820:function(T,r,n){"use strict";var e=n(4246),a=n(22603).find,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("find",function(){function p(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return p}())},80756:function(T,r,n){"use strict";var e=n(80185);e("Float32",function(a){return function(){function t(o,p,b){return a(this,o,p,b)}return t}()})},70567:function(T,r,n){"use strict";var e=n(80185);e("Float64",function(a){return function(){function t(o,p,b){return a(this,o,p,b)}return t}()})},19852:function(T,r,n){"use strict";var e=n(4246),a=n(22603).forEach,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("forEach",function(){function p(b){a(t(this),b,arguments.length>1?arguments[1]:void 0)}return p}())},40379:function(T,r,n){"use strict";var e=n(86563),a=n(4246).exportTypedArrayStaticMethod,t=n(3805);a("from",t,e)},92770:function(T,r,n){"use strict";var e=n(4246),a=n(14211).includes,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("includes",function(){function p(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return p}())},81069:function(T,r,n){"use strict";var e=n(4246),a=n(14211).indexOf,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("indexOf",function(){function p(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return p}())},60037:function(T,r,n){"use strict";var e=n(80185);e("Int16",function(a){return function(){function t(o,p,b){return a(this,o,p,b)}return t}()})},44195:function(T,r,n){"use strict";var e=n(80185);e("Int32",function(a){return function(){function t(o,p,b){return a(this,o,p,b)}return t}()})},66756:function(T,r,n){"use strict";var e=n(80185);e("Int8",function(a){return function(){function t(o,p,b){return a(this,o,p,b)}return t}()})},63689:function(T,r,n){"use strict";var e=n(74685),a=n(40033),t=n(67250),o=n(4246),p=n(34570),b=n(24697),y=b("iterator"),I=e.Uint8Array,k=t(p.values),C=t(p.keys),i=t(p.entries),c=o.aTypedArray,m=o.exportTypedArrayMethod,l=I&&I.prototype,d=!a(function(){l[y].call([1])}),s=!!l&&l.values&&l[y]===l.values&&l.values.name==="values",u=function(){function h(){return k(c(this))}return h}();m("entries",function(){function h(){return i(c(this))}return h}(),d),m("keys",function(){function h(){return C(c(this))}return h}(),d),m("values",u,d||!s,{name:"values"}),m(y,u,d||!s,{name:"values"})},5659:function(T,r,n){"use strict";var e=n(4246),a=n(67250),t=e.aTypedArray,o=e.exportTypedArrayMethod,p=a([].join);o("join",function(){function b(y){return p(t(this),y)}return b}())},25014:function(T,r,n){"use strict";var e=n(4246),a=n(61267),t=n(1325),o=e.aTypedArray,p=e.exportTypedArrayMethod;p("lastIndexOf",function(){function b(y){var I=arguments.length;return a(t,o(this),I>1?[y,arguments[1]]:[y])}return b}())},32189:function(T,r,n){"use strict";var e=n(4246),a=n(22603).map,t=n(31082),o=e.aTypedArray,p=e.exportTypedArrayMethod;p("map",function(){function b(y){return a(o(this),y,arguments.length>1?arguments[1]:void 0,function(I,k){return new(t(I))(k)})}return b}())},23030:function(T,r,n){"use strict";var e=n(4246),a=n(86563),t=e.aTypedArrayConstructor,o=e.exportTypedArrayStaticMethod;o("of",function(){function p(){for(var b=0,y=arguments.length,I=new(t(this))(y);y>b;)I[b]=arguments[b++];return I}return p}(),a)},49110:function(T,r,n){"use strict";var e=n(4246),a=n(56844).right,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduceRight",function(){function p(b){var y=arguments.length;return a(t(this),b,y,y>1?arguments[1]:void 0)}return p}())},24309:function(T,r,n){"use strict";var e=n(4246),a=n(56844).left,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduce",function(){function p(b){var y=arguments.length;return a(t(this),b,y,y>1?arguments[1]:void 0)}return p}())},56445:function(T,r,n){"use strict";var e=n(4246),a=e.aTypedArray,t=e.exportTypedArrayMethod,o=Math.floor;t("reverse",function(){function p(){for(var b=this,y=a(b).length,I=o(y/2),k=0,C;k1?arguments[1]:void 0,1),g=b(u);if(l)return a(i,this,g,h);var v=this.length,f=o(g),N=0;if(f+h>v)throw new I("Wrong length");for(;Nm;)d[m]=i[m++];return d}return I}(),y)},88739:function(T,r,n){"use strict";var e=n(4246),a=n(22603).some,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("some",function(){function p(b){return a(t(this),b,arguments.length>1?arguments[1]:void 0)}return p}())},60415:function(T,r,n){"use strict";var e=n(74685),a=n(71138),t=n(40033),o=n(10320),p=n(90274),b=n(4246),y=n(652),I=n(19228),k=n(5026),C=n(9342),i=b.aTypedArray,c=b.exportTypedArrayMethod,m=e.Uint16Array,l=m&&a(m.prototype.sort),d=!!l&&!(t(function(){l(new m(2),null)})&&t(function(){l(new m(2),{})})),s=!!l&&!t(function(){if(k)return k<74;if(y)return y<67;if(I)return!0;if(C)return C<602;var h=new m(516),g=Array(516),v,f;for(v=0;v<516;v++)f=v%4,h[v]=515-v,g[v]=v-2*f+3;for(l(h,function(N,V){return(N/4|0)-(V/4|0)}),v=0;v<516;v++)if(h[v]!==g[v])return!0}),u=function(g){return function(v,f){return g!==void 0?+g(v,f)||0:f!==f?-1:v!==v?1:v===0&&f===0?1/v>0&&1/f<0?1:-1:v>f}};c("sort",function(){function h(g){return g!==void 0&&o(g),s?l(this,g):p(i(this),u(g))}return h}(),!s||d)},72532:function(T,r,n){"use strict";var e=n(4246),a=n(10188),t=n(13912),o=n(31082),p=e.aTypedArray,b=e.exportTypedArrayMethod;b("subarray",function(){function y(I,k){var C=p(this),i=C.length,c=t(I,i),m=o(C);return new m(C.buffer,C.byteOffset+c*C.BYTES_PER_ELEMENT,a((k===void 0?i:t(k,i))-c))}return y}())},62207:function(T,r,n){"use strict";var e=n(74685),a=n(61267),t=n(4246),o=n(40033),p=n(54602),b=e.Int8Array,y=t.aTypedArray,I=t.exportTypedArrayMethod,k=[].toLocaleString,C=!!b&&o(function(){k.call(new b(1))}),i=o(function(){return[1,2].toLocaleString()!==new b([1,2]).toLocaleString()})||!o(function(){b.prototype.toLocaleString.call([1,2])});I("toLocaleString",function(){function c(){return a(k,C?p(y(this)):y(this),p(arguments))}return c}(),i)},906:function(T,r,n){"use strict";var e=n(4246).exportTypedArrayMethod,a=n(40033),t=n(74685),o=n(67250),p=t.Uint8Array,b=p&&p.prototype||{},y=[].toString,I=o([].join);a(function(){y.call({})})&&(y=function(){function C(){return I(this)}return C}());var k=b.toString!==y;e("toString",y,k)},78824:function(T,r,n){"use strict";var e=n(80185);e("Uint16",function(a){return function(){function t(o,p,b){return a(this,o,p,b)}return t}()})},72846:function(T,r,n){"use strict";var e=n(80185);e("Uint32",function(a){return function(){function t(o,p,b){return a(this,o,p,b)}return t}()})},24575:function(T,r,n){"use strict";var e=n(80185);e("Uint8",function(a){return function(){function t(o,p,b){return a(this,o,p,b)}return t}()})},71968:function(T,r,n){"use strict";var e=n(80185);e("Uint8",function(a){return function(){function t(o,p,b){return a(this,o,p,b)}return t}()},!0)},80040:function(T,r,n){"use strict";var e=n(50730),a=n(74685),t=n(67250),o=n(30145),p=n(81969),b=n(45150),y=n(39895),I=n(77568),k=n(5419).enforce,C=n(40033),i=n(21820),c=Object,m=Array.isArray,l=c.isExtensible,d=c.isFrozen,s=c.isSealed,u=c.freeze,h=c.seal,g=!a.ActiveXObject&&"ActiveXObject"in a,v,f=function(E){return function(){function P(){return E(this,arguments.length?arguments[0]:void 0)}return P}()},N=b("WeakMap",f,y),V=N.prototype,B=t(V.set),S=function(){return e&&C(function(){var E=u([]);return B(new N,E,1),!d(E)})};if(i)if(g){v=y.getConstructor(f,"WeakMap",!0),p.enable();var L=t(V.delete),w=t(V.has),A=t(V.get);o(V,{delete:function(){function x(E){if(I(E)&&!l(E)){var P=k(this);return P.frozen||(P.frozen=new v),L(this,E)||P.frozen.delete(E)}return L(this,E)}return x}(),has:function(){function x(E){if(I(E)&&!l(E)){var P=k(this);return P.frozen||(P.frozen=new v),w(this,E)||P.frozen.has(E)}return w(this,E)}return x}(),get:function(){function x(E){if(I(E)&&!l(E)){var P=k(this);return P.frozen||(P.frozen=new v),w(this,E)?A(this,E):P.frozen.get(E)}return A(this,E)}return x}(),set:function(){function x(E,P){if(I(E)&&!l(E)){var D=k(this);D.frozen||(D.frozen=new v),w(this,E)?B(this,E,P):D.frozen.set(E,P)}else B(this,E,P);return this}return x}()})}else S()&&o(V,{set:function(){function x(E,P){var D;return m(E)&&(d(E)?D=u:s(E)&&(D=h)),B(this,E,P),D&&D(E),this}return x}()})},90846:function(T,r,n){"use strict";n(80040)},67042:function(T,r,n){"use strict";var e=n(45150),a=n(39895);e("WeakSet",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},40348:function(T,r,n){"use strict";n(67042)},5606:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(60375).clear;e({global:!0,bind:!0,enumerable:!0,forced:a.clearImmediate!==t},{clearImmediate:t})},83006:function(T,r,n){"use strict";n(5606),n(27807)},25764:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(37713),o=n(10320),p=n(24986),b=n(40033),y=n(58310),I=b(function(){return y&&Object.getOwnPropertyDescriptor(a,"queueMicrotask").value.length!==1});e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:I},{queueMicrotask:function(){function k(C){p(arguments.length,1),t(o(C))}return k}()})},27807:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(60375).set,o=n(78362),p=a.setImmediate?o(t,!1):t;e({global:!0,bind:!0,enumerable:!0,forced:a.setImmediate!==p},{setImmediate:p})},45569:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(78362),o=t(a.setInterval,!0);e({global:!0,bind:!0,forced:a.setInterval!==o},{setInterval:o})},5213:function(T,r,n){"use strict";var e=n(63964),a=n(74685),t=n(78362),o=t(a.setTimeout,!0);e({global:!0,bind:!0,forced:a.setTimeout!==o},{setTimeout:o})},69401:function(T,r,n){"use strict";n(45569),n(5213)},7435:function(T){"use strict";/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var r,n=[],e=[],a=function(){if(0)var k;window.onunload=function(){return r&&r.close()}},t=function(k){return e.push(k)},o=function(k){var C=[],i=function(d){return typeof d=="number"&&!Number.isFinite(d)?{__number__:String(d)}:typeof d=="undefined"?{__undefined__:!0}:d},c=function(d,s){if(typeof s=="object"){if(s===null)return s;if(C.includes(s))return"[circular ref]";C.push(s);var l=s instanceof Error||s.code&&s.message&&s.message.includes("Error");return l?{__error__:!0,string:String(s),stack:s.stack}:Array.isArray(s)?s.map(i):s}return i(s)},m=JSON.stringify(k,c);return C=null,m},p=function(k){if(0)var C,i,c},b=function(k,C){if(0)var i,c,m},y=function(){};x.exports={subscribe:t,sendMessage:p,sendLogEntry:b,setupHotReloading:y}}},kt={};function X(x){var r=kt[x];if(r!==void 0)return r.exports;var n=kt[x]={exports:{}};return Qt[x](n,n.exports,X),n.exports}(function(){X.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(x){if(typeof window=="object")return window}}()})(),function(){X.o=function(x,r){return Object.prototype.hasOwnProperty.call(x,r)}}();var Rn={};(function(){"use strict";X(33313),X(10933),X(79250),X(53795),X(87806),X(64677),X(48058),X(51583),X(82403),X(34265),X(3295),X(1078),X(63207),X(80520),X(39600),X(93237),X(32057),X(68933),X(47830),X(13455),X(64094),X(61915),X(32384),X(25579),X(63532),X(33425),X(43894),X(99636),X(34570),X(94432),X(24683),X(69984),X(32089),X(60206),X(29645),X(4788),X(58672),X(19356),X(48968),X(49852),X(2712),X(864),X(54243),X(75621),X(26267),X(50095),X(33451),X(74587),X(25082),X(47421),X(32122),X(6306),X(90216),X(84663),X(92332),X(98329),X(9631),X(47091),X(59660),X(15383),X(92866),X(86107),X(29248),X(52540),X(79007),X(77199),X(6522),X(95542),X(2966),X(20997),X(57400),X(45571),X(54800),X(15709),X(76059),X(96614),X(324),X(90426),X(95443),X(87968),X(55007),X(55323),X(13521),X(5006),X(99009),X(85770),X(23532),X(87119),X(78618),X(27129),X(31943),X(3579),X(97397),X(85028),X(8225),X(43331),X(62289),X(56196),X(2950),X(44205),X(76882),X(83186),X(76065),X(13411),X(26634),X(53118),X(42514),X(84353),X(62987),X(48993),X(52917),X(4972),X(28913),X(36382),X(53092),X(69861),X(29674),X(81543),X(9373),X(45093),X(63074),X(5815),X(88527),X(66390),X(7784),X(50551),X(76483),X(92046),X(63915),X(51454),X(79669),X(23057),X(57983),X(17953),X(30442),X(6403),X(9867),X(43673),X(12354),X(22515),X(5143),X(93514),X(5416),X(11619),X(44590),X(63272),X(39930),X(4038),X(8448),X(70604),X(34965),X(95309),X(82256),X(49484),X(38931),X(39308),X(91550),X(75008),X(56027),X(50340),X(34325),X(74498),X(15812),X(57726),X(80756),X(70567),X(66756),X(60037),X(44195),X(24575),X(71968),X(78824),X(72846),X(99872),X(73364),X(58166),X(23793),X(43820),X(13917),X(19852),X(40379),X(92770),X(81069),X(63689),X(5659),X(25014),X(32189),X(23030),X(24309),X(49110),X(56445),X(30939),X(48321),X(88739),X(60415),X(72532),X(62207),X(906),X(90846),X(40348),X(83006),X(25764),X(69401),X(95012),X(30236)})(),function(){"use strict";var x=X(89005);X(67160),X(23542),X(30386),X(98996),X(50578),X(4444),X(77870),X(39108),X(11714),X(73492),X(49641),X(17570),X(61858),X(32882),X(23632),X(56492);var r=X(85822),n=X(7435),e=X(56518),a=X(26427),t=X(18498),o=X(49060),p=X(72178),b=X(24826),y;/** + */var r,n=[],e=[],a=function(){if(0)var k;window.onunload=function(){return r&&r.close()}},t=function(k){return e.push(k)},o=function(k){var C=[],i=function(d){return typeof d=="number"&&!Number.isFinite(d)?{__number__:String(d)}:typeof d=="undefined"?{__undefined__:!0}:d},c=function(d,s){if(typeof s=="object"){if(s===null)return s;if(C.includes(s))return"[circular ref]";C.push(s);var u=s instanceof Error||s.code&&s.message&&s.message.includes("Error");return u?{__error__:!0,string:String(s),stack:s.stack}:Array.isArray(s)?s.map(i):s}return i(s)},m=JSON.stringify(k,c);return C=null,m},p=function(k){if(0)var C,i,c},b=function(k,C){if(0)var i,c,m},y=function(){};T.exports={subscribe:t,sendMessage:p,sendLogEntry:b,setupHotReloading:y}}},kt={};function X(T){var r=kt[T];if(r!==void 0)return r.exports;var n=kt[T]={exports:{}};return Qt[T](n,n.exports,X),n.exports}(function(){X.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(T){if(typeof window=="object")return window}}()})(),function(){X.o=function(T,r){return Object.prototype.hasOwnProperty.call(T,r)}}();var Rn={};(function(){"use strict";X(33313),X(10933),X(79250),X(53795),X(87806),X(64677),X(48058),X(51583),X(82403),X(34265),X(3295),X(1078),X(63207),X(80520),X(39600),X(93237),X(32057),X(68933),X(47830),X(13455),X(64094),X(61915),X(32384),X(25579),X(63532),X(33425),X(43894),X(99636),X(34570),X(94432),X(24683),X(69984),X(32089),X(60206),X(29645),X(4788),X(58672),X(19356),X(48968),X(49852),X(2712),X(864),X(54243),X(75621),X(26267),X(50095),X(33451),X(74587),X(25082),X(47421),X(32122),X(6306),X(90216),X(84663),X(92332),X(98329),X(9631),X(47091),X(59660),X(15383),X(92866),X(86107),X(29248),X(52540),X(79007),X(77199),X(6522),X(95542),X(2966),X(20997),X(57400),X(45571),X(54800),X(15709),X(76059),X(96614),X(324),X(90426),X(95443),X(87968),X(55007),X(55323),X(13521),X(5006),X(99009),X(85770),X(23532),X(87119),X(78618),X(27129),X(31943),X(3579),X(97397),X(85028),X(8225),X(43331),X(62289),X(56196),X(2950),X(44205),X(76882),X(83186),X(76065),X(13411),X(26634),X(53118),X(42514),X(84353),X(62987),X(48993),X(52917),X(4972),X(28913),X(36382),X(53092),X(69861),X(29674),X(81543),X(9373),X(45093),X(63074),X(5815),X(88527),X(66390),X(7784),X(50551),X(76483),X(92046),X(63915),X(51454),X(79669),X(23057),X(57983),X(17953),X(30442),X(6403),X(9867),X(43673),X(12354),X(22515),X(5143),X(93514),X(5416),X(11619),X(44590),X(63272),X(39930),X(4038),X(8448),X(70604),X(34965),X(95309),X(82256),X(49484),X(38931),X(39308),X(91550),X(75008),X(56027),X(50340),X(34325),X(74498),X(15812),X(57726),X(80756),X(70567),X(66756),X(60037),X(44195),X(24575),X(71968),X(78824),X(72846),X(99872),X(73364),X(58166),X(23793),X(43820),X(13917),X(19852),X(40379),X(92770),X(81069),X(63689),X(5659),X(25014),X(32189),X(23030),X(24309),X(49110),X(56445),X(30939),X(48321),X(88739),X(60415),X(72532),X(62207),X(906),X(90846),X(40348),X(83006),X(25764),X(69401),X(95012),X(30236)})(),function(){"use strict";var T=X(89005);X(67160),X(23542),X(30386),X(98996),X(50578),X(4444),X(77870),X(39108),X(11714),X(73492),X(49641),X(17570),X(61858),X(32882),X(23632),X(56492);var r=X(85822),n=X(7435),e=X(56518),a=X(26427),t=X(18498),o=X(49060),p=X(72178),b=X(24826),y;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */r.perf.mark("inception",(y=window.performance)==null||(y=y.timing)==null?void 0:y.navigationStart),r.perf.mark("init");var I=(0,p.configureStore)(),k=(0,o.createRenderer)(function(){(0,a.loadIconRefMap)();var i=X(71253),c=i.getRoutedComponent,m=c(I);return(0,x.createComponentVNode)(2,p.StoreProvider,{store:I,children:(0,x.createComponentVNode)(2,m)})}),C=function i(){if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",i);return}(0,b.setupGlobalEvents)(),(0,e.setupHotKeys)(),(0,t.captureExternalLinks)(),I.subscribe(k),Byond.subscribe(function(c,m){return I.dispatch({type:c,payload:m})})};C()}()})();})(); + */r.perf.mark("inception",(y=window.performance)==null||(y=y.timing)==null?void 0:y.navigationStart),r.perf.mark("init");var I=(0,p.configureStore)(),k=(0,o.createRenderer)(function(){(0,a.loadIconRefMap)();var i=X(71253),c=i.getRoutedComponent,m=c(I);return(0,T.createComponentVNode)(2,p.StoreProvider,{store:I,children:(0,T.createComponentVNode)(2,m)})}),C=function i(){if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",i);return}(0,b.setupGlobalEvents)(),(0,e.setupHotKeys)(),(0,t.captureExternalLinks)(),I.subscribe(k),Byond.subscribe(function(c,m){return I.dispatch({type:c,payload:m})})};C()}()})();})();